mirror of
https://github.com/ProudMuBai/GoFilm.git
synced 2026-02-03 22:44:47 +08:00
120 lines
1.5 MiB
120 lines
1.5 MiB
var R4=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var CEe=R4((mr,gr)=>{(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)}})();function Rb(e,t){const n=Object.create(null),s=e.split(",");for(let r=0;r<s.length;r++)n[s[r]]=!0;return t?r=>!!n[r.toLowerCase()]:r=>!!n[r]}function rt(e){if(st(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=Tt(s)?B4(s):rt(s);if(r)for(const i in r)t[i]=r[i]}return t}else{if(Tt(e))return e;if(Mt(e))return e}}const L4=/;(?![^(]*\))/g,D4=/:([^]+)/,F4=/\/\*.*?\*\//gs;function B4(e){const t={};return e.replace(F4,"").split(L4).forEach(n=>{if(n){const s=n.split(D4);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function M(e){let t="";if(Tt(e))t=e;else if(st(e))for(let n=0;n<e.length;n++){const s=M(e[n]);s&&(t+=s+" ")}else if(Mt(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function Kr(e){if(!e)return null;let{class:t,style:n}=e;return t&&!Tt(t)&&(e.class=M(t)),n&&(e.style=rt(n)),e}const V4="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",U4=Rb(V4);function fk(e){return!!e||e===""}function H4(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=Go(e[s],t[s]);return n}function Go(e,t){if(e===t)return!0;let n=Yo(e),s=Yo(t);if(n||s)return n&&s?e.getTime()===t.getTime():!1;if(n=ud(e),s=ud(t),n||s)return e===t;if(n=st(e),s=st(t),n||s)return n&&s?H4(e,t):!1;if(n=Mt(e),s=Mt(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||!Go(e[a],t[a]))return!1}}return String(e)===String(t)}function Lb(e,t){return e.findIndex(n=>Go(n,t))}const ve=e=>Tt(e)?e:e==null?"":st(e)||Mt(e)&&(e.toString===pk||!yt(e.toString))?JSON.stringify(e,hk,2):String(e),hk=(e,t)=>t&&t.__v_isRef?hk(e,t.value):jl(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r])=>(n[`${s} =>`]=r,n),{})}:Vu(t)?{[`Set(${t.size})`]:[...t.values()]}:Mt(t)&&!st(t)&&!Ap(t)?String(t):t,An={},zl=[],en=()=>{},z4=()=>!1,j4=/^on[^a-z]/,Pm=e=>j4.test(e),Db=e=>e.startsWith("onUpdate:"),as=Object.assign,Fb=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},K4=Object.prototype.hasOwnProperty,zt=(e,t)=>K4.call(e,t),st=Array.isArray,jl=e=>nf(e)==="[object Map]",Vu=e=>nf(e)==="[object Set]",Yo=e=>nf(e)==="[object Date]",yt=e=>typeof e=="function",Tt=e=>typeof e=="string",ud=e=>typeof e=="symbol",Mt=e=>e!==null&&typeof e=="object",cd=e=>Mt(e)&&yt(e.then)&&yt(e.catch),pk=Object.prototype.toString,nf=e=>pk.call(e),jh=e=>nf(e).slice(8,-1),Ap=e=>nf(e)==="[object Object]",Bb=e=>Tt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Kh=Rb(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),$m=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},W4=/-(\w)/g,kr=$m(e=>e.replace(W4,(t,n)=>n?n.toUpperCase():"")),q4=/\B([A-Z])/g,Za=$m(e=>e.replace(q4,"-$1").toLowerCase()),sf=$m(e=>e.charAt(0).toUpperCase()+e.slice(1)),Wh=$m(e=>e?`on${sf(e)}`:""),dd=(e,t)=>!Object.is(e,t),qh=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Pp=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},$p=e=>{const t=parseFloat(e);return isNaN(t)?e:t},G4=e=>{const t=Tt(e)?Number(e):NaN;return isNaN(t)?e:t};let Ww;const Y4=()=>Ww||(Ww=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let dr;class mk{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=dr,!t&&dr&&(this.index=(dr.scopes||(dr.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=dr;try{return dr=this,t()}finally{dr=n}}}on(){dr=this}off(){dr=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 X4(e){return new mk(e)}function Q4(e,t=dr){t&&t.active&&t.effects.push(e)}function gk(){return dr}function vk(e){dr&&dr.cleanups.push(e)}const Vb=e=>{const t=new Set(e);return t.w=0,t.n=0,t},yk=e=>(e.w&Ha)>0,bk=e=>(e.n&Ha)>0,J4=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=Ha},Z4=e=>{const{deps:t}=e;if(t.length){let n=0;for(let s=0;s<t.length;s++){const r=t[s];yk(r)&&!bk(r)?r.delete(e):t[n++]=r,r.w&=~Ha,r.n&=~Ha}t.length=n}},Np=new WeakMap;let $c=0,Ha=1;const S0=30;let jr;const Fo=Symbol(""),C0=Symbol("");class Ub{constructor(t,n=null,s){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,Q4(this,s)}run(){if(!this.active)return this.fn();let t=jr,n=Da;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=jr,jr=this,Da=!0,Ha=1<<++$c,$c<=S0?J4(this):qw(this),this.fn()}finally{$c<=S0&&Z4(this),Ha=1<<--$c,jr=this.parent,Da=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){jr===this?this.deferStop=!0:this.active&&(qw(this),this.onStop&&this.onStop(),this.active=!1)}}function qw(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let Da=!0;const _k=[];function Uu(){_k.push(Da),Da=!1}function Hu(){const e=_k.pop();Da=e===void 0?!0:e}function er(e,t,n){if(Da&&jr){let s=Np.get(e);s||Np.set(e,s=new Map);let r=s.get(n);r||s.set(n,r=Vb()),Tk(r)}}function Tk(e,t){let n=!1;$c<=S0?bk(e)||(e.n|=Ha,n=!yk(e)):n=!e.has(jr),n&&(e.add(jr),jr.deps.push(e))}function ta(e,t,n,s,r,i){const a=Np.get(e);if(!a)return;let o=[];if(t==="clear")o=[...a.values()];else if(n==="length"&&st(e)){const l=Number(s);a.forEach((u,c)=>{(c==="length"||c>=l)&&o.push(u)})}else switch(n!==void 0&&o.push(a.get(n)),t){case"add":st(e)?Bb(n)&&o.push(a.get("length")):(o.push(a.get(Fo)),jl(e)&&o.push(a.get(C0)));break;case"delete":st(e)||(o.push(a.get(Fo)),jl(e)&&o.push(a.get(C0)));break;case"set":jl(e)&&o.push(a.get(Fo));break}if(o.length===1)o[0]&&E0(o[0]);else{const l=[];for(const u of o)u&&l.push(...u);E0(Vb(l))}}function E0(e,t){const n=st(e)?e:[...e];for(const s of n)s.computed&&Gw(s);for(const s of n)s.computed||Gw(s)}function Gw(e,t){(e!==jr||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function e3(e,t){var n;return(n=Np.get(e))===null||n===void 0?void 0:n.get(t)}const t3=Rb("__proto__,__v_isRef,__isVue"),wk=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ud)),n3=Hb(),s3=Hb(!1,!0),r3=Hb(!0),Yw=i3();function i3(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const s=Qt(this);for(let i=0,a=this.length;i<a;i++)er(s,"get",i+"");const r=s[t](...n);return r===-1||r===!1?s[t](...n.map(Qt)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){Uu();const s=Qt(this)[t].apply(this,n);return Hu(),s}}),e}function a3(e){const t=Qt(this);return er(t,"has",e),t.hasOwnProperty(e)}function Hb(e=!1,t=!1){return function(s,r,i){if(r==="__v_isReactive")return!e;if(r==="__v_isReadonly")return e;if(r==="__v_isShallow")return t;if(r==="__v_raw"&&i===(e?t?w3:kk:t?xk:Ek).get(s))return s;const a=st(s);if(!e){if(a&&zt(Yw,r))return Reflect.get(Yw,r,i);if(r==="hasOwnProperty")return a3}const o=Reflect.get(s,r,i);return(ud(r)?wk.has(r):t3(r))||(e||er(s,"get",r),t)?o:an(o)?a&&Bb(r)?o:o.value:Mt(o)?e?nl(o):Ct(o):o}}const o3=Sk(),l3=Sk(!0);function Sk(e=!1){return function(n,s,r,i){let a=n[s];if(ou(a)&&an(a)&&!an(r))return!1;if(!e&&(!Mp(r)&&!ou(r)&&(a=Qt(a),r=Qt(r)),!st(n)&&an(a)&&!an(r)))return a.value=r,!0;const o=st(n)&&Bb(s)?Number(s)<n.length:zt(n,s),l=Reflect.set(n,s,r,i);return n===Qt(i)&&(o?dd(r,a)&&ta(n,"set",s,r):ta(n,"add",s,r)),l}}function u3(e,t){const n=zt(e,t);e[t];const s=Reflect.deleteProperty(e,t);return s&&n&&ta(e,"delete",t,void 0),s}function c3(e,t){const n=Reflect.has(e,t);return(!ud(t)||!wk.has(t))&&er(e,"has",t),n}function d3(e){return er(e,"iterate",st(e)?"length":Fo),Reflect.ownKeys(e)}const Ck={get:n3,set:o3,deleteProperty:u3,has:c3,ownKeys:d3},f3={get:r3,set(e,t){return!0},deleteProperty(e,t){return!0}},h3=as({},Ck,{get:s3,set:l3}),zb=e=>e,Nm=e=>Reflect.getPrototypeOf(e);function ch(e,t,n=!1,s=!1){e=e.__v_raw;const r=Qt(e),i=Qt(t);n||(t!==i&&er(r,"get",t),er(r,"get",i));const{has:a}=Nm(r),o=s?zb:n?Wb:fd;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 dh(e,t=!1){const n=this.__v_raw,s=Qt(n),r=Qt(e);return t||(e!==r&&er(s,"has",e),er(s,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function fh(e,t=!1){return e=e.__v_raw,!t&&er(Qt(e),"iterate",Fo),Reflect.get(e,"size",e)}function Xw(e){e=Qt(e);const t=Qt(this);return Nm(t).has.call(t,e)||(t.add(e),ta(t,"add",e,e)),this}function Qw(e,t){t=Qt(t);const n=Qt(this),{has:s,get:r}=Nm(n);let i=s.call(n,e);i||(e=Qt(e),i=s.call(n,e));const a=r.call(n,e);return n.set(e,t),i?dd(t,a)&&ta(n,"set",e,t):ta(n,"add",e,t),this}function Jw(e){const t=Qt(this),{has:n,get:s}=Nm(t);let r=n.call(t,e);r||(e=Qt(e),r=n.call(t,e)),s&&s.call(t,e);const i=t.delete(e);return r&&ta(t,"delete",e,void 0),i}function Zw(){const e=Qt(this),t=e.size!==0,n=e.clear();return t&&ta(e,"clear",void 0,void 0),n}function hh(e,t){return function(s,r){const i=this,a=i.__v_raw,o=Qt(a),l=t?zb:e?Wb:fd;return!e&&er(o,"iterate",Fo),a.forEach((u,c)=>s.call(r,l(u),l(c),i))}}function ph(e,t,n){return function(...s){const r=this.__v_raw,i=Qt(r),a=jl(i),o=e==="entries"||e===Symbol.iterator&&a,l=e==="keys"&&a,u=r[e](...s),c=n?zb:t?Wb:fd;return!t&&er(i,"iterate",l?C0:Fo),{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 Ta(e){return function(...t){return e==="delete"?!1:this}}function p3(){const e={get(i){return ch(this,i)},get size(){return fh(this)},has:dh,add:Xw,set:Qw,delete:Jw,clear:Zw,forEach:hh(!1,!1)},t={get(i){return ch(this,i,!1,!0)},get size(){return fh(this)},has:dh,add:Xw,set:Qw,delete:Jw,clear:Zw,forEach:hh(!1,!0)},n={get(i){return ch(this,i,!0)},get size(){return fh(this,!0)},has(i){return dh.call(this,i,!0)},add:Ta("add"),set:Ta("set"),delete:Ta("delete"),clear:Ta("clear"),forEach:hh(!0,!1)},s={get(i){return ch(this,i,!0,!0)},get size(){return fh(this,!0)},has(i){return dh.call(this,i,!0)},add:Ta("add"),set:Ta("set"),delete:Ta("delete"),clear:Ta("clear"),forEach:hh(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=ph(i,!1,!1),n[i]=ph(i,!0,!1),t[i]=ph(i,!1,!0),s[i]=ph(i,!0,!0)}),[e,n,t,s]}const[m3,g3,v3,y3]=p3();function jb(e,t){const n=t?e?y3:v3:e?g3:m3;return(s,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(zt(n,r)&&r in s?n:s,r,i)}const b3={get:jb(!1,!1)},_3={get:jb(!1,!0)},T3={get:jb(!0,!1)},Ek=new WeakMap,xk=new WeakMap,kk=new WeakMap,w3=new WeakMap;function S3(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function C3(e){return e.__v_skip||!Object.isExtensible(e)?0:S3(jh(e))}function Ct(e){return ou(e)?e:Kb(e,!1,Ck,b3,Ek)}function Ik(e){return Kb(e,!1,h3,_3,xk)}function nl(e){return Kb(e,!0,f3,T3,kk)}function Kb(e,t,n,s,r){if(!Mt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const a=C3(e);if(a===0)return e;const o=new Proxy(e,a===2?s:n);return r.set(e,o),o}function Kl(e){return ou(e)?Kl(e.__v_raw):!!(e&&e.__v_isReactive)}function ou(e){return!!(e&&e.__v_isReadonly)}function Mp(e){return!!(e&&e.__v_isShallow)}function Ok(e){return Kl(e)||ou(e)}function Qt(e){const t=e&&e.__v_raw;return t?Qt(t):e}function Bo(e){return Pp(e,"__v_skip",!0),e}const fd=e=>Mt(e)?Ct(e):e,Wb=e=>Mt(e)?nl(e):e;function Ak(e){Da&&jr&&(e=Qt(e),Tk(e.dep||(e.dep=Vb())))}function qb(e,t){e=Qt(e);const n=e.dep;n&&E0(n)}function an(e){return!!(e&&e.__v_isRef===!0)}function G(e){return Pk(e,!1)}function Jt(e){return Pk(e,!0)}function Pk(e,t){return an(e)?e:new E3(e,t)}class E3{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:Qt(t),this._value=n?t:fd(t)}get value(){return Ak(this),this._value}set value(t){const n=this.__v_isShallow||Mp(t)||ou(t);t=n?t:Qt(t),dd(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:fd(t),qb(this))}}function hc(e){qb(e)}function d(e){return an(e)?e.value:e}const x3={get:(e,t,n)=>d(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return an(r)&&!an(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function $k(e){return Kl(e)?e:new Proxy(e,x3)}function es(e){const t=st(e)?new Array(e.length):{};for(const n in e)t[n]=yn(e,n);return t}class k3{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 e3(Qt(this._object),this._key)}}function yn(e,t,n){const s=e[t];return an(s)?s:new k3(e,t,n)}var Nk;class I3{constructor(t,n,s,r){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[Nk]=!1,this._dirty=!0,this.effect=new Ub(t,()=>{this._dirty||(this._dirty=!0,qb(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=s}get value(){const t=Qt(this);return Ak(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}Nk="__v_isReadonly";function Mk(e,t,n=!1){let s,r;const i=yt(e);return i?(s=e,r=en):(s=e.get,r=e.set),new I3(s,r,i||!r,n)}function O3(e,...t){}function Fa(e,t,n,s){let r;try{r=s?e(...s):e()}catch(i){Mm(i,t,n)}return r}function Cr(e,t,n,s){if(yt(e)){const i=Fa(e,t,n,s);return i&&cd(i)&&i.catch(a=>{Mm(a,t,n)}),i}const r=[];for(let i=0;i<e.length;i++)r.push(Cr(e[i],t,n,s));return r}function Mm(e,t,n,s=!0){const r=t?t.vnode:null;if(t){let i=t.parent;const a=t.proxy,o=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){Fa(l,null,10,[e,a,o]);return}}A3(e,n,r,s)}function A3(e,t,n,s=!0){console.error(e)}let hd=!1,x0=!1;const gs=[];let fi=0;const Wl=[];let ji=null,Co=0;const Rk=Promise.resolve();let Gb=null;function at(e){const t=Gb||Rk;return e?t.then(this?e.bind(this):e):t}function P3(e){let t=fi+1,n=gs.length;for(;t<n;){const s=t+n>>>1;pd(gs[s])<e?t=s+1:n=s}return t}function Yb(e){(!gs.length||!gs.includes(e,hd&&e.allowRecurse?fi+1:fi))&&(e.id==null?gs.push(e):gs.splice(P3(e.id),0,e),Lk())}function Lk(){!hd&&!x0&&(x0=!0,Gb=Rk.then(Fk))}function $3(e){const t=gs.indexOf(e);t>fi&&gs.splice(t,1)}function N3(e){st(e)?Wl.push(...e):(!ji||!ji.includes(e,e.allowRecurse?Co+1:Co))&&Wl.push(e),Lk()}function eS(e,t=hd?fi+1:0){for(;t<gs.length;t++){const n=gs[t];n&&n.pre&&(gs.splice(t,1),t--,n())}}function Dk(e){if(Wl.length){const t=[...new Set(Wl)];if(Wl.length=0,ji){ji.push(...t);return}for(ji=t,ji.sort((n,s)=>pd(n)-pd(s)),Co=0;Co<ji.length;Co++)ji[Co]();ji=null,Co=0}}const pd=e=>e.id==null?1/0:e.id,M3=(e,t)=>{const n=pd(e)-pd(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Fk(e){x0=!1,hd=!0,gs.sort(M3);const t=en;try{for(fi=0;fi<gs.length;fi++){const n=gs[fi];n&&n.active!==!1&&Fa(n,null,14)}}finally{fi=0,gs.length=0,Dk(),hd=!1,Gb=null,(gs.length||Wl.length)&&Fk()}}function R3(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||An;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]||An;h&&(r=n.map(p=>Tt(p)?p.trim():p)),f&&(r=n.map($p))}let o,l=s[o=Wh(t)]||s[o=Wh(kr(t))];!l&&i&&(l=s[o=Wh(Za(t))]),l&&Cr(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,Cr(u,e,6,r)}}function Bk(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(!yt(e)){const l=u=>{const c=Bk(u,t,!0);c&&(o=!0,as(a,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!i&&!o?(Mt(e)&&s.set(e,null),null):(st(i)?i.forEach(l=>a[l]=null):as(a,i),Mt(e)&&s.set(e,a),a)}function Rm(e,t){return!e||!Pm(t)?!1:(t=t.slice(2).replace(/Once$/,""),zt(e,t[0].toLowerCase()+t.slice(1))||zt(e,Za(t))||zt(e,t))}let hs=null,Lm=null;function Rp(e){const t=hs;return hs=e,Lm=e&&e.type.__scopeId||null,t}function sr(e){Lm=e}function rr(){Lm=null}function N(e,t=hs,n){if(!t||e._n)return e;const s=(...r)=>{s._d&&dS(-1);const i=Rp(t);let a;try{a=e(...r)}finally{Rp(i),s._d&&dS(1)}return a};return s._n=!0,s._c=!0,s._d=!0,s}function fv(e){const{type:t,vnode:n,proxy:s,withProxy:r,props:i,propsOptions:[a],slots:o,attrs:l,emit:u,render:c,renderCache:f,data:h,setupState:p,ctx:g,inheritAttrs:m}=e;let y,v;const _=Rp(e);try{if(n.shapeFlag&4){const T=r||s;y=ci(c.call(T,T,f,i,p,h,g)),v=l}else{const T=t;y=ci(T.length>1?T(i,{attrs:l,slots:o,emit:u}):T(i,null)),v=t.props?l:L3(l)}}catch(T){jc.length=0,Mm(T,e,1),y=I($s)}let w=y;if(v&&m!==!1){const T=Object.keys(v),{shapeFlag:S}=w;T.length&&S&7&&(a&&T.some(Db)&&(v=D3(v,a)),w=na(w,v))}return n.dirs&&(w=na(w),w.dirs=w.dirs?w.dirs.concat(n.dirs):n.dirs),n.transition&&(w.transition=n.transition),y=w,Rp(_),y}const L3=e=>{let t;for(const n in e)(n==="class"||n==="style"||Pm(n))&&((t||(t={}))[n]=e[n]);return t},D3=(e,t)=>{const n={};for(const s in e)(!Db(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function F3(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?tS(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]&&!Rm(u,h))return!0}}}else return(r||o)&&(!o||!o.$stable)?!0:s===a?!1:s?a?tS(s,a,u):!0:!!a;return!1}function tS(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]&&!Rm(n,i))return!0}return!1}function B3({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const V3=e=>e.__isSuspense;function U3(e,t){t&&t.pendingBranch?st(e)?t.effects.push(...e):t.effects.push(e):N3(e)}function Lt(e,t){if(Wn){let n=Wn.provides;const s=Wn.parent&&Wn.parent.provides;s===n&&(n=Wn.provides=Object.create(s)),n[e]=t}}function Qe(e,t,n=!1){const s=Wn||hs;if(s){const r=s.parent==null?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&yt(t)?t.call(s.proxy):t}}function Gs(e,t){return Xb(e,null,t)}const mh={};function Oe(e,t,n){return Xb(e,t,n)}function Xb(e,t,{immediate:n,deep:s,flush:r,onTrack:i,onTrigger:a}=An){const o=gk()===(Wn==null?void 0:Wn.scope)?Wn:null;let l,u=!1,c=!1;if(an(e)?(l=()=>e.value,u=Mp(e)):Kl(e)?(l=()=>e,s=!0):st(e)?(c=!0,u=e.some(w=>Kl(w)||Mp(w)),l=()=>e.map(w=>{if(an(w))return w.value;if(Kl(w))return Ao(w);if(yt(w))return Fa(w,o,2)})):yt(e)?t?l=()=>Fa(e,o,2):l=()=>{if(!(o&&o.isUnmounted))return f&&f(),Cr(e,o,3,[h])}:l=en,t&&s){const w=l;l=()=>Ao(w())}let f,h=w=>{f=v.onStop=()=>{Fa(w,o,4)}},p;if(bd)if(h=en,t?n&&Cr(t,o,3,[l(),c?[]:void 0,h]):l(),r==="sync"){const w=O8();p=w.__watcherHandles||(w.__watcherHandles=[])}else return en;let g=c?new Array(e.length).fill(mh):mh;const m=()=>{if(v.active)if(t){const w=v.run();(s||u||(c?w.some((T,S)=>dd(T,g[S])):dd(w,g)))&&(f&&f(),Cr(t,o,3,[w,g===mh?void 0:c&&g[0]===mh?[]:g,h]),g=w)}else v.run()};m.allowRecurse=!!t;let y;r==="sync"?y=m:r==="post"?y=()=>zs(m,o&&o.suspense):(m.pre=!0,o&&(m.id=o.uid),y=()=>Yb(m));const v=new Ub(l,y);t?n?m():g=v.run():r==="post"?zs(v.run.bind(v),o&&o.suspense):v.run();const _=()=>{v.stop(),o&&o.scope&&Fb(o.scope.effects,v)};return p&&p.push(_),_}function H3(e,t,n){const s=this.proxy,r=Tt(e)?e.includes(".")?Vk(s,e):()=>s[e]:e.bind(s,s);let i;yt(t)?i=t:(i=t.handler,n=t);const a=Wn;lu(this);const o=Xb(r,i.bind(s),n);return a?lu(a):Vo(),o}function Vk(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 Ao(e,t){if(!Mt(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),an(e))Ao(e.value,t);else if(st(e))for(let n=0;n<e.length;n++)Ao(e[n],t);else if(Vu(e)||jl(e))e.forEach(n=>{Ao(n,t)});else if(Ap(e))for(const n in e)Ao(e[n],t);return e}function Uk(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return vt(()=>{e.isMounted=!0}),on(()=>{e.isUnmounting=!0}),e}const br=[Function,Array],z3={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:br,onEnter:br,onAfterEnter:br,onEnterCancelled:br,onBeforeLeave:br,onLeave:br,onAfterLeave:br,onLeaveCancelled:br,onBeforeAppear:br,onAppear:br,onAfterAppear:br,onAppearCancelled:br},setup(e,{slots:t}){const n=It(),s=Uk();let r;return()=>{const i=t.default&&Qb(t.default(),!0);if(!i||!i.length)return;let a=i[0];if(i.length>1){for(const m of i)if(m.type!==$s){a=m;break}}const o=Qt(e),{mode:l}=o;if(s.isLeaving)return hv(a);const u=nS(a);if(!u)return hv(a);const c=md(u,o,s,n);gd(u,c);const f=n.subTree,h=f&&nS(f);let p=!1;const{getTransitionKey:g}=u.type;if(g){const m=g();r===void 0?r=m:m!==r&&(r=m,p=!0)}if(h&&h.type!==$s&&(!Eo(u,h)||p)){const m=md(h,o,s,n);if(gd(h,m),l==="out-in")return s.isLeaving=!0,m.afterLeave=()=>{s.isLeaving=!1,n.update.active!==!1&&n.update()},hv(a);l==="in-out"&&u.type!==$s&&(m.delayLeave=(y,v,_)=>{const w=zk(s,h);w[String(h.key)]=h,y._leaveCb=()=>{v(),y._leaveCb=void 0,delete c.delayedLeave},c.delayedLeave=_})}return a}}},Hk=z3;function zk(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 md(e,t,n,s){const{appear:r,mode:i,persisted:a=!1,onBeforeEnter:o,onEnter:l,onAfterEnter:u,onEnterCancelled:c,onBeforeLeave:f,onLeave:h,onAfterLeave:p,onLeaveCancelled:g,onBeforeAppear:m,onAppear:y,onAfterAppear:v,onAppearCancelled:_}=t,w=String(e.key),T=zk(n,e),S=(P,U)=>{P&&Cr(P,s,9,U)},E=(P,U)=>{const H=U[1];S(P,U),st(P)?P.every(z=>z.length<=1)&&H():P.length<=1&&H()},$={mode:i,persisted:a,beforeEnter(P){let U=o;if(!n.isMounted)if(r)U=m||o;else return;P._leaveCb&&P._leaveCb(!0);const H=T[w];H&&Eo(e,H)&&H.el._leaveCb&&H.el._leaveCb(),S(U,[P])},enter(P){let U=l,H=u,z=c;if(!n.isMounted)if(r)U=y||l,H=v||u,z=_||c;else return;let W=!1;const D=P._enterCb=V=>{W||(W=!0,V?S(z,[P]):S(H,[P]),$.delayedLeave&&$.delayedLeave(),P._enterCb=void 0)};U?E(U,[P,D]):D()},leave(P,U){const H=String(e.key);if(P._enterCb&&P._enterCb(!0),n.isUnmounting)return U();S(f,[P]);let z=!1;const W=P._leaveCb=D=>{z||(z=!0,U(),D?S(g,[P]):S(p,[P]),P._leaveCb=void 0,T[H]===e&&delete T[H])};T[H]=e,h?E(h,[P,W]):W()},clone(P){return md(P,t,n,s)}};return $}function hv(e){if(Dm(e))return e=na(e),e.children=null,e}function nS(e){return Dm(e)?e.children?e.children[0]:void 0:e}function gd(e,t){e.shapeFlag&6&&e.component?gd(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 Qb(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(Qb(a.children,t,o))):(t||a.type!==$s)&&s.push(o!=null?na(a,{key:o}):a)}if(r>1)for(let i=0;i<s.length;i++)s[i].patchFlag=-2;return s}function Z(e){return yt(e)?{setup:e,name:e.name}:e}const Uc=e=>!!e.type.__asyncLoader,Dm=e=>e.type.__isKeepAlive;function j3(e,t){Kk(e,"a",t)}function jk(e,t){Kk(e,"da",t)}function Kk(e,t,n=Wn){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Fm(t,s,n),n){let r=n.parent;for(;r&&r.parent;)Dm(r.parent.vnode)&&K3(s,t,n,r),r=r.parent}}function K3(e,t,n,s){const r=Fm(t,e,s,!0);eo(()=>{Fb(s[t],r)},n)}function Fm(e,t,n=Wn,s=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...a)=>{if(n.isUnmounted)return;Uu(),lu(n);const o=Cr(t,n,e,a);return Vo(),Hu(),o});return s?r.unshift(i):r.push(i),i}}const fa=e=>(t,n=Wn)=>(!bd||e==="sp")&&Fm(e,(...s)=>t(...s),n),sl=fa("bm"),vt=fa("m"),Wk=fa("bu"),ha=fa("u"),on=fa("bum"),eo=fa("um"),W3=fa("sp"),q3=fa("rtg"),G3=fa("rtc");function Y3(e,t=Wn){Fm("ec",e,t)}function pt(e,t){const n=hs;if(n===null)return e;const s=Um(n)||n.proxy,r=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[a,o,l,u=An]=t[i];a&&(yt(a)&&(a={mounted:a,updated:a}),a.deep&&Ao(o),r.push({dir:a,instance:s,value:o,oldValue:void 0,arg:l,modifiers:u}))}return e}function mo(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&&(Uu(),Cr(l,n,8,[e.el,o,e,t]),Hu())}}const Jb="components",X3="directives";function Et(e,t){return Zb(Jb,e,!0,t)||e}const qk=Symbol();function Nt(e){return Tt(e)?Zb(Jb,e,!1)||e:e||qk}function vd(e){return Zb(X3,e)}function Zb(e,t,n=!0,s=!1){const r=hs||Wn;if(r){const i=r.type;if(e===Jb){const o=x8(i,!1);if(o&&(o===t||o===kr(t)||o===sf(kr(t))))return i}const a=sS(r[e]||i[e],t)||sS(r.appContext[e],t);return!a&&s?i:a}}function sS(e,t){return e&&(e[t]||e[kr(t)]||e[sf(kr(t))])}function bt(e,t,n,s){let r;const i=n&&n[s];if(st(e)||Tt(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(Mt(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 xi(e,t){for(let n=0;n<t.length;n++){const s=t[n];if(st(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}function we(e,t,n={},s,r){if(hs.isCE||hs.parent&&Uc(hs.parent)&&hs.parent.isCE)return t!=="default"&&(n.name=t),I("slot",n,s&&s());let i=e[t];i&&i._c&&(i._d=!1),C();const a=i&&Gk(i(n)),o=he(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 Gk(e){return e.some(t=>pn(t)?!(t.type===$s||t.type===Ke&&!Gk(t.children)):!0)?e:null}function Q3(e,t){const n={};for(const s in e)n[t&&/[A-Z]/.test(s)?`on:${s}`:Wh(s)]=e[s];return n}const k0=e=>e?iI(e)?Um(e)||e.proxy:k0(e.parent):null,Hc=as(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=>k0(e.parent),$root:e=>k0(e.root),$emit:e=>e.emit,$options:e=>e_(e),$forceUpdate:e=>e.f||(e.f=()=>Yb(e.update)),$nextTick:e=>e.n||(e.n=at.bind(e.proxy)),$watch:e=>H3.bind(e)}),pv=(e,t)=>e!==An&&!e.__isScriptSetup&&zt(e,t),J3={get({_:e},t){const{ctx:n,setupState:s,data:r,props:i,accessCache:a,type:o,appContext:l}=e;let u;if(t[0]!=="$"){const p=a[t];if(p!==void 0)switch(p){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return i[t]}else{if(pv(s,t))return a[t]=1,s[t];if(r!==An&&zt(r,t))return a[t]=2,r[t];if((u=e.propsOptions[0])&&zt(u,t))return a[t]=3,i[t];if(n!==An&&zt(n,t))return a[t]=4,n[t];I0&&(a[t]=0)}}const c=Hc[t];let f,h;if(c)return t==="$attrs"&&er(e,"get",t),c(e);if((f=o.__cssModules)&&(f=f[t]))return f;if(n!==An&&zt(n,t))return a[t]=4,n[t];if(h=l.config.globalProperties,zt(h,t))return h[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:i}=e;return pv(r,t)?(r[t]=n,!0):s!==An&&zt(s,t)?(s[t]=n,!0):zt(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!==An&&zt(e,a)||pv(t,a)||(o=i[0])&&zt(o,a)||zt(s,a)||zt(Hc,a)||zt(r.config.globalProperties,a)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:zt(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};let I0=!0;function Z3(e){const t=e_(e),n=e.proxy,s=e.ctx;I0=!1,t.beforeCreate&&rS(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:a,watch:o,provide:l,inject:u,created:c,beforeMount:f,mounted:h,beforeUpdate:p,updated:g,activated:m,deactivated:y,beforeDestroy:v,beforeUnmount:_,destroyed:w,unmounted:T,render:S,renderTracked:E,renderTriggered:$,errorCaptured:P,serverPrefetch:U,expose:H,inheritAttrs:z,components:W,directives:D,filters:V}=t;if(u&&e8(u,s,null,e.appContext.config.unwrapInjectedRef),a)for(const B in a){const K=a[B];yt(K)&&(s[B]=K.bind(n))}if(r){const B=r.call(n,n);Mt(B)&&(e.data=Ct(B))}if(I0=!0,i)for(const B in i){const K=i[B],L=yt(K)?K.bind(n,n):yt(K.get)?K.get.bind(n,n):en,Q=!yt(K)&&yt(K.set)?K.set.bind(n):en,ee=k({get:L,set:Q});Object.defineProperty(s,B,{enumerable:!0,configurable:!0,get:()=>ee.value,set:te=>ee.value=te})}if(o)for(const B in o)Yk(o[B],s,n,B);if(l){const B=yt(l)?l.call(n):l;Reflect.ownKeys(B).forEach(K=>{Lt(K,B[K])})}c&&rS(c,e,"c");function Y(B,K){st(K)?K.forEach(L=>B(L.bind(n))):K&&B(K.bind(n))}if(Y(sl,f),Y(vt,h),Y(Wk,p),Y(ha,g),Y(j3,m),Y(jk,y),Y(Y3,P),Y(G3,E),Y(q3,$),Y(on,_),Y(eo,T),Y(W3,U),st(H))if(H.length){const B=e.exposed||(e.exposed={});H.forEach(K=>{Object.defineProperty(B,K,{get:()=>n[K],set:L=>n[K]=L})})}else e.exposed||(e.exposed={});S&&e.render===en&&(e.render=S),z!=null&&(e.inheritAttrs=z),W&&(e.components=W),D&&(e.directives=D)}function e8(e,t,n=en,s=!1){st(e)&&(e=O0(e));for(const r in e){const i=e[r];let a;Mt(i)?"default"in i?a=Qe(i.from||r,i.default,!0):a=Qe(i.from||r):a=Qe(i),an(a)&&s?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>a.value,set:o=>a.value=o}):t[r]=a}}function rS(e,t,n){Cr(st(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function Yk(e,t,n,s){const r=s.includes(".")?Vk(n,s):()=>n[s];if(Tt(e)){const i=t[e];yt(i)&&Oe(r,i)}else if(yt(e))Oe(r,e.bind(n));else if(Mt(e))if(st(e))e.forEach(i=>Yk(i,t,n,s));else{const i=yt(e.handler)?e.handler.bind(n):t[e.handler];yt(i)&&Oe(r,i,e)}}function e_(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=>Lp(l,u,a,!0)),Lp(l,t,a)),Mt(t)&&i.set(t,l),l}function Lp(e,t,n,s=!1){const{mixins:r,extends:i}=t;i&&Lp(e,i,n,!0),r&&r.forEach(a=>Lp(e,a,n,!0));for(const a in t)if(!(s&&a==="expose")){const o=t8[a]||n&&n[a];e[a]=o?o(e[a],t[a]):t[a]}return e}const t8={data:iS,props:To,emits:To,methods:To,computed:To,beforeCreate:xs,created:xs,beforeMount:xs,mounted:xs,beforeUpdate:xs,updated:xs,beforeDestroy:xs,beforeUnmount:xs,destroyed:xs,unmounted:xs,activated:xs,deactivated:xs,errorCaptured:xs,serverPrefetch:xs,components:To,directives:To,watch:s8,provide:iS,inject:n8};function iS(e,t){return t?e?function(){return as(yt(e)?e.call(this,this):e,yt(t)?t.call(this,this):t)}:t:e}function n8(e,t){return To(O0(e),O0(t))}function O0(e){if(st(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function xs(e,t){return e?[...new Set([].concat(e,t))]:t}function To(e,t){return e?as(as(Object.create(null),e),t):t}function s8(e,t){if(!e)return t;if(!t)return e;const n=as(Object.create(null),e);for(const s in t)n[s]=xs(e[s],t[s]);return n}function r8(e,t,n,s=!1){const r={},i={};Pp(i,Bm,1),e.propsDefaults=Object.create(null),Xk(e,t,r,i);for(const a in e.propsOptions[0])a in r||(r[a]=void 0);n?e.props=s?r:Ik(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function i8(e,t,n,s){const{props:r,attrs:i,vnode:{patchFlag:a}}=e,o=Qt(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(Rm(e.emitsOptions,h))continue;const p=t[h];if(l)if(zt(i,h))p!==i[h]&&(i[h]=p,u=!0);else{const g=kr(h);r[g]=A0(l,o,g,p,e,!1)}else p!==i[h]&&(i[h]=p,u=!0)}}}else{Xk(e,t,r,i)&&(u=!0);let c;for(const f in o)(!t||!zt(t,f)&&((c=Za(f))===f||!zt(t,c)))&&(l?n&&(n[f]!==void 0||n[c]!==void 0)&&(r[f]=A0(l,o,f,void 0,e,!0)):delete r[f]);if(i!==o)for(const f in i)(!t||!zt(t,f))&&(delete i[f],u=!0)}u&&ta(e,"set","$attrs")}function Xk(e,t,n,s){const[r,i]=e.propsOptions;let a=!1,o;if(t)for(let l in t){if(Kh(l))continue;const u=t[l];let c;r&&zt(r,c=kr(l))?!i||!i.includes(c)?n[c]=u:(o||(o={}))[c]=u:Rm(e.emitsOptions,l)||(!(l in s)||u!==s[l])&&(s[l]=u,a=!0)}if(i){const l=Qt(n),u=o||An;for(let c=0;c<i.length;c++){const f=i[c];n[f]=A0(r,l,f,u[f],e,!zt(u,f))}}return a}function A0(e,t,n,s,r,i){const a=e[n];if(a!=null){const o=zt(a,"default");if(o&&s===void 0){const l=a.default;if(a.type!==Function&&yt(l)){const{propsDefaults:u}=r;n in u?s=u[n]:(lu(r),s=u[n]=l.call(null,t),Vo())}else s=l}a[0]&&(i&&!o?s=!1:a[1]&&(s===""||s===Za(n))&&(s=!0))}return s}function Qk(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(!yt(e)){const c=f=>{l=!0;const[h,p]=Qk(f,t,!0);as(a,h),p&&o.push(...p)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!i&&!l)return Mt(e)&&s.set(e,zl),zl;if(st(i))for(let c=0;c<i.length;c++){const f=kr(i[c]);aS(f)&&(a[f]=An)}else if(i)for(const c in i){const f=kr(c);if(aS(f)){const h=i[c],p=a[f]=st(h)||yt(h)?{type:h}:Object.assign({},h);if(p){const g=uS(Boolean,p.type),m=uS(String,p.type);p[0]=g>-1,p[1]=m<0||g<m,(g>-1||zt(p,"default"))&&o.push(f)}}}const u=[a,o];return Mt(e)&&s.set(e,u),u}function aS(e){return e[0]!=="$"}function oS(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function lS(e,t){return oS(e)===oS(t)}function uS(e,t){return st(t)?t.findIndex(n=>lS(n,e)):yt(t)&&lS(t,e)?0:-1}const Jk=e=>e[0]==="_"||e==="$stable",t_=e=>st(e)?e.map(ci):[ci(e)],a8=(e,t,n)=>{if(t._n)return t;const s=N((...r)=>t_(t(...r)),n);return s._c=!1,s},Zk=(e,t,n)=>{const s=e._ctx;for(const r in e){if(Jk(r))continue;const i=e[r];if(yt(i))t[r]=a8(r,i,s);else if(i!=null){const a=t_(i);t[r]=()=>a}}},eI=(e,t)=>{const n=t_(t);e.slots.default=()=>n},o8=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=Qt(t),Pp(t,"_",n)):Zk(t,e.slots={})}else e.slots={},t&&eI(e,t);Pp(e.slots,Bm,1)},l8=(e,t,n)=>{const{vnode:s,slots:r}=e;let i=!0,a=An;if(s.shapeFlag&32){const o=t._;o?n&&o===1?i=!1:(as(r,t),!n&&o===1&&delete r._):(i=!t.$stable,Zk(t,r)),a=t}else t&&(eI(e,t),a={default:1});if(i)for(const o in r)!Jk(o)&&!(o in a)&&delete r[o]};function tI(){return{app:null,config:{isNativeTag:z4,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 u8=0;function c8(e,t){return function(s,r=null){yt(s)||(s=Object.assign({},s)),r!=null&&!Mt(r)&&(r=null);const i=tI(),a=new Set;let o=!1;const l=i.app={_uid:u8++,_component:s,_props:r,_container:null,_context:i,_instance:null,version:A8,get config(){return i.config},set config(u){},use(u,...c){return a.has(u)||(u&&yt(u.install)?(a.add(u),u.install(l,...c)):yt(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=I(s,r);return h.appContext=i,c&&t?t(h,u):e(h,u,f),o=!0,l._container=u,u.__vue_app__=l,Um(h.component)||h.component.proxy}},unmount(){o&&(e(null,l._container),delete l._container.__vue_app__)},provide(u,c){return i.provides[u]=c,l}};return l}}function P0(e,t,n,s,r=!1){if(st(e)){e.forEach((h,p)=>P0(h,t&&(st(t)?t[p]:t),n,s,r));return}if(Uc(s)&&!r)return;const i=s.shapeFlag&4?Um(s.component)||s.component.proxy:s.el,a=r?null:i,{i:o,r:l}=e,u=t&&t.r,c=o.refs===An?o.refs={}:o.refs,f=o.setupState;if(u!=null&&u!==l&&(Tt(u)?(c[u]=null,zt(f,u)&&(f[u]=null)):an(u)&&(u.value=null)),yt(l))Fa(l,o,12,[a,c]);else{const h=Tt(l),p=an(l);if(h||p){const g=()=>{if(e.f){const m=h?zt(f,l)?f[l]:c[l]:l.value;r?st(m)&&Fb(m,i):st(m)?m.includes(i)||m.push(i):h?(c[l]=[i],zt(f,l)&&(f[l]=c[l])):(l.value=[i],e.k&&(c[e.k]=l.value))}else h?(c[l]=a,zt(f,l)&&(f[l]=a)):p&&(l.value=a,e.k&&(c[e.k]=a))};a?(g.id=-1,zs(g,n)):g()}}}const zs=U3;function d8(e){return f8(e)}function f8(e,t){const n=Y4();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:p=en,insertStaticContent:g}=e,m=(J,re,Se,Ae=null,Be=null,Pe=null,Ve=!1,$e=null,Te=!!re.dynamicChildren)=>{if(J===re)return;J&&!Eo(J,re)&&(Ae=de(J),te(J,Be,Pe,!0),J=null),re.patchFlag===-2&&(Te=!1,re.dynamicChildren=null);const{type:De,ref:qe,shapeFlag:Je}=re;switch(De){case zu:y(J,re,Se,Ae);break;case $s:v(J,re,Se,Ae);break;case Gh:J==null&&_(re,Se,Ae,Ve);break;case Ke:W(J,re,Se,Ae,Be,Pe,Ve,$e,Te);break;default:Je&1?S(J,re,Se,Ae,Be,Pe,Ve,$e,Te):Je&6?D(J,re,Se,Ae,Be,Pe,Ve,$e,Te):(Je&64||Je&128)&&De.process(J,re,Se,Ae,Be,Pe,Ve,$e,Te,Ie)}qe!=null&&Be&&P0(qe,J&&J.ref,Pe,re||J,!re)},y=(J,re,Se,Ae)=>{if(J==null)s(re.el=o(re.children),Se,Ae);else{const Be=re.el=J.el;re.children!==J.children&&u(Be,re.children)}},v=(J,re,Se,Ae)=>{J==null?s(re.el=l(re.children||""),Se,Ae):re.el=J.el},_=(J,re,Se,Ae)=>{[J.el,J.anchor]=g(J.children,re,Se,Ae,J.el,J.anchor)},w=({el:J,anchor:re},Se,Ae)=>{let Be;for(;J&&J!==re;)Be=h(J),s(J,Se,Ae),J=Be;s(re,Se,Ae)},T=({el:J,anchor:re})=>{let Se;for(;J&&J!==re;)Se=h(J),r(J),J=Se;r(re)},S=(J,re,Se,Ae,Be,Pe,Ve,$e,Te)=>{Ve=Ve||re.type==="svg",J==null?E(re,Se,Ae,Be,Pe,Ve,$e,Te):U(J,re,Be,Pe,Ve,$e,Te)},E=(J,re,Se,Ae,Be,Pe,Ve,$e)=>{let Te,De;const{type:qe,props:Je,shapeFlag:et,transition:Re,dirs:Xe}=J;if(Te=J.el=a(J.type,Pe,Je&&Je.is,Je),et&8?c(Te,J.children):et&16&&P(J.children,Te,null,Ae,Be,Pe&&qe!=="foreignObject",Ve,$e),Xe&&mo(J,null,Ae,"created"),$(Te,J,J.scopeId,Ve,Ae),Je){for(const wt in Je)wt!=="value"&&!Kh(wt)&&i(Te,wt,null,Je[wt],Pe,J.children,Ae,Be,oe);"value"in Je&&i(Te,"value",null,Je.value),(De=Je.onVnodeBeforeMount)&&li(De,Ae,J)}Xe&&mo(J,null,Ae,"beforeMount");const ct=(!Be||Be&&!Be.pendingBranch)&&Re&&!Re.persisted;ct&&Re.beforeEnter(Te),s(Te,re,Se),((De=Je&&Je.onVnodeMounted)||ct||Xe)&&zs(()=>{De&&li(De,Ae,J),ct&&Re.enter(Te),Xe&&mo(J,null,Ae,"mounted")},Be)},$=(J,re,Se,Ae,Be)=>{if(Se&&p(J,Se),Ae)for(let Pe=0;Pe<Ae.length;Pe++)p(J,Ae[Pe]);if(Be){let Pe=Be.subTree;if(re===Pe){const Ve=Be.vnode;$(J,Ve,Ve.scopeId,Ve.slotScopeIds,Be.parent)}}},P=(J,re,Se,Ae,Be,Pe,Ve,$e,Te=0)=>{for(let De=Te;De<J.length;De++){const qe=J[De]=$e?Pa(J[De]):ci(J[De]);m(null,qe,re,Se,Ae,Be,Pe,Ve,$e)}},U=(J,re,Se,Ae,Be,Pe,Ve)=>{const $e=re.el=J.el;let{patchFlag:Te,dynamicChildren:De,dirs:qe}=re;Te|=J.patchFlag&16;const Je=J.props||An,et=re.props||An;let Re;Se&&go(Se,!1),(Re=et.onVnodeBeforeUpdate)&&li(Re,Se,re,J),qe&&mo(re,J,Se,"beforeUpdate"),Se&&go(Se,!0);const Xe=Be&&re.type!=="foreignObject";if(De?H(J.dynamicChildren,De,$e,Se,Ae,Xe,Pe):Ve||K(J,re,$e,null,Se,Ae,Xe,Pe,!1),Te>0){if(Te&16)z($e,re,Je,et,Se,Ae,Be);else if(Te&2&&Je.class!==et.class&&i($e,"class",null,et.class,Be),Te&4&&i($e,"style",Je.style,et.style,Be),Te&8){const ct=re.dynamicProps;for(let wt=0;wt<ct.length;wt++){const Pt=ct[wt],ut=Je[Pt],Ce=et[Pt];(Ce!==ut||Pt==="value")&&i($e,Pt,ut,Ce,Be,J.children,Se,Ae,oe)}}Te&1&&J.children!==re.children&&c($e,re.children)}else!Ve&&De==null&&z($e,re,Je,et,Se,Ae,Be);((Re=et.onVnodeUpdated)||qe)&&zs(()=>{Re&&li(Re,Se,re,J),qe&&mo(re,J,Se,"updated")},Ae)},H=(J,re,Se,Ae,Be,Pe,Ve)=>{for(let $e=0;$e<re.length;$e++){const Te=J[$e],De=re[$e],qe=Te.el&&(Te.type===Ke||!Eo(Te,De)||Te.shapeFlag&70)?f(Te.el):Se;m(Te,De,qe,null,Ae,Be,Pe,Ve,!0)}},z=(J,re,Se,Ae,Be,Pe,Ve)=>{if(Se!==Ae){if(Se!==An)for(const $e in Se)!Kh($e)&&!($e in Ae)&&i(J,$e,Se[$e],null,Ve,re.children,Be,Pe,oe);for(const $e in Ae){if(Kh($e))continue;const Te=Ae[$e],De=Se[$e];Te!==De&&$e!=="value"&&i(J,$e,De,Te,Ve,re.children,Be,Pe,oe)}"value"in Ae&&i(J,"value",Se.value,Ae.value)}},W=(J,re,Se,Ae,Be,Pe,Ve,$e,Te)=>{const De=re.el=J?J.el:o(""),qe=re.anchor=J?J.anchor:o("");let{patchFlag:Je,dynamicChildren:et,slotScopeIds:Re}=re;Re&&($e=$e?$e.concat(Re):Re),J==null?(s(De,Se,Ae),s(qe,Se,Ae),P(re.children,Se,qe,Be,Pe,Ve,$e,Te)):Je>0&&Je&64&&et&&J.dynamicChildren?(H(J.dynamicChildren,et,Se,Be,Pe,Ve,$e),(re.key!=null||Be&&re===Be.subTree)&&n_(J,re,!0)):K(J,re,Se,qe,Be,Pe,Ve,$e,Te)},D=(J,re,Se,Ae,Be,Pe,Ve,$e,Te)=>{re.slotScopeIds=$e,J==null?re.shapeFlag&512?Be.ctx.activate(re,Se,Ae,Ve,Te):V(re,Se,Ae,Be,Pe,Ve,Te):X(J,re,Te)},V=(J,re,Se,Ae,Be,Pe,Ve)=>{const $e=J.component=w8(J,Ae,Be);if(Dm(J)&&($e.ctx.renderer=Ie),S8($e),$e.asyncDep){if(Be&&Be.registerDep($e,Y),!J.el){const Te=$e.subTree=I($s);v(null,Te,re,Se)}return}Y($e,J,re,Se,Be,Pe,Ve)},X=(J,re,Se)=>{const Ae=re.component=J.component;if(F3(J,re,Se))if(Ae.asyncDep&&!Ae.asyncResolved){B(Ae,re,Se);return}else Ae.next=re,$3(Ae.update),Ae.update();else re.el=J.el,Ae.vnode=re},Y=(J,re,Se,Ae,Be,Pe,Ve)=>{const $e=()=>{if(J.isMounted){let{next:qe,bu:Je,u:et,parent:Re,vnode:Xe}=J,ct=qe,wt;go(J,!1),qe?(qe.el=Xe.el,B(J,qe,Ve)):qe=Xe,Je&&qh(Je),(wt=qe.props&&qe.props.onVnodeBeforeUpdate)&&li(wt,Re,qe,Xe),go(J,!0);const Pt=fv(J),ut=J.subTree;J.subTree=Pt,m(ut,Pt,f(ut.el),de(ut),J,Be,Pe),qe.el=Pt.el,ct===null&&B3(J,Pt.el),et&&zs(et,Be),(wt=qe.props&&qe.props.onVnodeUpdated)&&zs(()=>li(wt,Re,qe,Xe),Be)}else{let qe;const{el:Je,props:et}=re,{bm:Re,m:Xe,parent:ct}=J,wt=Uc(re);if(go(J,!1),Re&&qh(Re),!wt&&(qe=et&&et.onVnodeBeforeMount)&&li(qe,ct,re),go(J,!0),Je&&Ee){const Pt=()=>{J.subTree=fv(J),Ee(Je,J.subTree,J,Be,null)};wt?re.type.__asyncLoader().then(()=>!J.isUnmounted&&Pt()):Pt()}else{const Pt=J.subTree=fv(J);m(null,Pt,Se,Ae,J,Be,Pe),re.el=Pt.el}if(Xe&&zs(Xe,Be),!wt&&(qe=et&&et.onVnodeMounted)){const Pt=re;zs(()=>li(qe,ct,Pt),Be)}(re.shapeFlag&256||ct&&Uc(ct.vnode)&&ct.vnode.shapeFlag&256)&&J.a&&zs(J.a,Be),J.isMounted=!0,re=Se=Ae=null}},Te=J.effect=new Ub($e,()=>Yb(De),J.scope),De=J.update=()=>Te.run();De.id=J.uid,go(J,!0),De()},B=(J,re,Se)=>{re.component=J;const Ae=J.vnode.props;J.vnode=re,J.next=null,i8(J,re.props,Ae,Se),l8(J,re.children,Se),Uu(),eS(),Hu()},K=(J,re,Se,Ae,Be,Pe,Ve,$e,Te=!1)=>{const De=J&&J.children,qe=J?J.shapeFlag:0,Je=re.children,{patchFlag:et,shapeFlag:Re}=re;if(et>0){if(et&128){Q(De,Je,Se,Ae,Be,Pe,Ve,$e,Te);return}else if(et&256){L(De,Je,Se,Ae,Be,Pe,Ve,$e,Te);return}}Re&8?(qe&16&&oe(De,Be,Pe),Je!==De&&c(Se,Je)):qe&16?Re&16?Q(De,Je,Se,Ae,Be,Pe,Ve,$e,Te):oe(De,Be,Pe,!0):(qe&8&&c(Se,""),Re&16&&P(Je,Se,Ae,Be,Pe,Ve,$e,Te))},L=(J,re,Se,Ae,Be,Pe,Ve,$e,Te)=>{J=J||zl,re=re||zl;const De=J.length,qe=re.length,Je=Math.min(De,qe);let et;for(et=0;et<Je;et++){const Re=re[et]=Te?Pa(re[et]):ci(re[et]);m(J[et],Re,Se,null,Be,Pe,Ve,$e,Te)}De>qe?oe(J,Be,Pe,!0,!1,Je):P(re,Se,Ae,Be,Pe,Ve,$e,Te,Je)},Q=(J,re,Se,Ae,Be,Pe,Ve,$e,Te)=>{let De=0;const qe=re.length;let Je=J.length-1,et=qe-1;for(;De<=Je&&De<=et;){const Re=J[De],Xe=re[De]=Te?Pa(re[De]):ci(re[De]);if(Eo(Re,Xe))m(Re,Xe,Se,null,Be,Pe,Ve,$e,Te);else break;De++}for(;De<=Je&&De<=et;){const Re=J[Je],Xe=re[et]=Te?Pa(re[et]):ci(re[et]);if(Eo(Re,Xe))m(Re,Xe,Se,null,Be,Pe,Ve,$e,Te);else break;Je--,et--}if(De>Je){if(De<=et){const Re=et+1,Xe=Re<qe?re[Re].el:Ae;for(;De<=et;)m(null,re[De]=Te?Pa(re[De]):ci(re[De]),Se,Xe,Be,Pe,Ve,$e,Te),De++}}else if(De>et)for(;De<=Je;)te(J[De],Be,Pe,!0),De++;else{const Re=De,Xe=De,ct=new Map;for(De=Xe;De<=et;De++){const ne=re[De]=Te?Pa(re[De]):ci(re[De]);ne.key!=null&&ct.set(ne.key,De)}let wt,Pt=0;const ut=et-Xe+1;let Ce=!1,pe=0;const ge=new Array(ut);for(De=0;De<ut;De++)ge[De]=0;for(De=Re;De<=Je;De++){const ne=J[De];if(Pt>=ut){te(ne,Be,Pe,!0);continue}let Ye;if(ne.key!=null)Ye=ct.get(ne.key);else for(wt=Xe;wt<=et;wt++)if(ge[wt-Xe]===0&&Eo(ne,re[wt])){Ye=wt;break}Ye===void 0?te(ne,Be,Pe,!0):(ge[Ye-Xe]=De+1,Ye>=pe?pe=Ye:Ce=!0,m(ne,re[Ye],Se,null,Be,Pe,Ve,$e,Te),Pt++)}const Ne=Ce?h8(ge):zl;for(wt=Ne.length-1,De=ut-1;De>=0;De--){const ne=Xe+De,Ye=re[ne],_t=ne+1<qe?re[ne+1].el:Ae;ge[De]===0?m(null,Ye,Se,_t,Be,Pe,Ve,$e,Te):Ce&&(wt<0||De!==Ne[wt]?ee(Ye,Se,_t,2):wt--)}}},ee=(J,re,Se,Ae,Be=null)=>{const{el:Pe,type:Ve,transition:$e,children:Te,shapeFlag:De}=J;if(De&6){ee(J.component.subTree,re,Se,Ae);return}if(De&128){J.suspense.move(re,Se,Ae);return}if(De&64){Ve.move(J,re,Se,Ie);return}if(Ve===Ke){s(Pe,re,Se);for(let Je=0;Je<Te.length;Je++)ee(Te[Je],re,Se,Ae);s(J.anchor,re,Se);return}if(Ve===Gh){w(J,re,Se);return}if(Ae!==2&&De&1&&$e)if(Ae===0)$e.beforeEnter(Pe),s(Pe,re,Se),zs(()=>$e.enter(Pe),Be);else{const{leave:Je,delayLeave:et,afterLeave:Re}=$e,Xe=()=>s(Pe,re,Se),ct=()=>{Je(Pe,()=>{Xe(),Re&&Re()})};et?et(Pe,Xe,ct):ct()}else s(Pe,re,Se)},te=(J,re,Se,Ae=!1,Be=!1)=>{const{type:Pe,props:Ve,ref:$e,children:Te,dynamicChildren:De,shapeFlag:qe,patchFlag:Je,dirs:et}=J;if($e!=null&&P0($e,null,Se,J,!0),qe&256){re.ctx.deactivate(J);return}const Re=qe&1&&et,Xe=!Uc(J);let ct;if(Xe&&(ct=Ve&&Ve.onVnodeBeforeUnmount)&&li(ct,re,J),qe&6)ue(J.component,Se,Ae);else{if(qe&128){J.suspense.unmount(Se,Ae);return}Re&&mo(J,null,re,"beforeUnmount"),qe&64?J.type.remove(J,re,Se,Be,Ie,Ae):De&&(Pe!==Ke||Je>0&&Je&64)?oe(De,re,Se,!1,!0):(Pe===Ke&&Je&384||!Be&&qe&16)&&oe(Te,re,Se),Ae&&ie(J)}(Xe&&(ct=Ve&&Ve.onVnodeUnmounted)||Re)&&zs(()=>{ct&&li(ct,re,J),Re&&mo(J,null,re,"unmounted")},Se)},ie=J=>{const{type:re,el:Se,anchor:Ae,transition:Be}=J;if(re===Ke){_e(Se,Ae);return}if(re===Gh){T(J);return}const Pe=()=>{r(Se),Be&&!Be.persisted&&Be.afterLeave&&Be.afterLeave()};if(J.shapeFlag&1&&Be&&!Be.persisted){const{leave:Ve,delayLeave:$e}=Be,Te=()=>Ve(Se,Pe);$e?$e(J.el,Pe,Te):Te()}else Pe()},_e=(J,re)=>{let Se;for(;J!==re;)Se=h(J),r(J),J=Se;r(re)},ue=(J,re,Se)=>{const{bum:Ae,scope:Be,update:Pe,subTree:Ve,um:$e}=J;Ae&&qh(Ae),Be.stop(),Pe&&(Pe.active=!1,te(Ve,J,re,Se)),$e&&zs($e,re),zs(()=>{J.isUnmounted=!0},re),re&&re.pendingBranch&&!re.isUnmounted&&J.asyncDep&&!J.asyncResolved&&J.suspenseId===re.pendingId&&(re.deps--,re.deps===0&&re.resolve())},oe=(J,re,Se,Ae=!1,Be=!1,Pe=0)=>{for(let Ve=Pe;Ve<J.length;Ve++)te(J[Ve],re,Se,Ae,Be)},de=J=>J.shapeFlag&6?de(J.component.subTree):J.shapeFlag&128?J.suspense.next():h(J.anchor||J.el),ae=(J,re,Se)=>{J==null?re._vnode&&te(re._vnode,null,null,!0):m(re._vnode||null,J,re,null,null,null,Se),eS(),Dk(),re._vnode=J},Ie={p:m,um:te,m:ee,r:ie,mt:V,mc:P,pc:K,pbc:H,n:de,o:e};let ke,Ee;return t&&([ke,Ee]=t(Ie)),{render:ae,hydrate:ke,createApp:c8(ae,ke)}}function go({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function n_(e,t,n=!1){const s=e.children,r=t.children;if(st(s)&&st(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]=Pa(r[i]),o.el=a.el),n||n_(a,o)),o.type===zu&&(o.el=a.el)}}function h8(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}const p8=e=>e.__isTeleport,zc=e=>e&&(e.disabled||e.disabled===""),cS=e=>typeof SVGElement<"u"&&e instanceof SVGElement,$0=(e,t)=>{const n=e&&e.to;return Tt(n)?t?t(n):null:n},m8={__isTeleport:!0,process(e,t,n,s,r,i,a,o,l,u){const{mc:c,pc:f,pbc:h,o:{insert:p,querySelector:g,createText:m,createComment:y}}=u,v=zc(t.props);let{shapeFlag:_,children:w,dynamicChildren:T}=t;if(e==null){const S=t.el=m(""),E=t.anchor=m("");p(S,n,s),p(E,n,s);const $=t.target=$0(t.props,g),P=t.targetAnchor=m("");$&&(p(P,$),a=a||cS($));const U=(H,z)=>{_&16&&c(w,H,z,r,i,a,o,l)};v?U(n,E):$&&U($,P)}else{t.el=e.el;const S=t.anchor=e.anchor,E=t.target=e.target,$=t.targetAnchor=e.targetAnchor,P=zc(e.props),U=P?n:E,H=P?S:$;if(a=a||cS(E),T?(h(e.dynamicChildren,T,U,r,i,a,o),n_(e,t,!0)):l||f(e,t,U,H,r,i,a,o,!1),v)P||gh(t,n,S,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const z=t.target=$0(t.props,g);z&&gh(t,z,null,u,0)}else P&&gh(t,E,$,u,1)}nI(t)},remove(e,t,n,s,{um:r,o:{remove:i}},a){const{shapeFlag:o,children:l,anchor:u,targetAnchor:c,target:f,props:h}=e;if(f&&i(c),(a||!zc(h))&&(i(u),o&16))for(let p=0;p<l.length;p++){const g=l[p];r(g,t,n,!0,!!g.dynamicChildren)}},move:gh,hydrate:g8};function gh(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||zc(c))&&l&16)for(let h=0;h<u.length;h++)r(u[h],t,n,2);f&&s(o,t,n)}function g8(e,t,n,s,r,i,{o:{nextSibling:a,parentNode:o,querySelector:l}},u){const c=t.target=$0(t.props,l);if(c){const f=c._lpa||c.firstChild;if(t.shapeFlag&16)if(zc(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)}nI(t)}return t.anchor&&a(t.anchor)}const rf=m8;function nI(e){const t=e.ctx;if(t&&t.ut){let n=e.children[0].el;for(;n!==e.targetAnchor;)n.nodeType===1&&n.setAttribute("data-v-owner",t.uid),n=n.nextSibling;t.ut()}}const Ke=Symbol(void 0),zu=Symbol(void 0),$s=Symbol(void 0),Gh=Symbol(void 0),jc=[];let Wr=null;function C(e=!1){jc.push(Wr=e?null:[])}function v8(){jc.pop(),Wr=jc[jc.length-1]||null}let yd=1;function dS(e){yd+=e}function sI(e){return e.dynamicChildren=yd>0?Wr||zl:null,v8(),yd>0&&Wr&&Wr.push(e),e}function j(e,t,n,s,r,i){return sI(R(e,t,n,s,r,i,!0))}function he(e,t,n,s,r){return sI(I(e,t,n,s,r,!0))}function pn(e){return e?e.__v_isVNode===!0:!1}function Eo(e,t){return e.type===t.type&&e.key===t.key}const Bm="__vInternal",rI=({key:e})=>e??null,Yh=({ref:e,ref_key:t,ref_for:n})=>e!=null?Tt(e)||an(e)||yt(e)?{i:hs,r:e,k:t,f:!!n}:e:null;function R(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&&rI(t),ref:t&&Yh(t),scopeId:Lm,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:hs};return o?(s_(l,n),i&128&&e.normalize(l)):n&&(l.shapeFlag|=Tt(n)?8:16),yd>0&&!a&&Wr&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&Wr.push(l),l}const I=y8;function y8(e,t=null,n=null,s=0,r=null,i=!1){if((!e||e===qk)&&(e=$s),pn(e)){const o=na(e,t,!0);return n&&s_(o,n),yd>0&&!i&&Wr&&(o.shapeFlag&6?Wr[Wr.indexOf(e)]=o:Wr.push(o)),o.patchFlag|=-2,o}if(k8(e)&&(e=e.__vccOpts),t){t=Vm(t);let{class:o,style:l}=t;o&&!Tt(o)&&(t.class=M(o)),Mt(l)&&(Ok(l)&&!st(l)&&(l=as({},l)),t.style=rt(l))}const a=Tt(e)?1:V3(e)?128:p8(e)?64:Mt(e)?4:yt(e)?2:0;return R(e,t,n,s,r,a,i,!0)}function Vm(e){return e?Ok(e)||Bm in e?as({},e):e:null}function na(e,t,n=!1){const{props:s,ref:r,patchFlag:i,children:a}=e,o=t?Rt(s||{},t):s;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:o,key:o&&rI(o),ref:t&&t.ref?n&&r?st(r)?r.concat(Yh(t)):[r,Yh(t)]:Yh(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ke?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&na(e.ssContent),ssFallback:e.ssFallback&&na(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Fe(e=" ",t=0){return I(zu,null,e,t)}function b8(e,t){const n=I(Gh,null,e);return n.staticCount=t,n}function le(e="",t=!1){return t?(C(),he($s,null,e)):I($s,null,e)}function ci(e){return e==null||typeof e=="boolean"?I($s):st(e)?I(Ke,null,e.slice()):typeof e=="object"?Pa(e):I(zu,null,String(e))}function Pa(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:na(e)}function s_(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(st(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),s_(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!(Bm in t)?t._ctx=hs:r===3&&hs&&(hs.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else yt(t)?(t={default:t,_ctx:hs},n=32):(t=String(t),s&64?(n=16,t=[Fe(t)]):n=8);e.children=t,e.shapeFlag|=n}function Rt(...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=rt([t.style,s.style]);else if(Pm(r)){const i=t[r],a=s[r];a&&i!==a&&!(st(i)&&i.includes(a))&&(t[r]=i?[].concat(i,a):a)}else r!==""&&(t[r]=s[r])}return t}function li(e,t,n,s=null){Cr(e,t,7,[n,s])}const _8=tI();let T8=0;function w8(e,t,n){const s=e.type,r=(t?t.appContext:e.appContext)||_8,i={uid:T8++,vnode:e,type:s,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new mk(!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:Qk(s,r),emitsOptions:Bk(s,r),emit:null,emitted:null,propsDefaults:An,inheritAttrs:s.inheritAttrs,ctx:An,data:An,props:An,attrs:An,slots:An,refs:An,setupState:An,setupContext: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=R3.bind(null,i),e.ce&&e.ce(i),i}let Wn=null;const It=()=>Wn||hs,lu=e=>{Wn=e,e.scope.on()},Vo=()=>{Wn&&Wn.scope.off(),Wn=null};function iI(e){return e.vnode.shapeFlag&4}let bd=!1;function S8(e,t=!1){bd=t;const{props:n,children:s}=e.vnode,r=iI(e);r8(e,n,r,t),o8(e,s);const i=r?C8(e,t):void 0;return bd=!1,i}function C8(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Bo(new Proxy(e.ctx,J3));const{setup:s}=n;if(s){const r=e.setupContext=s.length>1?oI(e):null;lu(e),Uu();const i=Fa(s,e,0,[e.props,r]);if(Hu(),Vo(),cd(i)){if(i.then(Vo,Vo),t)return i.then(a=>{fS(e,a,t)}).catch(a=>{Mm(a,e,0)});e.asyncDep=i}else fS(e,i,t)}else aI(e,t)}function fS(e,t,n){yt(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Mt(t)&&(e.setupState=$k(t)),aI(e,n)}let hS;function aI(e,t,n){const s=e.type;if(!e.render){if(!t&&hS&&!s.render){const r=s.template||e_(e).template;if(r){const{isCustomElement:i,compilerOptions:a}=e.appContext.config,{delimiters:o,compilerOptions:l}=s,u=as(as({isCustomElement:i,delimiters:o},a),l);s.render=hS(r,u)}}e.render=s.render||en}lu(e),Uu(),Z3(e),Hu(),Vo()}function E8(e){return new Proxy(e.attrs,{get(t,n){return er(e,"get","$attrs"),t[n]}})}function oI(e){const t=s=>{e.exposed=s||{}};let n;return{get attrs(){return n||(n=E8(e))},slots:e.slots,emit:e.emit,expose:t}}function Um(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy($k(Bo(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Hc)return Hc[n](e)},has(t,n){return n in t||n in Hc}}))}function x8(e,t=!0){return yt(e)?e.displayName||e.name:e.name||t&&e.__name}function k8(e){return yt(e)&&"__vccOpts"in e}const k=(e,t)=>Mk(e,t,bd);function us(){return lI().slots}function rl(){return lI().attrs}function lI(){const e=It();return e.setupContext||(e.setupContext=oI(e))}function lt(e,t,n){const s=arguments.length;return s===2?Mt(t)&&!st(t)?pn(t)?I(e,null,[t]):I(e,t):I(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&pn(n)&&(n=[n]),I(e,t,n))}const I8=Symbol(""),O8=()=>Qe(I8),A8="3.2.47",P8="http://www.w3.org/2000/svg",xo=typeof document<"u"?document:null,pS=xo&&xo.createElement("template"),$8={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?xo.createElementNS(P8,e):xo.createElement(e,n?{is:n}:void 0);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>xo.createTextNode(e),createComment:e=>xo.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>xo.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{pS.innerHTML=s?`<svg>${e}</svg>`:e;const o=pS.content;if(s){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]}};function N8(e,t,n){const s=e._vtc;s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function M8(e,t,n){const s=e.style,r=Tt(n);if(n&&!r){if(t&&!Tt(t))for(const i in t)n[i]==null&&N0(s,i,"");for(const i in n)N0(s,i,n[i])}else{const i=s.display;r?t!==n&&(s.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(s.display=i)}}const mS=/\s*!important$/;function N0(e,t,n){if(st(n))n.forEach(s=>N0(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=R8(e,t);mS.test(n)?e.setProperty(Za(s),n.replace(mS,""),"important"):e[s]=n}}const gS=["Webkit","Moz","ms"],mv={};function R8(e,t){const n=mv[t];if(n)return n;let s=kr(t);if(s!=="filter"&&s in e)return mv[t]=s;s=sf(s);for(let r=0;r<gS.length;r++){const i=gS[r]+s;if(i in e)return mv[t]=i}return t}const vS="http://www.w3.org/1999/xlink";function L8(e,t,n,s,r){if(s&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(vS,t.slice(6,t.length)):e.setAttributeNS(vS,t,n);else{const i=U4(t);n==null||i&&!fk(n)?e.removeAttribute(t):e.setAttribute(t,i?"":n)}}function D8(e,t,n,s,r,i,a){if(t==="innerHTML"||t==="textContent"){s&&a(s,r,i),e[t]=n??"";return}if(t==="value"&&e.tagName!=="PROGRESS"&&!e.tagName.includes("-")){e._value=n;const l=n??"";(e.value!==l||e.tagName==="OPTION")&&(e.value=l),n==null&&e.removeAttribute(t);return}let o=!1;if(n===""||n==null){const l=typeof e[t];l==="boolean"?n=fk(n):n==null&&l==="string"?(n="",o=!0):l==="number"&&(n=0,o=!0)}try{e[t]=n}catch{}o&&e.removeAttribute(t)}function Wi(e,t,n,s){e.addEventListener(t,n,s)}function F8(e,t,n,s){e.removeEventListener(t,n,s)}function B8(e,t,n,s,r=null){const i=e._vei||(e._vei={}),a=i[t];if(s&&a)a.value=s;else{const[o,l]=V8(t);if(s){const u=i[t]=z8(s,r);Wi(e,o,u,l)}else a&&(F8(e,o,a,l),i[t]=void 0)}}const yS=/(?:Once|Passive|Capture)$/;function V8(e){let t;if(yS.test(e)){t={};let s;for(;s=e.match(yS);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Za(e.slice(2)),t]}let gv=0;const U8=Promise.resolve(),H8=()=>gv||(U8.then(()=>gv=0),gv=Date.now());function z8(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;Cr(j8(s,n.value),t,5,[s])};return n.value=e,n.attached=H8(),n}function j8(e,t){if(st(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 bS=/^on[a-z]/,K8=(e,t,n,s,r=!1,i,a,o,l)=>{t==="class"?N8(e,s,r):t==="style"?M8(e,n,s):Pm(t)?Db(t)||B8(e,t,n,s,a):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):W8(e,t,s,r))?D8(e,t,s,i,a,o,l):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),L8(e,t,s,r))};function W8(e,t,n,s){return s?!!(t==="innerHTML"||t==="textContent"||t in e&&bS.test(t)&&yt(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||bS.test(t)&&Tt(n)?!1:t in e}const wa="transition",pc="animation",Rn=(e,{slots:t})=>lt(Hk,cI(e),t);Rn.displayName="Transition";const uI={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},q8=Rn.props=as({},Hk.props,uI),vo=(e,t=[])=>{st(e)?e.forEach(n=>n(...t)):e&&e(...t)},_S=e=>e?st(e)?e.some(t=>t.length>1):e.length>1:!1;function cI(e){const t={};for(const W in e)W in uI||(t[W]=e[W]);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:p=`${n}-leave-to`}=e,g=G8(r),m=g&&g[0],y=g&&g[1],{onBeforeEnter:v,onEnter:_,onEnterCancelled:w,onLeave:T,onLeaveCancelled:S,onBeforeAppear:E=v,onAppear:$=_,onAppearCancelled:P=w}=t,U=(W,D,V)=>{ka(W,D?c:o),ka(W,D?u:a),V&&V()},H=(W,D)=>{W._isLeaving=!1,ka(W,f),ka(W,p),ka(W,h),D&&D()},z=W=>(D,V)=>{const X=W?$:_,Y=()=>U(D,W,V);vo(X,[D,Y]),TS(()=>{ka(D,W?l:i),zi(D,W?c:o),_S(X)||wS(D,s,m,Y)})};return as(t,{onBeforeEnter(W){vo(v,[W]),zi(W,i),zi(W,a)},onBeforeAppear(W){vo(E,[W]),zi(W,l),zi(W,u)},onEnter:z(!1),onAppear:z(!0),onLeave(W,D){W._isLeaving=!0;const V=()=>H(W,D);zi(W,f),fI(),zi(W,h),TS(()=>{W._isLeaving&&(ka(W,f),zi(W,p),_S(T)||wS(W,s,y,V))}),vo(T,[W,V])},onEnterCancelled(W){U(W,!1),vo(w,[W])},onAppearCancelled(W){U(W,!0),vo(P,[W])},onLeaveCancelled(W){H(W),vo(S,[W])}})}function G8(e){if(e==null)return null;if(Mt(e))return[vv(e.enter),vv(e.leave)];{const t=vv(e);return[t,t]}}function vv(e){return G4(e)}function zi(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function ka(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function TS(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Y8=0;function wS(e,t,n,s){const r=e._endId=++Y8,i=()=>{r===e._endId&&s()};if(n)return setTimeout(i,n);const{type:a,timeout:o,propCount:l}=dI(e,t);if(!a)return s();const u=a+"end";let c=0;const f=()=>{e.removeEventListener(u,h),i()},h=p=>{p.target===e&&++c>=l&&f()};setTimeout(()=>{c<l&&f()},o+1),e.addEventListener(u,h)}function dI(e,t){const n=window.getComputedStyle(e),s=g=>(n[g]||"").split(", "),r=s(`${wa}Delay`),i=s(`${wa}Duration`),a=SS(r,i),o=s(`${pc}Delay`),l=s(`${pc}Duration`),u=SS(o,l);let c=null,f=0,h=0;t===wa?a>0&&(c=wa,f=a,h=i.length):t===pc?u>0&&(c=pc,f=u,h=l.length):(f=Math.max(a,u),c=f>0?a>u?wa:pc:null,h=c?c===wa?i.length:l.length:0);const p=c===wa&&/\b(transform|all)(,|$)/.test(s(`${wa}Property`).toString());return{type:c,timeout:f,propCount:h,hasTransform:p}}function SS(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,s)=>CS(n)+CS(e[s])))}function CS(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function fI(){return document.body.offsetHeight}const hI=new WeakMap,pI=new WeakMap,mI={name:"TransitionGroup",props:as({},q8,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=It(),s=Uk();let r,i;return ha(()=>{if(!r.length)return;const a=e.moveClass||`${e.name||"v"}-move`;if(!eF(r[0].el,n.vnode.el,a))return;r.forEach(Q8),r.forEach(J8);const o=r.filter(Z8);fI(),o.forEach(l=>{const u=l.el,c=u.style;zi(u,a),c.transform=c.webkitTransform=c.transitionDuration="";const f=u._moveCb=h=>{h&&h.target!==u||(!h||/transform$/.test(h.propertyName))&&(u.removeEventListener("transitionend",f),u._moveCb=null,ka(u,a))};u.addEventListener("transitionend",f)})}),()=>{const a=Qt(e),o=cI(a);let l=a.tag||Ke;r=i,i=t.default?Qb(t.default()):[];for(let u=0;u<i.length;u++){const c=i[u];c.key!=null&&gd(c,md(c,o,s,n))}if(r)for(let u=0;u<r.length;u++){const c=r[u];gd(c,md(c,o,s,n)),hI.set(c,c.el.getBoundingClientRect())}return I(l,null,i)}}},X8=e=>delete e.mode;mI.props;const gI=mI;function Q8(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function J8(e){pI.set(e,e.el.getBoundingClientRect())}function Z8(e){const t=hI.get(e),n=pI.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 eF(e,t,n){const s=e.cloneNode();e._vtc&&e._vtc.forEach(a=>{a.split(/\s+/).forEach(o=>o&&s.classList.remove(o))}),n.split(/\s+/).forEach(a=>a&&s.classList.add(a)),s.style.display="none";const r=t.nodeType===1?t:t.parentNode;r.appendChild(s);const{hasTransform:i}=dI(s);return r.removeChild(s),i}const za=e=>{const t=e.props["onUpdate:modelValue"]||!1;return st(t)?n=>qh(t,n):t};function tF(e){e.target.composing=!0}function ES(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const sa={created(e,{modifiers:{lazy:t,trim:n,number:s}},r){e._assign=za(r);const i=s||r.props&&r.props.type==="number";Wi(e,t?"change":"input",a=>{if(a.target.composing)return;let o=e.value;n&&(o=o.trim()),i&&(o=$p(o)),e._assign(o)}),n&&Wi(e,"change",()=>{e.value=e.value.trim()}),t||(Wi(e,"compositionstart",tF),Wi(e,"compositionend",ES),Wi(e,"change",ES))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:s,number:r}},i){if(e._assign=za(i),e.composing||document.activeElement===e&&e.type!=="range"&&(n||s&&e.value.trim()===t||(r||e.type==="number")&&$p(e.value)===t))return;const a=t??"";e.value!==a&&(e.value=a)}},_d={deep:!0,created(e,t,n){e._assign=za(n),Wi(e,"change",()=>{const s=e._modelValue,r=uu(e),i=e.checked,a=e._assign;if(st(s)){const o=Lb(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(Vu(s)){const o=new Set(s);i?o.add(r):o.delete(r),a(o)}else a(vI(e,i))})},mounted:xS,beforeUpdate(e,t,n){e._assign=za(n),xS(e,t,n)}};function xS(e,{value:t,oldValue:n},s){e._modelValue=t,st(t)?e.checked=Lb(t,s.props.value)>-1:Vu(t)?e.checked=t.has(s.props.value):t!==n&&(e.checked=Go(t,vI(e,!0)))}const r_={created(e,{value:t},n){e.checked=Go(t,n.props.value),e._assign=za(n),Wi(e,"change",()=>{e._assign(uu(e))})},beforeUpdate(e,{value:t,oldValue:n},s){e._assign=za(s),t!==n&&(e.checked=Go(t,s.props.value))}},nF={deep:!0,created(e,{value:t,modifiers:{number:n}},s){const r=Vu(t);Wi(e,"change",()=>{const i=Array.prototype.filter.call(e.options,a=>a.selected).map(a=>n?$p(uu(a)):uu(a));e._assign(e.multiple?r?new Set(i):i:i[0])}),e._assign=za(s)},mounted(e,{value:t}){kS(e,t)},beforeUpdate(e,t,n){e._assign=za(n)},updated(e,{value:t}){kS(e,t)}};function kS(e,t){const n=e.multiple;if(!(n&&!st(t)&&!Vu(t))){for(let s=0,r=e.options.length;s<r;s++){const i=e.options[s],a=uu(i);if(n)st(t)?i.selected=Lb(t,a)>-1:i.selected=t.has(a);else if(Go(uu(i),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function uu(e){return"_value"in e?e._value:e.value}function vI(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const sF={created(e,t,n){vh(e,t,n,null,"created")},mounted(e,t,n){vh(e,t,n,null,"mounted")},beforeUpdate(e,t,n,s){vh(e,t,n,s,"beforeUpdate")},updated(e,t,n,s){vh(e,t,n,s,"updated")}};function rF(e,t){switch(e){case"SELECT":return nF;case"TEXTAREA":return sa;default:switch(t){case"checkbox":return _d;case"radio":return r_;default:return sa}}}function vh(e,t,n,s,r){const a=rF(e.tagName,n.props&&n.props.type)[r];a&&a(e,t,n,s)}const iF=["ctrl","shift","alt","meta"],aF={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)=>iF.some(n=>e[`${n}Key`]&&!t.includes(n))},dt=(e,t)=>(n,...s)=>{for(let r=0;r<t.length;r++){const i=aF[t[r]];if(i&&i(n,t))return}return e(n,...s)},oF={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},jt=(e,t)=>n=>{if(!("key"in n))return;const s=Za(n.key);if(t.some(r=>r===s||oF[r]===s))return e(n)},Vt={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):mc(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),mc(e,!0),s.enter(e)):s.leave(e,()=>{mc(e,!1)}):mc(e,t))},beforeUnmount(e,{value:t}){mc(e,t)}};function mc(e,t){e.style.display=t?e._vod:"none"}const lF=as({patchProp:K8},$8);let IS;function yI(){return IS||(IS=d8(lF))}const cu=(...e)=>{yI().render(...e)},Hm=(...e)=>{const t=yI().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=uF(s);if(!r)return;const i=t._component;!yt(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.innerHTML="";const a=n(r,!1,r instanceof SVGElement);return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),a},t};function uF(e){return Tt(e)?document.querySelector(e):e}const cF='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',dF=e=>getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,OS=e=>Array.from(e.querySelectorAll(cF)).filter(t=>fF(t)&&dF(t)),fF=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}},Xh=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},bI=e=>!e.getAttribute("aria-owns"),_I=(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},Qh=e=>{e&&(e.focus(),!bI(e)&&e.click())},Cn=(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)},AS=e=>t=>t.pointerType==="mouse"?e(t):void 0;var hF=Object.defineProperty,pF=Object.defineProperties,mF=Object.getOwnPropertyDescriptors,PS=Object.getOwnPropertySymbols,gF=Object.prototype.hasOwnProperty,vF=Object.prototype.propertyIsEnumerable,$S=(e,t,n)=>t in e?hF(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,yF=(e,t)=>{for(var n in t||(t={}))gF.call(t,n)&&$S(e,n,t[n]);if(PS)for(var n of PS(t))vF.call(t,n)&&$S(e,n,t[n]);return e},bF=(e,t)=>pF(e,mF(t));function NS(e,t){var n;const s=Jt();return Gs(()=>{s.value=e()},bF(yF({},t),{flush:(n=t==null?void 0:t.flush)!=null?n:"sync"})),nl(s)}var MS;const Kt=typeof window<"u",_F=e=>typeof e<"u",TF=e=>typeof e=="function",wF=e=>typeof e=="string",du=()=>{},TI=Kt&&((MS=window==null?void 0:window.navigator)==null?void 0:MS.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function ja(e){return typeof e=="function"?e():d(e)}function wI(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 SF(e,t={}){let n,s,r=du;const i=o=>{clearTimeout(o),r(),r=du};return o=>{const l=ja(e),u=ja(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 CF(e,t=!0,n=!0,s=!1){let r=0,i,a=!0,o=du,l;const u=()=>{i&&(clearTimeout(i),i=void 0,o(),o=du)};return f=>{const h=ja(e),p=Date.now()-r,g=()=>l=f();return u(),h<=0?(r=Date.now(),g()):(p>h&&(n||!a)?(r=Date.now(),g()):t&&(l=new Promise((m,y)=>{o=s?y:m,i=setTimeout(()=>{r=Date.now(),a=!0,m(g()),u()},Math.max(0,h-p))})),!n&&!i&&(i=setTimeout(()=>a=!0,h)),a=!1,l)}}function EF(e){return e}function af(e){return gk()?(vk(e),!0):!1}function xF(e,t=200,n={}){return wI(SF(t,n),e)}function kF(e,t=200,n={}){const s=G(e.value),r=xF(()=>{s.value=e.value},t,n);return Oe(e,()=>r()),s}function SI(e,t=200,n=!1,s=!0,r=!1){return wI(CF(t,n,s,r),e)}function i_(e,t=!0){It()?vt(e):t?e():at(e)}function Xo(e,t,n={}){const{immediate:s=!0}=n,r=G(!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)},ja(t))}return s&&(r.value=!0,Kt&&l()),af(o),{isPending:nl(r),start:l,stop:o}}function qs(e){var t;const n=ja(e);return(t=n==null?void 0:n.$el)!=null?t:n}const il=Kt?window:void 0,IF=Kt?window.document:void 0;function dn(...e){let t,n,s,r;if(wF(e[0])||Array.isArray(e[0])?([n,s,r]=e,t=il):[t,n,s,r]=e,!t)return du;Array.isArray(n)||(n=[n]),Array.isArray(s)||(s=[s]);const i=[],a=()=>{i.forEach(c=>c()),i.length=0},o=(c,f,h,p)=>(c.addEventListener(f,h,p),()=>c.removeEventListener(f,h,p)),l=Oe(()=>[qs(t),ja(r)],([c,f])=>{a(),c&&i.push(...n.flatMap(h=>s.map(p=>o(c,h,p,f))))},{immediate:!0,flush:"post"}),u=()=>{l(),a()};return af(u),u}let RS=!1;function a_(e,t,n={}){const{window:s=il,ignore:r=[],capture:i=!0,detectIframe:a=!1}=n;if(!s)return;TI&&!RS&&(RS=!0,Array.from(s.document.body.children).forEach(h=>h.addEventListener("click",du)));let o=!0;const l=h=>r.some(p=>{if(typeof p=="string")return Array.from(s.document.querySelectorAll(p)).some(g=>g===h.target||h.composedPath().includes(g));{const g=qs(p);return g&&(h.target===g||h.composedPath().includes(g))}}),c=[dn(s,"click",h=>{const p=qs(e);if(!(!p||p===h.target||h.composedPath().includes(p))){if(h.detail===0&&(o=!l(h)),!o){o=!0;return}t(h)}},{passive:!0,capture:i}),dn(s,"pointerdown",h=>{const p=qs(e);p&&(o=!h.composedPath().includes(p)&&!l(h))},{passive:!0}),a&&dn(s,"blur",h=>{var p;const g=qs(e);((p=s.document.activeElement)==null?void 0:p.tagName)==="IFRAME"&&!(g!=null&&g.contains(s.document.activeElement))&&t(h)})].filter(Boolean);return()=>c.forEach(h=>h())}function CI(e,t=!1){const n=G(),s=()=>n.value=!!e();return s(),i_(s,t),n}function OF(e){return JSON.parse(JSON.stringify(e))}const LS=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},DS="__vueuse_ssr_handlers__";LS[DS]=LS[DS]||{};function AF(e,t,{window:n=il,initialValue:s=""}={}){const r=G(s),i=k(()=>{var a;return qs(t)||((a=n==null?void 0:n.document)==null?void 0:a.documentElement)});return Oe([i,()=>ja(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}),Oe(r,a=>{var o;(o=i.value)!=null&&o.style&&i.value.style.setProperty(ja(e),a)}),r}function PF({document:e=IF}={}){if(!e)return G("visible");const t=G(e.visibilityState);return dn(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var FS=Object.getOwnPropertySymbols,$F=Object.prototype.hasOwnProperty,NF=Object.prototype.propertyIsEnumerable,MF=(e,t)=>{var n={};for(var s in e)$F.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(e!=null&&FS)for(var s of FS(e))t.indexOf(s)<0&&NF.call(e,s)&&(n[s]=e[s]);return n};function _s(e,t,n={}){const s=n,{window:r=il}=s,i=MF(s,["window"]);let a;const o=CI(()=>r&&"ResizeObserver"in r),l=()=>{a&&(a.disconnect(),a=void 0)},u=Oe(()=>qs(e),f=>{l(),o.value&&r&&f&&(a=new ResizeObserver(t),a.observe(f,i))},{immediate:!0,flush:"post"}),c=()=>{l(),u()};return af(c),{isSupported:o,stop:c}}function BS(e,t={}){const{reset:n=!0,windowResize:s=!0,windowScroll:r=!0,immediate:i=!0}=t,a=G(0),o=G(0),l=G(0),u=G(0),c=G(0),f=G(0),h=G(0),p=G(0);function g(){const m=qs(e);if(!m){n&&(a.value=0,o.value=0,l.value=0,u.value=0,c.value=0,f.value=0,h.value=0,p.value=0);return}const y=m.getBoundingClientRect();a.value=y.height,o.value=y.bottom,l.value=y.left,u.value=y.right,c.value=y.top,f.value=y.width,h.value=y.x,p.value=y.y}return _s(e,g),Oe(()=>qs(e),m=>!m&&g()),r&&dn("scroll",g,{capture:!0,passive:!0}),s&&dn("resize",g,{passive:!0}),i_(()=>{i&&g()}),{height:a,bottom:o,left:l,right:u,top:c,width:f,x:h,y:p,update:g}}var VS=Object.getOwnPropertySymbols,RF=Object.prototype.hasOwnProperty,LF=Object.prototype.propertyIsEnumerable,DF=(e,t)=>{var n={};for(var s in e)RF.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(e!=null&&VS)for(var s of VS(e))t.indexOf(s)<0&&LF.call(e,s)&&(n[s]=e[s]);return n};function FF(e,t,n={}){const s=n,{window:r=il}=s,i=DF(s,["window"]);let a;const o=CI(()=>r&&"MutationObserver"in r),l=()=>{a&&(a.disconnect(),a=void 0)},u=Oe(()=>qs(e),f=>{l(),o.value&&r&&f&&(a=new MutationObserver(t),a.observe(f,i))},{immediate:!0}),c=()=>{l(),u()};return af(c),{isSupported:o,stop:c}}var US;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(US||(US={}));var BF=Object.defineProperty,HS=Object.getOwnPropertySymbols,VF=Object.prototype.hasOwnProperty,UF=Object.prototype.propertyIsEnumerable,zS=(e,t,n)=>t in e?BF(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,HF=(e,t)=>{for(var n in t||(t={}))VF.call(t,n)&&zS(e,n,t[n]);if(HS)for(var n of HS(t))UF.call(t,n)&&zS(e,n,t[n]);return e};const zF={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]};HF({linear:EF},zF);function jF(e,t,n,s={}){var r,i,a;const{clone:o=!1,passive:l=!1,eventName:u,deep:c=!1,defaultValue:f}=s,h=It(),p=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 m=v=>o?TF(o)?o(v):OF(v):v,y=()=>_F(e[t])?m(e[t]):f;if(l){const v=y(),_=G(v);return Oe(()=>e[t],w=>_.value=m(w)),Oe(_,w=>{(w!==e[t]||c)&&p(g,w)},{deep:c}),_}else return k({get(){return y()},set(v){p(g,v)}})}function KF({window:e=il}={}){if(!e)return G(!1);const t=G(e.document.hasFocus());return dn(e,"blur",()=>{t.value=!1}),dn(e,"focus",()=>{t.value=!0}),t}function WF(e={}){const{window:t=il,initialWidth:n=1/0,initialHeight:s=1/0,listenOrientation:r=!0,includeScrollbar:i=!0}=e,a=G(n),o=G(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(),i_(l),dn("resize",l,{passive:!0}),r&&dn("orientationchange",l,{passive:!0}),{width:a,height:o}}const EI=()=>Kt&&/firefox/i.test(window.navigator.userAgent),qF=(e,t)=>{if(!Kt||!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},jS=e=>{let t=0,n=e;for(;n;)t+=n.offsetTop,n=n.offsetParent;return t},GF=(e,t)=>Math.abs(jS(e)-jS(t)),o_=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}};var YF=typeof global=="object"&&global&&global.Object===Object&&global;const xI=YF;var XF=typeof self=="object"&&self&&self.Object===Object&&self,QF=xI||XF||Function("return this")();const ni=QF;var JF=ni.Symbol;const Ir=JF;var kI=Object.prototype,ZF=kI.hasOwnProperty,e6=kI.toString,gc=Ir?Ir.toStringTag:void 0;function t6(e){var t=ZF.call(e,gc),n=e[gc];try{e[gc]=void 0;var s=!0}catch{}var r=e6.call(e);return s&&(t?e[gc]=n:delete e[gc]),r}var n6=Object.prototype,s6=n6.toString;function r6(e){return s6.call(e)}var i6="[object Null]",a6="[object Undefined]",KS=Ir?Ir.toStringTag:void 0;function al(e){return e==null?e===void 0?a6:i6:KS&&KS in Object(e)?t6(e):r6(e)}function ki(e){return e!=null&&typeof e=="object"}var o6="[object Symbol]";function zm(e){return typeof e=="symbol"||ki(e)&&al(e)==o6}function II(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 l6=Array.isArray;const Ls=l6;var u6=1/0,WS=Ir?Ir.prototype:void 0,qS=WS?WS.toString:void 0;function OI(e){if(typeof e=="string")return e;if(Ls(e))return II(e,OI)+"";if(zm(e))return qS?qS.call(e):"";var t=e+"";return t=="0"&&1/e==-u6?"-0":t}var c6=/\s/;function d6(e){for(var t=e.length;t--&&c6.test(e.charAt(t)););return t}var f6=/^\s+/;function h6(e){return e&&e.slice(0,d6(e)+1).replace(f6,"")}function Ds(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var GS=0/0,p6=/^[-+]0x[0-9a-f]+$/i,m6=/^0b[01]+$/i,g6=/^0o[0-7]+$/i,v6=parseInt;function M0(e){if(typeof e=="number")return e;if(zm(e))return GS;if(Ds(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Ds(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=h6(e);var n=m6.test(e);return n||g6.test(e)?v6(e.slice(2),n?2:8):p6.test(e)?GS:+e}var YS=1/0,y6=17976931348623157e292;function b6(e){if(!e)return e===0?e:0;if(e=M0(e),e===YS||e===-YS){var t=e<0?-1:1;return t*y6}return e===e?e:0}function _6(e){var t=b6(e),n=t%1;return t===t?n?t-n:t:0}function l_(e){return e}var T6="[object AsyncFunction]",w6="[object Function]",S6="[object GeneratorFunction]",C6="[object Proxy]";function u_(e){if(!Ds(e))return!1;var t=al(e);return t==w6||t==S6||t==T6||t==C6}var E6=ni["__core-js_shared__"];const yv=E6;var XS=function(){var e=/[^.]+$/.exec(yv&&yv.keys&&yv.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function x6(e){return!!XS&&XS in e}var k6=Function.prototype,I6=k6.toString;function ol(e){if(e!=null){try{return I6.call(e)}catch{}try{return e+""}catch{}}return""}var O6=/[\\^$.*+?()[\]{}|]/g,A6=/^\[object .+?Constructor\]$/,P6=Function.prototype,$6=Object.prototype,N6=P6.toString,M6=$6.hasOwnProperty,R6=RegExp("^"+N6.call(M6).replace(O6,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function L6(e){if(!Ds(e)||x6(e))return!1;var t=u_(e)?R6:A6;return t.test(ol(e))}function D6(e,t){return e==null?void 0:e[t]}function ll(e,t){var n=D6(e,t);return L6(n)?n:void 0}var F6=ll(ni,"WeakMap");const R0=F6;var QS=Object.create,B6=function(){function e(){}return function(t){if(!Ds(t))return{};if(QS)return QS(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const V6=B6;function U6(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 H6(){}function AI(e,t){var n=-1,s=e.length;for(t||(t=Array(s));++n<s;)t[n]=e[n];return t}var z6=800,j6=16,K6=Date.now;function W6(e){var t=0,n=0;return function(){var s=K6(),r=j6-(s-n);if(n=s,r>0){if(++t>=z6)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function q6(e){return function(){return e}}var G6=function(){try{var e=ll(Object,"defineProperty");return e({},"",{}),e}catch{}}();const Dp=G6;var Y6=Dp?function(e,t){return Dp(e,"toString",{configurable:!0,enumerable:!1,value:q6(t),writable:!0})}:l_;const X6=Y6;var Q6=W6(X6);const PI=Q6;function J6(e,t){for(var n=-1,s=e==null?0:e.length;++n<s&&t(e[n],n,e)!==!1;);return e}function $I(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 Z6(e){return e!==e}function eB(e,t,n){for(var s=n-1,r=e.length;++s<r;)if(e[s]===t)return s;return-1}function tB(e,t,n){return t===t?eB(e,t,n):$I(e,Z6,n)}function nB(e,t){var n=e==null?0:e.length;return!!n&&tB(e,t,0)>-1}var sB=9007199254740991,rB=/^(?:0|[1-9]\d*)$/;function jm(e,t){var n=typeof e;return t=t??sB,!!t&&(n=="number"||n!="symbol"&&rB.test(e))&&e>-1&&e%1==0&&e<t}function c_(e,t,n){t=="__proto__"&&Dp?Dp(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function of(e,t){return e===t||e!==e&&t!==t}var iB=Object.prototype,aB=iB.hasOwnProperty;function d_(e,t,n){var s=e[t];(!(aB.call(e,t)&&of(s,n))||n===void 0&&!(t in e))&&c_(e,t,n)}function lf(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?c_(n,o,l):d_(n,o,l)}return n}var JS=Math.max;function NI(e,t,n){return t=JS(t===void 0?e.length-1:t,0),function(){for(var s=arguments,r=-1,i=JS(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),U6(e,this,o)}}function MI(e,t){return PI(NI(e,t,l_),e+"")}var oB=9007199254740991;function f_(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=oB}function ju(e){return e!=null&&f_(e.length)&&!u_(e)}function lB(e,t,n){if(!Ds(n))return!1;var s=typeof t;return(s=="number"?ju(n)&&jm(t,n.length):s=="string"&&t in n)?of(n[t],e):!1}function uB(e){return MI(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&&lB(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 cB=Object.prototype;function h_(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||cB;return e===n}function dB(e,t){for(var n=-1,s=Array(e);++n<e;)s[n]=t(n);return s}var fB="[object Arguments]";function ZS(e){return ki(e)&&al(e)==fB}var RI=Object.prototype,hB=RI.hasOwnProperty,pB=RI.propertyIsEnumerable,mB=ZS(function(){return arguments}())?ZS:function(e){return ki(e)&&hB.call(e,"callee")&&!pB.call(e,"callee")};const Td=mB;function gB(){return!1}var LI=typeof mr=="object"&&mr&&!mr.nodeType&&mr,eC=LI&&typeof gr=="object"&&gr&&!gr.nodeType&&gr,vB=eC&&eC.exports===LI,tC=vB?ni.Buffer:void 0,yB=tC?tC.isBuffer:void 0,bB=yB||gB;const wd=bB;var _B="[object Arguments]",TB="[object Array]",wB="[object Boolean]",SB="[object Date]",CB="[object Error]",EB="[object Function]",xB="[object Map]",kB="[object Number]",IB="[object Object]",OB="[object RegExp]",AB="[object Set]",PB="[object String]",$B="[object WeakMap]",NB="[object ArrayBuffer]",MB="[object DataView]",RB="[object Float32Array]",LB="[object Float64Array]",DB="[object Int8Array]",FB="[object Int16Array]",BB="[object Int32Array]",VB="[object Uint8Array]",UB="[object Uint8ClampedArray]",HB="[object Uint16Array]",zB="[object Uint32Array]",On={};On[RB]=On[LB]=On[DB]=On[FB]=On[BB]=On[VB]=On[UB]=On[HB]=On[zB]=!0;On[_B]=On[TB]=On[NB]=On[wB]=On[MB]=On[SB]=On[CB]=On[EB]=On[xB]=On[kB]=On[IB]=On[OB]=On[AB]=On[PB]=On[$B]=!1;function jB(e){return ki(e)&&f_(e.length)&&!!On[al(e)]}function p_(e){return function(t){return e(t)}}var DI=typeof mr=="object"&&mr&&!mr.nodeType&&mr,Kc=DI&&typeof gr=="object"&&gr&&!gr.nodeType&&gr,KB=Kc&&Kc.exports===DI,bv=KB&&xI.process,WB=function(){try{var e=Kc&&Kc.require&&Kc.require("util").types;return e||bv&&bv.binding&&bv.binding("util")}catch{}}();const fu=WB;var nC=fu&&fu.isTypedArray,qB=nC?p_(nC):jB;const m_=qB;var GB=Object.prototype,YB=GB.hasOwnProperty;function FI(e,t){var n=Ls(e),s=!n&&Td(e),r=!n&&!s&&wd(e),i=!n&&!s&&!r&&m_(e),a=n||s||r||i,o=a?dB(e.length,String):[],l=o.length;for(var u in e)(t||YB.call(e,u))&&!(a&&(u=="length"||r&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||jm(u,l)))&&o.push(u);return o}function BI(e,t){return function(n){return e(t(n))}}var XB=BI(Object.keys,Object);const QB=XB;var JB=Object.prototype,ZB=JB.hasOwnProperty;function eV(e){if(!h_(e))return QB(e);var t=[];for(var n in Object(e))ZB.call(e,n)&&n!="constructor"&&t.push(n);return t}function uf(e){return ju(e)?FI(e):eV(e)}function tV(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var nV=Object.prototype,sV=nV.hasOwnProperty;function rV(e){if(!Ds(e))return tV(e);var t=h_(e),n=[];for(var s in e)s=="constructor"&&(t||!sV.call(e,s))||n.push(s);return n}function cf(e){return ju(e)?FI(e,!0):rV(e)}var iV=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,aV=/^\w*$/;function g_(e,t){if(Ls(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||zm(e)?!0:aV.test(e)||!iV.test(e)||t!=null&&e in Object(t)}var oV=ll(Object,"create");const Sd=oV;function lV(){this.__data__=Sd?Sd(null):{},this.size=0}function uV(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var cV="__lodash_hash_undefined__",dV=Object.prototype,fV=dV.hasOwnProperty;function hV(e){var t=this.__data__;if(Sd){var n=t[e];return n===cV?void 0:n}return fV.call(t,e)?t[e]:void 0}var pV=Object.prototype,mV=pV.hasOwnProperty;function gV(e){var t=this.__data__;return Sd?t[e]!==void 0:mV.call(t,e)}var vV="__lodash_hash_undefined__";function yV(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Sd&&t===void 0?vV:t,this}function Qo(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])}}Qo.prototype.clear=lV;Qo.prototype.delete=uV;Qo.prototype.get=hV;Qo.prototype.has=gV;Qo.prototype.set=yV;function bV(){this.__data__=[],this.size=0}function Km(e,t){for(var n=e.length;n--;)if(of(e[n][0],t))return n;return-1}var _V=Array.prototype,TV=_V.splice;function wV(e){var t=this.__data__,n=Km(t,e);if(n<0)return!1;var s=t.length-1;return n==s?t.pop():TV.call(t,n,1),--this.size,!0}function SV(e){var t=this.__data__,n=Km(t,e);return n<0?void 0:t[n][1]}function CV(e){return Km(this.__data__,e)>-1}function EV(e,t){var n=this.__data__,s=Km(n,e);return s<0?(++this.size,n.push([e,t])):n[s][1]=t,this}function pa(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])}}pa.prototype.clear=bV;pa.prototype.delete=wV;pa.prototype.get=SV;pa.prototype.has=CV;pa.prototype.set=EV;var xV=ll(ni,"Map");const Cd=xV;function kV(){this.size=0,this.__data__={hash:new Qo,map:new(Cd||pa),string:new Qo}}function IV(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Wm(e,t){var n=e.__data__;return IV(t)?n[typeof t=="string"?"string":"hash"]:n.map}function OV(e){var t=Wm(this,e).delete(e);return this.size-=t?1:0,t}function AV(e){return Wm(this,e).get(e)}function PV(e){return Wm(this,e).has(e)}function $V(e,t){var n=Wm(this,e),s=n.size;return n.set(e,t),this.size+=n.size==s?0:1,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=kV;ma.prototype.delete=OV;ma.prototype.get=AV;ma.prototype.has=PV;ma.prototype.set=$V;var NV="Expected a function";function qm(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(NV);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(qm.Cache||ma),n}qm.Cache=ma;var MV=500;function RV(e){var t=qm(e,function(s){return n.size===MV&&n.clear(),s}),n=t.cache;return t}var LV=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,DV=/\\(\\)?/g,FV=RV(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(LV,function(n,s,r,i){t.push(r?i.replace(DV,"$1"):s||n)}),t});const BV=FV;function VV(e){return e==null?"":OI(e)}function Gm(e,t){return Ls(e)?e:g_(e,t)?[e]:BV(VV(e))}var UV=1/0;function df(e){if(typeof e=="string"||zm(e))return e;var t=e+"";return t=="0"&&1/e==-UV?"-0":t}function v_(e,t){t=Gm(t,e);for(var n=0,s=t.length;e!=null&&n<s;)e=e[df(t[n++])];return n&&n==s?e:void 0}function gn(e,t,n){var s=e==null?void 0:v_(e,t);return s===void 0?n:s}function y_(e,t){for(var n=-1,s=t.length,r=e.length;++n<s;)e[r+n]=t[n];return e}var sC=Ir?Ir.isConcatSpreadable:void 0;function HV(e){return Ls(e)||Td(e)||!!(sC&&e&&e[sC])}function ff(e,t,n,s,r){var i=-1,a=e.length;for(n||(n=HV),r||(r=[]);++i<a;){var o=e[i];t>0&&n(o)?t>1?ff(o,t-1,n,s,r):y_(r,o):s||(r[r.length]=o)}return r}function VI(e){var t=e==null?0:e.length;return t?ff(e,1):[]}function zV(e){return PI(NI(e,void 0,VI),e+"")}var jV=BI(Object.getPrototypeOf,Object);const b_=jV;var KV="[object Object]",WV=Function.prototype,qV=Object.prototype,UI=WV.toString,GV=qV.hasOwnProperty,YV=UI.call(Object);function XV(e){if(!ki(e)||al(e)!=KV)return!1;var t=b_(e);if(t===null)return!0;var n=GV.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&UI.call(n)==YV}function Jo(){if(!arguments.length)return[];var e=arguments[0];return Ls(e)?e:[e]}function QV(){this.__data__=new pa,this.size=0}function JV(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function ZV(e){return this.__data__.get(e)}function e5(e){return this.__data__.has(e)}var t5=200;function n5(e,t){var n=this.__data__;if(n instanceof pa){var s=n.__data__;if(!Cd||s.length<t5-1)return s.push([e,t]),this.size=++n.size,this;n=this.__data__=new ma(s)}return n.set(e,t),this.size=n.size,this}function Gr(e){var t=this.__data__=new pa(e);this.size=t.size}Gr.prototype.clear=QV;Gr.prototype.delete=JV;Gr.prototype.get=ZV;Gr.prototype.has=e5;Gr.prototype.set=n5;function s5(e,t){return e&&lf(t,uf(t),e)}function r5(e,t){return e&&lf(t,cf(t),e)}var HI=typeof mr=="object"&&mr&&!mr.nodeType&&mr,rC=HI&&typeof gr=="object"&&gr&&!gr.nodeType&&gr,i5=rC&&rC.exports===HI,iC=i5?ni.Buffer:void 0,aC=iC?iC.allocUnsafe:void 0;function zI(e,t){if(t)return e.slice();var n=e.length,s=aC?aC(n):new e.constructor(n);return e.copy(s),s}function a5(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 jI(){return[]}var o5=Object.prototype,l5=o5.propertyIsEnumerable,oC=Object.getOwnPropertySymbols,u5=oC?function(e){return e==null?[]:(e=Object(e),a5(oC(e),function(t){return l5.call(e,t)}))}:jI;const __=u5;function c5(e,t){return lf(e,__(e),t)}var d5=Object.getOwnPropertySymbols,f5=d5?function(e){for(var t=[];e;)y_(t,__(e)),e=b_(e);return t}:jI;const KI=f5;function h5(e,t){return lf(e,KI(e),t)}function WI(e,t,n){var s=t(e);return Ls(e)?s:y_(s,n(e))}function L0(e){return WI(e,uf,__)}function p5(e){return WI(e,cf,KI)}var m5=ll(ni,"DataView");const D0=m5;var g5=ll(ni,"Promise");const F0=g5;var v5=ll(ni,"Set");const ql=v5;var lC="[object Map]",y5="[object Object]",uC="[object Promise]",cC="[object Set]",dC="[object WeakMap]",fC="[object DataView]",b5=ol(D0),_5=ol(Cd),T5=ol(F0),w5=ol(ql),S5=ol(R0),wo=al;(D0&&wo(new D0(new ArrayBuffer(1)))!=fC||Cd&&wo(new Cd)!=lC||F0&&wo(F0.resolve())!=uC||ql&&wo(new ql)!=cC||R0&&wo(new R0)!=dC)&&(wo=function(e){var t=al(e),n=t==y5?e.constructor:void 0,s=n?ol(n):"";if(s)switch(s){case b5:return fC;case _5:return lC;case T5:return uC;case w5:return cC;case S5:return dC}return t});const Ed=wo;var C5=Object.prototype,E5=C5.hasOwnProperty;function x5(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&E5.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var k5=ni.Uint8Array;const Fp=k5;function T_(e){var t=new e.constructor(e.byteLength);return new Fp(t).set(new Fp(e)),t}function I5(e,t){var n=t?T_(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var O5=/\w*$/;function A5(e){var t=new e.constructor(e.source,O5.exec(e));return t.lastIndex=e.lastIndex,t}var hC=Ir?Ir.prototype:void 0,pC=hC?hC.valueOf:void 0;function P5(e){return pC?Object(pC.call(e)):{}}function qI(e,t){var n=t?T_(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var $5="[object Boolean]",N5="[object Date]",M5="[object Map]",R5="[object Number]",L5="[object RegExp]",D5="[object Set]",F5="[object String]",B5="[object Symbol]",V5="[object ArrayBuffer]",U5="[object DataView]",H5="[object Float32Array]",z5="[object Float64Array]",j5="[object Int8Array]",K5="[object Int16Array]",W5="[object Int32Array]",q5="[object Uint8Array]",G5="[object Uint8ClampedArray]",Y5="[object Uint16Array]",X5="[object Uint32Array]";function Q5(e,t,n){var s=e.constructor;switch(t){case V5:return T_(e);case $5:case N5:return new s(+e);case U5:return I5(e,n);case H5:case z5:case j5:case K5:case W5:case q5:case G5:case Y5:case X5:return qI(e,n);case M5:return new s;case R5:case F5:return new s(e);case L5:return A5(e);case D5:return new s;case B5:return P5(e)}}function GI(e){return typeof e.constructor=="function"&&!h_(e)?V6(b_(e)):{}}var J5="[object Map]";function Z5(e){return ki(e)&&Ed(e)==J5}var mC=fu&&fu.isMap,eU=mC?p_(mC):Z5;const tU=eU;var nU="[object Set]";function sU(e){return ki(e)&&Ed(e)==nU}var gC=fu&&fu.isSet,rU=gC?p_(gC):sU;const iU=rU;var aU=1,oU=2,lU=4,YI="[object Arguments]",uU="[object Array]",cU="[object Boolean]",dU="[object Date]",fU="[object Error]",XI="[object Function]",hU="[object GeneratorFunction]",pU="[object Map]",mU="[object Number]",QI="[object Object]",gU="[object RegExp]",vU="[object Set]",yU="[object String]",bU="[object Symbol]",_U="[object WeakMap]",TU="[object ArrayBuffer]",wU="[object DataView]",SU="[object Float32Array]",CU="[object Float64Array]",EU="[object Int8Array]",xU="[object Int16Array]",kU="[object Int32Array]",IU="[object Uint8Array]",OU="[object Uint8ClampedArray]",AU="[object Uint16Array]",PU="[object Uint32Array]",Sn={};Sn[YI]=Sn[uU]=Sn[TU]=Sn[wU]=Sn[cU]=Sn[dU]=Sn[SU]=Sn[CU]=Sn[EU]=Sn[xU]=Sn[kU]=Sn[pU]=Sn[mU]=Sn[QI]=Sn[gU]=Sn[vU]=Sn[yU]=Sn[bU]=Sn[IU]=Sn[OU]=Sn[AU]=Sn[PU]=!0;Sn[fU]=Sn[XI]=Sn[_U]=!1;function Wc(e,t,n,s,r,i){var a,o=t&aU,l=t&oU,u=t&lU;if(n&&(a=r?n(e,s,r,i):n(e)),a!==void 0)return a;if(!Ds(e))return e;var c=Ls(e);if(c){if(a=x5(e),!o)return AI(e,a)}else{var f=Ed(e),h=f==XI||f==hU;if(wd(e))return zI(e,o);if(f==QI||f==YI||h&&!r){if(a=l||h?{}:GI(e),!o)return l?h5(e,r5(a,e)):c5(e,s5(a,e))}else{if(!Sn[f])return r?e:{};a=Q5(e,f,o)}}i||(i=new Gr);var p=i.get(e);if(p)return p;i.set(e,a),iU(e)?e.forEach(function(y){a.add(Wc(y,t,n,y,e,i))}):tU(e)&&e.forEach(function(y,v){a.set(v,Wc(y,t,n,v,e,i))});var g=u?l?p5:L0:l?cf:uf,m=c?void 0:g(e);return J6(m||e,function(y,v){m&&(v=y,y=e[v]),d_(a,v,Wc(y,t,n,v,e,i))}),a}var $U=4;function vC(e){return Wc(e,$U)}var NU=1,MU=4;function Bp(e){return Wc(e,NU|MU)}var RU="__lodash_hash_undefined__";function LU(e){return this.__data__.set(e,RU),this}function DU(e){return this.__data__.has(e)}function xd(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new ma;++t<n;)this.add(e[t])}xd.prototype.add=xd.prototype.push=LU;xd.prototype.has=DU;function FU(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 JI(e,t){return e.has(t)}var BU=1,VU=2;function ZI(e,t,n,s,r,i){var a=n&BU,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,p=n&VU?new xd:void 0;for(i.set(e,t),i.set(t,e);++f<o;){var g=e[f],m=t[f];if(s)var y=a?s(m,g,f,t,e,i):s(g,m,f,e,t,i);if(y!==void 0){if(y)continue;h=!1;break}if(p){if(!FU(t,function(v,_){if(!JI(p,_)&&(g===v||r(g,v,n,s,i)))return p.push(_)})){h=!1;break}}else if(!(g===m||r(g,m,n,s,i))){h=!1;break}}return i.delete(e),i.delete(t),h}function UU(e){var t=-1,n=Array(e.size);return e.forEach(function(s,r){n[++t]=[r,s]}),n}function w_(e){var t=-1,n=Array(e.size);return e.forEach(function(s){n[++t]=s}),n}var HU=1,zU=2,jU="[object Boolean]",KU="[object Date]",WU="[object Error]",qU="[object Map]",GU="[object Number]",YU="[object RegExp]",XU="[object Set]",QU="[object String]",JU="[object Symbol]",ZU="[object ArrayBuffer]",eH="[object DataView]",yC=Ir?Ir.prototype:void 0,_v=yC?yC.valueOf:void 0;function tH(e,t,n,s,r,i,a){switch(n){case eH:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case ZU:return!(e.byteLength!=t.byteLength||!i(new Fp(e),new Fp(t)));case jU:case KU:case GU:return of(+e,+t);case WU:return e.name==t.name&&e.message==t.message;case YU:case QU:return e==t+"";case qU:var o=UU;case XU:var l=s&HU;if(o||(o=w_),e.size!=t.size&&!l)return!1;var u=a.get(e);if(u)return u==t;s|=zU,a.set(e,t);var c=ZI(o(e),o(t),s,r,i,a);return a.delete(e),c;case JU:if(_v)return _v.call(e)==_v.call(t)}return!1}var nH=1,sH=Object.prototype,rH=sH.hasOwnProperty;function iH(e,t,n,s,r,i){var a=n&nH,o=L0(e),l=o.length,u=L0(t),c=u.length;if(l!=c&&!a)return!1;for(var f=l;f--;){var h=o[f];if(!(a?h in t:rH.call(t,h)))return!1}var p=i.get(e),g=i.get(t);if(p&&g)return p==t&&g==e;var m=!0;i.set(e,t),i.set(t,e);for(var y=a;++f<l;){h=o[f];var v=e[h],_=t[h];if(s)var w=a?s(_,v,h,t,e,i):s(v,_,h,e,t,i);if(!(w===void 0?v===_||r(v,_,n,s,i):w)){m=!1;break}y||(y=h=="constructor")}if(m&&!y){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)&&(m=!1)}return i.delete(e),i.delete(t),m}var aH=1,bC="[object Arguments]",_C="[object Array]",yh="[object Object]",oH=Object.prototype,TC=oH.hasOwnProperty;function lH(e,t,n,s,r,i){var a=Ls(e),o=Ls(t),l=a?_C:Ed(e),u=o?_C:Ed(t);l=l==bC?yh:l,u=u==bC?yh:u;var c=l==yh,f=u==yh,h=l==u;if(h&&wd(e)){if(!wd(t))return!1;a=!0,c=!1}if(h&&!c)return i||(i=new Gr),a||m_(e)?ZI(e,t,n,s,r,i):tH(e,t,l,n,s,r,i);if(!(n&aH)){var p=c&&TC.call(e,"__wrapped__"),g=f&&TC.call(t,"__wrapped__");if(p||g){var m=p?e.value():e,y=g?t.value():t;return i||(i=new Gr),r(m,y,n,s,i)}}return h?(i||(i=new Gr),iH(e,t,n,s,r,i)):!1}function Ym(e,t,n,s,r){return e===t?!0:e==null||t==null||!ki(e)&&!ki(t)?e!==e&&t!==t:lH(e,t,n,s,Ym,r)}var uH=1,cH=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 Gr;if(s)var h=s(u,c,l,e,t,f);if(!(h===void 0?Ym(c,u,uH|cH,s,f):h))return!1}}return!0}function eO(e){return e===e&&!Ds(e)}function fH(e){for(var t=uf(e),n=t.length;n--;){var s=t[n],r=e[s];t[n]=[s,r,eO(r)]}return t}function tO(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function hH(e){var t=fH(e);return t.length==1&&t[0][2]?tO(t[0][0],t[0][1]):function(n){return n===e||dH(n,e,t)}}function pH(e,t){return e!=null&&t in Object(e)}function mH(e,t,n){t=Gm(t,e);for(var s=-1,r=t.length,i=!1;++s<r;){var a=df(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&&f_(r)&&jm(a,r)&&(Ls(e)||Td(e)))}function nO(e,t){return e!=null&&mH(e,t,pH)}var gH=1,vH=2;function yH(e,t){return g_(e)&&eO(t)?tO(df(e),t):function(n){var s=gn(n,e);return s===void 0&&s===t?nO(n,e):Ym(t,s,gH|vH)}}function bH(e){return function(t){return t==null?void 0:t[e]}}function _H(e){return function(t){return v_(t,e)}}function TH(e){return g_(e)?bH(df(e)):_H(e)}function sO(e){return typeof e=="function"?e:e==null?l_:typeof e=="object"?Ls(e)?yH(e[0],e[1]):hH(e):TH(e)}function wH(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 SH=wH();const rO=SH;function CH(e,t){return e&&rO(e,t,uf)}function EH(e,t){return function(n,s){if(n==null)return n;if(!ju(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 xH=EH(CH);const kH=xH;var IH=function(){return ni.Date.now()};const Tv=IH;var OH="Expected a function",AH=Math.max,PH=Math.min;function Fs(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(OH);t=M0(t)||0,Ds(n)&&(c=!!n.leading,f="maxWait"in n,i=f?AH(M0(n.maxWait)||0,t):i,h="trailing"in n?!!n.trailing:h);function p(E){var $=s,P=r;return s=r=void 0,u=E,a=e.apply(P,$),a}function g(E){return u=E,o=setTimeout(v,t),c?p(E):a}function m(E){var $=E-l,P=E-u,U=t-$;return f?PH(U,i-P):U}function y(E){var $=E-l,P=E-u;return l===void 0||$>=t||$<0||f&&P>=i}function v(){var E=Tv();if(y(E))return _(E);o=setTimeout(v,m(E))}function _(E){return o=void 0,h&&s?p(E):(s=r=void 0,a)}function w(){o!==void 0&&clearTimeout(o),u=0,s=l=r=o=void 0}function T(){return o===void 0?a:_(Tv())}function S(){var E=Tv(),$=y(E);if(s=arguments,r=this,l=E,$){if(o===void 0)return g(l);if(f)return clearTimeout(o),o=setTimeout(v,t),p(l)}return o===void 0&&(o=setTimeout(v,t)),a}return S.cancel=w,S.flush=T,S}function B0(e,t,n){(n!==void 0&&!of(e[t],n)||n===void 0&&!(t in e))&&c_(e,t,n)}function iO(e){return ki(e)&&ju(e)}function V0(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function $H(e){return lf(e,cf(e))}function NH(e,t,n,s,r,i,a){var o=V0(e,n),l=V0(t,n),u=a.get(l);if(u){B0(e,n,u);return}var c=i?i(o,l,n+"",e,t,a):void 0,f=c===void 0;if(f){var h=Ls(l),p=!h&&wd(l),g=!h&&!p&&m_(l);c=l,h||p||g?Ls(o)?c=o:iO(o)?c=AI(o):p?(f=!1,c=zI(l,!0)):g?(f=!1,c=qI(l,!0)):c=[]:XV(l)||Td(l)?(c=o,Td(o)?c=$H(o):(!Ds(o)||u_(o))&&(c=GI(l))):f=!1}f&&(a.set(l,c),r(c,l,s,i,a),a.delete(l)),B0(e,n,c)}function aO(e,t,n,s,r){e!==t&&rO(t,function(i,a){if(r||(r=new Gr),Ds(i))NH(e,t,a,n,aO,s,r);else{var o=s?s(V0(e,a),i,a+"",e,t,r):void 0;o===void 0&&(o=i),B0(e,a,o)}},cf)}function MH(e,t,n){for(var s=-1,r=e==null?0:e.length;++s<r;)if(n(t,e[s]))return!0;return!1}var RH=Math.max,LH=Math.min;function DH(e,t,n){var s=e==null?0:e.length;if(!s)return-1;var r=s-1;return n!==void 0&&(r=_6(n),r=n<0?RH(s+r,0):LH(r,s-1)),$I(e,sO(t),r,!0)}function FH(e,t){var n=-1,s=ju(e)?Array(e.length):[];return kH(e,function(r,i,a){s[++n]=t(r,i,a)}),s}function BH(e,t){var n=Ls(e)?II:FH;return n(e,sO(t))}function VH(e,t){return ff(BH(e,t),1)}var UH=1/0;function HH(e){var t=e==null?0:e.length;return t?ff(e,UH):[]}function Vp(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 Ys(e,t){return Ym(e,t)}function Un(e){return e==null}function oO(e){return e===void 0}var zH=uB(function(e,t,n){aO(e,t,n)});const lO=zH;function uO(e,t,n,s){if(!Ds(e))return e;t=Gm(t,e);for(var r=-1,i=t.length,a=i-1,o=e;o!=null&&++r<i;){var l=df(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=Ds(c)?c:jm(t[r+1])?[]:{})}d_(o,l,u),o=o[l]}return e}function jH(e,t,n){for(var s=-1,r=t.length,i={};++s<r;){var a=t[s],o=v_(e,a);n(o,a)&&uO(i,Gm(a,e),o)}return i}function KH(e,t){return jH(e,t,function(n,s){return nO(e,s)})}var WH=zV(function(e,t){return e==null?{}:KH(e,t)});const Xi=WH;function qH(e,t,n){return e==null?e:uO(e,t,n)}var GH="Expected a function";function Uo(e,t,n){var s=!0,r=!0;if(typeof e!="function")throw new TypeError(GH);return Ds(n)&&(s="leading"in n?!!n.leading:s,r="trailing"in n?!!n.trailing:r),Fs(e,t,{leading:s,maxWait:t,trailing:r})}var YH=1/0,XH=ql&&1/w_(new ql([,-0]))[1]==YH?function(e){return new ql(e)}:H6;const QH=XH;var JH=200;function ZH(e,t,n){var s=-1,r=nB,i=e.length,a=!0,o=[],l=o;if(n)a=!1,r=MH;else if(i>=JH){var u=t?null:QH(e);if(u)return w_(u);a=!1,r=JI,l=new xd}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 ez=MI(function(e){return ZH(ff(e,1,iO,!0))});const wv=ez,qn=e=>e===void 0,Gn=e=>typeof e=="boolean",ht=e=>typeof e=="number",wr=e=>!e&&e!==0||st(e)&&e.length===0||Mt(e)&&!Object.keys(e).length,Or=e=>typeof Element>"u"?!1:e instanceof Element,tz=e=>Un(e),nz=e=>Tt(e)?!Number.isNaN(Number(e)):!1,cO=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),hi=e=>sf(e),kd=e=>Object.keys(e),sz=e=>Object.entries(e),Jh=(e,t,n)=>({get value(){return gn(e,t,n)},set value(s){qH(e,t,s)}});class rz extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function Yn(e,t){throw new rz(`[${e}] ${t}`)}const dO=(e="")=>e.split(" ").filter(t=>!!t.trim()),Yr=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},pi=(e,t)=>{!e||!t.trim()||e.classList.add(...dO(t))},Xs=(e,t)=>{!e||!t.trim()||e.classList.remove(...dO(t))},Ma=(e,t)=>{var n;if(!Kt||!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 Mn(e,t="px"){if(!e)return"";if(ht(e)||nz(e))return`${e}${t}`;if(Tt(e))return e}const iz=(e,t)=>{if(!Kt)return!1;const n={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(t)],s=Ma(e,n);return["scroll","auto","overlay"].some(r=>s.includes(r))},S_=(e,t)=>{if(!Kt)return;let n=e;for(;n;){if([window,document,document.documentElement].includes(n))return window;if(iz(n,t))return n;n=n.parentNode}return n};let bh;const fO=e=>{var t;if(!Kt)return 0;if(bh!==void 0)return bh;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),bh=s-i,bh};function hO(e,t){if(!Kt)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)}/*! Element Plus Icons Vue v2.3.1 */var az=Z({name:"Aim",__name:"aim",setup(e){return(t,n)=>(C(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("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"}),R("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"})]))}}),oz=az,lz=Z({name:"ArrowDown",__name:"arrow-down",setup(e){return(t,n)=>(C(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("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"})]))}}),ga=lz,uz=Z({name:"ArrowLeftBold",__name:"arrow-left-bold",setup(e){return(t,n)=>(C(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("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"})]))}}),pO=uz,cz=Z({name:"ArrowLeft",__name:"arrow-left",setup(e){return(t,n)=>(C(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("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"})]))}}),Ka=cz,dz=Z({name:"ArrowRightBold",__name:"arrow-right-bold",setup(e){return(t,n)=>(C(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("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"})]))}}),mO=dz,fz=Z({name:"ArrowRight",__name:"arrow-right",setup(e){return(t,n)=>(C(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("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"})]))}}),Ns=fz,hz=Z({name:"ArrowUp",__name:"arrow-up",setup(e){return(t,n)=>(C(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("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"})]))}}),hf=hz,pz=Z({name:"Back",__name:"back",setup(e){return(t,n)=>(C(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("path",{fill:"currentColor",d:"M224 480h640a32 32 0 1 1 0 64H224a32 32 0 0 1 0-64"}),R("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"})]))}}),mz=pz,gz=Z({name:"BellFilled",__name:"bell-filled",setup(e){return(t,n)=>(C(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("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"})]))}}),vz=gz,yz=Z({name:"Calendar",__name:"calendar",setup(e){return(t,n)=>(C(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("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"})]))}}),bz=yz,_z=Z({name:"CaretRight",__name:"caret-right",setup(e){return(t,n)=>(C(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"})]))}}),Xm=_z,Tz=Z({name:"CaretTop",__name:"caret-top",setup(e){return(t,n)=>(C(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("path",{fill:"currentColor",d:"M512 320 192 704h639.936z"})]))}}),wz=Tz,Sz=Z({name:"Check",__name:"check",setup(e){return(t,n)=>(C(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("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"})]))}}),pf=Sz,Cz=Z({name:"CircleCheckFilled",__name:"circle-check-filled",setup(e){return(t,n)=>(C(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("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"})]))}}),Ez=Cz,xz=Z({name:"CircleCheck",__name:"circle-check",setup(e){return(t,n)=>(C(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("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"}),R("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"})]))}}),C_=xz,kz=Z({name:"CircleCloseFilled",__name:"circle-close-filled",setup(e){return(t,n)=>(C(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("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"})]))}}),E_=kz,Iz=Z({name:"CircleClose",__name:"circle-close",setup(e){return(t,n)=>(C(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("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"}),R("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"})]))}}),to=Iz,Oz=Z({name:"CirclePlus",__name:"circle-plus",setup(e){return(t,n)=>(C(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("path",{fill:"currentColor",d:"M352 480h320a32 32 0 1 1 0 64H352a32 32 0 0 1 0-64"}),R("path",{fill:"currentColor",d:"M480 672V352a32 32 0 1 1 64 0v320a32 32 0 0 1-64 0"}),R("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"})]))}}),Az=Oz,Pz=Z({name:"Clock",__name:"clock",setup(e){return(t,n)=>(C(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("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"}),R("path",{fill:"currentColor",d:"M480 256a32 32 0 0 1 32 32v256a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"}),R("path",{fill:"currentColor",d:"M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32"})]))}}),x_=Pz,$z=Z({name:"Close",__name:"close",setup(e){return(t,n)=>(C(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("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"})]))}}),Jr=$z,Nz=Z({name:"DArrowLeft",__name:"d-arrow-left",setup(e){return(t,n)=>(C(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("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"})]))}}),hu=Nz,Mz=Z({name:"DArrowRight",__name:"d-arrow-right",setup(e){return(t,n)=>(C(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("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"})]))}}),pu=Mz,Rz=Z({name:"Delete",__name:"delete",setup(e){return(t,n)=>(C(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("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"})]))}}),Ku=Rz,Lz=Z({name:"Document",__name:"document",setup(e){return(t,n)=>(C(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("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"})]))}}),Dz=Lz,Fz=Z({name:"Edit",__name:"edit",setup(e){return(t,n)=>(C(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("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"}),R("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"})]))}}),Qm=Fz,Bz=Z({name:"Film",__name:"film",setup(e){return(t,n)=>(C(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("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"}),R("path",{fill:"currentColor",d:"M320 288V128h64v352h256V128h64v160h160v64H704v128h160v64H704v128h160v64H704v160h-64V544H384v352h-64V736H128v-64h192V544H128v-64h192V352H128v-64z"})]))}}),Vz=Bz,Uz=Z({name:"FolderOpened",__name:"folder-opened",setup(e){return(t,n)=>(C(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("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"})]))}}),Hz=Uz,zz=Z({name:"FullScreen",__name:"full-screen",setup(e){return(t,n)=>(C(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("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"})]))}}),jz=zz,Kz=Z({name:"Hide",__name:"hide",setup(e){return(t,n)=>(C(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("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"}),R("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"})]))}}),Wz=Kz,qz=Z({name:"HomeFilled",__name:"home-filled",setup(e){return(t,n)=>(C(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("path",{fill:"currentColor",d:"M512 128 128 447.936V896h255.936V640H640v256h255.936V447.936z"})]))}}),Gz=qz,Yz=Z({name:"InfoFilled",__name:"info-filled",setup(e){return(t,n)=>(C(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("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"})]))}}),k_=Yz,Xz=Z({name:"Loading",__name:"loading",setup(e){return(t,n)=>(C(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("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"})]))}}),no=Xz,Qz=Z({name:"MagicStick",__name:"magic-stick",setup(e){return(t,n)=>(C(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("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"})]))}}),Jz=Qz,Zz=Z({name:"Minus",__name:"minus",setup(e){return(t,n)=>(C(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64"})]))}}),ej=Zz,tj=Z({name:"Moon",__name:"moon",setup(e){return(t,n)=>(C(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("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"})]))}}),nj=tj,sj=Z({name:"MoreFilled",__name:"more-filled",setup(e){return(t,n)=>(C(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("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"})]))}}),U0=sj,rj=Z({name:"More",__name:"more",setup(e){return(t,n)=>(C(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("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"})]))}}),ij=rj,aj=Z({name:"PictureFilled",__name:"picture-filled",setup(e){return(t,n)=>(C(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("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"})]))}}),oj=aj,lj=Z({name:"Plus",__name:"plus",setup(e){return(t,n)=>(C(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("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"})]))}}),I_=lj,uj=Z({name:"Promotion",__name:"promotion",setup(e){return(t,n)=>(C(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("path",{fill:"currentColor",d:"m64 448 832-320-128 704-446.08-243.328L832 192 242.816 545.472zm256 512V657.024L512 768z"})]))}}),O_=uj,cj=Z({name:"QuestionFilled",__name:"question-filled",setup(e){return(t,n)=>(C(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("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"})]))}}),dj=cj,fj=Z({name:"RefreshLeft",__name:"refresh-left",setup(e){return(t,n)=>(C(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("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"})]))}}),gO=fj,hj=Z({name:"RefreshRight",__name:"refresh-right",setup(e){return(t,n)=>(C(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("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"})]))}}),pj=hj,mj=Z({name:"ScaleToOriginal",__name:"scale-to-original",setup(e){return(t,n)=>(C(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("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=mj,vj=Z({name:"Search",__name:"search",setup(e){return(t,n)=>(C(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("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"})]))}}),Id=vj,yj=Z({name:"SortDown",__name:"sort-down",setup(e){return(t,n)=>(C(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("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"})]))}}),bj=yj,_j=Z({name:"SortUp",__name:"sort-up",setup(e){return(t,n)=>(C(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("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"})]))}}),Tj=_j,wj=Z({name:"StarFilled",__name:"star-filled",setup(e){return(t,n)=>(C(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("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"})]))}}),_h=wj,Sj=Z({name:"Star",__name:"star",setup(e){return(t,n)=>(C(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("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"})]))}}),Cj=Sj,Ej=Z({name:"SuccessFilled",__name:"success-filled",setup(e){return(t,n)=>(C(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("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"})]))}}),vO=Ej,xj=Z({name:"Sunny",__name:"sunny",setup(e){return(t,n)=>(C(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("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"})]))}}),kj=xj,Ij=Z({name:"SwitchButton",__name:"switch-button",setup(e){return(t,n)=>(C(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("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"}),R("path",{fill:"currentColor",d:"M512 64q32 0 32 32v320q0 32-32 32t-32-32V96q0-32 32-32"})]))}}),Oj=Ij,Aj=Z({name:"Timer",__name:"timer",setup(e){return(t,n)=>(C(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("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"}),R("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"}),R("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"})]))}}),Pj=Aj,$j=Z({name:"VideoCamera",__name:"video-camera",setup(e){return(t,n)=>(C(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("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"})]))}}),Nj=$j,Mj=Z({name:"View",__name:"view",setup(e){return(t,n)=>(C(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("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"})]))}}),Rj=Mj,Lj=Z({name:"WarningFilled",__name:"warning-filled",setup(e){return(t,n)=>(C(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("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"})]))}}),Jm=Lj,Dj=Z({name:"ZoomIn",__name:"zoom-in",setup(e){return(t,n)=>(C(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("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"})]))}}),A_=Dj,Fj=Z({name:"ZoomOut",__name:"zoom-out",setup(e){return(t,n)=>(C(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[R("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"})]))}}),Bj=Fj;const yO="__epPropKey",me=e=>e,Vj=e=>Mt(e)&&!!e[yO],si=(e,t)=>{if(!Mt(e)||Vj(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),zt(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(p=>JSON.stringify(p)).join(", ");O3(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${h}], got value ${JSON.stringify(u)}.`)}return c}:void 0,[yO]:!0};return zt(e,"default")&&(l.default=r),l},He=e=>Vp(Object.entries(e).map(([t,n])=>[t,si(n,t)])),sn=me([String,Object,Function]),bO={Close:Jr},P_={Close:Jr,SuccessFilled:vO,InfoFilled:k_,WarningFilled:Jm,CircleCloseFilled:E_},Wa={success:vO,warning:Jm,error:E_,info:k_},$_={validating:no,success:C_,error:to},At=(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},_O=(e,t)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[t]=e},e),Uj=(e,t)=>(e.install=n=>{n.directive(t,e)},e),In=e=>(e.install=en,e),Zm=(...e)=>t=>{e.forEach(n=>{yt(n)?n(t):n.value=t})},ot={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"},Hj=["year","month","date","dates","week","datetime","datetimerange","daterange","monthrange"],Sv=["sun","mon","tue","wed","thu","fri","sat"],$t="update:modelValue",ln="change",Ms="input",wC=Symbol("INSTALLED_KEY"),Li=["","default","small","large"],zj={large:40,default:32,small:24},jj=e=>zj[e||"default"],N_=e=>["",...Li].includes(e);var Tr=(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))(Tr||{});function H0(e){return pn(e)&&e.type===Ke}function Kj(e){return pn(e)&&e.type===$s}function Wj(e){return pn(e)&&!H0(e)&&!Kj(e)}const qj=e=>{if(!pn(e))return{};const t=e.props||{},n=(pn(e.type)?e.type.props:void 0)||{},s={};return Object.keys(n).forEach(r=>{zt(n[r],"default")&&(s[r]=n[r].default)}),Object.keys(t).forEach(r=>{s[kr(r)]=t[r]}),s},Gj=e=>{if(!st(e)||e.length>1)throw new Error("expect to receive a single Vue element child");return e[0]},Ho=e=>{const t=st(e)?e:[e],n=[];return t.forEach(s=>{var r;st(s)?n.push(...Ho(s)):pn(s)&&st(s.children)?n.push(...Ho(s.children)):(n.push(s),pn(s)&&((r=s.component)!=null&&r.subTree)&&n.push(...Ho(s.component.subTree)))}),n},SC=e=>[...new Set(e)],Qi=e=>!e&&e!==0?[]:Array.isArray(e)?e:[e],eg=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e),mu=e=>Kt?window.requestAnimationFrame(e):setTimeout(e,16),tg=e=>Kt?window.cancelAnimationFrame(e):clearTimeout(e),ng=()=>Math.floor(Math.random()*1e4),vn=e=>e,Yj=["class","style"],Xj=/^on[A-Z]/,M_=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,s=k(()=>((n==null?void 0:n.value)||[]).concat(Yj)),r=It();return k(r?()=>{var i;return Vp(Object.entries((i=r.proxy)==null?void 0:i.$attrs).filter(([a])=>!s.value.includes(a)&&!(t&&Xj.test(a))))}:()=>({}))},Ii=({from:e,replacement:t,scope:n,version:s,ref:r,type:i="API"},a)=>{Oe(()=>d(a),o=>{},{immediate:!0})},TO=(e,t,n)=>{let s={offsetX:0,offsetY:0};const r=o=>{const l=o.clientX,u=o.clientY,{offsetX:c,offsetY:f}=s,h=e.value.getBoundingClientRect(),p=h.left,g=h.top,m=h.width,y=h.height,v=document.documentElement.clientWidth,_=document.documentElement.clientHeight,w=-p+c,T=-g+f,S=v-p-m+c,E=_-g-y+f,$=U=>{const H=Math.min(Math.max(c+U.clientX-l,w),S),z=Math.min(Math.max(f+U.clientY-u,T),E);s={offsetX:H,offsetY:z},e.value&&(e.value.style.transform=`translate(${Mn(H)}, ${Mn(z)})`)},P=()=>{document.removeEventListener("mousemove",$),document.removeEventListener("mouseup",P)};document.addEventListener("mousemove",$),document.addEventListener("mouseup",P)},i=()=>{t.value&&e.value&&t.value.addEventListener("mousedown",r)},a=()=>{t.value&&e.value&&t.value.removeEventListener("mousedown",r)};vt(()=>{Gs(()=>{n.value?i():a()})}),on(()=>{a()})};var Qj={name:"en",el:{colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color."},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"},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"},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"}}};const Jj=e=>(t,n)=>Zj(t,n,d(e)),Zj=(e,t,n)=>gn(n,e,e).replace(/\{(\w+)\}/g,(s,r)=>{var i;return`${(i=t==null?void 0:t[r])!=null?i:`{${r}}`}`}),e9=e=>{const t=k(()=>d(e).name),n=an(e)?e:G(e);return{lang:t,locale:n,t:Jj(e)}},wO=Symbol("localeContextKey"),Wt=e=>{const t=e||Qe(wO,G());return e9(k(()=>t.value||Qj))},qc="el",t9="is-",yo=(e,t,n,s,r)=>{let i=`${e}-${t}`;return n&&(i+=`-${n}`),s&&(i+=`__${s}`),r&&(i+=`--${r}`),i},SO=Symbol("namespaceContextKey"),R_=e=>{const t=e||(It()?Qe(SO,G(qc)):G(qc));return k(()=>d(t)||qc)},Le=(e,t)=>{const n=R_(t);return{namespace:n,b:(m="")=>yo(n.value,e,m,"",""),e:m=>m?yo(n.value,e,"",m,""):"",m:m=>m?yo(n.value,e,"","",m):"",be:(m,y)=>m&&y?yo(n.value,e,m,y,""):"",em:(m,y)=>m&&y?yo(n.value,e,"",m,y):"",bm:(m,y)=>m&&y?yo(n.value,e,m,"",y):"",bem:(m,y,v)=>m&&y&&v?yo(n.value,e,m,y,v):"",is:(m,...y)=>{const v=y.length>=1?y[0]:!0;return m&&v?`${t9}${m}`:""},cssVar:m=>{const y={};for(const v in m)m[v]&&(y[`--${n.value}-${v}`]=m[v]);return y},cssVarName:m=>`--${n.value}-${m}`,cssVarBlock:m=>{const y={};for(const v in m)m[v]&&(y[`--${n.value}-${e}-${v}`]=m[v]);return y},cssVarBlockName:m=>`--${n.value}-${e}-${m}`}},CO=(e,t={})=>{an(e)||Yn("[useLockscreen]","You need to pass a ref param to this function");const n=t.ns||Le("popup"),s=Mk(()=>n.bm("parent","hidden"));if(!Kt||Yr(document.body,s.value))return;let r=0,i=!1,a="0";const o=()=>{setTimeout(()=>{Xs(document==null?void 0:document.body,s.value),i&&document&&(document.body.style.width=a)},200)};Oe(e,l=>{if(!l){o();return}i=!Yr(document.body,s.value),i&&(a=document.body.style.width),r=fO(n.namespace.value);const u=document.documentElement.clientHeight<document.body.scrollHeight,c=Ma(document.body,"overflowY");r>0&&(u||c==="scroll")&&i&&(document.body.style.width=`calc(100% - ${r}px)`),pi(document.body,s.value)}),vk(()=>o())},n9=si({type:me(Boolean),default:null}),s9=si({type:me(Function)}),EO=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,s=[t],r={[e]:n9,[n]:s9};return{useModelToggle:({indicator:a,toggleReason:o,shouldHideWhenRouteChanges:l,shouldProceed:u,onShow:c,onHide:f})=>{const h=It(),{emit:p}=h,g=h.props,m=k(()=>yt(g[n])),y=k(()=>g[e]===null),v=$=>{a.value!==!0&&(a.value=!0,o&&(o.value=$),yt(c)&&c($))},_=$=>{a.value!==!1&&(a.value=!1,o&&(o.value=$),yt(f)&&f($))},w=$=>{if(g.disabled===!0||yt(u)&&!u())return;const P=m.value&&Kt;P&&p(t,!0),(y.value||!P)&&v($)},T=$=>{if(g.disabled===!0||!Kt)return;const P=m.value&&Kt;P&&p(t,!1),(y.value||!P)&&_($)},S=$=>{Gn($)&&(g.disabled&&$?m.value&&p(t,!1):a.value!==$&&($?v():_()))},E=()=>{a.value?T():w()};return Oe(()=>g[e],S),l&&h.appContext.config.globalProperties.$route!==void 0&&Oe(()=>({...h.proxy.$route}),()=>{l.value&&a.value&&T()}),vt(()=>{S(g[e])}),{hide:T,show:w,toggle:E,hasUpdateHandler:m}},useModelToggleProps:r,useModelToggleEmits:s}};EO("modelValue");const xO=e=>{const t=It();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 Qs="top",Ar="bottom",Pr="right",Js="left",L_="auto",mf=[Qs,Ar,Pr,Js],gu="start",Od="end",r9="clippingParents",kO="viewport",vc="popper",i9="reference",CC=mf.reduce(function(e,t){return e.concat([t+"-"+gu,t+"-"+Od])},[]),ul=[].concat(mf,[L_]).reduce(function(e,t){return e.concat([t,t+"-"+gu,t+"-"+Od])},[]),a9="beforeRead",o9="read",l9="afterRead",u9="beforeMain",c9="main",d9="afterMain",f9="beforeWrite",h9="write",p9="afterWrite",m9=[a9,o9,l9,u9,c9,d9,f9,h9,p9];function Oi(e){return e?(e.nodeName||"").toLowerCase():null}function ri(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function vu(e){var t=ri(e).Element;return e instanceof t||e instanceof Element}function Er(e){var t=ri(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function D_(e){if(typeof ShadowRoot>"u")return!1;var t=ri(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function g9(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];!Er(i)||!Oi(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 v9(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},{});!Er(r)||!Oi(r)||(Object.assign(r.style,o),Object.keys(i).forEach(function(l){r.removeAttribute(l)}))})}}var IO={name:"applyStyles",enabled:!0,phase:"write",fn:g9,effect:v9,requires:["computeStyles"]};function _i(e){return e.split("-")[0]}var zo=Math.max,Up=Math.min,yu=Math.round;function bu(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),s=1,r=1;if(Er(e)&&t){var i=e.offsetHeight,a=e.offsetWidth;a>0&&(s=yu(n.width)/a||1),i>0&&(r=yu(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 F_(e){var t=bu(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 OO(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&D_(n)){var s=t;do{if(s&&e.isSameNode(s))return!0;s=s.parentNode||s.host}while(s)}return!1}function ra(e){return ri(e).getComputedStyle(e)}function y9(e){return["table","td","th"].indexOf(Oi(e))>=0}function so(e){return((vu(e)?e.ownerDocument:e.document)||window.document).documentElement}function sg(e){return Oi(e)==="html"?e:e.assignedSlot||e.parentNode||(D_(e)?e.host:null)||so(e)}function EC(e){return!Er(e)||ra(e).position==="fixed"?null:e.offsetParent}function b9(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&Er(e)){var s=ra(e);if(s.position==="fixed")return null}var r=sg(e);for(D_(r)&&(r=r.host);Er(r)&&["html","body"].indexOf(Oi(r))<0;){var i=ra(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 gf(e){for(var t=ri(e),n=EC(e);n&&y9(n)&&ra(n).position==="static";)n=EC(n);return n&&(Oi(n)==="html"||Oi(n)==="body"&&ra(n).position==="static")?t:n||b9(e)||t}function B_(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Gc(e,t,n){return zo(e,Up(t,n))}function _9(e,t,n){var s=Gc(e,t,n);return s>n?n:s}function AO(){return{top:0,right:0,bottom:0,left:0}}function PO(e){return Object.assign({},AO(),e)}function $O(e,t){return t.reduce(function(n,s){return n[s]=e,n},{})}var T9=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,PO(typeof e!="number"?e:$O(e,mf))};function w9(e){var t,n=e.state,s=e.name,r=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,o=_i(n.placement),l=B_(o),u=[Js,Pr].indexOf(o)>=0,c=u?"height":"width";if(!(!i||!a)){var f=T9(r.padding,n),h=F_(i),p=l==="y"?Qs:Js,g=l==="y"?Ar:Pr,m=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],y=a[l]-n.rects.reference[l],v=gf(i),_=v?l==="y"?v.clientHeight||0:v.clientWidth||0:0,w=m/2-y/2,T=f[p],S=_-h[c]-f[g],E=_/2-h[c]/2+w,$=Gc(T,E,S),P=l;n.modifiersData[s]=(t={},t[P]=$,t.centerOffset=$-E,t)}}function S9(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)||!OO(t.elements.popper,r)||(t.elements.arrow=r))}var C9={name:"arrow",enabled:!0,phase:"main",fn:w9,effect:S9,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function _u(e){return e.split("-")[1]}var E9={top:"auto",right:"auto",bottom:"auto",left:"auto"};function x9(e){var t=e.x,n=e.y,s=window,r=s.devicePixelRatio||1;return{x:yu(t*r)/r||0,y:yu(n*r)/r||0}}function xC(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,p=h===void 0?0:h,g=a.y,m=g===void 0?0:g,y=typeof c=="function"?c({x:p,y:m}):{x:p,y:m};p=y.x,m=y.y;var v=a.hasOwnProperty("x"),_=a.hasOwnProperty("y"),w=Js,T=Qs,S=window;if(u){var E=gf(n),$="clientHeight",P="clientWidth";if(E===ri(n)&&(E=so(n),ra(E).position!=="static"&&o==="absolute"&&($="scrollHeight",P="scrollWidth")),E=E,r===Qs||(r===Js||r===Pr)&&i===Od){T=Ar;var U=f&&E===S&&S.visualViewport?S.visualViewport.height:E[$];m-=U-s.height,m*=l?1:-1}if(r===Js||(r===Qs||r===Ar)&&i===Od){w=Pr;var H=f&&E===S&&S.visualViewport?S.visualViewport.width:E[P];p-=H-s.width,p*=l?1:-1}}var z=Object.assign({position:o},u&&E9),W=c===!0?x9({x:p,y:m}):{x:p,y:m};if(p=W.x,m=W.y,l){var D;return Object.assign({},z,(D={},D[T]=_?"0":"",D[w]=v?"0":"",D.transform=(S.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",D))}return Object.assign({},z,(t={},t[T]=_?m+"px":"",t[w]=v?p+"px":"",t.transform="",t))}function k9(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:_i(t.placement),variation:_u(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,xC(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,xC(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 NO={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:k9,data:{}},Th={passive:!0};function I9(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=ri(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",n.update,Th)}),o&&l.addEventListener("resize",n.update,Th),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",n.update,Th)}),o&&l.removeEventListener("resize",n.update,Th)}}var MO={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:I9,data:{}},O9={left:"right",right:"left",bottom:"top",top:"bottom"};function Zh(e){return e.replace(/left|right|bottom|top/g,function(t){return O9[t]})}var A9={start:"end",end:"start"};function kC(e){return e.replace(/start|end/g,function(t){return A9[t]})}function V_(e){var t=ri(e),n=t.pageXOffset,s=t.pageYOffset;return{scrollLeft:n,scrollTop:s}}function U_(e){return bu(so(e)).left+V_(e).scrollLeft}function P9(e){var t=ri(e),n=so(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+U_(e),y:o}}function $9(e){var t,n=so(e),s=V_(e),r=(t=e.ownerDocument)==null?void 0:t.body,i=zo(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=zo(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),o=-s.scrollLeft+U_(e),l=-s.scrollTop;return ra(r||n).direction==="rtl"&&(o+=zo(n.clientWidth,r?r.clientWidth:0)-i),{width:i,height:a,x:o,y:l}}function H_(e){var t=ra(e),n=t.overflow,s=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+s)}function RO(e){return["html","body","#document"].indexOf(Oi(e))>=0?e.ownerDocument.body:Er(e)&&H_(e)?e:RO(sg(e))}function Yc(e,t){var n;t===void 0&&(t=[]);var s=RO(e),r=s===((n=e.ownerDocument)==null?void 0:n.body),i=ri(s),a=r?[i].concat(i.visualViewport||[],H_(s)?s:[]):s,o=t.concat(a);return r?o:o.concat(Yc(sg(a)))}function z0(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function N9(e){var t=bu(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 IC(e,t){return t===kO?z0(P9(e)):vu(t)?N9(t):z0($9(so(e)))}function M9(e){var t=Yc(sg(e)),n=["absolute","fixed"].indexOf(ra(e).position)>=0,s=n&&Er(e)?gf(e):e;return vu(s)?t.filter(function(r){return vu(r)&&OO(r,s)&&Oi(r)!=="body"}):[]}function R9(e,t,n){var s=t==="clippingParents"?M9(e):[].concat(t),r=[].concat(s,[n]),i=r[0],a=r.reduce(function(o,l){var u=IC(e,l);return o.top=zo(u.top,o.top),o.right=Up(u.right,o.right),o.bottom=Up(u.bottom,o.bottom),o.left=zo(u.left,o.left),o},IC(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 LO(e){var t=e.reference,n=e.element,s=e.placement,r=s?_i(s):null,i=s?_u(s):null,a=t.x+t.width/2-n.width/2,o=t.y+t.height/2-n.height/2,l;switch(r){case Qs:l={x:a,y:t.y-n.height};break;case Ar:l={x:a,y:t.y+t.height};break;case Pr:l={x:t.x+t.width,y:o};break;case Js:l={x:t.x-n.width,y:o};break;default:l={x:t.x,y:t.y}}var u=r?B_(r):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case gu:l[u]=l[u]-(t[c]/2-n[c]/2);break;case Od:l[u]=l[u]+(t[c]/2-n[c]/2);break}}return l}function Ad(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?r9:i,o=n.rootBoundary,l=o===void 0?kO:o,u=n.elementContext,c=u===void 0?vc:u,f=n.altBoundary,h=f===void 0?!1:f,p=n.padding,g=p===void 0?0:p,m=PO(typeof g!="number"?g:$O(g,mf)),y=c===vc?i9:vc,v=e.rects.popper,_=e.elements[h?y:c],w=R9(vu(_)?_:_.contextElement||so(e.elements.popper),a,l),T=bu(e.elements.reference),S=LO({reference:T,element:v,strategy:"absolute",placement:r}),E=z0(Object.assign({},v,S)),$=c===vc?E:T,P={top:w.top-$.top+m.top,bottom:$.bottom-w.bottom+m.bottom,left:w.left-$.left+m.left,right:$.right-w.right+m.right},U=e.modifiersData.offset;if(c===vc&&U){var H=U[r];Object.keys(P).forEach(function(z){var W=[Pr,Ar].indexOf(z)>=0?1:-1,D=[Qs,Ar].indexOf(z)>=0?"y":"x";P[z]+=H[D]*W})}return P}function L9(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?ul:l,c=_u(s),f=c?o?CC:CC.filter(function(g){return _u(g)===c}):mf,h=f.filter(function(g){return u.indexOf(g)>=0});h.length===0&&(h=f);var p=h.reduce(function(g,m){return g[m]=Ad(e,{placement:m,boundary:r,rootBoundary:i,padding:a})[_i(m)],g},{});return Object.keys(p).sort(function(g,m){return p[g]-p[m]})}function D9(e){if(_i(e)===L_)return[];var t=Zh(e);return[kC(e),t,kC(t)]}function F9(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,p=n.flipVariations,g=p===void 0?!0:p,m=n.allowedAutoPlacements,y=t.options.placement,v=_i(y),_=v===y,w=l||(_||!g?[Zh(y)]:D9(y)),T=[y].concat(w).reduce(function(_e,ue){return _e.concat(_i(ue)===L_?L9(t,{placement:ue,boundary:c,rootBoundary:f,padding:u,flipVariations:g,allowedAutoPlacements:m}):ue)},[]),S=t.rects.reference,E=t.rects.popper,$=new Map,P=!0,U=T[0],H=0;H<T.length;H++){var z=T[H],W=_i(z),D=_u(z)===gu,V=[Qs,Ar].indexOf(W)>=0,X=V?"width":"height",Y=Ad(t,{placement:z,boundary:c,rootBoundary:f,altBoundary:h,padding:u}),B=V?D?Pr:Js:D?Ar:Qs;S[X]>E[X]&&(B=Zh(B));var K=Zh(B),L=[];if(i&&L.push(Y[W]<=0),o&&L.push(Y[B]<=0,Y[K]<=0),L.every(function(_e){return _e})){U=z,P=!1;break}$.set(z,L)}if(P)for(var Q=g?3:1,ee=function(_e){var ue=T.find(function(oe){var de=$.get(oe);if(de)return de.slice(0,_e).every(function(ae){return ae})});if(ue)return U=ue,"break"},te=Q;te>0;te--){var ie=ee(te);if(ie==="break")break}t.placement!==U&&(t.modifiersData[s]._skip=!0,t.placement=U,t.reset=!0)}}var B9={name:"flip",enabled:!0,phase:"main",fn:F9,requiresIfExists:["offset"],data:{_skip:!1}};function OC(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 AC(e){return[Qs,Pr,Ar,Js].some(function(t){return e[t]>=0})}function V9(e){var t=e.state,n=e.name,s=t.rects.reference,r=t.rects.popper,i=t.modifiersData.preventOverflow,a=Ad(t,{elementContext:"reference"}),o=Ad(t,{altBoundary:!0}),l=OC(a,s),u=OC(o,r,i),c=AC(l),f=AC(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 U9={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:V9};function H9(e,t,n){var s=_i(e),r=[Js,Qs].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,[Js,Pr].indexOf(s)>=0?{x:o,y:a}:{x:a,y:o}}function z9(e){var t=e.state,n=e.options,s=e.name,r=n.offset,i=r===void 0?[0,0]:r,a=ul.reduce(function(c,f){return c[f]=H9(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 j9={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:z9};function K9(e){var t=e.state,n=e.name;t.modifiersData[n]=LO({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var DO={name:"popperOffsets",enabled:!0,phase:"read",fn:K9,data:{}};function W9(e){return e==="x"?"y":"x"}function q9(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,p=h===void 0?!0:h,g=n.tetherOffset,m=g===void 0?0:g,y=Ad(t,{boundary:l,rootBoundary:u,padding:f,altBoundary:c}),v=_i(t.placement),_=_u(t.placement),w=!_,T=B_(v),S=W9(T),E=t.modifiersData.popperOffsets,$=t.rects.reference,P=t.rects.popper,U=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,H=typeof U=="number"?{mainAxis:U,altAxis:U}:Object.assign({mainAxis:0,altAxis:0},U),z=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,W={x:0,y:0};if(E){if(i){var D,V=T==="y"?Qs:Js,X=T==="y"?Ar:Pr,Y=T==="y"?"height":"width",B=E[T],K=B+y[V],L=B-y[X],Q=p?-P[Y]/2:0,ee=_===gu?$[Y]:P[Y],te=_===gu?-P[Y]:-$[Y],ie=t.elements.arrow,_e=p&&ie?F_(ie):{width:0,height:0},ue=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:AO(),oe=ue[V],de=ue[X],ae=Gc(0,$[Y],_e[Y]),Ie=w?$[Y]/2-Q-ae-oe-H.mainAxis:ee-ae-oe-H.mainAxis,ke=w?-$[Y]/2+Q+ae+de+H.mainAxis:te+ae+de+H.mainAxis,Ee=t.elements.arrow&&gf(t.elements.arrow),J=Ee?T==="y"?Ee.clientTop||0:Ee.clientLeft||0:0,re=(D=z==null?void 0:z[T])!=null?D:0,Se=B+Ie-re-J,Ae=B+ke-re,Be=Gc(p?Up(K,Se):K,B,p?zo(L,Ae):L);E[T]=Be,W[T]=Be-B}if(o){var Pe,Ve=T==="x"?Qs:Js,$e=T==="x"?Ar:Pr,Te=E[S],De=S==="y"?"height":"width",qe=Te+y[Ve],Je=Te-y[$e],et=[Qs,Js].indexOf(v)!==-1,Re=(Pe=z==null?void 0:z[S])!=null?Pe:0,Xe=et?qe:Te-$[De]-P[De]-Re+H.altAxis,ct=et?Te+$[De]+P[De]-Re-H.altAxis:Je,wt=p&&et?_9(Xe,Te,ct):Gc(p?Xe:qe,Te,p?ct:Je);E[S]=wt,W[S]=wt-Te}t.modifiersData[s]=W}}var G9={name:"preventOverflow",enabled:!0,phase:"main",fn:q9,requiresIfExists:["offset"]};function Y9(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function X9(e){return e===ri(e)||!Er(e)?V_(e):Y9(e)}function Q9(e){var t=e.getBoundingClientRect(),n=yu(t.width)/e.offsetWidth||1,s=yu(t.height)/e.offsetHeight||1;return n!==1||s!==1}function J9(e,t,n){n===void 0&&(n=!1);var s=Er(t),r=Er(t)&&Q9(t),i=so(t),a=bu(e,r),o={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(s||!s&&!n)&&((Oi(t)!=="body"||H_(i))&&(o=X9(t)),Er(t)?(l=bu(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=U_(i))),{x:a.left+o.scrollLeft-l.x,y:a.top+o.scrollTop-l.y,width:a.width,height:a.height}}function Z9(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 e7(e){var t=Z9(e);return m9.reduce(function(n,s){return n.concat(t.filter(function(r){return r.phase===s}))},[])}function t7(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function n7(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 PC={placement:"bottom",modifiers:[],strategy:"absolute"};function $C(){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 z_(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,s=n===void 0?[]:n,r=t.defaultOptions,i=r===void 0?PC:r;return function(a,o,l){l===void 0&&(l=i);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},PC,i),modifiersData:{},elements:{reference:a,popper:o},attributes:{},styles:{}},c=[],f=!1,h={state:u,setOptions:function(m){var y=typeof m=="function"?m(u.options):m;g(),u.options=Object.assign({},i,u.options,y),u.scrollParents={reference:vu(a)?Yc(a):a.contextElement?Yc(a.contextElement):[],popper:Yc(o)};var v=e7(n7([].concat(s,u.options.modifiers)));return u.orderedModifiers=v.filter(function(_){return _.enabled}),p(),h.update()},forceUpdate:function(){if(!f){var m=u.elements,y=m.reference,v=m.popper;if($C(y,v)){u.rects={reference:J9(y,gf(v),u.options.strategy==="fixed"),popper:F_(v)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(P){return u.modifiersData[P.name]=Object.assign({},P.data)});for(var _=0;_<u.orderedModifiers.length;_++){if(u.reset===!0){u.reset=!1,_=-1;continue}var w=u.orderedModifiers[_],T=w.fn,S=w.options,E=S===void 0?{}:S,$=w.name;typeof T=="function"&&(u=T({state:u,options:E,name:$,instance:h})||u)}}}},update:t7(function(){return new Promise(function(m){h.forceUpdate(),m(u)})}),destroy:function(){g(),f=!0}};if(!$C(a,o))return h;h.setOptions(l).then(function(m){!f&&l.onFirstUpdate&&l.onFirstUpdate(m)});function p(){u.orderedModifiers.forEach(function(m){var y=m.name,v=m.options,_=v===void 0?{}:v,w=m.effect;if(typeof w=="function"){var T=w({state:u,name:y,instance:h,options:_}),S=function(){};c.push(T||S)}})}function g(){c.forEach(function(m){return m()}),c=[]}return h}}z_();var s7=[MO,DO,NO,IO];z_({defaultModifiers:s7});var r7=[MO,DO,NO,IO,j9,B9,G9,C9,U9],FO=z_({defaultModifiers:r7});const i7=(e,t,n={})=>{const s={name:"updateState",enabled:!0,phase:"write",fn:({state:l})=>{const u=a7(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=Jt(),a=G({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 Oe(r,l=>{const u=d(i);u&&u.setOptions(l)},{deep:!0}),Oe([e,t],([l,u])=>{o(),!(!l||!u)&&(i.value=FO(l,u,d(r)))}),on(()=>{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 a7(e){const t=Object.keys(e.elements),n=Vp(t.map(r=>[r,e.styles[r]||{}])),s=Vp(t.map(r=>[r,e.attributes[r]]));return{styles:n,attributes:s}}const j_=e=>{if(!e)return{onClick:en,onMousedown:en,onMouseup:en};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}}},o7=(e,t=0)=>{if(t===0)return e;const n=G(!1);let s=0;const r=()=>{s&&clearTimeout(s),s=window.setTimeout(()=>{n.value=e.value},t)};return vt(r),Oe(()=>e.value,i=>{i?r():n.value=i}),n};function NC(){let e;const t=(s,r)=>{n(),e=window.setTimeout(s,r)},n=()=>window.clearTimeout(e);return af(()=>n()),{registerTimeout:t,cancelTimeout:n}}const MC={prefix:Math.floor(Math.random()*1e4),current:0},l7=Symbol("elIdInjection"),BO=()=>It()?Qe(l7,MC):MC,tr=e=>{const t=BO(),n=R_();return k(()=>d(e)||`${n.value}-id-${t.prefix}-${t.current++}`)};let Al=[];const RC=e=>{const t=e;t.key===ot.esc&&Al.forEach(n=>n(t))},u7=e=>{vt(()=>{Al.length===0&&document.addEventListener("keydown",RC),Kt&&Al.push(e)}),on(()=>{Al=Al.filter(t=>t!==e),Al.length===0&&Kt&&document.removeEventListener("keydown",RC)})};let LC;const VO=()=>{const e=R_(),t=BO(),n=k(()=>`${e.value}-popper-container-${t.prefix}`),s=k(()=>`#${n.value}`);return{id:n,selector:s}},c7=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},d7=()=>{const{id:e,selector:t}=VO();return sl(()=>{Kt&&!LC&&!document.body.querySelector(t.value)&&(LC=c7(e.value))}),{id:e,selector:t}},f7=He({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),UO=({showAfter:e,hideAfter:t,autoClose:n,open:s,close:r})=>{const{registerTimeout:i}=NC(),{registerTimeout:a,cancelTimeout:o}=NC();return{onOpen:c=>{i(()=>{s(c);const f=d(n);ht(f)&&f>0&&a(()=>{r(c)},f)},d(e))},onClose:c=>{o(),i(()=>{r(c)},d(t))}}},HO=Symbol("elForwardRef"),h7=e=>{Lt(HO,{setForwardRef:n=>{e.value=n}})},p7=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),DC=G(0),zO=2e3,jO=Symbol("zIndexContextKey"),Wu=e=>{const t=e||(It()?Qe(jO,void 0):void 0),n=k(()=>{const i=d(t);return ht(i)?i:zO}),s=k(()=>n.value+DC.value);return{initialZIndex:n,currentZIndex:s,nextZIndex:()=>(DC.value++,s.value)}};function K_(e){return e.split("-")[1]}function KO(e){return e==="y"?"height":"width"}function W_(e){return e.split("-")[0]}function q_(e){return["top","bottom"].includes(W_(e))?"x":"y"}function FC(e,t,n){let{reference:s,floating:r}=e;const i=s.x+s.width/2-r.width/2,a=s.y+s.height/2-r.height/2,o=q_(t),l=KO(o),u=s[l]/2-r[l]/2,c=o==="x";let f;switch(W_(t)){case"top":f={x:i,y:s.y-r.height};break;case"bottom":f={x:i,y:s.y+s.height};break;case"right":f={x:s.x+s.width,y:a};break;case"left":f={x:s.x-r.width,y:a};break;default:f={x:s.x,y:s.y}}switch(K_(t)){case"start":f[o]-=u*(n&&c?-1:1);break;case"end":f[o]+=u*(n&&c?-1:1)}return f}const m7=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}=FC(u,s,l),h=s,p={},g=0;for(let m=0;m<o.length;m++){const{name:y,fn:v}=o[m],{x:_,y:w,data:T,reset:S}=await v({x:c,y:f,initialPlacement:s,placement:h,strategy:r,middlewareData:p,rects:u,platform:a,elements:{reference:e,floating:t}});c=_??c,f=w??f,p={...p,[y]:{...p[y],...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}=FC(u,h,l)),m=-1)}return{x:c,y:f,placement:h,strategy:r,middlewareData:p}};function g7(e){return typeof e!="number"?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(e):{top:e,right:e,bottom:e,left:e}}function WO(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}const v7=Math.min,y7=Math.max;function b7(e,t,n){return y7(e,v7(t,n))}const _7=e=>({name:"arrow",options:e,async fn(t){const{element:n,padding:s=0}=e||{},{x:r,y:i,placement:a,rects:o,platform:l,elements:u}=t;if(n==null)return{};const c=g7(s),f={x:r,y:i},h=q_(a),p=KO(h),g=await l.getDimensions(n),m=h==="y",y=m?"top":"left",v=m?"bottom":"right",_=m?"clientHeight":"clientWidth",w=o.reference[p]+o.reference[h]-f[h]-o.floating[p],T=f[h]-o.reference[h],S=await(l.getOffsetParent==null?void 0:l.getOffsetParent(n));let E=S?S[_]:0;E&&await(l.isElement==null?void 0:l.isElement(S))||(E=u.floating[_]||o.floating[p]);const $=w/2-T/2,P=c[y],U=E-g[p]-c[v],H=E/2-g[p]/2+$,z=b7(P,H,U),W=K_(a)!=null&&H!=z&&o.reference[p]/2-(H<P?c[y]:c[v])-g[p]/2<0;return{[h]:f[h]-(W?H<P?P-H:U-H:0),data:{[h]:z,centerOffset:H-z}}}}),T7=["top","right","bottom","left"];T7.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]);const w7=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:s}=t,r=await async function(i,a){const{placement:o,platform:l,elements:u}=i,c=await(l.isRTL==null?void 0:l.isRTL(u.floating)),f=W_(o),h=K_(o),p=q_(o)==="x",g=["left","top"].includes(f)?-1:1,m=c&&p?-1:1,y=typeof a=="function"?a(i):a;let{mainAxis:v,crossAxis:_,alignmentAxis:w}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...y};return h&&typeof w=="number"&&(_=h==="end"?-1*w:w),p?{x:_*m,y:v*g}:{x:v*g,y:_*m}}(t,e);return{x:n+r.x,y:s+r.y,data:r}}}};function hr(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ti(e){return hr(e).getComputedStyle(e)}function qO(e){return e instanceof hr(e).Node}function qa(e){return qO(e)?(e.nodeName||"").toLowerCase():""}let wh;function GO(){if(wh)return wh;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(wh=e.brands.map(t=>t.brand+"/"+t.version).join(" "),wh):navigator.userAgent}function Zr(e){return e instanceof hr(e).HTMLElement}function Ba(e){return e instanceof hr(e).Element}function BC(e){return typeof ShadowRoot>"u"?!1:e instanceof hr(e).ShadowRoot||e instanceof ShadowRoot}function rg(e){const{overflow:t,overflowX:n,overflowY:s,display:r}=Ti(e);return/auto|scroll|overlay|hidden|clip/.test(t+s+n)&&!["inline","contents"].includes(r)}function S7(e){return["table","td","th"].includes(qa(e))}function j0(e){const t=/firefox/i.test(GO()),n=Ti(e),s=n.backdropFilter||n.WebkitBackdropFilter;return n.transform!=="none"||n.perspective!=="none"||!!s&&s!=="none"||t&&n.willChange==="filter"||t&&!!n.filter&&n.filter!=="none"||["transform","perspective"].some(r=>n.willChange.includes(r))||["paint","layout","strict","content"].some(r=>{const i=n.contain;return i!=null&&i.includes(r)})}function K0(){return/^((?!chrome|android).)*safari/i.test(GO())}function G_(e){return["html","body","#document"].includes(qa(e))}const VC=Math.min,Xc=Math.max,Hp=Math.round;function YO(e){const t=Ti(e);let n=parseFloat(t.width),s=parseFloat(t.height);const r=Zr(e),i=r?e.offsetWidth:n,a=r?e.offsetHeight:s,o=Hp(n)!==i||Hp(s)!==a;return o&&(n=i,s=a),{width:n,height:s,fallback:o}}function XO(e){return Ba(e)?e:e.contextElement}const QO={x:1,y:1};function Gl(e){const t=XO(e);if(!Zr(t))return QO;const n=t.getBoundingClientRect(),{width:s,height:r,fallback:i}=YO(t);let a=(i?Hp(n.width):n.width)/s,o=(i?Hp(n.height):n.height)/r;return a&&Number.isFinite(a)||(a=1),o&&Number.isFinite(o)||(o=1),{x:a,y:o}}function Pd(e,t,n,s){var r,i;t===void 0&&(t=!1),n===void 0&&(n=!1);const a=e.getBoundingClientRect(),o=XO(e);let l=QO;t&&(s?Ba(s)&&(l=Gl(s)):l=Gl(e));const u=o?hr(o):window,c=K0()&&n;let f=(a.left+(c&&((r=u.visualViewport)==null?void 0:r.offsetLeft)||0))/l.x,h=(a.top+(c&&((i=u.visualViewport)==null?void 0:i.offsetTop)||0))/l.y,p=a.width/l.x,g=a.height/l.y;if(o){const m=hr(o),y=s&&Ba(s)?hr(s):s;let v=m.frameElement;for(;v&&s&&y!==m;){const _=Gl(v),w=v.getBoundingClientRect(),T=getComputedStyle(v);w.x+=(v.clientLeft+parseFloat(T.paddingLeft))*_.x,w.y+=(v.clientTop+parseFloat(T.paddingTop))*_.y,f*=_.x,h*=_.y,p*=_.x,g*=_.y,f+=w.x,h+=w.y,v=hr(v).frameElement}}return WO({width:p,height:g,x:f,y:h})}function Va(e){return((qO(e)?e.ownerDocument:e.document)||window.document).documentElement}function ig(e){return Ba(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function JO(e){return Pd(Va(e)).left+ig(e).scrollLeft}function $d(e){if(qa(e)==="html")return e;const t=e.assignedSlot||e.parentNode||BC(e)&&e.host||Va(e);return BC(t)?t.host:t}function ZO(e){const t=$d(e);return G_(t)?t.ownerDocument.body:Zr(t)&&rg(t)?t:ZO(t)}function eA(e,t){var n;t===void 0&&(t=[]);const s=ZO(e),r=s===((n=e.ownerDocument)==null?void 0:n.body),i=hr(s);return r?t.concat(i,i.visualViewport||[],rg(s)?s:[]):t.concat(s,eA(s))}function UC(e,t,n){let s;if(t==="viewport")s=function(a,o){const l=hr(a),u=Va(a),c=l.visualViewport;let f=u.clientWidth,h=u.clientHeight,p=0,g=0;if(c){f=c.width,h=c.height;const m=K0();(!m||m&&o==="fixed")&&(p=c.offsetLeft,g=c.offsetTop)}return{width:f,height:h,x:p,y:g}}(e,n);else if(t==="document")s=function(a){const o=Va(a),l=ig(a),u=a.ownerDocument.body,c=Xc(o.scrollWidth,o.clientWidth,u.scrollWidth,u.clientWidth),f=Xc(o.scrollHeight,o.clientHeight,u.scrollHeight,u.clientHeight);let h=-l.scrollLeft+JO(a);const p=-l.scrollTop;return Ti(u).direction==="rtl"&&(h+=Xc(o.clientWidth,u.clientWidth)-c),{width:c,height:f,x:h,y:p}}(Va(e));else if(Ba(t))s=function(a,o){const l=Pd(a,!0,o==="fixed"),u=l.top+a.clientTop,c=l.left+a.clientLeft,f=Zr(a)?Gl(a):{x:1,y:1};return{width:a.clientWidth*f.x,height:a.clientHeight*f.y,x:c*f.x,y:u*f.y}}(t,n);else{const a={...t};if(K0()){var r,i;const o=hr(e);a.x-=((r=o.visualViewport)==null?void 0:r.offsetLeft)||0,a.y-=((i=o.visualViewport)==null?void 0:i.offsetTop)||0}s=a}return WO(s)}function HC(e,t){return Zr(e)&&Ti(e).position!=="fixed"?t?t(e):e.offsetParent:null}function zC(e,t){const n=hr(e);if(!Zr(e))return n;let s=HC(e,t);for(;s&&S7(s)&&Ti(s).position==="static";)s=HC(s,t);return s&&(qa(s)==="html"||qa(s)==="body"&&Ti(s).position==="static"&&!j0(s))?n:s||function(r){let i=$d(r);for(;Zr(i)&&!G_(i);){if(j0(i))return i;i=$d(i)}return null}(e)||n}function C7(e,t,n){const s=Zr(t),r=Va(t),i=Pd(e,!0,n==="fixed",t);let a={scrollLeft:0,scrollTop:0};const o={x:0,y:0};if(s||!s&&n!=="fixed")if((qa(t)!=="body"||rg(r))&&(a=ig(t)),Zr(t)){const l=Pd(t,!0);o.x=l.x+t.clientLeft,o.y=l.y+t.clientTop}else r&&(o.x=JO(r));return{x:i.left+a.scrollLeft-o.x,y:i.top+a.scrollTop-o.y,width:i.width,height:i.height}}const E7={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:s,strategy:r}=e;const i=n==="clippingAncestors"?function(u,c){const f=c.get(u);if(f)return f;let h=eA(u).filter(y=>Ba(y)&&qa(y)!=="body"),p=null;const g=Ti(u).position==="fixed";let m=g?$d(u):u;for(;Ba(m)&&!G_(m);){const y=Ti(m),v=j0(m);y.position==="fixed"?p=null:(g?v||p:v||y.position!=="static"||!p||!["absolute","fixed"].includes(p.position))?p=y:h=h.filter(_=>_!==m),m=$d(m)}return c.set(u,h),h}(t,this._c):[].concat(n),a=[...i,s],o=a[0],l=a.reduce((u,c)=>{const f=UC(t,c,r);return u.top=Xc(f.top,u.top),u.right=VC(f.right,u.right),u.bottom=VC(f.bottom,u.bottom),u.left=Xc(f.left,u.left),u},UC(t,o,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:s}=e;const r=Zr(n),i=Va(n);if(n===i)return t;let a={scrollLeft:0,scrollTop:0},o={x:1,y:1};const l={x:0,y:0};if((r||!r&&s!=="fixed")&&((qa(n)!=="body"||rg(i))&&(a=ig(n)),Zr(n))){const u=Pd(n);o=Gl(n),l.x=u.x+n.clientLeft,l.y=u.y+n.clientTop}return{width:t.width*o.x,height:t.height*o.y,x:t.x*o.x-a.scrollLeft*o.x+l.x,y:t.y*o.y-a.scrollTop*o.y+l.y}},isElement:Ba,getDimensions:function(e){return YO(e)},getOffsetParent:zC,getDocumentElement:Va,getScale:Gl,async getElementRects(e){let{reference:t,floating:n,strategy:s}=e;const r=this.getOffsetParent||zC,i=this.getDimensions;return{reference:C7(t,await r(n),s),floating:{x:0,y:0,...await i(n)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>Ti(e).direction==="rtl"},x7=(e,t,n)=>{const s=new Map,r={platform:E7,...n},i={...r.platform,_c:s};return m7(e,t,{...r,platform:i})};He({});const k7=e=>{if(!Kt)return;if(!e)return e;const t=qs(e);return t||(an(e)?t:e)},I7=({middleware:e,placement:t,strategy:n})=>{const s=G(),r=G(),i=G(),a=G(),o=G({}),l={x:i,y:a,placement:t,strategy:n,middlewareData:o},u=async()=>{if(!Kt)return;const c=k7(s),f=qs(r);if(!c||!f)return;const h=await x7(c,f,{placement:d(t),strategy:d(n),middleware:d(e)});kd(l).forEach(p=>{l[p].value=h[p]})};return vt(()=>{Gs(()=>{u()})}),{...l,update:u,referenceRef:s,contentRef:r}},O7=({arrowRef:e,padding:t})=>({name:"arrow",options:{element:e,padding:t},fn(n){const s=d(e);return s?_7({element:s,padding:t}).fn(n):{}}});function A7(e){const t=G();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.value={selectionStart:r,selectionEnd:i,value:a,beforeTxt:o,afterTxt:l}}function s(){if(e.value==null||t.value==null)return;const{value:r}=e.value,{beforeTxt:i,afterTxt:a,selectionStart:o}=t.value;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 P7=(e,t,n)=>Ho(e.subTree).filter(i=>{var a;return pn(i)&&((a=i.type)==null?void 0:a.name)===t&&!!i.component}).map(i=>i.component.uid).map(i=>n[i]).filter(i=>!!i),Y_=(e,t)=>{const n={},s=Jt([]);return{children:s,addChild:a=>{n[a.uid]=a,s.value=P7(e,t,n)},removeChild:a=>{delete n[a],s.value=s.value.filter(o=>o.uid!==a)}}},os=si({type:String,values:Li,required:!1}),tA=Symbol("size"),$7=()=>{const e=Qe(tA,{});return k(()=>d(e.size)||"")};function nA(e,{afterFocus:t,beforeBlur:n,afterBlur:s}={}){const r=It(),{emit:i}=r,a=Jt(),o=G(!1),l=f=>{o.value||(o.value=!0,i("focus",f),t==null||t())},u=f=>{var h;yt(n)&&n(f)||f.relatedTarget&&((h=a.value)!=null&&h.contains(f.relatedTarget))||(o.value=!1,i("blur",f),s==null||s())},c=()=>{var f;(f=e.value)==null||f.focus()};return Oe(a,f=>{f&&f.setAttribute("tabindex","-1")}),dn(a,"click",c),{wrapperRef:a,isFocused:o,handleFocus:l,handleBlur:u}}const sA=Symbol(),zp=G();function ag(e,t=void 0){const n=It()?Qe(sA,zp):zp;return e?k(()=>{var s,r;return(r=(s=n.value)==null?void 0:s[e])!=null?r:t}):n}function og(e,t){const n=ag(),s=Le(e,k(()=>{var o;return((o=n.value)==null?void 0:o.namespace)||qc})),r=Wt(k(()=>{var o;return(o=n.value)==null?void 0:o.locale})),i=Wu(k(()=>{var o;return((o=n.value)==null?void 0:o.zIndex)||zO})),a=k(()=>{var o;return d(t)||((o=n.value)==null?void 0:o.size)||""});return X_(k(()=>d(n)||{})),{ns:s,locale:r,zIndex:i,size:a}}const X_=(e,t,n=!1)=>{var s;const r=!!It(),i=r?ag():void 0,a=(s=t==null?void 0:t.provide)!=null?s:r?Lt:void 0;if(!a)return;const o=k(()=>{const l=d(e);return i!=null&&i.value?N7(i.value,l):l});return a(sA,o),a(wO,k(()=>o.value.locale)),a(SO,k(()=>o.value.namespace)),a(jO,k(()=>o.value.zIndex)),a(tA,{size:k(()=>o.value.size||"")}),(n||!zp.value)&&(zp.value=o.value),o},N7=(e,t)=>{var n;const s=[...new Set([...kd(e),...kd(t)])],r={};for(const i of s)r[i]=(n=t[i])!=null?n:e[i];return r},M7=He({a11y:{type:Boolean,default:!0},locale:{type:me(Object)},size:os,button:{type:me(Object)},experimentalFeatures:{type:me(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:me(Object)},zIndex:Number,namespace:{type:String,default:"el"}}),W0={},R7=Z({name:"ElConfigProvider",props:M7,setup(e,{slots:t}){Oe(()=>e.message,s=>{Object.assign(W0,s??{})},{immediate:!0,deep:!0});const n=X_(e);return()=>we(t,"default",{config:n==null?void 0:n.value})}}),rA=At(R7),L7="2.4.4",D7=(e=[])=>({version:L7,install:(n,s)=>{n[wC]||(n[wC]=!0,e.forEach(r=>n.use(r)),s&&X_(s,n,!0))}}),F7=He({zIndex:{type:me([Number,String]),default:100},target:{type:String,default:""},offset:{type:Number,default:0},position:{type:String,values:["top","bottom"],default:"top"}}),B7={scroll:({scrollTop:e,fixed:t})=>ht(e)&&Gn(t),[ln]:e=>Gn(e)};var ze=(e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n};const iA="ElAffix",V7=Z({name:iA}),U7=Z({...V7,props:F7,emits:B7,setup(e,{expose:t,emit:n}){const s=e,r=Le("affix"),i=Jt(),a=Jt(),o=Jt(),{height:l}=WF(),{height:u,width:c,top:f,bottom:h,update:p}=BS(a,{windowScroll:!1}),g=BS(i),m=G(!1),y=G(0),v=G(0),_=k(()=>({height:m.value?`${u.value}px`:"",width:m.value?`${c.value}px`:""})),w=k(()=>{if(!m.value)return{};const E=s.offset?Mn(s.offset):0;return{height:`${u.value}px`,width:`${c.value}px`,top:s.position==="top"?E:"",bottom:s.position==="bottom"?E:"",transform:v.value?`translateY(${v.value}px)`:"",zIndex:s.zIndex}}),T=()=>{if(o.value)if(y.value=o.value instanceof Window?document.documentElement.scrollTop:o.value.scrollTop||0,s.position==="top")if(s.target){const E=g.bottom.value-s.offset-u.value;m.value=s.offset>f.value&&g.bottom.value>0,v.value=E<0?E:0}else m.value=s.offset>f.value;else if(s.target){const E=l.value-g.top.value-s.offset-u.value;m.value=l.value-s.offset<h.value&&l.value>g.top.value,v.value=E<0?-E:0}else m.value=l.value-s.offset<h.value},S=()=>{p(),n("scroll",{scrollTop:y.value,fixed:m.value})};return Oe(m,E=>n("change",E)),vt(()=>{var E;s.target?(i.value=(E=document.querySelector(s.target))!=null?E:void 0,i.value||Yn(iA,`Target is not existed: ${s.target}`)):i.value=document.documentElement,o.value=S_(a.value,!0),p()}),dn(o,"scroll",S),Gs(T),t({update:T,updateRoot:p}),(E,$)=>(C(),j("div",{ref_key:"root",ref:a,class:M(d(r).b()),style:rt(d(_))},[R("div",{class:M({[d(r).m("fixed")]:m.value}),style:rt(d(w))},[we(E.$slots,"default")],6)],6))}});var H7=ze(U7,[["__file","affix.vue"]]);const z7=At(H7),j7=He({size:{type:me([Number,String])},color:{type:String}}),K7=Z({name:"ElIcon",inheritAttrs:!1}),W7=Z({...K7,props:j7,setup(e){const t=e,n=Le("icon"),s=k(()=>{const{size:r,color:i}=t;return!r&&!i?{}:{fontSize:qn(r)?void 0:Mn(r),"--color":i}});return(r,i)=>(C(),j("i",Rt({class:d(n).b(),style:d(s)},r.$attrs),[we(r.$slots,"default")],16))}});var q7=ze(W7,[["__file","icon.vue"]]);const tt=At(q7),G7=["light","dark"],Y7=He({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:kd(Wa),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:G7,default:"light"}}),X7={close:e=>e instanceof MouseEvent},Q7=Z({name:"ElAlert"}),J7=Z({...Q7,props:Y7,emits:X7,setup(e,{emit:t}){const n=e,{Close:s}=P_,r=us(),i=Le("alert"),a=G(!0),o=k(()=>Wa[n.type]),l=k(()=>[i.e("icon"),{[i.is("big")]:!!n.description||!!r.default}]),u=k(()=>({[i.is("bold")]:n.description||r.default})),c=f=>{a.value=!1,t("close",f)};return(f,h)=>(C(),he(Rn,{name:d(i).b("fade"),persisted:""},{default:N(()=>[pt(R("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)?(C(),he(d(tt),{key:0,class:M(d(l))},{default:N(()=>[(C(),he(Nt(d(o))))]),_:1},8,["class"])):le("v-if",!0),R("div",{class:M(d(i).e("content"))},[f.title||f.$slots.title?(C(),j("span",{key:0,class:M([d(i).e("title"),d(u)])},[we(f.$slots,"title",{},()=>[Fe(ve(f.title),1)])],2)):le("v-if",!0),f.$slots.default||f.description?(C(),j("p",{key:1,class:M(d(i).e("description"))},[we(f.$slots,"default",{},()=>[Fe(ve(f.description),1)])],2)):le("v-if",!0),f.closable?(C(),j(Ke,{key:2},[f.closeText?(C(),j("div",{key:0,class:M([d(i).e("close-btn"),d(i).is("customed")]),onClick:c},ve(f.closeText),3)):(C(),he(d(tt),{key:1,class:M(d(i).e("close-btn")),onClick:c},{default:N(()=>[I(d(s))]),_:1},8,["class"]))],64)):le("v-if",!0)],2)],2),[[Vt,a.value]])]),_:3},8,["name"]))}});var Z7=ze(J7,[["__file","alert.vue"]]);const eK=At(Z7),cl=Symbol("formContextKey"),Ai=Symbol("formItemContextKey"),Xn=(e,t={})=>{const n=G(void 0),s=t.prop?n:xO("size"),r=t.global?n:$7(),i=t.form?{size:void 0}:Qe(cl,void 0),a=t.formItem?{size:void 0}:Qe(Ai,void 0);return k(()=>s.value||d(e)||(a==null?void 0:a.size)||(i==null?void 0:i.size)||r.value||"")},ir=e=>{const t=xO("disabled"),n=Qe(cl,void 0);return k(()=>t.value||d(e)||(n==null?void 0:n.disabled)||!1)},Bs=()=>{const e=Qe(cl,void 0),t=Qe(Ai,void 0);return{form:e,formItem:t}},ro=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:s})=>{n||(n=G(!1)),s||(s=G(!1));const r=G();let i;const a=k(()=>{var o;return!!(!e.label&&t&&t.inputIds&&((o=t.inputIds)==null?void 0:o.length)<=1)});return vt(()=>{i=Oe([yn(e,"id"),n],([o,l])=>{const u=o??(l?void 0:tr().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})}),eo(()=>{i&&i(),t!=null&&t.removeInputId&&r.value&&t.removeInputId(r.value)}),{isLabeledByFormItem:a,inputId:r}},tK=He({size:{type:String,values:Li},disabled:Boolean}),nK=He({...tK,model:Object,rules:{type:me(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]}}),sK={validate:(e,t,n)=>(st(e)||Tt(e))&&Gn(t)&&Tt(n)};function rK(){const e=G([]),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 Sh=(e,t)=>{const n=Jo(t);return n.length>0?e.filter(s=>s.prop&&n.includes(s.prop)):e},iK="ElForm",aK=Z({name:iK}),oK=Z({...aK,props:nK,emits:sK,setup(e,{expose:t,emit:n}){const s=e,r=[],i=Xn(),a=Le("form"),o=k(()=>{const{labelPosition:_,inline:w}=s;return[a.b(),a.m(i.value||"default"),{[a.m(`label-${_}`)]:_,[a.m("inline")]:w}]}),l=_=>{r.push(_)},u=_=>{_.prop&&r.splice(r.indexOf(_),1)},c=(_=[])=>{s.model&&Sh(r,_).forEach(w=>w.resetField())},f=(_=[])=>{Sh(r,_).forEach(w=>w.clearValidate())},h=k(()=>!!s.model),p=_=>{if(r.length===0)return[];const w=Sh(r,_);return w.length?w:[]},g=async _=>y(void 0,_),m=async(_=[])=>{if(!h.value)return!1;const w=p(_);if(w.length===0)return!0;let T={};for(const S of w)try{await S.validate("")}catch(E){T={...T,...E}}return Object.keys(T).length===0?!0:Promise.reject(T)},y=async(_=[],w)=>{const T=!yt(w);try{const S=await m(_);return S===!0&&(w==null||w(S)),S}catch(S){if(S instanceof Error)throw S;const E=S;return s.scrollToError&&v(Object.keys(E)[0]),w==null||w(!1,E),T&&Promise.reject(E)}},v=_=>{var w;const T=Sh(r,_)[0];T&&((w=T.$el)==null||w.scrollIntoView(s.scrollIntoViewOptions))};return Oe(()=>s.rules,()=>{s.validateOnRuleChange&&g().catch(_=>void 0)},{deep:!0}),Lt(cl,Ct({...es(s),emit:n,resetFields:c,clearValidate:f,validateField:y,addField:l,removeField:u,...rK()})),t({validate:g,validateField:y,resetFields:c,clearValidate:f,scrollToField:v}),(_,w)=>(C(),j("form",{class:M(d(o))},[we(_.$slots,"default")],2))}});var lK=ze(oK,[["__file","form.vue"]]);function Po(){return Po=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},Po.apply(this,arguments)}function uK(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Nd(e,t)}function q0(e){return q0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},q0(e)}function Nd(e,t){return Nd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(s,r){return s.__proto__=r,s},Nd(e,t)}function cK(){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 ep(e,t,n){return cK()?ep=Reflect.construct.bind():ep=function(r,i,a){var o=[null];o.push.apply(o,i);var l=Function.bind.apply(r,o),u=new l;return a&&Nd(u,a.prototype),u},ep.apply(null,arguments)}function dK(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function G0(e){var t=typeof Map=="function"?new Map:void 0;return G0=function(s){if(s===null||!dK(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 ep(s,arguments,q0(this).constructor)}return r.prototype=Object.create(s.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Nd(r,s)},G0(e)}var fK=/%[sdj%]/g,hK=function(){};typeof process<"u"&&process.env;function Y0(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 pr(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(fK,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 pK(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function ts(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||pK(t)&&typeof e=="string"&&!e)}function mK(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 jC(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 gK(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n]||[])}),t}var KC=function(e){uK(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}(G0(Error));function vK(e,t,n,s,r){if(t.first){var i=new Promise(function(h,p){var g=function(v){return s(v),v.length?p(new KC(v,Y0(v))):h(r)},m=gK(e);jC(m,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,p){var g=function(y){if(c.push.apply(c,y),u++,u===l)return s(c),c.length?p(new KC(c,Y0(c))):h(r)};o.length||(s(c),h(r)),o.forEach(function(m){var y=e[m];a.indexOf(m)!==-1?jC(y,n,g):mK(y,n,g)})});return f.catch(function(h){return h}),f}function yK(e){return!!(e&&e.message!==void 0)}function bK(e,t){for(var n=e,s=0;s<t.length;s++){if(n==null)return n;n=n[t[s]]}return n}function WC(e,t){return function(n){var s;return e.fullFields?s=bK(t,e.fullFields):s=t[n.field||e.fullField],yK(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 qC(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]=Po({},e[n],s):e[n]=s}}return e}var aA=function(t,n,s,r,i,a){t.required&&(!s.hasOwnProperty(t.field)||ts(n,a||t.type))&&r.push(pr(i.messages.required,t.fullField))},_K=function(t,n,s,r,i){(/^\s+$/.test(n)||n==="")&&r.push(pr(i.messages.whitespace,t.fullField))},Ch,TK=function(){if(Ch)return Ch;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(w){return w&&w.exact?a:new RegExp(""+t(w)+n+t(w),"g")},l.v6=function(w){return w&&w.exact?o:new RegExp(""+t(w)+r+t(w),"g")};var u="(?:(?:[a-z]+:)?//)",c="(?:\\S+(?::\\S*)?@)?",f=l.v4().source,h=l.v6().source,p="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",g="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",m="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",y="(?::\\d{2,5})?",v='(?:[/?#][^\\s"]*)?',_="(?:"+u+"|www\\.)"+c+"(?:localhost|"+f+"|"+h+"|"+p+g+m+")"+y+v;return Ch=new RegExp("(?:^"+_+"$)","i"),Ch},GC={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},Nc={integer:function(t){return Nc.number(t)&&parseInt(t,10)===t},float:function(t){return Nc.number(t)&&!Nc.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"&&!Nc.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(GC.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(TK())},hex:function(t){return typeof t=="string"&&!!t.match(GC.hex)}},wK=function(t,n,s,r,i){if(t.required&&n===void 0){aA(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?Nc[o](n)||r.push(pr(i.messages.types[o],t.fullField,t.type)):o&&typeof n!==t.type&&r.push(pr(i.messages.types[o],t.fullField,t.type))},SK=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",p=typeof n=="string",g=Array.isArray(n);if(h?f="number":p?f="string":g&&(f="array"),!f)return!1;g&&(c=n.length),p&&(c=n.replace(u,"_").length),a?c!==t.len&&r.push(pr(i.messages[f].len,t.fullField,t.len)):o&&!l&&c<t.min?r.push(pr(i.messages[f].min,t.fullField,t.min)):l&&!o&&c>t.max?r.push(pr(i.messages[f].max,t.fullField,t.max)):o&&l&&(c<t.min||c>t.max)&&r.push(pr(i.messages[f].range,t.fullField,t.min,t.max))},vl="enum",CK=function(t,n,s,r,i){t[vl]=Array.isArray(t[vl])?t[vl]:[],t[vl].indexOf(n)===-1&&r.push(pr(i.messages[vl],t.fullField,t[vl].join(", ")))},EK=function(t,n,s,r,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||r.push(pr(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(pr(i.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},tn={required:aA,whitespace:_K,type:wK,range:SK,enum:CK,pattern:EK},xK=function(t,n,s,r,i){var a=[],o=t.required||!t.required&&r.hasOwnProperty(t.field);if(o){if(ts(n,"string")&&!t.required)return s();tn.required(t,n,r,a,i,"string"),ts(n,"string")||(tn.type(t,n,r,a,i),tn.range(t,n,r,a,i),tn.pattern(t,n,r,a,i),t.whitespace===!0&&tn.whitespace(t,n,r,a,i))}s(a)},kK=function(t,n,s,r,i){var a=[],o=t.required||!t.required&&r.hasOwnProperty(t.field);if(o){if(ts(n)&&!t.required)return s();tn.required(t,n,r,a,i),n!==void 0&&tn.type(t,n,r,a,i)}s(a)},IK=function(t,n,s,r,i){var a=[],o=t.required||!t.required&&r.hasOwnProperty(t.field);if(o){if(n===""&&(n=void 0),ts(n)&&!t.required)return s();tn.required(t,n,r,a,i),n!==void 0&&(tn.type(t,n,r,a,i),tn.range(t,n,r,a,i))}s(a)},OK=function(t,n,s,r,i){var a=[],o=t.required||!t.required&&r.hasOwnProperty(t.field);if(o){if(ts(n)&&!t.required)return s();tn.required(t,n,r,a,i),n!==void 0&&tn.type(t,n,r,a,i)}s(a)},AK=function(t,n,s,r,i){var a=[],o=t.required||!t.required&&r.hasOwnProperty(t.field);if(o){if(ts(n)&&!t.required)return s();tn.required(t,n,r,a,i),ts(n)||tn.type(t,n,r,a,i)}s(a)},PK=function(t,n,s,r,i){var a=[],o=t.required||!t.required&&r.hasOwnProperty(t.field);if(o){if(ts(n)&&!t.required)return s();tn.required(t,n,r,a,i),n!==void 0&&(tn.type(t,n,r,a,i),tn.range(t,n,r,a,i))}s(a)},$K=function(t,n,s,r,i){var a=[],o=t.required||!t.required&&r.hasOwnProperty(t.field);if(o){if(ts(n)&&!t.required)return s();tn.required(t,n,r,a,i),n!==void 0&&(tn.type(t,n,r,a,i),tn.range(t,n,r,a,i))}s(a)},NK=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();tn.required(t,n,r,a,i,"array"),n!=null&&(tn.type(t,n,r,a,i),tn.range(t,n,r,a,i))}s(a)},MK=function(t,n,s,r,i){var a=[],o=t.required||!t.required&&r.hasOwnProperty(t.field);if(o){if(ts(n)&&!t.required)return s();tn.required(t,n,r,a,i),n!==void 0&&tn.type(t,n,r,a,i)}s(a)},RK="enum",LK=function(t,n,s,r,i){var a=[],o=t.required||!t.required&&r.hasOwnProperty(t.field);if(o){if(ts(n)&&!t.required)return s();tn.required(t,n,r,a,i),n!==void 0&&tn[RK](t,n,r,a,i)}s(a)},DK=function(t,n,s,r,i){var a=[],o=t.required||!t.required&&r.hasOwnProperty(t.field);if(o){if(ts(n,"string")&&!t.required)return s();tn.required(t,n,r,a,i),ts(n,"string")||tn.pattern(t,n,r,a,i)}s(a)},FK=function(t,n,s,r,i){var a=[],o=t.required||!t.required&&r.hasOwnProperty(t.field);if(o){if(ts(n,"date")&&!t.required)return s();if(tn.required(t,n,r,a,i),!ts(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),tn.type(t,l,r,a,i),l&&tn.range(t,l.getTime(),r,a,i)}}s(a)},BK=function(t,n,s,r,i){var a=[],o=Array.isArray(n)?"array":typeof n;tn.required(t,n,r,a,i,o),s(a)},Cv=function(t,n,s,r,i){var a=t.type,o=[],l=t.required||!t.required&&r.hasOwnProperty(t.field);if(l){if(ts(n,a)&&!t.required)return s();tn.required(t,n,r,o,i,a),ts(n,a)||tn.type(t,n,r,o,i)}s(o)},VK=function(t,n,s,r,i){var a=[],o=t.required||!t.required&&r.hasOwnProperty(t.field);if(o){if(ts(n)&&!t.required)return s();tn.required(t,n,r,a,i)}s(a)},Qc={string:xK,method:kK,number:IK,boolean:OK,regexp:AK,integer:PK,float:$K,array:NK,object:MK,enum:LK,pattern:DK,date:FK,url:Cv,hex:Cv,email:Cv,required:BK,any:VK};function X0(){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 Q0=X0(),vf=function(){function e(n){this.rules=null,this._messages=Q0,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=qC(X0(),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(m){var y=[],v={};function _(T){if(Array.isArray(T)){var S;y=(S=y).concat.apply(S,T)}else y.push(T)}for(var w=0;w<m.length;w++)_(m[w]);y.length?(v=Y0(y),u(y,v)):u(null,o)}if(l.messages){var f=this.messages();f===Q0&&(f=X0()),qC(f,l.messages),l.messages=f}else l.messages=this.messages();var h={},p=l.keys||Object.keys(this.rules);p.forEach(function(m){var y=a.rules[m],v=o[m];y.forEach(function(_){var w=_;typeof w.transform=="function"&&(o===s&&(o=Po({},o)),v=o[m]=w.transform(v)),typeof w=="function"?w={validator:w}:w=Po({},w),w.validator=a.getValidationMethod(w),w.validator&&(w.field=m,w.fullField=w.fullField||m,w.type=a.getType(w),h[m]=h[m]||[],h[m].push({rule:w,value:v,source:o,field:m}))})});var g={};return vK(h,l,function(m,y){var v=m.rule,_=(v.type==="object"||v.type==="array")&&(typeof v.fields=="object"||typeof v.defaultField=="object");_=_&&(v.required||!v.required&&m.value),v.field=m.field;function w(E,$){return Po({},$,{fullField:v.fullField+"."+E,fullFields:v.fullFields?[].concat(v.fullFields,[E]):[E]})}function T(E){E===void 0&&(E=[]);var $=Array.isArray(E)?E:[E];!l.suppressWarning&&$.length&&e.warning("async-validator:",$),$.length&&v.message!==void 0&&($=[].concat(v.message));var P=$.map(WC(v,o));if(l.first&&P.length)return g[v.field]=1,y(P);if(!_)y(P);else{if(v.required&&!m.value)return v.message!==void 0?P=[].concat(v.message).map(WC(v,o)):l.error&&(P=[l.error(v,pr(l.messages.required,v.field))]),y(P);var U={};v.defaultField&&Object.keys(m.value).map(function(W){U[W]=v.defaultField}),U=Po({},U,m.rule.fields);var H={};Object.keys(U).forEach(function(W){var D=U[W],V=Array.isArray(D)?D:[D];H[W]=V.map(w.bind(null,W))});var z=new e(H);z.messages(l.messages),m.rule.options&&(m.rule.options.messages=l.messages,m.rule.options.error=l.error),z.validate(m.value,m.rule.options||l,function(W){var D=[];P&&P.length&&D.push.apply(D,P),W&&W.length&&D.push.apply(D,W),y(D.length?D:null)})}}var S;if(v.asyncValidator)S=v.asyncValidator(v,m.value,T,m.source,l);else if(v.validator){try{S=v.validator(v,m.value,T,m.source,l)}catch(E){console.error==null||console.error(E),l.suppressValidatorError||setTimeout(function(){throw E},0),T(E.message)}S===!0?T():S===!1?T(typeof v.message=="function"?v.message(v.fullField||v.field):v.message||(v.fullField||v.field)+" fails"):S instanceof Array?T(S):S instanceof Error&&T(S.message)}S&&S.then&&S.then(function(){return T()},function(E){return T(E)})},function(m){c(m)},o)},t.getType=function(s){if(s.type===void 0&&s.pattern instanceof RegExp&&(s.type="pattern"),typeof s.validator!="function"&&s.type&&!Qc.hasOwnProperty(s.type))throw new Error(pr("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"?Qc.required:Qc[this.getType(s)]||void 0},e}();vf.register=function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");Qc[t]=n};vf.warning=hK;vf.messages=Q0;vf.validators=Qc;const UK=["","error","validating","success"],HK=He({label:String,labelWidth:{type:[String,Number],default:""},prop:{type:me([String,Array])},required:{type:Boolean,default:void 0},rules:{type:me([Object,Array])},error:String,validateStatus:{type:String,values:UK},for:String,inlineMessage:{type:[String,Boolean],default:""},showMessage:{type:Boolean,default:!0},size:{type:String,values:Li}}),YC="ElLabelWrap";var zK=Z({name:YC,props:{isAutoWidth:Boolean,updateAll:Boolean},setup(e,{slots:t}){const n=Qe(cl,void 0),s=Qe(Ai);s||Yn(YC,"usage: <el-form-item><label-wrap /></el-form-item>");const r=Le("form"),i=G(),a=G(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")=>{at(()=>{t.default&&e.isAutoWidth&&(c==="update"?a.value=o():c==="remove"&&(n==null||n.deregisterLabelWidth(a.value)))})},u=()=>l("update");return vt(()=>{u()}),on(()=>{l("remove")}),ha(()=>u()),Oe(a,(c,f)=>{e.updateAll&&(n==null||n.registerLabelWidth(c,f))}),_s(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 p=n==null?void 0:n.autoLabelWidth,g=s==null?void 0:s.hasLabel,m={};if(g&&p&&p!=="auto"){const y=Math.max(0,Number.parseInt(p,10)-a.value),v=n.labelPosition==="left"?"marginRight":"marginLeft";y&&(m[v]=`${y}px`)}return I("div",{ref:i,class:[r.be("item","label-wrap")],style:m},[(c=t.default)==null?void 0:c.call(t)])}else return I(Ke,{ref:i},[(f=t.default)==null?void 0:f.call(t)])}}});const jK=["role","aria-labelledby"],KK=Z({name:"ElFormItem"}),WK=Z({...KK,props:HK,setup(e,{expose:t}){const n=e,s=us(),r=Qe(cl,void 0),i=Qe(Ai,void 0),a=Xn(void 0,{formItem:!1}),o=Le("form-item"),l=tr().value,u=G([]),c=G(""),f=kF(c,100),h=G(""),p=G();let g,m=!1;const y=k(()=>{if((r==null?void 0:r.labelPosition)==="top")return{};const de=Mn(n.labelWidth||(r==null?void 0:r.labelWidth)||"");return de?{width:de}:{}}),v=k(()=>{if((r==null?void 0:r.labelPosition)==="top"||r!=null&&r.inline)return{};if(!n.label&&!n.labelWidth&&U)return{};const de=Mn(n.labelWidth||(r==null?void 0:r.labelWidth)||"");return!n.label&&!s.label?{marginLeft:de}:{}}),_=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",V.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}]),w=k(()=>Gn(n.inlineMessage)?n.inlineMessage:(r==null?void 0:r.inlineMessage)||!1),T=k(()=>[o.e("error"),{[o.em("error","inline")]:w.value}]),S=k(()=>n.prop?Tt(n.prop)?n.prop:n.prop.join("."):""),E=k(()=>!!(n.label||s.label)),$=k(()=>n.for||(u.value.length===1?u.value[0]:void 0)),P=k(()=>!$.value&&E.value),U=!!i,H=k(()=>{const de=r==null?void 0:r.model;if(!(!de||!n.prop))return Jh(de,n.prop).value}),z=k(()=>{const{required:de}=n,ae=[];n.rules&&ae.push(...Jo(n.rules));const Ie=r==null?void 0:r.rules;if(Ie&&n.prop){const ke=Jh(Ie,n.prop).value;ke&&ae.push(...Jo(ke))}if(de!==void 0){const ke=ae.map((Ee,J)=>[Ee,J]).filter(([Ee])=>Object.keys(Ee).includes("required"));if(ke.length>0)for(const[Ee,J]of ke)Ee.required!==de&&(ae[J]={...Ee,required:de});else ae.push({required:de})}return ae}),W=k(()=>z.value.length>0),D=de=>z.value.filter(Ie=>!Ie.trigger||!de?!0:Array.isArray(Ie.trigger)?Ie.trigger.includes(de):Ie.trigger===de).map(({trigger:Ie,...ke})=>ke),V=k(()=>z.value.some(de=>de.required)),X=k(()=>{var de;return f.value==="error"&&n.showMessage&&((de=r==null?void 0:r.showMessage)!=null?de:!0)}),Y=k(()=>`${n.label||""}${(r==null?void 0:r.labelSuffix)||""}`),B=de=>{c.value=de},K=de=>{var ae,Ie;const{errors:ke,fields:Ee}=de;(!ke||!Ee)&&console.error(de),B("error"),h.value=ke?(Ie=(ae=ke==null?void 0:ke[0])==null?void 0:ae.message)!=null?Ie:`${n.prop} is required`:"",r==null||r.emit("validate",n.prop,!1,h.value)},L=()=>{B("success"),r==null||r.emit("validate",n.prop,!0,"")},Q=async de=>{const ae=S.value;return new vf({[ae]:de}).validate({[ae]:H.value},{firstFields:!0}).then(()=>(L(),!0)).catch(ke=>(K(ke),Promise.reject(ke)))},ee=async(de,ae)=>{if(m||!n.prop)return!1;const Ie=yt(ae);if(!W.value)return ae==null||ae(!1),!1;const ke=D(de);return ke.length===0?(ae==null||ae(!0),!0):(B("validating"),Q(ke).then(()=>(ae==null||ae(!0),!0)).catch(Ee=>{const{fields:J}=Ee;return ae==null||ae(!1,J),Ie?!1:Promise.reject(J)}))},te=()=>{B(""),h.value="",m=!1},ie=async()=>{const de=r==null?void 0:r.model;if(!de||!n.prop)return;const ae=Jh(de,n.prop);m=!0,ae.value=vC(g),await at(),te(),m=!1},_e=de=>{u.value.includes(de)||u.value.push(de)},ue=de=>{u.value=u.value.filter(ae=>ae!==de)};Oe(()=>n.error,de=>{h.value=de||"",B(de?"error":"")},{immediate:!0}),Oe(()=>n.validateStatus,de=>B(de||""));const oe=Ct({...es(n),$el:p,size:a,validateState:c,labelId:l,inputIds:u,isGroup:P,hasLabel:E,addInputId:_e,removeInputId:ue,resetField:ie,clearValidate:te,validate:ee});return Lt(Ai,oe),vt(()=>{n.prop&&(r==null||r.addField(oe),g=vC(H.value))}),on(()=>{r==null||r.removeField(oe)}),t({size:a,validateMessage:h,validateState:c,validate:ee,clearValidate:te,resetField:ie}),(de,ae)=>{var Ie;return C(),j("div",{ref_key:"formItemRef",ref:p,class:M(d(_)),role:d(P)?"group":void 0,"aria-labelledby":d(P)?d(l):void 0},[I(d(zK),{"is-auto-width":d(y).width==="auto","update-all":((Ie=d(r))==null?void 0:Ie.labelWidth)==="auto"},{default:N(()=>[d(E)?(C(),he(Nt(d($)?"label":"div"),{key:0,id:d(l),for:d($),class:M(d(o).e("label")),style:rt(d(y))},{default:N(()=>[we(de.$slots,"label",{label:d(Y)},()=>[Fe(ve(d(Y)),1)])]),_:3},8,["id","for","class","style"])):le("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),R("div",{class:M(d(o).e("content")),style:rt(d(v))},[we(de.$slots,"default"),I(gI,{name:`${d(o).namespace.value}-zoom-in-top`},{default:N(()=>[d(X)?we(de.$slots,"error",{key:0,error:h.value},()=>[R("div",{class:M(d(T))},ve(h.value),3)]):le("v-if",!0)]),_:3},8,["name"])],6)],10,jK)}}});var oA=ze(WK,[["__file","form-item.vue"]]);const io=At(lK,{FormItem:oA}),ao=In(oA);let Fr;const qK=`
|
||
height:0 !important;
|
||
visibility:hidden !important;
|
||
${EI()?"":"overflow:hidden !important;"}
|
||
position:absolute !important;
|
||
z-index:-1000 !important;
|
||
top:0 !important;
|
||
right:0 !important;
|
||
`,GK=["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 YK(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:GK.map(a=>`${a}:${t.getPropertyValue(a)}`).join(";"),paddingSize:s,borderSize:r,boxSizing:n}}function XC(e,t=1,n){var s;Fr||(Fr=document.createElement("textarea"),document.body.appendChild(Fr));const{paddingSize:r,borderSize:i,boxSizing:a,contextStyle:o}=YK(e);Fr.setAttribute("style",`${o};${qK}`),Fr.value=e.value||e.placeholder||"";let l=Fr.scrollHeight;const u={};a==="border-box"?l=l+i:a==="content-box"&&(l=l-r),Fr.value="";const c=Fr.scrollHeight-r;if(ht(t)){let f=c*t;a==="border-box"&&(f=f+r+i),l=Math.max(f,l),u.minHeight=`${f}px`}if(ht(n)){let f=c*n;a==="border-box"&&(f=f+r+i),l=Math.min(f,l)}return u.height=`${l}px`,(s=Fr.parentNode)==null||s.removeChild(Fr),Fr=void 0,u}const XK=He({id:{type:String,default:void 0},size:os,disabled:Boolean,modelValue:{type:me([String,Number,Object]),default:""},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:me([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},suffixIcon:{type:sn},prefixIcon:{type:sn},containerRole:{type:String,default:void 0},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:me([Object,Array,String]),default:()=>vn({})},autofocus:{type:Boolean,default:!1}}),QK={[$t]:e=>Tt(e),input:e=>Tt(e),change:e=>Tt(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},JK=["role"],ZK=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus"],eW=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus"],tW=Z({name:"ElInput",inheritAttrs:!1}),nW=Z({...tW,props:XK,emits:QK,setup(e,{expose:t,emit:n}){const s=e,r=rl(),i=us(),a=k(()=>{const Re={};return s.containerRole==="combobox"&&(Re["aria-haspopup"]=r["aria-haspopup"],Re["aria-owns"]=r["aria-owns"],Re["aria-expanded"]=r["aria-expanded"]),Re}),o=k(()=>[s.type==="textarea"?y.b():m.b(),m.m(p.value),m.is("disabled",g.value),m.is("exceed",_e.value),{[m.b("group")]:i.prepend||i.append,[m.bm("group","append")]:i.append,[m.bm("group","prepend")]:i.prepend,[m.m("prefix")]:i.prefix||s.prefixIcon,[m.m("suffix")]:i.suffix||s.suffixIcon||s.clearable||s.showPassword,[m.bm("suffix","password-clear")]:Q.value&&ee.value},r.class]),l=k(()=>[m.e("wrapper"),m.is("focus",H.value)]),u=M_({excludeKeys:k(()=>Object.keys(a.value))}),{form:c,formItem:f}=Bs(),{inputId:h}=ro(s,{formItemContext:f}),p=Xn(),g=ir(),m=Le("input"),y=Le("textarea"),v=Jt(),_=Jt(),w=G(!1),T=G(!1),S=G(!1),E=G(),$=Jt(s.inputStyle),P=k(()=>v.value||_.value),{wrapperRef:U,isFocused:H,handleFocus:z,handleBlur:W}=nA(P,{afterBlur(){var Re;s.validateEvent&&((Re=f==null?void 0:f.validate)==null||Re.call(f,"blur").catch(Xe=>void 0))}}),D=k(()=>{var Re;return(Re=c==null?void 0:c.statusIcon)!=null?Re:!1}),V=k(()=>(f==null?void 0:f.validateState)||""),X=k(()=>V.value&&$_[V.value]),Y=k(()=>S.value?Rj:Wz),B=k(()=>[r.style,s.inputStyle]),K=k(()=>[s.inputStyle,$.value,{resize:s.resize}]),L=k(()=>Un(s.modelValue)?"":String(s.modelValue)),Q=k(()=>s.clearable&&!g.value&&!s.readonly&&!!L.value&&(H.value||w.value)),ee=k(()=>s.showPassword&&!g.value&&!s.readonly&&!!L.value&&(!!L.value||H.value)),te=k(()=>s.showWordLimit&&!!u.value.maxlength&&(s.type==="text"||s.type==="textarea")&&!g.value&&!s.readonly&&!s.showPassword),ie=k(()=>L.value.length),_e=k(()=>!!te.value&&ie.value>Number(u.value.maxlength)),ue=k(()=>!!i.suffix||!!s.suffixIcon||Q.value||s.showPassword||te.value||!!V.value&&D.value),[oe,de]=A7(v);_s(_,Re=>{if(ke(),!te.value||s.resize!=="both")return;const Xe=Re[0],{width:ct}=Xe.contentRect;E.value={right:`calc(100% - ${ct+15+6}px)`}});const ae=()=>{const{type:Re,autosize:Xe}=s;if(!(!Kt||Re!=="textarea"||!_.value))if(Xe){const ct=Mt(Xe)?Xe.minRows:void 0,wt=Mt(Xe)?Xe.maxRows:void 0,Pt=XC(_.value,ct,wt);$.value={overflowY:"hidden",...Pt},at(()=>{_.value.offsetHeight,$.value=Pt})}else $.value={minHeight:XC(_.value).minHeight}},ke=(Re=>{let Xe=!1;return()=>{var ct;if(Xe||!s.autosize)return;((ct=_.value)==null?void 0:ct.offsetParent)===null||(Re(),Xe=!0)}})(ae),Ee=()=>{const Re=P.value,Xe=s.formatter?s.formatter(L.value):L.value;!Re||Re.value===Xe||(Re.value=Xe)},J=async Re=>{oe();let{value:Xe}=Re.target;if(s.formatter&&(Xe=s.parser?s.parser(Xe):Xe),!T.value){if(Xe===L.value){Ee();return}n($t,Xe),n("input",Xe),await at(),Ee(),de()}},re=Re=>{n("change",Re.target.value)},Se=Re=>{n("compositionstart",Re),T.value=!0},Ae=Re=>{var Xe;n("compositionupdate",Re);const ct=(Xe=Re.target)==null?void 0:Xe.value,wt=ct[ct.length-1]||"";T.value=!eg(wt)},Be=Re=>{n("compositionend",Re),T.value&&(T.value=!1,J(Re))},Pe=()=>{S.value=!S.value,Ve()},Ve=async()=>{var Re;await at(),(Re=P.value)==null||Re.focus()},$e=()=>{var Re;return(Re=P.value)==null?void 0:Re.blur()},Te=Re=>{w.value=!1,n("mouseleave",Re)},De=Re=>{w.value=!0,n("mouseenter",Re)},qe=Re=>{n("keydown",Re)},Je=()=>{var Re;(Re=P.value)==null||Re.select()},et=()=>{n($t,""),n("change",""),n("clear"),n("input","")};return Oe(()=>s.modelValue,()=>{var Re;at(()=>ae()),s.validateEvent&&((Re=f==null?void 0:f.validate)==null||Re.call(f,"change").catch(Xe=>void 0))}),Oe(L,()=>Ee()),Oe(()=>s.type,async()=>{await at(),Ee(),ae()}),vt(()=>{!s.formatter&&s.parser,Ee(),at(ae)}),t({input:v,textarea:_,ref:P,textareaStyle:K,autosize:yn(s,"autosize"),focus:Ve,blur:$e,select:Je,clear:et,resizeTextarea:ae}),(Re,Xe)=>pt((C(),j("div",Rt(d(a),{class:d(o),style:d(B),role:Re.containerRole,onMouseenter:De,onMouseleave:Te}),[le(" input "),Re.type!=="textarea"?(C(),j(Ke,{key:0},[le(" prepend slot "),Re.$slots.prepend?(C(),j("div",{key:0,class:M(d(m).be("group","prepend"))},[we(Re.$slots,"prepend")],2)):le("v-if",!0),R("div",{ref_key:"wrapperRef",ref:U,class:M(d(l))},[le(" prefix slot "),Re.$slots.prefix||Re.prefixIcon?(C(),j("span",{key:0,class:M(d(m).e("prefix"))},[R("span",{class:M(d(m).e("prefix-inner"))},[we(Re.$slots,"prefix"),Re.prefixIcon?(C(),he(d(tt),{key:0,class:M(d(m).e("icon"))},{default:N(()=>[(C(),he(Nt(Re.prefixIcon)))]),_:1},8,["class"])):le("v-if",!0)],2)],2)):le("v-if",!0),R("input",Rt({id:d(h),ref_key:"input",ref:v,class:d(m).e("inner")},d(u),{type:Re.showPassword?S.value?"text":"password":Re.type,disabled:d(g),formatter:Re.formatter,parser:Re.parser,readonly:Re.readonly,autocomplete:Re.autocomplete,tabindex:Re.tabindex,"aria-label":Re.label,placeholder:Re.placeholder,style:Re.inputStyle,form:s.form,autofocus:s.autofocus,onCompositionstart:Se,onCompositionupdate:Ae,onCompositionend:Be,onInput:J,onFocus:Xe[0]||(Xe[0]=(...ct)=>d(z)&&d(z)(...ct)),onBlur:Xe[1]||(Xe[1]=(...ct)=>d(W)&&d(W)(...ct)),onChange:re,onKeydown:qe}),null,16,ZK),le(" suffix slot "),d(ue)?(C(),j("span",{key:1,class:M(d(m).e("suffix"))},[R("span",{class:M(d(m).e("suffix-inner"))},[!d(Q)||!d(ee)||!d(te)?(C(),j(Ke,{key:0},[we(Re.$slots,"suffix"),Re.suffixIcon?(C(),he(d(tt),{key:0,class:M(d(m).e("icon"))},{default:N(()=>[(C(),he(Nt(Re.suffixIcon)))]),_:1},8,["class"])):le("v-if",!0)],64)):le("v-if",!0),d(Q)?(C(),he(d(tt),{key:1,class:M([d(m).e("icon"),d(m).e("clear")]),onMousedown:dt(d(en),["prevent"]),onClick:et},{default:N(()=>[I(d(to))]),_:1},8,["class","onMousedown"])):le("v-if",!0),d(ee)?(C(),he(d(tt),{key:2,class:M([d(m).e("icon"),d(m).e("password")]),onClick:Pe},{default:N(()=>[(C(),he(Nt(d(Y))))]),_:1},8,["class"])):le("v-if",!0),d(te)?(C(),j("span",{key:3,class:M(d(m).e("count"))},[R("span",{class:M(d(m).e("count-inner"))},ve(d(ie))+" / "+ve(d(u).maxlength),3)],2)):le("v-if",!0),d(V)&&d(X)&&d(D)?(C(),he(d(tt),{key:4,class:M([d(m).e("icon"),d(m).e("validateIcon"),d(m).is("loading",d(V)==="validating")])},{default:N(()=>[(C(),he(Nt(d(X))))]),_:1},8,["class"])):le("v-if",!0)],2)],2)):le("v-if",!0)],2),le(" append slot "),Re.$slots.append?(C(),j("div",{key:1,class:M(d(m).be("group","append"))},[we(Re.$slots,"append")],2)):le("v-if",!0)],64)):(C(),j(Ke,{key:1},[le(" textarea "),R("textarea",Rt({id:d(h),ref_key:"textarea",ref:_,class:d(y).e("inner")},d(u),{tabindex:Re.tabindex,disabled:d(g),readonly:Re.readonly,autocomplete:Re.autocomplete,style:d(K),"aria-label":Re.label,placeholder:Re.placeholder,form:s.form,autofocus:s.autofocus,onCompositionstart:Se,onCompositionupdate:Ae,onCompositionend:Be,onInput:J,onFocus:Xe[2]||(Xe[2]=(...ct)=>d(z)&&d(z)(...ct)),onBlur:Xe[3]||(Xe[3]=(...ct)=>d(W)&&d(W)(...ct)),onChange:re,onKeydown:qe}),null,16,eW),d(te)?(C(),j("span",{key:0,style:rt(E.value),class:M(d(m).e("count"))},ve(d(ie))+" / "+ve(d(u).maxlength),7)):le("v-if",!0)],64))],16,JK)),[[Vt,Re.type!=="hidden"]])}});var sW=ze(nW,[["__file","input.vue"]]);const Fn=At(sW),Rl=4,lA={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"}},rW=({move:e,size:t,bar:n})=>({[n.size]:t,transform:`translate${n.axis}(${e}%)`}),uA=Symbol("scrollbarContextKey"),iW=He({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),aW="Thumb",oW=Z({__name:"thumb",props:iW,setup(e){const t=e,n=Qe(uA),s=Le("scrollbar");n||Yn(aW,"can not inject scrollbar context");const r=G(),i=G(),a=G({}),o=G(!1);let l=!1,u=!1,c=Kt?document.onselectstart:null;const f=k(()=>lA[t.vertical?"vertical":"horizontal"]),h=k(()=>rW({size:t.size,move:t.move,bar:f.value})),p=k(()=>r.value[f.value.offset]**2/n.wrapElement[f.value.scrollSize]/t.ratio/i.value[f.value.offset]),g=E=>{var $;if(E.stopPropagation(),E.ctrlKey||[1,2].includes(E.button))return;($=window.getSelection())==null||$.removeAllRanges(),y(E);const P=E.currentTarget;P&&(a.value[f.value.axis]=P[f.value.offset]-(E[f.value.client]-P.getBoundingClientRect()[f.value.direction]))},m=E=>{if(!i.value||!r.value||!n.wrapElement)return;const $=Math.abs(E.target.getBoundingClientRect()[f.value.direction]-E[f.value.client]),P=i.value[f.value.offset]/2,U=($-P)*100*p.value/r.value[f.value.offset];n.wrapElement[f.value.scroll]=U*n.wrapElement[f.value.scrollSize]/100},y=E=>{E.stopImmediatePropagation(),l=!0,document.addEventListener("mousemove",v),document.addEventListener("mouseup",_),c=document.onselectstart,document.onselectstart=()=>!1},v=E=>{if(!r.value||!i.value||l===!1)return;const $=a.value[f.value.axis];if(!$)return;const P=(r.value.getBoundingClientRect()[f.value.direction]-E[f.value.client])*-1,U=i.value[f.value.offset]-$,H=(P-U)*100*p.value/r.value[f.value.offset];n.wrapElement[f.value.scroll]=H*n.wrapElement[f.value.scrollSize]/100},_=()=>{l=!1,a.value[f.value.axis]=0,document.removeEventListener("mousemove",v),document.removeEventListener("mouseup",_),S(),u&&(o.value=!1)},w=()=>{u=!1,o.value=!!t.size},T=()=>{u=!0,o.value=l};on(()=>{S(),document.removeEventListener("mouseup",_)});const S=()=>{document.onselectstart!==c&&(document.onselectstart=c)};return dn(yn(n,"scrollbarElement"),"mousemove",w),dn(yn(n,"scrollbarElement"),"mouseleave",T),(E,$)=>(C(),he(Rn,{name:d(s).b("fade"),persisted:""},{default:N(()=>[pt(R("div",{ref_key:"instance",ref:r,class:M([d(s).e("bar"),d(s).is(d(f).key)]),onMousedown:m},[R("div",{ref_key:"thumb",ref:i,class:M(d(s).e("thumb")),style:rt(d(h)),onMousedown:g},null,38)],34),[[Vt,E.always||o.value]])]),_:1},8,["name"]))}});var QC=ze(oW,[["__file","thumb.vue"]]);const lW=He({always:{type:Boolean,default:!0},width:String,height:String,ratioX:{type:Number,default:1},ratioY:{type:Number,default:1}}),uW=Z({__name:"bar",props:lW,setup(e,{expose:t}){const n=e,s=G(0),r=G(0);return t({handleScroll:a=>{if(a){const o=a.offsetHeight-Rl,l=a.offsetWidth-Rl;r.value=a.scrollTop*100/o*n.ratioY,s.value=a.scrollLeft*100/l*n.ratioX}}}),(a,o)=>(C(),j(Ke,null,[I(QC,{move:s.value,ratio:a.ratioX,size:a.width,always:a.always},null,8,["move","ratio","size","always"]),I(QC,{move:r.value,ratio:a.ratioY,size:a.height,vertical:"",always:a.always},null,8,["move","ratio","size","always"])],64))}});var cW=ze(uW,[["__file","bar.vue"]]);const dW=He({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:me([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},id:String,role:String,ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical"]}}),fW={scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(ht)},hW="ElScrollbar",pW=Z({name:hW}),mW=Z({...pW,props:dW,emits:fW,setup(e,{expose:t,emit:n}){const s=e,r=Le("scrollbar");let i,a;const o=G(),l=G(),u=G(),c=G("0"),f=G("0"),h=G(),p=G(1),g=G(1),m=k(()=>{const $={};return s.height&&($.height=Mn(s.height)),s.maxHeight&&($.maxHeight=Mn(s.maxHeight)),[s.wrapStyle,$]}),y=k(()=>[s.wrapClass,r.e("wrap"),{[r.em("wrap","hidden-default")]:!s.native}]),v=k(()=>[r.e("view"),s.viewClass]),_=()=>{var $;l.value&&(($=h.value)==null||$.handleScroll(l.value),n("scroll",{scrollTop:l.value.scrollTop,scrollLeft:l.value.scrollLeft}))};function w($,P){Mt($)?l.value.scrollTo($):ht($)&&ht(P)&&l.value.scrollTo($,P)}const T=$=>{ht($)&&(l.value.scrollTop=$)},S=$=>{ht($)&&(l.value.scrollLeft=$)},E=()=>{if(!l.value)return;const $=l.value.offsetHeight-Rl,P=l.value.offsetWidth-Rl,U=$**2/l.value.scrollHeight,H=P**2/l.value.scrollWidth,z=Math.max(U,s.minSize),W=Math.max(H,s.minSize);p.value=U/($-U)/(z/($-z)),g.value=H/(P-H)/(W/(P-W)),f.value=z+Rl<$?`${z}px`:"",c.value=W+Rl<P?`${W}px`:""};return Oe(()=>s.noresize,$=>{$?(i==null||i(),a==null||a()):({stop:i}=_s(u,E),a=dn("resize",E))},{immediate:!0}),Oe(()=>[s.maxHeight,s.height],()=>{s.native||at(()=>{var $;E(),l.value&&(($=h.value)==null||$.handleScroll(l.value))})}),Lt(uA,Ct({scrollbarElement:o,wrapElement:l})),vt(()=>{s.native||at(()=>{E()})}),ha(()=>E()),t({wrapRef:l,update:E,scrollTo:w,setScrollTop:T,setScrollLeft:S,handleScroll:_}),($,P)=>(C(),j("div",{ref_key:"scrollbarRef",ref:o,class:M(d(r).b())},[R("div",{ref_key:"wrapRef",ref:l,class:M(d(y)),style:rt(d(m)),onScroll:_},[(C(),he(Nt($.tag),{id:$.id,ref_key:"resizeRef",ref:u,class:M(d(v)),style:rt($.viewStyle),role:$.role,"aria-label":$.ariaLabel,"aria-orientation":$.ariaOrientation},{default:N(()=>[we($.$slots,"default")]),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],38),$.native?le("v-if",!0):(C(),he(cW,{key:0,ref_key:"barRef",ref:h,height:f.value,width:c.value,always:$.always,"ratio-x":g.value,"ratio-y":p.value},null,8,["height","width","always","ratio-x","ratio-y"]))],2))}});var gW=ze(mW,[["__file","scrollbar.vue"]]);const va=At(gW),Q_=Symbol("popper"),cA=Symbol("popperContent"),vW=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],dA=He({role:{type:String,values:vW,default:"tooltip"}}),yW=Z({name:"ElPopper",inheritAttrs:!1}),bW=Z({...yW,props:dA,setup(e,{expose:t}){const n=e,s=G(),r=G(),i=G(),a=G(),o=k(()=>n.role),l={triggerRef:s,popperInstanceRef:r,contentRef:i,referenceRef:a,role:o};return t(l),Lt(Q_,l),(u,c)=>we(u.$slots,"default")}});var _W=ze(bW,[["__file","popper.vue"]]);const fA=He({arrowOffset:{type:Number,default:5}}),TW=Z({name:"ElPopperArrow",inheritAttrs:!1}),wW=Z({...TW,props:fA,setup(e,{expose:t}){const n=e,s=Le("popper"),{arrowOffset:r,arrowRef:i,arrowStyle:a}=Qe(cA,void 0);return Oe(()=>n.arrowOffset,o=>{r.value=o}),on(()=>{i.value=void 0}),t({arrowRef:i}),(o,l)=>(C(),j("span",{ref_key:"arrowRef",ref:i,class:M(d(s).e("arrow")),style:rt(d(a)),"data-popper-arrow":""},null,6))}});var SW=ze(wW,[["__file","arrow.vue"]]);const CW="ElOnlyChild",hA=Z({name:CW,setup(e,{slots:t,attrs:n}){var s;const r=Qe(HO),i=p7((s=r==null?void 0:r.setForwardRef)!=null?s:en);return()=>{var a;const o=(a=t.default)==null?void 0:a.call(t,n);if(!o||o.length>1)return null;const l=pA(o);return l?pt(na(l,n),[[i]]):null}}});function pA(e){if(!e)return null;const t=e;for(const n of t){if(Mt(n))switch(n.type){case $s:continue;case zu:case"svg":return JC(n);case Ke:return pA(n.children);default:return n}return JC(n)}return null}function JC(e){const t=Le("only-child");return I("span",{class:t.e("content")},[e])}const mA=He({virtualRef:{type:me(Object)},virtualTriggering:Boolean,onMouseenter:{type:me(Function)},onMouseleave:{type:me(Function)},onClick:{type:me(Function)},onKeydown:{type:me(Function)},onFocus:{type:me(Function)},onBlur:{type:me(Function)},onContextmenu:{type:me(Function)},id:String,open:Boolean}),EW=Z({name:"ElPopperTrigger",inheritAttrs:!1}),xW=Z({...EW,props:mA,setup(e,{expose:t}){const n=e,{role:s,triggerRef:r}=Qe(Q_,void 0);h7(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;return vt(()=>{Oe(()=>n.virtualRef,c=>{c&&(r.value=qs(c))},{immediate:!0}),Oe(r,(c,f)=>{u==null||u(),u=void 0,Or(c)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach(h=>{var p;const g=n[h];g&&(c.addEventListener(h.slice(2).toLowerCase(),g),(p=f==null?void 0:f.removeEventListener)==null||p.call(f,h.slice(2).toLowerCase(),g))}),u=Oe([i,a,o,l],h=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((p,g)=>{Un(h[g])?c.removeAttribute(p):c.setAttribute(p,h[g])})},{immediate:!0})),Or(f)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(h=>f.removeAttribute(h))},{immediate:!0})}),on(()=>{u==null||u(),u=void 0}),t({triggerRef:r}),(c,f)=>c.virtualTriggering?le("v-if",!0):(C(),he(d(hA),Rt({key:0},c.$attrs,{"aria-controls":d(i),"aria-describedby":d(a),"aria-expanded":d(l),"aria-haspopup":d(o)}),{default:N(()=>[we(c.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var kW=ze(xW,[["__file","trigger.vue"]]);const Ev="focus-trap.focus-after-trapped",xv="focus-trap.focus-after-released",IW="focus-trap.focusout-prevented",ZC={cancelable:!0,bubbles:!1},OW={cancelable:!0,bubbles:!1},eE="focusAfterTrapped",tE="focusAfterReleased",J_=Symbol("elFocusTrap"),Z_=G(),lg=G(0),e1=G(0);let Eh=0;const gA=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},nE=(e,t)=>{for(const n of e)if(!AW(n,t))return n},AW=(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},PW=e=>{const t=gA(e),n=nE(t,e),s=nE(t.reverse(),e);return[n,s]},$W=e=>e instanceof HTMLInputElement&&"select"in e,Ia=(e,t)=>{if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e1.value=window.performance.now(),e!==n&&$W(e)&&t&&e.select()}};function sE(e,t){const n=[...e],s=e.indexOf(t);return s!==-1&&n.splice(s,1),n}const NW=()=>{let e=[];return{push:s=>{const r=e[0];r&&s!==r&&r.pause(),e=sE(e,s),e.unshift(s)},remove:s=>{var r,i;e=sE(e,s),(i=(r=e[0])==null?void 0:r.resume)==null||i.call(r)}}},MW=(e,t=!1)=>{const n=document.activeElement;for(const s of e)if(Ia(s,t),document.activeElement!==n)return},rE=NW(),RW=()=>lg.value>e1.value,xh=()=>{Z_.value="pointer",lg.value=window.performance.now()},iE=()=>{Z_.value="keyboard",lg.value=window.performance.now()},LW=()=>(vt(()=>{Eh===0&&(document.addEventListener("mousedown",xh),document.addEventListener("touchstart",xh),document.addEventListener("keydown",iE)),Eh++}),on(()=>{Eh--,Eh<=0&&(document.removeEventListener("mousedown",xh),document.removeEventListener("touchstart",xh),document.removeEventListener("keydown",iE))}),{focusReason:Z_,lastUserFocusTimestamp:lg,lastAutomatedFocusTimestamp:e1}),kh=e=>new CustomEvent(IW,{...OW,detail:e}),DW=Z({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[eE,tE,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=G();let s,r;const{focusReason:i}=LW();u7(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:m,altKey:y,ctrlKey:v,metaKey:_,currentTarget:w,shiftKey:T}=g,{loop:S}=e,E=m===ot.tab&&!y&&!v&&!_,$=document.activeElement;if(E&&$){const P=w,[U,H]=PW(P);if(U&&H){if(!T&&$===H){const W=kh({focusReason:i.value});t("focusout-prevented",W),W.defaultPrevented||(g.preventDefault(),S&&Ia(U,!0))}else if(T&&[U,P].includes($)){const W=kh({focusReason:i.value});t("focusout-prevented",W),W.defaultPrevented||(g.preventDefault(),S&&Ia(H,!0))}}else if($===P){const W=kh({focusReason:i.value});t("focusout-prevented",W),W.defaultPrevented||g.preventDefault()}}};Lt(J_,{focusTrapRef:n,onKeydown:o}),Oe(()=>e.focusTrapEl,g=>{g&&(n.value=g)},{immediate:!0}),Oe([n],([g],[m])=>{g&&(g.addEventListener("keydown",o),g.addEventListener("focusin",c),g.addEventListener("focusout",f)),m&&(m.removeEventListener("keydown",o),m.removeEventListener("focusin",c),m.removeEventListener("focusout",f))});const l=g=>{t(eE,g)},u=g=>t(tE,g),c=g=>{const m=d(n);if(!m)return;const y=g.target,v=g.relatedTarget,_=y&&m.contains(y);e.trapped||v&&m.contains(v)||(s=v),_&&t("focusin",g),!a.paused&&e.trapped&&(_?r=y:Ia(r,!0))},f=g=>{const m=d(n);if(!(a.paused||!m))if(e.trapped){const y=g.relatedTarget;!Un(y)&&!m.contains(y)&&setTimeout(()=>{if(!a.paused&&e.trapped){const v=kh({focusReason:i.value});t("focusout-prevented",v),v.defaultPrevented||Ia(r,!0)}},0)}else{const y=g.target;y&&m.contains(y)||t("focusout",g)}};async function h(){await at();const g=d(n);if(g){rE.push(a);const m=g.contains(document.activeElement)?s:document.activeElement;if(s=m,!g.contains(m)){const v=new Event(Ev,ZC);g.addEventListener(Ev,l),g.dispatchEvent(v),v.defaultPrevented||at(()=>{let _=e.focusStartEl;Tt(_)||(Ia(_),document.activeElement!==_&&(_="first")),_==="first"&&MW(gA(g),!0),(document.activeElement===m||_==="container")&&Ia(g)})}}}function p(){const g=d(n);if(g){g.removeEventListener(Ev,l);const m=new CustomEvent(xv,{...ZC,detail:{focusReason:i.value}});g.addEventListener(xv,u),g.dispatchEvent(m),!m.defaultPrevented&&(i.value=="keyboard"||!RW()||g.contains(document.activeElement))&&Ia(s??document.body),g.removeEventListener(xv,u),rE.remove(a)}}return vt(()=>{e.trapped&&h(),Oe(()=>e.trapped,g=>{g?h():p()})}),on(()=>{e.trapped&&p()}),{onKeydown:o}}});function FW(e,t,n,s,r,i){return we(e.$slots,"default",{handleKeydown:e.onKeydown})}var ug=ze(DW,[["render",FW],["__file","focus-trap.vue"]]);const BW=["fixed","absolute"],VW=He({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:me(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:ul,default:"bottom"},popperOptions:{type:me(Object),default:()=>({})},strategy:{type:String,values:BW,default:"absolute"}}),vA=He({...VW,id:String,style:{type:me([String,Array,Object])},className:{type:me([String,Array,Object])},effect:{type:String,default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:{type:Boolean,default:!1},trapping:{type:Boolean,default:!1},popperClass:{type:me([String,Array,Object])},popperStyle:{type:me([String,Array,Object])},referenceEl:{type:me(Object)},triggerTargetEl:{type:me(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},ariaLabel:{type:String,default:void 0},virtualTriggering:Boolean,zIndex:Number}),UW={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},HW=(e,t=[])=>{const{placement:n,strategy:s,popperOptions:r}=e,i={placement:n,strategy:s,...r,modifiers:[...jW(e),...t]};return KW(i,r==null?void 0:r.modifiers),i},zW=e=>{if(Kt)return qs(e)};function jW(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 KW(e,t){t&&(e.modifiers=[...e.modifiers,...t??[]])}const WW=0,qW=e=>{const{popperInstanceRef:t,contentRef:n,triggerRef:s,role:r}=Qe(Q_,void 0),i=G(),a=G(),o=k(()=>({name:"eventListeners",enabled:!!e.visible})),l=k(()=>{var v;const _=d(i),w=(v=d(a))!=null?v:WW;return{name:"arrow",enabled:!oO(_),options:{element:_,padding:w}}}),u=k(()=>({onFirstUpdate:()=>{g()},...HW(e,[d(l),d(o)])})),c=k(()=>zW(e.referenceEl)||d(s)),{attributes:f,state:h,styles:p,update:g,forceUpdate:m,instanceRef:y}=i7(c,n,u);return Oe(y,v=>t.value=v),vt(()=>{Oe(()=>{var v;return(v=d(c))==null?void 0:v.getBoundingClientRect()},()=>{g()})}),{attributes:f,arrowRef:i,contentRef:n,instanceRef:y,state:h,styles:p,role:r,forceUpdate:m,update:g}},GW=(e,{attributes:t,styles:n,role:s})=>{const{nextZIndex:r}=Wu(),i=Le("popper"),a=k(()=>d(t).popper),o=G(ht(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=ht(e.zIndex)?e.zIndex:r()}}},YW=(e,t)=>{const n=G(!1),s=G();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")}}},XW=Z({name:"ElPopperContent"}),QW=Z({...XW,props:vA,emits:UW,setup(e,{expose:t,emit:n}){const s=e,{focusStartRef:r,trapped:i,onFocusAfterReleased:a,onFocusAfterTrapped:o,onFocusInTrap:l,onFocusoutPrevented:u,onReleaseRequested:c}=YW(s,n),{attributes:f,arrowRef:h,contentRef:p,styles:g,instanceRef:m,role:y,update:v}=qW(s),{ariaModal:_,arrowStyle:w,contentAttrs:T,contentClass:S,contentStyle:E,updateZIndex:$}=GW(s,{styles:g,attributes:f,role:y}),P=Qe(Ai,void 0),U=G();Lt(cA,{arrowStyle:w,arrowRef:h,arrowOffset:U}),P&&(P.addInputId||P.removeInputId)&&Lt(Ai,{...P,addInputId:en,removeInputId:en});let H;const z=(D=!0)=>{v(),D&&$()},W=()=>{z(!1),s.visible&&s.focusOnShow?i.value=!0:s.visible===!1&&(i.value=!1)};return vt(()=>{Oe(()=>s.triggerTargetEl,(D,V)=>{H==null||H(),H=void 0;const X=d(D||p.value),Y=d(V||p.value);Or(X)&&(H=Oe([y,()=>s.ariaLabel,_,()=>s.id],B=>{["role","aria-label","aria-modal","id"].forEach((K,L)=>{Un(B[L])?X.removeAttribute(K):X.setAttribute(K,B[L])})},{immediate:!0})),Y!==X&&Or(Y)&&["role","aria-label","aria-modal","id"].forEach(B=>{Y.removeAttribute(B)})},{immediate:!0}),Oe(()=>s.visible,W,{immediate:!0})}),on(()=>{H==null||H(),H=void 0}),t({popperContentRef:p,popperInstanceRef:m,updatePopper:z,contentStyle:E}),(D,V)=>(C(),j("div",Rt({ref_key:"contentRef",ref:p},d(T),{style:d(E),class:d(S),tabindex:"-1",onMouseenter:V[0]||(V[0]=X=>D.$emit("mouseenter",X)),onMouseleave:V[1]||(V[1]=X=>D.$emit("mouseleave",X))}),[I(d(ug),{trapped:d(i),"trap-on-focus-in":!0,"focus-trap-el":d(p),"focus-start-el":d(r),onFocusAfterTrapped:d(o),onFocusAfterReleased:d(a),onFocusin:d(l),onFocusoutPrevented:d(u),onReleaseRequested:d(c)},{default:N(()=>[we(D.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}});var JW=ze(QW,[["__file","content.vue"]]);const yA=At(_W),cg=Symbol("elTooltip"),ss=He({...f7,...vA,appendTo:{type:me([String,Object])},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,ariaLabel:String,visible:{type:me(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean}),Md=He({...mA,disabled:Boolean,trigger:{type:me([String,Array]),default:"hover"},triggerKeys:{type:me(Array),default:()=>[ot.enter,ot.space]}}),{useModelToggleProps:ZW,useModelToggleEmits:eq,useModelToggle:tq}=EO("visible"),nq=He({...dA,...ZW,...ss,...Md,...fA,showArrow:{type:Boolean,default:!0}}),sq=[...eq,"before-show","before-hide","show","hide","open","close"],rq=(e,t)=>st(e)?e.includes(t):e===t,yl=(e,t,n)=>s=>{rq(d(e),t)&&n(s)},iq=Z({name:"ElTooltipTrigger"}),aq=Z({...iq,props:Md,setup(e,{expose:t}){const n=e,s=Le("tooltip"),{controlled:r,id:i,open:a,onOpen:o,onClose:l,onToggle:u}=Qe(cg,void 0),c=G(null),f=()=>{if(d(r)||n.disabled)return!0},h=yn(n,"trigger"),p=Cn(f,yl(h,"hover",o)),g=Cn(f,yl(h,"hover",l)),m=Cn(f,yl(h,"click",T=>{T.button===0&&u(T)})),y=Cn(f,yl(h,"focus",o)),v=Cn(f,yl(h,"focus",l)),_=Cn(f,yl(h,"contextmenu",T=>{T.preventDefault(),u(T)})),w=Cn(f,T=>{const{code:S}=T;n.triggerKeys.includes(S)&&(T.preventDefault(),u(T))});return t({triggerRef:c}),(T,S)=>(C(),he(d(kW),{id:d(i),"virtual-ref":T.virtualRef,open:d(a),"virtual-triggering":T.virtualTriggering,class:M(d(s).e("trigger")),onBlur:d(v),onClick:d(m),onContextmenu:d(_),onFocus:d(y),onMouseenter:d(p),onMouseleave:d(g),onKeydown:d(w)},{default:N(()=>[we(T.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var oq=ze(aq,[["__file","trigger.vue"]]);const lq=Z({name:"ElTooltipContent",inheritAttrs:!1}),uq=Z({...lq,props:ss,setup(e,{expose:t}){const n=e,{selector:s}=VO(),r=Le("tooltip"),i=G(null),a=G(!1),{controlled:o,id:l,open:u,trigger:c,onClose:f,onOpen:h,onShow:p,onHide:g,onBeforeShow:m,onBeforeHide:y}=Qe(cg,void 0),v=k(()=>n.transition||`${r.namespace.value}-fade-in-linear`),_=k(()=>n.persistent);on(()=>{a.value=!0});const w=k(()=>d(_)?!0:d(u)),T=k(()=>n.disabled?!1:d(u)),S=k(()=>n.appendTo||s.value),E=k(()=>{var B;return(B=n.style)!=null?B:{}}),$=k(()=>!d(u)),P=()=>{g()},U=()=>{if(d(o))return!0},H=Cn(U,()=>{n.enterable&&d(c)==="hover"&&h()}),z=Cn(U,()=>{d(c)==="hover"&&f()}),W=()=>{var B,K;(K=(B=i.value)==null?void 0:B.updatePopper)==null||K.call(B),m==null||m()},D=()=>{y==null||y()},V=()=>{p(),Y=a_(k(()=>{var B;return(B=i.value)==null?void 0:B.popperContentRef}),()=>{if(d(o))return;d(c)!=="hover"&&f()})},X=()=>{n.virtualTriggering||f()};let Y;return Oe(()=>d(u),B=>{B||Y==null||Y()},{flush:"post"}),Oe(()=>n.content,()=>{var B,K;(K=(B=i.value)==null?void 0:B.updatePopper)==null||K.call(B)}),t({contentRef:i}),(B,K)=>(C(),he(rf,{disabled:!B.teleported,to:d(S)},[I(Rn,{name:d(v),onAfterLeave:P,onBeforeEnter:W,onAfterEnter:V,onBeforeLeave:D},{default:N(()=>[d(w)?pt((C(),he(d(JW),Rt({key:0,id:d(l),ref_key:"contentRef",ref:i},B.$attrs,{"aria-label":B.ariaLabel,"aria-hidden":d($),"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(E)],"reference-el":B.referenceEl,"trigger-target-el":B.triggerTargetEl,visible:d(T),"z-index":B.zIndex,onMouseenter:d(H),onMouseleave:d(z),onBlur:X,onClose:d(f)}),{default:N(()=>[a.value?le("v-if",!0):we(B.$slots,"default",{key:0})]),_: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"])),[[Vt,d(T)]]):le("v-if",!0)]),_:3},8,["name"])],8,["disabled","to"]))}});var cq=ze(uq,[["__file","content.vue"]]);const dq=["innerHTML"],fq={key:1},hq=Z({name:"ElTooltip"}),pq=Z({...hq,props:nq,emits:sq,setup(e,{expose:t,emit:n}){const s=e;d7();const r=tr(),i=G(),a=G(),o=()=>{var v;const _=d(i);_&&((v=_.popperInstanceRef)==null||v.update())},l=G(!1),u=G(),{show:c,hide:f,hasUpdateHandler:h}=tq({indicator:l,toggleReason:u}),{onOpen:p,onClose:g}=UO({showAfter:yn(s,"showAfter"),hideAfter:yn(s,"hideAfter"),autoClose:yn(s,"autoClose"),open:c,close:f}),m=k(()=>Gn(s.visible)&&!h.value);Lt(cg,{controlled:m,id:r,open:nl(l),trigger:yn(s,"trigger"),onOpen:v=>{p(v)},onClose:v=>{g(v)},onToggle:v=>{d(l)?g(v):p(v)},onShow:()=>{n("show",u.value)},onHide:()=>{n("hide",u.value)},onBeforeShow:()=>{n("before-show",u.value)},onBeforeHide:()=>{n("before-hide",u.value)},updatePopper:o}),Oe(()=>s.disabled,v=>{v&&l.value&&(l.value=!1)});const y=v=>{var _,w;const T=(w=(_=a.value)==null?void 0:_.contentRef)==null?void 0:w.popperContentRef,S=(v==null?void 0:v.relatedTarget)||document.activeElement;return T&&T.contains(S)};return jk(()=>l.value&&f()),t({popperRef:i,contentRef:a,isFocusInsideContent:y,updatePopper:o,onOpen:p,onClose:g,hide:f}),(v,_)=>(C(),he(d(yA),{ref_key:"popperRef",ref:i,role:v.role},{default:N(()=>[I(oq,{disabled:v.disabled,trigger:v.trigger,"trigger-keys":v.triggerKeys,"virtual-ref":v.virtualRef,"virtual-triggering":v.virtualTriggering},{default:N(()=>[v.$slots.default?we(v.$slots,"default",{key:0}):le("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),I(cq,{ref_key:"contentRef",ref:a,"aria-label":v.ariaLabel,"boundaries-padding":v.boundariesPadding,content:v.content,disabled:v.disabled,effect:v.effect,enterable:v.enterable,"fallback-placements":v.fallbackPlacements,"hide-after":v.hideAfter,"gpu-acceleration":v.gpuAcceleration,offset:v.offset,persistent:v.persistent,"popper-class":v.popperClass,"popper-style":v.popperStyle,placement:v.placement,"popper-options":v.popperOptions,pure:v.pure,"raw-content":v.rawContent,"reference-el":v.referenceEl,"trigger-target-el":v.triggerTargetEl,"show-after":v.showAfter,strategy:v.strategy,teleported:v.teleported,transition:v.transition,"virtual-triggering":v.virtualTriggering,"z-index":v.zIndex,"append-to":v.appendTo},{default:N(()=>[we(v.$slots,"content",{},()=>[v.rawContent?(C(),j("span",{key:0,innerHTML:v.content},null,8,dq)):(C(),j("span",fq,ve(v.content),1))]),v.showArrow?(C(),he(d(SW),{key:0,"arrow-offset":v.arrowOffset},null,8,["arrow-offset"])):le("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 mq=ze(pq,[["__file","tooltip.vue"]]);const ms=At(mq),gq=He({valueKey:{type:String,default:"value"},modelValue:{type:[String,Number],default:""},debounce:{type:Number,default:300},placement:{type:me(String),values:["top","top-start","top-end","bottom","bottom-start","bottom-end"],default:"bottom-start"},fetchSuggestions:{type:me([Function,Array]),default:en},popperClass:{type:String,default:""},triggerOnFocus:{type:Boolean,default:!0},selectWhenUnmatched:{type:Boolean,default:!1},hideLoading:{type:Boolean,default:!1},label:{type:String},teleported:ss.teleported,highlightFirstItem:{type:Boolean,default:!1},fitInputWidth:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},name:String}),vq={[$t]:e=>Tt(e),[Ms]:e=>Tt(e),[ln]:e=>Tt(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,select:e=>Mt(e)},yq=["aria-expanded","aria-owns"],bq={key:0},_q=["id","aria-selected","onClick"],bA="ElAutocomplete",Tq=Z({name:bA,inheritAttrs:!1}),wq=Z({...Tq,props:gq,emits:vq,setup(e,{expose:t,emit:n}){const s=e,r=M_(),i=rl(),a=ir(),o=Le("autocomplete"),l=G(),u=G(),c=G(),f=G();let h=!1,p=!1;const g=G([]),m=G(-1),y=G(""),v=G(!1),_=G(!1),w=G(!1),T=k(()=>o.b(String(ng()))),S=k(()=>i.style),E=k(()=>(g.value.length>0||w.value)&&v.value),$=k(()=>!s.hideLoading&&w.value),P=k(()=>l.value?Array.from(l.value.$el.querySelectorAll("input")):[]),U=()=>{E.value&&(y.value=`${l.value.$el.offsetWidth}px`)},H=()=>{m.value=-1},W=Fs(async oe=>{if(_.value)return;const de=ae=>{w.value=!1,!_.value&&(st(ae)?(g.value=ae,m.value=s.highlightFirstItem?0:-1):Yn(bA,"autocomplete suggestions must be an array"))};if(w.value=!0,st(s.fetchSuggestions))de(s.fetchSuggestions);else{const ae=await s.fetchSuggestions(oe,de);st(ae)&&de(ae)}},s.debounce),D=oe=>{const de=!!oe;if(n(Ms,oe),n($t,oe),_.value=!1,v.value||(v.value=de),!s.triggerOnFocus&&!oe){_.value=!0,g.value=[];return}W(oe)},V=oe=>{var de;a.value||(((de=oe.target)==null?void 0:de.tagName)!=="INPUT"||P.value.includes(document.activeElement))&&(v.value=!0)},X=oe=>{n(ln,oe)},Y=oe=>{p?p=!1:(v.value=!0,n("focus",oe),s.triggerOnFocus&&!h&&W(String(s.modelValue)))},B=oe=>{setTimeout(()=>{var de;if((de=c.value)!=null&&de.isFocusInsideContent()){p=!0;return}v.value&&ee(),n("blur",oe)})},K=()=>{v.value=!1,n($t,""),n("clear")},L=async()=>{E.value&&m.value>=0&&m.value<g.value.length?_e(g.value[m.value]):s.selectWhenUnmatched&&(n("select",{value:s.modelValue}),g.value=[],m.value=-1)},Q=oe=>{E.value&&(oe.preventDefault(),oe.stopPropagation(),ee())},ee=()=>{v.value=!1},te=()=>{var oe;(oe=l.value)==null||oe.focus()},ie=()=>{var oe;(oe=l.value)==null||oe.blur()},_e=async oe=>{n(Ms,oe[s.valueKey]),n($t,oe[s.valueKey]),n("select",oe),g.value=[],m.value=-1},ue=oe=>{if(!E.value||w.value)return;if(oe<0){m.value=-1;return}oe>=g.value.length&&(oe=g.value.length-1);const de=u.value.querySelector(`.${o.be("suggestion","wrap")}`),Ie=de.querySelectorAll(`.${o.be("suggestion","list")} li`)[oe],ke=de.scrollTop,{offsetTop:Ee,scrollHeight:J}=Ie;Ee+J>ke+de.clientHeight&&(de.scrollTop+=J),Ee<ke&&(de.scrollTop-=J),m.value=oe,l.value.ref.setAttribute("aria-activedescendant",`${T.value}-item-${m.value}`)};return a_(f,()=>{E.value&&ee()}),vt(()=>{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-${m.value}`),h=l.value.ref.hasAttribute("readonly")}),t({highlightedIndex:m,activated:v,loading:w,inputRef:l,popperRef:c,suggestions:g,handleSelect:_e,handleKeyEnter:L,focus:te,blur:ie,close:ee,highlight:ue}),(oe,de)=>(C(),he(d(ms),{ref_key:"popperRef",ref:c,visible:d(E),placement:oe.placement,"fallback-placements":["bottom-start","top-start"],"popper-class":[d(o).e("popper"),oe.popperClass],teleported:oe.teleported,"gpu-acceleration":!1,pure:"","manual-mode":"",effect:"light",trigger:"click",transition:`${d(o).namespace.value}-zoom-in-top`,persistent:"",role:"listbox",onBeforeShow:U,onHide:H},{content:N(()=>[R("div",{ref_key:"regionRef",ref:u,class:M([d(o).b("suggestion"),d(o).is("loading",d($))]),style:rt({[oe.fitInputWidth?"width":"minWidth"]:y.value,outline:"none"}),role:"region"},[I(d(va),{id:d(T),tag:"ul","wrap-class":d(o).be("suggestion","wrap"),"view-class":d(o).be("suggestion","list"),role:"listbox"},{default:N(()=>[d($)?(C(),j("li",bq,[I(d(tt),{class:M(d(o).is("loading"))},{default:N(()=>[I(d(no))]),_:1},8,["class"])])):(C(!0),j(Ke,{key:1},bt(g.value,(ae,Ie)=>(C(),j("li",{id:`${d(T)}-item-${Ie}`,key:Ie,class:M({highlighted:m.value===Ie}),role:"option","aria-selected":m.value===Ie,onClick:ke=>_e(ae)},[we(oe.$slots,"default",{item:ae},()=>[Fe(ve(ae[oe.valueKey]),1)])],10,_q))),128))]),_:3},8,["id","wrap-class","view-class"])],6)]),default:N(()=>[R("div",{ref_key:"listboxRef",ref:f,class:M([d(o).b(),oe.$attrs.class]),style:rt(d(S)),role:"combobox","aria-haspopup":"listbox","aria-expanded":d(E),"aria-owns":d(T)},[I(d(Fn),Rt({ref_key:"inputRef",ref:l},d(r),{clearable:oe.clearable,disabled:d(a),name:oe.name,"model-value":oe.modelValue,onInput:D,onChange:X,onFocus:Y,onBlur:B,onClear:K,onKeydown:[de[0]||(de[0]=jt(dt(ae=>ue(m.value-1),["prevent"]),["up"])),de[1]||(de[1]=jt(dt(ae=>ue(m.value+1),["prevent"]),["down"])),jt(L,["enter"]),jt(ee,["tab"]),jt(Q,["esc"])],onMousedown:V}),xi({_:2},[oe.$slots.prepend?{name:"prepend",fn:N(()=>[we(oe.$slots,"prepend")])}:void 0,oe.$slots.append?{name:"append",fn:N(()=>[we(oe.$slots,"append")])}:void 0,oe.$slots.prefix?{name:"prefix",fn:N(()=>[we(oe.$slots,"prefix")])}:void 0,oe.$slots.suffix?{name:"suffix",fn:N(()=>[we(oe.$slots,"suffix")])}:void 0]),1040,["clearable","disabled","name","model-value","onKeydown"])],14,yq)]),_:3},8,["visible","placement","popper-class","teleported","transition"]))}});var Sq=ze(wq,[["__file","autocomplete.vue"]]);const Cq=At(Sq),Eq=He({size:{type:[Number,String],values:Li,default:"",validator:e=>ht(e)},shape:{type:String,values:["circle","square"],default:"circle"},icon:{type:sn},src:{type:String,default:""},alt:String,srcSet:String,fit:{type:me(String),default:"cover"}}),xq={error:e=>e instanceof Event},kq=["src","alt","srcset"],Iq=Z({name:"ElAvatar"}),Oq=Z({...Iq,props:Eq,emits:xq,setup(e,{emit:t}){const n=e,s=Le("avatar"),r=G(!1),i=k(()=>{const{size:u,icon:c,shape:f}=n,h=[s.b()];return Tt(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 ht(u)?s.cssVarBlock({size:Mn(u)||""}):void 0}),o=k(()=>({objectFit:n.fit}));Oe(()=>n.src,()=>r.value=!1);function l(u){r.value=!0,t("error",u)}return(u,c)=>(C(),j("span",{class:M(d(i)),style:rt(d(a))},[(u.src||u.srcSet)&&!r.value?(C(),j("img",{key:0,src:u.src,alt:u.alt,srcset:u.srcSet,style:rt(d(o)),onError:l},null,44,kq)):u.icon?(C(),he(d(tt),{key:1},{default:N(()=>[(C(),he(Nt(u.icon)))]),_:1})):we(u.$slots,"default",{key:2})],6))}});var Aq=ze(Oq,[["__file","avatar.vue"]]);const t1=At(Aq),Pq={visibilityHeight:{type:Number,default:200},target:{type:String,default:""},right:{type:Number,default:40},bottom:{type:Number,default:40}},$q={click:e=>e instanceof MouseEvent},Nq=(e,t,n)=>{const s=Jt(),r=Jt(),i=G(!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=SI(a,300,!0);return dn(r,"scroll",l),vt(()=>{var u;r.value=document,s.value=document.documentElement,e.target&&(s.value=(u=document.querySelector(e.target))!=null?u:void 0,s.value||Yn(n,`target does not exist: ${e.target}`),r.value=s.value),a()}),{visible:i,handleClick:o}},_A="ElBacktop",Mq=Z({name:_A}),Rq=Z({...Mq,props:Pq,emits:$q,setup(e,{emit:t}){const n=e,s=Le("backtop"),{handleClick:r,visible:i}=Nq(n,t,_A),a=k(()=>({right:`${n.right}px`,bottom:`${n.bottom}px`}));return(o,l)=>(C(),he(Rn,{name:`${d(s).namespace.value}-fade-in`},{default:N(()=>[d(i)?(C(),j("div",{key:0,style:rt(d(a)),class:M(d(s).b()),onClick:l[0]||(l[0]=dt((...u)=>d(r)&&d(r)(...u),["stop"]))},[we(o.$slots,"default",{},()=>[I(d(tt),{class:M(d(s).e("icon"))},{default:N(()=>[I(d(wz))]),_:1},8,["class"])])],6)):le("v-if",!0)]),_:3},8,["name"]))}});var Lq=ze(Rq,[["__file","backtop.vue"]]);const Dq=At(Lq),Fq=He({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"}}),Bq=["textContent"],Vq=Z({name:"ElBadge"}),Uq=Z({...Vq,props:Fq,setup(e,{expose:t}){const n=e,s=Le("badge"),r=k(()=>n.isDot?"":ht(n.value)&&ht(n.max)?n.max<n.value?`${n.max}+`:`${n.value}`:`${n.value}`);return t({content:r}),(i,a)=>(C(),j("div",{class:M(d(s).b())},[we(i.$slots,"default"),I(Rn,{name:`${d(s).namespace.value}-zoom-in-center`,persisted:""},{default:N(()=>[pt(R("sup",{class:M([d(s).e("content"),d(s).em("content",i.type),d(s).is("fixed",!!i.$slots.default),d(s).is("dot",i.isDot)]),textContent:ve(d(r))},null,10,Bq),[[Vt,!i.hidden&&(d(r)||i.isDot)]])]),_:1},8,["name"])],2))}});var Hq=ze(Uq,[["__file","badge.vue"]]);const TA=At(Hq),wA=Symbol("breadcrumbKey"),zq=He({separator:{type:String,default:"/"},separatorIcon:{type:sn}}),jq=Z({name:"ElBreadcrumb"}),Kq=Z({...jq,props:zq,setup(e){const t=e,n=Le("breadcrumb"),s=G();return Lt(wA,t),vt(()=>{const r=s.value.querySelectorAll(`.${n.e("item")}`);r.length&&r[r.length-1].setAttribute("aria-current","page")}),(r,i)=>(C(),j("div",{ref_key:"breadcrumb",ref:s,class:M(d(n).b()),"aria-label":"Breadcrumb",role:"navigation"},[we(r.$slots,"default")],2))}});var Wq=ze(Kq,[["__file","breadcrumb.vue"]]);const qq=He({to:{type:me([String,Object]),default:""},replace:{type:Boolean,default:!1}}),Gq=Z({name:"ElBreadcrumbItem"}),Yq=Z({...Gq,props:qq,setup(e){const t=e,n=It(),s=Qe(wA,void 0),r=Le("breadcrumb"),i=n.appContext.config.globalProperties.$router,a=G(),o=()=>{!t.to||!i||(t.replace?i.replace(t.to):i.push(t.to))};return(l,u)=>{var c,f;return C(),j("span",{class:M(d(r).e("item"))},[R("span",{ref_key:"link",ref:a,class:M([d(r).e("inner"),d(r).is("link",!!l.to)]),role:"link",onClick:o},[we(l.$slots,"default")],2),(c=d(s))!=null&&c.separatorIcon?(C(),he(d(tt),{key:0,class:M(d(r).e("separator"))},{default:N(()=>[(C(),he(Nt(d(s).separatorIcon)))]),_:1},8,["class"])):(C(),j("span",{key:1,class:M(d(r).e("separator")),role:"presentation"},ve((f=d(s))==null?void 0:f.separator),3))],2)}}});var SA=ze(Yq,[["__file","breadcrumb-item.vue"]]);const Xq=At(Wq,{BreadcrumbItem:SA}),Qq=In(SA),CA=Symbol("buttonGroupContextKey"),Jq=(e,t)=>{Ii({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=Qe(CA,void 0),s=ag("button"),{form:r}=Bs(),i=Xn(k(()=>n==null?void 0:n.size)),a=ir(),o=G(),l=us(),u=k(()=>e.type||(n==null?void 0:n.type)||""),c=k(()=>{var g,m,y;return(y=(m=e.autoInsertSpace)!=null?m:(g=s.value)==null?void 0:g.autoInsertSpace)!=null?y:!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 m=(g=l.default)==null?void 0:g.call(l);if(c.value&&(m==null?void 0:m.length)===1){const y=m[0];if((y==null?void 0:y.type)===zu){const v=y.children;return/^\p{Unified_Ideograph}{2}$/u.test(v.trim())}}return!1});return{_disabled:a,_size:i,_type:u,_ref:o,_props:f,shouldAddSpace:h,handleClick:g=>{e.nativeType==="reset"&&(r==null||r.resetFields()),t("click",g)}}},J0=["default","primary","success","warning","info","danger","text",""],Zq=["button","submit","reset"],Z0=He({size:os,disabled:Boolean,type:{type:String,values:J0,default:""},icon:{type:sn},nativeType:{type:String,values:Zq,default:"button"},loading:Boolean,loadingIcon:{type:sn,default:()=>no},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:me([String,Object]),default:"button"}}),eG={click:e=>e instanceof MouseEvent};function ps(e,t){tG(e)&&(e="100%");var n=nG(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 Ih(e){return Math.min(1,Math.max(0,e))}function tG(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function nG(e){return typeof e=="string"&&e.indexOf("%")!==-1}function EA(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Oh(e){return e<=1?"".concat(Number(e)*100,"%"):e}function $o(e){return e.length===1?"0"+e:String(e)}function sG(e,t,n){return{r:ps(e,255)*255,g:ps(t,255)*255,b:ps(n,255)*255}}function aE(e,t,n){e=ps(e,255),t=ps(t,255),n=ps(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 kv(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 rG(e,t,n){var s,r,i;if(e=ps(e,360),t=ps(t,100),n=ps(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=kv(o,a,e+1/3),r=kv(o,a,e),i=kv(o,a,e-1/3)}return{r:s*255,g:r*255,b:i*255}}function oE(e,t,n){e=ps(e,255),t=ps(t,255),n=ps(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 iG(e,t,n){e=ps(e,360)*6,t=ps(t,100),n=ps(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 lE(e,t,n,s){var r=[$o(Math.round(e).toString(16)),$o(Math.round(t).toString(16)),$o(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 aG(e,t,n,s,r){var i=[$o(Math.round(e).toString(16)),$o(Math.round(t).toString(16)),$o(Math.round(n).toString(16)),$o(oG(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 oG(e){return Math.round(parseFloat(e)*255).toString(16)}function uE(e){return cr(e)/255}function cr(e){return parseInt(e,16)}function lG(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var ey={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 uG(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=fG(e)),typeof e=="object"&&(Vi(e.r)&&Vi(e.g)&&Vi(e.b)?(t=sG(e.r,e.g,e.b),a=!0,o=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Vi(e.h)&&Vi(e.s)&&Vi(e.v)?(s=Oh(e.s),r=Oh(e.v),t=iG(e.h,s,r),a=!0,o="hsv"):Vi(e.h)&&Vi(e.s)&&Vi(e.l)&&(s=Oh(e.s),i=Oh(e.l),t=rG(e.h,s,i),a=!0,o="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=EA(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 cG="[-\\+]?\\d+%?",dG="[-\\+]?\\d*\\.\\d+%?",Ra="(?:".concat(dG,")|(?:").concat(cG,")"),Iv="[\\s|\\(]+(".concat(Ra,")[,|\\s]+(").concat(Ra,")[,|\\s]+(").concat(Ra,")\\s*\\)?"),Ov="[\\s|\\(]+(".concat(Ra,")[,|\\s]+(").concat(Ra,")[,|\\s]+(").concat(Ra,")[,|\\s]+(").concat(Ra,")\\s*\\)?"),Vr={CSS_UNIT:new RegExp(Ra),rgb:new RegExp("rgb"+Iv),rgba:new RegExp("rgba"+Ov),hsl:new RegExp("hsl"+Iv),hsla:new RegExp("hsla"+Ov),hsv:new RegExp("hsv"+Iv),hsva:new RegExp("hsva"+Ov),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 fG(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(ey[e])e=ey[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=Vr.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Vr.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Vr.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=Vr.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Vr.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=Vr.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Vr.hex8.exec(e),n?{r:cr(n[1]),g:cr(n[2]),b:cr(n[3]),a:uE(n[4]),format:t?"name":"hex8"}:(n=Vr.hex6.exec(e),n?{r:cr(n[1]),g:cr(n[2]),b:cr(n[3]),format:t?"name":"hex"}:(n=Vr.hex4.exec(e),n?{r:cr(n[1]+n[1]),g:cr(n[2]+n[2]),b:cr(n[3]+n[3]),a:uE(n[4]+n[4]),format:t?"name":"hex8"}:(n=Vr.hex3.exec(e),n?{r:cr(n[1]+n[1]),g:cr(n[2]+n[2]),b:cr(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Vi(e){return!!Vr.CSS_UNIT.exec(String(e))}var xA=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=lG(t)),this.originalInput=t;var r=uG(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=EA(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=oE(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=oE(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=aE(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=aE(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),lE(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),aG(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(ps(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(ps(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="#"+lE(this.r,this.g,this.b,!1),n=0,s=Object.entries(ey);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=Ih(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=Ih(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=Ih(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=Ih(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 Sa(e,t=20){return e.mix("#141414",t).toString()}function hG(e){const t=ir(),n=Le("button");return k(()=>{let s={};const r=e.color;if(r){const i=new xA(r),a=e.dark?i.tint(20).toString():Sa(i,20);if(e.plain)s=n.cssVarBlock({"bg-color":e.dark?Sa(i,90):i.tint(90).toString(),"text-color":r,"border-color":e.dark?Sa(i,50):i.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":r,"hover-border-color":r,"active-bg-color":a,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":a}),t.value&&(s[n.cssVarBlockName("disabled-bg-color")]=e.dark?Sa(i,90):i.tint(90).toString(),s[n.cssVarBlockName("disabled-text-color")]=e.dark?Sa(i,50):i.tint(50).toString(),s[n.cssVarBlockName("disabled-border-color")]=e.dark?Sa(i,80):i.tint(80).toString());else{const o=e.dark?Sa(i,30):i.tint(30).toString(),l=i.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(s=n.cssVarBlock({"bg-color":r,"text-color":l,"border-color":r,"hover-bg-color":o,"hover-text-color":l,"hover-border-color":o,"active-bg-color":a,"active-border-color":a}),t.value){const u=e.dark?Sa(i,50):i.tint(50).toString();s[n.cssVarBlockName("disabled-bg-color")]=u,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")]=u}}}return s})}const pG=Z({name:"ElButton"}),mG=Z({...pG,props:Z0,emits:eG,setup(e,{expose:t,emit:n}){const s=e,r=hG(s),i=Le("button"),{_ref:a,_size:o,_type:l,_disabled:u,_props:c,shouldAddSpace:f,handleClick:h}=Jq(s,n);return t({ref:a,size:o,type:l,disabled:u,shouldAddSpace:f}),(p,g)=>(C(),he(Nt(p.tag),Rt({ref_key:"_ref",ref:a},d(c),{class:[d(i).b(),d(i).m(d(l)),d(i).m(d(o)),d(i).is("disabled",d(u)),d(i).is("loading",p.loading),d(i).is("plain",p.plain),d(i).is("round",p.round),d(i).is("circle",p.circle),d(i).is("text",p.text),d(i).is("link",p.link),d(i).is("has-bg",p.bg)],style:d(r),onClick:d(h)}),{default:N(()=>[p.loading?(C(),j(Ke,{key:0},[p.$slots.loading?we(p.$slots,"loading",{key:0}):(C(),he(d(tt),{key:1,class:M(d(i).is("loading"))},{default:N(()=>[(C(),he(Nt(p.loadingIcon)))]),_:1},8,["class"]))],64)):p.icon||p.$slots.icon?(C(),he(d(tt),{key:1},{default:N(()=>[p.icon?(C(),he(Nt(p.icon),{key:0})):we(p.$slots,"icon",{key:1})]),_:3})):le("v-if",!0),p.$slots.default?(C(),j("span",{key:2,class:M({[d(i).em("text","expand")]:d(f)})},[we(p.$slots,"default")],2)):le("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var gG=ze(mG,[["__file","button.vue"]]);const vG={size:Z0.size,type:Z0.type},yG=Z({name:"ElButtonGroup"}),bG=Z({...yG,props:vG,setup(e){const t=e;Lt(CA,Ct({size:yn(t,"size"),type:yn(t,"type")}));const n=Le("button");return(s,r)=>(C(),j("div",{class:M(`${d(n).b("group")}`)},[we(s.$slots,"default")],2))}});var kA=ze(bG,[["__file","button-group.vue"]]);const bn=At(gG,{ButtonGroup:kA}),IA=In(kA);var nr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function OA(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function s(){if(this instanceof s){var r=[null];r.push.apply(r,arguments);var i=Function.bind.apply(t,r);return new i}return 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 ty={},_G={get exports(){return ty},set exports(e){ty=e}};(function(e,t){(function(n,s){e.exports=s()})(nr,function(){var n=1e3,s=6e4,r=36e5,i="millisecond",a="second",o="minute",l="hour",u="day",c="week",f="month",h="quarter",p="year",g="date",m="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,v=/\[([^\]]+)]|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(D){var V=["th","st","nd","rd"],X=D%100;return"["+D+(V[(X-20)%10]||V[X]||V[0])+"]"}},w=function(D,V,X){var Y=String(D);return!Y||Y.length>=V?D:""+Array(V+1-Y.length).join(X)+D},T={s:w,z:function(D){var V=-D.utcOffset(),X=Math.abs(V),Y=Math.floor(X/60),B=X%60;return(V<=0?"+":"-")+w(Y,2,"0")+":"+w(B,2,"0")},m:function D(V,X){if(V.date()<X.date())return-D(X,V);var Y=12*(X.year()-V.year())+(X.month()-V.month()),B=V.clone().add(Y,f),K=X-B<0,L=V.clone().add(Y+(K?-1:1),f);return+(-(Y+(X-B)/(K?B-L:L-B))||0)},a:function(D){return D<0?Math.ceil(D)||0:Math.floor(D)},p:function(D){return{M:f,y:p,w:c,d:u,D:g,h:l,m:o,s:a,ms:i,Q:h}[D]||String(D||"").toLowerCase().replace(/s$/,"")},u:function(D){return D===void 0}},S="en",E={};E[S]=_;var $=function(D){return D instanceof z},P=function D(V,X,Y){var B;if(!V)return S;if(typeof V=="string"){var K=V.toLowerCase();E[K]&&(B=K),X&&(E[K]=X,B=K);var L=V.split("-");if(!B&&L.length>1)return D(L[0])}else{var Q=V.name;E[Q]=V,B=Q}return!Y&&B&&(S=B),B||!Y&&S},U=function(D,V){if($(D))return D.clone();var X=typeof V=="object"?V:{};return X.date=D,X.args=arguments,new z(X)},H=T;H.l=P,H.i=$,H.w=function(D,V){return U(D,{locale:V.$L,utc:V.$u,x:V.$x,$offset:V.$offset})};var z=function(){function D(X){this.$L=P(X.locale,null,!0),this.parse(X)}var V=D.prototype;return V.parse=function(X){this.$d=function(Y){var B=Y.date,K=Y.utc;if(B===null)return new Date(NaN);if(H.u(B))return new Date;if(B instanceof Date)return new Date(B);if(typeof B=="string"&&!/Z$/i.test(B)){var L=B.match(y);if(L){var Q=L[2]-1||0,ee=(L[7]||"0").substring(0,3);return K?new Date(Date.UTC(L[1],Q,L[3]||1,L[4]||0,L[5]||0,L[6]||0,ee)):new Date(L[1],Q,L[3]||1,L[4]||0,L[5]||0,L[6]||0,ee)}}return new Date(B)}(X),this.$x=X.x||{},this.init()},V.init=function(){var X=this.$d;this.$y=X.getFullYear(),this.$M=X.getMonth(),this.$D=X.getDate(),this.$W=X.getDay(),this.$H=X.getHours(),this.$m=X.getMinutes(),this.$s=X.getSeconds(),this.$ms=X.getMilliseconds()},V.$utils=function(){return H},V.isValid=function(){return this.$d.toString()!==m},V.isSame=function(X,Y){var B=U(X);return this.startOf(Y)<=B&&B<=this.endOf(Y)},V.isAfter=function(X,Y){return U(X)<this.startOf(Y)},V.isBefore=function(X,Y){return this.endOf(Y)<U(X)},V.$g=function(X,Y,B){return H.u(X)?this[Y]:this.set(B,X)},V.unix=function(){return Math.floor(this.valueOf()/1e3)},V.valueOf=function(){return this.$d.getTime()},V.startOf=function(X,Y){var B=this,K=!!H.u(Y)||Y,L=H.p(X),Q=function(ae,Ie){var ke=H.w(B.$u?Date.UTC(B.$y,Ie,ae):new Date(B.$y,Ie,ae),B);return K?ke:ke.endOf(u)},ee=function(ae,Ie){return H.w(B.toDate()[ae].apply(B.toDate("s"),(K?[0,0,0,0]:[23,59,59,999]).slice(Ie)),B)},te=this.$W,ie=this.$M,_e=this.$D,ue="set"+(this.$u?"UTC":"");switch(L){case p:return K?Q(1,0):Q(31,11);case f:return K?Q(1,ie):Q(0,ie+1);case c:var oe=this.$locale().weekStart||0,de=(te<oe?te+7:te)-oe;return Q(K?_e-de:_e+(6-de),ie);case u:case g:return ee(ue+"Hours",0);case l:return ee(ue+"Minutes",1);case o:return ee(ue+"Seconds",2);case a:return ee(ue+"Milliseconds",3);default:return this.clone()}},V.endOf=function(X){return this.startOf(X,!1)},V.$set=function(X,Y){var B,K=H.p(X),L="set"+(this.$u?"UTC":""),Q=(B={},B[u]=L+"Date",B[g]=L+"Date",B[f]=L+"Month",B[p]=L+"FullYear",B[l]=L+"Hours",B[o]=L+"Minutes",B[a]=L+"Seconds",B[i]=L+"Milliseconds",B)[K],ee=K===u?this.$D+(Y-this.$W):Y;if(K===f||K===p){var te=this.clone().set(g,1);te.$d[Q](ee),te.init(),this.$d=te.set(g,Math.min(this.$D,te.daysInMonth())).$d}else Q&&this.$d[Q](ee);return this.init(),this},V.set=function(X,Y){return this.clone().$set(X,Y)},V.get=function(X){return this[H.p(X)]()},V.add=function(X,Y){var B,K=this;X=Number(X);var L=H.p(Y),Q=function(ie){var _e=U(K);return H.w(_e.date(_e.date()+Math.round(ie*X)),K)};if(L===f)return this.set(f,this.$M+X);if(L===p)return this.set(p,this.$y+X);if(L===u)return Q(1);if(L===c)return Q(7);var ee=(B={},B[o]=s,B[l]=r,B[a]=n,B)[L]||1,te=this.$d.getTime()+X*ee;return H.w(te,this)},V.subtract=function(X,Y){return this.add(-1*X,Y)},V.format=function(X){var Y=this,B=this.$locale();if(!this.isValid())return B.invalidDate||m;var K=X||"YYYY-MM-DDTHH:mm:ssZ",L=H.z(this),Q=this.$H,ee=this.$m,te=this.$M,ie=B.weekdays,_e=B.months,ue=function(Ie,ke,Ee,J){return Ie&&(Ie[ke]||Ie(Y,K))||Ee[ke].slice(0,J)},oe=function(Ie){return H.s(Q%12||12,Ie,"0")},de=B.meridiem||function(Ie,ke,Ee){var J=Ie<12?"AM":"PM";return Ee?J.toLowerCase():J},ae={YY:String(this.$y).slice(-2),YYYY:this.$y,M:te+1,MM:H.s(te+1,2,"0"),MMM:ue(B.monthsShort,te,_e,3),MMMM:ue(_e,te),D:this.$D,DD:H.s(this.$D,2,"0"),d:String(this.$W),dd:ue(B.weekdaysMin,this.$W,ie,2),ddd:ue(B.weekdaysShort,this.$W,ie,3),dddd:ie[this.$W],H:String(Q),HH:H.s(Q,2,"0"),h:oe(1),hh:oe(2),a:de(Q,ee,!0),A:de(Q,ee,!1),m:String(ee),mm:H.s(ee,2,"0"),s:String(this.$s),ss:H.s(this.$s,2,"0"),SSS:H.s(this.$ms,3,"0"),Z:L};return K.replace(v,function(Ie,ke){return ke||ae[Ie]||L.replace(":","")})},V.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},V.diff=function(X,Y,B){var K,L=H.p(Y),Q=U(X),ee=(Q.utcOffset()-this.utcOffset())*s,te=this-Q,ie=H.m(this,Q);return ie=(K={},K[p]=ie/12,K[f]=ie,K[h]=ie/3,K[c]=(te-ee)/6048e5,K[u]=(te-ee)/864e5,K[l]=te/r,K[o]=te/s,K[a]=te/n,K)[L]||te,B?ie:H.a(ie)},V.daysInMonth=function(){return this.endOf(f).$D},V.$locale=function(){return E[this.$L]},V.locale=function(X,Y){if(!X)return this.$L;var B=this.clone(),K=P(X,Y,!0);return K&&(B.$L=K),B},V.clone=function(){return H.w(this.$d,this)},V.toDate=function(){return new Date(this.valueOf())},V.toJSON=function(){return this.isValid()?this.toISOString():null},V.toISOString=function(){return this.$d.toISOString()},V.toString=function(){return this.$d.toUTCString()},D}(),W=z.prototype;return U.prototype=W,[["$ms",i],["$s",a],["$m",o],["$H",l],["$W",u],["$M",f],["$y",p],["$D",g]].forEach(function(D){W[D[1]]=function(V){return this.$g(V,D[0],D[1])}}),U.extend=function(D,V){return D.$i||(D(V,z,U),D.$i=!0),U},U.locale=P,U.isDayjs=$,U.unix=function(D){return U(1e3*D)},U.en=E[S],U.Ls=E,U.p={},U})})(_G);const Ot=ty;var ny={},TG={get exports(){return ny},set exports(e){ny=e}};(function(e,t){(function(n,s){e.exports=s()})(nr,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|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d\d/,i=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,o={},l=function(m){return(m=+m)+(m>68?1900:2e3)},u=function(m){return function(y){this[m]=+y}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(m){(this.zone||(this.zone={})).offset=function(y){if(!y||y==="Z")return 0;var v=y.match(/([+-]|\d\d)/g),_=60*v[1]+(+v[2]||0);return _===0?0:v[0]==="+"?-_:_}(m)}],f=function(m){var y=o[m];return y&&(y.indexOf?y:y.s.concat(y.f))},h=function(m,y){var v,_=o.meridiem;if(_){for(var w=1;w<=24;w+=1)if(m.indexOf(_(w,0,y))>-1){v=w>12;break}}else v=m===(y?"pm":"PM");return v},p={A:[a,function(m){this.afternoon=h(m,!1)}],a:[a,function(m){this.afternoon=h(m,!0)}],S:[/\d/,function(m){this.milliseconds=100*+m}],SS:[r,function(m){this.milliseconds=10*+m}],SSS:[/\d{3}/,function(m){this.milliseconds=+m}],s:[i,u("seconds")],ss:[i,u("seconds")],m:[i,u("minutes")],mm:[i,u("minutes")],H:[i,u("hours")],h:[i,u("hours")],HH:[i,u("hours")],hh:[i,u("hours")],D:[i,u("day")],DD:[r,u("day")],Do:[a,function(m){var y=o.ordinal,v=m.match(/\d+/);if(this.day=v[0],y)for(var _=1;_<=31;_+=1)y(_).replace(/\[|\]/g,"")===m&&(this.day=_)}],M:[i,u("month")],MM:[r,u("month")],MMM:[a,function(m){var y=f("months"),v=(f("monthsShort")||y.map(function(_){return _.slice(0,3)})).indexOf(m)+1;if(v<1)throw new Error;this.month=v%12||v}],MMMM:[a,function(m){var y=f("months").indexOf(m)+1;if(y<1)throw new Error;this.month=y%12||y}],Y:[/[+-]?\d+/,u("year")],YY:[r,function(m){this.year=l(m)}],YYYY:[/\d{4}/,u("year")],Z:c,ZZ:c};function g(m){var y,v;y=m,v=o&&o.formats;for(var _=(m=y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(U,H,z){var W=z&&z.toUpperCase();return H||v[z]||n[z]||v[W].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(D,V,X){return V||X.slice(1)})})).match(s),w=_.length,T=0;T<w;T+=1){var S=_[T],E=p[S],$=E&&E[0],P=E&&E[1];_[T]=P?{regex:$,parser:P}:S.replace(/^\[|\]$/g,"")}return function(U){for(var H={},z=0,W=0;z<w;z+=1){var D=_[z];if(typeof D=="string")W+=D.length;else{var V=D.regex,X=D.parser,Y=U.slice(W),B=V.exec(Y)[0];X.call(H,B),U=U.replace(B,"")}}return function(K){var L=K.afternoon;if(L!==void 0){var Q=K.hours;L?Q<12&&(K.hours+=12):Q===12&&(K.hours=0),delete K.afternoon}}(H),H}}return function(m,y,v){v.p.customParseFormat=!0,m&&m.parseTwoDigitYear&&(l=m.parseTwoDigitYear);var _=y.prototype,w=_.parse;_.parse=function(T){var S=T.date,E=T.utc,$=T.args;this.$u=E;var P=$[1];if(typeof P=="string"){var U=$[2]===!0,H=$[3]===!0,z=U||H,W=$[2];H&&(W=$[2]),o=this.$locale(),!U&&W&&(o=v.Ls[W]),this.$d=function(Y,B,K){try{if(["x","X"].indexOf(B)>-1)return new Date((B==="X"?1e3:1)*Y);var L=g(B)(Y),Q=L.year,ee=L.month,te=L.day,ie=L.hours,_e=L.minutes,ue=L.seconds,oe=L.milliseconds,de=L.zone,ae=new Date,Ie=te||(Q||ee?1:ae.getDate()),ke=Q||ae.getFullYear(),Ee=0;Q&&!ee||(Ee=ee>0?ee-1:ae.getMonth());var J=ie||0,re=_e||0,Se=ue||0,Ae=oe||0;return de?new Date(Date.UTC(ke,Ee,Ie,J,re,Se,Ae+60*de.offset*1e3)):K?new Date(Date.UTC(ke,Ee,Ie,J,re,Se,Ae)):new Date(ke,Ee,Ie,J,re,Se,Ae)}catch{return new Date("")}}(S,P,E),this.init(),W&&W!==!0&&(this.$L=this.locale(W).$L),z&&S!=this.format(P)&&(this.$d=new Date("")),o={}}else if(P instanceof Array)for(var D=P.length,V=1;V<=D;V+=1){$[1]=P[V-1];var X=v.apply(this,$);if(X.isValid()){this.$d=X.$d,this.$L=X.$L,this.init();break}V===D&&(this.$d=new Date(""))}else w.call(this,T)}}})})(TG);const n1=ny,cE=["hours","minutes","seconds"],sy="HH:mm:ss",Pl="YYYY-MM-DD",wG={date:Pl,dates:Pl,week:"gggg[w]ww",year:"YYYY",month:"YYYY-MM",datetime:`${Pl} ${sy}`,monthrange:"YYYY-MM",daterange:Pl,datetimerange:`${Pl} ${sy}`},Av=(e,t)=>[e>0?e-1:void 0,e,e<t?e+1:void 0],Ua=e=>Array.from(Array.from({length:e}).keys()),AA=e=>e.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim(),PA=e=>e.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?Y{2,4}/g,"").trim(),dE=function(e,t){const n=Yo(e),s=Yo(t);return n&&s?e.getTime()===t.getTime():!n&&!s?e===t:!1},fE=function(e,t){const n=st(e),s=st(t);return n&&s?e.length!==t.length?!1:e.every((r,i)=>dE(r,t[i])):!n&&!s?dE(e,t):!1},hE=function(e,t,n){const s=wr(t)||t==="x"?Ot(e).locale(n):Ot(e,t).locale(n);return s.isValid()?s:void 0},pE=function(e,t,n){return wr(t)?e:t==="x"?+e:Ot(e).locale(n).format(t)},Pv=(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},$A=He({disabledHours:{type:me(Function)},disabledMinutes:{type:me(Function)},disabledSeconds:{type:me(Function)}}),NA=He({visible:Boolean,actualVisible:{type:Boolean,default:void 0},format:{type:String,default:""}}),s1=He({id:{type:me([Array,String])},name:{type:me([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:me([String,Object]),default:to},editable:{type:Boolean,default:!0},prefixIcon:{type:me([String,Object]),default:""},size:os,readonly:Boolean,disabled:Boolean,placeholder:{type:String,default:""},popperOptions:{type:me(Object),default:()=>({})},modelValue:{type:me([Date,Array,String,Number]),default:""},rangeSeparator:{type:String,default:"-"},startPlaceholder:String,endPlaceholder:String,defaultValue:{type:me([Date,Array])},defaultTime:{type:me([Date,Array])},isRange:Boolean,...$A,disabledDate:{type:Function},cellClassName:{type:Function},shortcuts:{type:Array,default:()=>[]},arrowControl:Boolean,label:{type:String,default:void 0},tabindex:{type:me([String,Number]),default:0},validateEvent:{type:Boolean,default:!0},unlinkPanels:Boolean}),SG=["id","name","placeholder","value","disabled","readonly"],CG=["id","name","placeholder","value","disabled","readonly"],EG=Z({name:"Picker"}),xG=Z({...EG,props:s1,emits:["update:modelValue","change","focus","blur","calendar-change","panel-change","visible-change","keydown"],setup(e,{expose:t,emit:n}){const s=e,r=rl(),{lang:i}=Wt(),a=Le("date"),o=Le("input"),l=Le("range"),{form:u,formItem:c}=Bs(),f=Qe("ElPopperOptions",{}),h=G(),p=G(),g=G(!1),m=G(!1),y=G(null);let v=!1,_=!1;const w=k(()=>[a.b("editor"),a.bm("editor",s.type),o.e("wrapper"),a.is("disabled",te.value),a.is("active",g.value),l.b("editor"),Pe?l.bm("editor",Pe.value):"",r.class]),T=k(()=>[o.e("icon"),l.e("close-icon"),Ie.value?"":l.e("close-icon--hidden")]);Oe(g,ne=>{ne?at(()=>{ne&&(y.value=s.modelValue)}):(Te.value=null,at(()=>{S(s.modelValue)}))});const S=(ne,Ye)=>{(Ye||!fE(ne,y.value))&&(n("change",ne),s.validateEvent&&(c==null||c.validate("change").catch(_t=>void 0)))},E=ne=>{if(!fE(s.modelValue,ne)){let Ye;st(ne)?Ye=ne.map(_t=>pE(_t,s.valueFormat,i.value)):ne&&(Ye=pE(ne,s.valueFormat,i.value)),n("update:modelValue",ne&&Ye,i.value)}},$=ne=>{n("keydown",ne)},P=k(()=>{if(p.value){const ne=Be.value?p.value:p.value.$el;return Array.from(ne.querySelectorAll("input"))}return[]}),U=(ne,Ye,_t)=>{const Ft=P.value;Ft.length&&(!_t||_t==="min"?(Ft[0].setSelectionRange(ne,Ye),Ft[0].focus()):_t==="max"&&(Ft[1].setSelectionRange(ne,Ye),Ft[1].focus()))},H=()=>{K(!0,!0),at(()=>{_=!1})},z=(ne="",Ye=!1)=>{Ye||(_=!0),g.value=Ye;let _t;st(ne)?_t=ne.map(Ft=>Ft.toDate()):_t=ne&&ne.toDate(),Te.value=null,E(_t)},W=()=>{m.value=!0},D=()=>{n("visible-change",!0)},V=ne=>{(ne==null?void 0:ne.key)===ot.esc&&K(!0,!0)},X=()=>{m.value=!1,g.value=!1,_=!1,n("visible-change",!1)},Y=()=>{g.value=!0},B=()=>{g.value=!1},K=(ne=!0,Ye=!1)=>{_=Ye;const[_t,Ft]=d(P);let Pn=_t;!ne&&Be.value&&(Pn=Ft),Pn&&Pn.focus()},L=ne=>{s.readonly||te.value||g.value||_||(g.value=!0,n("focus",ne))};let Q;const ee=ne=>{const Ye=async()=>{setTimeout(()=>{var _t;Q===Ye&&(!((_t=h.value)!=null&&_t.isFocusInsideContent()&&!v)&&P.value.filter(Ft=>Ft.contains(document.activeElement)).length===0&&(De(),g.value=!1,n("blur",ne),s.validateEvent&&(c==null||c.validate("blur").catch(Ft=>void 0))),v=!1)},0)};Q=Ye,Ye()},te=k(()=>s.disabled||(u==null?void 0:u.disabled)),ie=k(()=>{let ne;if(Ee.value?Ce.value.getDefaultValue&&(ne=Ce.value.getDefaultValue()):st(s.modelValue)?ne=s.modelValue.map(Ye=>hE(Ye,s.valueFormat,i.value)):ne=hE(s.modelValue,s.valueFormat,i.value),Ce.value.getRangeAvailableTime){const Ye=Ce.value.getRangeAvailableTime(ne);Ys(Ye,ne)||(ne=Ye,E(st(ne)?ne.map(_t=>_t.toDate()):ne.toDate()))}return st(ne)&&ne.some(Ye=>!Ye)&&(ne=[]),ne}),_e=k(()=>{if(!Ce.value.panelReady)return"";const ne=Je(ie.value);return st(Te.value)?[Te.value[0]||ne&&ne[0]||"",Te.value[1]||ne&&ne[1]||""]:Te.value!==null?Te.value:!oe.value&&Ee.value||!g.value&&Ee.value?"":ne?de.value?ne.join(", "):ne:""}),ue=k(()=>s.type.includes("time")),oe=k(()=>s.type.startsWith("time")),de=k(()=>s.type==="dates"),ae=k(()=>s.prefixIcon||(ue.value?x_:bz)),Ie=G(!1),ke=ne=>{s.readonly||te.value||Ie.value&&(ne.stopPropagation(),H(),E(null),S(null,!0),Ie.value=!1,g.value=!1,Ce.value.handleClear&&Ce.value.handleClear())},Ee=k(()=>{const{modelValue:ne}=s;return!ne||st(ne)&&!ne.filter(Boolean).length}),J=async ne=>{var Ye;s.readonly||te.value||(((Ye=ne.target)==null?void 0:Ye.tagName)!=="INPUT"||P.value.includes(document.activeElement))&&(g.value=!0)},re=()=>{s.readonly||te.value||!Ee.value&&s.clearable&&(Ie.value=!0)},Se=()=>{Ie.value=!1},Ae=ne=>{var Ye;s.readonly||te.value||(((Ye=ne.touches[0].target)==null?void 0:Ye.tagName)!=="INPUT"||P.value.includes(document.activeElement))&&(g.value=!0)},Be=k(()=>s.type.includes("range")),Pe=Xn(),Ve=k(()=>{var ne,Ye;return(Ye=(ne=d(h))==null?void 0:ne.popperRef)==null?void 0:Ye.contentRef}),$e=k(()=>{var ne;return d(Be)?d(p):(ne=d(p))==null?void 0:ne.$el});a_($e,ne=>{const Ye=d(Ve),_t=d($e);Ye&&(ne.target===Ye||ne.composedPath().includes(Ye))||ne.target===_t||ne.composedPath().includes(_t)||(g.value=!1)});const Te=G(null),De=()=>{if(Te.value){const ne=qe(_e.value);ne&&et(ne)&&(E(st(ne)?ne.map(Ye=>Ye.toDate()):ne.toDate()),Te.value=null)}Te.value===""&&(E(null),S(null),Te.value=null)},qe=ne=>ne?Ce.value.parseUserInput(ne):null,Je=ne=>ne?Ce.value.formatToString(ne):null,et=ne=>Ce.value.isValidValue(ne),Re=async ne=>{if(s.readonly||te.value)return;const{code:Ye}=ne;if($(ne),Ye===ot.esc){g.value===!0&&(g.value=!1,ne.preventDefault(),ne.stopPropagation());return}if(Ye===ot.down&&(Ce.value.handleFocusPicker&&(ne.preventDefault(),ne.stopPropagation()),g.value===!1&&(g.value=!0,await at()),Ce.value.handleFocusPicker)){Ce.value.handleFocusPicker();return}if(Ye===ot.tab){v=!0;return}if(Ye===ot.enter||Ye===ot.numpadEnter){(Te.value===null||Te.value===""||et(qe(_e.value)))&&(De(),g.value=!1),ne.stopPropagation();return}if(Te.value){ne.stopPropagation();return}Ce.value.handleKeydownInput&&Ce.value.handleKeydownInput(ne)},Xe=ne=>{Te.value=ne,g.value||(g.value=!0)},ct=ne=>{const Ye=ne.target;Te.value?Te.value=[Ye.value,Te.value[1]]:Te.value=[Ye.value,null]},wt=ne=>{const Ye=ne.target;Te.value?Te.value=[Te.value[0],Ye.value]:Te.value=[null,Ye.value]},Pt=()=>{var ne;const Ye=Te.value,_t=qe(Ye&&Ye[0]),Ft=d(ie);if(_t&&_t.isValid()){Te.value=[Je(_t),((ne=_e.value)==null?void 0:ne[1])||null];const Pn=[_t,Ft&&(Ft[1]||null)];et(Pn)&&(E(Pn),Te.value=null)}},ut=()=>{var ne;const Ye=d(Te),_t=qe(Ye&&Ye[1]),Ft=d(ie);if(_t&&_t.isValid()){Te.value=[((ne=d(_e))==null?void 0:ne[0])||null,Je(_t)];const Pn=[Ft&&Ft[0],_t];et(Pn)&&(E(Pn),Te.value=null)}},Ce=G({}),pe=ne=>{Ce.value[ne[0]]=ne[1],Ce.value.panelReady=!0},ge=ne=>{n("calendar-change",ne)},Ne=(ne,Ye,_t)=>{n("panel-change",ne,Ye,_t)};return Lt("EP_PICKER_BASE",{props:s}),t({focus:K,handleFocusInput:L,handleBlurInput:ee,handleOpen:Y,handleClose:B,onPick:z}),(ne,Ye)=>(C(),he(d(ms),Rt({ref_key:"refPopper",ref:h,visible:g.value,effect:"light",pure:"",trigger:"click"},ne.$attrs,{role:"dialog",teleported:"",transition:`${d(a).namespace.value}-zoom-in-top`,"popper-class":[`${d(a).namespace.value}-picker__popper`,ne.popperClass],"popper-options":d(f),"fallback-placements":["bottom","top","right","left"],"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"hide-after":0,persistent:"",onBeforeShow:W,onShow:D,onHide:X}),{default:N(()=>[d(Be)?(C(),j("div",{key:1,ref_key:"inputRef",ref:p,class:M(d(w)),style:rt(ne.$attrs.style),onClick:L,onMouseenter:re,onMouseleave:Se,onTouchstart:Ae,onKeydown:Re},[d(ae)?(C(),he(d(tt),{key:0,class:M([d(o).e("icon"),d(l).e("icon")]),onMousedown:dt(J,["prevent"]),onTouchstart:Ae},{default:N(()=>[(C(),he(Nt(d(ae))))]),_:1},8,["class","onMousedown"])):le("v-if",!0),R("input",{id:ne.id&&ne.id[0],autocomplete:"off",name:ne.name&&ne.name[0],placeholder:ne.startPlaceholder,value:d(_e)&&d(_e)[0],disabled:d(te),readonly:!ne.editable||ne.readonly,class:M(d(l).b("input")),onMousedown:J,onInput:ct,onChange:Pt,onFocus:L,onBlur:ee},null,42,SG),we(ne.$slots,"range-separator",{},()=>[R("span",{class:M(d(l).b("separator"))},ve(ne.rangeSeparator),3)]),R("input",{id:ne.id&&ne.id[1],autocomplete:"off",name:ne.name&&ne.name[1],placeholder:ne.endPlaceholder,value:d(_e)&&d(_e)[1],disabled:d(te),readonly:!ne.editable||ne.readonly,class:M(d(l).b("input")),onMousedown:J,onFocus:L,onBlur:ee,onInput:wt,onChange:ut},null,42,CG),ne.clearIcon?(C(),he(d(tt),{key:1,class:M(d(T)),onClick:ke},{default:N(()=>[(C(),he(Nt(ne.clearIcon)))]),_:1},8,["class"])):le("v-if",!0)],38)):(C(),he(d(Fn),{key:0,id:ne.id,ref_key:"inputRef",ref:p,"container-role":"combobox","model-value":d(_e),name:ne.name,size:d(Pe),disabled:d(te),placeholder:ne.placeholder,class:M([d(a).b("editor"),d(a).bm("editor",ne.type),ne.$attrs.class]),style:rt(ne.$attrs.style),readonly:!ne.editable||ne.readonly||d(de)||ne.type==="week",label:ne.label,tabindex:ne.tabindex,"validate-event":!1,onInput:Xe,onFocus:L,onBlur:ee,onKeydown:Re,onChange:De,onMousedown:J,onMouseenter:re,onMouseleave:Se,onTouchstart:Ae,onClick:Ye[0]||(Ye[0]=dt(()=>{},["stop"]))},{prefix:N(()=>[d(ae)?(C(),he(d(tt),{key:0,class:M(d(o).e("icon")),onMousedown:dt(J,["prevent"]),onTouchstart:Ae},{default:N(()=>[(C(),he(Nt(d(ae))))]),_:1},8,["class","onMousedown"])):le("v-if",!0)]),suffix:N(()=>[Ie.value&&ne.clearIcon?(C(),he(d(tt),{key:0,class:M(`${d(o).e("icon")} clear-icon`),onClick:dt(ke,["stop"])},{default:N(()=>[(C(),he(Nt(ne.clearIcon)))]),_:1},8,["class","onClick"])):le("v-if",!0)]),_:1},8,["id","model-value","name","size","disabled","placeholder","class","style","readonly","label","tabindex","onKeydown"]))]),content:N(()=>[we(ne.$slots,"default",{visible:g.value,actualVisible:m.value,parsedValue:d(ie),format:ne.format,dateFormat:ne.dateFormat,timeFormat:ne.timeFormat,unlinkPanels:ne.unlinkPanels,type:ne.type,defaultValue:ne.defaultValue,onPick:z,onSelectRange:U,onSetPickerOption:pe,onCalendarChange:ge,onPanelChange:Ne,onKeydown:V,onMousedown:Ye[1]||(Ye[1]=dt(()=>{},["stop"]))})]),_:3},16,["visible","transition","popper-class","popper-options"]))}});var MA=ze(xG,[["__file","picker.vue"]]);const kG=He({...NA,datetimeRole:String,parsedValue:{type:me(Object)}}),RA=({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 p;const g=c[h];switch(h){case"minute":{p=g(f.hour(),o,u);break}case"second":{p=g(f.hour(),f.minute(),o,u);break}default:{p=g(o,u);break}}if(p!=null&&p.length&&!p.includes(f[h]())){const m=l?0:p.length-1;f=f[h](p[m])}}}),f},r={};return{timePickerOptions:r,getAvailableTime:s,onSetOption:([a,o])=>{r[a]=o}}},$v=e=>{const t=(s,r)=>s||r,n=s=>s!==!0;return e.map(t).filter(n)},LA=(e,t,n)=>({getHoursList:(a,o)=>Pv(24,e&&(()=>e==null?void 0:e(a,o))),getMinutesList:(a,o,l)=>Pv(60,t&&(()=>t==null?void 0:t(a,o,l))),getSecondsList:(a,o,l,u)=>Pv(60,n&&(()=>n==null?void 0:n(a,o,l,u)))}),DA=(e,t,n)=>{const{getHoursList:s,getMinutesList:r,getSecondsList:i}=LA(e,t,n);return{getAvailableHours:(u,c)=>$v(s(u,c)),getAvailableMinutes:(u,c,f)=>$v(r(u,c,f)),getAvailableSeconds:(u,c,f,h)=>$v(i(u,c,f,h))}},FA=e=>{const t=G(e.parsedValue);return Oe(()=>e.visible,n=>{n||(t.value=e.parsedValue)}),t},Oa=new Map;let mE;Kt&&(document.addEventListener("mousedown",e=>mE=e),document.addEventListener("mouseup",e=>{for(const t of Oa.values())for(const{documentHandler:n}of t)n(e,mE)}));function gE(e,t){let n=[];return Array.isArray(t.arg)?n=t.arg:Or(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),p=i&&(i.contains(a)||i.contains(o));l||u||c||f||h||p||t.value(s,r)}}const ia={beforeMount(e,t){Oa.has(e)||Oa.set(e,[]),Oa.get(e).push({documentHandler:gE(e,t),bindingFn:t.value})},updated(e,t){Oa.has(e)||Oa.set(e,[]);const n=Oa.get(e),s=n.findIndex(i=>i.bindingFn===t.oldValue),r={documentHandler:gE(e,t),bindingFn:t.value};s>=0?n.splice(s,1,r):n.push(r)},unmounted(e){Oa.delete(e)}},IG=100,OG=600,jp={beforeMount(e,t){const n=t.value,{interval:s=IG,delay:r=OG}=yt(n)?{}:n;let i,a;const o=()=>yt(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))})}},ry="_trap-focus-children",No=[],vE=e=>{if(No.length===0)return;const t=No[No.length-1][ry];if(t.length>0&&e.code===ot.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())}},AG={beforeMount(e){e[ry]=OS(e),No.push(e),No.length<=1&&document.addEventListener("keydown",vE)},updated(e){at(()=>{e[ry]=OS(e)})},unmounted(){No.shift(),No.length===0&&document.removeEventListener("keydown",vE)}};var yE=!1,ko,iy,ay,tp,np,BA,sp,oy,ly,uy,VA,cy,dy,UA,HA;function Us(){if(!yE){yE=!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(cy=/\b(iPhone|iP[ao]d)/.exec(e),dy=/\b(iP[ao]d)/.exec(e),uy=/Android/i.exec(e),UA=/FBAN\/\w+;/i.exec(e),HA=/Mobile/i.exec(e),VA=!!/Win64/.exec(e),t){ko=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,ko&&document&&document.documentMode&&(ko=document.documentMode);var s=/(?:Trident\/(\d+.\d+))/.exec(e);BA=s?parseFloat(s[1])+4:ko,iy=t[2]?parseFloat(t[2]):NaN,ay=t[3]?parseFloat(t[3]):NaN,tp=t[4]?parseFloat(t[4]):NaN,tp?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),np=t&&t[1]?parseFloat(t[1]):NaN):np=NaN}else ko=iy=ay=np=tp=NaN;if(n){if(n[1]){var r=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);sp=r?parseFloat(r[1].replace("_",".")):!0}else sp=!1;oy=!!n[2],ly=!!n[3]}else sp=oy=ly=!1}}var fy={ie:function(){return Us()||ko},ieCompatibilityMode:function(){return Us()||BA>ko},ie64:function(){return fy.ie()&&VA},firefox:function(){return Us()||iy},opera:function(){return Us()||ay},webkit:function(){return Us()||tp},safari:function(){return fy.webkit()},chrome:function(){return Us()||np},windows:function(){return Us()||oy},osx:function(){return Us()||sp},linux:function(){return Us()||ly},iphone:function(){return Us()||cy},mobile:function(){return Us()||cy||dy||uy||HA},nativeApp:function(){return Us()||UA},android:function(){return Us()||uy},ipad:function(){return Us()||dy}},PG=fy,Ah=!!(typeof window<"u"&&window.document&&window.document.createElement),$G={canUseDOM:Ah,canUseWorkers:typeof Worker<"u",canUseEventListeners:Ah&&!!(window.addEventListener||window.attachEvent),canUseViewport:Ah&&!!window.screen,isInWorker:!Ah},zA=$G,jA;zA.canUseDOM&&(jA=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function NG(e,t){if(!zA.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&&jA&&e==="wheel"&&(s=document.implementation.hasFeature("Events.wheel","3.0")),s}var MG=NG,bE=10,_E=40,TE=800;function KA(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*bE,r=n*bE,"deltaY"in e&&(r=e.deltaY),"deltaX"in e&&(s=e.deltaX),(s||r)&&e.deltaMode&&(e.deltaMode==1?(s*=_E,r*=_E):(s*=TE,r*=TE)),s&&!t&&(t=s<1?-1:1),r&&!n&&(n=r<1?-1:1),{spinX:t,spinY:n,pixelX:s,pixelY:r}}KA.getEventType=function(){return PG.firefox()?"DOMMouseScroll":MG("wheel")?"wheel":"mousewheel"};var RG=KA;/**
|
||
* 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 LG=function(e,t){if(e&&e.addEventListener){const n=function(s){const r=RG(s);t&&Reflect.apply(t,this,[s,r])};e.addEventListener("wheel",n,{passive:!0})}},DG={beforeMount(e,t){LG(e,t.value)}},FG=He({role:{type:String,required:!0},spinnerDate:{type:me(Object),required:!0},showSeconds:{type:Boolean,default:!0},arrowControl:Boolean,amPmMode:{type:me(String),default:""},...$A}),BG=["onClick"],VG=["onMouseenter"],UG=Z({__name:"basic-time-spinner",props:FG,emits:["change","select-range","set-option"],setup(e,{emit:t}){const n=e,s=Le("time"),{getHoursList:r,getMinutesList:i,getSecondsList:a}=LA(n.disabledHours,n.disabledMinutes,n.disabledSeconds);let o=!1;const l=G(),u=G(),c=G(),f=G(),h={hours:u,minutes:c,seconds:f},p=k(()=>n.showSeconds?cE:cE.slice(0,2)),g=k(()=>{const{spinnerDate:L}=n,Q=L.hour(),ee=L.minute(),te=L.second();return{hours:Q,minutes:ee,seconds:te}}),m=k(()=>{const{hours:L,minutes:Q}=d(g);return{hours:r(n.role),minutes:i(L,n.role),seconds:a(L,Q,n.role)}}),y=k(()=>{const{hours:L,minutes:Q,seconds:ee}=d(g);return{hours:Av(L,23),minutes:Av(Q,59),seconds:Av(ee,59)}}),v=Fs(L=>{o=!1,T(L)},200),_=L=>{if(!!!n.amPmMode)return"";const ee=n.amPmMode==="A";let te=L<12?" am":" pm";return ee&&(te=te.toUpperCase()),te},w=L=>{let Q;switch(L){case"hours":Q=[0,2];break;case"minutes":Q=[3,5];break;case"seconds":Q=[6,8];break}const[ee,te]=Q;t("select-range",ee,te),l.value=L},T=L=>{$(L,d(g)[L])},S=()=>{T("hours"),T("minutes"),T("seconds")},E=L=>L.querySelector(`.${s.namespace.value}-scrollbar__wrap`),$=(L,Q)=>{if(n.arrowControl)return;const ee=d(h[L]);ee&&ee.$el&&(E(ee.$el).scrollTop=Math.max(0,Q*P(L)))},P=L=>{const Q=d(h[L]),ee=Q==null?void 0:Q.$el.querySelector("li");return ee&&Number.parseFloat(Ma(ee,"height"))||0},U=()=>{z(1)},H=()=>{z(-1)},z=L=>{l.value||w("hours");const Q=l.value,ee=d(g)[Q],te=l.value==="hours"?24:60,ie=W(Q,ee,L,te);D(Q,ie),$(Q,ie),at(()=>w(Q))},W=(L,Q,ee,te)=>{let ie=(Q+ee+te)%te;const _e=d(m)[L];for(;_e[ie]&&ie!==Q;)ie=(ie+ee+te)%te;return ie},D=(L,Q)=>{if(d(m)[L][Q])return;const{hours:ie,minutes:_e,seconds:ue}=d(g);let oe;switch(L){case"hours":oe=n.spinnerDate.hour(Q).minute(_e).second(ue);break;case"minutes":oe=n.spinnerDate.hour(ie).minute(Q).second(ue);break;case"seconds":oe=n.spinnerDate.hour(ie).minute(_e).second(Q);break}t("change",oe)},V=(L,{value:Q,disabled:ee})=>{ee||(D(L,Q),w(L),$(L,Q))},X=L=>{o=!0,v(L);const Q=Math.min(Math.round((E(d(h[L]).$el).scrollTop-(Y(L)*.5-10)/P(L)+3)/P(L)),L==="hours"?23:59);D(L,Q)},Y=L=>d(h[L]).$el.offsetHeight,B=()=>{const L=Q=>{const ee=d(h[Q]);ee&&ee.$el&&(E(ee.$el).onscroll=()=>{X(Q)})};L("hours"),L("minutes"),L("seconds")};vt(()=>{at(()=>{!n.arrowControl&&B(),S(),n.role==="start"&&w("hours")})});const K=(L,Q)=>{h[Q].value=L};return t("set-option",[`${n.role}_scrollDown`,z]),t("set-option",[`${n.role}_emitSelectRange`,w]),Oe(()=>n.spinnerDate,()=>{o||S()}),(L,Q)=>(C(),j("div",{class:M([d(s).b("spinner"),{"has-seconds":L.showSeconds}])},[L.arrowControl?le("v-if",!0):(C(!0),j(Ke,{key:0},bt(d(p),ee=>(C(),he(d(va),{key:ee,ref_for:!0,ref:te=>K(te,ee),class:M(d(s).be("spinner","wrapper")),"wrap-style":"max-height: inherit;","view-class":d(s).be("spinner","list"),noresize:"",tag:"ul",onMouseenter:te=>w(ee),onMousemove:te=>T(ee)},{default:N(()=>[(C(!0),j(Ke,null,bt(d(m)[ee],(te,ie)=>(C(),j("li",{key:ie,class:M([d(s).be("spinner","item"),d(s).is("active",ie===d(g)[ee]),d(s).is("disabled",te)]),onClick:_e=>V(ee,{value:ie,disabled:te})},[ee==="hours"?(C(),j(Ke,{key:0},[Fe(ve(("0"+(L.amPmMode?ie%12||12:ie)).slice(-2))+ve(_(ie)),1)],64)):(C(),j(Ke,{key:1},[Fe(ve(("0"+ie).slice(-2)),1)],64))],10,BG))),128))]),_:2},1032,["class","view-class","onMouseenter","onMousemove"]))),128)),L.arrowControl?(C(!0),j(Ke,{key:1},bt(d(p),ee=>(C(),j("div",{key:ee,class:M([d(s).be("spinner","wrapper"),d(s).is("arrow")]),onMouseenter:te=>w(ee)},[pt((C(),he(d(tt),{class:M(["arrow-up",d(s).be("spinner","arrow")])},{default:N(()=>[I(d(hf))]),_:1},8,["class"])),[[d(jp),H]]),pt((C(),he(d(tt),{class:M(["arrow-down",d(s).be("spinner","arrow")])},{default:N(()=>[I(d(ga))]),_:1},8,["class"])),[[d(jp),U]]),R("ul",{class:M(d(s).be("spinner","list"))},[(C(!0),j(Ke,null,bt(d(y)[ee],(te,ie)=>(C(),j("li",{key:ie,class:M([d(s).be("spinner","item"),d(s).is("active",te===d(g)[ee]),d(s).is("disabled",d(m)[ee][te])])},[typeof te=="number"?(C(),j(Ke,{key:0},[ee==="hours"?(C(),j(Ke,{key:0},[Fe(ve(("0"+(L.amPmMode?te%12||12:te)).slice(-2))+ve(_(te)),1)],64)):(C(),j(Ke,{key:1},[Fe(ve(("0"+te).slice(-2)),1)],64))],64)):le("v-if",!0)],2))),128))],2)],42,VG))),128)):le("v-if",!0)],2))}});var hy=ze(UG,[["__file","basic-time-spinner.vue"]]);const HG=Z({__name:"panel-time-pick",props:kG,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const n=e,s=Qe("EP_PICKER_BASE"),{arrowControl:r,disabledHours:i,disabledMinutes:a,disabledSeconds:o,defaultValue:l}=s.props,{getAvailableHours:u,getAvailableMinutes:c,getAvailableSeconds:f}=DA(i,a,o),h=Le("time"),{t:p,lang:g}=Wt(),m=G([0,2]),y=FA(n),v=k(()=>qn(n.actualVisible)?`${h.namespace.value}-zoom-in-top`:""),_=k(()=>n.format.includes("ss")),w=k(()=>n.format.includes("A")?"A":n.format.includes("a")?"a":""),T=K=>{const L=Ot(K).locale(g.value),Q=V(L);return L.isSame(Q)},S=()=>{t("pick",y.value,!1)},E=(K=!1,L=!1)=>{L||t("pick",n.parsedValue,K)},$=K=>{if(!n.visible)return;const L=V(K).millisecond(0);t("pick",L,!0)},P=(K,L)=>{t("select-range",K,L),m.value=[K,L]},U=K=>{const L=[0,3].concat(_.value?[6]:[]),Q=["hours","minutes"].concat(_.value?["seconds"]:[]),te=(L.indexOf(m.value[0])+K+L.length)%L.length;z.start_emitSelectRange(Q[te])},H=K=>{const L=K.code,{left:Q,right:ee,up:te,down:ie}=ot;if([Q,ee].includes(L)){U(L===Q?-1:1),K.preventDefault();return}if([te,ie].includes(L)){const _e=L===te?-1:1;z.start_scrollDown(_e),K.preventDefault();return}},{timePickerOptions:z,onSetOption:W,getAvailableTime:D}=RA({getAvailableHours:u,getAvailableMinutes:c,getAvailableSeconds:f}),V=K=>D(K,n.datetimeRole||"",!0),X=K=>K?Ot(K,n.format).locale(g.value):null,Y=K=>K?K.format(n.format):null,B=()=>Ot(l).locale(g.value);return t("set-picker-option",["isValidValue",T]),t("set-picker-option",["formatToString",Y]),t("set-picker-option",["parseUserInput",X]),t("set-picker-option",["handleKeydownInput",H]),t("set-picker-option",["getRangeAvailableTime",V]),t("set-picker-option",["getDefaultValue",B]),(K,L)=>(C(),he(Rn,{name:d(v)},{default:N(()=>[K.actualVisible||K.visible?(C(),j("div",{key:0,class:M(d(h).b("panel"))},[R("div",{class:M([d(h).be("panel","content"),{"has-seconds":d(_)}])},[I(hy,{ref:"spinner",role:K.datetimeRole||"start","arrow-control":d(r),"show-seconds":d(_),"am-pm-mode":d(w),"spinner-date":K.parsedValue,"disabled-hours":d(i),"disabled-minutes":d(a),"disabled-seconds":d(o),onChange:$,onSetOption:d(W),onSelectRange:P},null,8,["role","arrow-control","show-seconds","am-pm-mode","spinner-date","disabled-hours","disabled-minutes","disabled-seconds","onSetOption"])],2),R("div",{class:M(d(h).be("panel","footer"))},[R("button",{type:"button",class:M([d(h).be("panel","btn"),"cancel"]),onClick:S},ve(d(p)("el.datepicker.cancel")),3),R("button",{type:"button",class:M([d(h).be("panel","btn"),"confirm"]),onClick:L[0]||(L[0]=Q=>E())},ve(d(p)("el.datepicker.confirm")),3)],2)],2)):le("v-if",!0)]),_:1},8,["name"]))}});var Kp=ze(HG,[["__file","panel-time-pick.vue"]]);const zG=He({...NA,parsedValue:{type:me(Array)}}),jG=["disabled"],KG=Z({__name:"panel-time-range",props:zG,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const n=e,s=(Ee,J)=>{const re=[];for(let Se=Ee;Se<=J;Se++)re.push(Se);return re},{t:r,lang:i}=Wt(),a=Le("time"),o=Le("picker"),l=Qe("EP_PICKER_BASE"),{arrowControl:u,disabledHours:c,disabledMinutes:f,disabledSeconds:h,defaultValue:p}=l.props,g=k(()=>[a.be("range-picker","body"),a.be("panel","content"),a.is("arrow",u),T.value?"has-seconds":""]),m=k(()=>[a.be("range-picker","body"),a.be("panel","content"),a.is("arrow",u),T.value?"has-seconds":""]),y=k(()=>n.parsedValue[0]),v=k(()=>n.parsedValue[1]),_=FA(n),w=()=>{t("pick",_.value,!1)},T=k(()=>n.format.includes("ss")),S=k(()=>n.format.includes("A")?"A":n.format.includes("a")?"a":""),E=(Ee=!1)=>{t("pick",[y.value,v.value],Ee)},$=Ee=>{H(Ee.millisecond(0),v.value)},P=Ee=>{H(y.value,Ee.millisecond(0))},U=Ee=>{const J=Ee.map(Se=>Ot(Se).locale(i.value)),re=ee(J);return J[0].isSame(re[0])&&J[1].isSame(re[1])},H=(Ee,J)=>{t("pick",[Ee,J],!0)},z=k(()=>y.value>v.value),W=G([0,2]),D=(Ee,J)=>{t("select-range",Ee,J,"min"),W.value=[Ee,J]},V=k(()=>T.value?11:8),X=(Ee,J)=>{t("select-range",Ee,J,"max");const re=d(V);W.value=[Ee+re,J+re]},Y=Ee=>{const J=T.value?[0,3,6,11,14,17]:[0,3,8,11],re=["hours","minutes"].concat(T.value?["seconds"]:[]),Ae=(J.indexOf(W.value[0])+Ee+J.length)%J.length,Be=J.length/2;Ae<Be?ue.start_emitSelectRange(re[Ae]):ue.end_emitSelectRange(re[Ae-Be])},B=Ee=>{const J=Ee.code,{left:re,right:Se,up:Ae,down:Be}=ot;if([re,Se].includes(J)){Y(J===re?-1:1),Ee.preventDefault();return}if([Ae,Be].includes(J)){const Pe=J===Ae?-1:1,Ve=W.value[0]<V.value?"start":"end";ue[`${Ve}_scrollDown`](Pe),Ee.preventDefault();return}},K=(Ee,J)=>{const re=c?c(Ee):[],Se=Ee==="start",Be=(J||(Se?v.value:y.value)).hour(),Pe=Se?s(Be+1,23):s(0,Be-1);return wv(re,Pe)},L=(Ee,J,re)=>{const Se=f?f(Ee,J):[],Ae=J==="start",Be=re||(Ae?v.value:y.value),Pe=Be.hour();if(Ee!==Pe)return Se;const Ve=Be.minute(),$e=Ae?s(Ve+1,59):s(0,Ve-1);return wv(Se,$e)},Q=(Ee,J,re,Se)=>{const Ae=h?h(Ee,J,re):[],Be=re==="start",Pe=Se||(Be?v.value:y.value),Ve=Pe.hour(),$e=Pe.minute();if(Ee!==Ve||J!==$e)return Ae;const Te=Pe.second(),De=Be?s(Te+1,59):s(0,Te-1);return wv(Ae,De)},ee=([Ee,J])=>[oe(Ee,"start",!0,J),oe(J,"end",!1,Ee)],{getAvailableHours:te,getAvailableMinutes:ie,getAvailableSeconds:_e}=DA(K,L,Q),{timePickerOptions:ue,getAvailableTime:oe,onSetOption:de}=RA({getAvailableHours:te,getAvailableMinutes:ie,getAvailableSeconds:_e}),ae=Ee=>Ee?st(Ee)?Ee.map(J=>Ot(J,n.format).locale(i.value)):Ot(Ee,n.format).locale(i.value):null,Ie=Ee=>Ee?st(Ee)?Ee.map(J=>J.format(n.format)):Ee.format(n.format):null,ke=()=>{if(st(p))return p.map(J=>Ot(J).locale(i.value));const Ee=Ot(p).locale(i.value);return[Ee,Ee.add(60,"m")]};return t("set-picker-option",["formatToString",Ie]),t("set-picker-option",["parseUserInput",ae]),t("set-picker-option",["isValidValue",U]),t("set-picker-option",["handleKeydownInput",B]),t("set-picker-option",["getDefaultValue",ke]),t("set-picker-option",["getRangeAvailableTime",ee]),(Ee,J)=>Ee.actualVisible?(C(),j("div",{key:0,class:M([d(a).b("range-picker"),d(o).b("panel")])},[R("div",{class:M(d(a).be("range-picker","content"))},[R("div",{class:M(d(a).be("range-picker","cell"))},[R("div",{class:M(d(a).be("range-picker","header"))},ve(d(r)("el.datepicker.startTime")),3),R("div",{class:M(d(g))},[I(hy,{ref:"minSpinner",role:"start","show-seconds":d(T),"am-pm-mode":d(S),"arrow-control":d(u),"spinner-date":d(y),"disabled-hours":K,"disabled-minutes":L,"disabled-seconds":Q,onChange:$,onSetOption:d(de),onSelectRange:D},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2),R("div",{class:M(d(a).be("range-picker","cell"))},[R("div",{class:M(d(a).be("range-picker","header"))},ve(d(r)("el.datepicker.endTime")),3),R("div",{class:M(d(m))},[I(hy,{ref:"maxSpinner",role:"end","show-seconds":d(T),"am-pm-mode":d(S),"arrow-control":d(u),"spinner-date":d(v),"disabled-hours":K,"disabled-minutes":L,"disabled-seconds":Q,onChange:P,onSetOption:d(de),onSelectRange:X},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2)],2),R("div",{class:M(d(a).be("panel","footer"))},[R("button",{type:"button",class:M([d(a).be("panel","btn"),"cancel"]),onClick:J[0]||(J[0]=re=>w())},ve(d(r)("el.datepicker.cancel")),3),R("button",{type:"button",class:M([d(a).be("panel","btn"),"confirm"]),disabled:d(z),onClick:J[1]||(J[1]=re=>E())},ve(d(r)("el.datepicker.confirm")),11,jG)],2)],2)):le("v-if",!0)}});var WG=ze(KG,[["__file","panel-time-range.vue"]]);Ot.extend(n1);var qG=Z({name:"ElTimePicker",install:null,props:{...s1,isRange:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,t){const n=G(),[s,r]=e.isRange?["timerange",WG]:["time",Kp],i=a=>t.emit("update:modelValue",a);return Lt("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:sy;return I(MA,Rt(e,{ref:n,type:s,format:o,"onUpdate:modelValue":i}),{default:l=>I(r,l,null)})}}});const rp=qG;rp.install=e=>{e.component(rp.name,rp)};const GG=rp,YG=(e,t)=>{const n=e.subtract(1,"month").endOf("month").date();return Ua(t).map((s,r)=>n-(t-r-1))},XG=e=>{const t=e.daysInMonth();return Ua(t).map((n,s)=>s+1)},QG=e=>Ua(e.length/7).map(t=>{const n=t*7;return e.slice(n,n+7)}),JG=He({selectedDay:{type:me(Object)},range:{type:me(Array)},date:{type:me(Object),required:!0},hideHeader:{type:Boolean}}),ZG={pick:e=>Mt(e)};var py={},eY={get exports(){return py},set exports(e){py=e}};(function(e,t){(function(n,s){e.exports=s()})(nr,function(){return function(n,s,r){var i=s.prototype,a=function(f){return f&&(f.indexOf?f:f.s)},o=function(f,h,p,g,m){var y=f.name?f:f.$locale(),v=a(y[h]),_=a(y[p]),w=v||_.map(function(S){return S.slice(0,g)});if(!m)return w;var T=y.weekStart;return w.map(function(S,E){return w[(E+(T||0))%7]})},l=function(){return r.Ls[r.locale()]},u=function(f,h){return f.formats[h]||function(p){return p.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(g,m,y){return m||y.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)}}})})(eY);const WA=py,tY=(e,t)=>{Ot.extend(WA);const n=Ot.localeData().firstDayOfWeek(),{t:s,lang:r}=Wt(),i=Ot().locale(r.value),a=k(()=>!!e.range&&!!e.range.length),o=k(()=>{let h=[];if(a.value){const[p,g]=e.range,m=Ua(g.date()-p.date()+1).map(_=>({text:p.date()+_,type:"current"}));let y=m.length%7;y=y===0?0:7-y;const v=Ua(y).map((_,w)=>({text:w+1,type:"next"}));h=m.concat(v)}else{const p=e.date.startOf("month").day(),g=YG(e.date,(p-n+7)%7).map(_=>({text:_,type:"prev"})),m=XG(e.date).map(_=>({text:_,type:"current"}));h=[...g,...m];const y=7-(h.length%7||7),v=Ua(y).map((_,w)=>({text:w+1,type:"next"}));h=h.concat(v)}return QG(h)}),l=k(()=>{const h=n;return h===0?Sv.map(p=>s(`el.datepicker.weeks.${p}`)):Sv.slice(h).concat(Sv.slice(0,h)).map(p=>s(`el.datepicker.weeks.${p}`))}),u=(h,p)=>{switch(p){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:p})=>{const g=u(h,p);t("pick",g)},getSlotData:({text:h,type:p})=>{const g=u(h,p);return{isSelected:g.isSame(e.selectedDay),type:`${p}-month`,day:g.format("YYYY-MM-DD"),date:g.toDate()}}}},nY={key:0},sY=["onClick"],rY=Z({name:"DateTable"}),iY=Z({...rY,props:JG,emits:ZG,setup(e,{expose:t,emit:n}){const s=e,{isInRange:r,now:i,rows:a,weekDays:o,getFormattedDate:l,handlePickDay:u,getSlotData:c}=tY(s,n),f=Le("calendar-table"),h=Le("calendar-day"),p=({text:g,type:m})=>{const y=[m];if(m==="current"){const v=l(g,m);v.isSame(s.selectedDay,"day")&&y.push(h.is("selected")),v.isSame(i,"day")&&y.push(h.is("today"))}return y};return t({getFormattedDate:l}),(g,m)=>(C(),j("table",{class:M([d(f).b(),d(f).is("range",d(r))]),cellspacing:"0",cellpadding:"0"},[g.hideHeader?le("v-if",!0):(C(),j("thead",nY,[(C(!0),j(Ke,null,bt(d(o),y=>(C(),j("th",{key:y},ve(y),1))),128))])),R("tbody",null,[(C(!0),j(Ke,null,bt(d(a),(y,v)=>(C(),j("tr",{key:v,class:M({[d(f).e("row")]:!0,[d(f).em("row","hide-border")]:v===0&&g.hideHeader})},[(C(!0),j(Ke,null,bt(y,(_,w)=>(C(),j("td",{key:w,class:M(p(_)),onClick:T=>d(u)(_)},[R("div",{class:M(d(h).b())},[we(g.$slots,"date-cell",{data:d(c)(_)},()=>[R("span",null,ve(_.text),1)])],2)],10,sY))),128))],2))),128))])],2))}});var wE=ze(iY,[["__file","date-table.vue"]]);const aY=(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]]},oY=(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]]},lY=(e,t,n)=>{const s=us(),{lang:r}=Wt(),i=G(),a=Ot().locale(r.value),o=k({get(){return e.modelValue?u.value:i.value},set(v){if(!v)return;i.value=v;const _=v.toDate();t(Ms,_),t($t,_)}}),l=k(()=>{if(!e.range)return[];const v=e.range.map(T=>Ot(T).locale(r.value)),[_,w]=v;return _.isAfter(w)?[]:_.isSame(w,"month")?g(_,w):_.add(1,"month").month()!==w.month()?[]:g(_,w)}),u=k(()=>e.modelValue?Ot(e.modelValue).locale(r.value):o.value||(l.value.length?l.value[0][0]:a)),c=k(()=>u.value.subtract(1,"month").date(1)),f=k(()=>u.value.add(1,"month").date(1)),h=k(()=>u.value.subtract(1,"year").date(1)),p=k(()=>u.value.add(1,"year").date(1)),g=(v,_)=>{const w=v.startOf("week"),T=_.endOf("week"),S=w.get("month"),E=T.get("month");return S===E?[[w,T]]:(S+1)%12===E?aY(w,T):S+2===E||(S+1)%11===E?oY(w,T):[]},m=v=>{o.value=v},y=v=>{const w={"prev-month":c.value,"next-month":f.value,"prev-year":h.value,"next-year":p.value,today:a}[v];w.isSame(u.value,"day")||m(w)};return Ii({from:'"dateCell"',replacement:'"date-cell"',scope:"ElCalendar",version:"2.3.0",ref:"https://element-plus.org/en-US/component/calendar.html#slots",type:"Slot"},k(()=>!!s.dateCell)),{calculateValidatedDateRange:g,date:u,realSelectedDay:o,pickDay:m,selectDate:y,validatedRange:l}},uY=e=>st(e)&&e.length===2&&e.every(t=>Yo(t)),cY=He({modelValue:{type:Date},range:{type:me(Array),validator:uY}}),dY={[$t]:e=>Yo(e),[Ms]:e=>Yo(e)},fY="ElCalendar",hY=Z({name:fY}),pY=Z({...hY,props:cY,emits:dY,setup(e,{expose:t,emit:n}){const s=e,r=Le("calendar"),{calculateValidatedDateRange:i,date:a,pickDay:o,realSelectedDay:l,selectDate:u,validatedRange:c}=lY(s,n),{t:f}=Wt(),h=k(()=>{const p=`el.datepicker.month${a.value.format("M")}`;return`${a.value.year()} ${f("el.datepicker.year")} ${f(p)}`});return t({selectedDay:l,pickDay:o,selectDate:u,calculateValidatedDateRange:i}),(p,g)=>(C(),j("div",{class:M(d(r).b())},[R("div",{class:M(d(r).e("header"))},[we(p.$slots,"header",{date:d(h)},()=>[R("div",{class:M(d(r).e("title"))},ve(d(h)),3),d(c).length===0?(C(),j("div",{key:0,class:M(d(r).e("button-group"))},[I(d(IA),null,{default:N(()=>[I(d(bn),{size:"small",onClick:g[0]||(g[0]=m=>d(u)("prev-month"))},{default:N(()=>[Fe(ve(d(f)("el.datepicker.prevMonth")),1)]),_:1}),I(d(bn),{size:"small",onClick:g[1]||(g[1]=m=>d(u)("today"))},{default:N(()=>[Fe(ve(d(f)("el.datepicker.today")),1)]),_:1}),I(d(bn),{size:"small",onClick:g[2]||(g[2]=m=>d(u)("next-month"))},{default:N(()=>[Fe(ve(d(f)("el.datepicker.nextMonth")),1)]),_:1})]),_:1})],2)):le("v-if",!0)])],2),d(c).length===0?(C(),j("div",{key:0,class:M(d(r).e("body"))},[I(wE,{date:d(a),"selected-day":d(l),onPick:d(o)},xi({_:2},[p.$slots["date-cell"]||p.$slots.dateCell?{name:"date-cell",fn:N(m=>[p.$slots["date-cell"]?we(p.$slots,"date-cell",Kr(Rt({key:0},m))):we(p.$slots,"dateCell",Kr(Rt({key:1},m)))])}:void 0]),1032,["date","selected-day","onPick"])],2)):(C(),j("div",{key:1,class:M(d(r).e("body"))},[(C(!0),j(Ke,null,bt(d(c),(m,y)=>(C(),he(wE,{key:y,date:m[0],"selected-day":d(l),range:m,"hide-header":y!==0,onPick:d(o)},xi({_:2},[p.$slots["date-cell"]||p.$slots.dateCell?{name:"date-cell",fn:N(v=>[p.$slots["date-cell"]?we(p.$slots,"date-cell",Kr(Rt({key:0},v))):we(p.$slots,"dateCell",Kr(Rt({key:1},v)))])}:void 0]),1032,["date","selected-day","range","hide-header","onPick"]))),128))],2))],2))}});var mY=ze(pY,[["__file","calendar.vue"]]);const gY=At(mY),vY=He({header:{type:String,default:""},footer:{type:String,default:""},bodyStyle:{type:me([String,Object,Array]),default:""},bodyClass:String,shadow:{type:String,values:["always","hover","never"],default:"always"}}),yY=Z({name:"ElCard"}),bY=Z({...yY,props:vY,setup(e){const t=Le("card");return(n,s)=>(C(),j("div",{class:M([d(t).b(),d(t).is(`${n.shadow}-shadow`)])},[n.$slots.header||n.header?(C(),j("div",{key:0,class:M(d(t).e("header"))},[we(n.$slots,"header",{},()=>[Fe(ve(n.header),1)])],2)):le("v-if",!0),R("div",{class:M([d(t).e("body"),n.bodyClass]),style:rt(n.bodyStyle)},[we(n.$slots,"default")],6),n.$slots.footer||n.footer?(C(),j("div",{key:1,class:M(d(t).e("footer"))},[we(n.$slots,"footer",{},()=>[Fe(ve(n.footer),1)])],2)):le("v-if",!0)],2))}});var _Y=ze(bY,[["__file","card.vue"]]);const TY=At(_Y),wY=He({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:""},loop:{type:Boolean,default:!0},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},pauseOnHover:{type:Boolean,default:!0}}),SY={change:(e,t)=>[e,t].every(ht)},qA=Symbol("carouselContextKey"),SE=300,CY=(e,t,n)=>{const{children:s,addChild:r,removeChild:i}=Y_(It(),"ElCarouselItem"),a=us(),o=G(-1),l=G(null),u=G(!1),c=G(),f=G(0),h=G(!0),p=k(()=>e.arrow!=="never"&&!d(y)),g=k(()=>s.value.some(ie=>ie.props.label.toString().length>0)),m=k(()=>e.type==="card"),y=k(()=>e.direction==="vertical"),v=k(()=>e.height!=="auto"?{height:e.height}:{height:`${f.value}px`,overflow:"hidden"}),_=Uo(ie=>{P(ie)},SE,{trailing:!0}),w=Uo(ie=>{Y(ie)},SE),T=ie=>h.value?o.value<=1?ie<=1:ie>1:!0;function S(){l.value&&(clearInterval(l.value),l.value=null)}function E(){e.interval<=0||!e.autoplay||l.value||(l.value=setInterval(()=>$(),e.interval))}const $=()=>{o.value<s.value.length-1?o.value=o.value+1:e.loop&&(o.value=0)};function P(ie){if(Tt(ie)){const oe=s.value.filter(de=>de.props.name===ie);oe.length>0&&(ie=s.value.indexOf(oe[0]))}if(ie=Number(ie),Number.isNaN(ie)||ie!==Math.floor(ie))return;const _e=s.value.length,ue=o.value;ie<0?o.value=e.loop?_e-1:0:ie>=_e?o.value=e.loop?0:_e-1:o.value=ie,ue===o.value&&U(ue),L()}function U(ie){s.value.forEach((_e,ue)=>{_e.translateItem(ue,o.value,ie)})}function H(ie,_e){var ue,oe,de,ae;const Ie=d(s),ke=Ie.length;if(ke===0||!ie.states.inStage)return!1;const Ee=_e+1,J=_e-1,re=ke-1,Se=Ie[re].states.active,Ae=Ie[0].states.active,Be=(oe=(ue=Ie[Ee])==null?void 0:ue.states)==null?void 0:oe.active,Pe=(ae=(de=Ie[J])==null?void 0:de.states)==null?void 0:ae.active;return _e===re&&Ae||Be?"left":_e===0&&Se||Pe?"right":!1}function z(){u.value=!0,e.pauseOnHover&&S()}function W(){u.value=!1,E()}function D(ie){d(y)||s.value.forEach((_e,ue)=>{ie===H(_e,ue)&&(_e.states.hover=!0)})}function V(){d(y)||s.value.forEach(ie=>{ie.states.hover=!1})}function X(ie){o.value=ie}function Y(ie){e.trigger==="hover"&&ie!==o.value&&(o.value=ie)}function B(){P(o.value-1)}function K(){P(o.value+1)}function L(){S(),e.pauseOnHover||E()}function Q(ie){e.height==="auto"&&(f.value=ie)}function ee(){var ie;const _e=(ie=a.default)==null?void 0:ie.call(a);if(!_e)return null;const ue=Ho(_e),oe="ElCarouselItem",de=ue.filter(ae=>pn(ae)&&ae.type.name===oe);return(de==null?void 0:de.length)===2&&e.loop&&!m.value?(h.value=!0,de):(h.value=!1,null)}Oe(()=>o.value,(ie,_e)=>{U(_e),h.value&&(ie=ie%2,_e=_e%2),_e>-1&&t("change",ie,_e)}),Oe(()=>e.autoplay,ie=>{ie?E():S()}),Oe(()=>e.loop,()=>{P(o.value)}),Oe(()=>e.interval,()=>{L()});const te=Jt();return vt(()=>{Oe(()=>s.value,()=>{s.value.length>0&&P(e.initialIndex)},{immediate:!0}),te.value=_s(c.value,()=>{U()}),E()}),on(()=>{S(),c.value&&te.value&&te.value.stop()}),Lt(qA,{root:c,isCardType:m,isVertical:y,items:s,loop:e.loop,addItem:r,removeItem:i,setActiveItem:P,setContainerHeight:Q}),{root:c,activeIndex:o,arrowDisplay:p,hasLabel:g,hover:u,isCardType:m,items:s,isVertical:y,containerStyle:v,isItemsTwoLength:h,handleButtonEnter:D,handleButtonLeave:V,handleIndicatorClick:X,handleMouseEnter:z,handleMouseLeave:W,setActiveItem:P,prev:B,next:K,PlaceholderItem:ee,isTwoLengthShow:T,throttledArrowClick:_,throttledIndicatorHover:w}},EY=["onMouseenter","onClick"],xY={key:0},kY="ElCarousel",IY=Z({name:kY}),OY=Z({...IY,props:wY,emits:SY,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:p,handleButtonLeave:g,handleIndicatorClick:m,handleMouseEnter:y,handleMouseLeave:v,setActiveItem:_,prev:w,next:T,PlaceholderItem:S,isTwoLengthShow:E,throttledArrowClick:$,throttledIndicatorHover:P}=CY(s,n),U=Le("carousel"),H=k(()=>{const W=[U.b(),U.m(s.direction)];return d(u)&&W.push(U.m("card")),W}),z=k(()=>{const W=[U.e("indicators"),U.em("indicators",s.direction)];return d(o)&&W.push(U.em("indicators","labels")),s.indicatorPosition==="outside"&&W.push(U.em("indicators","outside")),d(f)&&W.push(U.em("indicators","right")),W});return t({setActiveItem:_,prev:w,next:T}),(W,D)=>(C(),j("div",{ref_key:"root",ref:r,class:M(d(H)),onMouseenter:D[6]||(D[6]=dt((...V)=>d(y)&&d(y)(...V),["stop"])),onMouseleave:D[7]||(D[7]=dt((...V)=>d(v)&&d(v)(...V),["stop"]))},[R("div",{class:M(d(U).e("container")),style:rt(d(h))},[d(a)?(C(),he(Rn,{key:0,name:"carousel-arrow-left",persisted:""},{default:N(()=>[pt(R("button",{type:"button",class:M([d(U).e("arrow"),d(U).em("arrow","left")]),onMouseenter:D[0]||(D[0]=V=>d(p)("left")),onMouseleave:D[1]||(D[1]=(...V)=>d(g)&&d(g)(...V)),onClick:D[2]||(D[2]=dt(V=>d($)(d(i)-1),["stop"]))},[I(d(tt),null,{default:N(()=>[I(d(Ka))]),_:1})],34),[[Vt,(W.arrow==="always"||d(l))&&(s.loop||d(i)>0)]])]),_:1})):le("v-if",!0),d(a)?(C(),he(Rn,{key:1,name:"carousel-arrow-right",persisted:""},{default:N(()=>[pt(R("button",{type:"button",class:M([d(U).e("arrow"),d(U).em("arrow","right")]),onMouseenter:D[3]||(D[3]=V=>d(p)("right")),onMouseleave:D[4]||(D[4]=(...V)=>d(g)&&d(g)(...V)),onClick:D[5]||(D[5]=dt(V=>d($)(d(i)+1),["stop"]))},[I(d(tt),null,{default:N(()=>[I(d(Ns))]),_:1})],34),[[Vt,(W.arrow==="always"||d(l))&&(s.loop||d(i)<d(c).length-1)]])]),_:1})):le("v-if",!0),I(d(S)),we(W.$slots,"default")],6),W.indicatorPosition!=="none"?(C(),j("ul",{key:0,class:M(d(z))},[(C(!0),j(Ke,null,bt(d(c),(V,X)=>pt((C(),j("li",{key:X,class:M([d(U).e("indicator"),d(U).em("indicator",W.direction),d(U).is("active",X===d(i))]),onMouseenter:Y=>d(P)(X),onClick:dt(Y=>d(m)(X),["stop"])},[R("button",{class:M(d(U).e("button"))},[d(o)?(C(),j("span",xY,ve(V.props.label),1)):le("v-if",!0)],2)],42,EY)),[[Vt,d(E)(X)]])),128))],2)):le("v-if",!0)],34))}});var AY=ze(OY,[["__file","carousel.vue"]]);const PY=He({name:{type:String,default:""},label:{type:[String,Number],default:""}}),$Y=(e,t)=>{const n=Qe(qA),s=It(),r=.83,i=G(),a=G(!1),o=G(0),l=G(1),u=G(!1),c=G(!1),f=G(!1),h=G(!1),{isCardType:p,isVertical:g}=n;function m(T,S,E){const $=E-1,P=S-1,U=S+1,H=E/2;return S===0&&T===$?-1:S===$&&T===0?E:T<P&&S-T>=H?E+1:T>U&&T-S>=H?-2:T}function y(T,S){var E,$;const P=d(g)?((E=n.root.value)==null?void 0:E.offsetHeight)||0:(($=n.root.value)==null?void 0:$.offsetWidth)||0;return f.value?P*((2-r)*(T-S)+1)/4:T<S?-(1+r)*P/4:(3+r)*P/4}function v(T,S,E){const $=n.root.value;return $?((E?$.offsetHeight:$.offsetWidth)||0)*(T-S):0}const _=(T,S,E)=>{var $;const P=d(p),U=($=n.items.value.length)!=null?$:Number.NaN,H=T===S;!P&&!qn(E)&&(h.value=H||T===E),!H&&U>2&&n.loop&&(T=m(T,S,U));const z=d(g);u.value=H,P?(f.value=Math.round(Math.abs(T-S))<=1,o.value=y(T,S),l.value=d(u)?1:r):o.value=v(T,S,z),c.value=!0,H&&i.value&&n.setContainerHeight(i.value.offsetHeight)};function w(){if(n&&d(p)){const T=n.items.value.findIndex(({uid:S})=>S===s.uid);n.setActiveItem(T)}}return vt(()=>{n.addItem({props:e,states:Ct({hover:a,translate:o,scale:l,active:u,ready:c,inStage:f,animating:h}),uid:s.uid,translateItem:_})}),eo(()=>{n.removeItem(s.uid)}),{carouselItemRef:i,active:u,animating:h,hover:a,inStage:f,isVertical:g,translate:o,isCardType:p,scale:l,ready:c,handleItemClick:w}},NY=Z({name:"ElCarouselItem"}),MY=Z({...NY,props:PY,setup(e){const t=e,n=Le("carousel"),{carouselItemRef:s,active:r,animating:i,hover:a,inStage:o,isVertical:l,translate:u,isCardType:c,scale:f,ready:h,handleItemClick:p}=$Y(t),g=k(()=>{const y=`${`translate${d(l)?"Y":"X"}`}(${d(u)}px)`,v=`scale(${d(f)})`;return{transform:[y,v].join(" ")}});return(m,y)=>pt((C(),j("div",{ref_key:"carouselItemRef",ref:s,class:M([d(n).e("item"),d(n).is("active",d(r)),d(n).is("in-stage",d(o)),d(n).is("hover",d(a)),d(n).is("animating",d(i)),{[d(n).em("item","card")]:d(c),[d(n).em("item","card-vertical")]:d(c)&&d(l)}]),style:rt(d(g)),onClick:y[0]||(y[0]=(...v)=>d(p)&&d(p)(...v))},[d(c)?pt((C(),j("div",{key:0,class:M(d(n).e("mask"))},null,2)),[[Vt,!d(r)]]):le("v-if",!0),we(m.$slots,"default")],6)),[[Vt,d(h)]])}});var GA=ze(MY,[["__file","carousel-item.vue"]]);const RY=At(AY,{CarouselItem:GA}),LY=In(GA),YA={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object],default:void 0},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},controls:{type:String,default:void 0},border:Boolean,size:os,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0}},XA={[$t]:e=>Tt(e)||ht(e)||Gn(e),change:e=>Tt(e)||ht(e)||Gn(e)},qu=Symbol("checkboxGroupContextKey"),DY=({model:e,isChecked:t})=>{const n=Qe(qu,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!qn(o)&&e.value.length>=o&&!t.value||!qn(l)&&e.value.length<=l&&t.value});return{isDisabled:ir(k(()=>(n==null?void 0:n.disabled.value)||s.value)),isLimitDisabled:s}},FY=(e,{model:t,isLimitExceeded:n,hasOwnLabel:s,isDisabled:r,isLabeledByFormItem:i})=>{const a=Qe(qu,void 0),{formItem:o}=Bs(),{emit:l}=It();function u(g){var m,y;return g===e.trueLabel||g===!0?(m=e.trueLabel)!=null?m:!0:(y=e.falseLabel)!=null?y:!1}function c(g,m){l("change",u(g),m)}function f(g){if(n.value)return;const m=g.target;l("change",u(m.checked),g)}async function h(g){n.value||!s.value&&!r.value&&i.value&&(g.composedPath().some(v=>v.tagName==="LABEL")||(t.value=u([!1,e.falseLabel].includes(t.value)),await at(),c(t.value,g)))}const p=k(()=>(a==null?void 0:a.validateEvent)||e.validateEvent);return Oe(()=>e.modelValue,()=>{p.value&&(o==null||o.validate("change").catch(g=>void 0))}),{handleChange:f,onClickRoot:h}},BY=e=>{const t=G(!1),{emit:n}=It(),s=Qe(qu,void 0),r=k(()=>qn(s)===!1),i=G(!1);return{model: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&&st(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),i.value===!1&&((u=s==null?void 0:s.changeEvent)==null||u.call(s,o))):(n($t,o),t.value=o)}}),isGroup:r,isLimitExceeded:i}},VY=(e,t,{model:n})=>{const s=Qe(qu,void 0),r=G(!1),i=k(()=>{const u=n.value;return Gn(u)?u:st(u)?Mt(e.label)?u.map(Qt).some(c=>Ys(c,e.label)):u.map(Qt).includes(e.label):u!=null?u===e.trueLabel:!!u}),a=Xn(k(()=>{var u;return(u=s==null?void 0:s.size)==null?void 0:u.value}),{prop:!0}),o=Xn(k(()=>{var u;return(u=s==null?void 0:s.size)==null?void 0:u.value})),l=k(()=>!!t.default||!Un(e.label));return{checkboxButtonSize:a,isChecked:i,isFocused:r,checkboxSize:o,hasOwnLabel:l}},UY=(e,{model:t})=>{function n(){st(t.value)&&!t.value.includes(e.label)?t.value.push(e.label):t.value=e.trueLabel||!0}e.checked&&n()},QA=(e,t)=>{const{formItem:n}=Bs(),{model:s,isGroup:r,isLimitExceeded:i}=BY(e),{isFocused:a,isChecked:o,checkboxButtonSize:l,checkboxSize:u,hasOwnLabel:c}=VY(e,t,{model:s}),{isDisabled:f}=DY({model:s,isChecked:o}),{inputId:h,isLabeledByFormItem:p}=ro(e,{formItemContext:n,disableIdGeneration:c,disableIdManagement:r}),{handleChange:g,onClickRoot:m}=FY(e,{model:s,isLimitExceeded:i,hasOwnLabel:c,isDisabled:f,isLabeledByFormItem:p});return UY(e,{model:s}),{inputId:h,isLabeledByFormItem:p,isChecked:o,isDisabled:f,isFocused:a,checkboxButtonSize:l,checkboxSize:u,hasOwnLabel:c,model:s,handleChange:g,onClickRoot:m}},HY=["id","indeterminate","name","tabindex","disabled","true-value","false-value"],zY=["id","indeterminate","disabled","value","name","tabindex"],jY=Z({name:"ElCheckbox"}),KY=Z({...jY,props:YA,emits:XA,setup(e){const t=e,n=us(),{inputId:s,isLabeledByFormItem:r,isChecked:i,isDisabled:a,isFocused:o,checkboxSize:l,hasOwnLabel:u,model:c,handleChange:f,onClickRoot:h}=QA(t,n),p=Le("checkbox"),g=k(()=>[p.b(),p.m(l.value),p.is("disabled",a.value),p.is("bordered",t.border),p.is("checked",i.value)]),m=k(()=>[p.e("input"),p.is("disabled",a.value),p.is("checked",i.value),p.is("indeterminate",t.indeterminate),p.is("focus",o.value)]);return(y,v)=>(C(),he(Nt(!d(u)&&d(r)?"span":"label"),{class:M(d(g)),"aria-controls":y.indeterminate?y.controls:null,onClick:d(h)},{default:N(()=>[R("span",{class:M(d(m))},[y.trueLabel||y.falseLabel?pt((C(),j("input",{key:0,id:d(s),"onUpdate:modelValue":v[0]||(v[0]=_=>an(c)?c.value=_:null),class:M(d(p).e("original")),type:"checkbox",indeterminate:y.indeterminate,name:y.name,tabindex:y.tabindex,disabled:d(a),"true-value":y.trueLabel,"false-value":y.falseLabel,onChange:v[1]||(v[1]=(..._)=>d(f)&&d(f)(..._)),onFocus:v[2]||(v[2]=_=>o.value=!0),onBlur:v[3]||(v[3]=_=>o.value=!1),onClick:v[4]||(v[4]=dt(()=>{},["stop"]))},null,42,HY)),[[_d,d(c)]]):pt((C(),j("input",{key:1,id:d(s),"onUpdate:modelValue":v[5]||(v[5]=_=>an(c)?c.value=_:null),class:M(d(p).e("original")),type:"checkbox",indeterminate:y.indeterminate,disabled:d(a),value:y.label,name:y.name,tabindex:y.tabindex,onChange:v[6]||(v[6]=(..._)=>d(f)&&d(f)(..._)),onFocus:v[7]||(v[7]=_=>o.value=!0),onBlur:v[8]||(v[8]=_=>o.value=!1),onClick:v[9]||(v[9]=dt(()=>{},["stop"]))},null,42,zY)),[[_d,d(c)]]),R("span",{class:M(d(p).e("inner"))},null,2)],2),d(u)?(C(),j("span",{key:0,class:M(d(p).e("label"))},[we(y.$slots,"default"),y.$slots.default?le("v-if",!0):(C(),j(Ke,{key:0},[Fe(ve(y.label),1)],64))],2)):le("v-if",!0)]),_:3},8,["class","aria-controls","onClick"]))}});var WY=ze(KY,[["__file","checkbox.vue"]]);const qY=["name","tabindex","disabled","true-value","false-value"],GY=["name","tabindex","disabled","value"],YY=Z({name:"ElCheckboxButton"}),XY=Z({...YY,props:YA,emits:XA,setup(e){const t=e,n=us(),{isFocused:s,isChecked:r,isDisabled:i,checkboxButtonSize:a,model:o,handleChange:l}=QA(t,n),u=Qe(qu,void 0),c=Le("checkbox"),f=k(()=>{var p,g,m,y;const v=(g=(p=u==null?void 0:u.fill)==null?void 0:p.value)!=null?g:"";return{backgroundColor:v,borderColor:v,color:(y=(m=u==null?void 0:u.textColor)==null?void 0:m.value)!=null?y:"",boxShadow:v?`-1px 0 0 0 ${v}`:void 0}}),h=k(()=>[c.b("button"),c.bm("button",a.value),c.is("disabled",i.value),c.is("checked",r.value),c.is("focus",s.value)]);return(p,g)=>(C(),j("label",{class:M(d(h))},[p.trueLabel||p.falseLabel?pt((C(),j("input",{key:0,"onUpdate:modelValue":g[0]||(g[0]=m=>an(o)?o.value=m:null),class:M(d(c).be("button","original")),type:"checkbox",name:p.name,tabindex:p.tabindex,disabled:d(i),"true-value":p.trueLabel,"false-value":p.falseLabel,onChange:g[1]||(g[1]=(...m)=>d(l)&&d(l)(...m)),onFocus:g[2]||(g[2]=m=>s.value=!0),onBlur:g[3]||(g[3]=m=>s.value=!1),onClick:g[4]||(g[4]=dt(()=>{},["stop"]))},null,42,qY)),[[_d,d(o)]]):pt((C(),j("input",{key:1,"onUpdate:modelValue":g[5]||(g[5]=m=>an(o)?o.value=m:null),class:M(d(c).be("button","original")),type:"checkbox",name:p.name,tabindex:p.tabindex,disabled:d(i),value:p.label,onChange:g[6]||(g[6]=(...m)=>d(l)&&d(l)(...m)),onFocus:g[7]||(g[7]=m=>s.value=!0),onBlur:g[8]||(g[8]=m=>s.value=!1),onClick:g[9]||(g[9]=dt(()=>{},["stop"]))},null,42,GY)),[[_d,d(o)]]),p.$slots.default||p.label?(C(),j("span",{key:2,class:M(d(c).be("button","inner")),style:rt(d(r)?d(f):void 0)},[we(p.$slots,"default",{},()=>[Fe(ve(p.label),1)])],6)):le("v-if",!0)],2))}});var JA=ze(XY,[["__file","checkbox-button.vue"]]);const QY=He({modelValue:{type:me(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:os,label:String,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0}}),JY={[$t]:e=>st(e),change:e=>st(e)},ZY=Z({name:"ElCheckboxGroup"}),eX=Z({...ZY,props:QY,emits:JY,setup(e,{emit:t}){const n=e,s=Le("checkbox"),{formItem:r}=Bs(),{inputId:i,isLabeledByFormItem:a}=ro(n,{formItemContext:r}),o=async u=>{t($t,u),await at(),t("change",u)},l=k({get(){return n.modelValue},set(u){o(u)}});return Lt(qu,{...Xi(es(n),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:l,changeEvent:o}),Oe(()=>n.modelValue,()=>{n.validateEvent&&(r==null||r.validate("change").catch(u=>void 0))}),(u,c)=>{var f;return C(),he(Nt(u.tag),{id:d(i),class:M(d(s).b("group")),role:"group","aria-label":d(a)?void 0:u.label||"checkbox-group","aria-labelledby":d(a)?(f=d(r))==null?void 0:f.labelId:void 0},{default:N(()=>[we(u.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var ZA=ze(eX,[["__file","checkbox-group.vue"]]);const $r=At(WY,{CheckboxButton:JA,CheckboxGroup:ZA}),tX=In(JA),eP=In(ZA),tP=He({size:os,disabled:Boolean,label:{type:[String,Number,Boolean],default:""}}),nX=He({...tP,modelValue:{type:[String,Number,Boolean],default:""},name:{type:String,default:""},border:Boolean}),nP={[$t]:e=>Tt(e)||ht(e)||Gn(e),[ln]:e=>Tt(e)||ht(e)||Gn(e)},sP=Symbol("radioGroupKey"),rP=(e,t)=>{const n=G(),s=Qe(sP,void 0),r=k(()=>!!s),i=k({get(){return r.value?s.modelValue:e.modelValue},set(c){r.value?s.changeEvent(c):t&&t($t,c),n.value.checked=e.modelValue===e.label}}),a=Xn(k(()=>s==null?void 0:s.size)),o=ir(k(()=>s==null?void 0:s.disabled)),l=G(!1),u=k(()=>o.value||r.value&&i.value!==e.label?-1:0);return{radioRef:n,isGroup:r,radioGroup:s,focus:l,size:a,disabled:o,tabIndex:u,modelValue:i}},sX=["value","name","disabled"],rX=Z({name:"ElRadio"}),iX=Z({...rX,props:nX,emits:nP,setup(e,{emit:t}){const n=e,s=Le("radio"),{radioRef:r,radioGroup:i,focus:a,size:o,disabled:l,modelValue:u}=rP(n,t);function c(){at(()=>t("change",u.value))}return(f,h)=>{var p;return C(),j("label",{class:M([d(s).b(),d(s).is("disabled",d(l)),d(s).is("focus",d(a)),d(s).is("bordered",f.border),d(s).is("checked",d(u)===f.label),d(s).m(d(o))])},[R("span",{class:M([d(s).e("input"),d(s).is("disabled",d(l)),d(s).is("checked",d(u)===f.label)])},[pt(R("input",{ref_key:"radioRef",ref:r,"onUpdate:modelValue":h[0]||(h[0]=g=>an(u)?u.value=g:null),class:M(d(s).e("original")),value:f.label,name:f.name||((p=d(i))==null?void 0:p.name),disabled:d(l),type:"radio",onFocus:h[1]||(h[1]=g=>a.value=!0),onBlur:h[2]||(h[2]=g=>a.value=!1),onChange:c,onClick:h[3]||(h[3]=dt(()=>{},["stop"]))},null,42,sX),[[r_,d(u)]]),R("span",{class:M(d(s).e("inner"))},null,2)],2),R("span",{class:M(d(s).e("label")),onKeydown:h[4]||(h[4]=dt(()=>{},["stop"]))},[we(f.$slots,"default",{},()=>[Fe(ve(f.label),1)])],34)],2)}}});var aX=ze(iX,[["__file","radio.vue"]]);const oX=He({...tP,name:{type:String,default:""}}),lX=["value","name","disabled"],uX=Z({name:"ElRadioButton"}),cX=Z({...uX,props:oX,setup(e){const t=e,n=Le("radio"),{radioRef:s,focus:r,size:i,disabled:a,modelValue:o,radioGroup:l}=rP(t),u=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(c,f)=>{var h;return C(),j("label",{class:M([d(n).b("button"),d(n).is("active",d(o)===c.label),d(n).is("disabled",d(a)),d(n).is("focus",d(r)),d(n).bm("button",d(i))])},[pt(R("input",{ref_key:"radioRef",ref:s,"onUpdate:modelValue":f[0]||(f[0]=p=>an(o)?o.value=p:null),class:M(d(n).be("button","original-radio")),value:c.label,type:"radio",name:c.name||((h=d(l))==null?void 0:h.name),disabled:d(a),onFocus:f[1]||(f[1]=p=>r.value=!0),onBlur:f[2]||(f[2]=p=>r.value=!1),onClick:f[3]||(f[3]=dt(()=>{},["stop"]))},null,42,lX),[[r_,d(o)]]),R("span",{class:M(d(n).be("button","inner")),style:rt(d(o)===c.label?d(u):{}),onKeydown:f[4]||(f[4]=dt(()=>{},["stop"]))},[we(c.$slots,"default",{},()=>[Fe(ve(c.label),1)])],38)],2)}}});var iP=ze(cX,[["__file","radio-button.vue"]]);const dX=He({id:{type:String,default:void 0},size:os,disabled:Boolean,modelValue:{type:[String,Number,Boolean],default:""},fill:{type:String,default:""},label:{type:String,default:void 0},textColor:{type:String,default:""},name:{type:String,default:void 0},validateEvent:{type:Boolean,default:!0}}),fX=nP,hX=["id","aria-label","aria-labelledby"],pX=Z({name:"ElRadioGroup"}),mX=Z({...pX,props:dX,emits:fX,setup(e,{emit:t}){const n=e,s=Le("radio"),r=tr(),i=G(),{formItem:a}=Bs(),{inputId:o,isLabeledByFormItem:l}=ro(n,{formItemContext:a}),u=f=>{t($t,f),at(()=>t("change",f))};vt(()=>{const f=i.value.querySelectorAll("[type=radio]"),h=f[0];!Array.from(f).some(p=>p.checked)&&h&&(h.tabIndex=0)});const c=k(()=>n.name||r.value);return Lt(sP,Ct({...es(n),changeEvent:u,name:c})),Oe(()=>n.modelValue,()=>{n.validateEvent&&(a==null||a.validate("change").catch(f=>void 0))}),(f,h)=>(C(),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.label||"radio-group","aria-labelledby":d(l)?d(a).labelId:void 0},[we(f.$slots,"default")],10,hX))}});var aP=ze(mX,[["__file","radio-group.vue"]]);const dg=At(aX,{RadioButton:iP,RadioGroup:aP}),r1=In(aP),gX=In(iP);var vX=Z({name:"NodeContent",setup(){return{ns:Le("cascader-node")}},render(){const{ns:e}=this,{node:t,panel:n}=this.$parent,{data:s,label:r}=t,{renderLabelFn:i}=n;return lt("span",{class:e.e("label")},i?i({node:t,data:s}):r)}});const i1=Symbol(),yX=Z({name:"ElCascaderNode",components:{ElCheckbox:$r,ElRadio:dg,NodeContent:vX,ElIcon:tt,Check:pf,Loading:no,ArrowRight:Ns},props:{node:{type:Object,required:!0},menuId:String},emits:["expand"],setup(e,{emit:t}){const n=Qe(i1),s=Le("cascader-node"),r=k(()=>n.isHoverMenu),i=k(()=>n.config.multiple),a=k(()=>n.config.checkStrictly),o=k(()=>{var E;return(E=n.checkedNodes[0])==null?void 0:E.uid}),l=k(()=>e.node.isDisabled),u=k(()=>e.node.isLeaf),c=k(()=>a.value&&!u.value||!l.value),f=k(()=>p(n.expandingNode)),h=k(()=>a.value&&n.checkedNodes.some(p)),p=E=>{var $;const{level:P,uid:U}=e.node;return(($=E==null?void 0:E.pathNodes[P-1])==null?void 0:$.uid)===U},g=()=>{f.value||n.expandNode(e.node)},m=E=>{const{node:$}=e;E!==$.checked&&n.handleCheckChange($,E)},y=()=>{n.lazyLoad(e.node,()=>{u.value||g()})},v=E=>{r.value&&(_(),!u.value&&t("expand",E))},_=()=>{const{node:E}=e;!c.value||E.loading||(E.loaded?g():y())},w=()=>{r.value&&!u.value||(u.value&&!l.value&&!a.value&&!i.value?S(!0):_())},T=E=>{a.value?(m(E),e.node.loaded&&g()):S(E)},S=E=>{e.node.loaded?(m(E),!a.value&&g()):y()};return{panel:n,isHoverMenu:r,multiple:i,checkStrictly:a,checkedNodeId:o,isDisabled:l,isLeaf:u,expandable:c,inExpandingPath:f,inCheckedPath:h,ns:s,handleHoverExpand:v,handleExpand:_,handleClick:w,handleCheck:S,handleSelectCheck:T}}}),bX=["id","aria-haspopup","aria-owns","aria-expanded","tabindex"],_X=R("span",null,null,-1);function TX(e,t,n,s,r,i){const a=Et("el-checkbox"),o=Et("el-radio"),l=Et("check"),u=Et("el-icon"),c=Et("node-content"),f=Et("loading"),h=Et("arrow-right");return C(),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:t[2]||(t[2]=(...p)=>e.handleHoverExpand&&e.handleHoverExpand(...p)),onFocus:t[3]||(t[3]=(...p)=>e.handleHoverExpand&&e.handleHoverExpand(...p)),onClick:t[4]||(t[4]=(...p)=>e.handleClick&&e.handleClick(...p))},[le(" prefix "),e.multiple?(C(),he(a,{key:0,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:e.isDisabled,onClick:t[0]||(t[0]=dt(()=>{},["stop"])),"onUpdate:modelValue":e.handleSelectCheck},null,8,["model-value","indeterminate","disabled","onUpdate:modelValue"])):e.checkStrictly?(C(),he(o,{key:1,"model-value":e.checkedNodeId,label:e.node.uid,disabled:e.isDisabled,"onUpdate:modelValue":e.handleSelectCheck,onClick:t[1]||(t[1]=dt(()=>{},["stop"]))},{default:N(()=>[le(`
|
||
Add an empty element to avoid render label,
|
||
do not use empty fragment here for https://github.com/vuejs/vue-next/pull/2485
|
||
`),_X]),_:1},8,["model-value","label","disabled","onUpdate:modelValue"])):e.isLeaf&&e.node.checked?(C(),he(u,{key:2,class:M(e.ns.e("prefix"))},{default:N(()=>[I(l)]),_:1},8,["class"])):le("v-if",!0),le(" content "),I(c),le(" postfix "),e.isLeaf?le("v-if",!0):(C(),j(Ke,{key:3},[e.node.loading?(C(),he(u,{key:0,class:M([e.ns.is("loading"),e.ns.e("postfix")])},{default:N(()=>[I(f)]),_:1},8,["class"])):(C(),he(u,{key:1,class:M(["arrow-right",e.ns.e("postfix")])},{default:N(()=>[I(h)]),_:1},8,["class"]))],64))],42,bX)}var wX=ze(yX,[["render",TX],["__file","node.vue"]]);const SX=Z({name:"ElCascaderMenu",components:{Loading:no,ElIcon:tt,ElScrollbar:va,ElCascaderNode:wX},props:{nodes:{type:Array,required:!0},index:{type:Number,required:!0}},setup(e){const t=It(),n=Le("cascader-menu"),{t:s}=Wt(),r=ng();let i=null,a=null;const o=Qe(i1),l=G(null),u=k(()=>!e.nodes.length),c=k(()=>!o.initialLoaded),f=k(()=>`cascader-menu-${r}-${e.index}`),h=y=>{i=y.target},p=y=>{if(!(!o.isHoverMenu||!i||!l.value))if(i.contains(y.target)){g();const v=t.vnode.el,{left:_}=v.getBoundingClientRect(),{offsetWidth:w,offsetHeight:T}=v,S=y.clientX-_,E=i.offsetTop,$=E+i.offsetHeight;l.value.innerHTML=`
|
||
<path style="pointer-events: auto;" fill="transparent" d="M${S} ${E} L${w} 0 V${E} Z" />
|
||
<path style="pointer-events: auto;" fill="transparent" d="M${S} ${$} L${w} ${T} V${$} Z" />
|
||
`}else a||(a=window.setTimeout(m,o.config.hoverThreshold))},g=()=>{a&&(clearTimeout(a),a=null)},m=()=>{l.value&&(l.value.innerHTML="",g())};return{ns:n,panel:o,hoverZone:l,isEmpty:u,isLoading:c,menuId:f,t:s,handleExpand:h,handleMouseMove:p,clearHoverZone:m}}});function CX(e,t,n,s,r,i){const a=Et("el-cascader-node"),o=Et("loading"),l=Et("el-icon"),u=Et("el-scrollbar");return C(),he(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:N(()=>{var c;return[(C(!0),j(Ke,null,bt(e.nodes,f=>(C(),he(a,{key:f.uid,node:f,"menu-id":e.menuId,onExpand:e.handleExpand},null,8,["node","menu-id","onExpand"]))),128)),e.isLoading?(C(),j("div",{key:0,class:M(e.ns.e("empty-text"))},[I(l,{size:"14",class:M(e.ns.is("loading"))},{default:N(()=>[I(o)]),_:1},8,["class"]),Fe(" "+ve(e.t("el.cascader.loading")),1)],2)):e.isEmpty?(C(),j("div",{key:1,class:M(e.ns.e("empty-text"))},ve(e.t("el.cascader.noData")),3)):(c=e.panel)!=null&&c.isHoverMenu?(C(),j("svg",{key:2,ref:"hoverZone",class:M(e.ns.e("hover-zone"))},null,2)):le("v-if",!0)]}),_:1},8,["class","wrap-class","view-class","onMousemove","onMouseleave"])}var EX=ze(SX,[["render",CX],["__file","menu.vue"]]);let xX=0;const kX=e=>{const t=[e];let{parent:n}=e;for(;n;)t.unshift(n),n=n.parent;return t};let my=class gy{constructor(t,n,s,r=!1){this.data=t,this.config=n,this.parent=s,this.root=r,this.uid=xX++,this.checked=!1,this.indeterminate=!1,this.loading=!1;const{value:i,label:a,children:o}=n,l=t[o],u=kX(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 gy(c,n,this)),this.loaded=!n.lazy||this.isLeaf||!wr(l)}get isDisabled(){const{data:t,parent:n,config:s}=this,{disabled:r,checkStrictly:i}=s;return(yt(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=yt(a)?a(t,this):t[a];return qn(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 gy(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${hi(t)}`;this.children.forEach(r=>{r&&(r.broadcast(t,...n),r[s]&&r[s](...n))})}emit(t,...n){const{parent:s}=this,r=`onChild${hi(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 vy=(e,t)=>e.reduce((n,s)=>(s.isLeaf?n.push(s):(!t&&n.push(s),n=n.concat(vy(s.children,t))),n),[]);class CE{constructor(t,n){this.config=n;const s=(t||[]).map(r=>new my(r,this.config));this.nodes=s,this.allNodes=vy(s,!1),this.leafNodes=vy(s,!0)}getNodes(){return this.nodes}getFlattedNodes(t){return t?this.leafNodes:this.allNodes}appendNode(t,n){const s=n?n.appendChild(t):new my(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=>Ys(r.value,t)||Ys(r.pathValues,t))||null}getSameNode(t){return t&&this.getFlattedNodes(!1).find(({value:s,level:r})=>Ys(t.value,s)&&t.level===r)||null}}const oP=He({modelValue:{type:me([Number,String,Array])},options:{type:me(Array),default:()=>[]},props:{type:me(Object),default:()=>({})}}),IX={expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,lazyLoad:en,value:"value",label:"label",children:"children",leaf:"leaf",disabled:"disabled",hoverThreshold:500},OX=e=>k(()=>({...IX,...e.props})),EE=e=>{if(!e)return 0;const t=e.id.split("-");return Number(t[t.length-2])},AX=e=>{if(!e)return;const t=e.querySelector("input");t?t.click():bI(e)&&e.click()},PX=(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},$X=Z({name:"ElCascaderPanel",components:{ElCascaderMenu:EX},props:{...oP,border:{type:Boolean,default:!0},renderLabel:Function},emits:[$t,ln,"close","expand-change"],setup(e,{emit:t,slots:n}){let s=!1;const r=Le("cascader"),i=OX(e);let a=null;const o=G(!0),l=G([]),u=G(null),c=G([]),f=G(null),h=G([]),p=k(()=>i.value.expandTrigger==="hover"),g=k(()=>e.renderLabel||n.default),m=()=>{const{options:W}=e,D=i.value;s=!1,a=new CE(W,D),c.value=[a.getNodes()],D.lazy&&wr(e.options)?(o.value=!1,y(void 0,V=>{V&&(a=new CE(V,D),c.value=[a.getNodes()]),o.value=!0,P(!1,!0)})):P(!1,!0)},y=(W,D)=>{const V=i.value;W=W||new my({},V,void 0,!0),W.loading=!0;const X=Y=>{const B=W,K=B.root?null:B;Y&&(a==null||a.appendNodes(Y,K)),B.loading=!1,B.loaded=!0,B.childrenData=B.childrenData||[],D&&D(Y)};V.lazyLoad(W,X)},v=(W,D)=>{var V;const{level:X}=W,Y=c.value.slice(0,X);let B;W.isLeaf?B=W.pathNodes[X-2]:(B=W,Y.push(W.children)),((V=f.value)==null?void 0:V.uid)!==(B==null?void 0:B.uid)&&(f.value=W,c.value=Y,!D&&t("expand-change",(W==null?void 0:W.pathValues)||[]))},_=(W,D,V=!0)=>{const{checkStrictly:X,multiple:Y}=i.value,B=h.value[0];s=!0,!Y&&(B==null||B.doCheck(!1)),W.doCheck(D),$(),V&&!Y&&!X&&t("close"),!V&&!Y&&!X&&w(W)},w=W=>{W&&(W=W.parent,w(W),W&&v(W))},T=W=>a==null?void 0:a.getFlattedNodes(W),S=W=>{var D;return(D=T(W))==null?void 0:D.filter(V=>V.checked!==!1)},E=()=>{h.value.forEach(W=>W.doCheck(!1)),$(),c.value=c.value.slice(0,1),f.value=null,t("expand-change",[])},$=()=>{var W;const{checkStrictly:D,multiple:V}=i.value,X=h.value,Y=S(!D),B=PX(X,Y),K=B.map(L=>L.valueByOption);h.value=B,u.value=V?K:(W=K[0])!=null?W:null},P=(W=!1,D=!1)=>{const{modelValue:V}=e,{lazy:X,multiple:Y,checkStrictly:B}=i.value,K=!B;if(!(!o.value||s||!D&&Ys(V,u.value)))if(X&&!W){const Q=SC(HH(Qi(V))).map(ee=>a==null?void 0:a.getNodeByValue(ee)).filter(ee=>!!ee&&!ee.loaded&&!ee.loading);Q.length?Q.forEach(ee=>{y(ee,()=>P(!1,D))}):P(!0,D)}else{const L=Y?Qi(V):[V],Q=SC(L.map(ee=>a==null?void 0:a.getNodeByValue(ee,K)));U(Q,D),u.value=Bp(V)}},U=(W,D=!0)=>{const{checkStrictly:V}=i.value,X=h.value,Y=W.filter(L=>!!L&&(V||L.isLeaf)),B=a==null?void 0:a.getSameNode(f.value),K=D&&B||Y[0];K?K.pathNodes.forEach(L=>v(L,!0)):f.value=null,X.forEach(L=>L.doCheck(!1)),e.props.multiple?Ct(Y).forEach(L=>L.doCheck(!0)):Y.forEach(L=>L.doCheck(!0)),h.value=Y,at(H)},H=()=>{Kt&&l.value.forEach(W=>{const D=W==null?void 0:W.$el;if(D){const V=D.querySelector(`.${r.namespace.value}-scrollbar__wrap`),X=D.querySelector(`.${r.b("node")}.${r.is("active")}`)||D.querySelector(`.${r.b("node")}.in-active-path`);hO(V,X)}})},z=W=>{const D=W.target,{code:V}=W;switch(V){case ot.up:case ot.down:{W.preventDefault();const X=V===ot.up?-1:1;Qh(_I(D,X,`.${r.b("node")}[tabindex="-1"]`));break}case ot.left:{W.preventDefault();const X=l.value[EE(D)-1],Y=X==null?void 0:X.$el.querySelector(`.${r.b("node")}[aria-expanded="true"]`);Qh(Y);break}case ot.right:{W.preventDefault();const X=l.value[EE(D)+1],Y=X==null?void 0:X.$el.querySelector(`.${r.b("node")}[tabindex="-1"]`);Qh(Y);break}case ot.enter:AX(D);break}};return Lt(i1,Ct({config:i,expandingNode:f,checkedNodes:h,isHoverMenu:p,initialLoaded:o,renderLabelFn:g,lazyLoad:y,expandNode:v,handleCheckChange:_})),Oe([i,()=>e.options],m,{deep:!0,immediate:!0}),Oe(()=>e.modelValue,()=>{s=!1,P()},{deep:!0}),Oe(()=>u.value,W=>{Ys(W,e.modelValue)||(t($t,W),t(ln,W))}),Wk(()=>l.value=[]),vt(()=>!wr(e.modelValue)&&P()),{ns:r,menuList:l,menus:c,checkedNodes:h,handleKeyDown:z,handleCheckChange:_,getFlattedNodes:T,getCheckedNodes:S,clearCheckedNodes:E,calculateCheckedValue:$,scrollToExpandingNode:H}}});function NX(e,t,n,s,r,i){const a=Et("el-cascader-menu");return C(),j("div",{class:M([e.ns.b("panel"),e.ns.is("bordered",e.border)]),onKeydown:t[0]||(t[0]=(...o)=>e.handleKeyDown&&e.handleKeyDown(...o))},[(C(!0),j(Ke,null,bt(e.menus,(o,l)=>(C(),he(a,{key:l,ref_for:!0,ref:u=>e.menuList[l]=u,index:l,nodes:[...o]},null,8,["index","nodes"]))),128))],34)}var ip=ze($X,[["render",NX],["__file","index.vue"]]);ip.install=e=>{e.component(ip.name,ip)};const lP=ip,MX=lP,a1=He({type:{type:String,values:["success","info","warning","danger",""],default:""},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:{type:String,default:""},size:{type:String,values:Li,default:""},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),RX={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},LX=Z({name:"ElTag"}),DX=Z({...LX,props:a1,emits:RX,setup(e,{emit:t}){const n=e,s=Xn(),r=Le("tag"),i=k(()=>{const{type:l,hit:u,effect:c,closable:f,round:h}=n;return[r.b(),r.is("closable",f),r.m(l),r.m(s.value),r.m(c),r.is("hit",u),r.is("round",h)]}),a=l=>{t("close",l)},o=l=>{t("click",l)};return(l,u)=>l.disableTransitions?(C(),j("span",{key:0,class:M(d(i)),style:rt({backgroundColor:l.color}),onClick:o},[R("span",{class:M(d(r).e("content"))},[we(l.$slots,"default")],2),l.closable?(C(),he(d(tt),{key:0,class:M(d(r).e("close")),onClick:dt(a,["stop"])},{default:N(()=>[I(d(Jr))]),_:1},8,["class","onClick"])):le("v-if",!0)],6)):(C(),he(Rn,{key:1,name:`${d(r).namespace.value}-zoom-in-center`,appear:""},{default:N(()=>[R("span",{class:M(d(i)),style:rt({backgroundColor:l.color}),onClick:o},[R("span",{class:M(d(r).e("content"))},[we(l.$slots,"default")],2),l.closable?(C(),he(d(tt),{key:0,class:M(d(r).e("close")),onClick:dt(a,["stop"])},{default:N(()=>[I(d(Jr))]),_:1},8,["class","onClick"])):le("v-if",!0)],6)]),_:3},8,["name"]))}});var FX=ze(DX,[["__file","tag.vue"]]);const aa=At(FX),BX=He({...oP,size:os,placeholder:String,disabled:Boolean,clearable:Boolean,filterable:Boolean,filterMethod:{type:me(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:me(Function),default:()=>!0},popperClass:{type:String,default:""},teleported:ss.teleported,tagType:{...a1.type,default:"info"},validateEvent:{type:Boolean,default:!0}}),VX={[$t]:e=>!!e||e===null,[ln]:e=>!!e||e===null,focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,visibleChange:e=>Gn(e),expandChange:e=>!!e,removeTag:e=>!!e},UX={key:0},HX=["placeholder","onKeydown"],zX=["onClick"],jX="ElCascader",KX=Z({name:jX}),WX=Z({...KX,props:BX,emits:VX,setup(e,{expose:t,emit:n}){const s=e,r={modifiers:[{name:"arrowPosition",enabled:!0,phase:"main",fn:({state:pe})=>{const{modifiersData:ge,placement:Ne}=pe;["right","left","bottom","top"].includes(Ne)||(ge.arrow.x=35)},requires:["arrow"]}]},i=rl();let a=0,o=0;const l=Le("cascader"),u=Le("input"),{t:c}=Wt(),{form:f,formItem:h}=Bs(),p=G(null),g=G(null),m=G(null),y=G(null),v=G(null),_=G(!1),w=G(!1),T=G(!1),S=G(!1),E=G(""),$=G(""),P=G([]),U=G([]),H=G([]),z=G(!1),W=k(()=>i.style),D=k(()=>s.disabled||(f==null?void 0:f.disabled)),V=k(()=>s.placeholder||c("el.cascader.placeholder")),X=k(()=>$.value||P.value.length>0||z.value?"":V.value),Y=Xn(),B=k(()=>["small"].includes(Y.value)?"small":"default"),K=k(()=>!!s.props.multiple),L=k(()=>!s.filterable||K.value),Q=k(()=>K.value?$.value:E.value),ee=k(()=>{var pe;return((pe=y.value)==null?void 0:pe.checkedNodes)||[]}),te=k(()=>!s.clearable||D.value||T.value||!w.value?!1:!!ee.value.length),ie=k(()=>{const{showAllLevels:pe,separator:ge}=s,Ne=ee.value;return Ne.length?K.value?"":Ne[0].calcText(pe,ge):""}),_e=k({get(){return Bp(s.modelValue)},set(pe){n($t,pe),n(ln,pe),s.validateEvent&&(h==null||h.validate("change").catch(ge=>void 0))}}),ue=k(()=>[l.b(),l.m(Y.value),l.is("disabled",D.value),i.class]),oe=k(()=>[u.e("icon"),"icon-arrow-down",l.is("reverse",_.value)]),de=k(()=>l.is("focus",_.value||S.value)),ae=k(()=>{var pe,ge;return(ge=(pe=p.value)==null?void 0:pe.popperRef)==null?void 0:ge.contentRef}),Ie=pe=>{var ge,Ne,ne;D.value||(pe=pe??!_.value,pe!==_.value&&(_.value=pe,(Ne=(ge=g.value)==null?void 0:ge.input)==null||Ne.setAttribute("aria-expanded",`${pe}`),pe?(ke(),at((ne=y.value)==null?void 0:ne.scrollToExpandingNode)):s.filterable&&Je(),n("visibleChange",pe)))},ke=()=>{at(()=>{var pe;(pe=p.value)==null||pe.updatePopper()})},Ee=()=>{T.value=!1},J=pe=>{const{showAllLevels:ge,separator:Ne}=s;return{node:pe,key:pe.uid,text:pe.calcText(ge,Ne),hitState:!1,closable:!D.value&&!pe.isDisabled,isCollapseTag:!1}},re=pe=>{var ge;const Ne=pe.node;Ne.doCheck(!1),(ge=y.value)==null||ge.calculateCheckedValue(),n("removeTag",Ne.valueByOption)},Se=()=>{if(!K.value)return;const pe=ee.value,ge=[],Ne=[];if(pe.forEach(ne=>Ne.push(J(ne))),U.value=Ne,pe.length){pe.slice(0,s.maxCollapseTags).forEach(_t=>ge.push(J(_t)));const ne=pe.slice(s.maxCollapseTags),Ye=ne.length;Ye&&(s.collapseTags?ge.push({key:-1,text:`+ ${Ye}`,closable:!1,isCollapseTag:!0}):ne.forEach(_t=>ge.push(J(_t))))}P.value=ge},Ae=()=>{var pe,ge;const{filterMethod:Ne,showAllLevels:ne,separator:Ye}=s,_t=(ge=(pe=y.value)==null?void 0:pe.getFlattedNodes(!s.props.checkStrictly))==null?void 0:ge.filter(Ft=>Ft.isDisabled?!1:(Ft.calcText(ne,Ye),Ne(Ft,Q.value)));K.value&&(P.value.forEach(Ft=>{Ft.hitState=!1}),U.value.forEach(Ft=>{Ft.hitState=!1})),T.value=!0,H.value=_t,ke()},Be=()=>{var pe;let ge;T.value&&v.value?ge=v.value.$el.querySelector(`.${l.e("suggestion-item")}`):ge=(pe=y.value)==null?void 0:pe.$el.querySelector(`.${l.b("node")}[tabindex="-1"]`),ge&&(ge.focus(),!T.value&&ge.click())},Pe=()=>{var pe,ge;const Ne=(pe=g.value)==null?void 0:pe.input,ne=m.value,Ye=(ge=v.value)==null?void 0:ge.$el;if(!(!Kt||!Ne)){if(Ye){const _t=Ye.querySelector(`.${l.e("suggestion-list")}`);_t.style.minWidth=`${Ne.offsetWidth}px`}if(ne){const{offsetHeight:_t}=ne,Ft=P.value.length>0?`${Math.max(_t+6,a)}px`:`${a}px`;Ne.style.height=Ft,ke()}}},Ve=pe=>{var ge;return(ge=y.value)==null?void 0:ge.getCheckedNodes(pe)},$e=pe=>{ke(),n("expandChange",pe)},Te=pe=>{var ge;const Ne=(ge=pe.target)==null?void 0:ge.value;if(pe.type==="compositionend")z.value=!1,at(()=>ut(Ne));else{const ne=Ne[Ne.length-1]||"";z.value=!eg(ne)}},De=pe=>{if(!z.value)switch(pe.code){case ot.enter:Ie();break;case ot.down:Ie(!0),at(Be),pe.preventDefault();break;case ot.esc:_.value===!0&&(pe.preventDefault(),pe.stopPropagation(),Ie(!1));break;case ot.tab:Ie(!1);break}},qe=()=>{var pe;(pe=y.value)==null||pe.clearCheckedNodes(),!_.value&&s.filterable&&Je(),Ie(!1)},Je=()=>{const{value:pe}=ie;E.value=pe,$.value=pe},et=pe=>{var ge,Ne;const{checked:ne}=pe;K.value?(ge=y.value)==null||ge.handleCheckChange(pe,!ne,!1):(!ne&&((Ne=y.value)==null||Ne.handleCheckChange(pe,!0,!1)),Ie(!1))},Re=pe=>{const ge=pe.target,{code:Ne}=pe;switch(Ne){case ot.up:case ot.down:{const ne=Ne===ot.up?-1:1;Qh(_I(ge,ne,`.${l.e("suggestion-item")}[tabindex="-1"]`));break}case ot.enter:ge.click();break}},Xe=()=>{const pe=P.value,ge=pe[pe.length-1];o=$.value?0:o+1,!(!ge||!o||s.collapseTags&&pe.length>1)&&(ge.hitState?re(ge):ge.hitState=!0)},ct=pe=>{const ge=pe.target,Ne=l.e("search-input");ge.className===Ne&&(S.value=!0),n("focus",pe)},wt=pe=>{S.value=!1,n("blur",pe)},Pt=Fs(()=>{const{value:pe}=Q;if(!pe)return;const ge=s.beforeFilter(pe);cd(ge)?ge.then(Ae).catch(()=>{}):ge!==!1?Ae():Ee()},s.debounce),ut=(pe,ge)=>{!_.value&&Ie(!0),!(ge!=null&&ge.isComposing)&&(pe?Pt():Ee())},Ce=pe=>Number.parseFloat(AF(u.cssVarName("input-height"),pe).value)-2;return Oe(T,ke),Oe([ee,D],Se),Oe(P,()=>{at(()=>Pe())}),Oe(Y,async()=>{await at();const pe=g.value.input;a=Ce(pe)||a,Pe()}),Oe(ie,Je,{immediate:!0}),vt(()=>{const pe=g.value.input,ge=Ce(pe);a=pe.offsetHeight||ge,_s(pe,Pe)}),t({getCheckedNodes:Ve,cascaderPanelRef:y,togglePopperVisible:Ie,contentRef:ae}),(pe,ge)=>(C(),he(d(ms),{ref_key:"tooltipRef",ref:p,visible:_.value,teleported:pe.teleported,"popper-class":[d(l).e("dropdown"),pe.popperClass],"popper-options":r,"fallback-placements":["bottom-start","bottom","top-start","top","right","left"],"stop-popper-mouse-event":!1,"gpu-acceleration":!1,placement:"bottom-start",transition:`${d(l).namespace.value}-zoom-in-top`,effect:"light",pure:"",persistent:"",onHide:Ee},{default:N(()=>[pt((C(),j("div",{class:M(d(ue)),style:rt(d(W)),onClick:ge[5]||(ge[5]=()=>Ie(d(L)?void 0:!0)),onKeydown:De,onMouseenter:ge[6]||(ge[6]=Ne=>w.value=!0),onMouseleave:ge[7]||(ge[7]=Ne=>w.value=!1)},[I(d(Fn),{ref_key:"input",ref:g,modelValue:E.value,"onUpdate:modelValue":ge[1]||(ge[1]=Ne=>E.value=Ne),placeholder:d(X),readonly:d(L),disabled:d(D),"validate-event":!1,size:d(Y),class:M(d(de)),tabindex:d(K)&&pe.filterable&&!d(D)?-1:void 0,onCompositionstart:Te,onCompositionupdate:Te,onCompositionend:Te,onFocus:ct,onBlur:wt,onInput:ut},{suffix:N(()=>[d(te)?(C(),he(d(tt),{key:"clear",class:M([d(u).e("icon"),"icon-circle-close"]),onClick:dt(qe,["stop"])},{default:N(()=>[I(d(to))]),_:1},8,["class","onClick"])):(C(),he(d(tt),{key:"arrow-down",class:M(d(oe)),onClick:ge[0]||(ge[0]=dt(Ne=>Ie(),["stop"]))},{default:N(()=>[I(d(ga))]),_:1},8,["class"]))]),_:1},8,["modelValue","placeholder","readonly","disabled","size","class","tabindex"]),d(K)?(C(),j("div",{key:0,ref_key:"tagWrapper",ref:m,class:M(d(l).e("tags"))},[(C(!0),j(Ke,null,bt(P.value,Ne=>(C(),he(d(aa),{key:Ne.key,type:pe.tagType,size:d(B),hit:Ne.hitState,closable:Ne.closable,"disable-transitions":"",onClose:ne=>re(Ne)},{default:N(()=>[Ne.isCollapseTag===!1?(C(),j("span",UX,ve(Ne.text),1)):(C(),he(d(ms),{key:1,disabled:_.value||!pe.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],placement:"bottom",effect:"light"},{default:N(()=>[R("span",null,ve(Ne.text),1)]),content:N(()=>[R("div",{class:M(d(l).e("collapse-tags"))},[(C(!0),j(Ke,null,bt(U.value.slice(pe.maxCollapseTags),(ne,Ye)=>(C(),j("div",{key:Ye,class:M(d(l).e("collapse-tag"))},[(C(),he(d(aa),{key:ne.key,class:"in-tooltip",type:pe.tagType,size:d(B),hit:ne.hitState,closable:ne.closable,"disable-transitions":"",onClose:_t=>re(ne)},{default:N(()=>[R("span",null,ve(ne.text),1)]),_:2},1032,["type","size","hit","closable","onClose"]))],2))),128))],2)]),_:2},1032,["disabled"]))]),_:2},1032,["type","size","hit","closable","onClose"]))),128)),pe.filterable&&!d(D)?pt((C(),j("input",{key:0,"onUpdate:modelValue":ge[2]||(ge[2]=Ne=>$.value=Ne),type:"text",class:M(d(l).e("search-input")),placeholder:d(ie)?"":d(V),onInput:ge[3]||(ge[3]=Ne=>ut($.value,Ne)),onClick:ge[4]||(ge[4]=dt(Ne=>Ie(!0),["stop"])),onKeydown:jt(Xe,["delete"]),onCompositionstart:Te,onCompositionupdate:Te,onCompositionend:Te,onFocus:ct,onBlur:wt},null,42,HX)),[[sa,$.value]]):le("v-if",!0)],2)):le("v-if",!0)],38)),[[d(ia),()=>Ie(!1),d(ae)]])]),content:N(()=>[pt(I(d(lP),{ref_key:"cascaderPanelRef",ref:y,modelValue:d(_e),"onUpdate:modelValue":ge[8]||(ge[8]=Ne=>an(_e)?_e.value=Ne:null),options:pe.options,props:s.props,border:!1,"render-label":pe.$slots.default,onExpandChange:$e,onClose:ge[9]||(ge[9]=Ne=>pe.$nextTick(()=>Ie(!1)))},null,8,["modelValue","options","props","render-label"]),[[Vt,!T.value]]),pe.filterable?pt((C(),he(d(va),{key:0,ref_key:"suggestionPanel",ref:v,tag:"ul",class:M(d(l).e("suggestion-panel")),"view-class":d(l).e("suggestion-list"),onKeydown:Re},{default:N(()=>[H.value.length?(C(!0),j(Ke,{key:0},bt(H.value,Ne=>(C(),j("li",{key:Ne.uid,class:M([d(l).e("suggestion-item"),d(l).is("checked",Ne.checked)]),tabindex:-1,onClick:ne=>et(Ne)},[R("span",null,ve(Ne.text),1),Ne.checked?(C(),he(d(tt),{key:0},{default:N(()=>[I(d(pf))]),_:1})):le("v-if",!0)],10,zX))),128)):we(pe.$slots,"empty",{key:1},()=>[R("li",{class:M(d(l).e("empty-text"))},ve(d(c)("el.cascader.noMatch")),3)])]),_:3},8,["class","view-class"])),[[Vt,T.value]]):le("v-if",!0)]),_:3},8,["visible","teleported","popper-class","transition"]))}});var ap=ze(WX,[["__file","cascader.vue"]]);ap.install=e=>{e.component(ap.name,ap)};const qX=ap,GX=qX,YX=He({checked:{type:Boolean,default:!1}}),XX={"update:checked":e=>Gn(e),[ln]:e=>Gn(e)},QX=Z({name:"ElCheckTag"}),JX=Z({...QX,props:YX,emits:XX,setup(e,{emit:t}){const n=e,s=Le("check-tag"),r=k(()=>[s.b(),s.is("checked",n.checked)]),i=()=>{const a=!n.checked;t(ln,a),t("update:checked",a)};return(a,o)=>(C(),j("span",{class:M(d(r)),onClick:i},[we(a.$slots,"default")],2))}});var ZX=ze(JX,[["__file","check-tag.vue"]]);const eQ=At(ZX),uP=Symbol("rowContextKey"),tQ=["start","center","end","space-around","space-between","space-evenly"],nQ=["top","middle","bottom"],sQ=He({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:tQ,default:"start"},align:{type:String,values:nQ}}),rQ=Z({name:"ElRow"}),iQ=Z({...rQ,props:sQ,setup(e){const t=e,n=Le("row"),s=k(()=>t.gutter);Lt(uP,{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)=>(C(),he(Nt(a.tag),{class:M(d(i)),style:rt(d(r))},{default:N(()=>[we(a.$slots,"default")]),_:3},8,["class","style"]))}});var aQ=ze(iQ,[["__file","row.vue"]]);const cP=At(aQ),oQ=He({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:me([Number,Object]),default:()=>vn({})},sm:{type:me([Number,Object]),default:()=>vn({})},md:{type:me([Number,Object]),default:()=>vn({})},lg:{type:me([Number,Object]),default:()=>vn({})},xl:{type:me([Number,Object]),default:()=>vn({})}}),lQ=Z({name:"ElCol"}),uQ=Z({...lQ,props:oQ,setup(e){const t=e,{gutter:n}=Qe(uP,{gutter:k(()=>0)}),s=Le("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];ht(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=>{ht(t[u])?a.push(s.b(`${u}-${t[u]}`)):Mt(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)=>(C(),he(Nt(a.tag),{class:M(d(i)),style:rt(d(r))},{default:N(()=>[we(a.$slots,"default")]),_:3},8,["class","style"]))}});var cQ=ze(uQ,[["__file","col.vue"]]);const dP=At(cQ),xE=e=>typeof ht(e),dQ=He({accordion:Boolean,modelValue:{type:me([Array,String,Number]),default:()=>vn([])}}),fQ={[$t]:xE,[ln]:xE},fP=Symbol("collapseContextKey"),hQ=(e,t)=>{const n=G(Jo(e.modelValue)),s=i=>{n.value=i;const a=e.accordion?n.value[0]:n.value;t($t,a),t(ln,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 Oe(()=>e.modelValue,()=>n.value=Jo(e.modelValue),{deep:!0}),Lt(fP,{activeNames:n,handleItemClick:r}),{activeNames:n,setActiveNames:s}},pQ=()=>{const e=Le("collapse");return{rootKls:k(()=>e.b())}},mQ=Z({name:"ElCollapse"}),gQ=Z({...mQ,props:dQ,emits:fQ,setup(e,{expose:t,emit:n}){const s=e,{activeNames:r,setActiveNames:i}=hQ(s,n),{rootKls:a}=pQ();return t({activeNames:r,setActiveNames:i}),(o,l)=>(C(),j("div",{class:M(d(a))},[we(o.$slots,"default")],2))}});var vQ=ze(gQ,[["__file","collapse.vue"]]);const yQ=Z({name:"ElCollapseTransition"}),bQ=Z({...yQ,setup(e){const t=Le("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)=>(C(),he(Rn,Rt({name:d(t).b()},Q3(s)),{default:N(()=>[we(r.$slots,"default")]),_:3},16,["name"]))}});var op=ze(bQ,[["__file","collapse-transition.vue"]]);op.install=e=>{e.component(op.name,op)};const fg=op,hP=fg,_Q=He({title:{type:String,default:""},name:{type:me([String,Number]),default:()=>ng()},disabled:Boolean}),TQ=e=>{const t=Qe(fP),n=G(!1),s=G(!1),r=G(ng()),i=k(()=>t==null?void 0:t.activeNames.value.includes(e.name));return{focusing:n,id:r,isActive:i,handleFocus:()=>{setTimeout(()=>{s.value?s.value=!1:n.value=!0},50)},handleHeaderClick:()=>{e.disabled||(t==null||t.handleItemClick(e.name),n.value=!1,s.value=!0)},handleEnterClick:()=>{t==null||t.handleItemClick(e.name)}}},wQ=(e,{focusing:t,isActive:n,id:s})=>{const r=Le("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}},SQ=["id","aria-expanded","aria-controls","aria-describedby","tabindex"],CQ=["id","aria-hidden","aria-labelledby"],EQ=Z({name:"ElCollapseItem"}),xQ=Z({...EQ,props:_Q,setup(e,{expose:t}){const n=e,{focusing:s,id:r,isActive:i,handleFocus:a,handleHeaderClick:o,handleEnterClick:l}=TQ(n),{arrowKls:u,headKls:c,rootKls:f,itemWrapperKls:h,itemContentKls:p,scopedContentId:g,scopedHeadId:m}=wQ(n,{focusing:s,isActive:i,id:r});return t({isActive:i}),(y,v)=>(C(),j("div",{class:M(d(f))},[R("button",{id:d(m),class:M(d(c)),"aria-expanded":d(i),"aria-controls":d(g),"aria-describedby":d(g),tabindex:y.disabled?-1:0,type:"button",onClick:v[0]||(v[0]=(..._)=>d(o)&&d(o)(..._)),onKeydown:v[1]||(v[1]=jt(dt((..._)=>d(l)&&d(l)(..._),["stop","prevent"]),["space","enter"])),onFocus:v[2]||(v[2]=(..._)=>d(a)&&d(a)(..._)),onBlur:v[3]||(v[3]=_=>s.value=!1)},[we(y.$slots,"title",{},()=>[Fe(ve(y.title),1)]),I(d(tt),{class:M(d(u))},{default:N(()=>[I(d(Ns))]),_:1},8,["class"])],42,SQ),I(d(fg),null,{default:N(()=>[pt(R("div",{id:d(g),role:"region",class:M(d(h)),"aria-hidden":!d(i),"aria-labelledby":d(m)},[R("div",{class:M(d(p))},[we(y.$slots,"default")],2)],10,CQ),[[Vt,d(i)]])]),_:3})],2))}});var pP=ze(xQ,[["__file","collapse-item.vue"]]);const kQ=At(vQ,{CollapseItem:pP}),IQ=In(pP),OQ=He({color:{type:me(Object),required:!0},vertical:{type:Boolean,default:!1}});let Nv=!1;function Rd(e,t){if(!Kt)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,Nv=!1,(a=t.end)==null||a.call(t,i)},r=function(i){var a;Nv||(i.preventDefault(),document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",n),document.addEventListener("mouseup",s),document.addEventListener("touchmove",n),document.addEventListener("touchend",s),Nv=!0,(a=t.start)==null||a.call(t,i))};e.addEventListener("mousedown",r),e.addEventListener("touchstart",r)}const AQ=e=>{const t=It(),n=Jt(),s=Jt();function r(a){a.target!==n.value&&i(a)}function i(a){if(!s.value||!n.value)return;const l=t.vnode.el.getBoundingClientRect(),{clientX:u,clientY:c}=o_(a);if(e.vertical){let f=c-l.top;f=Math.max(n.value.offsetHeight/2,f),f=Math.min(f,l.height-n.value.offsetHeight/2),e.color.set("alpha",Math.round((f-n.value.offsetHeight/2)/(l.height-n.value.offsetHeight)*100))}else{let f=u-l.left;f=Math.max(n.value.offsetWidth/2,f),f=Math.min(f,l.width-n.value.offsetWidth/2),e.color.set("alpha",Math.round((f-n.value.offsetWidth/2)/(l.width-n.value.offsetWidth)*100))}}return{thumb:n,bar:s,handleDrag:i,handleClick:r}},PQ=(e,{bar:t,thumb:n,handleDrag:s})=>{const r=It(),i=Le("color-alpha-slider"),a=G(0),o=G(0),l=G();function u(){if(!n.value||e.vertical)return 0;const _=r.vnode.el,w=e.color.get("alpha");return _?Math.round(w*(_.offsetWidth-n.value.offsetWidth/2)/100):0}function c(){if(!n.value)return 0;const _=r.vnode.el;if(!e.vertical)return 0;const w=e.color.get("alpha");return _?Math.round(w*(_.offsetHeight-n.value.offsetHeight/2)/100):0}function f(){if(e.color&&e.color.value){const{r:_,g:w,b:T}=e.color.toRgb();return`linear-gradient(to right, rgba(${_}, ${w}, ${T}, 0) 0%, rgba(${_}, ${w}, ${T}, 1) 100%)`}return""}function h(){a.value=u(),o.value=c(),l.value=f()}vt(()=>{if(!t.value||!n.value)return;const _={drag:w=>{s(w)},end:w=>{s(w)}};Rd(t.value,_),Rd(n.value,_),h()}),Oe(()=>e.color.get("alpha"),()=>h()),Oe(()=>e.color.value,()=>h());const p=k(()=>[i.b(),i.is("vertical",e.vertical)]),g=k(()=>i.e("bar")),m=k(()=>i.e("thumb")),y=k(()=>({background:l.value})),v=k(()=>({left:Mn(a.value),top:Mn(o.value)}));return{rootKls:p,barKls:g,barStyle:y,thumbKls:m,thumbStyle:v,update:h}},$Q="ElColorAlphaSlider",NQ=Z({name:$Q}),MQ=Z({...NQ,props:OQ,setup(e,{expose:t}){const n=e,{bar:s,thumb:r,handleDrag:i,handleClick:a}=AQ(n),{rootKls:o,barKls:l,barStyle:u,thumbKls:c,thumbStyle:f,update:h}=PQ(n,{bar:s,thumb:r,handleDrag:i});return t({update:h,bar:s,thumb:r}),(p,g)=>(C(),j("div",{class:M(d(o))},[R("div",{ref_key:"bar",ref:s,class:M(d(l)),style:rt(d(u)),onClick:g[0]||(g[0]=(...m)=>d(a)&&d(a)(...m))},null,6),R("div",{ref_key:"thumb",ref:r,class:M(d(c)),style:rt(d(f))},null,6)],2))}});var RQ=ze(MQ,[["__file","alpha-slider.vue"]]);const LQ=Z({name:"ElColorHueSlider",props:{color:{type:Object,required:!0},vertical:Boolean},setup(e){const t=Le("color-hue-slider"),n=It(),s=G(),r=G(),i=G(0),a=G(0),o=k(()=>e.color.get("hue"));Oe(()=>o.value,()=>{h()});function l(p){p.target!==s.value&&u(p)}function u(p){if(!r.value||!s.value)return;const m=n.vnode.el.getBoundingClientRect(),{clientX:y,clientY:v}=o_(p);let _;if(e.vertical){let w=v-m.top;w=Math.min(w,m.height-s.value.offsetHeight/2),w=Math.max(s.value.offsetHeight/2,w),_=Math.round((w-s.value.offsetHeight/2)/(m.height-s.value.offsetHeight)*360)}else{let w=y-m.left;w=Math.min(w,m.width-s.value.offsetWidth/2),w=Math.max(s.value.offsetWidth/2,w),_=Math.round((w-s.value.offsetWidth/2)/(m.width-s.value.offsetWidth)*360)}e.color.set("hue",_)}function c(){if(!s.value)return 0;const p=n.vnode.el;if(e.vertical)return 0;const g=e.color.get("hue");return p?Math.round(g*(p.offsetWidth-s.value.offsetWidth/2)/360):0}function f(){if(!s.value)return 0;const p=n.vnode.el;if(!e.vertical)return 0;const g=e.color.get("hue");return p?Math.round(g*(p.offsetHeight-s.value.offsetHeight/2)/360):0}function h(){i.value=c(),a.value=f()}return vt(()=>{if(!r.value||!s.value)return;const p={drag:g=>{u(g)},end:g=>{u(g)}};Rd(r.value,p),Rd(s.value,p),h()}),{bar:r,thumb:s,thumbLeft:i,thumbTop:a,hueValue:o,handleClick:l,update:h,ns:t}}});function DQ(e,t,n,s,r,i){return C(),j("div",{class:M([e.ns.b(),e.ns.is("vertical",e.vertical)])},[R("div",{ref:"bar",class:M(e.ns.e("bar")),onClick:t[0]||(t[0]=(...a)=>e.handleClick&&e.handleClick(...a))},null,2),R("div",{ref:"thumb",class:M(e.ns.e("thumb")),style:rt({left:e.thumbLeft+"px",top:e.thumbTop+"px"})},null,6)],2)}var FQ=ze(LQ,[["render",DQ],["__file","hue-slider.vue"]]);const BQ=He({modelValue:String,id:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:os,popperClass:{type:String,default:""},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},predefine:{type:me(Array)},validateEvent:{type:Boolean,default:!0}}),VQ={[$t]:e=>Tt(e)||Un(e),[ln]:e=>Tt(e)||Un(e),activeChange:e=>Tt(e)||Un(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent},mP=Symbol("colorPickerContextKey"),kE=function(e,t,n){return[e,t*n/((e=(2-t)*n)<1?e:2-e)||0,e/2]},UQ=function(e){return typeof e=="string"&&e.includes(".")&&Number.parseFloat(e)===1},HQ=function(e){return typeof e=="string"&&e.includes("%")},Yl=function(e,t){UQ(e)&&(e="100%");const n=HQ(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)},IE={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},lp=e=>{e=Math.min(Math.round(e),255);const t=Math.floor(e/16),n=e%16;return`${IE[t]||t}${IE[n]||n}`},OE=function({r:e,g:t,b:n}){return Number.isNaN(+e)||Number.isNaN(+t)||Number.isNaN(+n)?"":`#${lp(e)}${lp(t)}${lp(n)}`},Mv={A:10,B:11,C:12,D:13,E:14,F:15},bo=function(e){return e.length===2?(Mv[e[0].toUpperCase()]||+e[0])*16+(Mv[e[1].toUpperCase()]||+e[1]):Mv[e[1].toUpperCase()]||+e[1]},zQ=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}},AE=(e,t,n)=>{e=Yl(e,255),t=Yl(t,255),n=Yl(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}},yc=function(e,t,n){e=Yl(e,360)*6,t=Yl(t,100),n=Yl(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 Jc{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)zt(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)zt(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 yc(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}=zQ(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}=AE(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=bo(s[0]+s[0]),i=bo(s[1]+s[1]),a=bo(s[2]+s[2])):(s.length===6||s.length===8)&&(r=bo(s.slice(0,2)),i=bo(s.slice(2,4)),a=bo(s.slice(4,6))),s.length===8?this._alpha=bo(s.slice(6))/255*100:(s.length===3||s.length===6)&&(this._alpha=100);const{h:o,s:l,v:u}=AE(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=`${OE(yc(t,n,s))}${lp(r*255/100)}`;break}default:{const{r:a,g:o,b:l}=yc(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}=yc(t,n,s);this.value=`rgb(${a}, ${o}, ${l})`;break}default:this.value=OE(yc(t,n,s))}}}const jQ=Z({props:{colors:{type:Array,required:!0},color:{type:Object,required:!0}},setup(e){const t=Le("color-predefine"),{currentColor:n}=Qe(mP),s=G(i(e.colors,e.color));Oe(()=>n.value,a=>{const o=new Jc;o.fromString(a),s.value.forEach(l=>{l.selected=o.compare(l)})}),Gs(()=>{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 Jc;return u.enableAlpha=!0,u.format="rgba",u.fromString(l),u.selected=u.value===o.value,u})}return{rgbaColors:s,handleSelect:r,ns:t}}}),KQ=["onClick"];function WQ(e,t,n,s,r,i){return C(),j("div",{class:M(e.ns.b())},[R("div",{class:M(e.ns.e("colors"))},[(C(!0),j(Ke,null,bt(e.rgbaColors,(a,o)=>(C(),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)},[R("div",{style:rt({backgroundColor:a.value})},null,4)],10,KQ))),128))],2)],2)}var qQ=ze(jQ,[["render",WQ],["__file","predefine.vue"]]);const GQ=Z({name:"ElSlPanel",props:{color:{type:Object,required:!0}},setup(e){const t=Le("color-svpanel"),n=It(),s=G(0),r=G(0),i=G("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:p}=f;r.value=u*h/100,s.value=(100-c)*p/100,i.value=`hsl(${e.color.get("hue")}, 100%, 50%)`}function l(u){const f=n.vnode.el.getBoundingClientRect(),{clientX:h,clientY:p}=o_(u);let g=h-f.left,m=p-f.top;g=Math.max(0,g),g=Math.min(g,f.width),m=Math.max(0,m),m=Math.min(m,f.height),r.value=g,s.value=m,e.color.set({saturation:g/f.width*100,value:100-m/f.height*100})}return Oe(()=>a.value,()=>{o()}),vt(()=>{Rd(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}}}),YQ=R("div",null,null,-1),XQ=[YQ];function QQ(e,t,n,s,r,i){return C(),j("div",{class:M(e.ns.b()),style:rt({backgroundColor:e.background})},[R("div",{class:M(e.ns.e("white"))},null,2),R("div",{class:M(e.ns.e("black"))},null,2),R("div",{class:M(e.ns.e("cursor")),style:rt({top:e.cursorTop+"px",left:e.cursorLeft+"px"})},XQ,6)],6)}var JQ=ze(GQ,[["render",QQ],["__file","sv-panel.vue"]]);const ZQ=["onKeydown"],eJ=["id","aria-label","aria-labelledby","aria-description","aria-disabled","tabindex"],tJ=Z({name:"ElColorPicker"}),nJ=Z({...tJ,props:BQ,emits:VQ,setup(e,{expose:t,emit:n}){const s=e,{t:r}=Wt(),i=Le("color"),{formItem:a}=Bs(),o=Xn(),l=ir(),{inputId:u,isLabeledByFormItem:c}=ro(s,{formItemContext:a}),f=G(),h=G(),p=G(),g=G(),m=G(),y=G(),{isFocused:v,handleFocus:_,handleBlur:w}=nA(m,{beforeBlur(ke){var Ee;return(Ee=g.value)==null?void 0:Ee.isFocusInsideContent(ke)},afterBlur(){Y(!1),Q()}}),T=ke=>{if(l.value)return Ie();_(ke)};let S=!0;const E=Ct(new Jc({enableAlpha:s.showAlpha,format:s.colorFormat||"",value:s.modelValue})),$=G(!1),P=G(!1),U=G(""),H=k(()=>!s.modelValue&&!P.value?"transparent":X(E,s.showAlpha)),z=k(()=>!s.modelValue&&!P.value?"":E.value),W=k(()=>c.value?void 0:s.label||r("el.colorpicker.defaultLabel")),D=k(()=>c.value?a==null?void 0:a.labelId:void 0),V=k(()=>[i.b("picker"),i.is("disabled",l.value),i.bm("picker",o.value),i.is("focused",v.value)]);function X(ke,Ee){if(!(ke instanceof Jc))throw new TypeError("color should be instance of _color Class");const{r:J,g:re,b:Se}=ke.toRgb();return Ee?`rgba(${J}, ${re}, ${Se}, ${ke.get("alpha")/100})`:`rgb(${J}, ${re}, ${Se})`}function Y(ke){$.value=ke}const B=Fs(Y,100,{leading:!0});function K(){l.value||Y(!0)}function L(){B(!1),Q()}function Q(){at(()=>{s.modelValue?E.fromString(s.modelValue):(E.value="",at(()=>{P.value=!1}))})}function ee(){l.value||B(!$.value)}function te(){E.fromString(U.value)}function ie(){const ke=E.value;n($t,ke),n("change",ke),s.validateEvent&&(a==null||a.validate("change").catch(Ee=>void 0)),B(!1),at(()=>{const Ee=new Jc({enableAlpha:s.showAlpha,format:s.colorFormat||"",value:s.modelValue});E.compare(Ee)||Q()})}function _e(){B(!1),n($t,null),n("change",null),s.modelValue!==null&&s.validateEvent&&(a==null||a.validate("change").catch(ke=>void 0)),Q()}function ue(ke){if($.value&&(L(),v.value)){const Ee=new FocusEvent("focus",ke);w(Ee)}}function oe(ke){ke.preventDefault(),ke.stopPropagation(),Y(!1),Q()}function de(ke){switch(ke.code){case ot.enter:case ot.space:ke.preventDefault(),ke.stopPropagation(),K(),y.value.focus();break;case ot.esc:oe(ke);break}}function ae(){m.value.focus()}function Ie(){m.value.blur()}return vt(()=>{s.modelValue&&(U.value=z.value)}),Oe(()=>s.modelValue,ke=>{ke?ke&&ke!==E.value&&(S=!1,E.fromString(ke)):P.value=!1}),Oe(()=>z.value,ke=>{U.value=ke,S&&n("activeChange",ke),S=!0}),Oe(()=>E.value,()=>{!s.modelValue&&!P.value&&(P.value=!0)}),Oe(()=>$.value,()=>{at(()=>{var ke,Ee,J;(ke=f.value)==null||ke.update(),(Ee=h.value)==null||Ee.update(),(J=p.value)==null||J.update()})}),Lt(mP,{currentColor:z}),t({color:E,show:K,hide:L,focus:ae,blur:Ie}),(ke,Ee)=>(C(),he(d(ms),{ref_key:"popper",ref:g,visible:$.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"),ke.popperClass],"stop-popper-mouse-event":!1,effect:"light",trigger:"click",transition:`${d(i).namespace.value}-zoom-in-top`,persistent:"",onHide:Ee[2]||(Ee[2]=J=>Y(!1))},{content:N(()=>[pt((C(),j("div",{onKeydown:jt(oe,["esc"])},[R("div",{class:M(d(i).be("dropdown","main-wrapper"))},[I(FQ,{ref_key:"hue",ref:f,class:"hue-slider",color:d(E),vertical:""},null,8,["color"]),I(JQ,{ref_key:"sv",ref:h,color:d(E)},null,8,["color"])],2),ke.showAlpha?(C(),he(RQ,{key:0,ref_key:"alpha",ref:p,color:d(E)},null,8,["color"])):le("v-if",!0),ke.predefine?(C(),he(qQ,{key:1,ref:"predefine",color:d(E),colors:ke.predefine},null,8,["color","colors"])):le("v-if",!0),R("div",{class:M(d(i).be("dropdown","btns"))},[R("span",{class:M(d(i).be("dropdown","value"))},[I(d(Fn),{ref_key:"inputRef",ref:y,modelValue:U.value,"onUpdate:modelValue":Ee[0]||(Ee[0]=J=>U.value=J),"validate-event":!1,size:"small",onKeyup:jt(te,["enter"]),onBlur:te},null,8,["modelValue","onKeyup"])],2),I(d(bn),{class:M(d(i).be("dropdown","link-btn")),text:"",size:"small",onClick:_e},{default:N(()=>[Fe(ve(d(r)("el.colorpicker.clear")),1)]),_:1},8,["class"]),I(d(bn),{plain:"",size:"small",class:M(d(i).be("dropdown","btn")),onClick:ie},{default:N(()=>[Fe(ve(d(r)("el.colorpicker.confirm")),1)]),_:1},8,["class"])],2)],40,ZQ)),[[d(ia),ue]])]),default:N(()=>[R("div",{id:d(u),ref_key:"triggerRef",ref:m,class:M(d(V)),role:"button","aria-label":d(W),"aria-labelledby":d(D),"aria-description":d(r)("el.colorpicker.description",{color:ke.modelValue||""}),"aria-disabled":d(l),tabindex:d(l)?-1:ke.tabindex,onKeydown:de,onFocus:T,onBlur:Ee[1]||(Ee[1]=(...J)=>d(w)&&d(w)(...J))},[d(l)?(C(),j("div",{key:0,class:M(d(i).be("picker","mask"))},null,2)):le("v-if",!0),R("div",{class:M(d(i).be("picker","trigger")),onClick:ee},[R("span",{class:M([d(i).be("picker","color"),d(i).is("alpha",ke.showAlpha)])},[R("span",{class:M(d(i).be("picker","color-inner")),style:rt({backgroundColor:d(H)})},[pt(I(d(tt),{class:M([d(i).be("picker","icon"),d(i).is("icon-arrow-down")])},{default:N(()=>[I(d(ga))]),_:1},8,["class"]),[[Vt,ke.modelValue||P.value]]),pt(I(d(tt),{class:M([d(i).be("picker","empty"),d(i).is("icon-close")])},{default:N(()=>[I(d(Jr))]),_:1},8,["class"]),[[Vt,!ke.modelValue&&!P.value]])],6)],2)],2)],42,eJ)]),_:1},8,["visible","popper-class","transition"]))}});var sJ=ze(nJ,[["__file","color-picker.vue"]]);const rJ=At(sJ),iJ=Z({name:"ElContainer"}),aJ=Z({...iJ,props:{direction:{type:String}},setup(e){const t=e,n=us(),s=Le("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)=>(C(),j("section",{class:M([d(s).b(),d(s).is("vertical",d(r))])},[we(i.$slots,"default")],2))}});var oJ=ze(aJ,[["__file","container.vue"]]);const lJ=Z({name:"ElAside"}),uJ=Z({...lJ,props:{width:{type:String,default:null}},setup(e){const t=e,n=Le("aside"),s=k(()=>t.width?n.cssVarBlock({width:t.width}):{});return(r,i)=>(C(),j("aside",{class:M(d(n).b()),style:rt(d(s))},[we(r.$slots,"default")],6))}});var gP=ze(uJ,[["__file","aside.vue"]]);const cJ=Z({name:"ElFooter"}),dJ=Z({...cJ,props:{height:{type:String,default:null}},setup(e){const t=e,n=Le("footer"),s=k(()=>t.height?n.cssVarBlock({height:t.height}):{});return(r,i)=>(C(),j("footer",{class:M(d(n).b()),style:rt(d(s))},[we(r.$slots,"default")],6))}});var vP=ze(dJ,[["__file","footer.vue"]]);const fJ=Z({name:"ElHeader"}),hJ=Z({...fJ,props:{height:{type:String,default:null}},setup(e){const t=e,n=Le("header"),s=k(()=>t.height?n.cssVarBlock({height:t.height}):{});return(r,i)=>(C(),j("header",{class:M(d(n).b()),style:rt(d(s))},[we(r.$slots,"default")],6))}});var yP=ze(hJ,[["__file","header.vue"]]);const pJ=Z({name:"ElMain"}),mJ=Z({...pJ,setup(e){const t=Le("main");return(n,s)=>(C(),j("main",{class:M(d(t).b())},[we(n.$slots,"default")],2))}});var bP=ze(mJ,[["__file","main.vue"]]);const o1=At(oJ,{Aside:gP,Footer:vP,Header:yP,Main:bP}),_P=In(gP),TP=In(vP),l1=In(yP),u1=In(bP);var yy={},gJ={get exports(){return yy},set exports(e){yy=e}};(function(e,t){(function(n,s){e.exports=s()})(nr,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)}}})})(gJ);const vJ=yy;var by={},yJ={get exports(){return by},set exports(e){by=e}};(function(e,t){(function(n,s){e.exports=s()})(nr,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"),p=this.diff(h,n,!0);return p<0?a(this).startOf("week").week():Math.ceil(p)},o.weeks=function(l){return l===void 0&&(l=null),this.week(l)}}})})(yJ);const bJ=by;var _y={},_J={get exports(){return _y},set exports(e){_y=e}};(function(e,t){(function(n,s){e.exports=s()})(nr,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}}})})(_J);const TJ=_y;var Ty={},wJ={get exports(){return Ty},set exports(e){Ty=e}};(function(e,t){(function(n,s){e.exports=s()})(nr,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")}}})})(wJ);const SJ=Ty;var wy={},CJ={get exports(){return wy},set exports(e){wy=e}};(function(e,t){(function(n,s){e.exports=s()})(nr,function(){return function(n,s){s.prototype.isSameOrAfter=function(r,i){return this.isSame(r,i)||this.isAfter(r,i)}}})})(CJ);const EJ=wy;var Sy={},xJ={get exports(){return Sy},set exports(e){Sy=e}};(function(e,t){(function(n,s){e.exports=s()})(nr,function(){return function(n,s){s.prototype.isSameOrBefore=function(r,i){return this.isSame(r,i)||this.isBefore(r,i)}}})})(xJ);const kJ=Sy,c1=Symbol(),IJ=He({...s1,type:{type:me(String),default:"date"}}),OJ=["date","dates","year","month","week","range"],d1=He({disabledDate:{type:me(Function)},date:{type:me(Object),required:!0},minDate:{type:me(Object)},maxDate:{type:me(Object)},parsedValue:{type:me([Object,Array])},rangeState:{type:me(Object),default:()=>({endDate:null,selecting:!1})}}),wP=He({type:{type:me(String),required:!0,values:Hj},dateFormat:String,timeFormat:String}),SP=He({unlinkPanels:Boolean,parsedValue:{type:me(Array)}}),CP=e=>({type:String,values:OJ,default:e}),AJ=He({...wP,parsedValue:{type:me([Object,Array])},visible:{type:Boolean},format:{type:String,default:""}}),PJ=He({...d1,cellClassName:{type:me(Function)},showWeekNumber:Boolean,selectionMode:CP("date")}),$J=["changerange","pick","select"],Cy=e=>{if(!st(e))return!1;const[t,n]=e;return Ot.isDayjs(t)&&Ot.isDayjs(n)&&t.isSameOrBefore(n)},EP=(e,{lang:t,unit:n,unlinkPanels:s})=>{let r;if(st(e)){let[i,a]=e.map(o=>Ot(o).locale(t));return s||(a=i.add(1,n)),[i,a]}else e?r=Ot(e):r=Ot();return r=r.locale(t),[r,r.add(1,n)]},NJ=(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 p=f[h+n];p||(p={row:c,column:h,type:"normal",inRange:!1,start:!1,end:!1});const g=c*e.column+h,m=o(g);p.dayjs=m,p.date=m.toDate(),p.timestamp=m.valueOf(),p.type="normal",p.inRange=!!(s&&m.isSameOrAfter(s,a)&&r&&m.isSameOrBefore(r,a))||!!(s&&m.isSameOrBefore(s,a)&&r&&m.isSameOrAfter(r,a)),s!=null&&s.isSameOrAfter(r)?(p.start=!!r&&m.isSame(r,a),p.end=s&&m.isSame(s,a)):(p.start=!!s&&m.isSame(s,a),p.end=!!r&&m.isSame(r,a)),m.isSame(i,a)&&(p.type="today"),l==null||l(p,{rowIndex:c,columnIndex:h}),f[h+n]=p}u==null||u(f)}},Ey=(e="")=>["normal","today"].includes(e),MJ=(e,t)=>{const{lang:n}=Wt(),s=G(),r=G(),i=G(),a=G(),o=G([[],[],[],[],[],[]]);let l=!1;const u=e.date.$locale().weekStart||7,c=e.date.locale("en").localeData().weekdaysShort().map(L=>L.toLowerCase()),f=k(()=>u>3?7-u:-u),h=k(()=>{const L=e.date.startOf("month");return L.subtract(L.day()||7,"day")}),p=k(()=>c.concat(c).slice(u,u+7)),g=k(()=>VI(d(T)).some(L=>L.isCurrent)),m=k(()=>{const L=e.date.startOf("month"),Q=L.day()||7,ee=L.daysInMonth(),te=L.subtract(1,"month").daysInMonth();return{startOfMonthDay:Q,dateCountOfMonth:ee,dateCountOfLastMonth:te}}),y=k(()=>e.selectionMode==="dates"?Qi(e.parsedValue):[]),v=(L,{count:Q,rowIndex:ee,columnIndex:te})=>{const{startOfMonthDay:ie,dateCountOfMonth:_e,dateCountOfLastMonth:ue}=d(m),oe=d(f);if(ee>=0&&ee<=1){const de=ie+oe<0?7+ie+oe:ie+oe;if(te+ee*7>=de)return L.text=Q,!0;L.text=ue-(de-te%7)+1+ee*7,L.type="prev-month"}else return Q<=_e?L.text=Q:(L.text=Q-_e,L.type="next-month"),!0;return!1},_=(L,{columnIndex:Q,rowIndex:ee},te)=>{const{disabledDate:ie,cellClassName:_e}=e,ue=d(y),oe=v(L,{count:te,rowIndex:ee,columnIndex:Q}),de=L.dayjs.toDate();return L.selected=ue.find(ae=>ae.valueOf()===L.dayjs.valueOf()),L.isSelected=!!L.selected,L.isCurrent=E(L),L.disabled=ie==null?void 0:ie(de),L.customClass=_e==null?void 0:_e(de),oe},w=L=>{if(e.selectionMode==="week"){const[Q,ee]=e.showWeekNumber?[1,7]:[0,6],te=K(L[Q+1]);L[Q].inRange=te,L[Q].start=te,L[ee].inRange=te,L[ee].end=te}},T=k(()=>{const{minDate:L,maxDate:Q,rangeState:ee,showWeekNumber:te}=e,ie=d(f),_e=d(o),ue="day";let oe=1;if(te)for(let de=0;de<6;de++)_e[de][0]||(_e[de][0]={type:"week",text:d(h).add(de*7+1,ue).week()});return NJ({row:6,column:7},_e,{startDate:L,columnIndexOffset:te?1:0,nextEndDate:ee.endDate||Q||ee.selecting&&L||null,now:Ot().locale(d(n)).startOf(ue),unit:ue,relativeDateGetter:de=>d(h).add(de-ie,ue),setCellMetadata:(...de)=>{_(...de,oe)&&(oe+=1)},setRowMetadata:w}),_e});Oe(()=>e.date,async()=>{var L;(L=d(s))!=null&&L.contains(document.activeElement)&&(await at(),await S())});const S=async()=>{var L;return(L=d(r))==null?void 0:L.focus()},E=L=>e.selectionMode==="date"&&Ey(L.type)&&$(L,e.parsedValue),$=(L,Q)=>Q?Ot(Q).locale(d(n)).isSame(e.date.date(Number(L.text)),"day"):!1,P=(L,Q)=>{const ee=L*7+(Q-(e.showWeekNumber?1:0))-d(f);return d(h).add(ee,"day")},U=L=>{var Q;if(!e.rangeState.selecting)return;let ee=L.target;if(ee.tagName==="SPAN"&&(ee=(Q=ee.parentNode)==null?void 0:Q.parentNode),ee.tagName==="DIV"&&(ee=ee.parentNode),ee.tagName!=="TD")return;const te=ee.parentNode.rowIndex-1,ie=ee.cellIndex;d(T)[te][ie].disabled||(te!==d(i)||ie!==d(a))&&(i.value=te,a.value=ie,t("changerange",{selecting:!0,endDate:P(te,ie)}))},H=L=>!d(g)&&(L==null?void 0:L.text)===1&&L.type==="normal"||L.isCurrent,z=L=>{l||d(g)||e.selectionMode!=="date"||B(L,!0)},W=L=>{L.target.closest("td")&&(l=!0)},D=L=>{L.target.closest("td")&&(l=!1)},V=L=>{!e.rangeState.selecting||!e.minDate?(t("pick",{minDate:L,maxDate:null}),t("select",!0)):(L>=e.minDate?t("pick",{minDate:e.minDate,maxDate:L}):t("pick",{minDate:L,maxDate:e.minDate}),t("select",!1))},X=L=>{const Q=L.week(),ee=`${L.year()}w${Q}`;t("pick",{year:L.year(),week:Q,value:ee,date:L.startOf("week")})},Y=(L,Q)=>{const ee=Q?Qi(e.parsedValue).filter(te=>(te==null?void 0:te.valueOf())!==L.valueOf()):Qi(e.parsedValue).concat([L]);t("pick",ee)},B=(L,Q=!1)=>{const ee=L.target.closest("td");if(!ee)return;const te=ee.parentNode.rowIndex-1,ie=ee.cellIndex,_e=d(T)[te][ie];if(_e.disabled||_e.type==="week")return;const ue=P(te,ie);switch(e.selectionMode){case"range":{V(ue);break}case"date":{t("pick",ue,Q);break}case"week":{X(ue);break}case"dates":{Y(ue,!!_e.selected);break}}},K=L=>{if(e.selectionMode!=="week")return!1;let Q=e.date.startOf("day");if(L.type==="prev-month"&&(Q=Q.subtract(1,"month")),L.type==="next-month"&&(Q=Q.add(1,"month")),Q=Q.date(Number.parseInt(L.text,10)),e.parsedValue&&!Array.isArray(e.parsedValue)){const ee=(e.parsedValue.day()-u+7)%7-1;return e.parsedValue.subtract(ee,"day").isSame(Q,"day")}return!1};return{WEEKS:p,rows:T,tbodyRef:s,currentCellRef:r,focus:S,isCurrent:E,isWeekActive:K,isSelectedCell:H,handlePickDate:B,handleMouseUp:D,handleMouseDown:W,handleMouseMove:U,handleFocus:z}},RJ=(e,{isCurrent:t,isWeekActive:n})=>{const s=Le("date-table"),{t:r}=Wt(),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 Ey(c.type)&&!c.disabled?(f.push("available"),c.type==="today"&&f.push("today")):f.push(c.type),t(c)&&f.push("current"),c.inRange&&(Ey(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}},LJ=He({cell:{type:me(Object)}});var DJ=Z({name:"ElDatePickerCell",props:LJ,setup(e){const t=Le("date-table-cell"),{slots:n}=Qe(c1);return()=>{const{cell:s}=e;return we(n,"default",{...s},()=>[I("div",{class:t.b()},[I("span",{class:t.e("text")},[s==null?void 0:s.text])])])}}});const FJ=["aria-label"],BJ={key:0,scope:"col"},VJ=["aria-label"],UJ=["aria-current","aria-selected","tabindex"],HJ=Z({__name:"basic-date-table",props:PJ,emits:$J,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:p,handleMouseDown:g,handleMouseMove:m,handleFocus:y}=MJ(s,n),{tableLabel:v,tableKls:_,weekLabel:w,getCellClasses:T,getRowKls:S,t:E}=RJ(s,{isCurrent:u,isWeekActive:c});return t({focus:l}),($,P)=>(C(),j("table",{"aria-label":d(v),class:M(d(_)),cellspacing:"0",cellpadding:"0",role:"grid",onClick:P[1]||(P[1]=(...U)=>d(h)&&d(h)(...U)),onMousemove:P[2]||(P[2]=(...U)=>d(m)&&d(m)(...U)),onMousedown:P[3]||(P[3]=dt((...U)=>d(g)&&d(g)(...U),["prevent"])),onMouseup:P[4]||(P[4]=(...U)=>d(p)&&d(p)(...U))},[R("tbody",{ref_key:"tbodyRef",ref:a},[R("tr",null,[$.showWeekNumber?(C(),j("th",BJ,ve(d(w)),1)):le("v-if",!0),(C(!0),j(Ke,null,bt(d(r),(U,H)=>(C(),j("th",{key:H,"aria-label":d(E)("el.datepicker.weeksFull."+U),scope:"col"},ve(d(E)("el.datepicker.weeks."+U)),9,VJ))),128))]),(C(!0),j(Ke,null,bt(d(i),(U,H)=>(C(),j("tr",{key:H,class:M(d(S)(U[1]))},[(C(!0),j(Ke,null,bt(U,(z,W)=>(C(),j("td",{key:`${H}.${W}`,ref_for:!0,ref:D=>d(f)(z)&&(o.value=D),class:M(d(T)(z)),"aria-current":z.isCurrent?"date":void 0,"aria-selected":z.isCurrent,tabindex:d(f)(z)?0:-1,onFocus:P[0]||(P[0]=(...D)=>d(y)&&d(y)(...D))},[I(d(DJ),{cell:z},null,8,["cell"])],42,UJ))),128))],2))),128))],512)],42,FJ))}});var xy=ze(HJ,[["__file","basic-date-table.vue"]]);const zJ=He({...d1,selectionMode:CP("month")}),jJ=["aria-label"],KJ=["aria-selected","aria-label","tabindex","onKeydown"],WJ={class:"cell"},qJ=Z({__name:"basic-month-table",props:zJ,emits:["changerange","pick","select"],setup(e,{expose:t,emit:n}){const s=e,r=(T,S,E)=>{const $=Ot().locale(E).startOf("month").month(S).year(T),P=$.daysInMonth();return Ua(P).map(U=>$.add(U,"day").toDate())},i=Le("month-table"),{t:a,lang:o}=Wt(),l=G(),u=G(),c=G(s.date.locale("en").localeData().monthsShort().map(T=>T.toLowerCase())),f=G([[],[],[]]),h=G(),p=G(),g=k(()=>{var T,S;const E=f.value,$=Ot().locale(o.value).startOf("month");for(let P=0;P<3;P++){const U=E[P];for(let H=0;H<4;H++){const z=U[H]||(U[H]={row:P,column:H,type:"normal",inRange:!1,start:!1,end:!1,text:-1,disabled:!1});z.type="normal";const W=P*4+H,D=s.date.startOf("year").month(W),V=s.rangeState.endDate||s.maxDate||s.rangeState.selecting&&s.minDate||null;z.inRange=!!(s.minDate&&D.isSameOrAfter(s.minDate,"month")&&V&&D.isSameOrBefore(V,"month"))||!!(s.minDate&&D.isSameOrBefore(s.minDate,"month")&&V&&D.isSameOrAfter(V,"month")),(T=s.minDate)!=null&&T.isSameOrAfter(V)?(z.start=!!(V&&D.isSame(V,"month")),z.end=s.minDate&&D.isSame(s.minDate,"month")):(z.start=!!(s.minDate&&D.isSame(s.minDate,"month")),z.end=!!(V&&D.isSame(V,"month"))),$.isSame(D)&&(z.type="today"),z.text=W,z.disabled=((S=s.disabledDate)==null?void 0:S.call(s,D.toDate()))||!1}}return E}),m=()=>{var T;(T=u.value)==null||T.focus()},y=T=>{const S={},E=s.date.year(),$=new Date,P=T.text;return S.disabled=s.disabledDate?r(E,P,o.value).every(s.disabledDate):!1,S.current=Qi(s.parsedValue).findIndex(U=>Ot.isDayjs(U)&&U.year()===E&&U.month()===P)>=0,S.today=$.getFullYear()===E&&$.getMonth()===P,T.inRange&&(S["in-range"]=!0,T.start&&(S["start-date"]=!0),T.end&&(S["end-date"]=!0)),S},v=T=>{const S=s.date.year(),E=T.text;return Qi(s.date).findIndex($=>$.year()===S&&$.month()===E)>=0},_=T=>{var S;if(!s.rangeState.selecting)return;let E=T.target;if(E.tagName==="SPAN"&&(E=(S=E.parentNode)==null?void 0:S.parentNode),E.tagName==="DIV"&&(E=E.parentNode),E.tagName!=="TD")return;const $=E.parentNode.rowIndex,P=E.cellIndex;g.value[$][P].disabled||($!==h.value||P!==p.value)&&(h.value=$,p.value=P,n("changerange",{selecting:!0,endDate:s.date.startOf("year").month($*4+P)}))},w=T=>{var S;const E=(S=T.target)==null?void 0:S.closest("td");if((E==null?void 0:E.tagName)!=="TD"||Yr(E,"disabled"))return;const $=E.cellIndex,U=E.parentNode.rowIndex*4+$,H=s.date.startOf("year").month(U);s.selectionMode==="range"?s.rangeState.selecting?(s.minDate&&H>=s.minDate?n("pick",{minDate:s.minDate,maxDate:H}):n("pick",{minDate:H,maxDate:s.minDate}),n("select",!1)):(n("pick",{minDate:H,maxDate:null}),n("select",!0)):n("pick",U)};return Oe(()=>s.date,async()=>{var T,S;(T=l.value)!=null&&T.contains(document.activeElement)&&(await at(),(S=u.value)==null||S.focus())}),t({focus:m}),(T,S)=>(C(),j("table",{role:"grid","aria-label":d(a)("el.datepicker.monthTablePrompt"),class:M(d(i).b()),onClick:w,onMousemove:_},[R("tbody",{ref_key:"tbodyRef",ref:l},[(C(!0),j(Ke,null,bt(d(g),(E,$)=>(C(),j("tr",{key:$},[(C(!0),j(Ke,null,bt(E,(P,U)=>(C(),j("td",{key:U,ref_for:!0,ref:H=>v(P)&&(u.value=H),class:M(y(P)),"aria-selected":`${v(P)}`,"aria-label":d(a)(`el.datepicker.month${+P.text+1}`),tabindex:v(P)?0:-1,onKeydown:[jt(dt(w,["prevent","stop"]),["space"]),jt(dt(w,["prevent","stop"]),["enter"])]},[R("div",null,[R("span",WJ,ve(d(a)("el.datepicker.months."+c.value[P.text])),1)])],42,KJ))),128))]))),128))],512)],42,jJ))}});var ky=ze(qJ,[["__file","basic-month-table.vue"]]);const{date:GJ,disabledDate:YJ,parsedValue:XJ}=d1,QJ=He({date:GJ,disabledDate:YJ,parsedValue:XJ}),JJ=["aria-label"],ZJ=["aria-selected","tabindex","onKeydown"],eZ={class:"cell"},tZ={key:1},nZ=Z({__name:"basic-year-table",props:QJ,emits:["pick"],setup(e,{expose:t,emit:n}){const s=e,r=(m,y)=>{const v=Ot(String(m)).locale(y).startOf("year"),w=v.endOf("year").dayOfYear();return Ua(w).map(T=>v.add(T,"day").toDate())},i=Le("year-table"),{t:a,lang:o}=Wt(),l=G(),u=G(),c=k(()=>Math.floor(s.date.year()/10)*10),f=()=>{var m;(m=u.value)==null||m.focus()},h=m=>{const y={},v=Ot().locale(o.value);return y.disabled=s.disabledDate?r(m,o.value).every(s.disabledDate):!1,y.current=Qi(s.parsedValue).findIndex(_=>_.year()===m)>=0,y.today=v.year()===m,y},p=m=>m===c.value&&s.date.year()<c.value&&s.date.year()>c.value+9||Qi(s.date).findIndex(y=>y.year()===m)>=0,g=m=>{const v=m.target.closest("td");if(v&&v.textContent){if(Yr(v,"disabled"))return;const _=v.textContent||v.innerText;n("pick",Number(_))}};return Oe(()=>s.date,async()=>{var m,y;(m=l.value)!=null&&m.contains(document.activeElement)&&(await at(),(y=u.value)==null||y.focus())}),t({focus:f}),(m,y)=>(C(),j("table",{role:"grid","aria-label":d(a)("el.datepicker.yearTablePrompt"),class:M(d(i).b()),onClick:g},[R("tbody",{ref_key:"tbodyRef",ref:l},[(C(),j(Ke,null,bt(3,(v,_)=>R("tr",{key:_},[(C(),j(Ke,null,bt(4,(w,T)=>(C(),j(Ke,{key:_+"_"+T},[_*4+T<10?(C(),j("td",{key:0,ref_for:!0,ref:S=>p(d(c)+_*4+T)&&(u.value=S),class:M(["available",h(d(c)+_*4+T)]),"aria-selected":`${p(d(c)+_*4+T)}`,tabindex:p(d(c)+_*4+T)?0:-1,onKeydown:[jt(dt(g,["prevent","stop"]),["space"]),jt(dt(g,["prevent","stop"]),["enter"])]},[R("span",eZ,ve(d(c)+_*4+T),1)],42,ZJ)):(C(),j("td",tZ))],64))),64))])),64))],512)],10,JJ))}});var sZ=ze(nZ,[["__file","basic-year-table.vue"]]);const rZ=["onClick"],iZ=["aria-label"],aZ=["aria-label"],oZ=["aria-label"],lZ=["aria-label"],uZ=Z({__name:"panel-date-pick",props:AJ,emits:["pick","set-picker-option","panel-change"],setup(e,{emit:t}){const n=e,s=(Ce,pe,ge)=>!0,r=Le("picker-panel"),i=Le("date-picker"),a=rl(),o=us(),{t:l,lang:u}=Wt(),c=Qe("EP_PICKER_BASE"),f=Qe(cg),{shortcuts:h,disabledDate:p,cellClassName:g,defaultTime:m}=c.props,y=yn(c.props,"defaultValue"),v=G(),_=G(Ot().locale(u.value)),w=G(!1);let T=!1;const S=k(()=>Ot(m).locale(u.value)),E=k(()=>_.value.month()),$=k(()=>_.value.year()),P=G([]),U=G(null),H=G(null),z=Ce=>P.value.length>0?s(Ce,P.value,n.format||"HH:mm:ss"):!0,W=Ce=>m&&!Se.value&&!w.value&&!T?S.value.year(Ce.year()).month(Ce.month()).date(Ce.date()):oe.value?Ce.millisecond(0):Ce.startOf("day"),D=(Ce,...pe)=>{if(!Ce)t("pick",Ce,...pe);else if(st(Ce)){const ge=Ce.map(W);t("pick",ge,...pe)}else t("pick",W(Ce),...pe);U.value=null,H.value=null,w.value=!1,T=!1},V=(Ce,pe)=>{if(Q.value==="date"){Ce=Ce;let ge=n.parsedValue?n.parsedValue.year(Ce.year()).month(Ce.month()).date(Ce.date()):Ce;z(ge)||(ge=P.value[0][0].year(Ce.year()).month(Ce.month()).date(Ce.date())),_.value=ge,D(ge,oe.value||pe),n.type==="datetime"&&ct()}else Q.value==="week"?D(Ce.date):Q.value==="dates"&&D(Ce,!0)},X=Ce=>{const pe=Ce?"add":"subtract";_.value=_.value[pe](1,"month"),ut("month")},Y=Ce=>{const pe=_.value,ge=Ce?"add":"subtract";_.value=B.value==="year"?pe[ge](10,"year"):pe[ge](1,"year"),ut("year")},B=G("date"),K=k(()=>{const Ce=l("el.datepicker.year");if(B.value==="year"){const pe=Math.floor($.value/10)*10;return Ce?`${pe} ${Ce} - ${pe+9} ${Ce}`:`${pe} - ${pe+9}`}return`${$.value} ${Ce}`}),L=Ce=>{const pe=yt(Ce.value)?Ce.value():Ce.value;if(pe){T=!0,D(Ot(pe).locale(u.value));return}Ce.onClick&&Ce.onClick({attrs:a,slots:o,emit:t})},Q=k(()=>{const{type:Ce}=n;return["week","month","year","dates"].includes(Ce)?Ce:"date"}),ee=k(()=>Q.value==="date"?B.value:Q.value),te=k(()=>!!h.length),ie=async Ce=>{_.value=_.value.startOf("month").month(Ce),Q.value==="month"?D(_.value,!1):(B.value="date",["month","year","date","week"].includes(Q.value)&&(D(_.value,!0),await at(),ct())),ut("month")},_e=async Ce=>{Q.value==="year"?(_.value=_.value.startOf("year").year(Ce),D(_.value,!1)):(_.value=_.value.year(Ce),B.value="month",["month","year","date","week"].includes(Q.value)&&(D(_.value,!0),await at(),ct())),ut("year")},ue=async Ce=>{B.value=Ce,await at(),ct()},oe=k(()=>n.type==="datetime"||n.type==="datetimerange"),de=k(()=>oe.value||Q.value==="dates"),ae=k(()=>p?n.parsedValue?st(n.parsedValue)?p(n.parsedValue[0].toDate()):p(n.parsedValue.toDate()):!0:!1),Ie=()=>{if(Q.value==="dates")D(n.parsedValue);else{let Ce=n.parsedValue;if(!Ce){const pe=Ot(m).locale(u.value),ge=Xe();Ce=pe.year(ge.year()).month(ge.month()).date(ge.date())}_.value=Ce,D(Ce)}},ke=k(()=>p?p(Ot().locale(u.value).toDate()):!1),Ee=()=>{const pe=Ot().locale(u.value).toDate();w.value=!0,(!p||!p(pe))&&z(pe)&&(_.value=Ot().locale(u.value),D(_.value))},J=k(()=>n.timeFormat||PA(n.format)),re=k(()=>n.dateFormat||AA(n.format)),Se=k(()=>{if(H.value)return H.value;if(!(!n.parsedValue&&!y.value))return(n.parsedValue||_.value).format(J.value)}),Ae=k(()=>{if(U.value)return U.value;if(!(!n.parsedValue&&!y.value))return(n.parsedValue||_.value).format(re.value)}),Be=G(!1),Pe=()=>{Be.value=!0},Ve=()=>{Be.value=!1},$e=Ce=>({hour:Ce.hour(),minute:Ce.minute(),second:Ce.second(),year:Ce.year(),month:Ce.month(),date:Ce.date()}),Te=(Ce,pe,ge)=>{const{hour:Ne,minute:ne,second:Ye}=$e(Ce),_t=n.parsedValue?n.parsedValue.hour(Ne).minute(ne).second(Ye):Ce;_.value=_t,D(_.value,!0),ge||(Be.value=pe)},De=Ce=>{const pe=Ot(Ce,J.value).locale(u.value);if(pe.isValid()&&z(pe)){const{year:ge,month:Ne,date:ne}=$e(_.value);_.value=pe.year(ge).month(Ne).date(ne),H.value=null,Be.value=!1,D(_.value,!0)}},qe=Ce=>{const pe=Ot(Ce,re.value).locale(u.value);if(pe.isValid()){if(p&&p(pe.toDate()))return;const{hour:ge,minute:Ne,second:ne}=$e(_.value);_.value=pe.hour(ge).minute(Ne).second(ne),U.value=null,D(_.value,!0)}},Je=Ce=>Ot.isDayjs(Ce)&&Ce.isValid()&&(p?!p(Ce.toDate()):!0),et=Ce=>Q.value==="dates"?Ce.map(pe=>pe.format(n.format)):Ce.format(n.format),Re=Ce=>Ot(Ce,n.format).locale(u.value),Xe=()=>{const Ce=Ot(y.value).locale(u.value);if(!y.value){const pe=S.value;return Ot().hour(pe.hour()).minute(pe.minute()).second(pe.second()).locale(u.value)}return Ce},ct=async()=>{var Ce;["week","month","year","date"].includes(Q.value)&&((Ce=v.value)==null||Ce.focus(),Q.value==="week"&&Pt(ot.down))},wt=Ce=>{const{code:pe}=Ce;[ot.up,ot.down,ot.left,ot.right,ot.home,ot.end,ot.pageUp,ot.pageDown].includes(pe)&&(Pt(pe),Ce.stopPropagation(),Ce.preventDefault()),[ot.enter,ot.space,ot.numpadEnter].includes(pe)&&U.value===null&&H.value===null&&(Ce.preventDefault(),D(_.value,!1))},Pt=Ce=>{var pe;const{up:ge,down:Ne,left:ne,right:Ye,home:_t,end:Ft,pageUp:Pn,pageDown:mn}=ot,Vs={year:{[ge]:-4,[Ne]:4,[ne]:-1,[Ye]:1,offset:(xe,Ge)=>xe.setFullYear(xe.getFullYear()+Ge)},month:{[ge]:-4,[Ne]:4,[ne]:-1,[Ye]:1,offset:(xe,Ge)=>xe.setMonth(xe.getMonth()+Ge)},week:{[ge]:-1,[Ne]:1,[ne]:-1,[Ye]:1,offset:(xe,Ge)=>xe.setDate(xe.getDate()+Ge*7)},date:{[ge]:-7,[Ne]:7,[ne]:-1,[Ye]:1,[_t]:xe=>-xe.getDay(),[Ft]:xe=>-xe.getDay()+6,[Pn]:xe=>-new Date(xe.getFullYear(),xe.getMonth(),0).getDate(),[mn]:xe=>new Date(xe.getFullYear(),xe.getMonth()+1,0).getDate(),offset:(xe,Ge)=>xe.setDate(xe.getDate()+Ge)}},Jn=_.value.toDate();for(;Math.abs(_.value.diff(Jn,"year",!0))<1;){const xe=Vs[ee.value];if(!xe)return;if(xe.offset(Jn,yt(xe[Ce])?xe[Ce](Jn):(pe=xe[Ce])!=null?pe:0),p&&p(Jn))break;const Ge=Ot(Jn).locale(u.value);_.value=Ge,t("pick",Ge,!0);break}},ut=Ce=>{t("panel-change",_.value.toDate(),Ce,B.value)};return Oe(()=>Q.value,Ce=>{if(["month","year"].includes(Ce)){B.value=Ce;return}B.value="date"},{immediate:!0}),Oe(()=>B.value,()=>{f==null||f.updatePopper()}),Oe(()=>y.value,Ce=>{Ce&&(_.value=Xe())},{immediate:!0}),Oe(()=>n.parsedValue,Ce=>{if(Ce){if(Q.value==="dates"||Array.isArray(Ce))return;_.value=Ce}else _.value=Xe()},{immediate:!0}),t("set-picker-option",["isValidValue",Je]),t("set-picker-option",["formatToString",et]),t("set-picker-option",["parseUserInput",Re]),t("set-picker-option",["handleFocusPicker",ct]),(Ce,pe)=>(C(),j("div",{class:M([d(r).b(),d(i).b(),{"has-sidebar":Ce.$slots.sidebar||d(te),"has-time":d(oe)}])},[R("div",{class:M(d(r).e("body-wrapper"))},[we(Ce.$slots,"sidebar",{class:M(d(r).e("sidebar"))}),d(te)?(C(),j("div",{key:0,class:M(d(r).e("sidebar"))},[(C(!0),j(Ke,null,bt(d(h),(ge,Ne)=>(C(),j("button",{key:Ne,type:"button",class:M(d(r).e("shortcut")),onClick:ne=>L(ge)},ve(ge.text),11,rZ))),128))],2)):le("v-if",!0),R("div",{class:M(d(r).e("body"))},[d(oe)?(C(),j("div",{key:0,class:M(d(i).e("time-header"))},[R("span",{class:M(d(i).e("editor-wrap"))},[I(d(Fn),{placeholder:d(l)("el.datepicker.selectDate"),"model-value":d(Ae),size:"small","validate-event":!1,onInput:pe[0]||(pe[0]=ge=>U.value=ge),onChange:qe},null,8,["placeholder","model-value"])],2),pt((C(),j("span",{class:M(d(i).e("editor-wrap"))},[I(d(Fn),{placeholder:d(l)("el.datepicker.selectTime"),"model-value":d(Se),size:"small","validate-event":!1,onFocus:Pe,onInput:pe[1]||(pe[1]=ge=>H.value=ge),onChange:De},null,8,["placeholder","model-value"]),I(d(Kp),{visible:Be.value,format:d(J),"parsed-value":_.value,onPick:Te},null,8,["visible","format","parsed-value"])],2)),[[d(ia),Ve]])],2)):le("v-if",!0),pt(R("div",{class:M([d(i).e("header"),(B.value==="year"||B.value==="month")&&d(i).e("header--bordered")])},[R("span",{class:M(d(i).e("prev-btn"))},[R("button",{type:"button","aria-label":d(l)("el.datepicker.prevYear"),class:M(["d-arrow-left",d(r).e("icon-btn")]),onClick:pe[2]||(pe[2]=ge=>Y(!1))},[I(d(tt),null,{default:N(()=>[I(d(hu))]),_:1})],10,iZ),pt(R("button",{type:"button","aria-label":d(l)("el.datepicker.prevMonth"),class:M([d(r).e("icon-btn"),"arrow-left"]),onClick:pe[3]||(pe[3]=ge=>X(!1))},[I(d(tt),null,{default:N(()=>[I(d(Ka))]),_:1})],10,aZ),[[Vt,B.value==="date"]])],2),R("span",{role:"button",class:M(d(i).e("header-label")),"aria-live":"polite",tabindex:"0",onKeydown:pe[4]||(pe[4]=jt(ge=>ue("year"),["enter"])),onClick:pe[5]||(pe[5]=ge=>ue("year"))},ve(d(K)),35),pt(R("span",{role:"button","aria-live":"polite",tabindex:"0",class:M([d(i).e("header-label"),{active:B.value==="month"}]),onKeydown:pe[6]||(pe[6]=jt(ge=>ue("month"),["enter"])),onClick:pe[7]||(pe[7]=ge=>ue("month"))},ve(d(l)(`el.datepicker.month${d(E)+1}`)),35),[[Vt,B.value==="date"]]),R("span",{class:M(d(i).e("next-btn"))},[pt(R("button",{type:"button","aria-label":d(l)("el.datepicker.nextMonth"),class:M([d(r).e("icon-btn"),"arrow-right"]),onClick:pe[8]||(pe[8]=ge=>X(!0))},[I(d(tt),null,{default:N(()=>[I(d(Ns))]),_:1})],10,oZ),[[Vt,B.value==="date"]]),R("button",{type:"button","aria-label":d(l)("el.datepicker.nextYear"),class:M([d(r).e("icon-btn"),"d-arrow-right"]),onClick:pe[9]||(pe[9]=ge=>Y(!0))},[I(d(tt),null,{default:N(()=>[I(d(pu))]),_:1})],10,lZ)],2)],2),[[Vt,B.value!=="time"]]),R("div",{class:M(d(r).e("content")),onKeydown:wt},[B.value==="date"?(C(),he(xy,{key:0,ref_key:"currentViewRef",ref:v,"selection-mode":d(Q),date:_.value,"parsed-value":Ce.parsedValue,"disabled-date":d(p),"cell-class-name":d(g),onPick:V},null,8,["selection-mode","date","parsed-value","disabled-date","cell-class-name"])):le("v-if",!0),B.value==="year"?(C(),he(sZ,{key:1,ref_key:"currentViewRef",ref:v,date:_.value,"disabled-date":d(p),"parsed-value":Ce.parsedValue,onPick:_e},null,8,["date","disabled-date","parsed-value"])):le("v-if",!0),B.value==="month"?(C(),he(ky,{key:2,ref_key:"currentViewRef",ref:v,date:_.value,"parsed-value":Ce.parsedValue,"disabled-date":d(p),onPick:ie},null,8,["date","parsed-value","disabled-date"])):le("v-if",!0)],34)],2)],2),pt(R("div",{class:M(d(r).e("footer"))},[pt(I(d(bn),{text:"",size:"small",class:M(d(r).e("link-btn")),disabled:d(ke),onClick:Ee},{default:N(()=>[Fe(ve(d(l)("el.datepicker.now")),1)]),_:1},8,["class","disabled"]),[[Vt,d(Q)!=="dates"]]),I(d(bn),{plain:"",size:"small",class:M(d(r).e("link-btn")),disabled:d(ae),onClick:Ie},{default:N(()=>[Fe(ve(d(l)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled"])],2),[[Vt,d(de)&&B.value==="date"]])],2))}});var cZ=ze(uZ,[["__file","panel-date-pick.vue"]]);const dZ=He({...wP,...SP}),fZ=e=>{const{emit:t}=It(),n=rl(),s=us();return i=>{const a=yt(i.value)?i.value():i.value;if(a){t("pick",[Ot(a[0]).locale(e.value),Ot(a[1]).locale(e.value)]);return}i.onClick&&i.onClick({attrs:n,slots:s,emit:t})}},xP=(e,{defaultValue:t,leftDate:n,rightDate:s,unit:r,onParsedValueChanged:i})=>{const{emit:a}=It(),{pickerNs:o}=Qe(c1),l=Le("date-range-picker"),{t:u,lang:c}=Wt(),f=fZ(c),h=G(),p=G(),g=G({endDate:null,selecting:!1}),m=w=>{g.value=w},y=(w=!1)=>{const T=d(h),S=d(p);Cy([T,S])&&a("pick",[T,S],w)},v=w=>{g.value.selecting=w,w||(g.value.endDate=null)},_=()=>{const[w,T]=EP(d(t),{lang:d(c),unit:r,unlinkPanels:e.unlinkPanels});h.value=void 0,p.value=void 0,n.value=w,s.value=T};return Oe(t,w=>{w&&_()},{immediate:!0}),Oe(()=>e.parsedValue,w=>{if(st(w)&&w.length===2){const[T,S]=w;h.value=T,n.value=T,p.value=S,i(d(h),d(p))}else _()},{immediate:!0}),{minDate:h,maxDate:p,rangeState:g,lang:c,ppNs:o,drpNs:l,handleChangeRange:m,handleRangeConfirm:y,handleShortcutClick:f,onSelect:v,t:u}},hZ=["onClick"],pZ=["aria-label"],mZ=["aria-label"],gZ=["disabled","aria-label"],vZ=["disabled","aria-label"],yZ=["disabled","aria-label"],bZ=["disabled","aria-label"],_Z=["aria-label"],TZ=["aria-label"],Ph="month",wZ=Z({__name:"panel-date-range",props:dZ,emits:["pick","set-picker-option","calendar-change","panel-change"],setup(e,{emit:t}){const n=e,s=Qe("EP_PICKER_BASE"),{disabledDate:r,cellClassName:i,format:a,defaultTime:o,clearable:l}=s.props,u=yn(s.props,"shortcuts"),c=yn(s.props,"defaultValue"),{lang:f}=Wt(),h=G(Ot().locale(f.value)),p=G(Ot().locale(f.value).add(1,Ph)),{minDate:g,maxDate:m,rangeState:y,ppNs:v,drpNs:_,handleChangeRange:w,handleRangeConfirm:T,handleShortcutClick:S,onSelect:E,t:$}=xP(n,{defaultValue:c,leftDate:h,rightDate:p,unit:Ph,onParsedValueChanged:pe}),P=G({min:null,max:null}),U=G({min:null,max:null}),H=k(()=>`${h.value.year()} ${$("el.datepicker.year")} ${$(`el.datepicker.month${h.value.month()+1}`)}`),z=k(()=>`${p.value.year()} ${$("el.datepicker.year")} ${$(`el.datepicker.month${p.value.month()+1}`)}`),W=k(()=>h.value.year()),D=k(()=>h.value.month()),V=k(()=>p.value.year()),X=k(()=>p.value.month()),Y=k(()=>!!u.value.length),B=k(()=>P.value.min!==null?P.value.min:g.value?g.value.format(te.value):""),K=k(()=>P.value.max!==null?P.value.max:m.value||g.value?(m.value||g.value).format(te.value):""),L=k(()=>U.value.min!==null?U.value.min:g.value?g.value.format(ee.value):""),Q=k(()=>U.value.max!==null?U.value.max:m.value||g.value?(m.value||g.value).format(ee.value):""),ee=k(()=>n.timeFormat||PA(a)),te=k(()=>n.dateFormat||AA(a)),ie=ge=>Cy(ge)&&(r?!r(ge[0].toDate())&&!r(ge[1].toDate()):!0),_e=()=>{h.value=h.value.subtract(1,"year"),n.unlinkPanels||(p.value=h.value.add(1,"month")),J("year")},ue=()=>{h.value=h.value.subtract(1,"month"),n.unlinkPanels||(p.value=h.value.add(1,"month")),J("month")},oe=()=>{n.unlinkPanels?p.value=p.value.add(1,"year"):(h.value=h.value.add(1,"year"),p.value=h.value.add(1,"month")),J("year")},de=()=>{n.unlinkPanels?p.value=p.value.add(1,"month"):(h.value=h.value.add(1,"month"),p.value=h.value.add(1,"month")),J("month")},ae=()=>{h.value=h.value.add(1,"year"),J("year")},Ie=()=>{h.value=h.value.add(1,"month"),J("month")},ke=()=>{p.value=p.value.subtract(1,"year"),J("year")},Ee=()=>{p.value=p.value.subtract(1,"month"),J("month")},J=ge=>{t("panel-change",[h.value.toDate(),p.value.toDate()],ge)},re=k(()=>{const ge=(D.value+1)%12,Ne=D.value+1>=12?1:0;return n.unlinkPanels&&new Date(W.value+Ne,ge)<new Date(V.value,X.value)}),Se=k(()=>n.unlinkPanels&&V.value*12+X.value-(W.value*12+D.value+1)>=12),Ae=k(()=>!(g.value&&m.value&&!y.value.selecting&&Cy([g.value,m.value]))),Be=k(()=>n.type==="datetime"||n.type==="datetimerange"),Pe=(ge,Ne)=>{if(ge)return o?Ot(o[Ne]||o).locale(f.value).year(ge.year()).month(ge.month()).date(ge.date()):ge},Ve=(ge,Ne=!0)=>{const ne=ge.minDate,Ye=ge.maxDate,_t=Pe(ne,0),Ft=Pe(Ye,1);m.value===Ft&&g.value===_t||(t("calendar-change",[ne.toDate(),Ye&&Ye.toDate()]),m.value=Ft,g.value=_t,!(!Ne||Be.value)&&T())},$e=G(!1),Te=G(!1),De=()=>{$e.value=!1},qe=()=>{Te.value=!1},Je=(ge,Ne)=>{P.value[Ne]=ge;const ne=Ot(ge,te.value).locale(f.value);if(ne.isValid()){if(r&&r(ne.toDate()))return;Ne==="min"?(h.value=ne,g.value=(g.value||h.value).year(ne.year()).month(ne.month()).date(ne.date()),!n.unlinkPanels&&(!m.value||m.value.isBefore(g.value))&&(p.value=ne.add(1,"month"),m.value=g.value.add(1,"month"))):(p.value=ne,m.value=(m.value||p.value).year(ne.year()).month(ne.month()).date(ne.date()),!n.unlinkPanels&&(!g.value||g.value.isAfter(m.value))&&(h.value=ne.subtract(1,"month"),g.value=m.value.subtract(1,"month")))}},et=(ge,Ne)=>{P.value[Ne]=null},Re=(ge,Ne)=>{U.value[Ne]=ge;const ne=Ot(ge,ee.value).locale(f.value);ne.isValid()&&(Ne==="min"?($e.value=!0,g.value=(g.value||h.value).hour(ne.hour()).minute(ne.minute()).second(ne.second()),(!m.value||m.value.isBefore(g.value))&&(m.value=g.value)):(Te.value=!0,m.value=(m.value||p.value).hour(ne.hour()).minute(ne.minute()).second(ne.second()),p.value=m.value,m.value&&m.value.isBefore(g.value)&&(g.value=m.value)))},Xe=(ge,Ne)=>{U.value[Ne]=null,Ne==="min"?(h.value=g.value,$e.value=!1):(p.value=m.value,Te.value=!1)},ct=(ge,Ne,ne)=>{U.value.min||(ge&&(h.value=ge,g.value=(g.value||h.value).hour(ge.hour()).minute(ge.minute()).second(ge.second())),ne||($e.value=Ne),(!m.value||m.value.isBefore(g.value))&&(m.value=g.value,p.value=ge))},wt=(ge,Ne,ne)=>{U.value.max||(ge&&(p.value=ge,m.value=(m.value||p.value).hour(ge.hour()).minute(ge.minute()).second(ge.second())),ne||(Te.value=Ne),m.value&&m.value.isBefore(g.value)&&(g.value=m.value))},Pt=()=>{h.value=EP(d(c),{lang:d(f),unit:"month",unlinkPanels:n.unlinkPanels})[0],p.value=h.value.add(1,"month"),t("pick",null)},ut=ge=>st(ge)?ge.map(Ne=>Ne.format(a)):ge.format(a),Ce=ge=>st(ge)?ge.map(Ne=>Ot(Ne,a).locale(f.value)):Ot(ge,a).locale(f.value);function pe(ge,Ne){if(n.unlinkPanels&&Ne){const ne=(ge==null?void 0:ge.year())||0,Ye=(ge==null?void 0:ge.month())||0,_t=Ne.year(),Ft=Ne.month();p.value=ne===_t&&Ye===Ft?Ne.add(1,Ph):Ne}else p.value=h.value.add(1,Ph),Ne&&(p.value=p.value.hour(Ne.hour()).minute(Ne.minute()).second(Ne.second()))}return t("set-picker-option",["isValidValue",ie]),t("set-picker-option",["parseUserInput",Ce]),t("set-picker-option",["formatToString",ut]),t("set-picker-option",["handleClear",Pt]),(ge,Ne)=>(C(),j("div",{class:M([d(v).b(),d(_).b(),{"has-sidebar":ge.$slots.sidebar||d(Y),"has-time":d(Be)}])},[R("div",{class:M(d(v).e("body-wrapper"))},[we(ge.$slots,"sidebar",{class:M(d(v).e("sidebar"))}),d(Y)?(C(),j("div",{key:0,class:M(d(v).e("sidebar"))},[(C(!0),j(Ke,null,bt(d(u),(ne,Ye)=>(C(),j("button",{key:Ye,type:"button",class:M(d(v).e("shortcut")),onClick:_t=>d(S)(ne)},ve(ne.text),11,hZ))),128))],2)):le("v-if",!0),R("div",{class:M(d(v).e("body"))},[d(Be)?(C(),j("div",{key:0,class:M(d(_).e("time-header"))},[R("span",{class:M(d(_).e("editors-wrap"))},[R("span",{class:M(d(_).e("time-picker-wrap"))},[I(d(Fn),{size:"small",disabled:d(y).selecting,placeholder:d($)("el.datepicker.startDate"),class:M(d(_).e("editor")),"model-value":d(B),"validate-event":!1,onInput:Ne[0]||(Ne[0]=ne=>Je(ne,"min")),onChange:Ne[1]||(Ne[1]=ne=>et(ne,"min"))},null,8,["disabled","placeholder","class","model-value"])],2),pt((C(),j("span",{class:M(d(_).e("time-picker-wrap"))},[I(d(Fn),{size:"small",class:M(d(_).e("editor")),disabled:d(y).selecting,placeholder:d($)("el.datepicker.startTime"),"model-value":d(L),"validate-event":!1,onFocus:Ne[2]||(Ne[2]=ne=>$e.value=!0),onInput:Ne[3]||(Ne[3]=ne=>Re(ne,"min")),onChange:Ne[4]||(Ne[4]=ne=>Xe(ne,"min"))},null,8,["class","disabled","placeholder","model-value"]),I(d(Kp),{visible:$e.value,format:d(ee),"datetime-role":"start","parsed-value":h.value,onPick:ct},null,8,["visible","format","parsed-value"])],2)),[[d(ia),De]])],2),R("span",null,[I(d(tt),null,{default:N(()=>[I(d(Ns))]),_:1})]),R("span",{class:M([d(_).e("editors-wrap"),"is-right"])},[R("span",{class:M(d(_).e("time-picker-wrap"))},[I(d(Fn),{size:"small",class:M(d(_).e("editor")),disabled:d(y).selecting,placeholder:d($)("el.datepicker.endDate"),"model-value":d(K),readonly:!d(g),"validate-event":!1,onInput:Ne[5]||(Ne[5]=ne=>Je(ne,"max")),onChange:Ne[6]||(Ne[6]=ne=>et(ne,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"])],2),pt((C(),j("span",{class:M(d(_).e("time-picker-wrap"))},[I(d(Fn),{size:"small",class:M(d(_).e("editor")),disabled:d(y).selecting,placeholder:d($)("el.datepicker.endTime"),"model-value":d(Q),readonly:!d(g),"validate-event":!1,onFocus:Ne[7]||(Ne[7]=ne=>d(g)&&(Te.value=!0)),onInput:Ne[8]||(Ne[8]=ne=>Re(ne,"max")),onChange:Ne[9]||(Ne[9]=ne=>Xe(ne,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"]),I(d(Kp),{"datetime-role":"end",visible:Te.value,format:d(ee),"parsed-value":p.value,onPick:wt},null,8,["visible","format","parsed-value"])],2)),[[d(ia),qe]])],2)],2)):le("v-if",!0),R("div",{class:M([[d(v).e("content"),d(_).e("content")],"is-left"])},[R("div",{class:M(d(_).e("header"))},[R("button",{type:"button",class:M([d(v).e("icon-btn"),"d-arrow-left"]),"aria-label":d($)("el.datepicker.prevYear"),onClick:_e},[I(d(tt),null,{default:N(()=>[I(d(hu))]),_:1})],10,pZ),R("button",{type:"button",class:M([d(v).e("icon-btn"),"arrow-left"]),"aria-label":d($)("el.datepicker.prevMonth"),onClick:ue},[I(d(tt),null,{default:N(()=>[I(d(Ka))]),_:1})],10,mZ),ge.unlinkPanels?(C(),j("button",{key:0,type:"button",disabled:!d(Se),class:M([[d(v).e("icon-btn"),{"is-disabled":!d(Se)}],"d-arrow-right"]),"aria-label":d($)("el.datepicker.nextYear"),onClick:ae},[I(d(tt),null,{default:N(()=>[I(d(pu))]),_:1})],10,gZ)):le("v-if",!0),ge.unlinkPanels?(C(),j("button",{key:1,type:"button",disabled:!d(re),class:M([[d(v).e("icon-btn"),{"is-disabled":!d(re)}],"arrow-right"]),"aria-label":d($)("el.datepicker.nextMonth"),onClick:Ie},[I(d(tt),null,{default:N(()=>[I(d(Ns))]),_:1})],10,vZ)):le("v-if",!0),R("div",null,ve(d(H)),1)],2),I(xy,{"selection-mode":"range",date:h.value,"min-date":d(g),"max-date":d(m),"range-state":d(y),"disabled-date":d(r),"cell-class-name":d(i),onChangerange:d(w),onPick:Ve,onSelect:d(E)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onSelect"])],2),R("div",{class:M([[d(v).e("content"),d(_).e("content")],"is-right"])},[R("div",{class:M(d(_).e("header"))},[ge.unlinkPanels?(C(),j("button",{key:0,type:"button",disabled:!d(Se),class:M([[d(v).e("icon-btn"),{"is-disabled":!d(Se)}],"d-arrow-left"]),"aria-label":d($)("el.datepicker.prevYear"),onClick:ke},[I(d(tt),null,{default:N(()=>[I(d(hu))]),_:1})],10,yZ)):le("v-if",!0),ge.unlinkPanels?(C(),j("button",{key:1,type:"button",disabled:!d(re),class:M([[d(v).e("icon-btn"),{"is-disabled":!d(re)}],"arrow-left"]),"aria-label":d($)("el.datepicker.prevMonth"),onClick:Ee},[I(d(tt),null,{default:N(()=>[I(d(Ka))]),_:1})],10,bZ)):le("v-if",!0),R("button",{type:"button","aria-label":d($)("el.datepicker.nextYear"),class:M([d(v).e("icon-btn"),"d-arrow-right"]),onClick:oe},[I(d(tt),null,{default:N(()=>[I(d(pu))]),_:1})],10,_Z),R("button",{type:"button",class:M([d(v).e("icon-btn"),"arrow-right"]),"aria-label":d($)("el.datepicker.nextMonth"),onClick:de},[I(d(tt),null,{default:N(()=>[I(d(Ns))]),_:1})],10,TZ),R("div",null,ve(d(z)),1)],2),I(xy,{"selection-mode":"range",date:p.value,"min-date":d(g),"max-date":d(m),"range-state":d(y),"disabled-date":d(r),"cell-class-name":d(i),onChangerange:d(w),onPick:Ve,onSelect:d(E)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onSelect"])],2)],2)],2),d(Be)?(C(),j("div",{key:0,class:M(d(v).e("footer"))},[d(l)?(C(),he(d(bn),{key:0,text:"",size:"small",class:M(d(v).e("link-btn")),onClick:Pt},{default:N(()=>[Fe(ve(d($)("el.datepicker.clear")),1)]),_:1},8,["class"])):le("v-if",!0),I(d(bn),{plain:"",size:"small",class:M(d(v).e("link-btn")),disabled:d(Ae),onClick:Ne[10]||(Ne[10]=ne=>d(T)(!1))},{default:N(()=>[Fe(ve(d($)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled"])],2)):le("v-if",!0)],2))}});var SZ=ze(wZ,[["__file","panel-date-range.vue"]]);const CZ=He({...SP}),EZ=["pick","set-picker-option","calendar-change"],xZ=({unlinkPanels:e,leftDate:t,rightDate:n})=>{const{t:s}=Wt(),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}},kZ=["onClick"],IZ=["disabled"],OZ=["disabled"],$h="year",AZ=Z({name:"DatePickerMonthRange"}),PZ=Z({...AZ,props:CZ,emits:EZ,setup(e,{emit:t}){const n=e,{lang:s}=Wt(),r=Qe("EP_PICKER_BASE"),{shortcuts:i,disabledDate:a,format:o}=r.props,l=yn(r.props,"defaultValue"),u=G(Ot().locale(s.value)),c=G(Ot().locale(s.value).add(1,$h)),{minDate:f,maxDate:h,rangeState:p,ppNs:g,drpNs:m,handleChangeRange:y,handleRangeConfirm:v,handleShortcutClick:_,onSelect:w}=xP(n,{defaultValue:l,leftDate:u,rightDate:c,unit:$h,onParsedValueChanged:Y}),T=k(()=>!!i.length),{leftPrevYear:S,rightNextYear:E,leftNextYear:$,rightPrevYear:P,leftLabel:U,rightLabel:H,leftYear:z,rightYear:W}=xZ({unlinkPanels:yn(n,"unlinkPanels"),leftDate:u,rightDate:c}),D=k(()=>n.unlinkPanels&&W.value>z.value+1),V=(B,K=!0)=>{const L=B.minDate,Q=B.maxDate;h.value===Q&&f.value===L||(t("calendar-change",[L.toDate(),Q&&Q.toDate()]),h.value=Q,f.value=L,K&&v())},X=B=>B.map(K=>K.format(o));function Y(B,K){if(n.unlinkPanels&&K){const L=(B==null?void 0:B.year())||0,Q=K.year();c.value=L===Q?K.add(1,$h):K}else c.value=u.value.add(1,$h)}return t("set-picker-option",["formatToString",X]),(B,K)=>(C(),j("div",{class:M([d(g).b(),d(m).b(),{"has-sidebar":!!B.$slots.sidebar||d(T)}])},[R("div",{class:M(d(g).e("body-wrapper"))},[we(B.$slots,"sidebar",{class:M(d(g).e("sidebar"))}),d(T)?(C(),j("div",{key:0,class:M(d(g).e("sidebar"))},[(C(!0),j(Ke,null,bt(d(i),(L,Q)=>(C(),j("button",{key:Q,type:"button",class:M(d(g).e("shortcut")),onClick:ee=>d(_)(L)},ve(L.text),11,kZ))),128))],2)):le("v-if",!0),R("div",{class:M(d(g).e("body"))},[R("div",{class:M([[d(g).e("content"),d(m).e("content")],"is-left"])},[R("div",{class:M(d(m).e("header"))},[R("button",{type:"button",class:M([d(g).e("icon-btn"),"d-arrow-left"]),onClick:K[0]||(K[0]=(...L)=>d(S)&&d(S)(...L))},[I(d(tt),null,{default:N(()=>[I(d(hu))]),_:1})],2),B.unlinkPanels?(C(),j("button",{key:0,type:"button",disabled:!d(D),class:M([[d(g).e("icon-btn"),{[d(g).is("disabled")]:!d(D)}],"d-arrow-right"]),onClick:K[1]||(K[1]=(...L)=>d($)&&d($)(...L))},[I(d(tt),null,{default:N(()=>[I(d(pu))]),_:1})],10,IZ)):le("v-if",!0),R("div",null,ve(d(U)),1)],2),I(ky,{"selection-mode":"range",date:u.value,"min-date":d(f),"max-date":d(h),"range-state":d(p),"disabled-date":d(a),onChangerange:d(y),onPick:V,onSelect:d(w)},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onSelect"])],2),R("div",{class:M([[d(g).e("content"),d(m).e("content")],"is-right"])},[R("div",{class:M(d(m).e("header"))},[B.unlinkPanels?(C(),j("button",{key:0,type:"button",disabled:!d(D),class:M([[d(g).e("icon-btn"),{"is-disabled":!d(D)}],"d-arrow-left"]),onClick:K[2]||(K[2]=(...L)=>d(P)&&d(P)(...L))},[I(d(tt),null,{default:N(()=>[I(d(hu))]),_:1})],10,OZ)):le("v-if",!0),R("button",{type:"button",class:M([d(g).e("icon-btn"),"d-arrow-right"]),onClick:K[3]||(K[3]=(...L)=>d(E)&&d(E)(...L))},[I(d(tt),null,{default:N(()=>[I(d(pu))]),_:1})],2),R("div",null,ve(d(H)),1)],2),I(ky,{"selection-mode":"range",date:c.value,"min-date":d(f),"max-date":d(h),"range-state":d(p),"disabled-date":d(a),onChangerange:d(y),onPick:V,onSelect:d(w)},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onSelect"])],2)],2)],2)],2))}});var $Z=ze(PZ,[["__file","panel-month-range.vue"]]);const NZ=function(e){switch(e){case"daterange":case"datetimerange":return SZ;case"monthrange":return $Z;default:return cZ}};Ot.extend(WA);Ot.extend(vJ);Ot.extend(n1);Ot.extend(bJ);Ot.extend(TJ);Ot.extend(SJ);Ot.extend(EJ);Ot.extend(kJ);var MZ=Z({name:"ElDatePicker",install:null,props:IJ,emits:["update:modelValue"],setup(e,{expose:t,emit:n,slots:s}){const r=Le("picker-panel");Lt("ElPopperOptions",Ct(yn(e,"popperOptions"))),Lt(c1,{slots:s,pickerNs:r});const i=G();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:wG[e.type]||Pl,c=NZ(e.type);return I(MA,Rt(e,{format:u,type:e.type,ref:i,"onUpdate:modelValue":o}),{default:f=>I(c,f,null),"range-separator":s["range-separator"]})}}});const up=MZ;up.install=e=>{e.component(up.name,up)};const kP=up,f1=Symbol("elDescriptions");var bc=Z({name:"ElDescriptionsCell",props:{cell:{type:Object},tag:{type:String,default:"td"},type:{type:String}},setup(){return{descriptions:Qe(f1,{})}},render(){var e,t,n,s,r,i,a;const o=qj(this.cell),l=(((e=this.cell)==null?void 0:e.dirs)||[]).map(S=>{const{dir:E,arg:$,modifiers:P,value:U}=S;return[E,U,$,P]}),{border:u,direction:c}=this.descriptions,f=c==="vertical",h=((s=(n=(t=this.cell)==null?void 0:t.children)==null?void 0:n.label)==null?void 0:s.call(n))||o.label,p=(a=(i=(r=this.cell)==null?void 0:r.children)==null?void 0:i.default)==null?void 0:a.call(i),g=o.span,m=o.align?`is-${o.align}`:"",y=o.labelAlign?`is-${o.labelAlign}`:m,v=o.className,_=o.labelClassName,w={width:Mn(o.width),minWidth:Mn(o.minWidth)},T=Le("descriptions");switch(this.type){case"label":return pt(lt(this.tag,{style:w,class:[T.e("cell"),T.e("label"),T.is("bordered-label",u),T.is("vertical-label",f),y,_],colSpan:f?g:1},h),l);case"content":return pt(lt(this.tag,{style:w,class:[T.e("cell"),T.e("content"),T.is("bordered-content",u),T.is("vertical-content",f),m,v],colSpan:f?g:g*2-1},p),l);default:return pt(lt("td",{style:w,class:[T.e("cell"),m],colSpan:g},[Un(h)?void 0:lt("span",{class:[T.e("label"),_]},h),lt("span",{class:[T.e("content"),v]},p)]),l)}}});const RZ=He({row:{type:me(Array),default:()=>[]}}),LZ={key:1},DZ=Z({name:"ElDescriptionsRow"}),FZ=Z({...DZ,props:RZ,setup(e){const t=Qe(f1,{});return(n,s)=>d(t).direction==="vertical"?(C(),j(Ke,{key:0},[R("tr",null,[(C(!0),j(Ke,null,bt(n.row,(r,i)=>(C(),he(d(bc),{key:`tr1-${i}`,cell:r,tag:"th",type:"label"},null,8,["cell"]))),128))]),R("tr",null,[(C(!0),j(Ke,null,bt(n.row,(r,i)=>(C(),he(d(bc),{key:`tr2-${i}`,cell:r,tag:"td",type:"content"},null,8,["cell"]))),128))])],64)):(C(),j("tr",LZ,[(C(!0),j(Ke,null,bt(n.row,(r,i)=>(C(),j(Ke,{key:`tr3-${i}`},[d(t).border?(C(),j(Ke,{key:0},[I(d(bc),{cell:r,tag:"td",type:"label"},null,8,["cell"]),I(d(bc),{cell:r,tag:"td",type:"content"},null,8,["cell"])],64)):(C(),he(d(bc),{key:1,cell:r,tag:"td",type:"both"},null,8,["cell"]))],64))),128))]))}});var BZ=ze(FZ,[["__file","descriptions-row.vue"]]);const VZ=He({border:{type:Boolean,default:!1},column:{type:Number,default:3},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},size:os,title:{type:String,default:""},extra:{type:String,default:""}}),UZ=Z({name:"ElDescriptions"}),HZ=Z({...UZ,props:VZ,setup(e){const t=e,n=Le("descriptions"),s=Xn(),r=us();Lt(f1,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=Ho(r.default()).filter(p=>{var g;return((g=p==null?void 0:p.type)==null?void 0:g.name)==="ElDescriptionsItem"}),u=[];let c=[],f=t.column,h=0;return l.forEach((p,g)=>{var m;const y=((m=p.props)==null?void 0:m.span)||1;if(g<l.length-1&&(h+=y>f?f:y),g===l.length-1){const v=t.column-h%t.column;c.push(a(p,v,f,!0)),u.push(c);return}y<f?(f-=y,c.push(p)):(c.push(a(p,y,f)),u.push(c),f=t.column,c=[])}),u};return(l,u)=>(C(),j("div",{class:M(d(i))},[l.title||l.extra||l.$slots.title||l.$slots.extra?(C(),j("div",{key:0,class:M(d(n).e("header"))},[R("div",{class:M(d(n).e("title"))},[we(l.$slots,"title",{},()=>[Fe(ve(l.title),1)])],2),R("div",{class:M(d(n).e("extra"))},[we(l.$slots,"extra",{},()=>[Fe(ve(l.extra),1)])],2)],2)):le("v-if",!0),R("div",{class:M(d(n).e("body"))},[R("table",{class:M([d(n).e("table"),d(n).is("bordered",l.border)])},[R("tbody",null,[(C(!0),j(Ke,null,bt(o(),(c,f)=>(C(),he(BZ,{key:f,row:c},null,8,["row"]))),128))])],2)],2)],2))}});var zZ=ze(HZ,[["__file","description.vue"]]);const jZ=He({label:{type:String,default:""},span:{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:""}}),IP=Z({name:"ElDescriptionsItem",props:jZ}),KZ=At(zZ,{DescriptionsItem:IP}),WZ=In(IP),qZ=He({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:me([String,Array,Object])},zIndex:{type:me([String,Number])}}),GZ={click:e=>e instanceof MouseEvent},YZ="overlay";var XZ=Z({name:"ElOverlay",props:qZ,emits:GZ,setup(e,{slots:t,emit:n}){const s=Le(YZ),r=l=>{n("click",l)},{onClick:i,onMousedown:a,onMouseup:o}=j_(e.customMaskEvent?void 0:r);return()=>e.mask?I("div",{class:[s.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:i,onMousedown:a,onMouseup:o},[we(t,"default")],Tr.STYLE|Tr.CLASS|Tr.PROPS,["onClick","onMouseup","onMousedown"]):lt("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[we(t,"default")])}});const h1=XZ,OP=Symbol("dialogInjectionKey"),AP=He({center:Boolean,alignCenter:Boolean,closeIcon:{type:sn},customClass:{type:String,default:""},draggable:Boolean,fullscreen:Boolean,showClose:{type:Boolean,default:!0},title:{type:String,default:""},ariaLevel:{type:String,default:"2"}}),QZ={close:()=>!0},JZ=["aria-level"],ZZ=["aria-label"],eee=["id"],tee=Z({name:"ElDialogContent"}),nee=Z({...tee,props:AP,emits:QZ,setup(e){const t=e,{t:n}=Wt(),{Close:s}=bO,{dialogRef:r,headerRef:i,bodyId:a,ns:o,style:l}=Qe(OP),{focusTrapRef:u}=Qe(J_),c=k(()=>[o.b(),o.is("fullscreen",t.fullscreen),o.is("draggable",t.draggable),o.is("align-center",t.alignCenter),{[o.m("center")]:t.center},t.customClass]),f=Zm(u,r),h=k(()=>t.draggable);return TO(r,i,h),(p,g)=>(C(),j("div",{ref:d(f),class:M(d(c)),style:rt(d(l)),tabindex:"-1"},[R("header",{ref_key:"headerRef",ref:i,class:M(d(o).e("header"))},[we(p.$slots,"header",{},()=>[R("span",{role:"heading","aria-level":p.ariaLevel,class:M(d(o).e("title"))},ve(p.title),11,JZ)]),p.showClose?(C(),j("button",{key:0,"aria-label":d(n)("el.dialog.close"),class:M(d(o).e("headerbtn")),type:"button",onClick:g[0]||(g[0]=m=>p.$emit("close"))},[I(d(tt),{class:M(d(o).e("close"))},{default:N(()=>[(C(),he(Nt(p.closeIcon||d(s))))]),_:1},8,["class"])],10,ZZ)):le("v-if",!0)],2),R("div",{id:d(a),class:M(d(o).e("body"))},[we(p.$slots,"default")],10,eee),p.$slots.footer?(C(),j("footer",{key:0,class:M(d(o).e("footer"))},[we(p.$slots,"footer")],2)):le("v-if",!0)],6))}});var see=ze(nee,[["__file","dialog-content.vue"]]);const PP=He({...AP,appendToBody:Boolean,appendTo:{type:me(String),default:"body"},beforeClose:{type:me(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:{type:Boolean,default:!1},headerAriaLevel:{type:String,default:"2"}}),$P={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[$t]:e=>Gn(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},NP=(e,t)=>{var n;const r=It().emit,{nextZIndex:i}=Wu();let a="";const o=tr(),l=tr(),u=G(!1),c=G(!1),f=G(!1),h=G((n=e.zIndex)!=null?n:i());let p,g;const m=ag("namespace",qc),y=k(()=>{const X={},Y=`--${m.value}-dialog`;return e.fullscreen||(e.top&&(X[`${Y}-margin-top`]=e.top),e.width&&(X[`${Y}-width`]=Mn(e.width))),X}),v=k(()=>e.alignCenter?{display:"flex"}:{});function _(){r("opened")}function w(){r("closed"),r($t,!1),e.destroyOnClose&&(f.value=!1)}function T(){r("close")}function S(){g==null||g(),p==null||p(),e.openDelay&&e.openDelay>0?{stop:p}=Xo(()=>U(),e.openDelay):U()}function E(){p==null||p(),g==null||g(),e.closeDelay&&e.closeDelay>0?{stop:g}=Xo(()=>H(),e.closeDelay):H()}function $(){function X(Y){Y||(c.value=!0,u.value=!1)}e.beforeClose?e.beforeClose(X):E()}function P(){e.closeOnClickModal&&$()}function U(){Kt&&(u.value=!0)}function H(){u.value=!1}function z(){r("openAutoFocus")}function W(){r("closeAutoFocus")}function D(X){var Y;((Y=X.detail)==null?void 0:Y.focusReason)==="pointer"&&X.preventDefault()}e.lockScroll&&CO(u);function V(){e.closeOnPressEscape&&$()}return Oe(()=>e.modelValue,X=>{X?(c.value=!1,S(),f.value=!0,h.value=oO(e.zIndex)?i():h.value++,at(()=>{r("open"),t.value&&(t.value.scrollTop=0)})):u.value&&E()}),Oe(()=>e.fullscreen,X=>{t.value&&(X?(a=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=a)}),vt(()=>{e.modelValue&&(u.value=!0,f.value=!0,S())}),{afterEnter:_,afterLeave:w,beforeLeave:T,handleClose:$,onModalClick:P,close:E,doClose:H,onOpenAutoFocus:z,onCloseAutoFocus:W,onCloseRequested:V,onFocusoutPrevented:D,titleId:o,bodyId:l,closed:c,style:y,overlayDialogStyle:v,rendered:f,visible:u,zIndex:h}},ree=["aria-label","aria-labelledby","aria-describedby"],iee=Z({name:"ElDialog",inheritAttrs:!1}),aee=Z({...iee,props:PP,emits:$P,setup(e,{expose:t}){const n=e,s=us();Ii({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)),Ii({scope:"el-dialog",from:"custom-class",replacement:"class",version:"2.3.0",ref:"https://element-plus.org/en-US/component/dialog.html#attributes",type:"Attribute"},k(()=>!!n.customClass));const r=Le("dialog"),i=G(),a=G(),o=G(),{visible:l,titleId:u,bodyId:c,style:f,overlayDialogStyle:h,rendered:p,zIndex:g,afterEnter:m,afterLeave:y,beforeLeave:v,handleClose:_,onModalClick:w,onOpenAutoFocus:T,onCloseAutoFocus:S,onCloseRequested:E,onFocusoutPrevented:$}=NP(n,i);Lt(OP,{dialogRef:i,headerRef:a,bodyId:c,ns:r,rendered:p,style:f});const P=j_(w),U=k(()=>n.draggable&&!n.fullscreen);return t({visible:l,dialogContentRef:o}),(H,z)=>(C(),he(rf,{to:H.appendTo,disabled:H.appendTo!=="body"?!1:!H.appendToBody},[I(Rn,{name:"dialog-fade",onAfterEnter:d(m),onAfterLeave:d(y),onBeforeLeave:d(v),persisted:""},{default:N(()=>[pt(I(d(h1),{"custom-mask-event":"",mask:H.modal,"overlay-class":H.modalClass,"z-index":d(g)},{default:N(()=>[R("div",{role:"dialog","aria-modal":"true","aria-label":H.title||void 0,"aria-labelledby":H.title?void 0:d(u),"aria-describedby":d(c),class:M(`${d(r).namespace.value}-overlay-dialog`),style:rt(d(h)),onClick:z[0]||(z[0]=(...W)=>d(P).onClick&&d(P).onClick(...W)),onMousedown:z[1]||(z[1]=(...W)=>d(P).onMousedown&&d(P).onMousedown(...W)),onMouseup:z[2]||(z[2]=(...W)=>d(P).onMouseup&&d(P).onMouseup(...W))},[I(d(ug),{loop:"",trapped:d(l),"focus-start-el":"container",onFocusAfterTrapped:d(T),onFocusAfterReleased:d(S),onFocusoutPrevented:d($),onReleaseRequested:d(E)},{default:N(()=>[d(p)?(C(),he(see,Rt({key:0,ref_key:"dialogContentRef",ref:o},H.$attrs,{"custom-class":H.customClass,center:H.center,"align-center":H.alignCenter,"close-icon":H.closeIcon,draggable:d(U),fullscreen:H.fullscreen,"show-close":H.showClose,title:H.title,"aria-level":H.headerAriaLevel,onClose:d(_)}),xi({header:N(()=>[H.$slots.title?we(H.$slots,"title",{key:1}):we(H.$slots,"header",{key:0,close:d(_),titleId:d(u),titleClass:d(r).e("title")})]),default:N(()=>[we(H.$slots,"default")]),_:2},[H.$slots.footer?{name:"footer",fn:N(()=>[we(H.$slots,"footer")])}:void 0]),1040,["custom-class","center","align-center","close-icon","draggable","fullscreen","show-close","title","aria-level","onClose"])):le("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,ree)]),_:3},8,["mask","overlay-class","z-index"]),[[Vt,d(l)]])]),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["to","disabled"]))}});var oee=ze(aee,[["__file","dialog.vue"]]);const yf=At(oee),lee=He({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:me(String),default:"solid"}}),uee=Z({name:"ElDivider"}),cee=Z({...uee,props:lee,setup(e){const t=e,n=Le("divider"),s=k(()=>n.cssVar({"border-style":t.borderStyle}));return(r,i)=>(C(),j("div",{class:M([d(n).b(),d(n).m(r.direction)]),style:rt(d(s)),role:"separator"},[r.$slots.default&&r.direction!=="vertical"?(C(),j("div",{key:0,class:M([d(n).e("text"),d(n).is(r.contentPosition)])},[we(r.$slots,"default")],2)):le("v-if",!0)],6))}});var dee=ze(cee,[["__file","divider.vue"]]);const MP=At(dee),fee=He({...PP,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"}}),hee=$P,pee=Z({name:"ElDrawer",components:{ElOverlay:h1,ElFocusTrap:ug,ElIcon:tt,Close:Jr},inheritAttrs:!1,props:fee,emits:hee,setup(e,{slots:t}){Ii({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(()=>!!t.title)),Ii({scope:"el-drawer",from:"custom-class",replacement:"class",version:"2.3.0",ref:"https://element-plus.org/en-US/component/drawer.html#attributes",type:"Attribute"},k(()=>!!e.customClass));const n=G(),s=G(),r=Le("drawer"),{t:i}=Wt(),a=k(()=>e.direction==="rtl"||e.direction==="ltr"),o=k(()=>Mn(e.size));return{...NP(e,n),drawerRef:n,focusStartRef:s,isHorizontal:a,drawerSize:o,ns:r,t:i}}}),mee=["aria-label","aria-labelledby","aria-describedby"],gee=["id","aria-level"],vee=["aria-label"],yee=["id"];function bee(e,t,n,s,r,i){const a=Et("close"),o=Et("el-icon"),l=Et("el-focus-trap"),u=Et("el-overlay");return C(),he(rf,{to:"body",disabled:!e.appendToBody},[I(Rn,{name:e.ns.b("fade"),onAfterEnter:e.afterEnter,onAfterLeave:e.afterLeave,onBeforeLeave:e.beforeLeave,persisted:""},{default:N(()=>[pt(I(u,{mask:e.modal,"overlay-class":e.modalClass,"z-index":e.zIndex,onClick:e.onModalClick},{default:N(()=>[I(l,{loop:"",trapped:e.visible,"focus-trap-el":e.drawerRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:N(()=>[R("div",Rt({ref:"drawerRef","aria-modal":"true","aria-label":e.title||void 0,"aria-labelledby":e.title?void 0:e.titleId,"aria-describedby":e.bodyId},e.$attrs,{class:[e.ns.b(),e.direction,e.visible&&"open",e.customClass],style:e.isHorizontal?"width: "+e.drawerSize:"height: "+e.drawerSize,role:"dialog",onClick:t[1]||(t[1]=dt(()=>{},["stop"]))}),[R("span",{ref:"focusStartRef",class:M(e.ns.e("sr-focus")),tabindex:"-1"},null,2),e.withHeader?(C(),j("header",{key:0,class:M(e.ns.e("header"))},[e.$slots.title?we(e.$slots,"title",{key:1},()=>[le(" DEPRECATED SLOT ")]):we(e.$slots,"header",{key:0,close:e.handleClose,titleId:e.titleId,titleClass:e.ns.e("title")},()=>[e.$slots.title?le("v-if",!0):(C(),j("span",{key:0,id:e.titleId,role:"heading","aria-level":e.headerAriaLevel,class:M(e.ns.e("title"))},ve(e.title),11,gee))]),e.showClose?(C(),j("button",{key:2,"aria-label":e.t("el.drawer.close"),class:M(e.ns.e("close-btn")),type:"button",onClick:t[0]||(t[0]=(...c)=>e.handleClose&&e.handleClose(...c))},[I(o,{class:M(e.ns.e("close"))},{default:N(()=>[I(a)]),_:1},8,["class"])],10,vee)):le("v-if",!0)],2)):le("v-if",!0),e.rendered?(C(),j("div",{key:1,id:e.bodyId,class:M(e.ns.e("body"))},[we(e.$slots,"default")],10,yee)):le("v-if",!0),e.$slots.footer?(C(),j("div",{key:2,class:M(e.ns.e("footer"))},[we(e.$slots,"footer")],2)):le("v-if",!0)],16,mee)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])]),_:3},8,["mask","overlay-class","z-index","onClick"]),[[Vt,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"])}var _ee=ze(pee,[["render",bee],["__file","drawer.vue"]]);const RP=At(_ee),Tee=Z({inheritAttrs:!1});function wee(e,t,n,s,r,i){return we(e.$slots,"default")}var See=ze(Tee,[["render",wee],["__file","collection.vue"]]);const Cee=Z({name:"ElCollectionItem",inheritAttrs:!1});function Eee(e,t,n,s,r,i){return we(e.$slots,"default")}var xee=ze(Cee,[["render",Eee],["__file","collection-item.vue"]]);const LP="data-el-collection-item",DP=e=>{const t=`El${e}Collection`,n=`${t}Item`,s=Symbol(t),r=Symbol(n),i={...See,name:t,setup(){const o=G(null),l=new Map;Lt(s,{itemMap:l,getItems:()=>{const c=d(o);if(!c)return[];const f=Array.from(c.querySelectorAll(`[${LP}]`));return[...l.values()].sort((p,g)=>f.indexOf(p.ref)-f.indexOf(g.ref))},collectionRef:o})}},a={...xee,name:n,setup(o,{attrs:l}){const u=G(null),c=Qe(s,void 0);Lt(r,{collectionItemRef:u}),vt(()=>{const f=d(u);f&&c.itemMap.set(f,{ref:f,...l})}),on(()=>{const f=d(u);c.itemMap.delete(f)})}};return{COLLECTION_INJECTION_KEY:s,COLLECTION_ITEM_INJECTION_KEY:r,ElCollection:i,ElCollectionItem:a}},kee=He({style:{type:me([String,Array,Object])},currentTabId:{type:me(String)},defaultCurrentTabId:String,loop:Boolean,dir:{type:String,values:["ltr","rtl"],default:"ltr"},orientation:{type:me(String)},onBlur:Function,onFocus:Function,onMousedown:Function}),{ElCollection:Iee,ElCollectionItem:Oee,COLLECTION_INJECTION_KEY:p1,COLLECTION_ITEM_INJECTION_KEY:Aee}=DP("RovingFocusGroup"),m1=Symbol("elRovingFocusGroup"),FP=Symbol("elRovingFocusGroupItem"),Pee={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"},$ee=(e,t)=>{if(t!=="rtl")return e;switch(e){case ot.right:return ot.left;case ot.left:return ot.right;default:return e}},Nee=(e,t,n)=>{const s=$ee(e.key,n);if(!(t==="vertical"&&[ot.left,ot.right].includes(s))&&!(t==="horizontal"&&[ot.up,ot.down].includes(s)))return Pee[s]},Mee=(e,t)=>e.map((n,s)=>e[(s+t)%e.length]),g1=e=>{const{activeElement:t}=document;for(const n of e)if(n===t||(n.focus(),t!==document.activeElement))return},PE="currentTabIdChange",$E="rovingFocusGroup.entryFocus",Ree={bubbles:!1,cancelable:!0},Lee=Z({name:"ElRovingFocusGroupImpl",inheritAttrs:!1,props:kee,emits:[PE,"entryFocus"],setup(e,{emit:t}){var n;const s=G((n=e.currentTabId||e.defaultCurrentTabId)!=null?n:null),r=G(!1),i=G(!1),a=G(null),{getItems:o}=Qe(p1,void 0),l=k(()=>[{outline:"none"},e.style]),u=m=>{t(PE,m)},c=()=>{r.value=!0},f=Cn(m=>{var y;(y=e.onMousedown)==null||y.call(e,m)},()=>{i.value=!0}),h=Cn(m=>{var y;(y=e.onFocus)==null||y.call(e,m)},m=>{const y=!d(i),{target:v,currentTarget:_}=m;if(v===_&&y&&!d(r)){const w=new Event($E,Ree);if(_==null||_.dispatchEvent(w),!w.defaultPrevented){const T=o().filter(U=>U.focusable),S=T.find(U=>U.active),E=T.find(U=>U.id===d(s)),P=[S,E,...T].filter(Boolean).map(U=>U.ref);g1(P)}}i.value=!1}),p=Cn(m=>{var y;(y=e.onBlur)==null||y.call(e,m)},()=>{r.value=!1}),g=(...m)=>{t("entryFocus",...m)};Lt(m1,{currentTabbedId:nl(s),loop:yn(e,"loop"),tabIndex:k(()=>d(r)?-1:0),rovingFocusGroupRef:a,rovingFocusGroupRootStyle:l,orientation:yn(e,"orientation"),dir:yn(e,"dir"),onItemFocus:u,onItemShiftTab:c,onBlur:p,onFocus:h,onMousedown:f}),Oe(()=>e.currentTabId,m=>{s.value=m??null}),dn(a,$E,g)}});function Dee(e,t,n,s,r,i){return we(e.$slots,"default")}var Fee=ze(Lee,[["render",Dee],["__file","roving-focus-group-impl.vue"]]);const Bee=Z({name:"ElRovingFocusGroup",components:{ElFocusGroupCollection:Iee,ElRovingFocusGroupImpl:Fee}});function Vee(e,t,n,s,r,i){const a=Et("el-roving-focus-group-impl"),o=Et("el-focus-group-collection");return C(),he(o,null,{default:N(()=>[I(a,Kr(Vm(e.$attrs)),{default:N(()=>[we(e.$slots,"default")]),_:3},16)]),_:3})}var Uee=ze(Bee,[["render",Vee],["__file","roving-focus-group.vue"]]);const Hee=Z({components:{ElRovingFocusCollectionItem:Oee},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}=Qe(m1,void 0),{getItems:a}=Qe(p1,void 0),o=tr(),l=G(null),u=Cn(p=>{t("mousedown",p)},p=>{e.focusable?r(d(o)):p.preventDefault()}),c=Cn(p=>{t("focus",p)},()=>{r(d(o))}),f=Cn(p=>{t("keydown",p)},p=>{const{key:g,shiftKey:m,target:y,currentTarget:v}=p;if(g===ot.tab&&m){i();return}if(y!==v)return;const _=Nee(p);if(_){p.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(v);T=s.value?Mee(T,S+1):T.slice(S+1);break}}at(()=>{g1(T)})}}),h=k(()=>n.value===d(o));return Lt(FP,{rovingFocusGroupItemRef:l,tabIndex:k(()=>d(h)?0:-1),handleMousedown:u,handleFocus:c,handleKeydown:f}),{id:o,handleKeydown:f,handleFocus:c,handleMousedown:u}}});function zee(e,t,n,s,r,i){const a=Et("el-roving-focus-collection-item");return C(),he(a,{id:e.id,focusable:e.focusable,active:e.active},{default:N(()=>[we(e.$slots,"default")]),_:3},8,["id","focusable","active"])}var jee=ze(Hee,[["render",zee],["__file","roving-focus-item.vue"]]);const cp=He({trigger:Md.trigger,effect:{...ss.effect,default:"light"},type:{type:me(String)},placement:{type:me(String),default:"bottom"},popperOptions:{type:me(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:me([Number,String]),default:0},maxHeight:{type:me([Number,String]),default:""},popperClass:{type:String,default:""},disabled:{type:Boolean,default:!1},role:{type:String,default:"menu"},buttonProps:{type:me(Object)},teleported:ss.teleported}),BP=He({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:sn}}),Kee=He({onKeydown:{type:me(Function)}}),Wee=[ot.down,ot.pageDown,ot.home],VP=[ot.up,ot.pageUp,ot.end],qee=[...Wee,...VP],{ElCollection:Gee,ElCollectionItem:Yee,COLLECTION_INJECTION_KEY:Xee,COLLECTION_ITEM_INJECTION_KEY:Qee}=DP("Dropdown"),hg=Symbol("elDropdown"),{ButtonGroup:Jee}=bn,Zee=Z({name:"ElDropdown",components:{ElButton:bn,ElButtonGroup:Jee,ElScrollbar:va,ElDropdownCollection:Gee,ElTooltip:ms,ElRovingFocusGroup:Uee,ElOnlyChild:hA,ElIcon:tt,ArrowDown:ga},props:cp,emits:["visible-change","click","command"],setup(e,{emit:t}){const n=It(),s=Le("dropdown"),{t:r}=Wt(),i=G(),a=G(),o=G(null),l=G(null),u=G(null),c=G(null),f=G(!1),h=[ot.enter,ot.space,ot.down],p=k(()=>({maxHeight:Mn(e.maxHeight)})),g=k(()=>[s.m(S.value)]),m=k(()=>Jo(e.trigger)),y=tr().value,v=k(()=>e.id||y);Oe([i,m],([B,K],[L])=>{var Q,ee,te;(Q=L==null?void 0:L.$el)!=null&&Q.removeEventListener&&L.$el.removeEventListener("pointerenter",$),(ee=B==null?void 0:B.$el)!=null&&ee.removeEventListener&&B.$el.removeEventListener("pointerenter",$),(te=B==null?void 0:B.$el)!=null&&te.addEventListener&&K.includes("hover")&&B.$el.addEventListener("pointerenter",$)},{immediate:!0}),on(()=>{var B,K;(K=(B=i.value)==null?void 0:B.$el)!=null&&K.removeEventListener&&i.value.$el.removeEventListener("pointerenter",$)});function _(){w()}function w(){var B;(B=o.value)==null||B.onClose()}function T(){var B;(B=o.value)==null||B.onOpen()}const S=Xn();function E(...B){t("command",...B)}function $(){var B,K;(K=(B=i.value)==null?void 0:B.$el)==null||K.focus()}function P(){}function U(){const B=d(l);m.value.includes("hover")&&(B==null||B.focus()),c.value=null}function H(B){c.value=B}function z(B){f.value||(B.preventDefault(),B.stopImmediatePropagation())}function W(){t("visible-change",!0)}function D(B){(B==null?void 0:B.type)==="keydown"&&l.value.focus()}function V(){t("visible-change",!1)}return Lt(hg,{contentRef:l,role:k(()=>e.role),triggerId:v,isUsingKeyboard:f,onItemEnter:P,onItemLeave:U}),Lt("elDropdown",{instance:n,dropdownSize:S,handleClick:_,commandHandler:E,trigger:yn(e,"trigger"),hideOnClick:yn(e,"hideOnClick")}),{t:r,ns:s,scrollbar:u,wrapStyle:p,dropdownTriggerKls:g,dropdownSize:S,triggerId:v,triggerKeys:h,currentTabId:c,handleCurrentTabIdChange:H,handlerMainButtonClick:B=>{t("click",B)},handleEntryFocus:z,handleClose:w,handleOpen:T,handleBeforeShowTooltip:W,handleShowTooltip:D,handleBeforeHideTooltip:V,onFocusAfterTrapped:B=>{var K,L;B.preventDefault(),(L=(K=l.value)==null?void 0:K.focus)==null||L.call(K,{preventScroll:!0})},popperRef:o,contentRef:l,triggeringElementRef:i,referenceElementRef:a}}});function ete(e,t,n,s,r,i){var a;const o=Et("el-dropdown-collection"),l=Et("el-roving-focus-group"),u=Et("el-scrollbar"),c=Et("el-only-child"),f=Et("el-tooltip"),h=Et("el-button"),p=Et("arrow-down"),g=Et("el-icon"),m=Et("el-button-group");return C(),j("div",{class:M([e.ns.b(),e.ns.is("disabled",e.disabled)])},[I(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},xi({content:N(()=>[I(u,{ref:"scrollbar","wrap-style":e.wrapStyle,tag:"div","view-class":e.ns.e("list")},{default:N(()=>[I(l,{loop:e.loop,"current-tab-id":e.currentTabId,orientation:"horizontal",onCurrentTabIdChange:e.handleCurrentTabIdChange,onEntryFocus:e.handleEntryFocus},{default:N(()=>[I(o,null,{default:N(()=>[we(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:N(()=>[I(c,{id:e.triggerId,ref:"triggeringElementRef",role:"button",tabindex:e.tabindex},{default:N(()=>[we(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?(C(),he(m,{key:0},{default:N(()=>[I(h,Rt({ref:"referenceElementRef"},e.buttonProps,{size:e.dropdownSize,type:e.type,disabled:e.disabled,tabindex:e.tabindex,onClick:e.handlerMainButtonClick}),{default:N(()=>[we(e.$slots,"default")]),_:3},16,["size","type","disabled","tabindex","onClick"]),I(h,Rt({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:N(()=>[I(g,{class:M(e.ns.e("icon"))},{default:N(()=>[I(p)]),_:1},8,["class"])]),_:1},16,["id","size","type","class","disabled","tabindex","aria-label"])]),_:3})):le("v-if",!0)],2)}var tte=ze(Zee,[["render",ete],["__file","dropdown.vue"]]);const nte=Z({name:"DropdownItemImpl",components:{ElIcon:tt},props:BP,emits:["pointermove","pointerleave","click","clickimpl"],setup(e,{emit:t}){const n=Le("dropdown"),{role:s}=Qe(hg,void 0),{collectionItemRef:r}=Qe(Qee,void 0),{collectionItemRef:i}=Qe(Aee,void 0),{rovingFocusGroupItemRef:a,tabIndex:o,handleFocus:l,handleKeydown:u,handleMousedown:c}=Qe(FP,void 0),f=Zm(r,i,a),h=k(()=>s.value==="menu"?"menuitem":s.value==="navigation"?"link":"button"),p=Cn(g=>{const{code:m}=g;if(m===ot.enter||m===ot.space)return g.preventDefault(),g.stopImmediatePropagation(),t("clickimpl",g),!0},u);return{ns:n,itemRef:f,dataset:{[LP]:""},role:h,tabIndex:o,handleFocus:l,handleKeydown:p,handleMousedown:c}}}),ste=["aria-disabled","tabindex","role"];function rte(e,t,n,s,r,i){const a=Et("el-icon");return C(),j(Ke,null,[e.divided?(C(),j("li",Rt({key:0,role:"separator",class:e.ns.bem("menu","item","divided")},e.$attrs),null,16)):le("v-if",!0),R("li",Rt({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:t[0]||(t[0]=o=>e.$emit("clickimpl",o)),onFocus:t[1]||(t[1]=(...o)=>e.handleFocus&&e.handleFocus(...o)),onKeydown:t[2]||(t[2]=dt((...o)=>e.handleKeydown&&e.handleKeydown(...o),["self"])),onMousedown:t[3]||(t[3]=(...o)=>e.handleMousedown&&e.handleMousedown(...o)),onPointermove:t[4]||(t[4]=o=>e.$emit("pointermove",o)),onPointerleave:t[5]||(t[5]=o=>e.$emit("pointerleave",o))}),[e.icon?(C(),he(a,{key:0},{default:N(()=>[(C(),he(Nt(e.icon)))]),_:1})):le("v-if",!0),we(e.$slots,"default")],16,ste)],64)}var ite=ze(nte,[["render",rte],["__file","dropdown-item-impl.vue"]]);const UP=()=>{const e=Qe("elDropdown",{}),t=k(()=>e==null?void 0:e.dropdownSize);return{elDropdown:e,_elDropdownSize:t}},ate=Z({name:"ElDropdownItem",components:{ElDropdownCollectionItem:Yee,ElRovingFocusItem:jee,ElDropdownItemImpl:ite},inheritAttrs:!1,props:BP,emits:["pointermove","pointerleave","click"],setup(e,{emit:t,attrs:n}){const{elDropdown:s}=UP(),r=It(),i=G(null),a=k(()=>{var p,g;return(g=(p=d(i))==null?void 0:p.textContent)!=null?g:""}),{onItemEnter:o,onItemLeave:l}=Qe(hg,void 0),u=Cn(p=>(t("pointermove",p),p.defaultPrevented),AS(p=>{if(e.disabled){l(p);return}const g=p.currentTarget;g===document.activeElement||g.contains(document.activeElement)||(o(p),p.defaultPrevented||g==null||g.focus())})),c=Cn(p=>(t("pointerleave",p),p.defaultPrevented),AS(p=>{l(p)})),f=Cn(p=>{if(!e.disabled)return t("click",p),p.type!=="keydown"&&p.defaultPrevented},p=>{var g,m,y;if(e.disabled){p.stopImmediatePropagation();return}(g=s==null?void 0:s.hideOnClick)!=null&&g.value&&((m=s.handleClick)==null||m.call(s)),(y=s.commandHandler)==null||y.call(s,e.command,r,p)}),h=k(()=>({...e,...n}));return{handleClick:f,handlePointerMove:u,handlePointerLeave:c,textContent:a,propsAndAttrs:h}}});function ote(e,t,n,s,r,i){var a;const o=Et("el-dropdown-item-impl"),l=Et("el-roving-focus-item"),u=Et("el-dropdown-collection-item");return C(),he(u,{disabled:e.disabled,"text-value":(a=e.textValue)!=null?a:e.textContent},{default:N(()=>[I(l,{focusable:!e.disabled},{default:N(()=>[I(o,Rt(e.propsAndAttrs,{onPointerleave:e.handlePointerLeave,onPointermove:e.handlePointerMove,onClickimpl:e.handleClick}),{default:N(()=>[we(e.$slots,"default")]),_:3},16,["onPointerleave","onPointermove","onClickimpl"])]),_:3},8,["focusable"])]),_:3},8,["disabled","text-value"])}var HP=ze(ate,[["render",ote],["__file","dropdown-item.vue"]]);const lte=Z({name:"ElDropdownMenu",props:Kee,setup(e){const t=Le("dropdown"),{_elDropdownSize:n}=UP(),s=n.value,{focusTrapRef:r,onKeydown:i}=Qe(J_,void 0),{contentRef:a,role:o,triggerId:l}=Qe(hg,void 0),{collectionRef:u,getItems:c}=Qe(Xee,void 0),{rovingFocusGroupRef:f,rovingFocusGroupRootStyle:h,tabIndex:p,onBlur:g,onFocus:m,onMousedown:y}=Qe(m1,void 0),{collectionRef:v}=Qe(p1,void 0),_=k(()=>[t.b("menu"),t.bm("menu",s==null?void 0:s.value)]),w=Zm(a,u,r,f,v),T=Cn(E=>{var $;($=e.onKeydown)==null||$.call(e,E)},E=>{const{currentTarget:$,code:P,target:U}=E;if($.contains(U),ot.tab===P&&E.stopImmediatePropagation(),E.preventDefault(),U!==d(a)||!qee.includes(P))return;const z=c().filter(W=>!W.disabled).map(W=>W.ref);VP.includes(P)&&z.reverse(),g1(z)});return{size:s,rovingFocusGroupRootStyle:h,tabIndex:p,dropdownKls:_,role:o,triggerId:l,dropdownListWrapperRef:w,handleKeydown:E=>{T(E),i(E)},onBlur:g,onFocus:m,onMousedown:y}}}),ute=["role","aria-labelledby"];function cte(e,t,n,s,r,i){return C(),j("ul",{ref:e.dropdownListWrapperRef,class:M(e.dropdownKls),style:rt(e.rovingFocusGroupRootStyle),tabindex:-1,role:e.role,"aria-labelledby":e.triggerId,onBlur:t[0]||(t[0]=(...a)=>e.onBlur&&e.onBlur(...a)),onFocus:t[1]||(t[1]=(...a)=>e.onFocus&&e.onFocus(...a)),onKeydown:t[2]||(t[2]=dt((...a)=>e.handleKeydown&&e.handleKeydown(...a),["self"])),onMousedown:t[3]||(t[3]=dt((...a)=>e.onMousedown&&e.onMousedown(...a),["self"]))},[we(e.$slots,"default")],46,ute)}var zP=ze(lte,[["render",cte],["__file","dropdown-menu.vue"]]);const jP=At(tte,{DropdownItem:HP,DropdownMenu:zP}),KP=In(HP),WP=In(zP),dte={viewBox:"0 0 79 86",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},fte=["id"],hte=["stop-color"],pte=["stop-color"],mte=["id"],gte=["stop-color"],vte=["stop-color"],yte=["id"],bte={id:"Illustrations",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},_te={id:"B-type",transform:"translate(-1268.000000, -535.000000)"},Tte={id:"Group-2",transform:"translate(1268.000000, 535.000000)"},wte=["fill"],Ste=["fill"],Cte={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)"},Ete=["fill"],xte=["fill"],kte=["fill"],Ite=["fill"],Ote=["fill"],Ate={id:"Rectangle-Copy-17",transform:"translate(53.000000, 45.000000)"},Pte=["fill","xlink:href"],$te=["fill","mask"],Nte=["fill"],Mte=Z({name:"ImgEmpty"}),Rte=Z({...Mte,setup(e){const t=Le("empty"),n=tr();return(s,r)=>(C(),j("svg",dte,[R("defs",null,[R("linearGradient",{id:`linearGradient-1-${d(n)}`,x1:"38.8503086%",y1:"0%",x2:"61.1496914%",y2:"100%"},[R("stop",{"stop-color":`var(${d(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,hte),R("stop",{"stop-color":`var(${d(t).cssVarBlockName("fill-color-4")})`,offset:"100%"},null,8,pte)],8,fte),R("linearGradient",{id:`linearGradient-2-${d(n)}`,x1:"0%",y1:"9.5%",x2:"100%",y2:"90.5%"},[R("stop",{"stop-color":`var(${d(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,gte),R("stop",{"stop-color":`var(${d(t).cssVarBlockName("fill-color-6")})`,offset:"100%"},null,8,vte)],8,mte),R("rect",{id:`path-3-${d(n)}`,x:"0",y:"0",width:"17",height:"36"},null,8,yte)]),R("g",bte,[R("g",_te,[R("g",Tte,[R("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,wte),R("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,Ste),R("g",Cte,[R("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,Ete),R("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,xte),R("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,kte),R("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,Ite)]),R("rect",{id:"Rectangle-Copy-15",fill:`url(#linearGradient-2-${d(n)})`,x:"13",y:"45",width:"40",height:"36"},null,8,Ote),R("g",Ate,[R("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,Pte),R("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,$te)]),R("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,Nte)])])])]))}});var Lte=ze(Rte,[["__file","img-empty.vue"]]);const Dte=He({image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}}),Fte=["src"],Bte={key:1},Vte=Z({name:"ElEmpty"}),Ute=Z({...Vte,props:Dte,setup(e){const t=e,{t:n}=Wt(),s=Le("empty"),r=k(()=>t.description||n("el.table.emptyText")),i=k(()=>({width:Mn(t.imageSize)}));return(a,o)=>(C(),j("div",{class:M(d(s).b())},[R("div",{class:M(d(s).e("image")),style:rt(d(i))},[a.image?(C(),j("img",{key:0,src:a.image,ondragstart:"return false"},null,8,Fte)):we(a.$slots,"image",{key:1},()=>[I(Lte)])],6),R("div",{class:M(d(s).e("description"))},[a.$slots.description?we(a.$slots,"description",{key:0}):(C(),j("p",Bte,ve(d(r)),1))],2),a.$slots.default?(C(),j("div",{key:0,class:M(d(s).e("bottom"))},[we(a.$slots,"default")],2)):le("v-if",!0)],2))}});var Hte=ze(Ute,[["__file","empty.vue"]]);const bf=At(Hte),zte=He({urlList:{type:me(Array),default:()=>vn([])},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}}),jte={close:()=>!0,switch:e=>ht(e),rotate:e=>ht(e)},Kte=["src"],Wte=Z({name:"ElImageViewer"}),qte=Z({...Wte,props:zte,emits:jte,setup(e,{expose:t,emit:n}){const s=e,r={CONTAIN:{name:"contain",icon:Bo(jz)},ORIGINAL:{name:"original",icon:Bo(gj)}},{t:i}=Wt(),a=Le("image-viewer"),{nextZIndex:o}=Wu(),l=G(),u=G([]),c=X4(),f=G(!0),h=G(s.initialIndex),p=Jt(r.CONTAIN),g=G({scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),m=k(()=>{const{urlList:L}=s;return L.length<=1}),y=k(()=>h.value===0),v=k(()=>h.value===s.urlList.length-1),_=k(()=>s.urlList[h.value]),w=k(()=>[a.e("btn"),a.e("prev"),a.is("disabled",!s.infinite&&y.value)]),T=k(()=>[a.e("btn"),a.e("next"),a.is("disabled",!s.infinite&&v.value)]),S=k(()=>{const{scale:L,deg:Q,offsetX:ee,offsetY:te,enableTransition:ie}=g.value;let _e=ee/L,ue=te/L;switch(Q%360){case 90:case-270:[_e,ue]=[ue,-_e];break;case 180:case-180:[_e,ue]=[-_e,-ue];break;case 270:case-90:[_e,ue]=[-ue,_e];break}const oe={transform:`scale(${L}) rotate(${Q}deg) translate(${_e}px, ${ue}px)`,transition:ie?"transform .3s":""};return p.value.name===r.CONTAIN.name&&(oe.maxWidth=oe.maxHeight="100%"),oe}),E=k(()=>ht(s.zIndex)?s.zIndex:o());function $(){U(),n("close")}function P(){const L=Uo(ee=>{switch(ee.code){case ot.esc:s.closeOnPressEscape&&$();break;case ot.space:V();break;case ot.left:Y();break;case ot.up:K("zoomIn");break;case ot.right:B();break;case ot.down:K("zoomOut");break}}),Q=Uo(ee=>{const te=ee.deltaY||ee.deltaX;K(te<0?"zoomIn":"zoomOut",{zoomRate:s.zoomRate,enableTransition:!1})});c.run(()=>{dn(document,"keydown",L),dn(document,"wheel",Q)})}function U(){c.stop()}function H(){f.value=!1}function z(L){f.value=!1,L.target.alt=i("el.image.error")}function W(L){if(f.value||L.button!==0||!l.value)return;g.value.enableTransition=!1;const{offsetX:Q,offsetY:ee}=g.value,te=L.pageX,ie=L.pageY,_e=Uo(oe=>{g.value={...g.value,offsetX:Q+oe.pageX-te,offsetY:ee+oe.pageY-ie}}),ue=dn(document,"mousemove",_e);dn(document,"mouseup",()=>{ue()}),L.preventDefault()}function D(){g.value={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function V(){if(f.value)return;const L=kd(r),Q=Object.values(r),ee=p.value.name,ie=(Q.findIndex(_e=>_e.name===ee)+1)%L.length;p.value=r[L[ie]],D()}function X(L){const Q=s.urlList.length;h.value=(L+Q)%Q}function Y(){y.value&&!s.infinite||X(h.value-1)}function B(){v.value&&!s.infinite||X(h.value+1)}function K(L,Q={}){if(f.value)return;const{minScale:ee,maxScale:te}=s,{zoomRate:ie,rotateDeg:_e,enableTransition:ue}={zoomRate:s.zoomRate,rotateDeg:90,enableTransition:!0,...Q};switch(L){case"zoomOut":g.value.scale>ee&&(g.value.scale=Number.parseFloat((g.value.scale/ie).toFixed(3)));break;case"zoomIn":g.value.scale<te&&(g.value.scale=Number.parseFloat((g.value.scale*ie).toFixed(3)));break;case"clockwise":g.value.deg+=_e,n("rotate",g.value.deg);break;case"anticlockwise":g.value.deg-=_e,n("rotate",g.value.deg);break}g.value.enableTransition=ue}return Oe(_,()=>{at(()=>{const L=u.value[0];L!=null&&L.complete||(f.value=!0)})}),Oe(h,L=>{D(),n("switch",L)}),vt(()=>{var L,Q;P(),(Q=(L=l.value)==null?void 0:L.focus)==null||Q.call(L)}),t({setActiveItem:X}),(L,Q)=>(C(),he(rf,{to:"body",disabled:!L.teleported},[I(Rn,{name:"viewer-fade",appear:""},{default:N(()=>[R("div",{ref_key:"wrapper",ref:l,tabindex:-1,class:M(d(a).e("wrapper")),style:rt({zIndex:d(E)})},[R("div",{class:M(d(a).e("mask")),onClick:Q[0]||(Q[0]=dt(ee=>L.hideOnClickModal&&$(),["self"]))},null,2),le(" CLOSE "),R("span",{class:M([d(a).e("btn"),d(a).e("close")]),onClick:$},[I(d(tt),null,{default:N(()=>[I(d(Jr))]),_:1})],2),le(" ARROW "),d(m)?le("v-if",!0):(C(),j(Ke,{key:0},[R("span",{class:M(d(w)),onClick:Y},[I(d(tt),null,{default:N(()=>[I(d(Ka))]),_:1})],2),R("span",{class:M(d(T)),onClick:B},[I(d(tt),null,{default:N(()=>[I(d(Ns))]),_:1})],2)],64)),le(" ACTIONS "),R("div",{class:M([d(a).e("btn"),d(a).e("actions")])},[R("div",{class:M(d(a).e("actions__inner"))},[I(d(tt),{onClick:Q[1]||(Q[1]=ee=>K("zoomOut"))},{default:N(()=>[I(d(Bj))]),_:1}),I(d(tt),{onClick:Q[2]||(Q[2]=ee=>K("zoomIn"))},{default:N(()=>[I(d(A_))]),_:1}),R("i",{class:M(d(a).e("actions__divider"))},null,2),I(d(tt),{onClick:V},{default:N(()=>[(C(),he(Nt(d(p).icon)))]),_:1}),R("i",{class:M(d(a).e("actions__divider"))},null,2),I(d(tt),{onClick:Q[3]||(Q[3]=ee=>K("anticlockwise"))},{default:N(()=>[I(d(gO))]),_:1}),I(d(tt),{onClick:Q[4]||(Q[4]=ee=>K("clockwise"))},{default:N(()=>[I(d(pj))]),_:1})],2)],2),le(" CANVAS "),R("div",{class:M(d(a).e("canvas"))},[(C(!0),j(Ke,null,bt(L.urlList,(ee,te)=>pt((C(),j("img",{ref_for:!0,ref:ie=>u.value[te]=ie,key:ee,src:ee,style:rt(d(S)),class:M(d(a).e("img")),onLoad:H,onError:z,onMousedown:W},null,46,Kte)),[[Vt,te===h.value]])),128))],2),we(L.$slots,"default")],6)]),_:3})],8,["disabled"]))}});var Gte=ze(qte,[["__file","image-viewer.vue"]]);const v1=At(Gte),Yte=He({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:me([String,Object])},previewSrcList:{type:me(Array),default:()=>vn([])},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}}),Xte={load:e=>e instanceof Event,error:e=>e instanceof Event,switch:e=>ht(e),close:()=>!0,show:()=>!0},Qte=["src","loading"],Jte={key:0},Zte=Z({name:"ElImage",inheritAttrs:!1}),ene=Z({...Zte,props:Yte,emits:Xte,setup(e,{emit:t}){const n=e;let s="";const{t:r}=Wt(),i=Le("image"),a=rl(),o=M_(),l=G(),u=G(!1),c=G(!0),f=G(!1),h=G(),p=G(),g=Kt&&"loading"in HTMLImageElement.prototype;let m,y;const v=k(()=>[i.e("inner"),T.value&&i.e("preview"),c.value&&i.is("loading")]),_=k(()=>a.style),w=k(()=>{const{fit:K}=n;return Kt&&K?{objectFit:K}:{}}),T=k(()=>{const{previewSrcList:K}=n;return Array.isArray(K)&&K.length>0}),S=k(()=>{const{previewSrcList:K,initialIndex:L}=n;let Q=L;return L>K.length-1&&(Q=0),Q}),E=k(()=>n.loading==="eager"?!1:!g&&n.loading==="lazy"||n.lazy),$=()=>{Kt&&(c.value=!0,u.value=!1,l.value=n.src)};function P(K){c.value=!1,u.value=!1,t("load",K)}function U(K){c.value=!1,u.value=!0,t("error",K)}function H(){qF(h.value,p.value)&&($(),D())}const z=SI(H,200,!0);async function W(){var K;if(!Kt)return;await at();const{scrollContainer:L}=n;Or(L)?p.value=L:Tt(L)&&L!==""?p.value=(K=document.querySelector(L))!=null?K:void 0:h.value&&(p.value=S_(h.value)),p.value&&(m=dn(p,"scroll",z),setTimeout(()=>H(),100))}function D(){!Kt||!p.value||!z||(m==null||m(),p.value=void 0)}function V(K){if(K.ctrlKey){if(K.deltaY<0)return K.preventDefault(),!1;if(K.deltaY>0)return K.preventDefault(),!1}}function X(){T.value&&(y=dn("wheel",V,{passive:!1}),s=document.body.style.overflow,document.body.style.overflow="hidden",f.value=!0,t("show"))}function Y(){y==null||y(),document.body.style.overflow=s,f.value=!1,t("close")}function B(K){t("switch",K)}return Oe(()=>n.src,()=>{E.value?(c.value=!0,u.value=!1,D(),W()):$()}),vt(()=>{E.value?W():$()}),(K,L)=>(C(),j("div",{ref_key:"container",ref:h,class:M([d(i).b(),K.$attrs.class]),style:rt(d(_))},[u.value?we(K.$slots,"error",{key:0},()=>[R("div",{class:M(d(i).e("error"))},ve(d(r)("el.image.error")),3)]):(C(),j(Ke,{key:1},[l.value!==void 0?(C(),j("img",Rt({key:0},d(o),{src:l.value,loading:K.loading,style:d(w),class:d(v),onClick:X,onLoad:P,onError:U}),null,16,Qte)):le("v-if",!0),c.value?(C(),j("div",{key:1,class:M(d(i).e("wrapper"))},[we(K.$slots,"placeholder",{},()=>[R("div",{class:M(d(i).e("placeholder"))},null,2)])],2)):le("v-if",!0)],64)),d(T)?(C(),j(Ke,{key:2},[f.value?(C(),he(d(v1),{key:0,"z-index":K.zIndex,"initial-index":d(S),infinite:K.infinite,"zoom-rate":K.zoomRate,"min-scale":K.minScale,"max-scale":K.maxScale,"url-list":K.previewSrcList,"hide-on-click-modal":K.hideOnClickModal,teleported:K.previewTeleported,"close-on-press-escape":K.closeOnPressEscape,onClose:Y,onSwitch:B},{default:N(()=>[K.$slots.viewer?(C(),j("div",Jte,[we(K.$slots,"viewer")])):le("v-if",!0)]),_:3},8,["z-index","initial-index","infinite","zoom-rate","min-scale","max-scale","url-list","hide-on-click-modal","teleported","close-on-press-escape"])):le("v-if",!0)],64)):le("v-if",!0)],6))}});var tne=ze(ene,[["__file","image.vue"]]);const qP=At(tne),nne=He({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:os,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:[String,Number,null],validator:e=>e===null||ht(e)||["min","max"].includes(e),default:null},name:String,label:String,placeholder:String,precision:{type:Number,validator:e=>e>=0&&e===Number.parseInt(`${e}`,10)},validateEvent:{type:Boolean,default:!0}}),sne={[ln]:(e,t)=>t!==e,blur:e=>e instanceof FocusEvent,focus:e=>e instanceof FocusEvent,[Ms]:e=>ht(e)||Un(e),[$t]:e=>ht(e)||Un(e)},rne=["aria-label","onKeydown"],ine=["aria-label","onKeydown"],ane=Z({name:"ElInputNumber"}),one=Z({...ane,props:nne,emits:sne,setup(e,{expose:t,emit:n}){const s=e,{t:r}=Wt(),i=Le("input-number"),a=G(),o=Ct({currentValue:s.modelValue,userInput:null}),{formItem:l}=Bs(),u=k(()=>ht(s.modelValue)&&s.modelValue<=s.min),c=k(()=>ht(s.modelValue)&&s.modelValue>=s.max),f=k(()=>{const D=v(s.step);return qn(s.precision)?Math.max(v(s.modelValue),D):(D>s.precision,s.precision)}),h=k(()=>s.controls&&s.controlsPosition==="right"),p=Xn(),g=ir(),m=k(()=>{if(o.userInput!==null)return o.userInput;let D=o.currentValue;if(Un(D))return"";if(ht(D)){if(Number.isNaN(D))return"";qn(s.precision)||(D=D.toFixed(s.precision))}return D}),y=(D,V)=>{if(qn(V)&&(V=f.value),V===0)return Math.round(D);let X=String(D);const Y=X.indexOf(".");if(Y===-1||!X.replace(".","").split("")[Y+V])return D;const L=X.length;return X.charAt(L-1)==="5"&&(X=`${X.slice(0,Math.max(0,L-1))}6`),Number.parseFloat(Number(X).toFixed(V))},v=D=>{if(Un(D))return 0;const V=D.toString(),X=V.indexOf(".");let Y=0;return X!==-1&&(Y=V.length-X-1),Y},_=(D,V=1)=>ht(D)?y(D+s.step*V):o.currentValue,w=()=>{if(s.readonly||g.value||c.value)return;const D=Number(m.value)||0,V=_(D);E(V),n(Ms,o.currentValue)},T=()=>{if(s.readonly||g.value||u.value)return;const D=Number(m.value)||0,V=_(D,-1);E(V),n(Ms,o.currentValue)},S=(D,V)=>{const{max:X,min:Y,step:B,precision:K,stepStrictly:L,valueOnClear:Q}=s;X<Y&&Yn("InputNumber","min should not be greater than max.");let ee=Number(D);if(Un(D)||Number.isNaN(ee))return null;if(D===""){if(Q===null)return null;ee=Tt(Q)?{min:Y,max:X}[Q]:Q}return L&&(ee=y(Math.round(ee/B)*B,K)),qn(K)||(ee=y(ee,K)),(ee>X||ee<Y)&&(ee=ee>X?X:Y,V&&n($t,ee)),ee},E=(D,V=!0)=>{var X;const Y=o.currentValue,B=S(D);if(!V){n($t,B);return}Y!==B&&(o.userInput=null,n($t,B),n(ln,B,Y),s.validateEvent&&((X=l==null?void 0:l.validate)==null||X.call(l,"change").catch(K=>void 0)),o.currentValue=B)},$=D=>{o.userInput=D;const V=D===""?null:Number(D);n(Ms,V),E(V,!1)},P=D=>{const V=D!==""?Number(D):"";(ht(V)&&!Number.isNaN(V)||D==="")&&E(V),o.userInput=null},U=()=>{var D,V;(V=(D=a.value)==null?void 0:D.focus)==null||V.call(D)},H=()=>{var D,V;(V=(D=a.value)==null?void 0:D.blur)==null||V.call(D)},z=D=>{n("focus",D)},W=D=>{var V;o.userInput=null,n("blur",D),s.validateEvent&&((V=l==null?void 0:l.validate)==null||V.call(l,"blur").catch(X=>void 0))};return Oe(()=>s.modelValue,(D,V)=>{const X=S(D,!0);o.userInput===null&&X!==V&&(o.currentValue=X)},{immediate:!0}),vt(()=>{var D;const{min:V,max:X,modelValue:Y}=s,B=(D=a.value)==null?void 0:D.input;if(B.setAttribute("role","spinbutton"),Number.isFinite(X)?B.setAttribute("aria-valuemax",String(X)):B.removeAttribute("aria-valuemax"),Number.isFinite(V)?B.setAttribute("aria-valuemin",String(V)):B.removeAttribute("aria-valuemin"),B.setAttribute("aria-valuenow",o.currentValue||o.currentValue===0?String(o.currentValue):""),B.setAttribute("aria-disabled",String(g.value)),!ht(Y)&&Y!=null){let K=Number(Y);Number.isNaN(K)&&(K=null),n($t,K)}}),ha(()=>{var D,V;const X=(D=a.value)==null?void 0:D.input;X==null||X.setAttribute("aria-valuenow",`${(V=o.currentValue)!=null?V:""}`)}),t({focus:U,blur:H}),(D,V)=>(C(),j("div",{class:M([d(i).b(),d(i).m(d(p)),d(i).is("disabled",d(g)),d(i).is("without-controls",!D.controls),d(i).is("controls-right",d(h))]),onDragstart:V[1]||(V[1]=dt(()=>{},["prevent"]))},[D.controls?pt((C(),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:jt(T,["enter"])},[I(d(tt),null,{default:N(()=>[d(h)?(C(),he(d(ga),{key:0})):(C(),he(d(ej),{key:1}))]),_:1})],42,rne)),[[d(jp),T]]):le("v-if",!0),D.controls?pt((C(),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:jt(w,["enter"])},[I(d(tt),null,{default:N(()=>[d(h)?(C(),he(d(hf),{key:0})):(C(),he(d(I_),{key:1}))]),_:1})],42,ine)),[[d(jp),w]]):le("v-if",!0),I(d(Fn),{id:D.id,ref_key:"input",ref:a,type:"number",step:D.step,"model-value":d(m),placeholder:D.placeholder,readonly:D.readonly,disabled:d(g),size:d(p),max:D.max,min:D.min,name:D.name,label:D.label,"validate-event":!1,onWheel:V[0]||(V[0]=dt(()=>{},["prevent"])),onKeydown:[jt(dt(w,["prevent"]),["up"]),jt(dt(T,["prevent"]),["down"])],onBlur:W,onFocus:z,onInput:$,onChange:P},null,8,["id","step","model-value","placeholder","readonly","disabled","size","max","min","name","label","onKeydown"])],34))}});var lne=ze(one,[["__file","input-number.vue"]]);const pg=At(lne),une=He({type:{type:String,values:["primary","success","warning","info","danger","default"],default:"default"},underline:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},href:{type:String,default:""},icon:{type:sn}}),cne={click:e=>e instanceof MouseEvent},dne=["href"],fne=Z({name:"ElLink"}),hne=Z({...fne,props:une,emits:cne,setup(e,{emit:t}){const n=e,s=Le("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)=>(C(),j("a",{class:M(d(r)),href:a.disabled||!a.href?void 0:a.href,onClick:i},[a.icon?(C(),he(d(tt),{key:0},{default:N(()=>[(C(),he(Nt(a.icon)))]),_:1})):le("v-if",!0),a.$slots.default?(C(),j("span",{key:1,class:M(d(s).e("inner"))},[we(a.$slots,"default")],2)):le("v-if",!0),a.$slots.icon?we(a.$slots,"icon",{key:2}):le("v-if",!0)],10,dne))}});var pne=ze(hne,[["__file","link.vue"]]);const GP=At(pne);let mne=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 ot.down:{this.gotoSubIndex(this.subIndex+1),r=!0;break}case ot.up:{this.gotoSubIndex(this.subIndex-1),r=!0;break}case ot.tab:{Xh(t,"mouseleave");break}case ot.enter:case ot.space:{r=!0,s.currentTarget.click();break}}return r&&(s.preventDefault(),s.stopPropagation()),!1})})}},gne=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 mne(this,n)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",t=>{let n=!1;switch(t.code){case ot.down:{Xh(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),n=!0;break}case ot.up:{Xh(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),n=!0;break}case ot.tab:{Xh(t.currentTarget,"mouseleave");break}case ot.enter:case ot.space:{n=!0,t.currentTarget.click();break}}n&&t.preventDefault()})}},vne=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 gne(s,t)})}};const yne=Z({name:"ElMenuCollapseTransition",setup(){const e=Le("menu");return{listeners:{onBeforeEnter:n=>n.style.opacity="0.2",onEnter(n,s){pi(n,`${e.namespace.value}-opacity-transition`),n.style.opacity="1",s()},onAfterEnter(n){Xs(n,`${e.namespace.value}-opacity-transition`),n.style.opacity=""},onBeforeLeave(n){n.dataset||(n.dataset={}),Yr(n,e.m("collapse"))?(Xs(n,e.m("collapse")),n.dataset.oldOverflow=n.style.overflow,n.dataset.scrollWidth=n.clientWidth.toString(),pi(n,e.m("collapse"))):(pi(n,e.m("collapse")),n.dataset.oldOverflow=n.style.overflow,n.dataset.scrollWidth=n.clientWidth.toString(),Xs(n,e.m("collapse"))),n.style.width=`${n.scrollWidth}px`,n.style.overflow="hidden"},onLeave(n){pi(n,"horizontal-collapse-transition"),n.style.width=`${n.dataset.scrollWidth}px`}}}}});function bne(e,t,n,s,r,i){return C(),he(Rn,Rt({mode:"out-in"},e.listeners),{default:N(()=>[we(e.$slots,"default")]),_:3},16)}var _ne=ze(yne,[["render",bne],["__file","menu-collapse-transition.vue"]]);function YP(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 Tne(e){return k(()=>{const n=e.backgroundColor;return n?new xA(n).shade(20).toString():""})}const XP=(e,t)=>{const n=Le("menu");return k(()=>n.cssVarBlock({"text-color":e.textColor||"","hover-text-color":e.textColor||"","bg-color":e.backgroundColor||"","hover-bg-color":Tne(e).value||"","active-color":e.activeTextColor||"",level:`${t}`}))},wne=He({index:{type:String,required:!0},showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300},popperClass:String,disabled:Boolean,popperAppendToBody:{type:Boolean,default:void 0},teleported:{type:Boolean,default:void 0},popperOffset:{type:Number,default:void 0},expandCloseIcon:{type:sn},expandOpenIcon:{type:sn},collapseCloseIcon:{type:sn},collapseOpenIcon:{type:sn}}),Nh="ElSubMenu";var y1=Z({name:Nh,props:wne,setup(e,{slots:t,expose:n}){Ii({from:"popper-append-to-body",replacement:"teleported",scope:Nh,version:"2.3.0",ref:"https://element-plus.org/en-US/component/menu.html#submenu-attributes"},k(()=>e.popperAppendToBody!==void 0));const s=It(),{indexPath:r,parentMenu:i}=YP(s,k(()=>e.index)),a=Le("menu"),o=Le("sub-menu"),l=Qe("rootMenu");l||Yn(Nh,"can not inject root menu");const u=Qe(`subMenu:${i.value.uid}`);u||Yn(Nh,"can not inject sub menu");const c=G({}),f=G({});let h;const p=G(!1),g=G(),m=G(null),y=k(()=>P.value==="horizontal"&&_.value?"bottom-start":"right-start"),v=k(()=>P.value==="horizontal"&&_.value||P.value==="vertical"&&!l.props.collapse?e.expandCloseIcon&&e.expandOpenIcon?E.value?e.expandOpenIcon:e.expandCloseIcon:ga:e.collapseCloseIcon&&e.collapseOpenIcon?E.value?e.collapseOpenIcon:e.collapseCloseIcon:Ns),_=k(()=>u.level===0),w=k(()=>{var B;const K=(B=e.teleported)!=null?B:e.popperAppendToBody;return K===void 0?_.value:K}),T=k(()=>l.props.collapse?`${a.namespace.value}-zoom-in-left`:`${a.namespace.value}-zoom-in-top`),S=k(()=>P.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"]),E=k(()=>l.openedMenus.includes(e.index)),$=k(()=>{let B=!1;return Object.values(c.value).forEach(K=>{K.active&&(B=!0)}),Object.values(f.value).forEach(K=>{K.active&&(B=!0)}),B}),P=k(()=>l.props.mode),U=Ct({index:e.index,indexPath:r,active:$}),H=XP(l.props,u.level+1),z=k(()=>{var B;return(B=e.popperOffset)!=null?B:l.props.popperOffset}),W=()=>{var B,K,L;return(L=(K=(B=m.value)==null?void 0:B.popperRef)==null?void 0:K.popperInstanceRef)==null?void 0:L.destroy()},D=B=>{B||W()},V=()=>{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:$.value})},X=(B,K=e.showTimeout)=>{var L;if(B.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}=Xo(()=>{l.openMenu(e.index,r.value)},K),w.value&&((L=i.value.vnode.el)==null||L.dispatchEvent(new MouseEvent("mouseenter")))}},Y=(B=!1)=>{var K,L;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}=Xo(()=>!p.value&&l.closeMenu(e.index,r.value),e.hideTimeout),w.value&&B&&((K=s.parent)==null?void 0:K.type.name)==="ElSubMenu"&&((L=u.handleMouseleave)==null||L.call(u,!0))};Oe(()=>l.props.collapse,B=>D(!!B));{const B=L=>{f.value[L.index]=L},K=L=>{delete f.value[L.index]};Lt(`subMenu:${s.uid}`,{addSubMenu:B,removeSubMenu:K,handleMouseleave:Y,mouseInChild:p,level:u.level+1})}return n({opened:E}),vt(()=>{l.addSubMenu(U),u.addSubMenu(U)}),on(()=>{u.removeSubMenu(U),l.removeSubMenu(U)}),()=>{var B;const K=[(B=t.title)==null?void 0:B.call(t),lt(tt,{class:o.e("icon-arrow"),style:{transform:E.value?e.expandCloseIcon&&e.expandOpenIcon||e.collapseCloseIcon&&e.collapseOpenIcon&&l.props.collapse?"none":"rotateZ(180deg)":"none"}},{default:()=>Tt(v.value)?lt(s.appContext.components[v.value]):lt(v.value)})],L=l.isMenuPopup?lt(ms,{ref:m,visible:E.value,effect:"light",pure:!0,offset:z.value,showArrow:!1,persistent:!0,popperClass:e.popperClass,placement:y.value,teleported:w.value,fallbackPlacements:S.value,transition:T.value,gpuAcceleration:!1},{content:()=>{var Q;return lt("div",{class:[a.m(P.value),a.m("popup-container"),e.popperClass],onMouseenter:ee=>X(ee,100),onMouseleave:()=>Y(!0),onFocus:ee=>X(ee,100)},[lt("ul",{class:[a.b(),a.m("popup"),a.m(`popup-${y.value}`)],style:H.value},[(Q=t.default)==null?void 0:Q.call(t)])])},default:()=>lt("div",{class:o.e("title"),onClick:V},K)}):lt(Ke,{},[lt("div",{class:o.e("title"),ref:g,onClick:V},K),lt(fg,{},{default:()=>{var Q;return pt(lt("ul",{role:"menu",class:[a.b(),a.m("inline")],style:H.value},[(Q=t.default)==null?void 0:Q.call(t)]),[[Vt,E.value]])}})]);return lt("li",{class:[o.b(),o.is("active",$.value),o.is("opened",E.value),o.is("disabled",e.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:E.value,onMouseenter:X,onMouseleave:()=>Y(!0),onFocus:X},[L])}}});const Sne=He({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:me(Array),default:()=>vn([])},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:sn,default:()=>ij},popperEffect:{type:String,values:["dark","light"],default:"dark"}}),Rv=e=>Array.isArray(e)&&e.every(t=>Tt(t)),Cne={close:(e,t)=>Tt(e)&&Rv(t),open:(e,t)=>Tt(e)&&Rv(t),select:(e,t,n,s)=>Tt(e)&&Rv(t)&&Mt(n)&&(s===void 0||s instanceof Promise)};var Ene=Z({name:"ElMenu",props:Sne,emits:Cne,setup(e,{emit:t,slots:n,expose:s}){const r=It(),i=r.appContext.config.globalProperties.$router,a=G(),o=Le("menu"),l=Le("sub-menu"),u=G(-1),c=G(e.defaultOpeneds&&!e.collapse?e.defaultOpeneds.slice(0):[]),f=G(e.defaultActive),h=G({}),p=G({}),g=k(()=>e.mode==="horizontal"||e.mode==="vertical"&&e.collapse),m=()=>{const D=f.value&&h.value[f.value];if(!D||e.mode==="horizontal"||e.collapse)return;D.indexPath.forEach(X=>{const Y=p.value[X];Y&&y(X,Y.indexPath)})},y=(D,V)=>{c.value.includes(D)||(e.uniqueOpened&&(c.value=c.value.filter(X=>V.includes(X))),c.value.push(D),t("open",D,V))},v=D=>{const V=c.value.indexOf(D);V!==-1&&c.value.splice(V,1)},_=(D,V)=>{v(D),t("close",D,V)},w=({index:D,indexPath:V})=>{c.value.includes(D)?_(D,V):y(D,V)},T=D=>{(e.mode==="horizontal"||e.collapse)&&(c.value=[]);const{index:V,indexPath:X}=D;if(!(Un(V)||Un(X)))if(e.router&&i){const Y=D.route||V,B=i.push(Y).then(K=>(K||(f.value=V),K));t("select",V,X,{index:V,indexPath:X,route:Y},B)}else f.value=V,t("select",V,X,{index:V,indexPath:X})},S=D=>{const V=h.value,X=V[D]||f.value&&V[f.value]||V[e.defaultActive];X?f.value=X.index:f.value=D},E=()=>{var D,V;if(!a.value)return-1;const X=Array.from((V=(D=a.value)==null?void 0:D.childNodes)!=null?V:[]).filter(te=>te.nodeName!=="#comment"&&(te.nodeName!=="#text"||te.nodeValue)),Y=64,B=Number.parseInt(getComputedStyle(a.value).paddingLeft,10),K=Number.parseInt(getComputedStyle(a.value).paddingRight,10),L=a.value.clientWidth-B-K;let Q=0,ee=0;return X.forEach((te,ie)=>{Q+=te.offsetWidth||0,Q<=L-Y&&(ee=ie+1)}),ee===X.length?-1:ee},$=D=>p.value[D].indexPath,P=(D,V=33.34)=>{let X;return()=>{X&&clearTimeout(X),X=setTimeout(()=>{D()},V)}};let U=!0;const H=()=>{const D=()=>{u.value=-1,at(()=>{u.value=E()})};U?D():P(D)(),U=!1};Oe(()=>e.defaultActive,D=>{h.value[D]||(f.value=""),S(D)}),Oe(()=>e.collapse,D=>{D&&(c.value=[])}),Oe(h.value,m);let z;Gs(()=>{e.mode==="horizontal"&&e.ellipsis?z=_s(a,H).stop:z==null||z()});const W=G(!1);{const D=B=>{p.value[B.index]=B},V=B=>{delete p.value[B.index]};Lt("rootMenu",Ct({props:e,openedMenus:c,items:h,subMenus:p,activeIndex:f,isMenuPopup:g,addMenuItem:B=>{h.value[B.index]=B},removeMenuItem:B=>{delete h.value[B.index]},addSubMenu:D,removeSubMenu:V,openMenu:y,closeMenu:_,handleMenuItemClick:T,handleSubMenuClick:w})),Lt(`subMenu:${r.uid}`,{addSubMenu:D,removeSubMenu:V,mouseInChild:W,level:0})}return vt(()=>{e.mode==="horizontal"&&new vne(r.vnode.el,o.namespace.value)}),s({open:V=>{const{indexPath:X}=p.value[V];X.forEach(Y=>y(Y,X))},close:v,handleResize:H}),()=>{var D,V;let X=(V=(D=n.default)==null?void 0:D.call(n))!=null?V:[];const Y=[];if(e.mode==="horizontal"&&a.value){const Q=Ho(X),ee=u.value===-1?Q:Q.slice(0,u.value),te=u.value===-1?[]:Q.slice(u.value);te!=null&&te.length&&e.ellipsis&&(X=ee,Y.push(lt(y1,{index:"sub-menu-more",class:l.e("hide-arrow"),popperOffset:e.popperOffset},{title:()=>lt(tt,{class:l.e("icon-more")},{default:()=>lt(e.ellipsisIcon)}),default:()=>te})))}const B=XP(e,0),K=e.closeOnClickOutside?[[ia,()=>{c.value.length&&(W.value||(c.value.forEach(Q=>t("close",Q,$(Q))),c.value=[]))}]]:[],L=pt(lt("ul",{key:String(e.collapse),role:"menubar",ref:a,style:B.value,class:{[o.b()]:!0,[o.m(e.mode)]:!0,[o.m("collapse")]:e.collapse}},[...X,...Y]),K);return e.collapseTransition&&e.mode==="vertical"?lt(_ne,()=>L):L}}});const xne=He({index:{type:me([String,null]),default:null},route:{type:me([String,Object])},disabled:Boolean}),kne={click:e=>Tt(e.index)&&Array.isArray(e.indexPath)},Lv="ElMenuItem",Ine=Z({name:Lv,components:{ElTooltip:ms},props:xne,emits:kne,setup(e,{emit:t}){const n=It(),s=Qe("rootMenu"),r=Le("menu"),i=Le("menu-item");s||Yn(Lv,"can not inject root menu");const{parentMenu:a,indexPath:o}=YP(n,yn(e,"index")),l=Qe(`subMenu:${a.value.uid}`);l||Yn(Lv,"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 vt(()=>{l.addSubMenu(c),s.addMenuItem(c)}),on(()=>{l.removeSubMenu(c),s.removeMenuItem(c)}),{parentMenu:a,rootMenu:s,active:u,nsMenu:r,nsMenuItem:i,handleClick:f}}});function One(e,t,n,s,r,i){const a=Et("el-tooltip");return C(),j("li",{class:M([e.nsMenuItem.b(),e.nsMenuItem.is("active",e.active),e.nsMenuItem.is("disabled",e.disabled)]),role:"menuitem",tabindex:"-1",onClick:t[0]||(t[0]=(...o)=>e.handleClick&&e.handleClick(...o))},[e.parentMenu.type.name==="ElMenu"&&e.rootMenu.props.collapse&&e.$slots.title?(C(),he(a,{key:0,effect:e.rootMenu.props.popperEffect,placement:"right","fallback-placements":["left"],persistent:""},{content:N(()=>[we(e.$slots,"title")]),default:N(()=>[R("div",{class:M(e.nsMenu.be("tooltip","trigger"))},[we(e.$slots,"default")],2)]),_:3},8,["effect"])):(C(),j(Ke,{key:1},[we(e.$slots,"default"),we(e.$slots,"title")],64))],2)}var QP=ze(Ine,[["render",One],["__file","menu-item.vue"]]);const Ane={title:String},Pne="ElMenuItemGroup",$ne=Z({name:Pne,props:Ane,setup(){return{ns:Le("menu-item-group")}}});function Nne(e,t,n,s,r,i){return C(),j("li",{class:M(e.ns.b())},[R("div",{class:M(e.ns.e("title"))},[e.$slots.title?we(e.$slots,"title",{key:1}):(C(),j(Ke,{key:0},[Fe(ve(e.title),1)],64))],2),R("ul",null,[we(e.$slots,"default")])],2)}var JP=ze($ne,[["render",Nne],["__file","menu-item-group.vue"]]);const ZP=At(Ene,{MenuItem:QP,MenuItemGroup:JP,SubMenu:y1}),e$=In(QP),Mne=In(JP),t$=In(y1),Rne=He({icon:{type:sn,default:()=>mz},title:String,content:{type:String,default:""}}),Lne={back:()=>!0},Dne=["aria-label"],Fne=Z({name:"ElPageHeader"}),Bne=Z({...Fne,props:Rne,emits:Lne,setup(e,{emit:t}){const n=us(),{t:s}=Wt(),r=Le("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)=>(C(),j("div",{class:M(d(i))},[o.$slots.breadcrumb?(C(),j("div",{key:0,class:M(d(r).e("breadcrumb"))},[we(o.$slots,"breadcrumb")],2)):le("v-if",!0),R("div",{class:M(d(r).e("header"))},[R("div",{class:M(d(r).e("left"))},[R("div",{class:M(d(r).e("back")),role:"button",tabindex:"0",onClick:a},[o.icon||o.$slots.icon?(C(),j("div",{key:0,"aria-label":o.title||d(s)("el.pageHeader.title"),class:M(d(r).e("icon"))},[we(o.$slots,"icon",{},()=>[o.icon?(C(),he(d(tt),{key:0},{default:N(()=>[(C(),he(Nt(o.icon)))]),_:1})):le("v-if",!0)])],10,Dne)):le("v-if",!0),R("div",{class:M(d(r).e("title"))},[we(o.$slots,"title",{},()=>[Fe(ve(o.title||d(s)("el.pageHeader.title")),1)])],2)],2),I(d(MP),{direction:"vertical"}),R("div",{class:M(d(r).e("content"))},[we(o.$slots,"content",{},()=>[Fe(ve(o.content),1)])],2)],2),o.$slots.extra?(C(),j("div",{key:0,class:M(d(r).e("extra"))},[we(o.$slots,"extra")],2)):le("v-if",!0)],2),o.$slots.default?(C(),j("div",{key:1,class:M(d(r).e("main"))},[we(o.$slots,"default")],2)):le("v-if",!0)],2))}});var Vne=ze(Bne,[["__file","page-header.vue"]]);const Une=At(Vne),n$=Symbol("elPaginationKey"),Hne=He({disabled:Boolean,currentPage:{type:Number,default:1},prevText:{type:String},prevIcon:{type:sn}}),zne={click:e=>e instanceof MouseEvent},jne=["disabled","aria-label","aria-disabled"],Kne={key:0},Wne=Z({name:"ElPaginationPrev"}),qne=Z({...Wne,props:Hne,emits:zne,setup(e){const t=e,{t:n}=Wt(),s=k(()=>t.disabled||t.currentPage<=1);return(r,i)=>(C(),j("button",{type:"button",class:"btn-prev",disabled:d(s),"aria-label":r.prevText||d(n)("el.pagination.prev"),"aria-disabled":d(s),onClick:i[0]||(i[0]=a=>r.$emit("click",a))},[r.prevText?(C(),j("span",Kne,ve(r.prevText),1)):(C(),he(d(tt),{key:1},{default:N(()=>[(C(),he(Nt(r.prevIcon)))]),_:1}))],8,jne))}});var Gne=ze(qne,[["__file","prev.vue"]]);const Yne=He({disabled:Boolean,currentPage:{type:Number,default:1},pageCount:{type:Number,default:50},nextText:{type:String},nextIcon:{type:sn}}),Xne=["disabled","aria-label","aria-disabled"],Qne={key:0},Jne=Z({name:"ElPaginationNext"}),Zne=Z({...Jne,props:Yne,emits:["click"],setup(e){const t=e,{t:n}=Wt(),s=k(()=>t.disabled||t.currentPage===t.pageCount||t.pageCount===0);return(r,i)=>(C(),j("button",{type:"button",class:"btn-next",disabled:d(s),"aria-label":r.nextText||d(n)("el.pagination.next"),"aria-disabled":d(s),onClick:i[0]||(i[0]=a=>r.$emit("click",a))},[r.nextText?(C(),j("span",Qne,ve(r.nextText),1)):(C(),he(d(tt),{key:1},{default:N(()=>[(C(),he(Nt(r.nextIcon)))]),_:1}))],8,Xne))}});var ese=ze(Zne,[["__file","next.vue"]]);const s$=Symbol("ElSelectGroup"),_f=Symbol("ElSelect");function tse(e,t){const n=Qe(_f),s=Qe(s$,{disabled:!1}),r=k(()=>Mt(e.value)),i=k(()=>n.props.multiple?f(n.props.modelValue,e.value):h(e.value,n.props.modelValue)),a=k(()=>{if(n.props.multiple){const m=n.props.modelValue||[];return!i.value&&m.length>=n.props.multipleLimit&&n.props.multipleLimit>0}else return!1}),o=k(()=>e.label||(r.value?"":e.value)),l=k(()=>e.value||e.label||""),u=k(()=>e.disabled||t.groupDisabled||a.value),c=It(),f=(m=[],y)=>{if(r.value){const v=n.props.valueKey;return m&&m.some(_=>Qt(gn(_,v))===gn(y,v))}else return m&&m.includes(y)},h=(m,y)=>{if(r.value){const{valueKey:v}=n.props;return gn(m,v)===gn(y,v)}else return m===y},p=()=>{!e.disabled&&!s.disabled&&(n.hoverIndex=n.optionsArray.indexOf(c.proxy))};Oe(()=>o.value,()=>{!e.created&&!n.props.remote&&n.setSelected()}),Oe(()=>e.value,(m,y)=>{const{remote:v,valueKey:_}=n.props;if(Object.is(m,y)||(n.onOptionDestroy(y,c.proxy),n.onOptionCreate(c.proxy)),!e.created&&!v){if(_&&Mt(m)&&Mt(y)&&m[_]===y[_])return;n.setSelected()}}),Oe(()=>s.disabled,()=>{t.groupDisabled=s.disabled},{immediate:!0});const{queryChange:g}=Qt(n);return Oe(g,m=>{const{query:y}=d(m),v=new RegExp(cO(y),"i");t.visible=v.test(o.value)||e.created,t.visible||n.filteredOptionsCount--},{immediate:!0}),{select:n,currentLabel:o,currentValue:l,itemSelected:i,isDisabled:u,hoverItem:p}}const nse=Z({name:"ElOption",componentName:"ElOption",props:{value:{required:!0,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:Boolean},setup(e){const t=Le("select"),n=tr(),s=k(()=>[t.be("dropdown","item"),t.is("disabled",d(o)),{selected:d(a),hover:d(f)}]),r=Ct({index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}),{currentLabel:i,itemSelected:a,isDisabled:o,select:l,hoverItem:u}=tse(e,r),{visible:c,hover:f}=es(r),h=It().proxy;l.onOptionCreate(h),on(()=>{const g=h.value,{selected:m}=l,v=(l.props.multiple?m:[m]).some(_=>_.value===h.value);at(()=>{l.cachedOptions.get(g)===h&&!v&&l.cachedOptions.delete(g)}),l.onOptionDestroy(g,h)});function p(){e.disabled!==!0&&r.groupDisabled!==!0&&l.handleOptionSelect(h)}return{ns:t,id:n,containerKls:s,currentLabel:i,itemSelected:a,isDisabled:o,select:l,hoverItem:u,visible:c,hover:f,selectOptionClick:p,states:r}}}),sse=["id","aria-disabled","aria-selected"];function rse(e,t,n,s,r,i){return pt((C(),j("li",{id:e.id,class:M(e.containerKls),role:"option","aria-disabled":e.isDisabled||void 0,"aria-selected":e.itemSelected,onMouseenter:t[0]||(t[0]=(...a)=>e.hoverItem&&e.hoverItem(...a)),onClick:t[1]||(t[1]=dt((...a)=>e.selectOptionClick&&e.selectOptionClick(...a),["stop"]))},[we(e.$slots,"default",{},()=>[R("span",null,ve(e.currentLabel),1)])],42,sse)),[[Vt,e.visible]])}var b1=ze(nse,[["render",rse],["__file","option.vue"]]);const ise=Z({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=Qe(_f),t=Le("select"),n=k(()=>e.props.popperClass),s=k(()=>e.props.multiple),r=k(()=>e.props.fitInputWidth),i=G("");function a(){var o;i.value=`${(o=e.selectWrapper)==null?void 0:o.offsetWidth}px`}return vt(()=>{a(),_s(e.selectWrapper,a)}),{ns:t,minWidth:i,popperClass:n,isMultiple:s,isFitInputWidth:r}}});function ase(e,t,n,s,r,i){return C(),j("div",{class:M([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:rt({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[e.$slots.header?(C(),j("div",{key:0,class:M(e.ns.be("dropdown","header"))},[we(e.$slots,"header")],2)):le("v-if",!0),we(e.$slots,"default"),e.$slots.footer?(C(),j("div",{key:1,class:M(e.ns.be("dropdown","footer"))},[we(e.$slots,"footer")],2)):le("v-if",!0)],6)}var ose=ze(ise,[["render",ase],["__file","select-dropdown.vue"]]);function lse(e){const{t}=Wt();return Ct({options:new Map,cachedOptions:new Map,disabledOptions:new Map,createdLabel:null,createdSelected:!1,selected:e.multiple?[]:{},inputLength:20,inputWidth:0,optionsCount:0,filteredOptionsCount:0,visible:!1,selectedLabel:"",hoverIndex:-1,query:"",previousQuery:null,inputHovering:!1,cachedPlaceHolder:"",currentPlaceholder:t("el.select.placeholder"),menuVisibleOnFocus:!1,isOnComposition:!1,prefixWidth:11,mouseEnter:!1,focused:!1})}const use=(e,t,n)=>{const{t:s}=Wt(),r=Le("select");Ii({from:"suffixTransition",replacement:"override style scheme",version:"2.3.0",scope:"props",ref:"https://element-plus.org/en-US/component/select.html#select-attributes"},k(()=>e.suffixTransition===!1));const i=G(null),a=G(null),o=G(null),l=G(null),u=G(null),c=G(null),f=G(null),h=G(null),p=G(),g=Jt({query:""}),m=Jt(""),y=G([]);let v=0;const{form:_,formItem:w}=Bs(),T=k(()=>!e.filterable||e.multiple||!t.visible),S=k(()=>e.disabled||(_==null?void 0:_.disabled)),E=k(()=>{const xe=e.multiple?Array.isArray(e.modelValue)&&e.modelValue.length>0:e.modelValue!==void 0&&e.modelValue!==null&&e.modelValue!=="";return e.clearable&&!S.value&&t.inputHovering&&xe}),$=k(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),P=k(()=>r.is("reverse",$.value&&t.visible&&e.suffixTransition)),U=k(()=>(_==null?void 0:_.statusIcon)&&(w==null?void 0:w.validateState)&&$_[w==null?void 0:w.validateState]),H=k(()=>e.remote?300:0),z=k(()=>e.loading?e.loadingText||s("el.select.loading"):e.remote&&t.query===""&&t.options.size===0?!1:e.filterable&&t.query&&t.options.size>0&&t.filteredOptionsCount===0?e.noMatchText||s("el.select.noMatch"):t.options.size===0?e.noDataText||s("el.select.noData"):null),W=k(()=>{const xe=Array.from(t.options.values()),Ge=[];return y.value.forEach(mt=>{const Ut=xe.findIndex(Hn=>Hn.currentLabel===mt);Ut>-1&&Ge.push(xe[Ut])}),Ge.length>=xe.length?Ge:xe}),D=k(()=>Array.from(t.cachedOptions.values())),V=k(()=>{const xe=W.value.filter(Ge=>!Ge.created).some(Ge=>Ge.currentLabel===t.query);return e.filterable&&e.allowCreate&&t.query!==""&&!xe}),X=Xn(),Y=k(()=>["small"].includes(X.value)?"small":"default"),B=k({get(){return t.visible&&z.value!==!1},set(xe){t.visible=xe}});Oe([()=>S.value,()=>X.value,()=>_==null?void 0:_.size],()=>{at(()=>{K()})}),Oe(()=>e.placeholder,xe=>{t.cachedPlaceHolder=t.currentPlaceholder=xe,e.multiple&&Array.isArray(e.modelValue)&&e.modelValue.length>0&&(t.currentPlaceholder="")}),Oe(()=>e.modelValue,(xe,Ge)=>{e.multiple&&(K(),xe&&xe.length>0||a.value&&t.query!==""?t.currentPlaceholder="":t.currentPlaceholder=t.cachedPlaceHolder,e.filterable&&!e.reserveKeyword&&(t.query="",L(t.query))),te(),e.filterable&&!e.multiple&&(t.inputLength=20),!Ys(xe,Ge)&&e.validateEvent&&(w==null||w.validate("change").catch(mt=>void 0))},{flush:"post",deep:!0}),Oe(()=>t.visible,xe=>{var Ge,mt,Ut,Hn,Ue;xe?((mt=(Ge=l.value)==null?void 0:Ge.updatePopper)==null||mt.call(Ge),e.filterable&&(t.filteredOptionsCount=t.optionsCount,t.query=e.remote?"":t.selectedLabel,(Hn=(Ut=o.value)==null?void 0:Ut.focus)==null||Hn.call(Ut),e.multiple?(Ue=a.value)==null||Ue.focus():t.selectedLabel&&(t.currentPlaceholder=`${t.selectedLabel}`,t.selectedLabel=""),L(t.query),!e.multiple&&!e.remote&&(g.value.query="",hc(g),hc(m)))):(e.filterable&&(yt(e.filterMethod)&&e.filterMethod(""),yt(e.remoteMethod)&&e.remoteMethod("")),t.query="",t.previousQuery=null,t.selectedLabel="",t.inputLength=20,t.menuVisibleOnFocus=!1,_e(),at(()=>{a.value&&a.value.value===""&&t.selected.length===0&&(t.currentPlaceholder=t.cachedPlaceHolder)}),e.multiple||(t.selected&&(e.filterable&&e.allowCreate&&t.createdSelected&&t.createdLabel?t.selectedLabel=t.createdLabel:t.selectedLabel=t.selected.currentLabel,e.filterable&&(t.query=t.selectedLabel)),e.filterable&&(t.currentPlaceholder=t.cachedPlaceHolder))),n.emit("visible-change",xe)}),Oe(()=>t.options.entries(),()=>{var xe,Ge,mt;if(!Kt)return;(Ge=(xe=l.value)==null?void 0:xe.updatePopper)==null||Ge.call(xe),e.multiple&&K();const Ut=((mt=f.value)==null?void 0:mt.querySelectorAll("input"))||[];(!e.filterable&&!e.defaultFirstOption&&!qn(e.modelValue)||!Array.from(Ut).includes(document.activeElement))&&te(),e.defaultFirstOption&&(e.filterable||e.remote)&&t.filteredOptionsCount&&ee()},{flush:"post"}),Oe(()=>t.hoverIndex,xe=>{ht(xe)&&xe>-1?p.value=W.value[xe]||{}:p.value={},W.value.forEach(Ge=>{Ge.hover=p.value===Ge})});const K=()=>{at(()=>{var xe,Ge;if(!i.value)return;const mt=i.value.$el.querySelector("input");v=v||(mt.clientHeight>0?mt.clientHeight+2:0);const Ut=c.value,Hn=getComputedStyle(mt).getPropertyValue(r.cssVarName("input-height")),Ue=Number.parseFloat(Hn)||jj(X.value||(_==null?void 0:_.size)),ft=X.value||Ue===v||v<=0?Ue:v;!(mt.offsetParent===null)&&(mt.style.height=`${(t.selected.length===0?ft:Math.max(Ut?Ut.clientHeight+(Ut.clientHeight>ft?6:0):0,ft))-2}px`),t.visible&&z.value!==!1&&((Ge=(xe=l.value)==null?void 0:xe.updatePopper)==null||Ge.call(xe))})},L=async xe=>{if(!(t.previousQuery===xe||t.isOnComposition)){if(t.previousQuery===null&&(yt(e.filterMethod)||yt(e.remoteMethod))){t.previousQuery=xe;return}t.previousQuery=xe,at(()=>{var Ge,mt;t.visible&&((mt=(Ge=l.value)==null?void 0:Ge.updatePopper)==null||mt.call(Ge))}),t.hoverIndex=-1,e.multiple&&e.filterable&&at(()=>{if(!S.value){const Ge=a.value.value.length*15+20;t.inputLength=e.collapseTags?Math.min(50,Ge):Ge,Q()}K()}),e.remote&&yt(e.remoteMethod)?(t.hoverIndex=-1,e.remoteMethod(xe)):yt(e.filterMethod)?(e.filterMethod(xe),hc(m)):(t.filteredOptionsCount=t.optionsCount,g.value.query=xe,hc(g),hc(m)),e.defaultFirstOption&&(e.filterable||e.remote)&&t.filteredOptionsCount&&(await at(),ee())}},Q=()=>{t.currentPlaceholder!==""&&(t.currentPlaceholder=a.value.value?"":t.cachedPlaceHolder)},ee=()=>{const xe=W.value.filter(Ut=>Ut.visible&&!Ut.disabled&&!Ut.states.groupDisabled),Ge=xe.find(Ut=>Ut.created),mt=xe[0];t.hoverIndex=Be(W.value,Ge||mt)},te=()=>{var xe;if(e.multiple)t.selectedLabel="";else{const mt=ie(e.modelValue);(xe=mt.props)!=null&&xe.created?(t.createdLabel=mt.props.value,t.createdSelected=!0):t.createdSelected=!1,t.selectedLabel=mt.currentLabel,t.selected=mt,e.filterable&&(t.query=t.selectedLabel);return}const Ge=[];Array.isArray(e.modelValue)&&e.modelValue.forEach(mt=>{Ge.push(ie(mt))}),t.selected=Ge,at(()=>{K()})},ie=xe=>{let Ge;const mt=jh(xe).toLowerCase()==="object",Ut=jh(xe).toLowerCase()==="null",Hn=jh(xe).toLowerCase()==="undefined";for(let Dt=t.cachedOptions.size-1;Dt>=0;Dt--){const qt=D.value[Dt];if(mt?gn(qt.value,e.valueKey)===gn(xe,e.valueKey):qt.value===xe){Ge={value:xe,currentLabel:qt.currentLabel,isDisabled:qt.isDisabled};break}}if(Ge)return Ge;const Ue=mt?xe.label:!Ut&&!Hn?xe:"",ft={value:xe,currentLabel:Ue};return e.multiple&&(ft.hitState=!1),ft},_e=()=>{setTimeout(()=>{const xe=e.valueKey;e.multiple?t.selected.length>0?t.hoverIndex=Math.min.apply(null,t.selected.map(Ge=>W.value.findIndex(mt=>gn(mt,xe)===gn(Ge,xe)))):t.hoverIndex=-1:t.hoverIndex=W.value.findIndex(Ge=>Ne(Ge)===Ne(t.selected))},300)},ue=()=>{var xe,Ge;oe(),(Ge=(xe=l.value)==null?void 0:xe.updatePopper)==null||Ge.call(xe),e.multiple&&K()},oe=()=>{var xe;t.inputWidth=(xe=i.value)==null?void 0:xe.$el.offsetWidth},de=()=>{e.filterable&&t.query!==t.selectedLabel&&(t.query=t.selectedLabel,L(t.query))},ae=Fs(()=>{de()},H.value),Ie=Fs(xe=>{L(xe.target.value)},H.value),ke=xe=>{Ys(e.modelValue,xe)||n.emit(ln,xe)},Ee=xe=>DH(xe,Ge=>!t.disabledOptions.has(Ge)),J=xe=>{if(xe.code!==ot.delete){if(xe.target.value.length<=0&&!qe()){const Ge=e.modelValue.slice(),mt=Ee(Ge);if(mt<0)return;Ge.splice(mt,1),n.emit($t,Ge),ke(Ge)}xe.target.value.length===1&&e.modelValue.length===0&&(t.currentPlaceholder=t.cachedPlaceHolder)}},re=(xe,Ge)=>{const mt=t.selected.indexOf(Ge);if(mt>-1&&!S.value){const Ut=e.modelValue.slice();Ut.splice(mt,1),n.emit($t,Ut),ke(Ut),n.emit("remove-tag",Ge.value)}xe.stopPropagation(),Xe()},Se=xe=>{xe.stopPropagation();const Ge=e.multiple?[]:"";if(!Tt(Ge))for(const mt of t.selected)mt.isDisabled&&Ge.push(mt.value);n.emit($t,Ge),ke(Ge),t.hoverIndex=-1,t.visible=!1,n.emit("clear"),Xe()},Ae=xe=>{var Ge;if(e.multiple){const mt=(e.modelValue||[]).slice(),Ut=Be(mt,xe.value);Ut>-1?mt.splice(Ut,1):(e.multipleLimit<=0||mt.length<e.multipleLimit)&&mt.push(xe.value),n.emit($t,mt),ke(mt),xe.created&&(t.query="",L(""),t.inputLength=20),e.filterable&&((Ge=a.value)==null||Ge.focus())}else n.emit($t,xe.value),ke(xe.value),t.visible=!1;Pe(),!t.visible&&at(()=>{Ve(xe)})},Be=(xe=[],Ge)=>{if(!Mt(Ge))return xe.indexOf(Ge);const mt=e.valueKey;let Ut=-1;return xe.some((Hn,Ue)=>Qt(gn(Hn,mt))===gn(Ge,mt)?(Ut=Ue,!0):!1),Ut},Pe=()=>{const xe=a.value||i.value;xe&&(xe==null||xe.focus())},Ve=xe=>{var Ge,mt,Ut,Hn,Ue;const ft=Array.isArray(xe)?xe[0]:xe;let Dt=null;if(ft!=null&&ft.value){const qt=W.value.filter(zn=>zn.value===ft.value);qt.length>0&&(Dt=qt[0].$el)}if(l.value&&Dt){const qt=(Hn=(Ut=(mt=(Ge=l.value)==null?void 0:Ge.popperRef)==null?void 0:mt.contentRef)==null?void 0:Ut.querySelector)==null?void 0:Hn.call(Ut,`.${r.be("dropdown","wrap")}`);qt&&hO(qt,Dt)}(Ue=h.value)==null||Ue.handleScroll()},$e=xe=>{t.optionsCount++,t.filteredOptionsCount++,t.options.set(xe.value,xe),t.cachedOptions.set(xe.value,xe),xe.disabled&&t.disabledOptions.set(xe.value,xe)},Te=(xe,Ge)=>{t.options.get(xe)===Ge&&(t.optionsCount--,t.filteredOptionsCount--,t.options.delete(xe))},De=xe=>{xe.code!==ot.backspace&&qe(!1),t.inputLength=a.value.value.length*15+20,K()},qe=xe=>{if(!Array.isArray(t.selected))return;const Ge=Ee(t.selected.map(Ut=>Ut.value)),mt=t.selected[Ge];if(mt)return xe===!0||xe===!1?(mt.hitState=xe,xe):(mt.hitState=!mt.hitState,mt.hitState)},Je=xe=>{const Ge=xe.target.value;if(xe.type==="compositionend")t.isOnComposition=!1,at(()=>L(Ge));else{const mt=Ge[Ge.length-1]||"";t.isOnComposition=!eg(mt)}},et=()=>{at(()=>Ve(t.selected))},Re=xe=>{t.focused||((e.automaticDropdown||e.filterable)&&(e.filterable&&!t.visible&&(t.menuVisibleOnFocus=!0),t.visible=!0),t.focused=!0,n.emit("focus",xe))},Xe=()=>{var xe,Ge;t.visible?(xe=a.value||i.value)==null||xe.focus():(Ge=i.value)==null||Ge.focus()},ct=()=>{var xe,Ge,mt;t.visible=!1,(xe=i.value)==null||xe.blur(),(mt=(Ge=o.value)==null?void 0:Ge.blur)==null||mt.call(Ge)},wt=xe=>{var Ge,mt,Ut;(Ge=l.value)!=null&&Ge.isFocusInsideContent(xe)||(mt=u.value)!=null&&mt.isFocusInsideContent(xe)||(Ut=f.value)!=null&&Ut.contains(xe.relatedTarget)||(t.visible&&ut(),t.focused=!1,n.emit("blur",xe))},Pt=xe=>{Se(xe)},ut=()=>{t.visible=!1},Ce=xe=>{t.visible&&(xe.preventDefault(),xe.stopPropagation(),t.visible=!1)},pe=xe=>{xe&&!t.mouseEnter||S.value||(t.menuVisibleOnFocus?t.menuVisibleOnFocus=!1:(!l.value||!l.value.isFocusInsideContent())&&(t.visible=!t.visible),Xe())},ge=()=>{t.visible?W.value[t.hoverIndex]&&Ae(W.value[t.hoverIndex]):pe()},Ne=xe=>Mt(xe.value)?gn(xe.value,e.valueKey):xe.value,ne=k(()=>W.value.filter(xe=>xe.visible).every(xe=>xe.disabled)),Ye=k(()=>e.multiple?t.selected.slice(0,e.maxCollapseTags):[]),_t=k(()=>e.multiple?t.selected.slice(e.maxCollapseTags):[]),Ft=xe=>{if(!t.visible){t.visible=!0;return}if(!(t.options.size===0||t.filteredOptionsCount===0)&&!t.isOnComposition&&!ne.value){xe==="next"?(t.hoverIndex++,t.hoverIndex===t.options.size&&(t.hoverIndex=0)):xe==="prev"&&(t.hoverIndex--,t.hoverIndex<0&&(t.hoverIndex=t.options.size-1));const Ge=W.value[t.hoverIndex];(Ge.disabled===!0||Ge.states.groupDisabled===!0||!Ge.visible)&&Ft(xe),at(()=>Ve(p.value))}},Pn=()=>{t.mouseEnter=!0},mn=()=>{t.mouseEnter=!1},Vs=(xe,Ge)=>{var mt,Ut;re(xe,Ge),(Ut=(mt=u.value)==null?void 0:mt.updatePopper)==null||Ut.call(mt)},Jn=k(()=>({maxWidth:`${d(t.inputWidth)-32-(U.value?22:0)}px`,width:"100%"}));return{optionList:y,optionsArray:W,hoverOption:p,selectSize:X,handleResize:ue,debouncedOnInputChange:ae,debouncedQueryChange:Ie,deletePrevTag:J,deleteTag:re,deleteSelected:Se,handleOptionSelect:Ae,scrollToOption:Ve,readonly:T,resetInputHeight:K,showClose:E,iconComponent:$,iconReverse:P,showNewOption:V,collapseTagSize:Y,setSelected:te,managePlaceholder:Q,selectDisabled:S,emptyText:z,toggleLastOptionHitState:qe,resetInputState:De,handleComposition:Je,onOptionCreate:$e,onOptionDestroy:Te,handleMenuEnter:et,handleFocus:Re,focus:Xe,blur:ct,handleBlur:wt,handleClearClick:Pt,handleClose:ut,handleKeydownEscape:Ce,toggleMenu:pe,selectOption:ge,getValueKey:Ne,navigateOptions:Ft,handleDeleteTooltipTag:Vs,dropMenuVisible:B,queryChange:g,groupQueryChange:m,showTagList:Ye,collapseTagList:_t,selectTagsStyle:Jn,reference:i,input:a,iOSInput:o,tooltipRef:l,tagTooltipRef:u,tags:c,selectWrapper:f,scrollbar:h,handleMouseEnter:Pn,handleMouseLeave:mn}};var cse=Z({name:"ElOptions",emits:["update-options"],setup(e,{slots:t,emit:n}){let s=[];function r(i,a){if(i.length!==a.length)return!1;for(const[o]of i.entries())if(i[o]!=a[o])return!1;return!0}return()=>{var i,a;const o=(i=t.default)==null?void 0:i.call(t),l=[];function u(c){Array.isArray(c)&&c.forEach(f=>{var h,p,g,m;const y=(h=(f==null?void 0:f.type)||{})==null?void 0:h.name;y==="ElOptionGroup"?u(!Tt(f.children)&&!Array.isArray(f.children)&&yt((p=f.children)==null?void 0:p.default)?(g=f.children)==null?void 0:g.default():f.children):y==="ElOption"?l.push((m=f.props)==null?void 0:m.label):Array.isArray(f.children)&&u(f.children)})}return o.length&&u((a=o[0])==null?void 0:a.children),r(l,s)||(s=l,n("update-options",l)),o}}});const NE="ElSelect",dse=Z({name:NE,componentName:NE,components:{ElInput:Fn,ElSelectMenu:ose,ElOption:b1,ElOptions:cse,ElTag:aa,ElScrollbar:va,ElTooltip:ms,ElIcon:tt},directives:{ClickOutside:ia},props:{name:String,id:String,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:{type:String,validator:N_},effect:{type:String,default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type: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:ss.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:sn,default:to},fitInputWidth:Boolean,suffixIcon:{type:sn,default:ga},tagType:{...a1.type,default:"info"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,suffixTransition:{type:Boolean,default:!0},placement:{type:String,values:ul,default:"bottom-start"},ariaLabel:{type:String,default:void 0}},emits:[$t,ln,"remove-tag","clear","visible-change","focus","blur"],setup(e,t){const n=Le("select"),s=Le("input"),{t:r}=Wt(),i=tr(),a=lse(e),{optionList:o,optionsArray:l,hoverOption:u,selectSize:c,readonly:f,handleResize:h,collapseTagSize:p,debouncedOnInputChange:g,debouncedQueryChange:m,deletePrevTag:y,deleteTag:v,deleteSelected:_,handleOptionSelect:w,scrollToOption:T,setSelected:S,resetInputHeight:E,managePlaceholder:$,showClose:P,selectDisabled:U,iconComponent:H,iconReverse:z,showNewOption:W,emptyText:D,toggleLastOptionHitState:V,resetInputState:X,handleComposition:Y,onOptionCreate:B,onOptionDestroy:K,handleMenuEnter:L,handleFocus:Q,focus:ee,blur:te,handleBlur:ie,handleClearClick:_e,handleClose:ue,handleKeydownEscape:oe,toggleMenu:de,selectOption:ae,getValueKey:Ie,navigateOptions:ke,handleDeleteTooltipTag:Ee,dropMenuVisible:J,reference:re,input:Se,iOSInput:Ae,tooltipRef:Be,tagTooltipRef:Pe,tags:Ve,selectWrapper:$e,scrollbar:Te,queryChange:De,groupQueryChange:qe,handleMouseEnter:Je,handleMouseLeave:et,showTagList:Re,collapseTagList:Xe,selectTagsStyle:ct}=use(e,a,t),{inputWidth:wt,selected:Pt,inputLength:ut,filteredOptionsCount:Ce,visible:pe,selectedLabel:ge,hoverIndex:Ne,query:ne,inputHovering:Ye,currentPlaceholder:_t,menuVisibleOnFocus:Ft,isOnComposition:Pn,options:mn,cachedOptions:Vs,optionsCount:Jn,prefixWidth:xe}=es(a),Ge=k(()=>{const Ln=[n.b()],Bn=d(c);return Bn&&Ln.push(n.m(Bn)),e.disabled&&Ln.push(n.m("disabled")),Ln}),mt=k(()=>[n.e("tags"),n.is("disabled",d(U))]),Ut=k(()=>[n.b("tags-wrapper"),{"has-prefix":d(xe)&&d(Pt).length}]),Hn=k(()=>[n.e("input"),n.is(d(c)),n.is("disabled",d(U))]),Ue=k(()=>[n.e("input"),n.is(d(c)),n.em("input","iOS")]),ft=k(()=>[n.is("empty",!e.allowCreate&&!!d(ne)&&d(Ce)===0)]),Dt=k(()=>({maxWidth:`${d(wt)>123&&d(Pt).length>e.maxCollapseTags?d(wt)-123:d(wt)-75}px`})),qt=k(()=>({marginLeft:`${d(xe)}px`,flexGrow:1,width:`${d(ut)/(d(wt)-32)}%`,maxWidth:`${d(wt)-42}px`}));Lt(_f,Ct({props:e,options:mn,optionsArray:l,cachedOptions:Vs,optionsCount:Jn,filteredOptionsCount:Ce,hoverIndex:Ne,handleOptionSelect:w,onOptionCreate:B,onOptionDestroy:K,selectWrapper:$e,selected:Pt,setSelected:S,queryChange:De,groupQueryChange:qe})),vt(()=>{a.cachedPlaceHolder=_t.value=e.placeholder||(()=>r("el.select.placeholder")),e.multiple&&Array.isArray(e.modelValue)&&e.modelValue.length>0&&(_t.value=""),_s($e,h),e.remote&&e.multiple&&E(),at(()=>{const Ln=re.value&&re.value.$el;if(Ln&&(wt.value=Ln.getBoundingClientRect().width,t.slots.prefix)){const Bn=Ln.querySelector(`.${s.e("prefix")}`);xe.value=Math.max(Bn.getBoundingClientRect().width+11,30)}}),S()}),e.multiple&&!Array.isArray(e.modelValue)&&t.emit($t,[]),!e.multiple&&Array.isArray(e.modelValue)&&t.emit($t,"");const zn=k(()=>{var Ln,Bn;return(Bn=(Ln=Be.value)==null?void 0:Ln.popperRef)==null?void 0:Bn.contentRef});return{isIOS:TI,onOptionsRendered:Ln=>{o.value=Ln},prefixWidth:xe,selectSize:c,readonly:f,handleResize:h,collapseTagSize:p,debouncedOnInputChange:g,debouncedQueryChange:m,deletePrevTag:y,deleteTag:v,handleDeleteTooltipTag:Ee,deleteSelected:_,handleOptionSelect:w,scrollToOption:T,inputWidth:wt,selected:Pt,inputLength:ut,filteredOptionsCount:Ce,visible:pe,selectedLabel:ge,hoverIndex:Ne,query:ne,inputHovering:Ye,currentPlaceholder:_t,menuVisibleOnFocus:Ft,isOnComposition:Pn,options:mn,resetInputHeight:E,managePlaceholder:$,showClose:P,selectDisabled:U,iconComponent:H,iconReverse:z,showNewOption:W,emptyText:D,toggleLastOptionHitState:V,resetInputState:X,handleComposition:Y,handleMenuEnter:L,handleFocus:Q,focus:ee,blur:te,handleBlur:ie,handleClearClick:_e,handleClose:ue,handleKeydownEscape:oe,toggleMenu:de,selectOption:ae,getValueKey:Ie,navigateOptions:ke,dropMenuVisible:J,reference:re,input:Se,iOSInput:Ae,tooltipRef:Be,popperPaneRef:zn,tags:Ve,selectWrapper:$e,scrollbar:Te,wrapperKls:Ge,tagsKls:mt,tagWrapperKls:Ut,inputKls:Hn,iOSInputKls:Ue,scrollbarKls:ft,selectTagsStyle:ct,nsSelect:n,tagTextStyle:Dt,inputStyle:qt,handleMouseEnter:Je,handleMouseLeave:et,showTagList:Re,collapseTagList:Xe,tagTooltipRef:Pe,contentId:i,hoverOption:u}}}),fse=["disabled","autocomplete","aria-activedescendant","aria-controls","aria-expanded","aria-label"],hse=["disabled"],pse={style:{height:"100%",display:"flex","justify-content":"center","align-items":"center"}};function mse(e,t,n,s,r,i){const a=Et("el-tag"),o=Et("el-tooltip"),l=Et("el-icon"),u=Et("el-input"),c=Et("el-option"),f=Et("el-options"),h=Et("el-scrollbar"),p=Et("el-select-menu"),g=vd("click-outside");return pt((C(),j("div",{ref:"selectWrapper",class:M(e.wrapperKls),onMouseenter:t[22]||(t[22]=(...m)=>e.handleMouseEnter&&e.handleMouseEnter(...m)),onMouseleave:t[23]||(t[23]=(...m)=>e.handleMouseLeave&&e.handleMouseLeave(...m)),onClick:t[24]||(t[24]=dt((...m)=>e.toggleMenu&&e.toggleMenu(...m),["stop"]))},[I(o,{ref:"tooltipRef",visible:e.dropMenuVisible,placement:e.placement,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-options":e.popperOptions,"fallback-placements":["bottom-start","top-start","right","left"],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,onShow:e.handleMenuEnter},{default:N(()=>{var m,y;return[R("div",{class:"select-trigger",onMouseenter:t[20]||(t[20]=v=>e.inputHovering=!0),onMouseleave:t[21]||(t[21]=v=>e.inputHovering=!1)},[e.multiple?(C(),j("div",{key:0,ref:"tags",tabindex:"-1",class:M(e.tagsKls),style:rt(e.selectTagsStyle),onClick:t[15]||(t[15]=(...v)=>e.focus&&e.focus(...v))},[e.collapseTags&&e.selected.length?(C(),he(Rn,{key:0,onAfterLeave:e.resetInputHeight},{default:N(()=>[R("span",{class:M(e.tagWrapperKls)},[(C(!0),j(Ke,null,bt(e.showTagList,v=>(C(),he(a,{key:e.getValueKey(v),closable:!e.selectDisabled&&!v.isDisabled,size:e.collapseTagSize,hit:v.hitState,type:e.tagType,"disable-transitions":"",onClose:_=>e.deleteTag(_,v)},{default:N(()=>[R("span",{class:M(e.nsSelect.e("tags-text")),style:rt(e.tagTextStyle)},ve(v.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))),128)),e.selected.length>e.maxCollapseTags?(C(),he(a,{key:0,closable:!1,size:e.collapseTagSize,type:e.tagType,"disable-transitions":""},{default:N(()=>[e.collapseTagsTooltip?(C(),he(o,{key:0,ref:"tagTooltipRef",disabled:e.dropMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:e.teleported},{default:N(()=>[R("span",{class:M(e.nsSelect.e("tags-text"))},"+ "+ve(e.selected.length-e.maxCollapseTags),3)]),content:N(()=>[R("div",{class:M(e.nsSelect.e("collapse-tags"))},[(C(!0),j(Ke,null,bt(e.collapseTagList,v=>(C(),j("div",{key:e.getValueKey(v),class:M(e.nsSelect.e("collapse-tag"))},[I(a,{class:"in-tooltip",closable:!e.selectDisabled&&!v.isDisabled,size:e.collapseTagSize,hit:v.hitState,type:e.tagType,"disable-transitions":"",style:{margin:"2px"},onClose:_=>e.handleDeleteTooltipTag(_,v)},{default:N(()=>[R("span",{class:M(e.nsSelect.e("tags-text")),style:rt({maxWidth:e.inputWidth-75+"px"})},ve(v.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"])],2))),128))],2)]),_:1},8,["disabled","effect","teleported"])):(C(),j("span",{key:1,class:M(e.nsSelect.e("tags-text"))},"+ "+ve(e.selected.length-e.maxCollapseTags),3))]),_:1},8,["size","type"])):le("v-if",!0)],2)]),_:1},8,["onAfterLeave"])):le("v-if",!0),e.collapseTags?le("v-if",!0):(C(),he(Rn,{key:1,onAfterLeave:e.resetInputHeight},{default:N(()=>[R("span",{class:M(e.tagWrapperKls),style:rt(e.prefixWidth&&e.selected.length?{marginLeft:`${e.prefixWidth}px`}:"")},[(C(!0),j(Ke,null,bt(e.selected,v=>(C(),he(a,{key:e.getValueKey(v),closable:!e.selectDisabled&&!v.isDisabled,size:e.collapseTagSize,hit:v.hitState,type:e.tagType,"disable-transitions":"",onClose:_=>e.deleteTag(_,v)},{default:N(()=>[R("span",{class:M(e.nsSelect.e("tags-text")),style:rt({maxWidth:e.inputWidth-75+"px"})},ve(v.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))),128))],6)]),_:1},8,["onAfterLeave"])),e.filterable&&!e.selectDisabled?pt((C(),j("input",{key:2,ref:"input","onUpdate:modelValue":t[0]||(t[0]=v=>e.query=v),type:"text",class:M(e.inputKls),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:rt(e.inputStyle),role:"combobox","aria-activedescendant":((m=e.hoverOption)==null?void 0:m.id)||"","aria-controls":e.contentId,"aria-expanded":e.dropMenuVisible,"aria-label":e.ariaLabel,"aria-autocomplete":"none","aria-haspopup":"listbox",onFocus:t[1]||(t[1]=(...v)=>e.handleFocus&&e.handleFocus(...v)),onBlur:t[2]||(t[2]=(...v)=>e.handleBlur&&e.handleBlur(...v)),onKeyup:t[3]||(t[3]=(...v)=>e.managePlaceholder&&e.managePlaceholder(...v)),onKeydown:[t[4]||(t[4]=(...v)=>e.resetInputState&&e.resetInputState(...v)),t[5]||(t[5]=jt(dt(v=>e.navigateOptions("next"),["prevent"]),["down"])),t[6]||(t[6]=jt(dt(v=>e.navigateOptions("prev"),["prevent"]),["up"])),t[7]||(t[7]=jt((...v)=>e.handleKeydownEscape&&e.handleKeydownEscape(...v),["esc"])),t[8]||(t[8]=jt(dt((...v)=>e.selectOption&&e.selectOption(...v),["stop","prevent"]),["enter"])),t[9]||(t[9]=jt((...v)=>e.deletePrevTag&&e.deletePrevTag(...v),["delete"])),t[10]||(t[10]=jt(v=>e.visible=!1,["tab"]))],onCompositionstart:t[11]||(t[11]=(...v)=>e.handleComposition&&e.handleComposition(...v)),onCompositionupdate:t[12]||(t[12]=(...v)=>e.handleComposition&&e.handleComposition(...v)),onCompositionend:t[13]||(t[13]=(...v)=>e.handleComposition&&e.handleComposition(...v)),onInput:t[14]||(t[14]=(...v)=>e.debouncedQueryChange&&e.debouncedQueryChange(...v))},null,46,fse)),[[sa,e.query]]):le("v-if",!0)],6)):le("v-if",!0),e.isIOS&&!e.multiple&&e.filterable&&e.readonly?(C(),j("input",{key:1,ref:"iOSInput",class:M(e.iOSInputKls),disabled:e.selectDisabled,type:"text"},null,10,hse)):le("v-if",!0),I(u,{id:e.id,ref:"reference",modelValue:e.selectedLabel,"onUpdate:modelValue":t[16]||(t[16]=v=>e.selectedLabel=v),type:"text",placeholder:typeof e.currentPlaceholder=="function"?e.currentPlaceholder():e.currentPlaceholder,name:e.name,autocomplete:e.autocomplete,size:e.selectSize,disabled:e.selectDisabled,readonly:e.readonly,"validate-event":!1,class:M([e.nsSelect.is("focus",e.visible)]),tabindex:e.multiple&&e.filterable?-1:void 0,role:"combobox","aria-activedescendant":((y=e.hoverOption)==null?void 0:y.id)||"","aria-controls":e.contentId,"aria-expanded":e.dropMenuVisible,label:e.ariaLabel,"aria-autocomplete":"none","aria-haspopup":"listbox",onFocus:e.handleFocus,onBlur:e.handleBlur,onInput:e.debouncedOnInputChange,onPaste:e.debouncedOnInputChange,onCompositionstart:e.handleComposition,onCompositionupdate:e.handleComposition,onCompositionend:e.handleComposition,onKeydown:[t[17]||(t[17]=jt(dt(v=>e.navigateOptions("next"),["stop","prevent"]),["down"])),t[18]||(t[18]=jt(dt(v=>e.navigateOptions("prev"),["stop","prevent"]),["up"])),jt(dt(e.selectOption,["stop","prevent"]),["enter"]),jt(e.handleKeydownEscape,["esc"]),t[19]||(t[19]=jt(v=>e.visible=!1,["tab"]))]},xi({suffix:N(()=>[e.iconComponent&&!e.showClose?(C(),he(l,{key:0,class:M([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:N(()=>[(C(),he(Nt(e.iconComponent)))]),_:1},8,["class"])):le("v-if",!0),e.showClose&&e.clearIcon?(C(),he(l,{key:1,class:M([e.nsSelect.e("caret"),e.nsSelect.e("icon")]),onClick:e.handleClearClick},{default:N(()=>[(C(),he(Nt(e.clearIcon)))]),_:1},8,["class","onClick"])):le("v-if",!0)]),_:2},[e.$slots.prefix?{name:"prefix",fn:N(()=>[R("div",pse,[we(e.$slots,"prefix")])])}:void 0]),1032,["id","modelValue","placeholder","name","autocomplete","size","disabled","readonly","class","tabindex","aria-activedescendant","aria-controls","aria-expanded","label","onFocus","onBlur","onInput","onPaste","onCompositionstart","onCompositionupdate","onCompositionend","onKeydown"])],32)]}),content:N(()=>[I(p,null,xi({default:N(()=>[pt(I(h,{id:e.contentId,ref:"scrollbar",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:M(e.scrollbarKls),role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical"},{default:N(()=>[e.showNewOption?(C(),he(c,{key:0,value:e.query,created:!0},null,8,["value"])):le("v-if",!0),I(f,{onUpdateOptions:e.onOptionsRendered},{default:N(()=>[we(e.$slots,"default")]),_:3},8,["onUpdateOptions"])]),_:3},8,["id","wrap-class","view-class","class","aria-label"]),[[Vt,e.options.size>0&&!e.loading]]),e.emptyText&&(!e.allowCreate||e.loading||e.allowCreate&&e.options.size===0)?(C(),j(Ke,{key:0},[e.$slots.empty?we(e.$slots,"empty",{key:0}):(C(),j("p",{key:1,class:M(e.nsSelect.be("dropdown","empty"))},ve(e.emptyText),3))],64)):le("v-if",!0)]),_:2},[e.$slots.header?{name:"header",fn:N(()=>[we(e.$slots,"header")])}:void 0,e.$slots.footer?{name:"footer",fn:N(()=>[we(e.$slots,"footer")])}:void 0]),1024)]),_:3},8,["visible","placement","teleported","popper-class","popper-options","effect","transition","persistent","onShow"])],34)),[[g,e.handleClose,e.popperPaneRef]])}var gse=ze(dse,[["render",mse],["__file","select.vue"]]);const vse=Z({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(e){const t=Le("select"),n=G(!0),s=It(),r=G([]);Lt(s$,Ct({...es(e)}));const i=Qe(_f);vt(()=>{r.value=a(s.subTree)});const a=l=>{const u=[];return Array.isArray(l.children)&&l.children.forEach(c=>{var f;c.type&&c.type.name==="ElOption"&&c.component&&c.component.proxy?u.push(c.component.proxy):(f=c.children)!=null&&f.length&&u.push(...a(c))}),u},{groupQueryChange:o}=Qt(i);return Oe(o,()=>{n.value=r.value.some(l=>l.visible===!0)},{flush:"post"}),{visible:n,ns:t}}});function yse(e,t,n,s,r,i){return pt((C(),j("ul",{class:M(e.ns.be("group","wrap"))},[R("li",{class:M(e.ns.be("group","title"))},ve(e.label),3),R("li",null,[R("ul",{class:M(e.ns.b("group"))},[we(e.$slots,"default")],2)])],2)),[[Vt,e.visible]])}var r$=ze(vse,[["render",yse],["__file","option-group.vue"]]);const ei=At(gse,{Option:b1,OptionGroup:r$}),Ga=In(b1),bse=In(r$),_1=()=>Qe(n$,{}),_se=He({pageSize:{type:Number,required:!0},pageSizes:{type:me(Array),default:()=>vn([10,20,30,40,50,100])},popperClass:{type:String},disabled:Boolean,teleported:Boolean,size:{type:String,values:Li}}),Tse=Z({name:"ElPaginationSizes"}),wse=Z({...Tse,props:_se,emits:["page-size-change"],setup(e,{emit:t}){const n=e,{t:s}=Wt(),r=Le("pagination"),i=_1(),a=G(n.pageSize);Oe(()=>n.pageSizes,(u,c)=>{if(!Ys(u,c)&&Array.isArray(u)){const f=u.includes(n.pageSize)?n.pageSize:n.pageSizes[0];t("page-size-change",f)}}),Oe(()=>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)=>(C(),j("span",{class:M(d(r).e("sizes"))},[I(d(ei),{"model-value":a.value,disabled:u.disabled,"popper-class":u.popperClass,size:u.size,teleported:u.teleported,"validate-event":!1,onChange:l},{default:N(()=>[(C(!0),j(Ke,null,bt(d(o),f=>(C(),he(d(Ga),{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"])],2))}});var Sse=ze(wse,[["__file","sizes.vue"]]);const Cse=He({size:{type:String,values:Li}}),Ese=["disabled"],xse=Z({name:"ElPaginationJumper"}),kse=Z({...xse,props:Cse,setup(e){const{t}=Wt(),n=Le("pagination"),{pageCount:s,disabled:r,currentPage:i,changeEvent:a}=_1(),o=G(),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)=>(C(),j("span",{class:M(d(n).e("jump")),disabled:d(r)},[R("span",{class:M([d(n).e("goto")])},ve(d(t)("el.pagination.goto")),3),I(d(Fn),{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,label:d(t)("el.pagination.page"),type:"number","onUpdate:modelValue":u,onChange:c},null,8,["size","class","max","disabled","model-value","label"]),R("span",{class:M([d(n).e("classifier")])},ve(d(t)("el.pagination.pageClassifier")),3)],10,Ese))}});var Ise=ze(kse,[["__file","jumper.vue"]]);const Ose=He({total:{type:Number,default:1e3}}),Ase=["disabled"],Pse=Z({name:"ElPaginationTotal"}),$se=Z({...Pse,props:Ose,setup(e){const{t}=Wt(),n=Le("pagination"),{disabled:s}=_1();return(r,i)=>(C(),j("span",{class:M(d(n).e("total")),disabled:d(s)},ve(d(t)("el.pagination.total",{total:r.total})),11,Ase))}});var Nse=ze($se,[["__file","total.vue"]]);const Mse=He({currentPage:{type:Number,default:1},pageCount:{type:Number,required:!0},pagerCount:{type:Number,default:7},disabled:Boolean}),Rse=["onKeyup"],Lse=["aria-current","aria-label","tabindex"],Dse=["tabindex","aria-label"],Fse=["aria-current","aria-label","tabindex"],Bse=["tabindex","aria-label"],Vse=["aria-current","aria-label","tabindex"],Use=Z({name:"ElPaginationPager"}),Hse=Z({...Use,props:Mse,emits:["change"],setup(e,{emit:t}){const n=e,s=Le("pager"),r=Le("icon"),{t:i}=Wt(),a=G(!1),o=G(!1),l=G(!1),u=G(!1),c=G(!1),f=G(!1),h=k(()=>{const T=n.pagerCount,S=(T-1)/2,E=Number(n.currentPage),$=Number(n.pageCount);let P=!1,U=!1;$>T&&(E>T-S&&(P=!0),E<$-S&&(U=!0));const H=[];if(P&&!U){const z=$-(T-2);for(let W=z;W<$;W++)H.push(W)}else if(!P&&U)for(let z=2;z<T;z++)H.push(z);else if(P&&U){const z=Math.floor(T/2)-1;for(let W=E-z;W<=E+z;W++)H.push(W)}else for(let z=2;z<$;z++)H.push(z);return H}),p=k(()=>["more","btn-quickprev",r.b(),s.is("disabled",n.disabled)]),g=k(()=>["more","btn-quicknext",r.b(),s.is("disabled",n.disabled)]),m=k(()=>n.disabled?-1:0);Gs(()=>{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 y(T=!1){n.disabled||(T?l.value=!0:u.value=!0)}function v(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 E=Number(S.textContent);E!==n.currentPage&&t("change",E)}else S.tagName.toLowerCase()==="li"&&Array.from(S.classList).includes("more")&&w(T)}function w(T){const S=T.target;if(S.tagName.toLowerCase()==="ul"||n.disabled)return;let E=Number(S.textContent);const $=n.pageCount,P=n.currentPage,U=n.pagerCount-2;S.className.includes("more")&&(S.className.includes("quickprev")?E=P-U:S.className.includes("quicknext")&&(E=P+U)),Number.isNaN(+E)||(E<1&&(E=1),E>$&&(E=$)),E!==P&&t("change",E)}return(T,S)=>(C(),j("ul",{class:M(d(s).b()),onClick:w,onKeyup:jt(_,["enter"])},[T.pageCount>0?(C(),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(m)}," 1 ",10,Lse)):le("v-if",!0),a.value?(C(),j("li",{key:1,class:M(d(p)),tabindex:d(m),"aria-label":d(i)("el.pagination.prevPages",{pager:T.pagerCount-2}),onMouseenter:S[0]||(S[0]=E=>y(!0)),onMouseleave:S[1]||(S[1]=E=>l.value=!1),onFocus:S[2]||(S[2]=E=>v(!0)),onBlur:S[3]||(S[3]=E=>c.value=!1)},[(l.value||c.value)&&!T.disabled?(C(),he(d(hu),{key:0})):(C(),he(d(U0),{key:1}))],42,Dse)):le("v-if",!0),(C(!0),j(Ke,null,bt(d(h),E=>(C(),j("li",{key:E,class:M([[d(s).is("active",T.currentPage===E),d(s).is("disabled",T.disabled)],"number"]),"aria-current":T.currentPage===E,"aria-label":d(i)("el.pagination.currentPage",{pager:E}),tabindex:d(m)},ve(E),11,Fse))),128)),o.value?(C(),j("li",{key:2,class:M(d(g)),tabindex:d(m),"aria-label":d(i)("el.pagination.nextPages",{pager:T.pagerCount-2}),onMouseenter:S[4]||(S[4]=E=>y()),onMouseleave:S[5]||(S[5]=E=>u.value=!1),onFocus:S[6]||(S[6]=E=>v()),onBlur:S[7]||(S[7]=E=>f.value=!1)},[(u.value||f.value)&&!T.disabled?(C(),he(d(pu),{key:0})):(C(),he(d(U0),{key:1}))],42,Bse)):le("v-if",!0),T.pageCount>1?(C(),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(m)},ve(T.pageCount),11,Vse)):le("v-if",!0)],42,Rse))}});var zse=ze(Hse,[["__file","pager.vue"]]);const Cs=e=>typeof e!="number",jse=He({pageSize:Number,defaultPageSize:Number,total:Number,pageCount:Number,pagerCount:{type:Number,validator:e=>ht(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:me(Array),default:()=>vn([10,20,30,40,50,100])},popperClass:{type:String,default:""},prevText:{type:String,default:""},prevIcon:{type:sn,default:()=>Ka},nextText:{type:String,default:""},nextIcon:{type:sn,default:()=>Ns},teleported:{type:Boolean,default:!0},small:Boolean,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean}),Kse={"update:current-page":e=>ht(e),"update:page-size":e=>ht(e),"size-change":e=>ht(e),change:(e,t)=>ht(e)&&ht(t),"current-change":e=>ht(e),"prev-click":e=>ht(e),"next-click":e=>ht(e)},ME="ElPagination";var Wse=Z({name:ME,props:jse,emits:Kse,setup(e,{emit:t,slots:n}){const{t:s}=Wt(),r=Le("pagination"),i=It().vnode.props||{},a="onUpdate:currentPage"in i||"onUpdate:current-page"in i||"onCurrentChange"in i,o="onUpdate:pageSize"in i||"onUpdate:page-size"in i||"onSizeChange"in i,l=k(()=>{if(Cs(e.total)&&Cs(e.pageCount)||!Cs(e.currentPage)&&!a)return!1;if(e.layout.includes("sizes")){if(Cs(e.pageCount)){if(!Cs(e.total)&&!Cs(e.pageSize)&&!o)return!1}else if(!o)return!1}return!0}),u=G(Cs(e.defaultPageSize)?10:e.defaultPageSize),c=G(Cs(e.defaultCurrentPage)?1:e.defaultCurrentPage),f=k({get(){return Cs(e.pageSize)?u.value:e.pageSize},set(w){Cs(e.pageSize)&&(u.value=w),o&&(t("update:page-size",w),t("size-change",w))}}),h=k(()=>{let w=0;return Cs(e.pageCount)?Cs(e.total)||(w=Math.max(1,Math.ceil(e.total/f.value))):w=e.pageCount,w}),p=k({get(){return Cs(e.currentPage)?c.value:e.currentPage},set(w){let T=w;w<1?T=1:w>h.value&&(T=h.value),Cs(e.currentPage)&&(c.value=T),a&&(t("update:current-page",T),t("current-change",T))}});Oe(h,w=>{p.value>w&&(p.value=w)}),Oe([p,f],w=>{t("change",...w)},{flush:"post"});function g(w){p.value=w}function m(w){f.value=w;const T=h.value;p.value>T&&(p.value=T)}function y(){e.disabled||(p.value-=1,t("prev-click",p.value))}function v(){e.disabled||(p.value+=1,t("next-click",p.value))}function _(w,T){w&&(w.props||(w.props={}),w.props.class=[w.props.class,T].join(" "))}return Lt(n$,{pageCount:h,disabled:k(()=>e.disabled),currentPage:p,changeEvent:g,handleSizeChange:m}),()=>{var w,T;if(!l.value)return s("el.pagination.deprecationWarning"),null;if(!e.layout||e.hideOnSinglePage&&h.value<=1)return null;const S=[],E=[],$=lt("div",{class:r.e("rightwrapper")},E),P={prev:lt(Gne,{disabled:e.disabled,currentPage:p.value,prevText:e.prevText,prevIcon:e.prevIcon,onClick:y}),jumper:lt(Ise,{size:e.small?"small":"default"}),pager:lt(zse,{currentPage:p.value,pageCount:h.value,pagerCount:e.pagerCount,onChange:g,disabled:e.disabled}),next:lt(ese,{disabled:e.disabled,currentPage:p.value,pageCount:h.value,nextText:e.nextText,nextIcon:e.nextIcon,onClick:v}),sizes:lt(Sse,{pageSize:f.value,pageSizes:e.pageSizes,popperClass:e.popperClass,disabled:e.disabled,teleported:e.teleported,size:e.small?"small":"default"}),slot:(T=(w=n==null?void 0:n.default)==null?void 0:w.call(n))!=null?T:null,total:lt(Nse,{total:Cs(e.total)?0:e.total})},U=e.layout.split(",").map(z=>z.trim());let H=!1;return U.forEach(z=>{if(z==="->"){H=!0;return}H?E.push(P[z]):S.push(P[z])}),_(S[0],r.is("first")),_(S[S.length-1],r.is("last")),H&&E.length>0&&(_(E[0],r.is("first")),_(E[E.length-1],r.is("last")),S.push($)),lt("div",{class:[r.b(),r.is("background",e.background),{[r.m("small")]:e.small}]},S)}}});const Tf=At(Wse),qse=He({title:String,confirmButtonText:String,cancelButtonText:String,confirmButtonType:{type:String,values:J0,default:"primary"},cancelButtonType:{type:String,values:J0,default:"text"},icon:{type:sn,default:()=>dj},iconColor:{type:String,default:"#f90"},hideIcon:{type:Boolean,default:!1},hideAfter:{type:Number,default:200},teleported:ss.teleported,persistent:ss.persistent,width:{type:[String,Number],default:150}}),Gse={confirm:e=>e instanceof MouseEvent,cancel:e=>e instanceof MouseEvent},Yse=Z({name:"ElPopconfirm"}),Xse=Z({...Yse,props:qse,emits:Gse,setup(e,{emit:t}){const n=e,{t:s}=Wt(),r=Le("popconfirm"),i=G(),a=()=>{var h,p;(p=(h=i.value)==null?void 0:h.onClose)==null||p.call(h)},o=k(()=>({width:Mn(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,p)=>(C(),he(d(ms),Rt({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:N(()=>[R("div",{class:M(d(r).b())},[R("div",{class:M(d(r).e("main"))},[!h.hideIcon&&h.icon?(C(),he(d(tt),{key:0,class:M(d(r).e("icon")),style:rt({color:h.iconColor})},{default:N(()=>[(C(),he(Nt(h.icon)))]),_:1},8,["class","style"])):le("v-if",!0),Fe(" "+ve(h.title),1)],2),R("div",{class:M(d(r).e("action"))},[I(d(bn),{size:"small",type:h.cancelButtonType==="text"?"":h.cancelButtonType,text:h.cancelButtonType==="text",onClick:u},{default:N(()=>[Fe(ve(d(f)),1)]),_:1},8,["type","text"]),I(d(bn),{size:"small",type:h.confirmButtonType==="text"?"":h.confirmButtonType,text:h.confirmButtonType==="text",onClick:l},{default:N(()=>[Fe(ve(d(c)),1)]),_:1},8,["type","text"])],2)],2)]),default:N(()=>[h.$slots.reference?we(h.$slots,"reference",{key:0}):le("v-if",!0)]),_:3},16,["popper-class","popper-style","teleported","hide-after","persistent"]))}});var Qse=ze(Xse,[["__file","popconfirm.vue"]]);const Jse=At(Qse),Zse=He({trigger:Md.trigger,placement:cp.placement,disabled:Md.disabled,visible:ss.visible,transition:ss.transition,popperOptions:cp.popperOptions,tabindex:cp.tabindex,content:ss.content,popperStyle:ss.popperStyle,popperClass:ss.popperClass,enterable:{...ss.enterable,default:!0},effect:{...ss.effect,default:"light"},teleported:ss.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}}),ere={"update:visible":e=>Gn(e),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},tre="onUpdate:visible",nre=Z({name:"ElPopover"}),sre=Z({...nre,props:Zse,emits:ere,setup(e,{expose:t,emit:n}){const s=e,r=k(()=>s[tre]),i=Le("popover"),a=G(),o=k(()=>{var y;return(y=d(a))==null?void 0:y.popperRef}),l=k(()=>[{width:Mn(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 y;(y=a.value)==null||y.hide()},h=()=>{n("before-enter")},p=()=>{n("before-leave")},g=()=>{n("after-enter")},m=()=>{n("update:visible",!1),n("after-leave")};return t({popperRef:o,hide:f}),(y,v)=>(C(),he(d(ms),Rt({ref_key:"tooltipRef",ref:a},y.$attrs,{trigger:y.trigger,placement:y.placement,disabled:y.disabled,visible:y.visible,transition:y.transition,"popper-options":y.popperOptions,tabindex:y.tabindex,content:y.content,offset:y.offset,"show-after":y.showAfter,"hide-after":y.hideAfter,"auto-close":y.autoClose,"show-arrow":y.showArrow,"aria-label":y.title,effect:y.effect,enterable:y.enterable,"popper-class":d(u),"popper-style":d(l),teleported:y.teleported,persistent:y.persistent,"gpu-acceleration":d(c),"onUpdate:visible":d(r),onBeforeShow:h,onBeforeHide:p,onShow:g,onHide:m}),{content:N(()=>[y.title?(C(),j("div",{key:0,class:M(d(i).e("title")),role:"title"},ve(y.title),3)):le("v-if",!0),we(y.$slots,"default",{},()=>[Fe(ve(y.content),1)])]),default:N(()=>[y.$slots.reference?we(y.$slots,"reference",{key:0}):le("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 rre=ze(sre,[["__file","popover.vue"]]);const RE=(e,t)=>{const n=t.arg||t.value,s=n==null?void 0:n.popperRef;s&&(s.triggerRef=e)};var ire={mounted(e,t){RE(e,t)},updated(e,t){RE(e,t)}};const are="popover",i$=Uj(ire,are),ore=At(rre,{directive:i$}),lre=He({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:{type:Boolean,default:!1},duration:{type:Number,default:3},strokeWidth:{type:Number,default:6},strokeLinecap:{type:me(String),default:"round"},textInside:{type:Boolean,default:!1},width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:me([String,Array,Function]),default:""},striped:Boolean,stripedFlow:Boolean,format:{type:me(Function),default:e=>`${e}%`}}),ure=["aria-valuenow"],cre={viewBox:"0 0 100 100"},dre=["d","stroke","stroke-linecap","stroke-width"],fre=["d","stroke","opacity","stroke-linecap","stroke-width"],hre={key:0},pre=Z({name:"ElProgress"}),mre=Z({...pre,props:lre,setup(e){const t=e,n={success:"#13ce66",exception:"#ff4949",warning:"#e6a23c",default:"#20a0ff"},s=Le("progress"),r=k(()=>({width:`${t.percentage}%`,animationDuration:`${t.duration}s`,backgroundColor:_(t.percentage)})),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 w=a.value,T=t.type==="dashboard";return`
|
||
M 50 50
|
||
m 0 ${T?"":"-"}${w}
|
||
a ${w} ${w} 0 1 1 0 ${T?"-":""}${w*2}
|
||
a ${w} ${w} 0 1 1 0 ${T?"":"-"}${w*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"})),p=k(()=>{let w;return t.color?w=_(t.percentage):w=n[t.status]||n.default,w}),g=k(()=>t.status==="warning"?Jm:t.type==="line"?t.status==="success"?C_:to:t.status==="success"?pf:Jr),m=k(()=>t.type==="line"?12+t.strokeWidth*.4:t.width*.111111+2),y=k(()=>t.format(t.percentage));function v(w){const T=100/w.length;return w.map((E,$)=>Tt(E)?{color:E,percentage:($+1)*T}:E).sort((E,$)=>E.percentage-$.percentage)}const _=w=>{var T;const{color:S}=t;if(yt(S))return S(w);if(Tt(S))return S;{const E=v(S);for(const $ of E)if($.percentage>w)return $.color;return(T=E[E.length-1])==null?void 0:T.color}};return(w,T)=>(C(),j("div",{class:M([d(s).b(),d(s).m(w.type),d(s).is(w.status),{[d(s).m("without-text")]:!w.showText,[d(s).m("text-inside")]:w.textInside}]),role:"progressbar","aria-valuenow":w.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[w.type==="line"?(C(),j("div",{key:0,class:M(d(s).b("bar"))},[R("div",{class:M(d(s).be("bar","outer")),style:rt({height:`${w.strokeWidth}px`})},[R("div",{class:M([d(s).be("bar","inner"),{[d(s).bem("bar","inner","indeterminate")]:w.indeterminate},{[d(s).bem("bar","inner","striped")]:w.striped},{[d(s).bem("bar","inner","striped-flow")]:w.stripedFlow}]),style:rt(d(r))},[(w.showText||w.$slots.default)&&w.textInside?(C(),j("div",{key:0,class:M(d(s).be("bar","innerText"))},[we(w.$slots,"default",{percentage:w.percentage},()=>[R("span",null,ve(d(y)),1)])],2)):le("v-if",!0)],6)],6)],2)):(C(),j("div",{key:1,class:M(d(s).b("circle")),style:rt({height:`${w.width}px`,width:`${w.width}px`})},[(C(),j("svg",cre,[R("path",{class:M(d(s).be("circle","track")),d:d(o),stroke:`var(${d(s).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-linecap":w.strokeLinecap,"stroke-width":d(i),fill:"none",style:rt(d(f))},null,14,dre),R("path",{class:M(d(s).be("circle","path")),d:d(o),stroke:d(p),fill:"none",opacity:w.percentage?1:0,"stroke-linecap":w.strokeLinecap,"stroke-width":d(i),style:rt(d(h))},null,14,fre)]))],6)),(w.showText||w.$slots.default)&&!w.textInside?(C(),j("div",{key:2,class:M(d(s).e("text")),style:rt({fontSize:`${d(m)}px`})},[we(w.$slots,"default",{percentage:w.percentage},()=>[w.status?(C(),he(d(tt),{key:1},{default:N(()=>[(C(),he(Nt(d(g))))]),_:1})):(C(),j("span",hre,ve(d(y)),1))])],6)):le("v-if",!0)],10,ure))}});var gre=ze(mre,[["__file","progress.vue"]]);const a$=At(gre),vre=He({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:me([Array,Object]),default:()=>vn(["","",""])},voidColor:{type:String,default:""},disabledVoidColor:{type:String,default:""},icons:{type:me([Array,Object]),default:()=>[_h,_h,_h]},voidIcon:{type:sn,default:()=>Cj},disabledVoidIcon:{type:sn,default:()=>_h},disabled:Boolean,allowHalf:Boolean,showText:Boolean,showScore:Boolean,textColor:{type:String,default:""},texts:{type:me(Array),default:()=>vn(["Extremely bad","Disappointed","Fair","Satisfied","Surprise"])},scoreTemplate:{type:String,default:"{value}"},size:os,label:{type:String,default:void 0},clearable:{type:Boolean,default:!1}}),yre={[ln]:e=>ht(e),[$t]:e=>ht(e)},bre=["id","aria-label","aria-labelledby","aria-valuenow","aria-valuetext","aria-valuemax"],_re=["onMousemove","onClick"],Tre=Z({name:"ElRate"}),wre=Z({...Tre,props:vre,emits:yre,setup(e,{expose:t,emit:n}){const s=e;function r(Y,B){const K=ee=>Mt(ee),L=Object.keys(B).map(ee=>+ee).filter(ee=>{const te=B[ee];return(K(te)?te.excluded:!1)?Y<ee:Y<=ee}).sort((ee,te)=>ee-te),Q=B[L[0]];return K(Q)&&Q.value||Q}const i=Qe(cl,void 0),a=Qe(Ai,void 0),o=Xn(),l=Le("rate"),{inputId:u,isLabeledByFormItem:c}=ro(s,{formItemContext:a}),f=G(s.modelValue),h=G(-1),p=G(!0),g=k(()=>[l.b(),l.m(o.value)]),m=k(()=>s.disabled||(i==null?void 0:i.disabled)),y=k(()=>l.cssVarBlock({"void-color":s.voidColor,"disabled-void-color":s.disabledVoidColor,"fill-color":T.value})),v=k(()=>{let Y="";return s.showScore?Y=s.scoreTemplate.replace(/\{\s*value\s*\}/,m.value?`${s.modelValue}`:`${f.value}`):s.showText&&(Y=s.texts[Math.ceil(f.value)-1]),Y}),_=k(()=>s.modelValue*100-Math.floor(s.modelValue)*100),w=k(()=>st(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 Y=r(f.value,w.value);return Mt(Y)?"":Y}),S=k(()=>{let Y="";return m.value?Y=`${_.value}%`:s.allowHalf&&(Y="50%"),{color:T.value,width:Y}}),E=k(()=>{let Y=st(s.icons)?[...s.icons]:{...s.icons};return Y=Bo(Y),st(Y)?{[s.lowThreshold]:Y[0],[s.highThreshold]:{value:Y[1],excluded:!0},[s.max]:Y[2]}:Y}),$=k(()=>r(s.modelValue,E.value)),P=k(()=>m.value?Tt(s.disabledVoidIcon)?s.disabledVoidIcon:Bo(s.disabledVoidIcon):Tt(s.voidIcon)?s.voidIcon:Bo(s.voidIcon)),U=k(()=>r(f.value,E.value));function H(Y){const B=m.value&&_.value>0&&Y-1<s.modelValue&&Y>s.modelValue,K=s.allowHalf&&p.value&&Y-.5<=f.value&&Y>f.value;return B||K}function z(Y){s.clearable&&Y===s.modelValue&&(Y=0),n($t,Y),s.modelValue!==Y&&n("change",Y)}function W(Y){m.value||(s.allowHalf&&p.value?z(f.value):z(Y))}function D(Y){if(m.value)return;let B=f.value;const K=Y.code;return K===ot.up||K===ot.right?(s.allowHalf?B+=.5:B+=1,Y.stopPropagation(),Y.preventDefault()):(K===ot.left||K===ot.down)&&(s.allowHalf?B-=.5:B-=1,Y.stopPropagation(),Y.preventDefault()),B=B<0?0:B,B=B>s.max?s.max:B,n($t,B),n("change",B),B}function V(Y,B){if(!m.value){if(s.allowHalf&&B){let K=B.target;Yr(K,l.e("item"))&&(K=K.querySelector(`.${l.e("icon")}`)),(K.clientWidth===0||Yr(K,l.e("decimal")))&&(K=K.parentNode),p.value=B.offsetX*2<=K.clientWidth,f.value=p.value?Y-.5:Y}else f.value=Y;h.value=Y}}function X(){m.value||(s.allowHalf&&(p.value=s.modelValue!==Math.floor(s.modelValue)),f.value=s.modelValue,h.value=-1)}return Oe(()=>s.modelValue,Y=>{f.value=Y,p.value=s.modelValue!==Math.floor(s.modelValue)}),s.modelValue||n($t,0),t({setCurrentValue:V,resetCurrentValue:X}),(Y,B)=>{var K;return C(),j("div",{id:d(u),class:M([d(g),d(l).is("disabled",d(m))]),role:"slider","aria-label":d(c)?void 0:Y.label||"rating","aria-labelledby":d(c)?(K=d(a))==null?void 0:K.labelId:void 0,"aria-valuenow":f.value,"aria-valuetext":d(v)||void 0,"aria-valuemin":"0","aria-valuemax":Y.max,tabindex:"0",style:rt(d(y)),onKeydown:D},[(C(!0),j(Ke,null,bt(Y.max,(L,Q)=>(C(),j("span",{key:Q,class:M(d(l).e("item")),onMousemove:ee=>V(L,ee),onMouseleave:X,onClick:ee=>W(L)},[I(d(tt),{class:M([d(l).e("icon"),{hover:h.value===L},d(l).is("active",L<=f.value)])},{default:N(()=>[H(L)?le("v-if",!0):(C(),j(Ke,{key:0},[pt((C(),he(Nt(d(U)),null,null,512)),[[Vt,L<=f.value]]),pt((C(),he(Nt(d(P)),null,null,512)),[[Vt,!(L<=f.value)]])],64)),H(L)?(C(),j(Ke,{key:1},[(C(),he(Nt(d(P)),{class:M([d(l).em("decimal","box")])},null,8,["class"])),I(d(tt),{style:rt(d(S)),class:M([d(l).e("icon"),d(l).e("decimal")])},{default:N(()=>[(C(),he(Nt(d($))))]),_:1},8,["style","class"])],64)):le("v-if",!0)]),_:2},1032,["class"])],42,_re))),128)),Y.showText||Y.showScore?(C(),j("span",{key:0,class:M(d(l).e("text")),style:rt({color:Y.textColor})},ve(d(v)),7)):le("v-if",!0)],46,bre)}}});var Sre=ze(wre,[["__file","rate.vue"]]);const Cre=At(Sre),Ll={success:"icon-success",warning:"icon-warning",error:"icon-error",info:"icon-info"},LE={[Ll.success]:Ez,[Ll.warning]:Jm,[Ll.error]:E_,[Ll.info]:k_},Ere=He({title:{type:String,default:""},subTitle:{type:String,default:""},icon:{type:String,values:["success","warning","info","error"],default:"info"}}),xre=Z({name:"ElResult"}),kre=Z({...xre,props:Ere,setup(e){const t=e,n=Le("result"),s=k(()=>{const r=t.icon,i=r&&Ll[r]?Ll[r]:"icon-info",a=LE[i]||LE["icon-info"];return{class:i,component:a}});return(r,i)=>(C(),j("div",{class:M(d(n).b())},[R("div",{class:M(d(n).e("icon"))},[we(r.$slots,"icon",{},()=>[d(s).component?(C(),he(Nt(d(s).component),{key:0,class:M(d(s).class)},null,8,["class"])):le("v-if",!0)])],2),r.title||r.$slots.title?(C(),j("div",{key:0,class:M(d(n).e("title"))},[we(r.$slots,"title",{},()=>[R("p",null,ve(r.title),1)])],2)):le("v-if",!0),r.subTitle||r.$slots["sub-title"]?(C(),j("div",{key:1,class:M(d(n).e("subtitle"))},[we(r.$slots,"sub-title",{},()=>[R("p",null,ve(r.subTitle),1)])],2)):le("v-if",!0),r.$slots.extra?(C(),j("div",{key:2,class:M(d(n).e("extra"))},[we(r.$slots,"extra")],2)):le("v-if",!0)],2))}});var Ire=ze(kre,[["__file","result.vue"]]);const Ore=At(Ire);var DE=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function Are(e,t){return!!(e===t||DE(e)&&DE(t))}function Pre(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!Are(e[n],t[n]))return!1;return!0}function $re(e,t){t===void 0&&(t=Pre);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 o$=()=>{const t=It().proxy.$props;return k(()=>{const n=(s,r,i)=>({});return t.perfMode?qm(n):$re(n)})},Iy=50,Wp="itemRendered",qp="scroll",Dl="forward",Gp="backward",Sr="auto",mg="smart",Ld="start",mi="center",Dd="end",Tu="horizontal",T1="vertical",Nre="ltr",Xl="rtl",Fd="negative",w1="positive-ascending",S1="positive-descending",Mre={[Tu]:"left",[T1]:"top"},Rre=20,Lre={[Tu]:"deltaX",[T1]:"deltaY"},Dre=({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=>{tg(r);const u=l[Lre[n.value]];a(i)&&a(i+u)||(i+=u,EI()||l.preventDefault(),r=mu(()=>{s(i),i=0}))}}},Oy=si({type:me([Number,Function]),required:!0}),Ay=si({type:Number}),Py=si({type:Number,default:2}),Fre=si({type:String,values:["ltr","rtl"],default:"ltr"}),$y=si({type:Number,default:0}),Yp=si({type:Number,required:!0}),l$=si({type:String,values:["horizontal","vertical"],default:T1}),u$=He({className:{type:String,default:""},containerElement:{type:me([String,Object]),default:"div"},data:{type:me(Array),default:()=>vn([])},direction:Fre,height:{type:[String,Number],required:!0},innerElement:{type:[String,Object],default:"div"},style:{type:me([Object,String,Array])},useIsScrolling:{type:Boolean,default:!1},width:{type:[Number,String],required:!1},perfMode:{type:Boolean,default:!0},scrollbarAlwaysOn:{type:Boolean,default:!1}}),c$=He({cache:Py,estimatedItemSize:Ay,layout:l$,initScrollOffset:$y,total:Yp,itemSize:Oy,...u$}),Ny={type:Number,default:6},d$={type:Number,default:0},f$={type:Number,default:2},jo=He({columnCache:Py,columnWidth:Oy,estimatedColumnWidth:Ay,estimatedRowHeight:Ay,initScrollLeft:$y,initScrollTop:$y,itemKey:{type:me(Function),default:({columnIndex:e,rowIndex:t})=>`${t}:${e}`},rowCache:Py,rowHeight:Oy,totalColumn:Yp,totalRow:Yp,hScrollbarSize:Ny,vScrollbarSize:Ny,scrollbarStartGap:d$,scrollbarEndGap:f$,role:String,...u$}),h$=He({alwaysOn:Boolean,class:String,layout:l$,total:Yp,ratio:{type:Number,required:!0},clientSize:{type:Number,required:!0},scrollFrom:{type:Number,required:!0},scrollbarSize:Ny,startGap:d$,endGap:f$,visible:Boolean}),Mo=(e,t)=>e<t?Dl:Gp,Bd=e=>e===Nre||e===Xl||e===Tu,FE=e=>e===Xl;let bl=null;function Xp(e=!1){if(bl===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?bl=S1:(t.scrollLeft=1,t.scrollLeft===0?bl=Fd:bl=w1),document.body.removeChild(t),bl}return bl}function Bre({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 My=Z({name:"ElVirtualScrollBar",props:h$,emits:["scroll","start-move","stop-move"],setup(e,{emit:t}){const n=k(()=>e.startGap+e.endGap),s=Le("virtual-scrollbar"),r=Le("scrollbar"),i=G(),a=G();let o=null,l=null;const u=Ct({isDragging:!1,traveled:0}),c=k(()=>lA[e.layout]),f=k(()=>e.clientSize-d(n)),h=k(()=>({position:"absolute",width:`${Tu===e.layout?f.value:e.scrollbarSize}px`,height:`${Tu===e.layout?e.scrollbarSize:f.value}px`,[Mre[e.layout]]:"2px",right:"2px",bottom:"2px",borderRadius:"4px"})),p=k(()=>{const E=e.ratio,$=e.clientSize;if(E>=100)return Number.POSITIVE_INFINITY;if(E>=50)return E*$/100;const P=$/3;return Math.floor(Math.min(Math.max(E*$,Rre),P))}),g=k(()=>{if(!Number.isFinite(p.value))return{display:"none"};const E=`${p.value}px`;return Bre({bar:c.value,size:E,move:u.traveled},e.layout)}),m=k(()=>Math.floor(e.clientSize-p.value-d(n))),y=()=>{window.addEventListener("mousemove",T),window.addEventListener("mouseup",w);const E=d(a);E&&(l=document.onselectstart,document.onselectstart=()=>!1,E.addEventListener("touchmove",T),E.addEventListener("touchend",w))},v=()=>{window.removeEventListener("mousemove",T),window.removeEventListener("mouseup",w),document.onselectstart=l,l=null;const E=d(a);E&&(E.removeEventListener("touchmove",T),E.removeEventListener("touchend",w))},_=E=>{E.stopImmediatePropagation(),!(E.ctrlKey||[1,2].includes(E.button))&&(u.isDragging=!0,u[c.value.axis]=E.currentTarget[c.value.offset]-(E[c.value.client]-E.currentTarget.getBoundingClientRect()[c.value.direction]),t("start-move"),y())},w=()=>{u.isDragging=!1,u[c.value.axis]=0,t("stop-move"),v()},T=E=>{const{isDragging:$}=u;if(!$||!a.value||!i.value)return;const P=u[c.value.axis];if(!P)return;tg(o);const U=(i.value.getBoundingClientRect()[c.value.direction]-E[c.value.client])*-1,H=a.value[c.value.offset]-P,z=U-H;o=mu(()=>{u.traveled=Math.max(e.startGap,Math.min(z,m.value)),t("scroll",z,m.value)})},S=E=>{const $=Math.abs(E.target.getBoundingClientRect()[c.value.direction]-E[c.value.client]),P=a.value[c.value.offset]/2,U=$-P;u.traveled=Math.max(0,Math.min(U,m.value)),t("scroll",U,m.value)};return Oe(()=>e.scrollFrom,E=>{u.isDragging||(u.traveled=Math.ceil(E*m.value))}),on(()=>{v()}),()=>lt("div",{role:"presentation",ref:i,class:[s.b(),e.class,(e.alwaysOn||u.isDragging)&&"always-on"],style:h.value,onMousedown:dt(S,["stop","prevent"]),onTouchstartPrevent:_},lt("div",{ref:a,class:r.e("thumb"),style:g.value,onMousedown:_},[]))}}),p$=({name:e,getOffset:t,getItemSize:n,getItemOffset:s,getEstimatedTotalSize:r,getStartIndexForOffset:i,getStopIndexForStartIndex:a,initCache:o,clearCache:l,validateProps:u})=>Z({name:e??"ElVirtualList",props:c$,emits:[Wp,qp],setup(c,{emit:f,expose:h}){u(c);const p=It(),g=Le("vl"),m=G(o(c,p)),y=o$(),v=G(),_=G(),w=G(),T=G({isScrolling:!1,scrollDir:"forward",scrollOffset:ht(c.initScrollOffset)?c.initScrollOffset:0,updateRequested:!1,isScrollbarDragging:!1,scrollbarAlwaysOn:c.scrollbarAlwaysOn}),S=k(()=>{const{total:ie,cache:_e}=c,{isScrolling:ue,scrollDir:oe,scrollOffset:de}=d(T);if(ie===0)return[0,0,0,0];const ae=i(c,de,d(m)),Ie=a(c,ae,de,d(m)),ke=!ue||oe===Gp?Math.max(1,_e):1,Ee=!ue||oe===Dl?Math.max(1,_e):1;return[Math.max(0,ae-ke),Math.max(0,Math.min(ie-1,Ie+Ee)),ae,Ie]}),E=k(()=>r(c,d(m))),$=k(()=>Bd(c.layout)),P=k(()=>[{position:"relative",[`overflow-${$.value?"x":"y"}`]:"scroll",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:c.direction,height:ht(c.height)?`${c.height}px`:c.height,width:ht(c.width)?`${c.width}px`:c.width},c.style]),U=k(()=>{const ie=d(E),_e=d($);return{height:_e?"100%":`${ie}px`,pointerEvents:d(T).isScrolling?"none":void 0,width:_e?`${ie}px`:"100%"}}),H=k(()=>$.value?c.width:c.height),{onWheel:z}=Dre({atStartEdge:k(()=>T.value.scrollOffset<=0),atEndEdge:k(()=>T.value.scrollOffset>=E.value),layout:k(()=>c.layout)},ie=>{var _e,ue;(ue=(_e=w.value).onMouseUp)==null||ue.call(_e),B(Math.min(T.value.scrollOffset+ie,E.value-H.value))}),W=()=>{const{total:ie}=c;if(ie>0){const[de,ae,Ie,ke]=d(S);f(Wp,de,ae,Ie,ke)}const{scrollDir:_e,scrollOffset:ue,updateRequested:oe}=d(T);f(qp,_e,ue,oe)},D=ie=>{const{clientHeight:_e,scrollHeight:ue,scrollTop:oe}=ie.currentTarget,de=d(T);if(de.scrollOffset===oe)return;const ae=Math.max(0,Math.min(oe,ue-_e));T.value={...de,isScrolling:!0,scrollDir:Mo(de.scrollOffset,ae),scrollOffset:ae,updateRequested:!1},at(Q)},V=ie=>{const{clientWidth:_e,scrollLeft:ue,scrollWidth:oe}=ie.currentTarget,de=d(T);if(de.scrollOffset===ue)return;const{direction:ae}=c;let Ie=ue;if(ae===Xl)switch(Xp()){case Fd:{Ie=-ue;break}case S1:{Ie=oe-_e-ue;break}}Ie=Math.max(0,Math.min(Ie,oe-_e)),T.value={...de,isScrolling:!0,scrollDir:Mo(de.scrollOffset,Ie),scrollOffset:Ie,updateRequested:!1},at(Q)},X=ie=>{d($)?V(ie):D(ie),W()},Y=(ie,_e)=>{const ue=(E.value-H.value)/_e*ie;B(Math.min(E.value-H.value,ue))},B=ie=>{ie=Math.max(ie,0),ie!==d(T).scrollOffset&&(T.value={...d(T),scrollOffset:ie,scrollDir:Mo(d(T).scrollOffset,ie),updateRequested:!0},at(Q))},K=(ie,_e=Sr)=>{const{scrollOffset:ue}=d(T);ie=Math.max(0,Math.min(ie,c.total-1)),B(t(c,ie,_e,ue,d(m)))},L=ie=>{const{direction:_e,itemSize:ue,layout:oe}=c,de=y.value(l&&ue,l&&oe,l&&_e);let ae;if(zt(de,String(ie)))ae=de[ie];else{const Ie=s(c,ie,d(m)),ke=n(c,ie,d(m)),Ee=d($),J=_e===Xl,re=Ee?Ie:0;de[ie]=ae={position:"absolute",left:J?void 0:`${re}px`,right:J?`${re}px`:void 0,top:Ee?0:`${Ie}px`,height:Ee?"100%":`${ke}px`,width:Ee?`${ke}px`:"100%"}}return ae},Q=()=>{T.value.isScrolling=!1,at(()=>{y.value(-1,null,null)})},ee=()=>{const ie=v.value;ie&&(ie.scrollTop=0)};vt(()=>{if(!Kt)return;const{initScrollOffset:ie}=c,_e=d(v);ht(ie)&&_e&&(d($)?_e.scrollLeft=ie:_e.scrollTop=ie),W()}),ha(()=>{const{direction:ie,layout:_e}=c,{scrollOffset:ue,updateRequested:oe}=d(T),de=d(v);if(oe&&de)if(_e===Tu)if(ie===Xl)switch(Xp()){case Fd:{de.scrollLeft=-ue;break}case w1:{de.scrollLeft=ue;break}default:{const{clientWidth:ae,scrollWidth:Ie}=de;de.scrollLeft=Ie-ae-ue;break}}else de.scrollLeft=ue;else de.scrollTop=ue});const te={ns:g,clientSize:H,estimatedTotalSize:E,windowStyle:P,windowRef:v,innerRef:_,innerStyle:U,itemsToRender:S,scrollbarRef:w,states:T,getItemStyle:L,onScroll:X,onScrollbarScroll:Y,onWheel:z,scrollTo:B,scrollToItem:K,resetScrollTop:ee};return h({windowRef:v,innerRef:_,getItemStyleCache:y,scrollTo:B,scrollToItem:K,resetScrollTop:ee,states:T}),te},render(c){var f;const{$slots:h,className:p,clientSize:g,containerElement:m,data:y,getItemStyle:v,innerElement:_,itemsToRender:w,innerStyle:T,layout:S,total:E,onScroll:$,onScrollbarScroll:P,onWheel:U,states:H,useIsScrolling:z,windowStyle:W,ns:D}=c,[V,X]=w,Y=Nt(m),B=Nt(_),K=[];if(E>0)for(let te=V;te<=X;te++)K.push((f=h.default)==null?void 0:f.call(h,{data:y,key:te,index:te,isScrolling:z?H.isScrolling:void 0,style:v(te)}));const L=[lt(B,{style:T,ref:"innerRef"},Tt(B)?K:{default:()=>K})],Q=lt(My,{ref:"scrollbarRef",clientSize:g,layout:S,onScroll:P,ratio:g*100/this.estimatedTotalSize,scrollFrom:H.scrollOffset/(this.estimatedTotalSize-g),total:E}),ee=lt(Y,{class:[D.e("window"),p],style:W,onScroll:$,onWheel:U,ref:"windowRef",key:0},Tt(Y)?[L]:{default:()=>[L]});return lt("div",{key:0,class:[D.e("wrapper"),H.scrollbarAlwaysOn?"always-on":""]},[ee,Q])}}),m$=p$({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=Bd(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===mg&&(o>=f-l&&o<=c+l?a=Sr:a=mi),a){case Ld:return c;case Dd:return f;case mi:{const h=Math.round(f+(c-f)/2);return h<Math.ceil(l/2)?0:h>u+Math.floor(l/2)?u:h}case Sr: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=Bd(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(){}}),Fl=(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]},Vre=(e,t,n)=>{const{items:s,lastVisitedIndex:r}=t;return(r>0?s[r].offset:0)>=n?g$(e,t,0,r,n):Ure(e,t,Math.max(0,r),n)},g$=(e,t,n,s,r)=>{for(;n<=s;){const i=n+Math.floor((s-n)/2),a=Fl(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)},Ure=(e,t,n,s)=>{const{total:r}=e;let i=1;for(;n<r&&Fl(e,n,t).offset<s;)n+=i,i*=2;return g$(e,t,Math.floor(n/2),Math.min(n,r-1),s)},BE=({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},Hre=p$({name:"ElDynamicSizeList",getItemOffset:(e,t,n)=>Fl(e,t,n).offset,getItemSize:(e,t,{items:n})=>n[t].size,getEstimatedTotalSize:BE,getOffset:(e,t,n,s,r)=>{const{height:i,layout:a,width:o}=e,l=Bd(a)?o:i,u=Fl(e,t,r),c=BE(e,r),f=Math.max(0,Math.min(c-l,u.offset)),h=Math.max(0,u.offset-l+u.size);switch(n===mg&&(s>=h-l&&s<=f+l?n=Sr:n=mi),n){case Ld:return f;case Dd:return h;case mi:return Math.round(h+(f-h)/2);case Sr:default:return s>=h&&s<=f?s:s<h?h:f}},getStartIndexForOffset:(e,t,n)=>Vre(e,n,t),getStopIndexForStartIndex:(e,t,n,s)=>{const{height:r,total:i,layout:a,width:o}=e,l=Bd(a)?o:r,u=Fl(e,t,s),c=n+l;let f=u.offset+u.size,h=t;for(;h<i-1&&f<c;)h++,f+=Fl(e,h,s).size;return h},initCache({estimatedItemSize:e=Iy},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})=>{}}),zre=({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,p=f<=0&&s.value||f>=0&&n.value;return h&&p};return{hasReachedEdge:l,onWheel:c=>{tg(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=mu(()=>{r(a,o),a=0,o=0}))}}},v$=({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:p,validateProps:g})=>Z({name:e??"ElVirtualList",props:jo,emits:[Wp,qp],setup(m,{emit:y,expose:v,slots:_}){const w=Le("vl");g(m);const T=It(),S=G(h(m,T));p==null||p(T,S);const E=G(),$=G(),P=G(),U=G(null),H=G({isScrolling:!1,scrollLeft:ht(m.initScrollLeft)?m.initScrollLeft:0,scrollTop:ht(m.initScrollTop)?m.initScrollTop:0,updateRequested:!1,xAxisScrollDir:Dl,yAxisScrollDir:Dl}),z=o$(),W=k(()=>Number.parseInt(`${m.height}`,10)),D=k(()=>Number.parseInt(`${m.width}`,10)),V=k(()=>{const{totalColumn:Pe,totalRow:Ve,columnCache:$e}=m,{isScrolling:Te,xAxisScrollDir:De,scrollLeft:qe}=d(H);if(Pe===0||Ve===0)return[0,0,0,0];const Je=s(m,qe,d(S)),et=r(m,Je,qe,d(S)),Re=!Te||De===Gp?Math.max(1,$e):1,Xe=!Te||De===Dl?Math.max(1,$e):1;return[Math.max(0,Je-Re),Math.max(0,Math.min(Pe-1,et+Xe)),Je,et]}),X=k(()=>{const{totalColumn:Pe,totalRow:Ve,rowCache:$e}=m,{isScrolling:Te,yAxisScrollDir:De,scrollTop:qe}=d(H);if(Pe===0||Ve===0)return[0,0,0,0];const Je=c(m,qe,d(S)),et=f(m,Je,qe,d(S)),Re=!Te||De===Gp?Math.max(1,$e):1,Xe=!Te||De===Dl?Math.max(1,$e):1;return[Math.max(0,Je-Re),Math.max(0,Math.min(Ve-1,et+Xe)),Je,et]}),Y=k(()=>i(m,d(S))),B=k(()=>a(m,d(S))),K=k(()=>{var Pe;return[{position:"relative",overflow:"hidden",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:m.direction,height:ht(m.height)?`${m.height}px`:m.height,width:ht(m.width)?`${m.width}px`:m.width},(Pe=m.style)!=null?Pe:{}]}),L=k(()=>{const Pe=`${d(B)}px`;return{height:`${d(Y)}px`,pointerEvents:d(H).isScrolling?"none":void 0,width:Pe}}),Q=()=>{const{totalColumn:Pe,totalRow:Ve}=m;if(Pe>0&&Ve>0){const[et,Re,Xe,ct]=d(V),[wt,Pt,ut,Ce]=d(X);y(Wp,{columnCacheStart:et,columnCacheEnd:Re,rowCacheStart:wt,rowCacheEnd:Pt,columnVisibleStart:Xe,columnVisibleEnd:ct,rowVisibleStart:ut,rowVisibleEnd:Ce})}const{scrollLeft:$e,scrollTop:Te,updateRequested:De,xAxisScrollDir:qe,yAxisScrollDir:Je}=d(H);y(qp,{xAxisScrollDir:qe,scrollLeft:$e,yAxisScrollDir:Je,scrollTop:Te,updateRequested:De})},ee=Pe=>{const{clientHeight:Ve,clientWidth:$e,scrollHeight:Te,scrollLeft:De,scrollTop:qe,scrollWidth:Je}=Pe.currentTarget,et=d(H);if(et.scrollTop===qe&&et.scrollLeft===De)return;let Re=De;if(FE(m.direction))switch(Xp()){case Fd:Re=-De;break;case S1:Re=Je-$e-De;break}H.value={...et,isScrolling:!0,scrollLeft:Re,scrollTop:Math.max(0,Math.min(qe,Te-Ve)),updateRequested:!0,xAxisScrollDir:Mo(et.scrollLeft,Re),yAxisScrollDir:Mo(et.scrollTop,qe)},at(()=>ae()),Ie(),Q()},te=(Pe,Ve)=>{const $e=d(W),Te=(Y.value-$e)/Ve*Pe;ue({scrollTop:Math.min(Y.value-$e,Te)})},ie=(Pe,Ve)=>{const $e=d(D),Te=(B.value-$e)/Ve*Pe;ue({scrollLeft:Math.min(B.value-$e,Te)})},{onWheel:_e}=zre({atXStartEdge:k(()=>H.value.scrollLeft<=0),atXEndEdge:k(()=>H.value.scrollLeft>=B.value-d(D)),atYStartEdge:k(()=>H.value.scrollTop<=0),atYEndEdge:k(()=>H.value.scrollTop>=Y.value-d(W))},(Pe,Ve)=>{var $e,Te,De,qe;(Te=($e=$.value)==null?void 0:$e.onMouseUp)==null||Te.call($e),(qe=(De=P.value)==null?void 0:De.onMouseUp)==null||qe.call(De);const Je=d(D),et=d(W);ue({scrollLeft:Math.min(H.value.scrollLeft+Pe,B.value-Je),scrollTop:Math.min(H.value.scrollTop+Ve,Y.value-et)})}),ue=({scrollLeft:Pe=H.value.scrollLeft,scrollTop:Ve=H.value.scrollTop})=>{Pe=Math.max(Pe,0),Ve=Math.max(Ve,0);const $e=d(H);Ve===$e.scrollTop&&Pe===$e.scrollLeft||(H.value={...$e,xAxisScrollDir:Mo($e.scrollLeft,Pe),yAxisScrollDir:Mo($e.scrollTop,Ve),scrollLeft:Pe,scrollTop:Ve,updateRequested:!0},at(()=>ae()),Ie(),Q())},oe=(Pe=0,Ve=0,$e=Sr)=>{const Te=d(H);Ve=Math.max(0,Math.min(Ve,m.totalColumn-1)),Pe=Math.max(0,Math.min(Pe,m.totalRow-1));const De=fO(w.namespace.value),qe=d(S),Je=i(m,qe),et=a(m,qe);ue({scrollLeft:o(m,Ve,$e,Te.scrollLeft,qe,et>m.width?De:0),scrollTop:l(m,Pe,$e,Te.scrollTop,qe,Je>m.height?De:0)})},de=(Pe,Ve)=>{const{columnWidth:$e,direction:Te,rowHeight:De}=m,qe=z.value(t&&$e,t&&De,t&&Te),Je=`${Pe},${Ve}`;if(zt(qe,Je))return qe[Je];{const[,et]=n(m,Ve,d(S)),Re=d(S),Xe=FE(Te),[ct,wt]=u(m,Pe,Re),[Pt]=n(m,Ve,Re);return qe[Je]={position:"absolute",left:Xe?void 0:`${et}px`,right:Xe?`${et}px`:void 0,top:`${wt}px`,height:`${ct}px`,width:`${Pt}px`},qe[Je]}},ae=()=>{H.value.isScrolling=!1,at(()=>{z.value(-1,null,null)})};vt(()=>{if(!Kt)return;const{initScrollLeft:Pe,initScrollTop:Ve}=m,$e=d(E);$e&&(ht(Pe)&&($e.scrollLeft=Pe),ht(Ve)&&($e.scrollTop=Ve)),Q()});const Ie=()=>{const{direction:Pe}=m,{scrollLeft:Ve,scrollTop:$e,updateRequested:Te}=d(H),De=d(E);if(Te&&De){if(Pe===Xl)switch(Xp()){case Fd:{De.scrollLeft=-Ve;break}case w1:{De.scrollLeft=Ve;break}default:{const{clientWidth:qe,scrollWidth:Je}=De;De.scrollLeft=Je-qe-Ve;break}}else De.scrollLeft=Math.max(0,Ve);De.scrollTop=Math.max(0,$e)}},{resetAfterColumnIndex:ke,resetAfterRowIndex:Ee,resetAfter:J}=T.proxy;v({windowRef:E,innerRef:U,getItemStyleCache:z,scrollTo:ue,scrollToItem:oe,states:H,resetAfterColumnIndex:ke,resetAfterRowIndex:Ee,resetAfter:J});const re=()=>{const{scrollbarAlwaysOn:Pe,scrollbarStartGap:Ve,scrollbarEndGap:$e,totalColumn:Te,totalRow:De}=m,qe=d(D),Je=d(W),et=d(B),Re=d(Y),{scrollLeft:Xe,scrollTop:ct}=d(H),wt=lt(My,{ref:$,alwaysOn:Pe,startGap:Ve,endGap:$e,class:w.e("horizontal"),clientSize:qe,layout:"horizontal",onScroll:ie,ratio:qe*100/et,scrollFrom:Xe/(et-qe),total:De,visible:!0}),Pt=lt(My,{ref:P,alwaysOn:Pe,startGap:Ve,endGap:$e,class:w.e("vertical"),clientSize:Je,layout:"vertical",onScroll:te,ratio:Je*100/Re,scrollFrom:ct/(Re-Je),total:Te,visible:!0});return{horizontalScrollbar:wt,verticalScrollbar:Pt}},Se=()=>{var Pe;const[Ve,$e]=d(V),[Te,De]=d(X),{data:qe,totalColumn:Je,totalRow:et,useIsScrolling:Re,itemKey:Xe}=m,ct=[];if(et>0&&Je>0)for(let wt=Te;wt<=De;wt++)for(let Pt=Ve;Pt<=$e;Pt++)ct.push((Pe=_.default)==null?void 0:Pe.call(_,{columnIndex:Pt,data:qe,key:Xe({columnIndex:Pt,data:qe,rowIndex:wt}),isScrolling:Re?d(H).isScrolling:void 0,style:de(wt,Pt),rowIndex:wt}));return ct},Ae=()=>{const Pe=Nt(m.innerElement),Ve=Se();return[lt(Pe,{style:d(L),ref:U},Tt(Pe)?Ve:{default:()=>Ve})]};return()=>{const Pe=Nt(m.containerElement),{horizontalScrollbar:Ve,verticalScrollbar:$e}=re(),Te=Ae();return lt("div",{key:0,class:w.e("wrapper"),role:m.role},[lt(Pe,{class:m.className,style:d(K),onScroll:ee,onWheel:_e,ref:E},Tt(Pe)?Te:{default:()=>Te}),Ve,$e])}}}),jre=v$({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=Sr:r=mi),r){case Ld:return u;case Dd:return c;case mi:{const f=Math.round(c+(u-c)/2);return f<Math.ceil(n/2)?0:f>l+Math.floor(n/2)?l:f}case Sr: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===mg&&(i>=c-t&&i<=u+t?r=Sr:r=mi),r){case Ld:return u;case Dd:return c;case mi:{const f=Math.round(c+(u-c)/2);return f<Math.ceil(t/2)?0:f>l+Math.floor(t/2)?l:f}case Sr: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:Qp,min:y$,floor:b$}=Math,Kre={column:"columnWidth",row:"rowHeight"},Ry={column:"lastVisitedColumnIndex",row:"lastVisitedRowIndex"},Ki=(e,t,n,s)=>{const[r,i,a]=[n[s],e[Kre[s]],n[Ry[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[Ry[s]]=t}return r[t]},_$=(e,t,n,s,r,i)=>{for(;n<=s;){const a=n+b$((s-n)/2),o=Ki(e,a,t,i).offset;if(o===r)return a;o<r?n=a+1:s=a-1}return Qp(0,n-1)},Wre=(e,t,n,s,r)=>{const i=r==="column"?e.totalColumn:e.totalRow;let a=1;for(;n<i&&Ki(e,n,t,r).offset<s;)n+=a,a*=2;return _$(e,t,b$(n/2),y$(n,i-1),s,r)},VE=(e,t,n,s)=>{const[r,i]=[t[s],t[Ry[s]]];return(i>0?r[i].offset:0)>=n?_$(e,t,0,i,n,s):Wre(e,t,Qp(0,i),n,s)},T$=({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},w$=({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},qre={column:w$,row:T$},UE=(e,t,n,s,r,i,a)=>{const[o,l]=[i==="row"?e.height:e.width,qre[i]],u=Ki(e,t,r,i),c=l(e,r),f=Qp(0,y$(c-o,u.offset)),h=Qp(0,u.offset-o+a+u.size);switch(n===mg&&(s>=h-o&&s<=f+o?n=Sr:n=mi),n){case Ld:return f;case Dd:return h;case mi:return Math.round(h+(f-h)/2);case Sr:default:return s>=h&&s<=f?s:h>f||s<h?h:f}},Gre=v$({name:"ElDynamicSizeGrid",getColumnPosition:(e,t,n)=>{const s=Ki(e,t,n,"column");return[s.size,s.offset]},getRowPosition:(e,t,n)=>{const s=Ki(e,t,n,"row");return[s.size,s.offset]},getColumnOffset:(e,t,n,s,r,i)=>UE(e,t,n,s,r,"column",i),getRowOffset:(e,t,n,s,r,i)=>UE(e,t,n,s,r,"row",i),getColumnStartIndexForOffset:(e,t,n)=>VE(e,n,t,"column"),getColumnStopIndexForStartIndex:(e,t,n,s)=>{const r=Ki(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+=Ki(e,t,s,"column").size;return o},getEstimatedTotalHeight:T$,getEstimatedTotalWidth:w$,getRowStartIndexForOffset:(e,t,n)=>VE(e,n,t,"row"),getRowStopIndexForStartIndex:(e,t,n,s)=>{const{totalRow:r,height:i}=e,a=Ki(e,t,s,"row"),o=n+i;let l=a.size+a.offset,u=t;for(;u<r-1&&l<o;)u++,l+=Ki(e,u,s,"row").size;return u},injectToInstance:(e,t)=>{const n=({columnIndex:i,rowIndex:a},o)=>{var l,u;o=qn(o)?!0:o,ht(i)&&(t.value.lastVisitedColumnIndex=Math.min(t.value.lastVisitedColumnIndex,i-1)),ht(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=Iy,estimatedRowHeight:t=Iy})=>({column:{},estimatedColumnWidth:e,estimatedRowHeight:t,lastVisitedColumnIndex:-1,lastVisitedRowIndex:-1,row:{}}),clearCache:!1,validateProps:({columnWidth:e,rowHeight:t})=>{}}),Yre=Z({props:{item:{type:Object,required:!0},style:Object,height:Number},setup(){return{ns:Le("select")}}});function Xre(e,t,n,s,r,i){return e.item.isTitle?(C(),j("div",{key:0,class:M(e.ns.be("group","title")),style:rt([e.style,{lineHeight:`${e.height}px`}])},ve(e.item.label),7)):(C(),j("div",{key:1,class:M(e.ns.be("group","split")),style:rt(e.style)},[R("span",{class:M(e.ns.be("group","split-dash")),style:rt({top:`${e.height/2}px`})},null,6)],6))}var Qre=ze(Yre,[["render",Xre],["__file","group-item.vue"]]);function Jre(e,{emit:t}){return{hoverItem:()=>{e.disabled||t("hover",e.index)},selectOptionClick:()=>{e.disabled||t("select",e.item,e.index)}}}const S$={label:"label",value:"value",disabled:"disabled",options:"options"};function gg(e){const t=k(()=>({...S$,...e.props}));return{aliasProps:t,getLabel:a=>gn(a,t.value.label),getValue:a=>gn(a,t.value.value),getDisabled:a=>gn(a,t.value.disabled),getOptions:a=>gn(a,t.value.options)}}const Zre=He({allowCreate:Boolean,autocomplete:{type:me(String),default:"none"},automaticDropdown:Boolean,clearable:Boolean,clearIcon:{type:sn,default:to},effect:{type:me(String),default:"light"},collapseTags:Boolean,collapseTagsTooltip:{type:Boolean,default:!1},maxCollapseTags:{type:Number,default:1},defaultFirstOption:Boolean,disabled:Boolean,estimatedOptionHeight:{type:Number,default:void 0},filterable:Boolean,filterMethod:Function,height:{type:Number,default:170},itemHeight:{type:Number,default:34},id:String,loading:Boolean,loadingText:String,label:String,modelValue:{type:me([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:me(Array),required:!0},placeholder:{type:String},teleported:ss.teleported,persistent:{type:Boolean,default:!0},popperClass:{type:String,default:""},popperOptions:{type:me(Object),default:()=>({})},remote:Boolean,size:os,props:{type:me(Object),default:()=>S$},valueKey:{type:String,default:"value"},scrollbarAlwaysOn:{type:Boolean,default:!1},validateEvent:{type:Boolean,default:!0},placement:{type:me(String),values:ul,default:"bottom-start"}}),eie=He({data:Array,disabled:Boolean,hovering:Boolean,item:{type:me(Object),required:!0},index:Number,style:Object,selected:Boolean,created:Boolean}),C1=Symbol("ElSelectV2Injection"),tie=Z({props:eie,emits:["select","hover"],setup(e,{emit:t}){const n=Qe(C1),s=Le("select"),{hoverItem:r,selectOptionClick:i}=Jre(e,{emit:t}),{getLabel:a}=gg(n.props);return{ns:s,hoverItem:r,selectOptionClick:i,getLabel:a}}}),nie=["aria-selected"];function sie(e,t,n,s,r,i){return C(),j("li",{"aria-selected":e.selected,style:rt(e.style),class:M([e.ns.be("dropdown","option-item"),e.ns.is("selected",e.selected),e.ns.is("disabled",e.disabled),e.ns.is("created",e.created),{hover:e.hovering}]),onMouseenter:t[0]||(t[0]=(...a)=>e.hoverItem&&e.hoverItem(...a)),onClick:t[1]||(t[1]=dt((...a)=>e.selectOptionClick&&e.selectOptionClick(...a),["stop"]))},[we(e.$slots,"default",{item:e.item,index:e.index,disabled:e.disabled},()=>[R("span",null,ve(e.getLabel(e.item)),1)])],46,nie)}var rie=ze(tie,[["render",sie],["__file","option-item.vue"]]),iie=Z({name:"ElSelectDropdown",props:{data:{type:Array,required:!0},hoveringIndex:Number,width:Number},setup(e,{slots:t,expose:n}){const s=Qe(C1),r=Le("select"),{getLabel:i,getValue:a,getDisabled:o}=gg(s.props),l=G([]),u=G(),c=k(()=>e.data.length);Oe(()=>c.value,()=>{var z,W;(W=(z=s.popper.value).updatePopper)==null||W.call(z)});const f=k(()=>qn(s.props.estimatedOptionHeight)),h=k(()=>f.value?{itemSize:s.props.itemHeight}:{estimatedSize:s.props.estimatedOptionHeight,itemSize:z=>l.value[z]}),p=(z=[],W)=>{const{props:{valueKey:D}}=s;return Mt(W)?z&&z.some(V=>Qt(gn(V,D))===gn(W,D)):z.includes(W)},g=(z,W)=>{if(Mt(W)){const{valueKey:D}=s.props;return gn(z,D)===gn(W,D)}else return z===W},m=(z,W)=>s.props.multiple?p(z,a(W)):g(z,a(W)),y=(z,W)=>{const{disabled:D,multiple:V,multipleLimit:X}=s.props;return D||!W&&(V?X>0&&z.length>=X:!1)},v=z=>e.hoveringIndex===z;n({listRef:u,isSized:f,isItemDisabled:y,isItemHovering:v,isItemSelected:m,scrollToItem:z=>{const W=u.value;W&&W.scrollToItem(z)},resetScrollTop:()=>{const z=u.value;z&&z.resetScrollTop()}});const T=z=>{const{index:W,data:D,style:V}=z,X=d(f),{itemSize:Y,estimatedSize:B}=d(h),{modelValue:K}=s.props,{onSelect:L,onHover:Q}=s,ee=D[W];if(ee.type==="Group")return I(Qre,{item:ee,style:V,height:X?Y:B},null);const te=m(K,ee),ie=y(K,te),_e=v(W);return I(rie,Rt(z,{selected:te,disabled:o(ee)||ie,created:!!ee.created,hovering:_e,item:ee,onSelect:L,onHover:Q}),{default:ue=>{var oe;return((oe=t.default)==null?void 0:oe.call(t,ue))||I("span",null,[i(ee)])}})},{onKeyboardNavigate:S,onKeyboardSelect:E}=s,$=()=>{S("forward")},P=()=>{S("backward")},U=()=>{s.expanded=!1},H=z=>{const{code:W}=z,{tab:D,esc:V,down:X,up:Y,enter:B}=ot;switch(W!==D&&(z.preventDefault(),z.stopPropagation()),W){case D:case V:{U();break}case X:{$();break}case Y:{P();break}case B:{E();break}}};return()=>{var z;const{data:W,width:D}=e,{height:V,multiple:X,scrollbarAlwaysOn:Y}=s.props;if(W.length===0)return I("div",{class:r.b("dropdown"),style:{width:`${D}px`}},[(z=t.empty)==null?void 0:z.call(t)]);const B=d(f)?m$:Hre;return I("div",{class:[r.b("dropdown"),r.is("multiple",X)]},[I(B,Rt({ref:u},d(h),{className:r.be("dropdown","list"),scrollbarAlwaysOn:Y,data:W,height:V,width:D,total:W.length,onKeydown:H}),{default:K=>I(T,K,null)})])}}});function aie(e,t){const{aliasProps:n,getLabel:s,getValue:r}=gg(e),i=G(0),a=G(null),o=k(()=>e.allowCreate&&e.filterable);function l(p){const g=m=>r(m)===p;return e.options&&e.options.some(g)||t.createdOptions.some(g)}function u(p){o.value&&(e.multiple&&p.created?i.value++:a.value=p)}function c(p){if(o.value)if(p&&p.length>0&&!l(p)){const g={[n.value.value]:p,[n.value.label]:p,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(p){if(!o.value||!p||!p.created||p.created&&e.reserveKeyword&&t.inputValue===s(p))return;const g=t.createdOptions.findIndex(m=>r(m)===r(p));~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}}function oie(e){const t=G(!1);return{handleCompositionStart:()=>{t.value=!0},handleCompositionUpdate:i=>{const a=i.target.value,o=a[a.length-1]||"";t.value=!eg(o)},handleCompositionEnd:i=>{t.value&&(t.value=!1,yt(e)&&e(i))}}}const HE="",zE=11,lie={larget:51,default:42,small:33},uie=(e,t)=>{const{t:n}=Wt(),s=Le("select-v2"),r=Le("input"),{form:i,formItem:a}=Bs(),{getLabel:o,getValue:l,getDisabled:u,getOptions:c}=gg(e),f=Ct({inputValue:HE,displayInputValue:HE,calculatedWidth:0,cachedPlaceholder:"",cachedOptions:[],createdOptions:[],createdLabel:"",createdSelected:!1,currentPlaceholder:"",hoveringIndex:-1,comboBoxHovering:!1,isOnComposition:!1,isSilentBlur:!1,isComposing:!1,inputLength:20,selectWidth:200,initialInputHeight:0,previousQuery:null,previousValue:void 0,query:"",selectedLabel:"",softFocus:!1,tagInMultiLine:!1}),h=G(-1),p=G(-1),g=G(null),m=G(null),y=G(null),v=G(null),_=G(null),w=G(null),T=G(null),S=G(!1),E=k(()=>e.disabled||(i==null?void 0:i.disabled)),$=k(()=>{const Ue=Y.value.length*e.itemHeight;return Ue>e.height?e.height:Ue}),P=k(()=>!Un(e.modelValue)),U=k(()=>{const Ue=e.multiple?Array.isArray(e.modelValue)&&e.modelValue.length>0:P.value;return e.clearable&&!E.value&&f.comboBoxHovering&&Ue}),H=k(()=>e.remote&&e.filterable?"":hf),z=k(()=>H.value&&s.is("reverse",S.value)),W=k(()=>(a==null?void 0:a.validateState)||""),D=k(()=>$_[W.value]),V=k(()=>e.remote?300:0),X=k(()=>{const Ue=Y.value;return e.loading?e.loadingText||n("el.select.loading"):e.remote&&f.inputValue===""&&Ue.length===0?!1:e.filterable&&f.inputValue&&Ue.length>0?e.noMatchText||n("el.select.noMatch"):Ue.length===0?e.noDataText||n("el.select.noData"):null}),Y=k(()=>{const Ue=ft=>{const Dt=f.inputValue,qt=new RegExp(cO(Dt),"i");return Dt?qt.test(o(ft)||""):!0};return e.loading?[]:[...e.options,...f.createdOptions].reduce((ft,Dt)=>{const qt=c(Dt);if(st(qt)){const zn=qt.filter(Ue);zn.length>0&&ft.push({label:o(Dt),isTitle:!0,type:"Group"},...zn,{type:"Group"})}else(e.remote||Ue(Dt))&&ft.push(Dt);return ft},[])}),B=k(()=>{const Ue=new Map;return Y.value.forEach((ft,Dt)=>{Ue.set(Xe(l(ft)),{option:ft,index:Dt})}),Ue}),K=k(()=>Y.value.every(Ue=>u(Ue))),L=Xn(),Q=k(()=>L.value==="small"?"small":"default"),ee=k(()=>{const Ue=w.value,ft=Q.value||"default",Dt=Ue?Number.parseInt(getComputedStyle(Ue).paddingLeft):0,qt=Ue?Number.parseInt(getComputedStyle(Ue).paddingRight):0;return f.selectWidth-qt-Dt-lie[ft]}),te=()=>{var Ue;p.value=((Ue=_.value)==null?void 0:Ue.offsetWidth)||200},ie=k(()=>({width:`${f.calculatedWidth===0?zE:Math.ceil(f.calculatedWidth)+zE}px`})),_e=k(()=>st(e.modelValue)?e.modelValue.length===0&&!f.displayInputValue:e.filterable?f.displayInputValue.length===0:!0),ue=k(()=>{const Ue=e.placeholder||n("el.select.placeholder");return e.multiple||Un(e.modelValue)?Ue:f.selectedLabel}),oe=k(()=>{var Ue,ft;return(ft=(Ue=v.value)==null?void 0:Ue.popperRef)==null?void 0:ft.contentRef}),de=k(()=>{if(e.multiple){const Ue=e.modelValue.length;if(e.modelValue.length>0&&B.value.has(e.modelValue[Ue-1])){const{index:ft}=B.value.get(e.modelValue[Ue-1]);return ft}}else if(e.modelValue&&B.value.has(e.modelValue)){const{index:Ue}=B.value.get(e.modelValue);return Ue}return-1}),ae=k({get(){return S.value&&X.value!==!1},set(Ue){S.value=Ue}}),Ie=k(()=>f.cachedOptions.slice(0,e.maxCollapseTags)),ke=k(()=>f.cachedOptions.slice(e.maxCollapseTags)),{createNewOption:Ee,removeNewOption:J,selectNewOption:re,clearAllNewOption:Se}=aie(e,f),{handleCompositionStart:Ae,handleCompositionUpdate:Be,handleCompositionEnd:Pe}=oie(Ue=>xe(Ue)),Ve=()=>{var Ue,ft,Dt;(ft=(Ue=m.value)==null?void 0:Ue.focus)==null||ft.call(Ue),(Dt=v.value)==null||Dt.updatePopper()},$e=()=>{if(!e.automaticDropdown&&!E.value)return f.isComposing&&(f.softFocus=!0),at(()=>{var Ue,ft;S.value=!S.value,(ft=(Ue=m.value)==null?void 0:Ue.focus)==null||ft.call(Ue)})},Te=()=>(e.filterable&&f.inputValue!==f.selectedLabel&&(f.query=f.selectedLabel),qe(f.inputValue),at(()=>{Ee(f.inputValue)})),De=Fs(Te,V.value),qe=Ue=>{f.previousQuery!==Ue&&(f.previousQuery=Ue,e.filterable&&yt(e.filterMethod)?e.filterMethod(Ue):e.filterable&&e.remote&&yt(e.remoteMethod)&&e.remoteMethod(Ue))},Je=Ue=>{Ys(e.modelValue,Ue)||t(ln,Ue)},et=Ue=>{t($t,Ue),Je(Ue),f.previousValue=String(Ue)},Re=(Ue=[],ft)=>{if(!Mt(ft))return Ue.indexOf(ft);const Dt=e.valueKey;let qt=-1;return Ue.some((zn,ws)=>gn(zn,Dt)===gn(ft,Dt)?(qt=ws,!0):!1),qt},Xe=Ue=>Mt(Ue)?gn(Ue,e.valueKey):Ue,ct=()=>at(()=>{var Ue,ft;if(!m.value)return;const Dt=w.value;_.value.height=Dt.offsetHeight,S.value&&X.value!==!1&&((ft=(Ue=v.value)==null?void 0:Ue.updatePopper)==null||ft.call(Ue))}),wt=()=>{var Ue,ft;if(Pt(),te(),(ft=(Ue=v.value)==null?void 0:Ue.updatePopper)==null||ft.call(Ue),e.multiple)return ct()},Pt=()=>{const Ue=w.value;Ue&&(f.selectWidth=Ue.getBoundingClientRect().width)},ut=(Ue,ft,Dt=!0)=>{var qt,zn;if(e.multiple){let ws=e.modelValue.slice();const Ln=Re(ws,l(Ue));Ln>-1?(ws=[...ws.slice(0,Ln),...ws.slice(Ln+1)],f.cachedOptions.splice(Ln,1),J(Ue)):(e.multipleLimit<=0||ws.length<e.multipleLimit)&&(ws=[...ws,l(Ue)],f.cachedOptions.push(Ue),re(Ue),mn(ft)),et(ws),Ue.created&&(f.query="",qe(""),f.inputLength=20),e.filterable&&!e.reserveKeyword&&((zn=(qt=m.value).focus)==null||zn.call(qt),_t("")),e.filterable&&(f.calculatedWidth=T.value.getBoundingClientRect().width),ct(),Jn()}else h.value=ft,f.selectedLabel=o(Ue),et(l(Ue)),S.value=!1,f.isComposing=!1,f.isSilentBlur=Dt,re(Ue),Ue.created||Se(),mn(ft)},Ce=(Ue,ft)=>{let Dt=e.modelValue.slice();const qt=Re(Dt,l(ft));if(qt>-1&&!E.value)return Dt=[...e.modelValue.slice(0,qt),...e.modelValue.slice(qt+1)],f.cachedOptions.splice(qt,1),et(Dt),t("remove-tag",l(ft)),f.softFocus=!0,J(ft),at(Ve);Ue.stopPropagation()},pe=Ue=>{const ft=f.isComposing;f.isComposing=!0,f.softFocus?f.softFocus=!1:ft||t("focus",Ue)},ge=Ue=>(f.softFocus=!1,at(()=>{var ft,Dt;(Dt=(ft=m.value)==null?void 0:ft.blur)==null||Dt.call(ft),T.value&&(f.calculatedWidth=T.value.getBoundingClientRect().width),f.isSilentBlur?f.isSilentBlur=!1:f.isComposing&&t("blur",Ue),f.isComposing=!1})),Ne=()=>{f.displayInputValue.length>0?_t(""):S.value=!1},ne=Ue=>{if(f.displayInputValue.length===0){Ue.preventDefault();const ft=e.modelValue.slice();ft.pop(),J(f.cachedOptions.pop()),et(ft)}},Ye=()=>{let Ue;return st(e.modelValue)?Ue=[]:Ue=void 0,f.softFocus=!0,e.multiple?f.cachedOptions=[]:f.selectedLabel="",S.value=!1,et(Ue),t("clear"),Se(),at(Ve)},_t=Ue=>{f.displayInputValue=Ue,f.inputValue=Ue},Ft=(Ue,ft=void 0)=>{const Dt=Y.value;if(!["forward","backward"].includes(Ue)||E.value||Dt.length<=0||K.value)return;if(!S.value)return $e();ft===void 0&&(ft=f.hoveringIndex);let qt=-1;Ue==="forward"?(qt=ft+1,qt>=Dt.length&&(qt=0)):Ue==="backward"&&(qt=ft-1,(qt<0||qt>=Dt.length)&&(qt=Dt.length-1));const zn=Dt[qt];if(u(zn)||zn.type==="Group")return Ft(Ue,qt);mn(qt),Ut(qt)},Pn=()=>{if(S.value)~f.hoveringIndex&&Y.value[f.hoveringIndex]&&ut(Y.value[f.hoveringIndex],f.hoveringIndex,!1);else return $e()},mn=Ue=>{f.hoveringIndex=Ue},Vs=()=>{f.hoveringIndex=-1},Jn=()=>{var Ue;const ft=m.value;ft&&((Ue=ft.focus)==null||Ue.call(ft))},xe=Ue=>{const ft=Ue.target.value;if(_t(ft),f.displayInputValue.length>0&&!S.value&&(S.value=!0),f.calculatedWidth=T.value.getBoundingClientRect().width,e.multiple&&ct(),e.remote)De();else return Te()},Ge=()=>(S.value=!1,ge()),mt=()=>(f.inputValue=f.displayInputValue,at(()=>{~de.value&&(mn(de.value),Ut(f.hoveringIndex))})),Ut=Ue=>{y.value.scrollToItem(Ue)},Hn=()=>{if(Vs(),e.multiple)if(e.modelValue.length>0){let Ue=!1;f.cachedOptions.length=0,f.previousValue=e.modelValue.toString();for(const ft of e.modelValue){const Dt=Xe(ft);if(B.value.has(Dt)){const{index:qt,option:zn}=B.value.get(Dt);f.cachedOptions.push(zn),Ue||mn(qt),Ue=!0}}}else f.cachedOptions=[],f.previousValue=void 0;else if(P.value){f.previousValue=e.modelValue;const Ue=Y.value,ft=Ue.findIndex(Dt=>Xe(l(Dt))===Xe(e.modelValue));~ft?(f.selectedLabel=o(Ue[ft]),mn(ft)):f.selectedLabel=Xe(e.modelValue)}else f.selectedLabel="",f.previousValue=void 0;Se(),te()};return Oe(S,Ue=>{var ft,Dt;t("visible-change",Ue),Ue?(Dt=(ft=v.value).update)==null||Dt.call(ft):(f.displayInputValue="",f.previousQuery=null,Ee(""))}),Oe(()=>e.modelValue,(Ue,ft)=>{var Dt;(!Ue||Ue.toString()!==f.previousValue)&&Hn(),!Ys(Ue,ft)&&e.validateEvent&&((Dt=a==null?void 0:a.validate)==null||Dt.call(a,"change").catch(qt=>void 0))},{deep:!0}),Oe(()=>e.options,()=>{const Ue=m.value;(!Ue||Ue&&document.activeElement!==Ue)&&Hn()},{deep:!0}),Oe(Y,()=>y.value&&at(y.value.resetScrollTop)),Oe(()=>ae.value,Ue=>{Ue||Vs()}),vt(()=>{Hn()}),_s(_,wt),{collapseTagSize:Q,currentPlaceholder:ue,expanded:S,emptyText:X,popupHeight:$,debounce:V,filteredOptions:Y,iconComponent:H,iconReverse:z,inputWrapperStyle:ie,popperSize:p,dropdownMenuVisible:ae,hasModelValue:P,shouldShowPlaceholder:_e,selectDisabled:E,selectSize:L,showClearBtn:U,states:f,tagMaxWidth:ee,nsSelectV2:s,nsInput:r,calculatorRef:T,controlRef:g,inputRef:m,menuRef:y,popper:v,selectRef:_,selectionRef:w,popperRef:oe,validateState:W,validateIcon:D,showTagList:Ie,collapseTagList:ke,debouncedOnInputChange:De,deleteTag:Ce,getLabel:o,getValue:l,getDisabled:u,getValueKey:Xe,handleBlur:ge,handleClear:Ye,handleClickOutside:Ge,handleDel:ne,handleEsc:Ne,handleFocus:pe,handleMenuEnter:mt,handleResize:wt,toggleMenu:$e,scrollTo:Ut,onInput:xe,onKeyboardNavigate:Ft,onKeyboardSelect:Pn,onSelect:ut,onHover:mn,onUpdateInputValue:_t,handleCompositionStart:Ae,handleCompositionEnd:Pe,handleCompositionUpdate:Be}},cie=Z({name:"ElSelectV2",components:{ElSelectMenu:iie,ElTag:aa,ElTooltip:ms,ElIcon:tt},directives:{ClickOutside:ia,ModelText:sa},props:Zre,emits:[$t,ln,"remove-tag","clear","visible-change","focus","blur"],setup(e,{emit:t}){const n=k(()=>{const{modelValue:r,multiple:i}=e,a=i?[]:void 0;return st(r)?i?r:a:i?a:r}),s=uie(Ct({...es(e),modelValue:n}),t);return Lt(C1,{props:Ct({...es(e),height:s.popupHeight,modelValue:n}),popper:s.popper,onSelect:s.onSelect,onHover:s.onHover,onKeyboardNavigate:s.onKeyboardNavigate,onKeyboardSelect:s.onKeyboardSelect}),{...s,modelValue:n}}}),die={key:0},fie=["id","autocomplete","aria-expanded","aria-labelledby","disabled","readonly","name","unselectable"],hie=["textContent"],pie=["id","aria-labelledby","aria-expanded","autocomplete","disabled","name","readonly","unselectable"],mie=["textContent"];function gie(e,t,n,s,r,i){const a=Et("el-tag"),o=Et("el-tooltip"),l=Et("el-icon"),u=Et("el-select-menu"),c=vd("model-text"),f=vd("click-outside");return pt((C(),j("div",{ref:"selectRef",class:M([e.nsSelectV2.b(),e.nsSelectV2.m(e.selectSize)]),onClick:t[24]||(t[24]=dt((...h)=>e.toggleMenu&&e.toggleMenu(...h),["stop"])),onMouseenter:t[25]||(t[25]=h=>e.states.comboBoxHovering=!0),onMouseleave:t[26]||(t[26]=h=>e.states.comboBoxHovering=!1)},[I(o,{ref:"popper",visible:e.dropdownMenuVisible,teleported:e.teleported,"popper-class":[e.nsSelectV2.e("popper"),e.popperClass],"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"popper-options":e.popperOptions,"fallback-placements":["bottom-start","top-start","right","left"],effect:e.effect,placement:e.placement,pure:"",transition:`${e.nsSelectV2.namespace.value}-zoom-in-top`,trigger:"click",persistent:e.persistent,onBeforeShow:e.handleMenuEnter,onHide:t[23]||(t[23]=h=>e.states.inputValue=e.states.displayInputValue)},{default:N(()=>[R("div",{ref:"selectionRef",class:M([e.nsSelectV2.e("wrapper"),e.nsSelectV2.is("focused",e.states.isComposing||e.expanded),e.nsSelectV2.is("hovering",e.states.comboBoxHovering),e.nsSelectV2.is("filterable",e.filterable),e.nsSelectV2.is("disabled",e.selectDisabled)])},[e.$slots.prefix?(C(),j("div",die,[we(e.$slots,"prefix")])):le("v-if",!0),e.multiple?(C(),j("div",{key:1,class:M(e.nsSelectV2.e("selection"))},[e.collapseTags&&e.modelValue.length>0?(C(),j(Ke,{key:0},[(C(!0),j(Ke,null,bt(e.showTagList,h=>(C(),j("div",{key:e.getValueKey(e.getValue(h)),class:M(e.nsSelectV2.e("selected-item"))},[I(a,{closable:!e.selectDisabled&&!e.getDisabled(h),size:e.collapseTagSize,type:"info","disable-transitions":"",onClose:p=>e.deleteTag(p,h)},{default:N(()=>[R("span",{class:M(e.nsSelectV2.e("tags-text")),style:rt({maxWidth:`${e.tagMaxWidth}px`})},ve(e.getLabel(h)),7)]),_:2},1032,["closable","size","onClose"])],2))),128)),R("div",{class:M(e.nsSelectV2.e("selected-item"))},[e.modelValue.length>e.maxCollapseTags?(C(),he(a,{key:0,closable:!1,size:e.collapseTagSize,type:"info","disable-transitions":""},{default:N(()=>[e.collapseTagsTooltip?(C(),he(o,{key:0,disabled:e.dropdownMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:!1},{default:N(()=>[R("span",{class:M(e.nsSelectV2.e("tags-text")),style:rt({maxWidth:`${e.tagMaxWidth}px`})}," + "+ve(e.modelValue.length-e.maxCollapseTags),7)]),content:N(()=>[R("div",{class:M(e.nsSelectV2.e("selection"))},[(C(!0),j(Ke,null,bt(e.collapseTagList,h=>(C(),j("div",{key:e.getValueKey(e.getValue(h)),class:M(e.nsSelectV2.e("selected-item"))},[I(a,{closable:!e.selectDisabled&&!e.getDisabled(h),size:e.collapseTagSize,class:"in-tooltip",type:"info","disable-transitions":"",onClose:p=>e.deleteTag(p,h)},{default:N(()=>[R("span",{class:M(e.nsSelectV2.e("tags-text")),style:rt({maxWidth:`${e.tagMaxWidth}px`})},ve(e.getLabel(h)),7)]),_:2},1032,["closable","size","onClose"])],2))),128))],2)]),_:1},8,["disabled","effect"])):(C(),j("span",{key:1,class:M(e.nsSelectV2.e("tags-text")),style:rt({maxWidth:`${e.tagMaxWidth}px`})}," + "+ve(e.modelValue.length-e.maxCollapseTags),7))]),_:1},8,["size"])):le("v-if",!0)],2)],64)):(C(!0),j(Ke,{key:1},bt(e.states.cachedOptions,h=>(C(),j("div",{key:e.getValueKey(e.getValue(h)),class:M(e.nsSelectV2.e("selected-item"))},[I(a,{closable:!e.selectDisabled&&!e.getDisabled(h),size:e.collapseTagSize,type:"info","disable-transitions":"",onClose:p=>e.deleteTag(p,h)},{default:N(()=>[R("span",{class:M(e.nsSelectV2.e("tags-text")),style:rt({maxWidth:`${e.tagMaxWidth}px`})},ve(e.getLabel(h)),7)]),_:2},1032,["closable","size","onClose"])],2))),128)),R("div",{class:M([e.nsSelectV2.e("selected-item"),e.nsSelectV2.e("input-wrapper")]),style:rt(e.inputWrapperStyle)},[pt(R("input",{id:e.id,ref:"inputRef",autocomplete:e.autocomplete,"aria-autocomplete":"list","aria-haspopup":"listbox",autocapitalize:"off","aria-expanded":e.expanded,"aria-labelledby":e.label,class:M([e.nsSelectV2.is(e.selectSize),e.nsSelectV2.e("combobox-input")]),disabled:e.disabled,role:"combobox",readonly:!e.filterable,spellcheck:"false",type:"text",name:e.name,unselectable:e.expanded?"on":void 0,"onUpdate:modelValue":t[0]||(t[0]=(...h)=>e.onUpdateInputValue&&e.onUpdateInputValue(...h)),onFocus:t[1]||(t[1]=(...h)=>e.handleFocus&&e.handleFocus(...h)),onBlur:t[2]||(t[2]=(...h)=>e.handleBlur&&e.handleBlur(...h)),onInput:t[3]||(t[3]=(...h)=>e.onInput&&e.onInput(...h)),onCompositionstart:t[4]||(t[4]=(...h)=>e.handleCompositionStart&&e.handleCompositionStart(...h)),onCompositionupdate:t[5]||(t[5]=(...h)=>e.handleCompositionUpdate&&e.handleCompositionUpdate(...h)),onCompositionend:t[6]||(t[6]=(...h)=>e.handleCompositionEnd&&e.handleCompositionEnd(...h)),onKeydown:[t[7]||(t[7]=jt(dt(h=>e.onKeyboardNavigate("backward"),["stop","prevent"]),["up"])),t[8]||(t[8]=jt(dt(h=>e.onKeyboardNavigate("forward"),["stop","prevent"]),["down"])),t[9]||(t[9]=jt(dt((...h)=>e.onKeyboardSelect&&e.onKeyboardSelect(...h),["stop","prevent"]),["enter"])),t[10]||(t[10]=jt(dt((...h)=>e.handleEsc&&e.handleEsc(...h),["stop","prevent"]),["esc"])),t[11]||(t[11]=jt(dt((...h)=>e.handleDel&&e.handleDel(...h),["stop"]),["delete"]))]},null,42,fie),[[c,e.states.displayInputValue]]),e.filterable?(C(),j("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:M(e.nsSelectV2.e("input-calculator")),textContent:ve(e.states.displayInputValue)},null,10,hie)):le("v-if",!0)],6)],2)):(C(),j(Ke,{key:2},[R("div",{class:M([e.nsSelectV2.e("selected-item"),e.nsSelectV2.e("input-wrapper")])},[pt(R("input",{id:e.id,ref:"inputRef","aria-autocomplete":"list","aria-haspopup":"listbox","aria-labelledby":e.label,"aria-expanded":e.expanded,autocapitalize:"off",autocomplete:e.autocomplete,class:M(e.nsSelectV2.e("combobox-input")),disabled:e.disabled,name:e.name,role:"combobox",readonly:!e.filterable,spellcheck:"false",type:"text",unselectable:e.expanded?"on":void 0,onCompositionstart:t[12]||(t[12]=(...h)=>e.handleCompositionStart&&e.handleCompositionStart(...h)),onCompositionupdate:t[13]||(t[13]=(...h)=>e.handleCompositionUpdate&&e.handleCompositionUpdate(...h)),onCompositionend:t[14]||(t[14]=(...h)=>e.handleCompositionEnd&&e.handleCompositionEnd(...h)),onFocus:t[15]||(t[15]=(...h)=>e.handleFocus&&e.handleFocus(...h)),onBlur:t[16]||(t[16]=(...h)=>e.handleBlur&&e.handleBlur(...h)),onInput:t[17]||(t[17]=(...h)=>e.onInput&&e.onInput(...h)),onKeydown:[t[18]||(t[18]=jt(dt(h=>e.onKeyboardNavigate("backward"),["stop","prevent"]),["up"])),t[19]||(t[19]=jt(dt(h=>e.onKeyboardNavigate("forward"),["stop","prevent"]),["down"])),t[20]||(t[20]=jt(dt((...h)=>e.onKeyboardSelect&&e.onKeyboardSelect(...h),["stop","prevent"]),["enter"])),t[21]||(t[21]=jt(dt((...h)=>e.handleEsc&&e.handleEsc(...h),["stop","prevent"]),["esc"]))],"onUpdate:modelValue":t[22]||(t[22]=(...h)=>e.onUpdateInputValue&&e.onUpdateInputValue(...h))},null,42,pie),[[c,e.states.displayInputValue]])],2),e.filterable?(C(),j("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:M([e.nsSelectV2.e("selected-item"),e.nsSelectV2.e("input-calculator")]),textContent:ve(e.states.displayInputValue)},null,10,mie)):le("v-if",!0)],64)),e.shouldShowPlaceholder?(C(),j("span",{key:3,class:M([e.nsSelectV2.e("placeholder"),e.nsSelectV2.is("transparent",e.multiple?e.modelValue.length===0:!e.hasModelValue)])},ve(e.currentPlaceholder),3)):le("v-if",!0),R("span",{class:M(e.nsSelectV2.e("suffix"))},[e.iconComponent?pt((C(),he(l,{key:0,class:M([e.nsSelectV2.e("caret"),e.nsInput.e("icon"),e.iconReverse])},{default:N(()=>[(C(),he(Nt(e.iconComponent)))]),_:1},8,["class"])),[[Vt,!e.showClearBtn]]):le("v-if",!0),e.showClearBtn&&e.clearIcon?(C(),he(l,{key:1,class:M([e.nsSelectV2.e("caret"),e.nsInput.e("icon")]),onClick:dt(e.handleClear,["prevent","stop"])},{default:N(()=>[(C(),he(Nt(e.clearIcon)))]),_:1},8,["class","onClick"])):le("v-if",!0),e.validateState&&e.validateIcon?(C(),he(l,{key:2,class:M([e.nsInput.e("icon"),e.nsInput.e("validateIcon")])},{default:N(()=>[(C(),he(Nt(e.validateIcon)))]),_:1},8,["class"])):le("v-if",!0)],2)],2)]),content:N(()=>[I(u,{ref:"menuRef",data:e.filteredOptions,width:e.popperSize,"hovering-index":e.states.hoveringIndex,"scrollbar-always-on":e.scrollbarAlwaysOn},{default:N(h=>[we(e.$slots,"default",Kr(Vm(h)))]),empty:N(()=>[we(e.$slots,"empty",{},()=>[R("p",{class:M(e.nsSelectV2.e("empty"))},ve(e.emptyText?e.emptyText:""),3)])]),_:3},8,["data","width","hovering-index","scrollbar-always-on"])]),_:3},8,["visible","teleported","popper-class","popper-options","effect","placement","transition","persistent","onBeforeShow"])],34)),[[f,e.handleClickOutside,e.popperRef]])}var dp=ze(cie,[["render",gie],["__file","select.vue"]]);dp.install=e=>{e.component(dp.name,dp)};const vie=dp,yie=vie,bie=He({animated:{type:Boolean,default:!1},count:{type:Number,default:1},rows:{type:Number,default:3},loading:{type:Boolean,default:!0},throttle:{type:Number}}),_ie=He({variant:{type:String,values:["circle","rect","h1","h3","text","caption","p","image","button"],default:"text"}}),Tie=Z({name:"ElSkeletonItem"}),wie=Z({...Tie,props:_ie,setup(e){const t=Le("skeleton");return(n,s)=>(C(),j("div",{class:M([d(t).e("item"),d(t).e(n.variant)])},[n.variant==="image"?(C(),he(d(oj),{key:0})):le("v-if",!0)],2))}});var Jp=ze(wie,[["__file","skeleton-item.vue"]]);const Sie=Z({name:"ElSkeleton"}),Cie=Z({...Sie,props:bie,setup(e,{expose:t}){const n=e,s=Le("skeleton"),r=o7(yn(n,"loading"),n.throttle);return t({uiLoading:r}),(i,a)=>d(r)?(C(),j("div",Rt({key:0,class:[d(s).b(),d(s).is("animated",i.animated)]},i.$attrs),[(C(!0),j(Ke,null,bt(i.count,o=>(C(),j(Ke,{key:o},[i.loading?we(i.$slots,"template",{key:o},()=>[I(Jp,{class:M(d(s).is("first")),variant:"p"},null,8,["class"]),(C(!0),j(Ke,null,bt(i.rows,l=>(C(),he(Jp,{key:l,class:M([d(s).e("paragraph"),d(s).is("last",l===i.rows&&i.rows>1)]),variant:"p"},null,8,["class"]))),128))]):le("v-if",!0)],64))),128))],16)):we(i.$slots,"default",Kr(Rt({key:1},i.$attrs)))}});var Eie=ze(Cie,[["__file","skeleton.vue"]]);const xie=At(Eie,{SkeletonItem:Jp}),kie=In(Jp),C$=Symbol("sliderContextKey"),Iie=He({modelValue:{type:me([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:os,inputSize:os,showStops:Boolean,showTooltip:{type:Boolean,default:!0},formatTooltip:{type:me(Function),default:void 0},disabled:Boolean,range:Boolean,vertical:Boolean,height:String,debounce:{type:Number,default:300},label:{type:String,default:void 0},rangeStartLabel:{type:String,default:void 0},rangeEndLabel:{type:String,default:void 0},formatValueText:{type:me(Function),default:void 0},tooltipClass:{type:String,default:void 0},placement:{type:String,values:ul,default:"top"},marks:{type:me(Object)},validateEvent:{type:Boolean,default:!0}}),Dv=e=>ht(e)||st(e)&&e.every(ht),Oie={[$t]:Dv,[Ms]:Dv,[ln]:Dv},Aie=(e,t,n)=>{const s=G();return vt(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),dn(window,"resize",n),await at(),n()}),{sliderWrapper:s}},Pie=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]})):[]),$ie=(e,t,n)=>{const{form:s,formItem:r}=Bs(),i=Jt(),a=G(),o=G(),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)}%`),p=k(()=>e.range?`${100*(c.value-e.min)/(e.max-e.min)}%`:"0%"),g=k(()=>e.vertical?{height:e.height}:{}),m=k(()=>e.vertical?{height:h.value,bottom:p.value}:{width:h.value,left:p.value}),y=()=>{i.value&&(t.sliderSize=i.value[`client${e.vertical?"Height":"Width"}`])},v=z=>{const W=e.min+z*(e.max-e.min)/100;if(!e.range)return a;let D;return Math.abs(c.value-W)<Math.abs(f.value-W)?D=t.firstValue<t.secondValue?"firstButton":"secondButton":D=t.firstValue>t.secondValue?"firstButton":"secondButton",l[D]},_=z=>{const W=v(z);return W.value.setPosition(z),W},w=z=>{t.firstValue=z,S(e.range?[c.value,f.value]:z)},T=z=>{t.secondValue=z,e.range&&S([c.value,f.value])},S=z=>{n($t,z),n(Ms,z)},E=async()=>{await at(),n(ln,e.range?[c.value,f.value]:e.modelValue)},$=z=>{var W,D,V,X,Y,B;if(u.value||t.dragging)return;y();let K=0;if(e.vertical){const L=(V=(D=(W=z.touches)==null?void 0:W.item(0))==null?void 0:D.clientY)!=null?V:z.clientY;K=(i.value.getBoundingClientRect().bottom-L)/t.sliderSize*100}else{const L=(B=(Y=(X=z.touches)==null?void 0:X.item(0))==null?void 0:Y.clientX)!=null?B:z.clientX,Q=i.value.getBoundingClientRect().left;K=(L-Q)/t.sliderSize*100}if(!(K<0||K>100))return _(K)};return{elFormItem:r,slider:i,firstButton:a,secondButton:o,sliderDisabled:u,minValue:c,maxValue:f,runwayStyle:g,barStyle:m,resetSize:y,setPosition:_,emitChange:E,onSliderWrapperPrevent:z=>{var W,D;((W=l.firstButton.value)!=null&&W.dragging||(D=l.secondButton.value)!=null&&D.dragging)&&z.preventDefault()},onSliderClick:z=>{$(z)&&E()},onSliderDown:async z=>{const W=$(z);W&&(await at(),W.value.onButtonDown(z))},setFirstValue:w,setSecondValue:T}},{left:Nie,down:Mie,right:Rie,up:Lie,home:Die,end:Fie,pageUp:Bie,pageDown:Vie}=ot,Uie=(e,t,n)=>{const s=G(),r=G(!1),i=k(()=>t.value instanceof Function),a=k(()=>i.value&&t.value(e.modelValue)||e.modelValue),o=Fs(()=>{n.value&&(r.value=!0)},50),l=Fs(()=>{n.value&&(r.value=!1)},50);return{tooltip:s,tooltipVisible:r,formatValue:a,displayTooltip:o,hideTooltip:l}},Hie=(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:p}=Qe(C$),{tooltip:g,tooltipVisible:m,formatValue:y,displayTooltip:v,hideTooltip:_}=Uie(e,c,o),w=G(),T=k(()=>`${(e.modelValue-r.value)/(i.value-r.value)*100}%`),S=k(()=>e.vertical?{bottom:T.value}:{left:T.value}),E=()=>{t.hovering=!0,v()},$=()=>{t.hovering=!1,t.dragging||_()},P=te=>{s.value||(te.preventDefault(),K(te),window.addEventListener("mousemove",L),window.addEventListener("touchmove",L),window.addEventListener("mouseup",Q),window.addEventListener("touchend",Q),window.addEventListener("contextmenu",Q),w.value.focus())},U=te=>{s.value||(t.newPosition=Number.parseFloat(T.value)+te/(i.value-r.value)*100,ee(t.newPosition),f())},H=()=>{U(-a.value)},z=()=>{U(a.value)},W=()=>{U(-a.value*4)},D=()=>{U(a.value*4)},V=()=>{s.value||(ee(0),f())},X=()=>{s.value||(ee(100),f())},Y=te=>{let ie=!0;[Nie,Mie].includes(te.key)?H():[Rie,Lie].includes(te.key)?z():te.key===Die?V():te.key===Fie?X():te.key===Vie?W():te.key===Bie?D():ie=!1,ie&&te.preventDefault()},B=te=>{let ie,_e;return te.type.startsWith("touch")?(_e=te.touches[0].clientY,ie=te.touches[0].clientX):(_e=te.clientY,ie=te.clientX),{clientX:ie,clientY:_e}},K=te=>{t.dragging=!0,t.isClick=!0;const{clientX:ie,clientY:_e}=B(te);e.vertical?t.startY=_e:t.startX=ie,t.startPosition=Number.parseFloat(T.value),t.newPosition=t.startPosition},L=te=>{if(t.dragging){t.isClick=!1,v(),h();let ie;const{clientX:_e,clientY:ue}=B(te);e.vertical?(t.currentY=ue,ie=(t.startY-t.currentY)/u.value*100):(t.currentX=_e,ie=(t.currentX-t.startX)/u.value*100),t.newPosition=t.startPosition+ie,ee(t.newPosition)}},Q=()=>{t.dragging&&(setTimeout(()=>{t.dragging=!1,t.hovering||_(),t.isClick||ee(t.newPosition),f()},0),window.removeEventListener("mousemove",L),window.removeEventListener("touchmove",L),window.removeEventListener("mouseup",Q),window.removeEventListener("touchend",Q),window.removeEventListener("contextmenu",Q))},ee=async te=>{if(te===null||Number.isNaN(+te))return;te<0?te=0:te>100&&(te=100);const ie=100/((i.value-r.value)/a.value);let ue=Math.round(te/ie)*ie*(i.value-r.value)*.01+r.value;ue=Number.parseFloat(ue.toFixed(l.value)),ue!==e.modelValue&&n($t,ue),!t.dragging&&e.modelValue!==t.oldValue&&(t.oldValue=e.modelValue),await at(),t.dragging&&v(),g.value.updatePopper()};return Oe(()=>t.dragging,te=>{p(te)}),{disabled:s,button:w,tooltip:g,tooltipVisible:m,showTooltip:o,wrapperStyle:S,formatValue:y,handleMouseEnter:E,handleMouseLeave:$,onButtonDown:P,onKeyDown:Y,setPosition:ee}},zie=(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}%`}}),jie=(e,t,n,s,r,i)=>{const a=u=>{r($t,u),r(Ms,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&&Yn("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(),Oe(()=>t.dragging,u=>{u||l()}),Oe(()=>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}),Oe(()=>[e.min,e.max],()=>{l()})},Kie=He({modelValue:{type:Number,default:0},vertical:Boolean,tooltipClass:String,placement:{type:String,values:ul,default:"top"}}),Wie={[$t]:e=>ht(e)},qie=["tabindex"],Gie=Z({name:"ElSliderButton"}),Yie=Z({...Gie,props:Kie,emits:Wie,setup(e,{expose:t,emit:n}){const s=e,r=Le("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:p,handleMouseLeave:g,onButtonDown:m,onKeyDown:y,setPosition:v}=Hie(s,i,n),{hovering:_,dragging:w}=es(i);return t({onButtonDown:m,onKeyDown:y,setPosition:v,hovering:_,dragging:w}),(T,S)=>(C(),j("div",{ref_key:"button",ref:o,class:M([d(r).e("button-wrapper"),{hover:d(_),dragging:d(w)}]),style:rt(d(f)),tabindex:d(a)?-1:0,onMouseenter:S[0]||(S[0]=(...E)=>d(p)&&d(p)(...E)),onMouseleave:S[1]||(S[1]=(...E)=>d(g)&&d(g)(...E)),onMousedown:S[2]||(S[2]=(...E)=>d(m)&&d(m)(...E)),onTouchstart:S[3]||(S[3]=(...E)=>d(m)&&d(m)(...E)),onFocus:S[4]||(S[4]=(...E)=>d(p)&&d(p)(...E)),onBlur:S[5]||(S[5]=(...E)=>d(g)&&d(g)(...E)),onKeydown:S[6]||(S[6]=(...E)=>d(y)&&d(y)(...E))},[I(d(ms),{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:N(()=>[R("span",null,ve(d(h)),1)]),default:N(()=>[R("div",{class:M([d(r).e("button"),{hover:d(_),dragging:d(w)}])},null,2)]),_:1},8,["visible","placement","popper-class","disabled"])],46,qie))}});var jE=ze(Yie,[["__file","button.vue"]]);const Xie=He({mark:{type:me([String,Object]),default:void 0}});var Qie=Z({name:"ElSliderMarker",props:Xie,setup(e){const t=Le("slider"),n=k(()=>Tt(e.mark)?e.mark:e.mark.label),s=k(()=>Tt(e.mark)?void 0:e.mark.style);return()=>lt("div",{class:t.e("marks-text"),style:s.value},n.value)}});const Jie=["id","role","aria-label","aria-labelledby"],Zie={key:1},eae=Z({name:"ElSlider"}),tae=Z({...eae,props:Iie,emits:Oie,setup(e,{expose:t,emit:n}){const s=e,r=Le("slider"),{t:i}=Wt(),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:p,runwayStyle:g,barStyle:m,resetSize:y,emitChange:v,onSliderWrapperPrevent:_,onSliderClick:w,onSliderDown:T,setFirstValue:S,setSecondValue:E}=$ie(s,a,n),{stops:$,getStopStyle:P}=zie(s,a,h,p),{inputId:U,isLabeledByFormItem:H}=ro(s,{formItemContext:o}),z=Xn(),W=k(()=>s.inputSize||z.value),D=k(()=>s.label||i("el.slider.defaultLabel",{min:s.min,max:s.max})),V=k(()=>s.range?s.rangeStartLabel||i("el.slider.defaultRangeStartLabel"):D.value),X=k(()=>s.formatValueText?s.formatValueText(te.value):`${te.value}`),Y=k(()=>s.rangeEndLabel||i("el.slider.defaultRangeEndLabel")),B=k(()=>s.formatValueText?s.formatValueText(ie.value):`${ie.value}`),K=k(()=>[r.b(),r.m(z.value),r.is("vertical",s.vertical),{[r.m("with-input")]:s.showInput}]),L=Pie(s);jie(s,a,h,p,n,o);const Q=k(()=>{const oe=[s.min,s.max,s.step].map(de=>{const ae=`${de}`.split(".")[1];return ae?ae.length:0});return Math.max.apply(null,oe)}),{sliderWrapper:ee}=Aie(s,a,y),{firstValue:te,secondValue:ie,sliderSize:_e}=es(a),ue=oe=>{a.dragging=oe};return Lt(C$,{...es(s),sliderSize:_e,disabled:f,precision:Q,emitChange:v,resetSize:y,updateDragging:ue}),t({onSliderClick:w}),(oe,de)=>{var ae,Ie;return C(),j("div",{id:oe.range?d(U):void 0,ref_key:"sliderWrapper",ref:ee,class:M(d(K)),role:oe.range?"group":void 0,"aria-label":oe.range&&!d(H)?d(D):void 0,"aria-labelledby":oe.range&&d(H)?(ae=d(o))==null?void 0:ae.labelId:void 0,onTouchstart:de[2]||(de[2]=(...ke)=>d(_)&&d(_)(...ke)),onTouchmove:de[3]||(de[3]=(...ke)=>d(_)&&d(_)(...ke))},[R("div",{ref_key:"slider",ref:l,class:M([d(r).e("runway"),{"show-input":oe.showInput&&!oe.range},d(r).is("disabled",d(f))]),style:rt(d(g)),onMousedown:de[0]||(de[0]=(...ke)=>d(T)&&d(T)(...ke)),onTouchstart:de[1]||(de[1]=(...ke)=>d(T)&&d(T)(...ke))},[R("div",{class:M(d(r).e("bar")),style:rt(d(m))},null,6),I(jE,{id:oe.range?void 0:d(U),ref_key:"firstButton",ref:u,"model-value":d(te),vertical:oe.vertical,"tooltip-class":oe.tooltipClass,placement:oe.placement,role:"slider","aria-label":oe.range||!d(H)?d(V):void 0,"aria-labelledby":!oe.range&&d(H)?(Ie=d(o))==null?void 0:Ie.labelId:void 0,"aria-valuemin":oe.min,"aria-valuemax":oe.range?d(ie):oe.max,"aria-valuenow":d(te),"aria-valuetext":d(X),"aria-orientation":oe.vertical?"vertical":"horizontal","aria-disabled":d(f),"onUpdate:modelValue":d(S)},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"]),oe.range?(C(),he(jE,{key:0,ref_key:"secondButton",ref:c,"model-value":d(ie),vertical:oe.vertical,"tooltip-class":oe.tooltipClass,placement:oe.placement,role:"slider","aria-label":d(Y),"aria-valuemin":d(te),"aria-valuemax":oe.max,"aria-valuenow":d(ie),"aria-valuetext":d(B),"aria-orientation":oe.vertical?"vertical":"horizontal","aria-disabled":d(f),"onUpdate:modelValue":d(E)},null,8,["model-value","vertical","tooltip-class","placement","aria-label","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"])):le("v-if",!0),oe.showStops?(C(),j("div",Zie,[(C(!0),j(Ke,null,bt(d($),(ke,Ee)=>(C(),j("div",{key:Ee,class:M(d(r).e("stop")),style:rt(d(P)(ke))},null,6))),128))])):le("v-if",!0),d(L).length>0?(C(),j(Ke,{key:2},[R("div",null,[(C(!0),j(Ke,null,bt(d(L),(ke,Ee)=>(C(),j("div",{key:Ee,style:rt(d(P)(ke.position)),class:M([d(r).e("stop"),d(r).e("marks-stop")])},null,6))),128))]),R("div",{class:M(d(r).e("marks"))},[(C(!0),j(Ke,null,bt(d(L),(ke,Ee)=>(C(),he(d(Qie),{key:Ee,mark:ke.mark,style:rt(d(P)(ke.position))},null,8,["mark","style"]))),128))],2)],64)):le("v-if",!0)],38),oe.showInput&&!oe.range?(C(),he(d(pg),{key:0,ref:"input","model-value":d(te),class:M(d(r).e("input")),step:oe.step,disabled:d(f),controls:oe.showInputControls,min:oe.min,max:oe.max,debounce:oe.debounce,size:d(W),"onUpdate:modelValue":d(S),onChange:d(v)},null,8,["model-value","class","step","disabled","controls","min","max","debounce","size","onUpdate:modelValue","onChange"])):le("v-if",!0)],42,Jie)}}});var nae=ze(tae,[["__file","slider.vue"]]);const sae=At(nae),rae=He({prefixCls:{type:String}}),KE=Z({name:"ElSpaceItem",props:rae,setup(e,{slots:t}){const n=Le("space"),s=k(()=>`${e.prefixCls||n.b()}__item`);return()=>lt("div",{class:s.value},we(t,"default"))}}),WE={small:8,default:12,large:16};function iae(e){const t=Le("space"),n=k(()=>[t.b(),t.m(e.direction),e.class]),s=G(0),r=G(0),i=k(()=>{const o=e.wrap||e.fill?{flexWrap:"wrap",marginBottom:`-${r.value}px`}:{},l={alignItems:e.alignment};return[o,l,e.style]}),a=k(()=>{const o={paddingBottom:`${r.value}px`,marginRight:`${s.value}px`},l=e.fill?{flexGrow:1,minWidth:`${e.fillRatio}%`}:{};return[o,l]});return Gs(()=>{const{size:o="small",wrap:l,direction:u,fill:c}=e;if(st(o)){const[f=0,h=0]=o;s.value=f,r.value=h}else{let f;ht(o)?f=o:f=WE[o||"small"]||WE.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 aae=He({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},class:{type:me([String,Object,Array]),default:""},style:{type:me([String,Array,Object]),default:""},alignment:{type:me(String),default:"center"},prefixCls:{type:String},spacer:{type:me([Object,String,Number,Array]),default:null,validator:e=>pn(e)||ht(e)||Tt(e)},wrap:Boolean,fill:Boolean,fillRatio:{type:Number,default:100},size:{type:[String,Array,Number],values:Li,validator:e=>ht(e)||st(e)&&e.length===2&&e.every(ht)}}),oae=Z({name:"ElSpace",props:aae,setup(e,{slots:t}){const{classes:n,containerStyle:s,itemStyle:r}=iae(e);function i(a,o="",l=[]){const{prefixCls:u}=e;return a.forEach((c,f)=>{H0(c)?st(c.children)&&c.children.forEach((h,p)=>{H0(h)&&st(h.children)?i(h.children,`${o+p}-`,l):l.push(I(KE,{style:r.value,prefixCls:u,key:`nested-${o+p}`},{default:()=>[h]},Tr.PROPS|Tr.STYLE,["style","prefixCls"]))}):Wj(c)&&l.push(I(KE,{style:r.value,prefixCls:u,key:`LoopKey${o+f}`},{default:()=>[c]},Tr.PROPS|Tr.STYLE,["style","prefixCls"]))}),l}return()=>{var a;const{spacer:o,direction:l}=e,u=we(t,"default",{key:0},()=>[]);if(((a=u.children)!=null?a:[]).length===0)return null;if(st(u.children)){let c=i(u.children);if(o){const f=c.length-1;c=c.reduce((h,p,g)=>{const m=[...h,p];return g!==f&&m.push(I("span",{style:[r.value,l==="vertical"?"width: 100%":null],key:g},[pn(o)?o:Fe(o,Tr.TEXT)],Tr.STYLE)),m},[])}return I("div",{class:n.value,style:s.value},c,Tr.STYLE|Tr.CLASS)}return u.children}}}),lae=At(oae),uae=He({decimalSeparator:{type:String,default:"."},groupSeparator:{type:String,default:","},precision:{type:Number,default:0},formatter:Function,value:{type:me([Number,Object]),default:0},prefix:String,suffix:String,title:String,valueStyle:{type:me([String,Object,Array])}}),cae=Z({name:"ElStatistic"}),dae=Z({...cae,props:uae,setup(e,{expose:t}){const n=e,s=Le("statistic"),r=k(()=>{const{value:i,formatter:a,precision:o,decimalSeparator:l,groupSeparator:u}=n;if(yt(a))return a(i);if(!ht(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)=>(C(),j("div",{class:M(d(s).b())},[i.$slots.title||i.title?(C(),j("div",{key:0,class:M(d(s).e("head"))},[we(i.$slots,"title",{},()=>[Fe(ve(i.title),1)])],2)):le("v-if",!0),R("div",{class:M(d(s).e("content"))},[i.$slots.prefix||i.prefix?(C(),j("div",{key:0,class:M(d(s).e("prefix"))},[we(i.$slots,"prefix",{},()=>[R("span",null,ve(i.prefix),1)])],2)):le("v-if",!0),R("span",{class:M(d(s).e("number")),style:rt(i.valueStyle)},ve(d(r)),7),i.$slots.suffix||i.suffix?(C(),j("div",{key:1,class:M(d(s).e("suffix"))},[we(i.$slots,"suffix",{},()=>[R("span",null,ve(i.suffix),1)])],2)):le("v-if",!0)],2)],2))}});var fae=ze(dae,[["__file","statistic.vue"]]);const E$=At(fae),hae=He({format:{type:String,default:"HH:mm:ss"},prefix:String,suffix:String,title:String,value:{type:me([Number,Object]),default:0},valueStyle:{type:me([String,Object,Array])}}),pae={finish:()=>!0,[ln]:e=>ht(e)},mae=[["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]],qE=e=>ht(e)?new Date(e).getTime():e.valueOf(),GE=(e,t)=>{let n=e;const s=/\[([^\]]*)]/g;return mae.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")},gae=Z({name:"ElCountdown"}),vae=Z({...gae,props:hae,emits:pae,setup(e,{expose:t,emit:n}){const s=e;let r;const i=G(qE(s.value)-Date.now()),a=k(()=>GE(i.value,s.format)),o=c=>GE(c,s.format),l=()=>{r&&(tg(r),r=void 0)},u=()=>{const c=qE(s.value),f=()=>{let h=c-Date.now();n("change",h),h<=0?(h=0,l(),n("finish")):r=mu(f),i.value=h};r=mu(f)};return Oe(()=>[s.value,s.format],()=>{l(),u()},{immediate:!0}),on(()=>{l()}),t({displayValue:a}),(c,f)=>(C(),he(d(E$),{value:i.value,title:c.title,prefix:c.prefix,suffix:c.suffix,"value-style":c.valueStyle,formatter:o},xi({_:2},[bt(c.$slots,(h,p)=>({name:p,fn:N(()=>[we(c.$slots,p)])}))]),1032,["value","title","prefix","suffix","value-style"]))}});var yae=ze(vae,[["__file","countdown.vue"]]);const bae=At(yae),_ae=He({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"}}),Tae={[ln]:(e,t)=>[e,t].every(ht)},wae=Z({name:"ElSteps"}),Sae=Z({...wae,props:_ae,emits:Tae,setup(e,{emit:t}){const n=e,s=Le("steps"),{children:r,addChild:i,removeChild:a}=Y_(It(),"ElStep");return Oe(r,()=>{r.value.forEach((o,l)=>{o.setIndex(l)})}),Lt("ElSteps",{props:n,steps:r,addStep:i,removeStep:a}),Oe(()=>n.active,(o,l)=>{t(ln,o,l)}),(o,l)=>(C(),j("div",{class:M([d(s).b(),d(s).m(o.simple?"simple":o.direction)])},[we(o.$slots,"default")],2))}});var Cae=ze(Sae,[["__file","steps.vue"]]);const Eae=He({title:{type:String,default:""},icon:{type:sn},description:{type:String,default:""},status:{type:String,values:["","wait","process","finish","error","success"],default:""}}),xae=Z({name:"ElStep"}),kae=Z({...xae,props:Eae,setup(e){const t=e,n=Le("step"),s=G(-1),r=G({}),i=G(""),a=Qe("ElSteps"),o=It();vt(()=>{Oe([()=>a.props.active,()=>a.props.processStatus,()=>a.props.finishStatus],([E])=>{T(E)},{immediate:!0})}),on(()=>{a.removeStep(S.uid)});const l=k(()=>t.status||i.value),u=k(()=>{const E=a.steps.value[s.value-1];return E?E.currentStatus:"wait"}),c=k(()=>a.props.alignCenter),f=k(()=>a.props.direction==="vertical"),h=k(()=>a.props.simple),p=k(()=>a.steps.value.length),g=k(()=>{var E;return((E=a.steps.value[p.value-1])==null?void 0:E.uid)===(o==null?void 0:o.uid)}),m=k(()=>h.value?"":a.props.space),y=k(()=>[n.b(),n.is(h.value?"simple":a.props.direction),n.is("flex",g.value&&!m.value&&!c.value),n.is("center",c.value&&!f.value&&!h.value)]),v=k(()=>{const E={flexBasis:ht(m.value)?`${m.value}px`:m.value?m.value:`${100/(p.value-(c.value?0:1))}%`};return f.value||g.value&&(E.maxWidth=`${100/p.value}%`),E}),_=E=>{s.value=E},w=E=>{const $=E==="wait",P={transitionDelay:`${$?"-":""}${150*s.value}ms`},U=E===a.props.processStatus||$?0:100;P.borderWidth=U&&!h.value?"1px":0,P[a.props.direction==="vertical"?"height":"width"]=`${U}%`,r.value=P},T=E=>{E>s.value?i.value=a.props.finishStatus:E===s.value&&u.value!=="error"?i.value=a.props.processStatus:i.value="wait";const $=a.steps.value[s.value-1];$&&$.calcProgress(i.value)},S=Ct({uid:o.uid,currentStatus:l,setIndex:_,calcProgress:w});return a.addStep(S),(E,$)=>(C(),j("div",{style:rt(d(v)),class:M(d(y))},[le(" icon & line "),R("div",{class:M([d(n).e("head"),d(n).is(d(l))])},[d(h)?le("v-if",!0):(C(),j("div",{key:0,class:M(d(n).e("line"))},[R("i",{class:M(d(n).e("line-inner")),style:rt(r.value)},null,6)],2)),R("div",{class:M([d(n).e("icon"),d(n).is(E.icon||E.$slots.icon?"icon":"text")])},[we(E.$slots,"icon",{},()=>[E.icon?(C(),he(d(tt),{key:0,class:M(d(n).e("icon-inner"))},{default:N(()=>[(C(),he(Nt(E.icon)))]),_:1},8,["class"])):d(l)==="success"?(C(),he(d(tt),{key:1,class:M([d(n).e("icon-inner"),d(n).is("status")])},{default:N(()=>[I(d(pf))]),_:1},8,["class"])):d(l)==="error"?(C(),he(d(tt),{key:2,class:M([d(n).e("icon-inner"),d(n).is("status")])},{default:N(()=>[I(d(Jr))]),_:1},8,["class"])):d(h)?le("v-if",!0):(C(),j("div",{key:3,class:M(d(n).e("icon-inner"))},ve(s.value+1),3))])],2)],2),le(" title & description "),R("div",{class:M(d(n).e("main"))},[R("div",{class:M([d(n).e("title"),d(n).is(d(l))])},[we(E.$slots,"title",{},()=>[Fe(ve(E.title),1)])],2),d(h)?(C(),j("div",{key:0,class:M(d(n).e("arrow"))},null,2)):(C(),j("div",{key:1,class:M([d(n).e("description"),d(n).is(d(l))])},[we(E.$slots,"description",{},()=>[Fe(ve(E.description),1)])],2))],2)],6))}});var x$=ze(kae,[["__file","item.vue"]]);const Iae=At(Cae,{Step:x$}),Oae=In(x$),Aae=He({modelValue:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},size:{type:String,validator:N_},width:{type:[String,Number],default:""},inlinePrompt:{type:Boolean,default:!1},inactiveActionIcon:{type:sn},activeActionIcon:{type:sn},activeIcon:{type:sn},inactiveIcon:{type:sn},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},activeColor:{type:String,default:""},inactiveColor:{type:String,default:""},borderColor:{type:String,default:""},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},beforeChange:{type:me(Function)},id:String,tabindex:{type:[String,Number]},value:{type:[Boolean,String,Number],default:!1},label:{type:String,default:void 0}}),Pae={[$t]:e=>Gn(e)||Tt(e)||ht(e),[ln]:e=>Gn(e)||Tt(e)||ht(e),[Ms]:e=>Gn(e)||Tt(e)||ht(e)},$ae=["onClick"],Nae=["id","aria-checked","aria-disabled","aria-label","name","true-value","false-value","disabled","tabindex","onKeydown"],Mae=["aria-hidden"],Rae=["aria-hidden"],Lae=["aria-hidden"],Ly="ElSwitch",Dae=Z({name:Ly}),Fae=Z({...Dae,props:Aae,emits:Pae,setup(e,{expose:t,emit:n}){const s=e,r=It(),{formItem:i}=Bs(),a=Xn(),o=Le("switch");(P=>{P.forEach(U=>{Ii({from:U[0],replacement:U[1],scope:Ly,version:"2.3.0",ref:"https://element-plus.org/en-US/component/switch.html#attributes",type:"Attribute"},k(()=>{var H;return!!((H=r.vnode.props)!=null&&H[U[2]])}))})})([['"value"','"model-value" or "v-model"',"value"],['"active-color"',"CSS var `--el-switch-on-color`","activeColor"],['"inactive-color"',"CSS var `--el-switch-off-color`","inactiveColor"],['"border-color"',"CSS var `--el-switch-border-color`","borderColor"]]);const{inputId:u}=ro(s,{formItemContext:i}),c=ir(k(()=>s.loading)),f=G(s.modelValue!==!1),h=G(),p=G(),g=k(()=>[o.b(),o.m(a.value),o.is("disabled",c.value),o.is("checked",w.value)]),m=k(()=>[o.e("label"),o.em("label","left"),o.is("active",!w.value)]),y=k(()=>[o.e("label"),o.em("label","right"),o.is("active",w.value)]),v=k(()=>({width:Mn(s.width)}));Oe(()=>s.modelValue,()=>{f.value=!0}),Oe(()=>s.value,()=>{f.value=!1});const _=k(()=>f.value?s.modelValue:s.value),w=k(()=>_.value===s.activeValue);[s.activeValue,s.inactiveValue].includes(_.value)||(n($t,s.inactiveValue),n(ln,s.inactiveValue),n(Ms,s.inactiveValue)),Oe(w,P=>{var U;h.value.checked=P,s.validateEvent&&((U=i==null?void 0:i.validate)==null||U.call(i,"change").catch(H=>void 0))});const T=()=>{const P=w.value?s.inactiveValue:s.activeValue;n($t,P),n(ln,P),n(Ms,P),at(()=>{h.value.checked=w.value})},S=()=>{if(c.value)return;const{beforeChange:P}=s;if(!P){T();return}const U=P();[cd(U),Gn(U)].includes(!0)||Yn(Ly,"beforeChange must return type `Promise<boolean>` or `boolean`"),cd(U)?U.then(z=>{z&&T()}).catch(z=>{}):U&&T()},E=k(()=>o.cssVarBlock({...s.activeColor?{"on-color":s.activeColor}:null,...s.inactiveColor?{"off-color":s.inactiveColor}:null,...s.borderColor?{"border-color":s.borderColor}:null})),$=()=>{var P,U;(U=(P=h.value)==null?void 0:P.focus)==null||U.call(P)};return vt(()=>{h.value.checked=w.value}),t({focus:$,checked:w}),(P,U)=>(C(),j("div",{class:M(d(g)),style:rt(d(E)),onClick:dt(S,["prevent"])},[R("input",{id:d(u),ref_key:"input",ref:h,class:M(d(o).e("input")),type:"checkbox",role:"switch","aria-checked":d(w),"aria-disabled":d(c),"aria-label":P.label,name:P.name,"true-value":P.activeValue,"false-value":P.inactiveValue,disabled:d(c),tabindex:P.tabindex,onChange:T,onKeydown:jt(S,["enter"])},null,42,Nae),!P.inlinePrompt&&(P.inactiveIcon||P.inactiveText)?(C(),j("span",{key:0,class:M(d(m))},[P.inactiveIcon?(C(),he(d(tt),{key:0},{default:N(()=>[(C(),he(Nt(P.inactiveIcon)))]),_:1})):le("v-if",!0),!P.inactiveIcon&&P.inactiveText?(C(),j("span",{key:1,"aria-hidden":d(w)},ve(P.inactiveText),9,Mae)):le("v-if",!0)],2)):le("v-if",!0),R("span",{ref_key:"core",ref:p,class:M(d(o).e("core")),style:rt(d(v))},[P.inlinePrompt?(C(),j("div",{key:0,class:M(d(o).e("inner"))},[P.activeIcon||P.inactiveIcon?(C(),he(d(tt),{key:0,class:M(d(o).is("icon"))},{default:N(()=>[(C(),he(Nt(d(w)?P.activeIcon:P.inactiveIcon)))]),_:1},8,["class"])):P.activeText||P.inactiveText?(C(),j("span",{key:1,class:M(d(o).is("text")),"aria-hidden":!d(w)},ve(d(w)?P.activeText:P.inactiveText),11,Rae)):le("v-if",!0)],2)):le("v-if",!0),R("div",{class:M(d(o).e("action"))},[P.loading?(C(),he(d(tt),{key:0,class:M(d(o).is("loading"))},{default:N(()=>[I(d(no))]),_:1},8,["class"])):d(w)?we(P.$slots,"active-action",{key:1},()=>[P.activeActionIcon?(C(),he(d(tt),{key:0},{default:N(()=>[(C(),he(Nt(P.activeActionIcon)))]),_:1})):le("v-if",!0)]):d(w)?le("v-if",!0):we(P.$slots,"inactive-action",{key:2},()=>[P.inactiveActionIcon?(C(),he(d(tt),{key:0},{default:N(()=>[(C(),he(Nt(P.inactiveActionIcon)))]),_:1})):le("v-if",!0)])],2)],6),!P.inlinePrompt&&(P.activeIcon||P.activeText)?(C(),j("span",{key:1,class:M(d(y))},[P.activeIcon?(C(),he(d(tt),{key:0},{default:N(()=>[(C(),he(Nt(P.activeIcon)))]),_:1})):le("v-if",!0),!P.activeIcon&&P.activeText?(C(),j("span",{key:1,"aria-hidden":!d(w)},ve(P.activeText),9,Lae)):le("v-if",!0)],2)):le("v-if",!0)],14,$ae))}});var Bae=ze(Fae,[["__file","switch.vue"]]);const wf=At(Bae);/*!
|
||
* escape-html
|
||
* Copyright(c) 2012-2013 TJ Holowaychuk
|
||
* Copyright(c) 2015 Andreas Lubbe
|
||
* Copyright(c) 2015 Tiancheng "Timothy" Gu
|
||
* MIT Licensed
|
||
*/var Vae=/["'&<>]/,Uae=Hae;function Hae(e){var t=""+e,n=Vae.exec(t);if(!n)return t;var s,r="",i=0,a=0;for(i=n.index;i<t.length;i++){switch(t.charCodeAt(i)){case 34:s=""";break;case 38:s="&";break;case 39:s="'";break;case 60:s="<";break;case 62:s=">";break;default:continue}a!==i&&(r+=t.substring(a,i)),a=i+1,r+=s}return a!==i?r+t.substring(a,i):r}const Fv=function(e){var t;return(t=e.target)==null?void 0:t.closest("td")},zae=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"?gn(o,u):u(o,l,e))):(t!=="$key"&&Mt(o)&&"$value"in o&&(o=o.$value),[Mt(o)?gn(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)},k$=function(e,t){let n=null;return e.columns.forEach(s=>{s.id===t&&(n=s)}),n},jae=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||Yn("ElTable",`No column matching with column-key: ${t}`),n},YE=function(e,t,n){const s=(t.className||"").match(new RegExp(`${n}-table_[^\\s]+`,"gm"));return s?k$(e,s[0]):null},fs=(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)},Ro=function(e,t){const n={};return(e||[]).forEach((s,r)=>{n[fs(s,t)]={row:s,index:r}}),n};function Kae(e,t){const n={};let s;for(s in e)n[s]=e[s];for(s in t)if(zt(t,s)){const r=t[s];typeof r<"u"&&(n[s]=r)}return n}function E1(e){return e===""||e!==void 0&&(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function I$(e){return e===""||e!==void 0&&(e=E1(e),Number.isNaN(e)&&(e=80)),e}function Wae(e){return typeof e=="number"?e:typeof e=="string"?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function qae(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...s)=>t(n(...s)))}function Zc(e,t,n){let s=!1;const r=e.indexOf(t),i=r!==-1,a=o=>{o==="add"?e.push(t):e.splice(r,1),s=!0,st(t.children)&&t.children.forEach(l=>{Zc(e,l,n??!i)})};return Gn(n)?n&&!i?a("add"):!n&&i&&a("remove"):a(i?"remove":"add"),s}function Gae(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 Ur;function Yae(e,t,n,s,r){r=lO({enterable:!0,showArrow:!0},r);const i=e==null?void 0:e.dataset.prefix,a=e==null?void 0:e.querySelector(`.${i}-scrollbar__wrap`);function o(){const _=r.effect==="light",w=document.createElement("div");return w.className=[`${i}-popper`,_?"is-light":"is-dark",r.popperClass||""].join(" "),n=Uae(n),w.innerHTML=n,w.style.zIndex=String(s()),e==null||e.appendChild(w),w}function l(){const _=document.createElement("div");return _.className=`${i}-popper__arrow`,_}function u(_){return{name:"updateState",enabled:!0,phase:"beforeWrite",fn:({state:w})=>{w.styles.popper.display=_},requires:["computeStyles"]}}function c(){r.showAfter&&(h==null||h.setOptions({modifiers:[u("block")]})),h==null||h.update()}const f=(Ur==null?void 0:Ur.trigger)!==t;Ur==null||Ur(),Ur=()=>{try{h&&h.destroy(),m&&(e==null||e.removeChild(m)),t.removeEventListener("mouseenter",p),t.removeEventListener("mouseleave",g),a==null||a.removeEventListener("scroll",Ur),Ur=void 0}catch{}},Ur.trigger=t;let h=null;const{onOpen:p,onClose:g}=UO({showAfter:r.showAfter,hideAfter:r.hideAfter,open:c,close:Ur}),m=o();r.enterable&&(m.onmouseenter=p,m.onmouseleave=g);const y=[];if(r.offset&&y.push({name:"offset",options:{offset:[0,r.offset]}}),r.showArrow){const _=m.appendChild(l());y.push({name:"arrow",options:{element:_,padding:10}})}r.showAfter&&f&&y.push(u("none"));const v=r.popperOptions||{};return h=FO(t,m,{placement:r.placement||"top",strategy:"fixed",...v,modifiers:v.modifiers?y.concat(v.modifiers):y}),t.addEventListener("mouseenter",p),t.addEventListener("mouseleave",g),a==null||a.addEventListener("scroll",Ur),p(),h}function O$(e){return e.children?VH(e.children,O$):[e]}function XE(e,t){return e+t.colSpan}const A$=(e,t,n,s)=>{let r=0,i=e;const a=n.states.columns.value;if(s){const l=O$(s[e]);r=a.slice(0,a.indexOf(l[0])).reduce(XE,0),i=r+l.reduce(XE,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}:{}},x1=(e,t,n,s,r,i=0)=>{const a=[],{direction:o,start:l,after:u}=A$(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 QE(e,t){return e+(t.realWidth===null||Number.isNaN(t.realWidth)?Number(t.width):t.realWidth)}const k1=(e,t,n,s)=>{const{direction:r,start:i=0,after:a=0}=A$(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(QE,0):o.right=u.slice(a+1).reverse().reduce(QE,0),o},wu=(e,t)=>{e&&(Number.isNaN(e[t])||(e[t]=`${e[t]}px`))};function Xae(e){const t=It(),n=G(!1),s=G([]);return{updateExpandRows:()=>{const l=e.data.value||[],u=e.rowKey.value;if(n.value)s.value=l.slice();else if(u){const c=Ro(s.value,u);s.value=l.reduce((f,h)=>{const p=fs(h,u);return c[p]&&f.push(h),f},[])}else s.value=[]},toggleRowExpansion:(l,u)=>{Zc(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=Ro(u,c);s.value=l.reduce((h,p)=>{const g=f[p];return g&&h.push(g.row),h},[])},isRowExpanded:l=>{const u=e.rowKey.value;return u?!!Ro(s.value,u)[fs(l,u)]:s.value.includes(l)},states:{expandRows:s,defaultExpandAll:n}}}function Qae(e){const t=It(),n=G(null),s=G(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(p=>fs(p,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=fs(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 Jae(e){const t=G([]),n=G({}),s=G(16),r=G(!1),i=G({}),a=G("hasChildren"),o=G("children"),l=It(),u=k(()=>{if(!e.rowKey.value)return{};const v=e.data.value||[];return f(v)}),c=k(()=>{const v=e.rowKey.value,_=Object.keys(i.value),w={};return _.length&&_.forEach(T=>{if(i.value[T].length){const S={children:[]};i.value[T].forEach(E=>{const $=fs(E,v);S.children.push($),E[a.value]&&!w[$]&&(w[$]={children:[]})}),w[T]=S}}),w}),f=v=>{const _=e.rowKey.value,w={};return Gae(v,(T,S,E)=>{const $=fs(T,_);Array.isArray(S)?w[$]={children:S.map(P=>fs(P,_)),level:E}:r.value&&(w[$]={children:[],lazy:!0,level:E})},o.value,a.value),w},h=(v=!1,_=(w=>(w=l.store)==null?void 0:w.states.defaultExpandAll.value)())=>{var w;const T=u.value,S=c.value,E=Object.keys(T),$={};if(E.length){const P=d(n),U=[],H=(W,D)=>{if(v)return t.value?_||t.value.includes(D):!!(_||W!=null&&W.expanded);{const V=_||t.value&&t.value.includes(D);return!!(W!=null&&W.expanded||V)}};E.forEach(W=>{const D=P[W],V={...T[W]};if(V.expanded=H(D,W),V.lazy){const{loaded:X=!1,loading:Y=!1}=D||{};V.loaded=!!X,V.loading=!!Y,U.push(W)}$[W]=V});const z=Object.keys(S);r.value&&z.length&&U.length&&z.forEach(W=>{const D=P[W],V=S[W].children;if(U.includes(W)){if($[W].children.length!==0)throw new Error("[ElTable]children must be an empty array.");$[W].children=V}else{const{loaded:X=!1,loading:Y=!1}=D||{};$[W]={lazy:!0,loaded:!!X,loading:!!Y,expanded:H(D,W),children:V,level:""}}})}n.value=$,(w=l.store)==null||w.updateTableScrollY()};Oe(()=>t.value,()=>{h(!0)}),Oe(()=>u.value,()=>{h()}),Oe(()=>c.value,()=>{h()});const p=v=>{t.value=v,h()},g=(v,_)=>{l.store.assertRowKey();const w=e.rowKey.value,T=fs(v,w),S=T&&n.value[T];if(T&&S&&"expanded"in S){const E=S.expanded;_=typeof _>"u"?!S.expanded:_,n.value[T].expanded=_,E!==_&&l.emit("expand-change",v,_),l.store.updateTableScrollY()}},m=v=>{l.store.assertRowKey();const _=e.rowKey.value,w=fs(v,_),T=n.value[w];r.value&&T&&"loaded"in T&&!T.loaded?y(v,w,T):g(v,void 0)},y=(v,_,w)=>{const{load:T}=l.props;T&&!n.value[_].loaded&&(n.value[_].loading=!0,T(v,w,S=>{if(!Array.isArray(S))throw new TypeError("[ElTable] data must be an array");n.value[_].loading=!1,n.value[_].loaded=!0,n.value[_].expanded=!0,S.length&&(i.value[_]=S),l.emit("expand-change",v,!0)}))};return{loadData:y,loadOrToggle:m,toggleTreeExpansion:g,updateTreeExpandKeys:p,updateTreeData:h,normalize:f,states:{expandRowKeys:t,treeData:n,indent:s,lazy:r,lazyTreeNodeMap:i,lazyColumnIdentifier:a,childrenColumnName:o}}}const Zae=(e,t)=>{const n=t.sortingColumn;return!n||typeof n.sortable=="string"?e:zae(e,t.sortProp,t.sortOrder,n.sortMethod,n.sortBy)},fp=e=>{const t=[];return e.forEach(n=>{n.children&&n.children.length>0?t.push.apply(t,fp(n.children)):t.push(n)}),t};function eoe(){var e;const t=It(),{size:n}=es((e=t.proxy)==null?void 0:e.$props),s=G(null),r=G([]),i=G([]),a=G(!1),o=G([]),l=G([]),u=G([]),c=G([]),f=G([]),h=G([]),p=G([]),g=G([]),m=[],y=G(0),v=G(0),_=G(0),w=G(!1),T=G([]),S=G(!1),E=G(!1),$=G(null),P=G({}),U=G(null),H=G(null),z=G(null),W=G(null),D=G(null);Oe(r,()=>t.state&&B(!1),{deep:!0});const V=()=>{if(!s.value)throw new Error("[ElTable] prop row-key is required")},X=ut=>{var Ce;(Ce=ut.children)==null||Ce.forEach(pe=>{pe.fixed=ut.fixed,X(pe)})},Y=()=>{o.value.forEach(Ne=>{X(Ne)}),c.value=o.value.filter(Ne=>Ne.fixed===!0||Ne.fixed==="left"),f.value=o.value.filter(Ne=>Ne.fixed==="right"),c.value.length>0&&o.value[0]&&o.value[0].type==="selection"&&!o.value[0].fixed&&(o.value[0].fixed=!0,c.value.unshift(o.value[0]));const ut=o.value.filter(Ne=>!Ne.fixed);l.value=[].concat(c.value).concat(ut).concat(f.value);const Ce=fp(ut),pe=fp(c.value),ge=fp(f.value);y.value=Ce.length,v.value=pe.length,_.value=ge.length,u.value=[].concat(pe).concat(Ce).concat(ge),a.value=c.value.length>0||f.value.length>0},B=(ut,Ce=!1)=>{ut&&Y(),Ce?t.state.doLayout():t.state.debouncedUpdateLayout()},K=ut=>T.value.includes(ut),L=()=>{w.value=!1,T.value.length&&(T.value=[],t.emit("selection-change",[]))},Q=()=>{let ut;if(s.value){ut=[];const Ce=Ro(T.value,s.value),pe=Ro(r.value,s.value);for(const ge in Ce)zt(Ce,ge)&&!pe[ge]&&ut.push(Ce[ge].row)}else ut=T.value.filter(Ce=>!r.value.includes(Ce));if(ut.length){const Ce=T.value.filter(pe=>!ut.includes(pe));T.value=Ce,t.emit("selection-change",Ce.slice())}},ee=()=>(T.value||[]).slice(),te=(ut,Ce=void 0,pe=!0)=>{if(Zc(T.value,ut,Ce)){const Ne=(T.value||[]).slice();pe&&t.emit("select",Ne,ut),t.emit("selection-change",Ne)}},ie=()=>{var ut,Ce;const pe=E.value?!w.value:!(w.value||T.value.length);w.value=pe;let ge=!1,Ne=0;const ne=(Ce=(ut=t==null?void 0:t.store)==null?void 0:ut.states)==null?void 0:Ce.rowKey.value;r.value.forEach((Ye,_t)=>{const Ft=_t+Ne;$.value?$.value.call(null,Ye,Ft)&&Zc(T.value,Ye,pe)&&(ge=!0):Zc(T.value,Ye,pe)&&(ge=!0),Ne+=oe(fs(Ye,ne))}),ge&&t.emit("selection-change",T.value?T.value.slice():[]),t.emit("select-all",T.value)},_e=()=>{const ut=Ro(T.value,s.value);r.value.forEach(Ce=>{const pe=fs(Ce,s.value),ge=ut[pe];ge&&(T.value[ge.index]=Ce)})},ue=()=>{var ut,Ce,pe;if(((ut=r.value)==null?void 0:ut.length)===0){w.value=!1;return}let ge;s.value&&(ge=Ro(T.value,s.value));const Ne=function(Ft){return ge?!!ge[fs(Ft,s.value)]:T.value.includes(Ft)};let ne=!0,Ye=0,_t=0;for(let Ft=0,Pn=(r.value||[]).length;Ft<Pn;Ft++){const mn=(pe=(Ce=t==null?void 0:t.store)==null?void 0:Ce.states)==null?void 0:pe.rowKey.value,Vs=Ft+_t,Jn=r.value[Ft],xe=$.value&&$.value.call(null,Jn,Vs);if(Ne(Jn))Ye++;else if(!$.value||xe){ne=!1;break}_t+=oe(fs(Jn,mn))}Ye===0&&(ne=!1),w.value=ne},oe=ut=>{var Ce;if(!t||!t.store)return 0;const{treeData:pe}=t.store.states;let ge=0;const Ne=(Ce=pe.value[ut])==null?void 0:Ce.children;return Ne&&(ge+=Ne.length,Ne.forEach(ne=>{ge+=oe(ne)})),ge},de=(ut,Ce)=>{Array.isArray(ut)||(ut=[ut]);const pe={};return ut.forEach(ge=>{P.value[ge.id]=Ce,pe[ge.columnKey||ge.id]=Ce}),pe},ae=(ut,Ce,pe)=>{H.value&&H.value!==ut&&(H.value.order=null),H.value=ut,z.value=Ce,W.value=pe},Ie=()=>{let ut=d(i);Object.keys(P.value).forEach(Ce=>{const pe=P.value[Ce];if(!pe||pe.length===0)return;const ge=k$({columns:u.value},Ce);ge&&ge.filterMethod&&(ut=ut.filter(Ne=>pe.some(ne=>ge.filterMethod.call(null,ne,Ne,ge))))}),U.value=ut},ke=()=>{r.value=Zae(U.value,{sortingColumn:H.value,sortProp:z.value,sortOrder:W.value})},Ee=(ut=void 0)=>{ut&&ut.filter||Ie(),ke()},J=ut=>{const{tableHeaderRef:Ce}=t.refs;if(!Ce)return;const pe=Object.assign({},Ce.filterPanels),ge=Object.keys(pe);if(ge.length)if(typeof ut=="string"&&(ut=[ut]),Array.isArray(ut)){const Ne=ut.map(ne=>jae({columns:u.value},ne));ge.forEach(ne=>{const Ye=Ne.find(_t=>_t.id===ne);Ye&&(Ye.filteredValue=[])}),t.store.commit("filterChange",{column:Ne,values:[],silent:!0,multi:!0})}else ge.forEach(Ne=>{const ne=u.value.find(Ye=>Ye.id===Ne);ne&&(ne.filteredValue=[])}),P.value={},t.store.commit("filterChange",{column:{},values:[],silent:!0})},re=()=>{H.value&&(ae(null,null,null),t.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:Se,toggleRowExpansion:Ae,updateExpandRows:Be,states:Pe,isRowExpanded:Ve}=Xae({data:r,rowKey:s}),{updateTreeExpandKeys:$e,toggleTreeExpansion:Te,updateTreeData:De,loadOrToggle:qe,states:Je}=Jae({data:r,rowKey:s}),{updateCurrentRowData:et,updateCurrentRow:Re,setCurrentRowKey:Xe,states:ct}=Qae({data:r,rowKey:s});return{assertRowKey:V,updateColumns:Y,scheduleLayout:B,isSelected:K,clearSelection:L,cleanSelection:Q,getSelectionRows:ee,toggleRowSelection:te,_toggleAllSelection:ie,toggleAllSelection:null,updateSelectionByRowKey:_e,updateAllSelected:ue,updateFilters:de,updateCurrentRow:Re,updateSort:ae,execFilter:Ie,execSort:ke,execQuery:Ee,clearFilter:J,clearSort:re,toggleRowExpansion:Ae,setExpandRowKeysAdapter:ut=>{Se(ut),$e(ut)},setCurrentRowKey:Xe,toggleRowExpansionAdapter:(ut,Ce)=>{u.value.some(({type:ge})=>ge==="expand")?Ae(ut,Ce):Te(ut,Ce)},isRowExpanded:Ve,updateExpandRows:Be,updateCurrentRowData:et,loadOrToggle:qe,updateTreeData:De,states:{tableSize:n,rowKey:s,data:r,_data:i,isComplex:a,_columns:o,originColumns:l,columns:u,fixedColumns:c,rightFixedColumns:f,leafColumns:h,fixedLeafColumns:p,rightFixedLeafColumns:g,updateOrderFns:m,leafColumnsLength:y,fixedLeafColumnsLength:v,rightFixedLeafColumnsLength:_,isAllSelected:w,selection:T,reserveSelection:S,selectOnIndeterminate:E,selectable:$,filters:P,filteredData:U,sortingColumn:H,sortProp:z,sortOrder:W,hoverRow:D,...Pe,...Je,...ct}}}function Dy(e,t){return e.map(n=>{var s;return n.id===t.id?t:((s=n.children)!=null&&s.length&&(n.children=Dy(n.children,t)),n)})}function Fy(e){e.forEach(t=>{var n,s;t.no=(n=t.getColumnIndex)==null?void 0:n.call(t),(s=t.children)!=null&&s.length&&Fy(t.children)}),e.sort((t,n)=>t.no-n.no)}function toe(){const e=It(),t=eoe();return{ns:Le("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=Dy(c,l)):(c.push(o),f=c),Fy(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&&(Fy(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),at(()=>{var h;((h=l.children)==null?void 0:h.length)===0&&delete l.children}),a._columns.value=Dy(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),p=d(c);p===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:p}),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(){at(()=>e.layout.updateScrollY.apply(e.layout))}}}const ed={rowKey:"rowKey",defaultExpandAll:"defaultExpandAll",selectOnIndeterminate:"selectOnIndeterminate",indent:"indent",lazy:"lazy",data:"data",["treeProps.hasChildren"]:{key:"lazyColumnIdentifier",default:"hasChildren"},["treeProps.children"]:{key:"childrenColumnName",default:"children"}};function noe(e,t){if(!e)throw new Error("Table is required.");const n=toe();return n.toggleAllSelection=Fs(n._toggleAllSelection,10),Object.keys(ed).forEach(s=>{P$($$(t,s),s,n)}),soe(n,t),n}function soe(e,t){Object.keys(ed).forEach(n=>{Oe(()=>$$(t,n),s=>{P$(s,n,e)})})}function P$(e,t,n){let s=e,r=ed[t];typeof ed[t]=="object"&&(r=r.key,s=s||ed[t].default),n.states[r].value=s}function $$(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 roe{constructor(t){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=G(null),this.scrollX=G(!1),this.scrollY=G(!1),this.bodyWidth=G(null),this.fixedWidth=G(null),this.rightFixedWidth=G(null),this.gutterWidth=0;for(const n in t)zt(t,n)&&(an(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(!Kt)return;const s=this.table.vnode.el;if(t=Wae(t),this.height.value=Number(t),!s&&(t||t===0))return at(()=>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(!Kt)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,p)=>h+Number(p.minWidth||80),0),c=l/u;let f=0;i.forEach((h,p)=>{if(p===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:ioe}=$r,aoe=Z({name:"ElTableFilterPanel",components:{ElCheckbox:$r,ElCheckboxGroup:ioe,ElScrollbar:va,ElTooltip:ms,ElIcon:tt,ArrowDown:ga,ArrowUp:hf},directives:{ClickOutside:ia},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function}},setup(e){const t=It(),{t:n}=Wt(),s=Le("table-filter"),r=t==null?void 0:t.parent;r.filterPanels.value[e.column.id]||(r.filterPanels.value[e.column.id]=t);const i=G(!1),a=G(null),o=k(()=>e.column&&e.column.filters),l=k({get:()=>{var T;return(((T=e.column)==null?void 0:T.filteredValue)||[])[0]},set:T=>{u.value&&(typeof T<"u"&&T!==null?u.value.splice(0,1,T):u.value.splice(0,1))}}),u=k({get(){return e.column?e.column.filteredValue||[]:[]},set(T){e.column&&e.upDataColumn("filteredValue",T)}}),c=k(()=>e.column?e.column.filterMultiple:!0),f=T=>T.value===l.value,h=()=>{i.value=!1},p=T=>{T.stopPropagation(),i.value=!i.value},g=()=>{i.value=!1},m=()=>{_(u.value),h()},y=()=>{u.value=[],_(u.value),h()},v=T=>{l.value=T,_(typeof T<"u"&&T!==null?u.value:[]),h()},_=T=>{e.store.commit("filterChange",{column:e.column,values:T}),e.store.updateAllSelected()};Oe(i,T=>{e.column&&e.upDataColumn("filterOpened",T)},{immediate:!0});const w=k(()=>{var T,S;return(S=(T=a.value)==null?void 0:T.popperRef)==null?void 0:S.contentRef});return{tooltipVisible:i,multiple:c,filteredValue:u,filterValue:l,filters:o,handleConfirm:m,handleReset:y,handleSelect:v,isActive:f,t:n,ns:s,showFilterPanel:p,hideFilterPanel:g,popperPaneRef:w,tooltip:a}}}),ooe={key:0},loe=["disabled"],uoe=["label","onClick"];function coe(e,t,n,s,r,i){const a=Et("el-checkbox"),o=Et("el-checkbox-group"),l=Et("el-scrollbar"),u=Et("arrow-up"),c=Et("arrow-down"),f=Et("el-icon"),h=Et("el-tooltip"),p=vd("click-outside");return C(),he(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.ns.b(),persistent:""},{content:N(()=>[e.multiple?(C(),j("div",ooe,[R("div",{class:M(e.ns.e("content"))},[I(l,{"wrap-class":e.ns.e("wrap")},{default:N(()=>[I(o,{modelValue:e.filteredValue,"onUpdate:modelValue":t[0]||(t[0]=g=>e.filteredValue=g),class:M(e.ns.e("checkbox-group"))},{default:N(()=>[(C(!0),j(Ke,null,bt(e.filters,g=>(C(),he(a,{key:g.value,label:g.value},{default:N(()=>[Fe(ve(g.text),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue","class"])]),_:1},8,["wrap-class"])],2),R("div",{class:M(e.ns.e("bottom"))},[R("button",{class:M({[e.ns.is("disabled")]:e.filteredValue.length===0}),disabled:e.filteredValue.length===0,type:"button",onClick:t[1]||(t[1]=(...g)=>e.handleConfirm&&e.handleConfirm(...g))},ve(e.t("el.table.confirmFilter")),11,loe),R("button",{type:"button",onClick:t[2]||(t[2]=(...g)=>e.handleReset&&e.handleReset(...g))},ve(e.t("el.table.resetFilter")),1)],2)])):(C(),j("ul",{key:1,class:M(e.ns.e("list"))},[R("li",{class:M([e.ns.e("list-item"),{[e.ns.is("active")]:e.filterValue===void 0||e.filterValue===null}]),onClick:t[3]||(t[3]=g=>e.handleSelect(null))},ve(e.t("el.table.clearFilter")),3),(C(!0),j(Ke,null,bt(e.filters,g=>(C(),j("li",{key:g.value,class:M([e.ns.e("list-item"),e.ns.is("active",e.isActive(g))]),label:g.value,onClick:m=>e.handleSelect(g.value)},ve(g.text),11,uoe))),128))],2))]),default:N(()=>[pt((C(),j("span",{class:M([`${e.ns.namespace.value}-table__column-filter-trigger`,`${e.ns.namespace.value}-none-outline`]),onClick:t[4]||(t[4]=(...g)=>e.showFilterPanel&&e.showFilterPanel(...g))},[I(f,null,{default:N(()=>[e.column.filterOpened?(C(),he(u,{key:0})):(C(),he(c,{key:1}))]),_:1})],2)),[[p,e.hideFilterPanel,e.popperPaneRef]])]),_:1},8,["visible","placement","popper-class"])}var doe=ze(aoe,[["render",coe],["__file","filter-panel.vue"]]);function N$(e){const t=It();sl(()=>{n.value.addObserver(t)}),vt(()=>{s(n.value),r(n.value)}),ha(()=>{s(n.value),r(n.value)}),eo(()=>{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],p=h.getAttribute("name"),g=u[p];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 Di=Symbol("ElTable");function foe(e,t){const n=It(),s=Qe(Di),r=m=>{m.stopPropagation()},i=(m,y)=>{!y.filters&&y.sortable?g(m,y,!1):y.filterable&&!y.sortable&&r(m),s==null||s.emit("header-click",y,m)},a=(m,y)=>{s==null||s.emit("header-contextmenu",y,m)},o=G(null),l=G(!1),u=G({}),c=(m,y)=>{if(Kt&&!(y.children&&y.children.length>0)&&o.value&&e.border){l.value=!0;const v=s;t("set-drag-visible",!0);const w=(v==null?void 0:v.vnode.el).getBoundingClientRect().left,T=n.vnode.el.querySelector(`th.${y.id}`),S=T.getBoundingClientRect(),E=S.left-w+30;pi(T,"noclick"),u.value={startMouseLeft:m.clientX,startLeft:S.right-w,startColumnLeft:S.left-w,tableLeft:w};const $=v==null?void 0:v.refs.resizeProxy;$.style.left=`${u.value.startLeft}px`,document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const P=H=>{const z=H.clientX-u.value.startMouseLeft,W=u.value.startLeft+z;$.style.left=`${Math.max(E,W)}px`},U=()=>{if(l.value){const{startColumnLeft:H,startLeft:z}=u.value,D=Number.parseInt($.style.left,10)-H;y.width=y.realWidth=D,v==null||v.emit("header-dragend",y.width,z-H,y,m),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",P),document.removeEventListener("mouseup",U),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{Xs(T,"noclick")},0)};document.addEventListener("mousemove",P),document.addEventListener("mouseup",U)}},f=(m,y)=>{if(y.children&&y.children.length>0)return;const v=m.target;if(!Or(v))return;const _=v==null?void 0:v.closest("th");if(!(!y||!y.resizable)&&!l.value&&e.border){const w=_.getBoundingClientRect(),T=document.body.style;w.width>12&&w.right-m.pageX<8?(T.cursor="col-resize",Yr(_,"is-sortable")&&(_.style.cursor="col-resize"),o.value=y):l.value||(T.cursor="",Yr(_,"is-sortable")&&(_.style.cursor="pointer"),o.value=null)}},h=()=>{Kt&&(document.body.style.cursor="")},p=({order:m,sortOrders:y})=>{if(m==="")return y[0];const v=y.indexOf(m||null);return y[v>y.length-2?0:v+1]},g=(m,y,v)=>{var _;m.stopPropagation();const w=y.order===v?null:v||p(y),T=(_=m.target)==null?void 0:_.closest("th");if(T&&Yr(T,"noclick")){Xs(T,"noclick");return}if(!y.sortable)return;const S=e.store.states;let E=S.sortProp.value,$;const P=S.sortingColumn.value;(P!==y||P===y&&P.order===null)&&(P&&(P.order=null),S.sortingColumn.value=y,E=y.property),w?$=y.order=w:$=y.order=null,S.sortProp.value=E,S.sortOrder.value=$,s==null||s.store.commit("changeSortCondition")};return{handleHeaderClick:i,handleHeaderContextMenu:a,handleMouseDown:c,handleMouseMove:f,handleMouseOut:h,handleSortClick:g,handleFilterClick:r}}function hoe(e){const t=Qe(Di),n=Le("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 p=k1(l,c.fixed,e.store,u);return wu(p,"left"),wu(p,"right"),Object.assign({},h,p)},getHeaderCellClass:(o,l,u,c)=>{const f=x1(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 p=t==null?void 0:t.props.headerCellClassName;return typeof p=="string"?h.push(p):typeof p=="function"&&h.push(p.call(null,{rowIndex:o,columnIndex:l,row:u,column:c})),h.push(n.e("cell")),h.filter(g=>!!g).join(" ")}}}const M$=e=>{const t=[];return e.forEach(n=>{n.children?(t.push(n),t.push.apply(t,M$(n.children))):t.push(n)}),t},poe=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 M$(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 moe(e){const t=Qe(Di),n=k(()=>poe(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 goe=Z({name:"ElTableHeader",components:{ElCheckbox:$r},props:{fixed:{type:String,default:""},store:{required:!0,type:Object},border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e,{emit:t}){const n=It(),s=Qe(Di),r=Le("table"),i=G({}),{onColumnsChange:a,onScrollableChange:o}=N$(s);vt(async()=>{await at(),await at();const{prop:E,order:$}=e.defaultSort;s==null||s.store.commit("sort",{prop:E,order:$,init:!0})});const{handleHeaderClick:l,handleHeaderContextMenu:u,handleMouseDown:c,handleMouseMove:f,handleMouseOut:h,handleSortClick:p,handleFilterClick:g}=foe(e,t),{getHeaderRowStyle:m,getHeaderRowClass:y,getHeaderCellStyle:v,getHeaderCellClass:_}=hoe(e),{isGroup:w,toggleAllSelection:T,columnRows:S}=moe(e);return n.state={onColumnsChange:a,onScrollableChange:o},n.filterPanels=i,{ns:r,filterPanels:i,onColumnsChange:a,onScrollableChange:o,columnRows:S,getHeaderRowClass:y,getHeaderRowStyle:m,getHeaderCellClass:_,getHeaderCellStyle:v,handleHeaderClick:l,handleHeaderContextMenu:u,handleMouseDown:c,handleMouseMove:f,handleMouseOut:h,handleSortClick:p,handleFilterClick:g,isGroup:w,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:p,$parent:g}=this;let m=1;return lt("thead",{class:{[e.is("group")]:t}},n.map((y,v)=>lt("tr",{class:i(v),key:v,style:a(v)},y.map((_,w)=>(_.rowSpan>m&&(m=_.rowSpan),lt("th",{class:r(v,w,y,_),colspan:_.colSpan,key:`${_.id}-thead`,rowspan:_.rowSpan,style:s(v,w,y,_),onClick:T=>o(T,_),onContextmenu:T=>l(T,_),onMousedown:T=>u(T,_),onMousemove:T=>c(T,_),onMouseout:h},[lt("div",{class:["cell",_.filteredValue&&_.filteredValue.length>0?"highlight":""]},[_.renderHeader?_.renderHeader({column:_,$index:w,store:p,_self:g}):_.label,_.sortable&<("span",{onClick:T=>f(T,_),class:"caret-wrapper"},[lt("i",{onClick:T=>f(T,_,"ascending"),class:"sort-caret ascending"}),lt("i",{onClick:T=>f(T,_,"descending"),class:"sort-caret descending"})]),_.filterable&<(doe,{store:p,placement:_.filterPlacement||"bottom-start",column:_,upDataColumn:(T,S)=>{_[T]=S}})])]))))))}});function voe(e){const t=Qe(Di),n=G(""),s=G(lt("div")),{nextZIndex:r}=Wu(),i=(g,m,y)=>{var v;const _=t,w=Fv(g);let T;const S=(v=_==null?void 0:_.vnode.el)==null?void 0:v.dataset.prefix;w&&(T=YE({columns:e.store.states.columns.value},w,S),T&&(_==null||_.emit(`cell-${y}`,m,T,w,g))),_==null||_.emit(`row-${y}`,m,T,g)},a=(g,m)=>{i(g,m,"dblclick")},o=(g,m)=>{e.store.commit("setCurrentRow",m),i(g,m,"click")},l=(g,m)=>{i(g,m,"contextmenu")},u=Fs(g=>{e.store.commit("setHoverRow",g)},30),c=Fs(()=>{e.store.commit("setHoverRow",null)},30),f=g=>{const m=window.getComputedStyle(g,null),y=Number.parseInt(m.paddingLeft,10)||0,v=Number.parseInt(m.paddingRight,10)||0,_=Number.parseInt(m.paddingTop,10)||0,w=Number.parseInt(m.paddingBottom,10)||0;return{left:y,right:v,top:_,bottom:w}};return{handleDoubleClick:a,handleClick:o,handleContextMenu:l,handleMouseEnter:u,handleMouseLeave:c,handleCellMouseEnter:(g,m,y)=>{var v;const _=t,w=Fv(g),T=(v=_==null?void 0:_.vnode.el)==null?void 0:v.dataset.prefix;if(w){const B=YE({columns:e.store.states.columns.value},w,T),K=_.hoverState={cell:w,column:B,row:m};_==null||_.emit("cell-mouse-enter",K.row,K.column,K.cell,g)}if(!y)return;const S=g.target.querySelector(".cell");if(!(Yr(S,`${T}-tooltip`)&&S.childNodes.length))return;const E=document.createRange();E.setStart(S,0),E.setEnd(S,S.childNodes.length);let $=E.getBoundingClientRect().width,P=E.getBoundingClientRect().height;$-Math.floor($)<.001&&($=Math.floor($)),P-Math.floor(P)<.001&&(P=Math.floor(P));const{top:z,left:W,right:D,bottom:V}=f(S),X=W+D,Y=z+V;($+X>S.offsetWidth||P+Y>S.offsetHeight||S.scrollWidth>S.offsetWidth)&&Yae(t==null?void 0:t.refs.tableWrapper,w,w.innerText||w.textContent,r,y)},handleCellMouseLeave:g=>{if(!Fv(g))return;const y=t==null?void 0:t.hoverState;t==null||t.emit("cell-mouse-leave",y==null?void 0:y.row,y==null?void 0:y.column,y==null?void 0:y.cell,g)},tooltipContent:n,tooltipTrigger:s}}function yoe(e){const t=Qe(Di),n=Le("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 p=t==null?void 0:t.props.cellStyle;let g=p??{};typeof p=="function"&&(g=p.call(null,{rowIndex:u,columnIndex:c,row:f,column:h}));const m=k1(c,e==null?void 0:e.fixed,e.store);return wu(m,"left"),wu(m,"right"),Object.assign({},g,m)},getCellClass:(u,c,f,h,p)=>{const g=x1(n.b(),c,e==null?void 0:e.fixed,e.store,void 0,p),m=[h.id,h.align,h.className,...g],y=t==null?void 0:t.props.cellClassName;return typeof y=="string"?m.push(y):typeof y=="function"&&m.push(y.call(null,{rowIndex:u,columnIndex:c,row:f,column:h})),m.push(n.e("cell")),m.filter(v=>!!v).join(" ")},getSpan:(u,c,f,h)=>{let p=1,g=1;const m=t==null?void 0:t.props.spanMethod;if(typeof m=="function"){const y=m({row:u,column:c,rowIndex:f,columnIndex:h});Array.isArray(y)?(p=y[0],g=y[1]):typeof y=="object"&&(p=y.rowspan,g=y.colspan)}return{rowspan:p,colspan:g}},getColspanRealWidth:(u,c,f)=>{if(c<1)return u[f].realWidth;const h=u.map(({realWidth:p,width:g})=>p||g).slice(f,f+c);return Number(h.reduce((p,g)=>Number(p)+Number(g),-1))}}}function boe(e){const t=Qe(Di),n=Le("table"),{handleDoubleClick:s,handleClick:r,handleContextMenu:i,handleMouseEnter:a,handleMouseLeave:o,handleCellMouseEnter:l,handleCellMouseLeave:u,tooltipContent:c,tooltipTrigger:f}=voe(e),{getRowStyle:h,getRowClass:p,getCellStyle:g,getCellClass:m,getSpan:y,getColspanRealWidth:v}=yoe(e),_=k(()=>e.store.states.columns.value.findIndex(({type:$})=>$==="default")),w=($,P)=>{const U=t.props.rowKey;return U?fs($,U):P},T=($,P,U,H=!1)=>{const{tooltipEffect:z,tooltipOptions:W,store:D}=e,{indent:V,columns:X}=D.states,Y=p($,P);let B=!0;return U&&(Y.push(n.em("row",`level-${U.level}`)),B=U.display),lt("tr",{style:[B?null:{display:"none"},h($,P)],class:Y,key:w($,P),onDblclick:L=>s(L,$),onClick:L=>r(L,$),onContextmenu:L=>i(L,$),onMouseenter:()=>a(P),onMouseleave:o},X.value.map((L,Q)=>{const{rowspan:ee,colspan:te}=y($,L,P,Q);if(!ee||!te)return null;const ie=Object.assign({},L);ie.realWidth=v(X.value,te,Q);const _e={store:e.store,_self:e.context||t,column:ie,row:$,$index:P,cellIndex:Q,expanded:H};Q===_.value&&U&&(_e.treeNode={indent:U.level*V.value,level:U.level},typeof U.expanded=="boolean"&&(_e.treeNode.expanded=U.expanded,"loading"in U&&(_e.treeNode.loading=U.loading),"noLazyChildren"in U&&(_e.treeNode.noLazyChildren=U.noLazyChildren)));const ue=`${P},${Q}`,oe=ie.columnKey||ie.rawColumnKey||"",de=S(Q,L,_e),ae=L.showOverflowTooltip&&lO({effect:z},W,L.showOverflowTooltip);return lt("td",{style:g(P,Q,$,L),class:m(P,Q,$,L,te-1),key:`${oe}${ue}`,rowspan:ee,colspan:te,onMouseenter:Ie=>l(Ie,$,ae),onMouseleave:u},[de])}))},S=($,P,U)=>P.renderCell(U);return{wrappedRowRender:($,P)=>{const U=e.store,{isRowExpanded:H,assertRowKey:z}=U,{treeData:W,lazyTreeNodeMap:D,childrenColumnName:V,rowKey:X}=U.states,Y=U.states.columns.value;if(Y.some(({type:K})=>K==="expand")){const K=H($),L=T($,P,void 0,K),Q=t.renderExpanded;return K?Q?[[L,lt("tr",{key:`expanded-row__${L.key}`},[lt("td",{colspan:Y.length,class:`${n.e("cell")} ${n.e("expanded-cell")}`},[Q({row:$,$index:P,store:U,expanded:K})])])]]:(console.error("[Element Error]renderExpanded is required."),L):[[L]]}else if(Object.keys(W.value).length){z();const K=fs($,X.value);let L=W.value[K],Q=null;L&&(Q={expanded:L.expanded,level:L.level,display:!0},typeof L.lazy=="boolean"&&(typeof L.loaded=="boolean"&&L.loaded&&(Q.noLazyChildren=!(L.children&&L.children.length)),Q.loading=L.loading));const ee=[T($,P,Q)];if(L){let te=0;const ie=(ue,oe)=>{ue&&ue.length&&oe&&ue.forEach(de=>{const ae={display:oe.display&&oe.expanded,level:oe.level+1,expanded:!1,noLazyChildren:!1,loading:!1},Ie=fs(de,X.value);if(Ie==null)throw new Error("For nested data item, row-key is required.");if(L={...W.value[Ie]},L&&(ae.expanded=L.expanded,L.level=L.level||ae.level,L.display=!!(L.expanded&&ae.display),typeof L.lazy=="boolean"&&(typeof L.loaded=="boolean"&&L.loaded&&(ae.noLazyChildren=!(L.children&&L.children.length)),ae.loading=L.loading)),te++,ee.push(T(de,P+te,ae)),L){const ke=D.value[Ie]||de[V.value];ie(ke,L)}})};L.display=!0;const _e=D.value[K]||$[V.value];ie(_e,L)}return ee}else return T($,P,void 0)},tooltipContent:c,tooltipTrigger:f}}const _oe={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 Toe=Z({name:"ElTableBody",props:_oe,setup(e){const t=It(),n=Qe(Di),s=Le("table"),{wrappedRowRender:r,tooltipContent:i,tooltipTrigger:a}=boe(e),{onColumnsChange:o,onScrollableChange:l}=N$(n);return Oe(e.store.states.hoverRow,(u,c)=>{!e.store.states.isComplex.value||!Kt||mu(()=>{const f=t==null?void 0:t.vnode.el,h=Array.from((f==null?void 0:f.children)||[]).filter(m=>m==null?void 0:m.classList.contains(`${s.e("row")}`)),p=h[c],g=h[u];p&&Xs(p,"hover-row"),g&&pi(g,"hover-row")})}),eo(()=>{var u;(u=Ur)==null||u()}),{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 lt("tbody",{tabIndex:-1},[n.reduce((s,r)=>s.concat(e(r,s.length)),[])])}});function woe(){const e=Qe(Di),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 Soe(e){const{columns:t}=woe(),n=Le("table");return{getCellClasses:(i,a)=>{const o=i[a],l=[n.e("cell"),o.id,o.align,o.labelClassName,...x1(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=k1(a,i.fixed,e.store);return wu(o,"left"),wu(o,"right"),o},columns:t}}var Coe=Z({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}=Soe(e);return{ns:Le("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(p=>Number(p[o.property])),c=[];let f=!0;u.forEach(p=>{if(!Number.isNaN(+p)){f=!1;const g=`${p}`.split(".")[1];c.push(g?g.length:0)}});const h=Math.max.apply(null,c);f?a[l]="":a[l]=u.reduce((p,g)=>{const m=Number(g);return Number.isNaN(+m)?p:Number.parseFloat((p+g).toFixed(Math.min(h,20)))},0)}),lt(lt("tfoot",[lt("tr",{},[...e.map((o,l)=>lt("td",{key:l,colspan:o.colSpan,rowspan:o.rowSpan,class:n(e,l),style:t(o,l)},[lt("div",{class:["cell",o.labelClassName]},[a[l]])]))])]))}});function Eoe(e){return{setCurrentRow:c=>{e.commit("setCurrentRow",c)},getSelectionRows:()=>e.getSelectionRows(),toggleRowSelection:(c,f)=>{e.toggleRowSelection(c,f,!1),e.updateAllSelected()},clearSelection:()=>{e.clearSelection()},clearFilter:c=>{e.clearFilter(c)},toggleAllSelection:()=>{e.commit("toggleAllSelection")},toggleRowExpansion:(c,f)=>{e.toggleRowExpansionAdapter(c,f)},clearSort:()=>{e.clearSort()},sort:(c,f)=>{e.commit("sort",{prop:c,order:f})}}}function xoe(e,t,n,s){const r=G(!1),i=G(null),a=G(!1),o=L=>{a.value=L},l=G({width:null,height:null,headerHeight:null}),u=G(!1),c={display:"inline-block",verticalAlign:"middle"},f=G(),h=G(0),p=G(0),g=G(0),m=G(0),y=G(0);Gs(()=>{t.setHeight(e.height)}),Gs(()=>{t.setMaxHeight(e.maxHeight)}),Oe(()=>[e.currentRowKey,n.states.rowKey],([L,Q])=>{!d(Q)||!d(L)||n.setCurrentRowKey(`${L}`)},{immediate:!0}),Oe(()=>e.data,L=>{s.store.commit("setData",L)},{immediate:!0,deep:!0}),Gs(()=>{e.expandRowKeys&&n.setExpandRowKeysAdapter(e.expandRowKeys)});const v=()=>{s.store.commit("setHoverRow",null),s.hoverState&&(s.hoverState=null)},_=(L,Q)=>{const{pixelX:ee,pixelY:te}=Q;Math.abs(ee)>=Math.abs(te)&&(s.refs.bodyWrapper.scrollLeft+=Q.pixelX/5)},w=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=()=>{w.value&&t.updateElsHeight(),t.updateColumnsWidth(),requestAnimationFrame(U)};vt(async()=>{await at(),n.updateColumns(),H(),requestAnimationFrame(S);const L=s.vnode.el,Q=s.refs.headerWrapper;e.flexible&&L&&L.parentElement&&(L.parentElement.style.minWidth="0"),l.value={width:f.value=L.offsetWidth,height:L.offsetHeight,headerHeight:e.showHeader&&Q?Q.offsetHeight:null},n.states.columns.value.forEach(ee=>{ee.filteredValue&&ee.filteredValue.length&&s.store.commit("filterChange",{column:ee,values:ee.filteredValue,silent:!0})}),s.$ready=!0});const E=(L,Q)=>{if(!L)return;const ee=Array.from(L.classList).filter(te=>!te.startsWith("is-scrolling-"));ee.push(t.scrollX.value?Q:"is-scrolling-none"),L.className=ee.join(" ")},$=L=>{const{tableWrapper:Q}=s.refs;E(Q,L)},P=L=>{const{tableWrapper:Q}=s.refs;return!!(Q&&Q.classList.contains(L))},U=function(){if(!s.refs.scrollBarRef)return;if(!t.scrollX.value){const oe="is-scrolling-none";P(oe)||$(oe);return}const L=s.refs.scrollBarRef.wrapRef;if(!L)return;const{scrollLeft:Q,offsetWidth:ee,scrollWidth:te}=L,{headerWrapper:ie,footerWrapper:_e}=s.refs;ie&&(ie.scrollLeft=Q),_e&&(_e.scrollLeft=Q);const ue=te-ee-1;Q>=ue?$("is-scrolling-right"):$(Q===0?"is-scrolling-left":"is-scrolling-middle")},H=()=>{s.refs.scrollBarRef&&(s.refs.scrollBarRef.wrapRef&&dn(s.refs.scrollBarRef.wrapRef,"scroll",U,{passive:!0}),e.fit?_s(s.vnode.el,z):dn(window,"resize",z),_s(s.refs.bodyWrapper,()=>{var L,Q;z(),(Q=(L=s.refs)==null?void 0:L.scrollBarRef)==null||Q.update()}))},z=()=>{var L,Q,ee,te;const ie=s.vnode.el;if(!s.$ready||!ie)return;let _e=!1;const{width:ue,height:oe,headerHeight:de}=l.value,ae=f.value=ie.offsetWidth;ue!==ae&&(_e=!0);const Ie=ie.offsetHeight;(e.height||w.value)&&oe!==Ie&&(_e=!0);const ke=e.tableLayout==="fixed"?s.refs.headerWrapper:(L=s.refs.tableHeaderRef)==null?void 0:L.$el;e.showHeader&&(ke==null?void 0:ke.offsetHeight)!==de&&(_e=!0),h.value=((Q=s.refs.tableWrapper)==null?void 0:Q.scrollHeight)||0,g.value=(ke==null?void 0:ke.scrollHeight)||0,m.value=((ee=s.refs.footerWrapper)==null?void 0:ee.offsetHeight)||0,y.value=((te=s.refs.appendWrapper)==null?void 0:te.offsetHeight)||0,p.value=h.value-g.value-m.value-y.value,_e&&(l.value={width:ae,height:Ie,headerHeight:e.showHeader&&(ke==null?void 0:ke.offsetHeight)||0},S())},W=Xn(),D=k(()=>{const{bodyWidth:L,scrollY:Q,gutterWidth:ee}=t;return L.value?`${L.value-(Q.value?ee:0)}px`:""}),V=k(()=>e.maxHeight?"fixed":e.tableLayout),X=k(()=>{if(e.data&&e.data.length)return null;let L="100%";e.height&&p.value&&(L=`${p.value}px`);const Q=f.value;return{width:Q?`${Q}px`:"",height:L}}),Y=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`}:{}),B=k(()=>e.height?{height:"100%"}:e.maxHeight?Number.isNaN(Number(e.maxHeight))?{maxHeight:`calc(${e.maxHeight} - ${g.value+m.value}px)`}:{maxHeight:`${e.maxHeight-g.value-m.value}px`}:{});return{isHidden:r,renderExpanded:i,setDragVisible:o,isGroup:u,handleMouseLeave:v,handleHeaderFooterMousewheel:_,tableSize:W,emptyBlockStyle:X,handleFixedMousewheel:(L,Q)=>{const ee=s.refs.bodyWrapper;if(Math.abs(Q.spinY)>0){const te=ee.scrollTop;Q.pixelY<0&&te!==0&&L.preventDefault(),Q.pixelY>0&&ee.scrollHeight-ee.clientHeight>te&&L.preventDefault(),ee.scrollTop+=Math.ceil(Q.pixelY/5)}else ee.scrollLeft+=Math.ceil(Q.pixelX/5)},resizeProxyVisible:a,bodyWidth:D,resizeState:l,doLayout:S,tableBodyStyles:T,tableLayout:V,scrollbarViewStyle:c,tableInnerStyle:Y,scrollbarStyle:B}}function koe(e){const t=G(),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)};vt(()=>{n()}),eo(()=>{var s;(s=t.value)==null||s.disconnect()})}var Ioe={data:{type:Array,default:()=>[]},size:os,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"})},lazy:Boolean,load:Function,style:{type:Object,default:()=>({})},className:{type:String,default:""},tableLayout:{type:String,default:"fixed"},scrollbarAlwaysOn:{type:Boolean,default:!1},flexible:Boolean,showOverflowTooltip:[Boolean,Object]};function R$(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 lt("colgroup",{},n.map(r=>lt("col",s(r))))}R$.props=["columns","tableLayout"];const Ooe=()=>{const e=G(),t=(i,a)=>{const o=e.value;o&&o.scrollTo(i,a)},n=(i,a)=>{const o=e.value;o&&ht(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 Aoe=1;const Poe=Z({name:"ElTable",directives:{Mousewheel:DG},components:{TableHeader:goe,TableBody:Toe,TableFooter:Coe,ElScrollbar:va,hColgroup:R$},props:Ioe,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}=Wt(),n=Le("table"),s=It();Lt(Di,s);const r=noe(s,e);s.store=r;const i=new roe({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:p,clearSort:g,sort:m}=Eoe(r),{isHidden:y,renderExpanded:v,setDragVisible:_,isGroup:w,handleMouseLeave:T,handleHeaderFooterMousewheel:S,tableSize:E,emptyBlockStyle:$,handleFixedMousewheel:P,resizeProxyVisible:U,bodyWidth:H,resizeState:z,doLayout:W,tableBodyStyles:D,tableLayout:V,scrollbarViewStyle:X,tableInnerStyle:Y,scrollbarStyle:B}=xoe(e,i,r,s),{scrollBarRef:K,scrollTo:L,setScrollLeft:Q,setScrollTop:ee}=Ooe(),te=Fs(W,50),ie=`${n.namespace.value}-table_${Aoe++}`;s.tableId=ie,s.state={isGroup:w,resizeState:z,doLayout:W,debouncedUpdateLayout:te};const _e=k(()=>e.sumText||t("el.table.sumText")),ue=k(()=>e.emptyText||t("el.table.emptyText"));return koe(s),{ns:n,layout:i,store:r,handleHeaderFooterMousewheel:S,handleMouseLeave:T,tableId:ie,tableSize:E,isHidden:y,isEmpty:a,renderExpanded:v,resizeProxyVisible:U,resizeState:z,isGroup:w,bodyWidth:H,tableBodyStyles:D,emptyBlockStyle:$,debouncedUpdateLayout:te,handleFixedMousewheel:P,setCurrentRow:o,getSelectionRows:l,toggleRowSelection:u,clearSelection:c,clearFilter:f,toggleAllSelection:h,toggleRowExpansion:p,clearSort:g,doLayout:W,sort:m,t,setDragVisible:_,context:s,computedSumText:_e,computedEmptyText:ue,tableLayout:V,scrollbarViewStyle:X,tableInnerStyle:Y,scrollbarStyle:B,scrollBarRef:K,scrollTo:L,setScrollLeft:Q,setScrollTop:ee}}}),$oe=["data-prefix"],Noe={ref:"hiddenColumns",class:"hidden-columns"};function Moe(e,t,n,s,r,i){const a=Et("hColgroup"),o=Et("table-header"),l=Et("table-body"),u=Et("table-footer"),c=Et("el-scrollbar"),f=vd("mousewheel");return C(),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:rt(e.style),"data-prefix":e.ns.namespace.value,onMouseleave:t[0]||(t[0]=(...h)=>e.handleMouseLeave&&e.handleMouseLeave(...h))},[R("div",{class:M(e.ns.e("inner-wrapper")),style:rt(e.tableInnerStyle)},[R("div",Noe,[we(e.$slots,"default")],512),e.showHeader&&e.tableLayout==="fixed"?pt((C(),j("div",{key:0,ref:"headerWrapper",class:M(e.ns.e("header-wrapper"))},[R("table",{ref:"tableHeader",class:M(e.ns.e("header")),style:rt(e.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[I(a,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),I(o,{ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","onSetDragVisible"])],6)],2)),[[f,e.handleHeaderFooterMousewheel]]):le("v-if",!0),R("div",{ref:"bodyWrapper",class:M(e.ns.e("body-wrapper"))},[I(c,{ref:"scrollBarRef","view-style":e.scrollbarViewStyle,"wrap-style":e.scrollbarStyle,always:e.scrollbarAlwaysOn},{default:N(()=>[R("table",{ref:"tableBody",class:M(e.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:rt({width:e.bodyWidth,tableLayout:e.tableLayout})},[I(a,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),e.showHeader&&e.tableLayout==="auto"?(C(),he(o,{key:0,ref:"tableHeaderRef",class:M(e.ns.e("body-header")),border:e.border,"default-sort":e.defaultSort,store:e.store,onSetDragVisible:e.setDragVisible},null,8,["class","border","default-sort","store","onSetDragVisible"])):le("v-if",!0),I(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"?(C(),he(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"])):le("v-if",!0)],6),e.isEmpty?(C(),j("div",{key:0,ref:"emptyBlock",style:rt(e.emptyBlockStyle),class:M(e.ns.e("empty-block"))},[R("span",{class:M(e.ns.e("empty-text"))},[we(e.$slots,"empty",{},()=>[Fe(ve(e.computedEmptyText),1)])],2)],6)):le("v-if",!0),e.$slots.append?(C(),j("div",{key:1,ref:"appendWrapper",class:M(e.ns.e("append-wrapper"))},[we(e.$slots,"append")],2)):le("v-if",!0)]),_:3},8,["view-style","wrap-style","always"])],2),e.showSummary&&e.tableLayout==="fixed"?pt((C(),j("div",{key:1,ref:"footerWrapper",class:M(e.ns.e("footer-wrapper"))},[R("table",{class:M(e.ns.e("footer")),cellspacing:"0",cellpadding:"0",border:"0",style:rt(e.tableBodyStyles)},[I(a,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),I(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)),[[Vt,!e.isEmpty],[f,e.handleHeaderFooterMousewheel]]):le("v-if",!0),e.border||e.isGroup?(C(),j("div",{key:2,class:M(e.ns.e("border-left-patch"))},null,2)):le("v-if",!0)],6),pt(R("div",{ref:"resizeProxy",class:M(e.ns.e("column-resize-proxy"))},null,2),[[Vt,e.resizeProxyVisible]])],46,$oe)}var Roe=ze(Poe,[["render",Moe],["__file","table.vue"]]);const Loe={selection:"table-column--selection",expand:"table__expand-column"},Doe={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:""}},Foe=e=>Loe[e]||"",Boe={selection:{renderHeader({store:e,column:t}){function n(){return e.states.data.value&&e.states.data.value.length===0}return lt($r,{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 lt($r,{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)),lt("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")),lt("div",{class:r,onClick:function(a){a.stopPropagation(),t.toggleRowExpansion(e)}},{default:()=>[lt(tt,null,{default:()=>[lt(Ns)]})]})},sortable:!1,resizable:!1}};function Voe({row:e,column:t,$index:n}){var s;const r=t.property,i=r&&Jh(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 Uoe({row:e,treeNode:t,store:n},s=!1){const{ns:r}=n;if(!t)return s?[lt("span",{class:r.e("placeholder")})]:null;const i=[],a=function(o){o.stopPropagation(),!t.loading&&n.loadOrToggle(e)};if(t.indent&&i.push(lt("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=Ns;t.loading&&(l=no),i.push(lt("div",{class:o,onClick:a},{default:()=>[lt(tt,{class:{[r.is("loading")]:t.loading}},{default:()=>[lt(l)]})]}))}else i.push(lt("span",{class:r.e("placeholder")}));return i}function JE(e,t){return e.reduce((n,s)=>(n[s]=s,n),t)}function Hoe(e,t){const n=It();return{registerComplexWatchers:()=>{const i=["fixed"],a={realWidth:"width",realMinWidth:"minWidth"},o=JE(i,a);Object.keys(o).forEach(l=>{const u=a[l];zt(t,u)&&Oe(()=>t[u],c=>{let f=c;u==="width"&&l==="realWidth"&&(f=E1(c)),u==="minWidth"&&l==="realMinWidth"&&(f=I$(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","showOverflowTooltip"],a={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},o=JE(i,a);Object.keys(o).forEach(l=>{const u=a[l];zt(t,u)&&Oe(()=>t[u],c=>{n.columnConfig.value[l]=c})})}}}function zoe(e,t,n){const s=It(),r=G(""),i=G(!1),a=G(),o=G(),l=Le("table");Gs(()=>{a.value=e.align?`is-${e.align}`:null,a.value}),Gs(()=>{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,E=S.value;return E&&Object.keys(E).length>0}),f=G(E1(e.width)),h=G(I$(e.minWidth)),p=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,E=Boe[S]||{};Object.keys(E).forEach(P=>{const U=E[P];P!=="className"&&U!==void 0&&(T[P]=U)});const $=Foe(S);if($){const P=`${d(l.namespace)}-${$}`;T.className=T.className?`${T.className} ${P}`:P}return T},m=T=>{Array.isArray(T)?T.forEach(E=>S(E)):S(T);function S(E){var $;(($=E==null?void 0:E.type)==null?void 0:$.name)==="ElTableColumn"&&(E.vParent=s)}};return{columnId:r,realAlign:a,isSubColumn:i,realHeaderAlign:o,columnOrTableParent:u,setColumnWidth:p,setColumnForcedProps:g,setColumnRenders:T=>{e.renderHeader||T.type!=="selection"&&(T.renderHeader=E=>(s.columnConfig.value.label,we(t,"header",E,()=>[T.label])));let S=T.renderCell;return T.type==="expand"?(T.renderCell=E=>lt("div",{class:"cell"},[S(E)]),n.value.renderExpanded=E=>t.default?t.default(E):t.default):(S=S||Voe,T.renderCell=E=>{let $=null;if(t.default){const D=t.default(E);$=D.some(V=>V.type!==$s)?D:S(E)}else $=S(E);const{columns:P}=n.value.store.states,U=P.value.findIndex(D=>D.type==="default"),H=c.value&&E.cellIndex===U,z=Uoe(E,H),W={class:"cell",style:{}};return T.showOverflowTooltip&&(W.class=`${W.class} ${d(l.namespace)}-tooltip`,W.style={width:`${(E.column.realWidth||Number(E.column.width))-1}px`}),m($),lt("div",W,[z,$])}),T},getPropsData:(...T)=>T.reduce((S,E)=>(Array.isArray(E)&&E.forEach($=>{S[$]=e[$]}),S),{}),getColumnElIndex:(T,S)=>Array.prototype.indexOf.call(T,S),updateColumnOrder:()=>{n.value.store.commit("updateColumnOrder",s.columnConfig.value)}}}var joe={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},index:[Number,Function],sortOrders:{type:Array,default:()=>["ascending","descending",null],validator:e=>e.every(t=>["ascending","descending",null].includes(t))}};let Koe=1;var L$=Z({name:"ElTableColumn",components:{ElCheckbox:$r},props:joe,setup(e,{slots:t}){const n=It(),s=G({}),r=k(()=>{let w=n.parent;for(;w&&!w.tableId;)w=w.parent;return w}),{registerNormalWatchers:i,registerComplexWatchers:a}=Hoe(r,e),{columnId:o,isSubColumn:l,realHeaderAlign:u,columnOrTableParent:c,setColumnWidth:f,setColumnForcedProps:h,setColumnRenders:p,getPropsData:g,getColumnElIndex:m,realAlign:y,updateColumnOrder:v}=zoe(e,t,r),_=c.value;o.value=`${_.tableId||_.columnId}_column_${Koe++}`,sl(()=>{l.value=r.value!==_;const w=e.type||"default",T=e.sortable===""?!0:e.sortable,S=qn(e.showOverflowTooltip)?_.props.showOverflowTooltip:e.showOverflowTooltip,E={...Doe[w],id:o.value,type:w,property:e.prop||e.property,align:y,headerAlign:u,showOverflowTooltip:S,filterable:e.filters||e.filterMethod,filteredValue:[],filterPlacement:"",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"]);z=Kae(E,z),z=qae(p,f,h)(z),s.value=z,i(),a()}),vt(()=>{var w;const T=c.value,S=l.value?T.vnode.el.children:(w=T.refs.hiddenColumns)==null?void 0:w.children,E=()=>m(S||[],n.vnode.el);s.value.getColumnIndex=E,E()>-1&&r.value.store.commit("insertColumn",s.value,l.value?T.columnConfig.value:null,v)}),on(()=>{r.value.store.commit("removeColumn",s.value,l.value?_.columnConfig.value:null,v)}),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&&!Tt(o==null?void 0:o.children)&&r.push(o)});return lt("div",r)}catch{return lt("div",[])}}});const Sf=At(Roe,{TableColumn:L$}),Cf=In(L$);var Vd=(e=>(e.ASC="asc",e.DESC="desc",e))(Vd||{}),Ud=(e=>(e.CENTER="center",e.RIGHT="right",e))(Ud||{}),D$=(e=>(e.LEFT="left",e.RIGHT="right",e))(D$||{});const By={asc:"desc",desc:"asc"},Hd=Symbol("placeholder"),Woe=(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 qoe(e,t,n){const s=k(()=>d(t).filter(m=>!m.hidden)),r=k(()=>d(s).filter(m=>m.fixed==="left"||m.fixed===!0)),i=k(()=>d(s).filter(m=>m.fixed==="right")),a=k(()=>d(s).filter(m=>!m.fixed)),o=k(()=>{const m=[];return d(r).forEach(y=>{m.push({...y,placeholderSign:Hd})}),d(a).forEach(y=>{m.push(y)}),d(i).forEach(y=>{m.push({...y,placeholderSign:Hd})}),m}),l=k(()=>d(r).length||d(i).length),u=k(()=>d(t).reduce((y,v)=>(y[v.key]=Woe(v,d(n),e.fixed),y),{})),c=k(()=>d(s).reduce((m,y)=>m+y.width,0)),f=m=>d(t).find(y=>y.key===m),h=m=>d(u)[m],p=(m,y)=>{m.width=y};function g(m){var y;const{key:v}=m.currentTarget.dataset;if(!v)return;const{sortState:_,sortBy:w}=e;let T=Vd.ASC;Mt(_)?T=By[_[v]]:T=By[w.order],(y=e.onColumnSort)==null||y.call(e,{column:f(v),key:v,order:T})}return{columns:t,columnsStyles:u,columnsTotalWidth:c,fixedColumnsOnLeft:r,fixedColumnsOnRight:i,hasFixedColumns:l,mainColumns:o,normalColumns:a,visibleColumns:s,getColumn:f,getColumnStyle:h,updateColumnWidth:p,onColumnSorted:g}}const Goe=(e,{mainTableRef:t,leftTableRef:n,rightTableRef:s,onMaybeEndReached:r})=>{const i=G({scrollLeft:0,scrollTop:0});function a(p){var g,m,y;const{scrollTop:v}=p;(g=t.value)==null||g.scrollTo(p),(m=n.value)==null||m.scrollToTop(v),(y=s.value)==null||y.scrollToTop(v)}function o(p){i.value=p,a(p)}function l(p){i.value.scrollTop=p,a(d(i))}function u(p){var g,m;i.value.scrollLeft=p,(m=(g=t.value)==null?void 0:g.scrollTo)==null||m.call(g,d(i))}function c(p){var g;o(p),(g=e.onScroll)==null||g.call(e,p)}function f({scrollTop:p}){const{scrollTop:g}=d(i);p!==g&&l(p)}function h(p,g="auto"){var m;(m=t.value)==null||m.scrollToRow(p,g)}return Oe(()=>d(i).scrollTop,(p,g)=>{p>g&&r()}),{scrollPos:i,scrollTo:o,scrollToLeft:u,scrollToTop:l,scrollToRow:h,onScroll:c,onVerticalScroll:f}},Yoe=(e,{mainTableRef:t,leftTableRef:n,rightTableRef:s})=>{const r=It(),{emit:i}=r,a=Jt(!1),o=Jt(null),l=G(e.defaultExpandedRowKeys||[]),u=G(-1),c=Jt(null),f=G({}),h=G({}),p=Jt({}),g=Jt({}),m=Jt({}),y=k(()=>ht(e.estimatedRowHeight));function v(P){var U;(U=e.onRowsRendered)==null||U.call(e,P),P.rowCacheEnd>d(u)&&(u.value=P.rowCacheEnd)}function _({hovered:P,rowKey:U}){o.value=P?U:null}function w({expanded:P,rowData:U,rowIndex:H,rowKey:z}){var W,D;const V=[...d(l)],X=V.indexOf(z);P?X===-1&&V.push(z):X>-1&&V.splice(X,1),l.value=V,i("update:expandedRowKeys",V),(W=e.onRowExpand)==null||W.call(e,{expanded:P,rowData:U,rowIndex:H,rowKey:z}),(D=e.onExpandedRowsChange)==null||D.call(e,V)}const T=Fs(()=>{var P,U,H,z;a.value=!0,f.value={...d(f),...d(h)},S(d(c),!1),h.value={},c.value=null,(P=t.value)==null||P.forceUpdate(),(U=n.value)==null||U.forceUpdate(),(H=s.value)==null||H.forceUpdate(),(z=r.proxy)==null||z.$forceUpdate(),a.value=!1},0);function S(P,U=!1){d(y)&&[t,n,s].forEach(H=>{const z=d(H);z&&z.resetAfterRowIndex(P,U)})}function E(P,U,H){const z=d(c);(z===null||z>H)&&(c.value=H),h.value[P]=U}function $({rowKey:P,height:U,rowIndex:H},z){z?z===D$.RIGHT?m.value[P]=U:p.value[P]=U:g.value[P]=U;const W=Math.max(...[p,m,g].map(D=>D.value[P]||0));d(f)[P]!==W&&(E(P,W,H),T())}return{hoveringRowKey:o,expandedRowKeys:l,lastRenderedRowIndex:u,isDynamic:y,isResetting:a,rowHeights:f,resetAfterIndex:S,onRowExpanded:w,onRowHovered:_,onRowsRendered:v,onRowHeightChange:$}},Xoe=(e,{expandedRowKeys:t,lastRenderedRowIndex:n,resetAfterIndex:s})=>{const r=G({}),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 p=l.slice();for(p.forEach(g=>o[g[u]]=0);p.length>0;){const g=p.shift();f.push(g),h.has(g[u])&&Array.isArray(g.children)&&g.children.length>0&&(p=[...g.children,...p],g.children.forEach(m=>o[m[u]]=o[g[u]]+1))}return r.value=o,f}),a=k(()=>{const{data:o,expandColumnKey:l}=e;return l?d(i):o});return Oe(a,(o,l)=>{o!==l&&(n.value=-1,s(0,!0))}),{data:a,depthMap:r}},Qoe=(e,t)=>e+t,hp=e=>st(e)?e.reduce(Qoe,0):e,Zo=(e,t,n={})=>yt(e)?e(t):e??n,La=e=>(["width","maxWidth","minWidth","height"].forEach(t=>{e[t]=Mn(e[t])}),e),F$=e=>pn(e)?t=>lt(e,t):e,Joe=(e,{columnsTotalWidth:t,data:n,fixedColumnsOnLeft:s,fixedColumnsOnRight:r})=>{const i=k(()=>{const{fixed:w,width:T,vScrollbarSize:S}=e,E=T-S;return w?Math.max(Math.round(d(t)),E):E}),a=k(()=>d(i)+(e.fixed?e.vScrollbarSize:0)),o=k(()=>{const{height:w=0,maxHeight:T=0,footerHeight:S,hScrollbarSize:E}=e;if(T>0){const $=d(g),P=d(l),H=d(p)+$+P+E;return Math.min(H,T-S)}return w-S}),l=k(()=>{const{rowHeight:w,estimatedRowHeight:T}=e,S=d(n);return ht(T)?S.length*T:S.length*w}),u=k(()=>{const{maxHeight:w}=e,T=d(o);if(ht(w)&&w>0)return T;const S=d(l)+d(p)+d(g);return Math.min(T,S)}),c=w=>w.width,f=k(()=>hp(d(s).map(c))),h=k(()=>hp(d(r).map(c))),p=k(()=>hp(e.headerHeight)),g=k(()=>{var w;return(((w=e.fixedData)==null?void 0:w.length)||0)*e.rowHeight}),m=k(()=>d(o)-d(p)-d(g)),y=k(()=>{const{style:w={},height:T,width:S}=e;return La({...w,height:T,width:S})}),v=k(()=>La({height:e.footerHeight})),_=k(()=>({top:Mn(d(p)),bottom:Mn(e.footerHeight),width:Mn(e.width)}));return{bodyWidth:i,fixedTableHeight:u,mainTableHeight:o,leftTableWidth:f,rightTableWidth:h,headerWidth:a,rowsHeight:l,windowHeight:m,footerHeight:v,emptyStyle:_,rootStyle:y,headerHeight:p}},Zoe=e=>{const t=G(),n=G(0),s=G(0);let r;return vt(()=>{r=_s(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,p=Number.parseInt(u)||0,g=Number.parseInt(c)||0,m=Number.parseInt(f)||0;n.value=a-h-p,s.value=o-g-m}).stop}),on(()=>{r==null||r()}),Oe([n,s],([i,a])=>{var o;(o=e.onResize)==null||o.call(e,{width:i,height:a})}),{sizer:t,width:n,height:s}};function ele(e){const t=G(),n=G(),s=G(),{columns:r,columnsStyles:i,columnsTotalWidth:a,fixedColumnsOnLeft:o,fixedColumnsOnRight:l,hasFixedColumns:u,mainColumns:c,onColumnSorted:f}=qoe(e,yn(e,"columns"),yn(e,"fixed")),{scrollTo:h,scrollToLeft:p,scrollToTop:g,scrollToRow:m,onScroll:y,onVerticalScroll:v,scrollPos:_}=Goe(e,{mainTableRef:t,leftTableRef:n,rightTableRef:s,onMaybeEndReached:J}),{expandedRowKeys:w,hoveringRowKey:T,lastRenderedRowIndex:S,isDynamic:E,isResetting:$,rowHeights:P,resetAfterIndex:U,onRowExpanded:H,onRowHeightChange:z,onRowHovered:W,onRowsRendered:D}=Yoe(e,{mainTableRef:t,leftTableRef:n,rightTableRef:s}),{data:V,depthMap:X}=Xoe(e,{expandedRowKeys:w,lastRenderedRowIndex:S,resetAfterIndex:U}),{bodyWidth:Y,fixedTableHeight:B,mainTableHeight:K,leftTableWidth:L,rightTableWidth:Q,headerWidth:ee,rowsHeight:te,windowHeight:ie,footerHeight:_e,emptyStyle:ue,rootStyle:oe,headerHeight:de}=Joe(e,{columnsTotalWidth:a,data:V,fixedColumnsOnLeft:o,fixedColumnsOnRight:l}),ae=Jt(!1),Ie=G(),ke=k(()=>{const re=d(V).length===0;return st(e.fixedData)?e.fixedData.length===0&&re:re});function Ee(re){const{estimatedRowHeight:Se,rowHeight:Ae,rowKey:Be}=e;return Se?d(P)[d(V)[re][Be]]||Se:Ae}function J(){const{onEndReached:re}=e;if(!re)return;const{scrollTop:Se}=d(_),Ae=d(te),Be=d(ie),Pe=Ae-(Se+Be)+e.hScrollbarSize;d(S)>=0&&Ae===Se+d(K)-d(de)&&re(Pe)}return Oe(()=>e.expandedRowKeys,re=>w.value=re,{deep:!0}),{columns:r,containerRef:Ie,mainTableRef:t,leftTableRef:n,rightTableRef:s,isDynamic:E,isResetting:$,isScrolling:ae,hoveringRowKey:T,hasFixedColumns:u,columnsStyles:i,columnsTotalWidth:a,data:V,expandedRowKeys:w,depthMap:X,fixedColumnsOnLeft:o,fixedColumnsOnRight:l,mainColumns:c,bodyWidth:Y,emptyStyle:ue,rootStyle:oe,headerWidth:ee,footerHeight:_e,mainTableHeight:K,fixedTableHeight:B,leftTableWidth:L,rightTableWidth:Q,showEmpty:ke,getRowHeight:Ee,onColumnSorted:f,onRowHovered:W,onRowExpanded:H,onRowsRendered:D,onRowHeightChange:z,scrollTo:h,scrollToLeft:p,scrollToTop:g,scrollToRow:m,onScroll:y,onVerticalScroll:v}}const I1=Symbol("tableV2"),B$=String,Ef={type:me(Array),required:!0},O1={type:me(Array)},V$={...O1,required:!0},tle=String,ZE={type:me(Array),default:()=>vn([])},Io={type:Number,required:!0},U$={type:me([String,Number,Symbol]),default:"id"},ex={type:me(Object)},Lo=He({class:String,columns:Ef,columnsStyles:{type:me(Object),required:!0},depth:Number,expandColumnKey:tle,estimatedRowHeight:{...jo.estimatedRowHeight,default:void 0},isScrolling:Boolean,onRowExpand:{type:me(Function)},onRowHover:{type:me(Function)},onRowHeightChange:{type:me(Function)},rowData:{type:me(Object),required:!0},rowEventHandlers:{type:me(Object)},rowIndex:{type:Number,required:!0},rowKey:U$,style:{type:me(Object)}}),Bv={type:Number,required:!0},A1=He({class:String,columns:Ef,fixedHeaderData:{type:me(Array)},headerData:{type:me(Array),required:!0},headerHeight:{type:me([Number,Array]),default:50},rowWidth:Bv,rowHeight:{type:Number,default:50},height:Bv,width:Bv}),pp=He({columns:Ef,data:V$,fixedData:O1,estimatedRowHeight:Lo.estimatedRowHeight,width:Io,height:Io,headerWidth:Io,headerHeight:A1.headerHeight,bodyWidth:Io,rowHeight:Io,cache:c$.cache,useIsScrolling:Boolean,scrollbarAlwaysOn:jo.scrollbarAlwaysOn,scrollbarStartGap:jo.scrollbarStartGap,scrollbarEndGap:jo.scrollbarEndGap,class:B$,style:ex,containerStyle:ex,getRowHeight:{type:me(Function),required:!0},rowKey:Lo.rowKey,onRowsRendered:{type:me(Function)},onScroll:{type:me(Function)}}),nle=He({cache:pp.cache,estimatedRowHeight:Lo.estimatedRowHeight,rowKey:U$,headerClass:{type:me([String,Function])},headerProps:{type:me([Object,Function])},headerCellProps:{type:me([Object,Function])},headerHeight:A1.headerHeight,footerHeight:{type:Number,default:0},rowClass:{type:me([String,Function])},rowProps:{type:me([Object,Function])},rowHeight:{type:Number,default:50},cellProps:{type:me([Object,Function])},columns:Ef,data:V$,dataGetter:{type:me(Function)},fixedData:O1,expandColumnKey:Lo.expandColumnKey,expandedRowKeys:ZE,defaultExpandedRowKeys:ZE,class:B$,fixed:Boolean,style:{type:me(Object)},width:Io,height:Io,maxHeight:Number,useIsScrolling:Boolean,indentSize:{type:Number,default:12},iconSize:{type:Number,default:12},hScrollbarSize:jo.hScrollbarSize,vScrollbarSize:jo.vScrollbarSize,scrollbarAlwaysOn:h$.alwaysOn,sortBy:{type:me(Object),default:()=>({})},sortState:{type:me(Object),default:void 0},onColumnSort:{type:me(Function)},onExpandedRowsChange:{type:me(Function)},onEndReached:{type:me(Function)},onRowExpand:Lo.onRowExpand,onScroll:pp.onScroll,onRowsRendered:pp.onRowsRendered,rowEventHandlers:Lo.rowEventHandlers}),P1=(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=we(t,"default",e,()=>[i]);return I("div",{class:e.class,title:i,style:r},[a])};P1.displayName="ElTableV2Cell";P1.inheritAttrs=!1;const $1=(e,{slots:t})=>we(t,"default",e,()=>{var n,s;return[I("div",{class:e.class,title:(n=e.column)==null?void 0:n.title},[(s=e.column)==null?void 0:s.title])]});$1.displayName="ElTableV2HeaderCell";$1.inheritAttrs=!1;const sle=He({class:String,columns:Ef,columnsStyles:{type:me(Object),required:!0},headerIndex:Number,style:{type:me(Object)}}),rle=Z({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=>st(o)&&o.length===1?o[0]:o),columns:n,headerIndex:r})),I("div",{class:e.class,style:i,role:"row"},[a])}}}),ile="ElTableV2Header",ale=Z({name:ile,props:A1,setup(e,{slots:t,expose:n}){const s=Le("table-v2"),r=G(),i=k(()=>La({width:e.width,height:e.height})),a=k(()=>La({width:e.rowWidth,height:e.height})),o=k(()=>Jo(d(e.headerHeight))),l=f=>{const h=d(r);at(()=>{h!=null&&h.scroll&&h.scroll({left:f})})},u=()=>{const f=s.e("fixed-header-row"),{columns:h,fixedHeaderData:p,rowHeight:g}=e;return p==null?void 0:p.map((m,y)=>{var v;const _=La({height:g,width:"100%"});return(v=t.fixed)==null?void 0:v.call(t,{class:f,columns:h,rowData:m,rowIndex:-(y+1),style:_})})},c=()=>{const f=s.e("dynamic-header-row"),{columns:h}=e;return d(o).map((p,g)=>{var m;const y=La({width:"100%",height:p});return(m=t.dynamic)==null?void 0:m.call(t,{class:f,columns:h,headerIndex:g,style:y})})};return n({scrollToLeft:l}),()=>{if(!(e.height<=0))return I("div",{ref:r,class:e.class,style:d(i),role:"rowgroup"},[I("div",{style:d(a),class:s.e("header")},[c(),u()])])}}}),ole=e=>{const{isScrolling:t}=Qe(I1),n=G(!1),s=G(),r=k(()=>ht(e.estimatedRowHeight)&&e.rowIndex>=0),i=(l=!1)=>{const u=d(s);if(!u)return;const{columns:c,onRowHeightChange:f,rowKey:h,rowIndex:p,style:g}=e,{height:m}=u.getBoundingClientRect();n.value=!0,at(()=>{if(l||m!==Number.parseInt(g.height)){const y=c[0],v=(y==null?void 0:y.placeholderSign)===Hd;f==null||f({rowKey:h,height:m,rowIndex:p},y&&!v&&y.fixed)}})},a=k(()=>{const{rowData:l,rowIndex:u,rowKey:c,onRowHover:f}=e,h=e.rowEventHandlers||{},p={};return Object.entries(h).forEach(([g,m])=>{yt(m)&&(p[g]=y=>{m({event:y,rowData:l,rowIndex:u,rowKey:c})})}),f&&[{name:"onMouseleave",hovered:!1},{name:"onMouseenter",hovered:!0}].forEach(({name:g,hovered:m})=>{const y=p[g];p[g]=v=>{f({event:v,hovered:m,rowData:l,rowIndex:u,rowKey:c}),y==null||y(v)}}),p}),o=l=>{const{onRowExpand:u,rowData:c,rowIndex:f,rowKey:h}=e;u==null||u({expanded:l,rowData:c,rowIndex:f,rowKey:h})};return vt(()=>{d(r)&&i(!0)}),{isScrolling:t,measurable:r,measured:n,rowRef:s,eventHandlers:a,onExpand:o}},lle="ElTableV2TableRow",ule=Z({name:lle,props:Lo,setup(e,{expose:t,slots:n,attrs:s}){const{eventHandlers:r,isScrolling:i,measurable:a,measured:o,rowRef:l,onExpand:u}=ole(e);return t({onExpand:u}),()=>{const{columns:c,columnsStyles:f,expandColumnKey:h,depth:p,rowData:g,rowIndex:m,style:y}=e;let v=c.map((_,w)=>{const T=st(g.children)&&g.children.length>0&&_.key===h;return n.cell({column:_,columns:c,columnIndex:w,depth:p,style:f[_.key],rowData:g,rowIndex:m,isScrolling:d(i),expandIconProps:T?{rowData:g,rowIndex:m,onExpand:u}:void 0})});if(n.row&&(v=n.row({cells:v.map(_=>st(_)&&_.length===1?_[0]:_),style:y,columns:c,depth:p,rowData:g,rowIndex:m,isScrolling:d(i)})),d(a)){const{height:_,...w}=y||{},T=d(o);return I("div",Rt({ref:l,class:e.class,style:T?y:w,role:"row"},s,d(r)),[v])}return I("div",Rt(s,{ref:l,class:e.class,style:y,role:"row"},d(r)),[v])}}}),cle=e=>{const{sortOrder:t}=e;return I(tt,{size:14,class:e.class},{default:()=>[t===Vd.ASC?I(Tj,null,null):I(bj,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 I(tt,Rt(a,{size:i,style:r}),{default:()=>[I(Ns,null,null)]})},fle="ElTableV2Grid",hle=e=>{const t=G(),n=G(),s=k(()=>{const{data:m,rowHeight:y,estimatedRowHeight:v}=e;if(!v)return m.length*y}),r=k(()=>{const{fixedData:m,rowHeight:y}=e;return((m==null?void 0:m.length)||0)*y}),i=k(()=>hp(e.headerHeight)),a=k(()=>{const{height:m}=e;return Math.max(0,m-d(i)-d(r))}),o=k(()=>d(i)+d(r)>0),l=({data:m,rowIndex:y})=>m[y][e.rowKey];function u({rowCacheStart:m,rowCacheEnd:y,rowVisibleStart:v,rowVisibleEnd:_}){var w;(w=e.onRowsRendered)==null||w.call(e,{rowCacheStart:m,rowCacheEnd:y,rowVisibleStart:v,rowVisibleEnd:_})}function c(m,y){var v;(v=n.value)==null||v.resetAfterRowIndex(m,y)}function f(m,y){const v=d(t),_=d(n);!v||!_||(Mt(m)?(v.scrollToLeft(m.scrollLeft),_.scrollTo(m)):(v.scrollToLeft(m),_.scrollTo({scrollLeft:m,scrollTop:y})))}function h(m){var y;(y=d(n))==null||y.scrollTo({scrollTop:m})}function p(m,y){var v;(v=d(n))==null||v.scrollToItem(m,1,y)}function g(){var m,y;(m=d(n))==null||m.$forceUpdate(),(y=d(t))==null||y.$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:p}},N1=Z({name:fle,props:pp,setup(e,{slots:t,expose:n}){const{ns:s}=Qe(I1),{bodyRef:r,fixedRowHeight:i,gridHeight:a,hasHeader:o,headerRef:l,headerHeight:u,totalHeight:c,forceUpdate:f,itemKey:h,onItemRendered:p,resetAfterRowIndex:g,scrollTo:m,scrollToTop:y,scrollToRow:v}=hle(e);n({forceUpdate:f,totalHeight:c,scrollTo:m,scrollToTop:y,scrollToRow:v,resetAfterRowIndex:g});const _=()=>e.bodyWidth;return()=>{const{cache:w,columns:T,data:S,fixedData:E,useIsScrolling:$,scrollbarAlwaysOn:P,scrollbarEndGap:U,scrollbarStartGap:H,style:z,rowHeight:W,bodyWidth:D,estimatedRowHeight:V,headerWidth:X,height:Y,width:B,getRowHeight:K,onScroll:L}=e,Q=ht(V),ee=Q?Gre:jre,te=d(u);return I("div",{role:"table",class:[s.e("table"),e.class],style:z},[I(ee,{ref:r,data:S,useIsScrolling:$,itemKey:h,columnCache:0,columnWidth:Q?_:D,totalColumn:1,totalRow:S.length,rowCache:w,rowHeight:Q?K:W,width:B,height:d(a),class:s.e("body"),role:"rowgroup",scrollbarStartGap:H,scrollbarEndGap:U,scrollbarAlwaysOn:P,onScroll:L,onItemRendered:p,perfMode:!1},{default:ie=>{var _e;const ue=S[ie.rowIndex];return(_e=t.row)==null?void 0:_e.call(t,{...ie,columns:T,rowData:ue})}}),d(o)&&I(ale,{ref:l,class:s.e("header-wrapper"),columns:T,headerData:S,headerHeight:e.headerHeight,fixedHeaderData:E,rowWidth:X,rowHeight:W,width:B,height:Math.min(te+d(i),Y)},{dynamic:t.header,fixed:t.row})])}}});function ple(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!pn(e)}const mle=(e,{slots:t})=>{const{mainTableRef:n,...s}=e;return I(N1,Rt({ref:n},s),ple(t)?t:{default:()=>[t]})};function gle(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!pn(e)}const vle=(e,{slots:t})=>{if(!e.columns.length)return;const{leftTableRef:n,...s}=e;return I(N1,Rt({ref:n},s),gle(t)?t:{default:()=>[t]})};function yle(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!pn(e)}const ble=(e,{slots:t})=>{if(!e.columns.length)return;const{rightTableRef:n,...s}=e;return I(N1,Rt({ref:n},s),yle(t)?t:{default:()=>[t]})};function _le(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!pn(e)}const Tle=(e,{slots:t})=>{const{columns:n,columnsStyles:s,depthMap:r,expandColumnKey:i,expandedRowKeys:a,estimatedRowHeight:o,hasFixedColumns:l,hoveringRowKey:u,rowData:c,rowIndex:f,style:h,isScrolling:p,rowProps:g,rowClass:m,rowKey:y,rowEventHandlers:v,ns:_,onRowHovered:w,onRowExpanded:T}=e,S=Zo(m,{columns:n,rowData:c,rowIndex:f},""),E=Zo(g,{columns:n,rowData:c,rowIndex:f}),$=c[y],P=r[$]||0,U=!!i,H=f<0,z=[_.e("row"),S,{[_.e(`row-depth-${P}`)]:U&&f>=0,[_.is("expanded")]:U&&a.includes($),[_.is("hovered")]:!p&&$===u,[_.is("fixed")]:!P&&H,[_.is("customized")]:!!t.row}],W=l?w:void 0,D={...E,columns:n,columnsStyles:s,class:z,depth:P,expandColumnKey:i,estimatedRowHeight:H?void 0:o,isScrolling:p,rowIndex:f,rowData:c,rowKey:$,rowEventHandlers:v,style:h};return I(ule,Rt(D,{onRowHover:W,onRowExpand:T}),_le(t)?t:{default:()=>[t]})},Vy=({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:p,iconSize:g,rowKey:m},{slots:y})=>{const v=La(l);if(t.placeholderSign===Hd)return I("div",{class:c.em("row-cell","placeholder"),style:v},null);const{cellRenderer:_,dataKey:w,dataGetter:T}=t,S=yt(T)?T({columns:e,column:t,columnIndex:n,rowData:a,rowIndex:o}):gn(a,w??""),E=Zo(f,{cellData:S,columns:e,column:t,columnIndex:n,rowIndex:o,rowData:a}),$={class:c.e("cell-text"),columns:e,column:t,columnIndex:n,cellData:S,isScrolling:i,rowData:a,rowIndex:o},P=F$(_),U=P?P($):we(y,"default",$,()=>[I(P1,$,null)]),H=[c.e("row-cell"),t.class,t.align===Ud.CENTER&&c.is("align-center"),t.align===Ud.RIGHT&&c.is("align-right")],z=o>=0&&h&&t.key===h,W=o>=0&&u.includes(a[m]);let D;const V=`margin-inline-start: ${s*p}px;`;return z&&(Mt(r)?D=I(dle,Rt(r,{class:[c.e("expand-icon"),c.is("expanded",W)],size:g,expanded:W,style:V,expandable:!0}),null):D=I("div",{style:[V,`width: ${g}px; height: ${g}px;`].join(" ")},null)),I("div",Rt({class:H,style:v},E,{role:"cell"}),[D,U])};Vy.inheritAttrs=!1;function wle(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!pn(e)}const Sle=({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"),Zo(r,l,""),{[a.is("customized")]:!!o.header}],c={...Zo(i,l),columnsStyles:t,class:u,columns:e,headerIndex:n,style:s};return I(rle,c,wle(o)?o:{default:()=>[o]})},tx=(e,{slots:t})=>{const{column:n,ns:s,style:r,onColumnSorted:i}=e,a=La(r);if(n.placeholderSign===Hd)return I("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=F$(o),h=f?f(c):we(t,"default",c,()=>[I($1,c,null)]),{sortBy:p,sortState:g,headerCellProps:m}=e;let y,v;if(g){const T=g[n.key];y=!!By[T],v=y?T:Vd.ASC}else y=n.key===p.key,v=y?p.order:Vd.ASC;const _=[s.e("header-cell"),Zo(l,e,""),n.align===Ud.CENTER&&s.is("align-center"),n.align===Ud.RIGHT&&s.is("align-right"),u&&s.is("sortable")],w={...Zo(m,e),onClick:n.sortable?i:void 0,class:_,style:a,["data-key"]:n.key};return I("div",Rt(w,{role:"columnheader"}),[h,u&&I(cle,{class:[s.e("sort-icon"),y&&s.is("sorting")],sortOrder:v},null)])},H$=(e,{slots:t})=>{var n;return I("div",{class:e.class,style:e.style},[(n=t.default)==null?void 0:n.call(t)])};H$.displayName="ElTableV2Footer";const z$=(e,{slots:t})=>{const n=we(t,"default",{},()=>[I(bf,null,null)]);return I("div",{class:e.class,style:e.style},[n])};z$.displayName="ElTableV2Empty";const j$=(e,{slots:t})=>{var n;return I("div",{class:e.class,style:e.style},[(n=t.default)==null?void 0:n.call(t)])};j$.displayName="ElTableV2Overlay";function _c(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!pn(e)}const Cle="ElTableV2",Ele=Z({name:Cle,props:nle,setup(e,{slots:t,expose:n}){const s=Le("table-v2"),{columnsStyles:r,fixedColumnsOnLeft:i,fixedColumnsOnRight:a,mainColumns:o,mainTableHeight:l,fixedTableHeight:u,leftTableWidth:c,rightTableWidth:f,data:h,depthMap:p,expandedRowKeys:g,hasFixedColumns:m,hoveringRowKey:y,mainTableRef:v,leftTableRef:_,rightTableRef:w,isDynamic:T,isResetting:S,isScrolling:E,bodyWidth:$,emptyStyle:P,rootStyle:U,headerWidth:H,footerHeight:z,showEmpty:W,scrollTo:D,scrollToLeft:V,scrollToTop:X,scrollToRow:Y,getRowHeight:B,onColumnSorted:K,onRowHeightChange:L,onRowHovered:Q,onRowExpanded:ee,onRowsRendered:te,onScroll:ie,onVerticalScroll:_e}=ele(e);return n({scrollTo:D,scrollToLeft:V,scrollToTop:X,scrollToRow:Y}),Lt(I1,{ns:s,isResetting:S,hoveringRowKey:y,isScrolling:E}),()=>{const{cache:ue,cellProps:oe,estimatedRowHeight:de,expandColumnKey:ae,fixedData:Ie,headerHeight:ke,headerClass:Ee,headerProps:J,headerCellProps:re,sortBy:Se,sortState:Ae,rowHeight:Be,rowClass:Pe,rowEventHandlers:Ve,rowKey:$e,rowProps:Te,scrollbarAlwaysOn:De,indentSize:qe,iconSize:Je,useIsScrolling:et,vScrollbarSize:Re,width:Xe}=e,ct=d(h),wt={cache:ue,class:s.e("main"),columns:d(o),data:ct,fixedData:Ie,estimatedRowHeight:de,bodyWidth:d($)+Re,headerHeight:ke,headerWidth:d(H),height:d(l),mainTableRef:v,rowKey:$e,rowHeight:Be,scrollbarAlwaysOn:De,scrollbarStartGap:2,scrollbarEndGap:Re,useIsScrolling:et,width:Xe,getRowHeight:B,onRowsRendered:te,onScroll:ie},Pt=d(c),ut=d(u),Ce={cache:ue,class:s.e("left"),columns:d(i),data:ct,estimatedRowHeight:de,leftTableRef:_,rowHeight:Be,bodyWidth:Pt,headerWidth:Pt,headerHeight:ke,height:ut,rowKey:$e,scrollbarAlwaysOn:De,scrollbarStartGap:2,scrollbarEndGap:Re,useIsScrolling:et,width:Pt,getRowHeight:B,onScroll:_e},ge=d(f)+Re,Ne={cache:ue,class:s.e("right"),columns:d(a),data:ct,estimatedRowHeight:de,rightTableRef:w,rowHeight:Be,bodyWidth:ge,headerWidth:ge,headerHeight:ke,height:ut,rowKey:$e,scrollbarAlwaysOn:De,scrollbarStartGap:2,scrollbarEndGap:Re,width:ge,style:`--${d(s.namespace)}-table-scrollbar-size: ${Re}px`,useIsScrolling:et,getRowHeight:B,onScroll:_e},ne=d(r),Ye={ns:s,depthMap:d(p),columnsStyles:ne,expandColumnKey:ae,expandedRowKeys:d(g),estimatedRowHeight:de,hasFixedColumns:d(m),hoveringRowKey:d(y),rowProps:Te,rowClass:Pe,rowKey:$e,rowEventHandlers:Ve,onRowHovered:Q,onRowExpanded:ee,onRowHeightChange:L},_t={cellProps:oe,expandColumnKey:ae,indentSize:qe,iconSize:Je,rowKey:$e,expandedRowKeys:d(g),ns:s},Ft={ns:s,headerClass:Ee,headerProps:J,columnsStyles:ne},Pn={ns:s,sortBy:Se,sortState:Ae,headerCellProps:re,onColumnSorted:K},mn={row:xe=>I(Tle,Rt(xe,Ye),{row:t.row,cell:Ge=>{let mt;return t.cell?I(Vy,Rt(Ge,_t,{style:ne[Ge.column.key]}),_c(mt=t.cell(Ge))?mt:{default:()=>[mt]}):I(Vy,Rt(Ge,_t,{style:ne[Ge.column.key]}),null)}}),header:xe=>I(Sle,Rt(xe,Ft),{header:t.header,cell:Ge=>{let mt;return t["header-cell"]?I(tx,Rt(Ge,Pn,{style:ne[Ge.column.key]}),_c(mt=t["header-cell"](Ge))?mt:{default:()=>[mt]}):I(tx,Rt(Ge,Pn,{style:ne[Ge.column.key]}),null)}})},Vs=[e.class,s.b(),s.e("root"),{[s.is("dynamic")]:d(T)}],Jn={class:s.e("footer"),style:d(z)};return I("div",{class:Vs,style:d(U)},[I(mle,wt,_c(mn)?mn:{default:()=>[mn]}),I(vle,Ce,_c(mn)?mn:{default:()=>[mn]}),I(ble,Ne,_c(mn)?mn:{default:()=>[mn]}),t.footer&&I(H$,Jn,{default:t.footer}),d(W)&&I(z$,{class:s.e("empty"),style:d(P)},{default:t.empty}),t.overlay&&I(j$,{class:s.e("overlay")},{default:t.overlay})])}}}),xle=He({disableWidth:Boolean,disableHeight:Boolean,onResize:{type:me(Function)}}),kle=Z({name:"ElAutoResizer",props:xle,setup(e,{slots:t}){const n=Le("auto-resizer"),{height:s,width:r,sizer:i}=Zoe(e),a={width:"100%",height:"100%"};return()=>{var o;return I("div",{ref:i,class:n.b(),style:a},[(o=t.default)==null?void 0:o.call(t,{height:s.value,width:r.value})])}}}),Ile=At(Ele),Ole=At(kle),vg=Symbol("tabsRootContextKey"),Ale=He({tabs:{type:me(Array),default:()=>vn([])}}),K$="ElTabBar",Ple=Z({name:K$}),$le=Z({...Ple,props:Ale,setup(e,{expose:t}){const n=e,s=It(),r=Qe(vg);r||Yn(K$,"<el-tabs><el-tab-bar /></el-tabs>");const i=Le("tabs"),a=G(),o=G(),l=()=>{let c=0,f=0;const h=["top","bottom"].includes(r.props.tabPosition)?"width":"height",p=h==="width"?"x":"y",g=p==="x"?"left":"top";return n.tabs.every(m=>{var y,v;const _=(v=(y=s.parent)==null?void 0:y.refs)==null?void 0:v[`tab-${m.uid}`];if(!_)return!1;if(!m.active)return!0;c=_[`offset${hi(g)}`],f=_[`client${hi(h)}`];const w=window.getComputedStyle(_);return h==="width"&&(n.tabs.length>1&&(f-=Number.parseFloat(w.paddingLeft)+Number.parseFloat(w.paddingRight)),c+=Number.parseFloat(w.paddingLeft)),!1}),{[h]:`${f}px`,transform:`translate${hi(p)}(${c}px)`}},u=()=>o.value=l();return Oe(()=>n.tabs,async()=>{await at(),u()},{immediate:!0}),_s(a,()=>u()),t({ref:a,update:u}),(c,f)=>(C(),j("div",{ref_key:"barRef",ref:a,class:M([d(i).e("active-bar"),d(i).is(d(r).props.tabPosition)]),style:rt(o.value)},null,6))}});var Nle=ze($le,[["__file","tab-bar.vue"]]);const Mle=He({panes:{type:me(Array),default:()=>vn([])},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean}),Rle={tabClick:(e,t,n)=>n instanceof Event,tabRemove:(e,t)=>t instanceof Event},nx="ElTabNav",Lle=Z({name:nx,props:Mle,emits:Rle,setup(e,{expose:t,emit:n}){const s=It(),r=Qe(vg);r||Yn(nx,"<el-tabs><tab-nav /></el-tabs>");const i=Le("tabs"),a=PF(),o=KF(),l=G(),u=G(),c=G(),f=G(),h=G(!1),p=G(0),g=G(!1),m=G(!0),y=k(()=>["top","bottom"].includes(r.props.tabPosition)?"width":"height"),v=k(()=>({transform:`translate${y.value==="width"?"X":"Y"}(-${p.value}px)`})),_=()=>{if(!l.value)return;const U=l.value[`offset${hi(y.value)}`],H=p.value;if(!H)return;const z=H>U?H-U:0;p.value=z},w=()=>{if(!l.value||!u.value)return;const U=u.value[`offset${hi(y.value)}`],H=l.value[`offset${hi(y.value)}`],z=p.value;if(U-z<=H)return;const W=U-z>H*2?z+H:U-H;p.value=W},T=async()=>{const U=u.value;if(!h.value||!c.value||!l.value||!U)return;await at();const H=c.value.querySelector(".is-active");if(!H)return;const z=l.value,W=["top","bottom"].includes(r.props.tabPosition),D=H.getBoundingClientRect(),V=z.getBoundingClientRect(),X=W?U.offsetWidth-V.width:U.offsetHeight-V.height,Y=p.value;let B=Y;W?(D.left<V.left&&(B=Y-(V.left-D.left)),D.right>V.right&&(B=Y+D.right-V.right)):(D.top<V.top&&(B=Y-(V.top-D.top)),D.bottom>V.bottom&&(B=Y+(D.bottom-V.bottom))),B=Math.max(B,0),p.value=Math.min(B,X)},S=()=>{var U;if(!u.value||!l.value)return;e.stretch&&((U=f.value)==null||U.update());const H=u.value[`offset${hi(y.value)}`],z=l.value[`offset${hi(y.value)}`],W=p.value;z<H?(h.value=h.value||{},h.value.prev=W,h.value.next=W+z<H,H-W<z&&(p.value=H-z)):(h.value=!1,W>0&&(p.value=0))},E=U=>{const H=U.code,{up:z,down:W,left:D,right:V}=ot;if(![z,W,D,V].includes(H))return;const X=Array.from(U.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)")),Y=X.indexOf(U.target);let B;H===D||H===z?Y===0?B=X.length-1:B=Y-1:Y<X.length-1?B=Y+1:B=0,X[B].focus({preventScroll:!0}),X[B].click(),$()},$=()=>{m.value&&(g.value=!0)},P=()=>g.value=!1;return Oe(a,U=>{U==="hidden"?m.value=!1:U==="visible"&&setTimeout(()=>m.value=!0,50)}),Oe(o,U=>{U?setTimeout(()=>m.value=!0,50):m.value=!1}),_s(c,S),vt(()=>setTimeout(()=>T(),0)),ha(()=>S()),t({scrollToActiveTab:T,removeFocus:P}),Oe(()=>e.panes,()=>s.update(),{flush:"post",deep:!0}),()=>{const U=h.value?[I("span",{class:[i.e("nav-prev"),i.is("disabled",!h.value.prev)],onClick:_},[I(tt,null,{default:()=>[I(Ka,null,null)]})]),I("span",{class:[i.e("nav-next"),i.is("disabled",!h.value.next)],onClick:w},[I(tt,null,{default:()=>[I(Ns,null,null)]})])]:null,H=e.panes.map((z,W)=>{var D,V,X,Y;const B=z.uid,K=z.props.disabled,L=(V=(D=z.props.name)!=null?D:z.index)!=null?V:`${W}`,Q=!K&&(z.isClosable||e.editable);z.index=`${W}`;const ee=Q?I(tt,{class:"is-icon-close",onClick:_e=>n("tabRemove",z,_e)},{default:()=>[I(Jr,null,null)]}):null,te=((Y=(X=z.slots).label)==null?void 0:Y.call(X))||z.props.label,ie=!K&&z.active?0:-1;return I("div",{ref:`tab-${B}`,class:[i.e("item"),i.is(r.props.tabPosition),i.is("active",z.active),i.is("disabled",K),i.is("closable",Q),i.is("focus",g.value)],id:`tab-${L}`,key:`tab-${B}`,"aria-controls":`pane-${L}`,role:"tab","aria-selected":z.active,tabindex:ie,onFocus:()=>$(),onBlur:()=>P(),onClick:_e=>{P(),n("tabClick",z,L,_e)},onKeydown:_e=>{Q&&(_e.code===ot.delete||_e.code===ot.backspace)&&n("tabRemove",z,_e)}},[te,ee])});return I("div",{ref:c,class:[i.e("nav-wrap"),i.is("scrollable",!!h.value),i.is(r.props.tabPosition)]},[U,I("div",{class:i.e("nav-scroll"),ref:l},[I("div",{class:[i.e("nav"),i.is(r.props.tabPosition),i.is("stretch",e.stretch&&["top","bottom"].includes(r.props.tabPosition))],ref:u,style:v.value,role:"tablist",onKeydown:E},[e.type?null:I(Nle,{ref:f,tabs:[...e.panes]},null),H])])])}}}),Dle=He({type:{type:String,values:["card","border-card",""],default:""},activeName:{type:[String,Number]},closable:Boolean,addable:Boolean,modelValue:{type:[String,Number]},editable:Boolean,tabPosition:{type:String,values:["top","right","bottom","left"],default:"top"},beforeLeave:{type:me(Function),default:()=>!0},stretch:Boolean}),Vv=e=>Tt(e)||ht(e),Fle={[$t]:e=>Vv(e),tabClick:(e,t)=>t instanceof Event,tabChange:e=>Vv(e),edit:(e,t)=>["remove","add"].includes(t),tabRemove:e=>Vv(e),tabAdd:()=>!0},Ble=Z({name:"ElTabs",props:Dle,emits:Fle,setup(e,{emit:t,slots:n,expose:s}){var r,i;const a=Le("tabs"),{children:o,addChild:l,removeChild:u}=Y_(It(),"ElTabPane"),c=G(),f=G((i=(r=e.modelValue)!=null?r:e.activeName)!=null?i:"0"),h=async(y,v=!1)=>{var _,w,T;if(!(f.value===y||qn(y)))try{await((_=e.beforeLeave)==null?void 0:_.call(e,y,f.value))!==!1&&(f.value=y,v&&(t($t,y),t("tabChange",y)),(T=(w=c.value)==null?void 0:w.removeFocus)==null||T.call(w))}catch{}},p=(y,v,_)=>{y.props.disabled||(h(v,!0),t("tabClick",y,_))},g=(y,v)=>{y.props.disabled||qn(y.props.name)||(v.stopPropagation(),t("edit",y.props.name,"remove"),t("tabRemove",y.props.name))},m=()=>{t("edit",void 0,"add"),t("tabAdd")};return Ii({from:'"activeName"',replacement:'"model-value" or "v-model"',scope:"ElTabs",version:"2.3.0",ref:"https://element-plus.org/en-US/component/tabs.html#attributes",type:"Attribute"},k(()=>!!e.activeName)),Oe(()=>e.activeName,y=>h(y)),Oe(()=>e.modelValue,y=>h(y)),Oe(f,async()=>{var y;await at(),(y=c.value)==null||y.scrollToActiveTab()}),Lt(vg,{props:e,currentName:f,registerPane:l,unregisterPane:u}),s({currentName:f}),()=>{const y=n.addIcon,v=e.editable||e.addable?I("span",{class:a.e("new-tab"),tabindex:"0",onClick:m,onKeydown:T=>{T.code===ot.enter&&m()}},[y?we(n,"addIcon"):I(tt,{class:a.is("icon-plus")},{default:()=>[I(I_,null,null)]})]):null,_=I("div",{class:[a.e("header"),a.is(e.tabPosition)]},[v,I(Lle,{ref:c,currentName:f.value,editable:e.editable,type:e.type,panes:o.value,stretch:e.stretch,onTabClick:p,onTabRemove:g},null)]),w=I("div",{class:a.e("content")},[we(n,"default")]);return I("div",{class:[a.b(),a.m(e.tabPosition),{[a.m("card")]:e.type==="card",[a.m("border-card")]:e.type==="border-card"}]},[...e.tabPosition!=="bottom"?[_,w]:[w,_]])}}}),Vle=He({label:{type:String,default:""},name:{type:[String,Number]},closable:Boolean,disabled:Boolean,lazy:Boolean}),Ule=["id","aria-hidden","aria-labelledby"],W$="ElTabPane",Hle=Z({name:W$}),zle=Z({...Hle,props:Vle,setup(e){const t=e,n=It(),s=us(),r=Qe(vg);r||Yn(W$,"usage: <el-tabs><el-tab-pane /></el-tabs/>");const i=Le("tab-pane"),a=G(),o=k(()=>t.closable||r.props.closable),l=NS(()=>{var p;return r.currentName.value===((p=t.name)!=null?p:a.value)}),u=G(l.value),c=k(()=>{var p;return(p=t.name)!=null?p:a.value}),f=NS(()=>!t.lazy||u.value||l.value);Oe(l,p=>{p&&(u.value=!0)});const h=Ct({uid:n.uid,slots:s,props:t,paneName:c,active:l,index:a,isClosable:o});return vt(()=>{r.registerPane(h)}),eo(()=>{r.unregisterPane(h.uid)}),(p,g)=>d(f)?pt((C(),j("div",{key:0,id:`pane-${d(c)}`,class:M(d(i).b()),role:"tabpanel","aria-hidden":!d(l),"aria-labelledby":`tab-${d(c)}`},[we(p.$slots,"default")],10,Ule)),[[Vt,d(l)]]):le("v-if",!0)}});var q$=ze(zle,[["__file","tab-pane.vue"]]);const jle=At(Ble,{TabPane:q$}),Kle=In(q$),Wle=He({type:{type:String,values:["primary","success","info","warning","danger",""],default:""},size:{type:String,values:Li,default:""},truncated:{type:Boolean},lineClamp:{type:[String,Number]},tag:{type:String,default:"span"}}),qle=Z({name:"ElText"}),Gle=Z({...qle,props:Wle,setup(e){const t=e,n=Xn(),s=Le("text"),r=k(()=>[s.b(),s.m(t.type),s.m(n.value),s.is("truncated",t.truncated),s.is("line-clamp",!qn(t.lineClamp))]);return(i,a)=>(C(),he(Nt(i.tag),{class:M(d(r)),style:rt({"-webkit-line-clamp":i.lineClamp})},{default:N(()=>[we(i.$slots,"default")]),_:3},8,["class","style"]))}});var Yle=ze(Gle,[["__file","text.vue"]]);const Xle=At(Yle),Qle=He({format:{type:String,default:"HH:mm"},modelValue:String,disabled:Boolean,editable:{type:Boolean,default:!0},effect:{type:String,default:"light"},clearable:{type:Boolean,default:!0},size:os,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:me([String,Object]),default:()=>x_},clearIcon:{type:me([String,Object]),default:()=>to}}),qi=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},Uv=(e,t)=>{const n=qi(e);if(!n)return-1;const s=qi(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"),$l=e=>`${sx(e.hours)}:${sx(e.minutes)}`,Jle=(e,t)=>{const n=qi(e);if(!n)return"";const s=qi(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,$l(r)},Zle=Z({name:"ElTimeSelect"}),eue=Z({...Zle,props:Qle,emits:["change","blur","focus","update:modelValue"],setup(e,{expose:t}){const n=e;Ot.extend(n1);const{Option:s}=ei,r=Le("input"),i=G(),a=ir(),{lang:o}=Wt(),l=k(()=>n.modelValue),u=k(()=>{const v=qi(n.start);return v?$l(v):null}),c=k(()=>{const v=qi(n.end);return v?$l(v):null}),f=k(()=>{const v=qi(n.step);return v?$l(v):null}),h=k(()=>{const v=qi(n.minTime||"");return v?$l(v):null}),p=k(()=>{const v=qi(n.maxTime||"");return v?$l(v):null}),g=k(()=>{const v=[];if(n.start&&n.end&&n.step){let _=u.value,w;for(;_&&c.value&&Uv(_,c.value)<=0;)w=Ot(_,"HH:mm").locale(o.value).format(n.format),v.push({value:w,disabled:Uv(_,h.value||"-1:-1")<=0||Uv(_,p.value||"100:100")>=0}),_=Jle(_,f.value)}return v});return t({blur:()=>{var v,_;(_=(v=i.value)==null?void 0:v.blur)==null||_.call(v)},focus:()=>{var v,_;(_=(v=i.value)==null?void 0:v.focus)==null||_.call(v)}}),(v,_)=>(C(),he(d(ei),{ref_key:"select",ref:i,"model-value":d(l),disabled:d(a),clearable:v.clearable,"clear-icon":v.clearIcon,size:v.size,effect:v.effect,placeholder:v.placeholder,"default-first-option":"",filterable:v.editable,"onUpdate:modelValue":_[0]||(_[0]=w=>v.$emit("update:modelValue",w)),onChange:_[1]||(_[1]=w=>v.$emit("change",w)),onBlur:_[2]||(_[2]=w=>v.$emit("blur",w)),onFocus:_[3]||(_[3]=w=>v.$emit("focus",w))},{prefix:N(()=>[v.prefixIcon?(C(),he(d(tt),{key:0,class:M(d(r).e("prefix-icon"))},{default:N(()=>[(C(),he(Nt(v.prefixIcon)))]),_:1},8,["class"])):le("v-if",!0)]),default:N(()=>[(C(!0),j(Ke,null,bt(d(g),w=>(C(),he(d(s),{key:w.value,label:w.value,value:w.value,disabled:w.disabled},null,8,["label","value","disabled"]))),128))]),_:1},8,["model-value","disabled","clearable","clear-icon","size","effect","placeholder","filterable"]))}});var mp=ze(eue,[["__file","time-select.vue"]]);mp.install=e=>{e.component(mp.name,mp)};const tue=mp,nue=tue,sue=Z({name:"ElTimeline",setup(e,{slots:t}){const n=Le("timeline");return Lt("timeline",t),()=>lt("ul",{class:[n.b()]},[we(t,"default")])}}),rue=He({timestamp:{type:String,default:""},hideTimestamp:{type:Boolean,default:!1},center:{type:Boolean,default:!1},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:sn},hollow:{type:Boolean,default:!1}}),iue=Z({name:"ElTimelineItem"}),aue=Z({...iue,props:rue,setup(e){const t=e,n=Le("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)=>(C(),j("li",{class:M([d(n).b(),{[d(n).e("center")]:r.center}])},[R("div",{class:M(d(n).e("tail"))},null,2),r.$slots.dot?le("v-if",!0):(C(),j("div",{key:0,class:M(d(s)),style:rt({backgroundColor:r.color})},[r.icon?(C(),he(d(tt),{key:0,class:M(d(n).e("icon"))},{default:N(()=>[(C(),he(Nt(r.icon)))]),_:1},8,["class"])):le("v-if",!0)],6)),r.$slots.dot?(C(),j("div",{key:1,class:M(d(n).e("dot"))},[we(r.$slots,"dot")],2)):le("v-if",!0),R("div",{class:M(d(n).e("wrapper"))},[!r.hideTimestamp&&r.placement==="top"?(C(),j("div",{key:0,class:M([d(n).e("timestamp"),d(n).is("top")])},ve(r.timestamp),3)):le("v-if",!0),R("div",{class:M(d(n).e("content"))},[we(r.$slots,"default")],2),!r.hideTimestamp&&r.placement==="bottom"?(C(),j("div",{key:1,class:M([d(n).e("timestamp"),d(n).is("bottom")])},ve(r.timestamp),3)):le("v-if",!0)],2)],2))}});var G$=ze(aue,[["__file","timeline-item.vue"]]);const oue=At(sue,{TimelineItem:G$}),lue=In(G$),Y$=He({nowrap:Boolean});var X$=(e=>(e.top="top",e.bottom="bottom",e.left="left",e.right="right",e))(X$||{});const uue=Object.values(X$),M1=He({width:{type:Number,default:10},height:{type:Number,default:10},style:{type:me(Object),default:null}}),cue=He({side:{type:me(String),values:uue,required:!0}}),due=["absolute","fixed"],fue=["top-start","top-end","top","bottom-start","bottom-end","bottom","left-start","left-end","left","right-start","right-end","right"],R1=He({ariaLabel:String,arrowPadding:{type:me(Number),default:5},effect:{type:String,default:""},contentClass:String,placement:{type:me(String),values:fue,default:"bottom"},reference:{type:me(Object),default:null},offset:{type:Number,default:8},strategy:{type:me(String),values:due,default:"absolute"},showArrow:{type:Boolean,default:!1}}),L1=He({delayDuration:{type:Number,default:300},defaultOpen:Boolean,open:{type:Boolean,default:void 0},onOpenChange:{type:me(Function)},"onUpdate:open":{type:me(Function)}}),_l={type:me(Function)},D1=He({onBlur:_l,onClick:_l,onFocus:_l,onMouseDown:_l,onMouseEnter:_l,onMouseLeave:_l}),hue=He({...L1,...M1,...D1,...R1,alwaysOn:Boolean,fullTransition:Boolean,transitionProps:{type:me(Object),default:null},teleported:Boolean,to:{type:me(String),default:"body"}}),yg=Symbol("tooltipV2"),Q$=Symbol("tooltipV2Content"),Hv="tooltip_v2.open",pue=Z({name:"ElTooltipV2Root"}),mue=Z({...pue,props:L1,setup(e,{expose:t}){const n=e,s=G(n.defaultOpen),r=G(null),i=k({get:()=>tz(n.open)?s.value:n.open,set:y=>{var v;s.value=y,(v=n["onUpdate:open"])==null||v.call(n,y)}}),a=k(()=>ht(n.delayDuration)&&n.delayDuration>0),{start:o,stop:l}=Xo(()=>{i.value=!0},k(()=>n.delayDuration),{immediate:!1}),u=Le("tooltip-v2"),c=tr(),f=()=>{l(),i.value=!0},h=()=>{d(a)?o():f()},p=f,g=()=>{l(),i.value=!1};return Oe(i,y=>{var v;y&&(document.dispatchEvent(new CustomEvent(Hv)),p()),(v=n.onOpenChange)==null||v.call(n,y)}),vt(()=>{document.addEventListener(Hv,g)}),on(()=>{l(),document.removeEventListener(Hv,g)}),Lt(yg,{contentId:c,triggerRef:r,ns:u,onClose:g,onDelayOpen:h,onOpen:p}),t({onOpen:p,onClose:g}),(y,v)=>we(y.$slots,"default",{open:d(i)})}});var gue=ze(mue,[["__file","root.vue"]]);const vue=Z({name:"ElTooltipV2Arrow"}),yue=Z({...vue,props:{...M1,...cue},setup(e){const t=e,{ns:n}=Qe(yg),{arrowRef:s}=Qe(Q$),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)=>(C(),j("span",{ref_key:"arrowRef",ref:s,style:rt(d(r)),class:M(d(n).e("arrow"))},null,6))}});var rx=ze(yue,[["__file","arrow.vue"]]);const bue=He({style:{type:me([String,Object,Array]),default:()=>({})}}),_ue=Z({name:"ElVisuallyHidden"}),Tue=Z({..._ue,props:bue,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)=>(C(),j("span",Rt(s.$attrs,{style:d(n)}),[we(s.$slots,"default")],16))}});var wue=ze(Tue,[["__file","visual-hidden.vue"]]);const Sue=["data-side"],Cue=Z({name:"ElTooltipV2Content"}),Eue=Z({...Cue,props:{...R1,...Y$},setup(e){const t=e,{triggerRef:n,contentId:s}=Qe(yg),r=G(t.placement),i=G(t.strategy),a=G(null),{referenceRef:o,contentRef:l,middlewareData:u,x:c,y:f,update:h}=I7({placement:r,strategy:i,middleware:k(()=>{const w=[w7(t.offset)];return t.showArrow&&w.push(O7({arrowRef:a})),w})}),p=Wu().nextZIndex(),g=Le("tooltip-v2"),m=k(()=>r.value.split("-")[0]),y=k(()=>({position:d(i),top:`${d(f)||0}px`,left:`${d(c)||0}px`,zIndex:p})),v=k(()=>{if(!t.showArrow)return{};const{arrow:w}=d(u);return{[`--${g.namespace.value}-tooltip-v2-arrow-x`]:`${w==null?void 0:w.x}px`||"",[`--${g.namespace.value}-tooltip-v2-arrow-y`]:`${w==null?void 0:w.y}px`||""}}),_=k(()=>[g.e("content"),g.is("dark",t.effect==="dark"),g.is(d(i)),t.contentClass]);return Oe(a,()=>h()),Oe(()=>t.placement,w=>r.value=w),vt(()=>{Oe(()=>t.reference||n.value,w=>{o.value=w||void 0},{immediate:!0})}),Lt(Q$,{arrowRef:a}),(w,T)=>(C(),j("div",{ref_key:"contentRef",ref:l,style:rt(d(y)),"data-tooltip-v2-root":""},[w.nowrap?le("v-if",!0):(C(),j("div",{key:0,"data-side":d(m),class:M(d(_))},[we(w.$slots,"default",{contentStyle:d(y),contentClass:d(_)}),I(d(wue),{id:d(s),role:"tooltip"},{default:N(()=>[w.ariaLabel?(C(),j(Ke,{key:0},[Fe(ve(w.ariaLabel),1)],64)):we(w.$slots,"default",{key:1})]),_:3},8,["id"]),we(w.$slots,"arrow",{style:rt(d(v)),side:d(m)})],10,Sue))],4))}});var ix=ze(Eue,[["__file","content.vue"]]);const xue=He({setRef:{type:me(Function),required:!0},onlyChild:Boolean});var kue=Z({props:xue,setup(e,{slots:t}){const n=G(),s=Zm(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?Gj(i.children):i.children;return I(Ke,{ref:s},[a])}}});const Iue=Z({name:"ElTooltipV2Trigger"}),Oue=Z({...Iue,props:{...Y$,...D1},setup(e){const t=e,{onClose:n,onOpen:s,onDelayOpen:r,triggerRef:i,contentId:a}=Qe(yg);let o=!1;const l=_=>{i.value=_},u=()=>{o=!1},c=Cn(t.onMouseEnter,r),f=Cn(t.onMouseLeave,n),h=Cn(t.onMouseDown,()=>{n(),o=!0,document.addEventListener("mouseup",u,{once:!0})}),p=Cn(t.onFocus,()=>{o||s()}),g=Cn(t.onBlur,n),m=Cn(t.onClick,_=>{_.detail===0&&n()}),y={blur:g,click:m,focus:p,mousedown:h,mouseenter:c,mouseleave:f},v=(_,w,T)=>{_&&Object.entries(w).forEach(([S,E])=>{_[T](S,E)})};return Oe(i,(_,w)=>{v(_,y,"addEventListener"),v(w,y,"removeEventListener"),_&&_.setAttribute("aria-describedby",a.value)}),on(()=>{v(i.value,y,"removeEventListener"),document.removeEventListener("mouseup",u)}),(_,w)=>_.nowrap?(C(),he(d(kue),{key:0,"set-ref":l,"only-child":""},{default:N(()=>[we(_.$slots,"default")]),_:3})):(C(),j("button",Rt({key:1,ref_key:"triggerRef",ref:i},_.$attrs),[we(_.$slots,"default")],16))}});var Aue=ze(Oue,[["__file","trigger.vue"]]);const Pue=Z({name:"ElTooltipV2"}),$ue=Z({...Pue,props:hue,setup(e){const n=es(e),s=Ct(Xi(n,Object.keys(M1))),r=Ct(Xi(n,Object.keys(R1))),i=Ct(Xi(n,Object.keys(L1))),a=Ct(Xi(n,Object.keys(D1)));return(o,l)=>(C(),he(gue,Kr(Vm(i)),{default:N(({open:u})=>[I(Aue,Rt(a,{nowrap:""}),{default:N(()=>[we(o.$slots,"trigger")]),_:3},16),(C(),he(rf,{to:o.to,disabled:!o.teleported},[o.fullTransition?(C(),he(Rn,Kr(Rt({key:0},o.transitionProps)),{default:N(()=>[o.alwaysOn||u?(C(),he(ix,Kr(Rt({key:0},r)),{arrow:N(({style:c,side:f})=>[o.showArrow?(C(),he(rx,Rt({key:0},s,{style:c,side:f}),null,16,["style","side"])):le("v-if",!0)]),default:N(()=>[we(o.$slots,"default")]),_:3},16)):le("v-if",!0)]),_:2},1040)):(C(),j(Ke,{key:1},[o.alwaysOn||u?(C(),he(ix,Kr(Rt({key:0},r)),{arrow:N(({style:c,side:f})=>[o.showArrow?(C(),he(rx,Rt({key:0},s,{style:c,side:f}),null,16,["style","side"])):le("v-if",!0)]),default:N(()=>[we(o.$slots,"default")]),_:3},16)):le("v-if",!0)],64))],8,["to","disabled"]))]),_:3},16))}});var Nue=ze($ue,[["__file","tooltip.vue"]]);const Mue=At(Nue),J$="left-check-change",Z$="right-check-change",Nl=He({data:{type:me(Array),default:()=>[]},titles:{type:me(Array),default:()=>[]},buttonTexts:{type:me(Array),default:()=>[]},filterPlaceholder:String,filterMethod:{type:me(Function)},leftDefaultChecked:{type:me(Array),default:()=>[]},rightDefaultChecked:{type:me(Array),default:()=>[]},renderContent:{type:me(Function)},modelValue:{type:me(Array),default:()=>[]},format:{type:me(Object),default:()=>({})},filterable:Boolean,props:{type:me(Object),default:()=>vn({label:"label",key:"key",disabled:"disabled"})},targetOrder:{type:String,values:["original","push","unshift"],default:"original"},validateEvent:{type:Boolean,default:!0}}),Uy=(e,t)=>[e,t].every(st)||st(e)&&Un(t),Rue={[ln]:(e,t,n)=>[e,n].every(st)&&["left","right"].includes(t),[$t]:e=>st(e),[J$]:Uy,[Z$]:Uy},Hy="checked-change",Lue=He({data:Nl.data,optionRender:{type:me(Function)},placeholder:String,title:String,filterable:Boolean,format:Nl.format,filterMethod:Nl.filterMethod,defaultChecked:Nl.leftDefaultChecked,props:Nl.props}),Due={[Hy]:Uy},xf=e=>{const t={label:"label",key:"key",disabled:"disabled"};return k(()=>({...t,...e.props}))},Fue=(e,t,n)=>{const s=xf(e),r=k(()=>e.data.filter(c=>yt(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:p}=e.format;return h&&p?c>0?p.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 Oe(()=>t.checked,(c,f)=>{if(l(),t.checkChangeByUser){const h=c.concat(f).filter(p=>!c.includes(p)||!f.includes(p));n(Hy,c,h)}else n(Hy,c),t.checkChangeByUser=!0}),Oe(i,()=>{l()}),Oe(()=>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}),Oe(()=>e.defaultChecked,(c,f)=>{if(f&&c.length===f.length&&c.every(g=>f.includes(g)))return;const h=[],p=i.value.map(g=>g[s.value.key]);c.forEach(g=>{p.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}},Bue=(e,t)=>({onSourceCheckedChange:(r,i)=>{e.leftChecked=r,i&&t(J$,r,i)},onTargetCheckedChange:(r,i)=>{e.rightChecked=r,i&&t(Z$,r,i)}}),Vue=e=>{const t=xf(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}},Uue=(e,t,n)=>{const s=xf(e),r=(o,l,u)=>{n($t,o),n(ln,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)}}},Hue=Z({name:"ElTransferPanel"}),zue=Z({...Hue,props:Lue,emits:Due,setup(e,{expose:t,emit:n}){const s=e,r=us(),i=({option:w})=>w,{t:a}=Wt(),o=Le("transfer"),l=Ct({checked:[],allChecked:!1,query:"",checkChangeByUser:!0}),u=xf(s),{filteredData:c,checkedSummary:f,isIndeterminate:h,handleAllCheckedChange:p}=Fue(s,l,n),g=k(()=>!wr(l.query)&&wr(c.value)),m=k(()=>!wr(r.default()[0].children)),{checked:y,allChecked:v,query:_}=es(l);return t({query:_}),(w,T)=>(C(),j("div",{class:M(d(o).b("panel"))},[R("p",{class:M(d(o).be("panel","header"))},[I(d($r),{modelValue:d(v),"onUpdate:modelValue":T[0]||(T[0]=S=>an(v)?v.value=S:null),indeterminate:d(h),"validate-event":!1,onChange:d(p)},{default:N(()=>[Fe(ve(w.title)+" ",1),R("span",null,ve(d(f)),1)]),_:1},8,["modelValue","indeterminate","onChange"])],2),R("div",{class:M([d(o).be("panel","body"),d(o).is("with-footer",d(m))])},[w.filterable?(C(),he(d(Fn),{key:0,modelValue:d(_),"onUpdate:modelValue":T[1]||(T[1]=S=>an(_)?_.value=S:null),class:M(d(o).be("panel","filter")),size:"default",placeholder:w.placeholder,"prefix-icon":d(Id),clearable:"","validate-event":!1},null,8,["modelValue","class","placeholder","prefix-icon"])):le("v-if",!0),pt(I(d(eP),{modelValue:d(y),"onUpdate:modelValue":T[2]||(T[2]=S=>an(y)?y.value=S:null),"validate-event":!1,class:M([d(o).is("filterable",w.filterable),d(o).be("panel","list")])},{default:N(()=>[(C(!0),j(Ke,null,bt(d(c),S=>(C(),he(d($r),{key:S[d(u).key],class:M(d(o).be("panel","item")),label:S[d(u).key],disabled:S[d(u).disabled],"validate-event":!1},{default:N(()=>{var E;return[I(i,{option:(E=w.optionRender)==null?void 0:E.call(w,S)},null,8,["option"])]}),_:2},1032,["class","label","disabled"]))),128))]),_:1},8,["modelValue","class"]),[[Vt,!d(g)&&!d(wr)(w.data)]]),pt(R("p",{class:M(d(o).be("panel","empty"))},ve(d(g)?d(a)("el.transfer.noMatch"):d(a)("el.transfer.noData")),3),[[Vt,d(g)||d(wr)(w.data)]])],2),d(m)?(C(),j("p",{key:0,class:M(d(o).be("panel","footer"))},[we(w.$slots,"default")],2)):le("v-if",!0)],2))}});var ax=ze(zue,[["__file","transfer-panel.vue"]]);const jue={key:0},Kue={key:0},Wue=Z({name:"ElTransfer"}),que=Z({...Wue,props:Nl,emits:Rue,setup(e,{expose:t,emit:n}){const s=e,r=us(),{t:i}=Wt(),a=Le("transfer"),{formItem:o}=Bs(),l=Ct({leftChecked:[],rightChecked:[]}),u=xf(s),{sourceData:c,targetData:f}=Vue(s),{onSourceCheckedChange:h,onTargetCheckedChange:p}=Bue(l,n),{addToLeft:g,addToRight:m}=Uue(s,l,n),y=G(),v=G(),_=P=>{switch(P){case"left":y.value.query="";break;case"right":v.value.query="";break}},w=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")),E=k(()=>s.filterPlaceholder||i("el.transfer.filterPlaceholder"));Oe(()=>s.modelValue,()=>{var P;s.validateEvent&&((P=o==null?void 0:o.validate)==null||P.call(o,"change").catch(U=>void 0))});const $=k(()=>P=>s.renderContent?s.renderContent(lt,P):r.default?r.default({option:P}):lt("span",P[u.value.label]||P[u.value.key]));return t({clearQuery:_,leftPanel:y,rightPanel:v}),(P,U)=>(C(),j("div",{class:M(d(a).b())},[I(ax,{ref_key:"leftPanel",ref:y,data:d(c),"option-render":d($),placeholder:d(E),title:d(T),filterable:P.filterable,format:P.format,"filter-method":P.filterMethod,"default-checked":P.leftDefaultChecked,props:s.props,onCheckedChange:d(h)},{default:N(()=>[we(P.$slots,"left-footer")]),_:3},8,["data","option-render","placeholder","title","filterable","format","filter-method","default-checked","props","onCheckedChange"]),R("div",{class:M(d(a).e("buttons"))},[I(d(bn),{type:"primary",class:M([d(a).e("button"),d(a).is("with-texts",d(w))]),disabled:d(wr)(l.rightChecked),onClick:d(g)},{default:N(()=>[I(d(tt),null,{default:N(()=>[I(d(Ka))]),_:1}),d(qn)(P.buttonTexts[0])?le("v-if",!0):(C(),j("span",jue,ve(P.buttonTexts[0]),1))]),_:1},8,["class","disabled","onClick"]),I(d(bn),{type:"primary",class:M([d(a).e("button"),d(a).is("with-texts",d(w))]),disabled:d(wr)(l.leftChecked),onClick:d(m)},{default:N(()=>[d(qn)(P.buttonTexts[1])?le("v-if",!0):(C(),j("span",Kue,ve(P.buttonTexts[1]),1)),I(d(tt),null,{default:N(()=>[I(d(Ns))]),_:1})]),_:1},8,["class","disabled","onClick"])],2),I(ax,{ref_key:"rightPanel",ref:v,data:d(f),"option-render":d($),placeholder:d(E),filterable:P.filterable,format:P.format,"filter-method":P.filterMethod,title:d(S),"default-checked":P.rightDefaultChecked,props:s.props,onCheckedChange:d(p)},{default:N(()=>[we(P.$slots,"right-footer")]),_:3},8,["data","option-render","placeholder","filterable","format","filter-method","title","default-checked","props","onCheckedChange"])],2))}});var Gue=ze(que,[["__file","transfer.vue"]]);const Yue=At(Gue),Ql="$treeNodeId",ox=function(e,t){!t||t[Ql]||Object.defineProperty(t,Ql,{value:e.id,enumerable:!1,configurable:!1,writable:!1})},F1=function(e,t){return e?t[e]:t[Ql]},zy=(e,t,n)=>{const s=e.value.currentNode;n();const r=e.value.currentNode;s!==r&&t("current-change",r?r.data:null,r)},jy=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}},gp=function(e){if(e.childNodes.length===0||e.loading)return;const{all:t,none:n,half:s}=jy(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||gp(r)},Mh=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 Xue=0,Ky=class vp{constructor(t){this.id=Xue++,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)zt(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=Mh(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.expand(),Array.isArray(this.data)||ox(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)||ox(this,t),this.data=t,this.childNodes=[];let n;this.level===0&&Array.isArray(this.data)?n=this.data:n=Mh(this,"children")||[];for(let s=0,r=n.length;s<r;s++)this.insertChild({data:n[s]})}get label(){return Mh(this,"label")}get key(){const t=this.store.key;return this.data?this.data[t]:null}get disabled(){return Mh(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 vp)){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 vp(t)),t instanceof vp&&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||gp(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}=jy(this.childNodes);!this.isLeaf&&!a&&o&&(this.checked=!1,t=!1);const l=()=>{if(n){const u=this.childNodes;for(let h=0,p=u.length;h<p;h++){const g=u[h];r=r||t!==!1;const m=g.disabled?g.checked:r;g.setChecked(m,n,!0,r)}const{half:c,all:f}=jy(u);f||(this.checked=f,this.indeterminate=c)}};if(this.shouldLoadData()){this.loadData(()=>{l(),gp(this)},{checked:t!==!1});return}else l()}const i=this.parent;!i||i.level===0||s||gp(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[Ql];!!o&&n.findIndex(u=>u[Ql]===o)>=0?s[o]={index:a,data:i}:r.push({index:a,data:i})}),this.store.lazy||n.forEach(i=>{s[i[Ql]]||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=r=>{this.childNodes=[],this.doCreateChildren(r,n),this.loaded=!0,this.loading=!1,this.updateLeafState(),t&&t.call(this,r)};this.store.load(this,s)}else t&&t.call(this)}};class Que{constructor(t){this.currentNode=null,this.currentNodeKey=null;for(const n in t)zt(t,n)&&(this[n]=t[n]);this.nodesMap={}}initialize(){if(this.root=new Ky({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.expand()};r(this)}setData(t){t!==this.root.data?(this.root.setData(t),this._initDefaultCheckedNodes()):this.root.updateChildren()}getNode(t){if(t instanceof Ky)return t;const n=Mt(t)?F1(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=n?this.getNode(n):this.root;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)zt(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((o,l)=>l.level-o.level),i=Object.create(null),a=Object.keys(s);r.forEach(o=>o.setChecked(!1,!1));for(let o=0,l=r.length;o<l;o++){const u=r[o],c=u.data[t].toString();if(!a.includes(c)){u.checked&&!i[c]&&u.setChecked(!1,!1);continue}let h=u.parent;for(;h&&h.level>0;)i[h.data[t]]=!0,h=h.parent;if(u.isLeaf||this.checkStrictly){u.setChecked(!0,!1);continue}if(u.setChecked(!0,!0),n){u.setChecked(!1,!1);const p=function(g){g.childNodes.forEach(y=>{y.isLeaf||y.setChecked(!1,!1),p(y)})};p(u)}}}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 Jue=Z({name:"ElTreeNodeContent",props:{node:{type:Object,required:!0},renderContent:Function},setup(e){const t=Le("tree"),n=Qe("NodeInstance"),s=Qe("RootTree");return()=>{const r=e.node,{data:i,store:a}=r;return e.renderContent?e.renderContent(lt,{_self:n,node:r,data:i,store:a}):we(s.ctx.slots,"default",{node:r,data:i},()=>[lt("span",{class:t.be("node","label")},[r.label])])}}});var Zue=ze(Jue,[["__file","tree-node-content.vue"]]);function eN(e){const t=Qe("TreeNodeMap",null),n={treeNodeExpand:s=>{e.node!==s&&e.node.collapse()},children:[]};return t&&t.children.push(n),Lt("TreeNodeMap",n),{broadcastExpanded:s=>{if(e.accordion)for(const r of n.children)r.treeNodeExpand(s)}}}const tN=Symbol("dragEvents");function ece({props:e,ctx:t,el$:n,dropIndicator$:s,store:r}){const i=Le("tree"),a=G({showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0,dropType:null});return Lt(tN,{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,p=a.value.dropNode;p&&p.node.id!==h.node.id&&Xs(p.$el,i.is("drop-inner"));const g=a.value.draggingNode;if(!g||!h)return;let m=!0,y=!0,v=!0,_=!0;typeof e.allowDrop=="function"&&(m=e.allowDrop(g.node,h.node,"prev"),_=y=e.allowDrop(g.node,h.node,"inner"),v=e.allowDrop(g.node,h.node,"next")),c.dataTransfer.dropEffect=y||m||v?"move":"none",(m||y||v)&&(p==null?void 0:p.node.id)!==h.node.id&&(p&&t.emit("node-drag-leave",g.node,p.node,c),t.emit("node-drag-enter",g.node,h.node,c)),(m||y||v)&&(a.value.dropNode=h),h.node.nextSibling===g.node&&(v=!1),h.node.previousSibling===g.node&&(m=!1),h.node.contains(g.node,!1)&&(y=!1),(g.node===h.node||g.node.contains(h.node))&&(m=!1,y=!1,v=!1);const w=h.$el.querySelector(`.${i.be("node","content")}`).getBoundingClientRect(),T=n.value.getBoundingClientRect();let S;const E=m?y?.25:v?.45:1:-1,$=v?y?.75:m?.55:0:1;let P=-9999;const U=c.clientY-w.top;U<w.height*E?S="before":U>w.height*$?S="after":y?S="inner":S="none";const H=h.$el.querySelector(`.${i.be("node","expand-icon")}`).getBoundingClientRect(),z=s.value;S==="before"?P=H.top-T.top:S==="after"&&(P=H.bottom-T.top),z.style.top=`${P}px`,z.style.left=`${H.right-T.left}px`,S==="inner"?pi(h.$el,i.is("drop-inner")):Xs(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:p}=a.value;if(c.preventDefault(),c.dataTransfer.dropEffect="move",f&&p){const g={data:f.node.data};h!=="none"&&f.node.remove(),h==="before"?p.node.parent.insertBefore(g,p.node):h==="after"?p.node.parent.insertAfter(g,p.node):h==="inner"&&p.node.insertChild(g),h!=="none"&&r.value.registerNode(g),Xs(p.$el,i.is("drop-inner")),t.emit("node-drag-end",f.node,p.node,h,c),h!=="none"&&t.emit("node-drop",f.node,p.node,h,c)}f&&!p&&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 tce=Z({name:"ElTreeNode",components:{ElCollapseTransition:fg,ElCheckbox:$r,NodeContent:Zue,ElIcon:tt,Loading:no},props:{node:{type:Ky,default:()=>({})},props:{type:Object,default:()=>({})},accordion:Boolean,renderContent:Function,renderAfterExpand:Boolean,showCheckbox:{type:Boolean,default:!1}},emits:["node-expand"],setup(e,t){const n=Le("tree"),{broadcastExpanded:s}=eN(e),r=Qe("RootTree"),i=G(!1),a=G(!1),o=G(null),l=G(null),u=G(null),c=Qe(tN),f=It();Lt("NodeInstance",f),e.node.expanded&&(i.value=!0,a.value=!0);const h=r.props.props.children||"children";Oe(()=>{const U=e.node.data[h];return U&&[...U]},()=>{e.node.updateChildren()}),Oe(()=>e.node.indeterminate,U=>{m(e.node.checked,U)}),Oe(()=>e.node.checked,U=>{m(U,e.node.indeterminate)}),Oe(()=>e.node.expanded,U=>{at(()=>i.value=U),U&&(a.value=!0)});const p=U=>F1(r.props.nodeKey,U.data),g=U=>{const H=e.props.class;if(!H)return{};let z;if(yt(H)){const{data:W}=U;z=H(W,U)}else z=H;return Tt(z)?{[z]:!0}:z},m=(U,H)=>{(o.value!==U||l.value!==H)&&r.ctx.emit("check-change",e.node.data,U,H),o.value=U,l.value=H},y=U=>{zy(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&&w(null,{target:{checked:!e.node.checked}}),r.ctx.emit("node-click",e.node.data,e.node,f,U)},v=U=>{r.instance.vnode.props.onNodeContextmenu&&(U.stopPropagation(),U.preventDefault()),r.ctx.emit("node-contextmenu",U,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)))},w=(U,H)=>{e.node.setChecked(H.target.checked,!r.props.checkStrictly),at(()=>{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:p,getNodeClass:g,handleSelectChange:m,handleClick:y,handleContextMenu:v,handleExpandIconClick:_,handleCheckChange:w,handleChildNodeExpand:(U,H,z)=>{s(H),r.ctx.emit("node-expand",U,H,z)},handleDragStart:U=>{r.props.draggable&&c.treeNodeDragStart({event:U,treeNode:e})},handleDragOver:U=>{U.preventDefault(),r.props.draggable&&c.treeNodeDragOver({event:U,treeNode:{$el:u.value,node:e.node}})},handleDrop:U=>{U.preventDefault()},handleDragEnd:U=>{r.props.draggable&&c.treeNodeDragEnd(U)},CaretRight:Xm}}}),nce=["aria-expanded","aria-disabled","aria-checked","draggable","data-key"],sce=["aria-expanded"];function rce(e,t,n,s,r,i){const a=Et("el-icon"),o=Et("el-checkbox"),l=Et("loading"),u=Et("node-content"),c=Et("el-tree-node"),f=Et("el-collapse-transition");return pt((C(),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:t[1]||(t[1]=dt((...h)=>e.handleClick&&e.handleClick(...h),["stop"])),onContextmenu:t[2]||(t[2]=(...h)=>e.handleContextMenu&&e.handleContextMenu(...h)),onDragstart:t[3]||(t[3]=dt((...h)=>e.handleDragStart&&e.handleDragStart(...h),["stop"])),onDragover:t[4]||(t[4]=dt((...h)=>e.handleDragOver&&e.handleDragOver(...h),["stop"])),onDragend:t[5]||(t[5]=dt((...h)=>e.handleDragEnd&&e.handleDragEnd(...h),["stop"])),onDrop:t[6]||(t[6]=dt((...h)=>e.handleDrop&&e.handleDrop(...h),["stop"]))},[R("div",{class:M(e.ns.be("node","content")),style:rt({paddingLeft:(e.node.level-1)*e.tree.props.indent+"px"})},[e.tree.props.icon||e.CaretRight?(C(),he(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:dt(e.handleExpandIconClick,["stop"])},{default:N(()=>[(C(),he(Nt(e.tree.props.icon||e.CaretRight)))]),_:1},8,["class","onClick"])):le("v-if",!0),e.showCheckbox?(C(),he(o,{key:1,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:!!e.node.disabled,onClick:t[0]||(t[0]=dt(()=>{},["stop"])),onChange:e.handleCheckChange},null,8,["model-value","indeterminate","disabled","onChange"])):le("v-if",!0),e.node.loading?(C(),he(a,{key:2,class:M([e.ns.be("node","loading-icon"),e.ns.is("loading")])},{default:N(()=>[I(l)]),_:1},8,["class"])):le("v-if",!0),I(u,{node:e.node,"render-content":e.renderContent},null,8,["node","render-content"])],6),I(f,null,{default:N(()=>[!e.renderAfterExpand||e.childNodeRendered?pt((C(),j("div",{key:0,class:M(e.ns.be("node","children")),role:"group","aria-expanded":e.expanded},[(C(!0),j(Ke,null,bt(e.node.childNodes,h=>(C(),he(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,sce)),[[Vt,e.expanded]]):le("v-if",!0)]),_:1})],42,nce)),[[Vt,e.node.visible]])}var ice=ze(tce,[["render",rce],["__file","tree-node.vue"]]);function ace({el$:e},t){const n=Le("tree"),s=Jt([]),r=Jt([]);vt(()=>{a()}),ha(()=>{s.value=Array.from(e.value.querySelectorAll("[role=treeitem]")),r.value=Array.from(e.value.querySelectorAll("input[type=checkbox]"))}),Oe(r,o=>{o.forEach(l=>{l.setAttribute("tabindex","-1")})}),dn(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([ot.up,ot.down].includes(u)){if(o.preventDefault(),u===ot.up){f=c===-1?0:c!==0?c-1:s.value.length-1;const p=f;for(;!t.value.getNode(s.value[f].dataset.key).canFocus;){if(f--,f===p){f=-1;break}f<0&&(f=s.value.length-1)}}else{f=c===-1?0:c<s.value.length-1?c+1:0;const p=f;for(;!t.value.getNode(s.value[f].dataset.key).canFocus;){if(f++,f===p){f=-1;break}f>=s.value.length&&(f=0)}}f!==-1&&s.value[f].focus()}[ot.left,ot.right].includes(u)&&(o.preventDefault(),l.click());const h=l.querySelector('[type="checkbox"]');[ot.enter,ot.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 oce=Z({name:"ElTree",components:{ElTreeNode:ice},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:sn}},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}=Wt(),s=Le("tree"),r=G(new Que({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}));r.value.initialize();const i=G(r.value.root),a=G(null),o=G(null),l=G(null),{broadcastExpanded:u}=eN(e),{dragState:c}=ece({props:e,ctx:t,el$:o,dropIndicator$:l,store:r});ace({el$:o},r);const f=k(()=>{const{childNodes:B}=i.value;return!B||B.length===0||B.every(({visible:K})=>!K)});Oe(()=>e.currentNodeKey,B=>{r.value.setCurrentNodeKey(B)}),Oe(()=>e.defaultCheckedKeys,B=>{r.value.setDefaultCheckedKey(B)}),Oe(()=>e.defaultExpandedKeys,B=>{r.value.setDefaultExpandedKeys(B)}),Oe(()=>e.data,B=>{r.value.setData(B)},{deep:!0}),Oe(()=>e.checkStrictly,B=>{r.value.checkStrictly=B});const h=B=>{if(!e.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");r.value.filter(B)},p=B=>F1(e.nodeKey,B.data),g=B=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getNodePath");const K=r.value.getNode(B);if(!K)return[];const L=[K.data];let Q=K.parent;for(;Q&&Q!==i.value;)L.push(Q.data),Q=Q.parent;return L.reverse()},m=(B,K)=>r.value.getCheckedNodes(B,K),y=B=>r.value.getCheckedKeys(B),v=()=>{const B=r.value.getCurrentNode();return B?B.data:null},_=()=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getCurrentKey");const B=v();return B?B[e.nodeKey]:null},w=(B,K)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedNodes");r.value.setCheckedNodes(B,K)},T=(B,K)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedKeys");r.value.setCheckedKeys(B,K)},S=(B,K,L)=>{r.value.setChecked(B,K,L)},E=()=>r.value.getHalfCheckedNodes(),$=()=>r.value.getHalfCheckedKeys(),P=(B,K=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentNode");zy(r,t.emit,()=>r.value.setUserCurrentNode(B,K))},U=(B,K=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentKey");zy(r,t.emit,()=>r.value.setCurrentNodeKey(B,K))},H=B=>r.value.getNode(B),z=B=>{r.value.remove(B)},W=(B,K)=>{r.value.append(B,K)},D=(B,K)=>{r.value.insertBefore(B,K)},V=(B,K)=>{r.value.insertAfter(B,K)},X=(B,K,L)=>{u(K),t.emit("node-expand",B,K,L)},Y=(B,K)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in updateKeyChild");r.value.updateChildren(B,K)};return Lt("RootTree",{ctx:t,props:e,store:r,root:i,currentNode:a,instance:It()}),Lt(Ai,void 0),{ns:s,store:r,root:i,currentNode:a,dragState:c,el$:o,dropIndicator$:l,isEmpty:f,filter:h,getNodeKey:p,getNodePath:g,getCheckedNodes:m,getCheckedKeys:y,getCurrentNode:v,getCurrentKey:_,setCheckedNodes:w,setCheckedKeys:T,setChecked:S,getHalfCheckedNodes:E,getHalfCheckedKeys:$,setCurrentNode:P,setCurrentKey:U,t:n,getNode:H,remove:z,append:W,insertBefore:D,insertAfter:V,handleNodeExpand:X,updateKeyChildren:Y}}});function lce(e,t,n,s,r,i){const a=Et("el-tree-node");return C(),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"},[(C(!0),j(Ke,null,bt(e.root.childNodes,o=>(C(),he(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?(C(),j("div",{key:0,class:M(e.ns.e("empty-block"))},[we(e.$slots,"empty",{},()=>{var o;return[R("span",{class:M(e.ns.e("empty-text"))},ve((o=e.emptyText)!=null?o:e.t("el.tree.emptyText")),3)]})],2)):le("v-if",!0),pt(R("div",{ref:"dropIndicator$",class:M(e.ns.e("drop-indicator"))},null,2),[[Vt,e.dragState.showDropIndicator]])],2)}var yp=ze(oce,[["render",lce],["__file","tree.vue"]]);yp.install=e=>{e.component(yp.name,yp)};const Zp=yp,uce=Zp,cce=(e,{attrs:t,emit:n},{tree:s,key:r})=>{const i=Le("tree-select"),a={...Xi(es(e),Object.keys(ei.props)),...t,"onUpdate:modelValue":o=>n($t,o),valueKey:r,popperClass:k(()=>{const o=[i.e("popper")];return e.popperClass&&o.push(e.popperClass),o.join(" ")}),filterMethod:(o="")=>{e.filterMethod&&e.filterMethod(o),at(()=>{var l;(l=s.value)==null||l.filter(o)})},onVisibleChange:o=>{var l;(l=t.onVisibleChange)==null||l.call(t,o),e.filterable&&o&&a.filterMethod()}};return a},dce=Z({extends:Ga,setup(e,t){const n=Ga.setup(e,t);delete n.selectOptionClick;const s=It().proxy;return at(()=>{n.select.cachedOptions.get(s.value)||n.select.onOptionCreate(s)}),n},methods:{selectOptionClick(){this.$el.parentElement.click()}}});function Wy(e){return e||e===0}function B1(e){return Array.isArray(e)&&e.length}function Tc(e){return Array.isArray(e)?e:Wy(e)?[e]:[]}function bp(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(B1(o)){const l=bp(o,t,n,s,a);if(l)return l}}}}function nN(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);B1(a)&&nN(a,t,n,i)}}const fce=(e,{attrs:t,slots:n,emit:s},{select:r,tree:i,key:a})=>{Oe(()=>e.modelValue,()=>{e.showCheckbox&&at(()=>{const h=i.value;h&&!Ys(h.getCheckedKeys(),Tc(e.modelValue))&&h.setCheckedKeys(Tc(e.modelValue))})},{immediate:!0,deep:!0});const o=k(()=>({value:a.value,label:"label",children:"children",disabled:"disabled",isLeaf:"isLeaf",...e.props})),l=(h,p)=>{var g;const m=o.value[h];return yt(m)?m(p,(g=i.value)==null?void 0:g.getNode(l("value",p))):p[m]},u=Tc(e.modelValue).map(h=>bp(e.data||[],p=>l("value",p)===h,p=>l("children",p),(p,g,m,y)=>y&&l("value",y))).filter(h=>Wy(h)),c=k(()=>{if(!e.renderAfterExpand&&!e.lazy)return[];const h=[];return nN(e.data.concat(e.cacheData),p=>{const g=l("value",p);h.push({value:g,currentLabel:l("label",p),isDisabled:l("disabled",p)})},p=>l("children",p)),h}),f=k(()=>c.value.reduce((h,p)=>({...h,[p.value]:p}),{}));return{...Xi(es(e),Object.keys(Zp.props)),...t,nodeKey:a,expandOnClickNode:k(()=>!e.checkStrictly&&e.expandOnClickNode),defaultExpandedKeys:k(()=>e.defaultExpandedKeys?e.defaultExpandedKeys.concat(u):u),renderContent:(h,{node:p,data:g,store:m})=>h(dce,{value:l("value",g),label:l("label",g),disabled:l("disabled",g)},e.renderContent?()=>e.renderContent(h,{node:p,data:g,store:m}):n.default?()=>n.default({node:p,data:g,store:m}):void 0),filterNodeMethod:(h,p,g)=>{var m;return e.filterNodeMethod?e.filterNodeMethod(h,p,g):h?(m=l("label",p))==null?void 0:m.includes(h):!0},onNodeClick:(h,p,g)=>{var m,y,v;if((m=t.onNodeClick)==null||m.call(t,h,p,g),!(e.showCheckbox&&e.checkOnClickNode))if(!e.showCheckbox&&(e.checkStrictly||p.isLeaf)){if(!l("disabled",h)){const _=(y=r.value)==null?void 0:y.options.get(l("value",h));(v=r.value)==null||v.handleOptionSelect(_)}}else e.expandOnClickNode&&g.proxy.handleExpandIconClick()},onCheck:(h,p)=>{if(!e.showCheckbox)return;const g=l("value",h),m=p.checkedKeys,y=e.multiple?Tc(e.modelValue).filter(_=>_ in f.value&&!i.value.getNode(_)&&!m.includes(_)):[],v=m.concat(y);if(e.checkStrictly)s($t,e.multiple?v:v.includes(g)?g:void 0);else if(e.multiple)s($t,i.value.getCheckedKeys(!0));else{const _=bp([h],S=>!B1(l("children",S))&&!l("disabled",S),S=>l("children",S)),w=_?l("value",_):void 0,T=Wy(e.modelValue)&&!!bp([h],S=>l("value",S)===e.modelValue,S=>l("children",S));s($t,w===e.modelValue||T?void 0:w)}at(()=>{var _;const w=Tc(e.modelValue);i.value.setCheckedKeys(w),(_=t.onCheck)==null||_.call(t,h,{checkedKeys:i.value.getCheckedKeys(),checkedNodes:i.value.getCheckedNodes(),halfCheckedKeys:i.value.getHalfCheckedKeys(),halfCheckedNodes:i.value.getHalfCheckedNodes()})})},cacheOptions:c}};var hce=Z({props:{data:{type:Array,default:()=>[]}},setup(e){const t=Qe(_f);return Oe(()=>e.data,()=>{var n;e.data.forEach(r=>{t.cachedOptions.has(r.value)||t.cachedOptions.set(r.value,r)});const s=((n=t.selectWrapper)==null?void 0:n.querySelectorAll("input"))||[];Array.from(s).includes(document.activeElement)||t.setSelected()},{flush:"post",immediate:!0}),()=>{}}});const pce=Z({name:"ElTreeSelect",inheritAttrs:!1,props:{...ei.props,...Zp.props,cacheData:{type:Array,default:()=>[]}},setup(e,t){const{slots:n,expose:s}=t,r=G(),i=G(),a=k(()=>e.nodeKey||e.valueKey||"value"),o=cce(e,t,{select:r,tree:i,key:a}),{cacheOptions:l,...u}=fce(e,t,{select:r,tree:i,key:a}),c=Ct({});return s(c),vt(()=>{Object.assign(c,{...Xi(i.value,["filter","updateKeyChildren","getCheckedNodes","setCheckedNodes","getCheckedKeys","setCheckedKeys","setChecked","getHalfCheckedNodes","getHalfCheckedKeys","getCurrentKey","getCurrentNode","setCurrentKey","setCurrentNode","getNode","remove","append","insertBefore","insertAfter"]),...Xi(r.value,["focus","blur"])})}),()=>lt(ei,Ct({...o,ref:f=>r.value=f}),{...n,default:()=>[lt(hce,{data:l.value}),lt(Zp,Ct({...u,ref:f=>i.value=f}))]})}});var _p=ze(pce,[["__file","tree-select.vue"]]);_p.install=e=>{e.component(_p.name,_p)};const mce=_p,gce=mce,V1=Symbol(),vce={key:-1,level:-1,data:{}};var Mc=(e=>(e.KEY="id",e.LABEL="label",e.CHILDREN="children",e.DISABLED="disabled",e))(Mc||{}),qy=(e=>(e.ADD="add",e.DELETE="delete",e))(qy||{});const sN={type:Number,default:26},yce=He({data:{type:me(Array),default:()=>vn([])},emptyText:{type:String},height:{type:Number,default:200},props:{type:me(Object),default:()=>vn({children:"children",label:"label",disabled:"disabled",value:"id"})},highlightCurrent:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},defaultCheckedKeys:{type:me(Array),default:()=>vn([])},checkStrictly:{type:Boolean,default:!1},defaultExpandedKeys:{type:me(Array),default:()=>vn([])},indent:{type:Number,default:16},itemSize:sN,icon:{type:sn},expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:{type:Boolean,default:!1},currentNodeKey:{type:me([String,Number])},accordion:{type:Boolean,default:!1},filterMethod:{type:me(Function)},perfMode:{type:Boolean,default:!0}}),bce=He({node:{type:me(Object),default:()=>vn(vce)},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:sN}),_ce=He({node:{type:me(Object),required:!0}}),rN="node-click",iN="node-expand",aN="node-collapse",oN="current-change",lN="check",uN="check-change",cN="node-contextmenu",Tce={[rN]:(e,t,n)=>e&&t&&n,[iN]:(e,t)=>e&&t,[aN]:(e,t)=>e&&t,[oN]:(e,t)=>e&&t,[lN]:(e,t)=>e&&t,[uN]:(e,t)=>e&&typeof t=="boolean",[cN]:(e,t,n)=>e&&t&&n},wce={click:(e,t)=>!!(e&&t),toggle:e=>!!e,check:(e,t)=>e&&typeof t=="boolean"};function Sce(e,t){const n=G(new Set),s=G(new Set),{emit:r}=It();Oe([()=>t.value,()=>e.defaultCheckedKeys],()=>at(()=>{_(e.defaultCheckedKeys)}),{immediate:!0});const i=()=>{if(!t.value||!e.showCheckbox||e.checkStrictly)return;const{levelTreeNodeMap:w,maxLevel:T}=t.value,S=n.value,E=new Set;for(let $=T-1;$>=1;--$){const P=w.get($);P&&P.forEach(U=>{const H=U.children;if(H){let z=!0,W=!1;for(const D of H){const V=D.key;if(S.has(V))W=!0;else if(E.has(V)){z=!1,W=!0;break}else z=!1}z?S.add(U.key):W?(E.add(U.key),S.delete(U.key)):(S.delete(U.key),E.delete(U.key))}})}s.value=E},a=w=>n.value.has(w.key),o=w=>s.value.has(w.key),l=(w,T,S=!0)=>{const E=n.value,$=(P,U)=>{E[U?qy.ADD:qy.DELETE](P.key);const H=P.children;!e.checkStrictly&&H&&H.forEach(z=>{z.disabled||$(z,U)})};$(w,T),i(),S&&u(w,T)},u=(w,T)=>{const{checkedNodes:S,checkedKeys:E}=g(),{halfCheckedNodes:$,halfCheckedKeys:P}=m();r(lN,w.data,{checkedKeys:E,checkedNodes:S,halfCheckedKeys:P,halfCheckedNodes:$}),r(uN,w.data,T)};function c(w=!1){return g(w).checkedKeys}function f(w=!1){return g(w).checkedNodes}function h(){return m().halfCheckedKeys}function p(){return m().halfCheckedNodes}function g(w=!1){const T=[],S=[];if(t!=null&&t.value&&e.showCheckbox){const{treeNodeMap:E}=t.value;n.value.forEach($=>{const P=E.get($);P&&(!w||w&&P.isLeaf)&&(S.push($),T.push(P.data))})}return{checkedKeys:S,checkedNodes:T}}function m(){const w=[],T=[];if(t!=null&&t.value&&e.showCheckbox){const{treeNodeMap:S}=t.value;s.value.forEach(E=>{const $=S.get(E);$&&(T.push(E),w.push($.data))})}return{halfCheckedNodes:w,halfCheckedKeys:T}}function y(w){n.value.clear(),s.value.clear(),_(w)}function v(w,T){if(t!=null&&t.value&&e.showCheckbox){const S=t.value.treeNodeMap.get(w);S&&l(S,T,!1)}}function _(w){if(t!=null&&t.value){const{treeNodeMap:T}=t.value;if(e.showCheckbox&&T&&w)for(const S of w){const E=T.get(S);E&&!a(E)&&l(E,!0,!1)}}}return{updateCheckedKeys:i,toggleCheckbox:l,isChecked:a,isIndeterminate:o,getCheckedKeys:c,getCheckedNodes:f,getHalfCheckedKeys:h,getHalfCheckedNodes:p,setChecked:v,setCheckedKeys:y}}function Cce(e,t){const n=G(new Set([])),s=G(new Set([])),r=k(()=>yt(e.filterMethod));function i(o){var l;if(!r.value)return;const u=new Set,c=s.value,f=n.value,h=[],p=((l=t.value)==null?void 0:l.treeNodes)||[],g=e.filterMethod;f.clear();function m(y){y.forEach(v=>{h.push(v),g!=null&&g(o,v.data)?h.forEach(w=>{u.add(w.key)}):v.isLeaf&&f.add(v.key);const _=v.children;if(_&&m(_),!v.isLeaf){if(!u.has(v.key))f.add(v.key);else if(_){let w=!0;for(const T of _)if(!f.has(T.key)){w=!1;break}w?c.add(v.key):c.delete(v.key)}}h.pop()})}return m(p),u}function a(o){return s.value.has(o.key)}return{hiddenExpandIconKeySet:s,hiddenNodeKeySet:n,doFilter:i,isForceHiddenExpandIcon:a}}function Ece(e,t){const n=G(new Set(e.defaultExpandedKeys)),s=G(),r=Jt();Oe(()=>e.currentNodeKey,ae=>{s.value=ae},{immediate:!0}),Oe(()=>e.data,ae=>{oe(ae)},{immediate:!0});const{isIndeterminate:i,isChecked:a,toggleCheckbox:o,getCheckedKeys:l,getCheckedNodes:u,getHalfCheckedKeys:c,getHalfCheckedNodes:f,setChecked:h,setCheckedKeys:p}=Sce(e,r),{doFilter:g,hiddenNodeKeySet:m,isForceHiddenExpandIcon:y}=Cce(e,r),v=k(()=>{var ae;return((ae=e.props)==null?void 0:ae.value)||Mc.KEY}),_=k(()=>{var ae;return((ae=e.props)==null?void 0:ae.children)||Mc.CHILDREN}),w=k(()=>{var ae;return((ae=e.props)==null?void 0:ae.disabled)||Mc.DISABLED}),T=k(()=>{var ae;return((ae=e.props)==null?void 0:ae.label)||Mc.LABEL}),S=k(()=>{const ae=n.value,Ie=m.value,ke=[],Ee=r.value&&r.value.treeNodes||[];function J(){const re=[];for(let Se=Ee.length-1;Se>=0;--Se)re.push(Ee[Se]);for(;re.length;){const Se=re.pop();if(Se&&(Ie.has(Se.key)||ke.push(Se),ae.has(Se.key))){const Ae=Se.children;if(Ae){const Be=Ae.length;for(let Pe=Be-1;Pe>=0;--Pe)re.push(Ae[Pe])}}}}return J(),ke}),E=k(()=>S.value.length>0);function $(ae){const Ie=new Map,ke=new Map;let Ee=1;function J(Se,Ae=1,Be=void 0){var Pe;const Ve=[];for(const $e of Se){const Te=H($e),De={level:Ae,key:Te,data:$e};De.label=W($e),De.parent=Be;const qe=U($e);De.disabled=z($e),De.isLeaf=!qe||qe.length===0,qe&&qe.length&&(De.children=J(qe,Ae+1,De)),Ve.push(De),Ie.set(Te,De),ke.has(Ae)||ke.set(Ae,[]),(Pe=ke.get(Ae))==null||Pe.push(De)}return Ae>Ee&&(Ee=Ae),Ve}const re=J(ae);return{treeNodeMap:Ie,levelTreeNodeMap:ke,maxLevel:Ee,treeNodes:re}}function P(ae){const Ie=g(ae);Ie&&(n.value=Ie)}function U(ae){return ae[_.value]}function H(ae){return ae?ae[v.value]:""}function z(ae){return ae[w.value]}function W(ae){return ae[T.value]}function D(ae){n.value.has(ae.key)?L(ae):K(ae)}function V(ae){n.value=new Set(ae)}function X(ae,Ie){t(rN,ae.data,ae,Ie),Y(ae),e.expandOnClickNode&&D(ae),e.showCheckbox&&e.checkOnClickNode&&!ae.disabled&&o(ae,!a(ae),!0)}function Y(ae){te(ae)||(s.value=ae.key,t(oN,ae.data,ae))}function B(ae,Ie){o(ae,Ie)}function K(ae){const Ie=n.value;if(r.value&&e.accordion){const{treeNodeMap:ke}=r.value;Ie.forEach(Ee=>{const J=ke.get(Ee);ae&&ae.level===(J==null?void 0:J.level)&&Ie.delete(Ee)})}Ie.add(ae.key),t(iN,ae.data,ae)}function L(ae){n.value.delete(ae.key),t(aN,ae.data,ae)}function Q(ae){return n.value.has(ae.key)}function ee(ae){return!!ae.disabled}function te(ae){const Ie=s.value;return Ie!==void 0&&Ie===ae.key}function ie(){var ae,Ie;if(s.value)return(Ie=(ae=r.value)==null?void 0:ae.treeNodeMap.get(s.value))==null?void 0:Ie.data}function _e(){return s.value}function ue(ae){s.value=ae}function oe(ae){at(()=>r.value=$(ae))}function de(ae){var Ie;const ke=Mt(ae)?H(ae):ae;return(Ie=r.value)==null?void 0:Ie.treeNodeMap.get(ke)}return{tree:r,flattenTree:S,isNotEmpty:E,getKey:H,getChildren:U,toggleExpand:D,toggleCheckbox:o,isExpanded:Q,isChecked:a,isIndeterminate:i,isDisabled:ee,isCurrent:te,isForceHiddenExpandIcon:y,handleNodeClick:X,handleNodeCheck:B,getCurrentNode:ie,getCurrentKey:_e,setCurrentKey:ue,getCheckedKeys:l,getCheckedNodes:u,getHalfCheckedKeys:c,getHalfCheckedNodes:f,setChecked:h,setCheckedKeys:p,filter:P,setData:oe,getNode:de,expandNode:K,collapseNode:L,setExpandedKeys:V}}var xce=Z({name:"ElTreeNodeContent",props:_ce,setup(e){const t=Qe(V1),n=Le("tree");return()=>{const s=e.node,{data:r}=s;return t!=null&&t.ctx.slots.default?t.ctx.slots.default({node:s,data:r}):lt("span",{class:n.be("node","label")},[s==null?void 0:s.label])}}});const kce=["aria-expanded","aria-disabled","aria-checked","data-key","onClick"],Ice=Z({name:"ElTreeNode"}),Oce=Z({...Ice,props:bce,emits:wce,setup(e,{emit:t}){const n=e,s=Qe(V1),r=Le("tree"),i=k(()=>{var f;return(f=s==null?void 0:s.props.indent)!=null?f:16}),a=k(()=>{var f;return(f=s==null?void 0:s.props.icon)!=null?f:Xm}),o=f=>{t("click",n.node,f)},l=()=>{t("toggle",n.node)},u=f=>{t("check",n.node,f)},c=f=>{var h,p,g,m;(g=(p=(h=s==null?void 0:s.instance)==null?void 0:h.vnode)==null?void 0:p.props)!=null&&g.onNodeContextmenu&&(f.stopPropagation(),f.preventDefault()),s==null||s.ctx.emit(cN,f,(m=n.node)==null?void 0:m.data,n.node)};return(f,h)=>{var p,g,m;return C(),j("div",{ref:"node$",class:M([d(r).b("node"),d(r).is("expanded",f.expanded),d(r).is("current",f.current),d(r).is("focusable",!f.disabled),d(r).is("checked",!f.disabled&&f.checked)]),role:"treeitem",tabindex:"-1","aria-expanded":f.expanded,"aria-disabled":f.disabled,"aria-checked":f.checked,"data-key":(p=f.node)==null?void 0:p.key,onClick:dt(o,["stop"]),onContextmenu:c},[R("div",{class:M(d(r).be("node","content")),style:rt({paddingLeft:`${(f.node.level-1)*d(i)}px`,height:f.itemSize+"px"})},[d(a)?(C(),he(d(tt),{key:0,class:M([d(r).is("leaf",!!((g=f.node)!=null&&g.isLeaf)),d(r).is("hidden",f.hiddenExpandIcon),{expanded:!((m=f.node)!=null&&m.isLeaf)&&f.expanded},d(r).be("node","expand-icon")]),onClick:dt(l,["stop"])},{default:N(()=>[(C(),he(Nt(d(a))))]),_:1},8,["class","onClick"])):le("v-if",!0),f.showCheckbox?(C(),he(d($r),{key:1,"model-value":f.checked,indeterminate:f.indeterminate,disabled:f.disabled,onChange:u,onClick:h[0]||(h[0]=dt(()=>{},["stop"]))},null,8,["model-value","indeterminate","disabled"])):le("v-if",!0),I(d(xce),{node:f.node},null,8,["node"])],6)],42,kce)}}});var Ace=ze(Oce,[["__file","tree-node.vue"]]);const Pce=Z({name:"ElTreeV2"}),$ce=Z({...Pce,props:yce,emits:Tce,setup(e,{expose:t,emit:n}){const s=e,r=us(),i=k(()=>s.itemSize);Lt(V1,{ctx:{emit:n,slots:r},props:s,instance:It()}),Lt(Ai,void 0);const{t:a}=Wt(),o=Le("tree"),{flattenTree:l,isNotEmpty:u,toggleExpand:c,isExpanded:f,isIndeterminate:h,isChecked:p,isDisabled:g,isCurrent:m,isForceHiddenExpandIcon:y,handleNodeClick:v,handleNodeCheck:_,toggleCheckbox:w,getCurrentNode:T,getCurrentKey:S,setCurrentKey:E,getCheckedKeys:$,getCheckedNodes:P,getHalfCheckedKeys:U,getHalfCheckedNodes:H,setChecked:z,setCheckedKeys:W,filter:D,setData:V,getNode:X,expandNode:Y,collapseNode:B,setExpandedKeys:K}=Ece(s,n);return t({toggleCheckbox:w,getCurrentNode:T,getCurrentKey:S,setCurrentKey:E,getCheckedKeys:$,getCheckedNodes:P,getHalfCheckedKeys:U,getHalfCheckedNodes:H,setChecked:z,setCheckedKeys:W,filter:D,setData:V,getNode:X,expandNode:Y,collapseNode:B,setExpandedKeys:K}),(L,Q)=>{var ee;return C(),j("div",{class:M([d(o).b(),{[d(o).m("highlight-current")]:L.highlightCurrent}]),role:"tree"},[d(u)?(C(),he(d(m$),{key:0,"class-name":d(o).b("virtual-list"),data:d(l),total:d(l).length,height:L.height,"item-size":d(i),"perf-mode":L.perfMode},{default:N(({data:te,index:ie,style:_e})=>[(C(),he(Ace,{key:te[ie].key,style:rt(_e),node:te[ie],expanded:d(f)(te[ie]),"show-checkbox":L.showCheckbox,checked:d(p)(te[ie]),indeterminate:d(h)(te[ie]),"item-size":d(i),disabled:d(g)(te[ie]),current:d(m)(te[ie]),"hidden-expand-icon":d(y)(te[ie]),onClick:d(v),onToggle:d(c),onCheck:d(_)},null,8,["style","node","expanded","show-checkbox","checked","indeterminate","item-size","disabled","current","hidden-expand-icon","onClick","onToggle","onCheck"]))]),_:1},8,["class-name","data","total","height","item-size","perf-mode"])):(C(),j("div",{key:1,class:M(d(o).e("empty-block"))},[R("span",{class:M(d(o).e("empty-text"))},ve((ee=L.emptyText)!=null?ee:d(a)("el.tree.emptyText")),3)],2))],2)}}});var Nce=ze($ce,[["__file","tree.vue"]]);const Mce=At(Nce),dN=Symbol("uploadContextKey"),Rce="ElUpload";class Lce extends Error{constructor(t,n,s,r){super(t),this.name="UploadAjaxError",this.status=n,this.method=s,this.url=r}}function lx(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 Lce(s,n.status,t.method,e)}function Dce(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}const Fce=e=>{typeof XMLHttpRequest>"u"&&Yn(Rce,"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))st(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(lx(n,e,t))}),t.addEventListener("load",()=>{if(t.status<200||t.status>=300)return e.onError(lx(n,e,t));e.onSuccess(Dce(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))Un(a)||t.setRequestHeader(i,String(a));return t.send(s),t},fN=["text","picture","picture-card"];let Bce=1;const Gy=()=>Date.now()+Bce++,hN=He({action:{type:String,default:"#"},headers:{type:me(Object)},method:{type:String,default:"post"},data:{type:me([Object,Function,Promise]),default:()=>vn({})},multiple:{type:Boolean,default:!1},name:{type:String,default:"file"},drag:{type:Boolean,default:!1},withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},fileList:{type:me(Array),default:()=>vn([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:fN,default:"text"},httpRequest:{type:me(Function),default:Fce},disabled:Boolean,limit:Number}),Vce=He({...hN,beforeUpload:{type:me(Function),default:en},beforeRemove:{type:me(Function)},onRemove:{type:me(Function),default:en},onChange:{type:me(Function),default:en},onPreview:{type:me(Function),default:en},onSuccess:{type:me(Function),default:en},onProgress:{type:me(Function),default:en},onError:{type:me(Function),default:en},onExceed:{type:me(Function),default:en}}),Uce=He({files:{type:me(Array),default:()=>vn([])},disabled:{type:Boolean,default:!1},handlePreview:{type:me(Function),default:en},listType:{type:String,values:fN,default:"text"}}),Hce={remove:e=>!!e},zce=["onKeydown"],jce=["src"],Kce=["onClick"],Wce=["title"],qce=["onClick"],Gce=["onClick"],Yce=Z({name:"ElUploadList"}),Xce=Z({...Yce,props:Uce,emits:Hce,setup(e,{emit:t}){const n=e,{t:s}=Wt(),r=Le("upload"),i=Le("icon"),a=Le("list"),o=ir(),l=G(!1),u=k(()=>[r.b("list"),r.bm("list",n.listType),r.is("disabled",n.disabled)]),c=f=>{t("remove",f)};return(f,h)=>(C(),he(gI,{tag:"ul",class:M(d(u)),name:d(a).b()},{default:N(()=>[(C(!0),j(Ke,null,bt(f.files,p=>(C(),j("li",{key:p.uid||p.name,class:M([d(r).be("list","item"),d(r).is(p.status),{focusing:l.value}]),tabindex:"0",onKeydown:jt(g=>!d(o)&&c(p),["delete"]),onFocus:h[0]||(h[0]=g=>l.value=!0),onBlur:h[1]||(h[1]=g=>l.value=!1),onClick:h[2]||(h[2]=g=>l.value=!1)},[we(f.$slots,"default",{file:p},()=>[f.listType==="picture"||p.status!=="uploading"&&f.listType==="picture-card"?(C(),j("img",{key:0,class:M(d(r).be("list","item-thumbnail")),src:p.url,alt:""},null,10,jce)):le("v-if",!0),p.status==="uploading"||f.listType!=="picture-card"?(C(),j("div",{key:1,class:M(d(r).be("list","item-info"))},[R("a",{class:M(d(r).be("list","item-name")),onClick:dt(g=>f.handlePreview(p),["prevent"])},[I(d(tt),{class:M(d(i).m("document"))},{default:N(()=>[I(d(Dz))]),_:1},8,["class"]),R("span",{class:M(d(r).be("list","item-file-name")),title:p.name},ve(p.name),11,Wce)],10,Kce),p.status==="uploading"?(C(),he(d(a$),{key:0,type:f.listType==="picture-card"?"circle":"line","stroke-width":f.listType==="picture-card"?6:2,percentage:Number(p.percentage),style:rt(f.listType==="picture-card"?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):le("v-if",!0)],2)):le("v-if",!0),R("label",{class:M(d(r).be("list","item-status-label"))},[f.listType==="text"?(C(),he(d(tt),{key:0,class:M([d(i).m("upload-success"),d(i).m("circle-check")])},{default:N(()=>[I(d(C_))]),_:1},8,["class"])):["picture-card","picture"].includes(f.listType)?(C(),he(d(tt),{key:1,class:M([d(i).m("upload-success"),d(i).m("check")])},{default:N(()=>[I(d(pf))]),_:1},8,["class"])):le("v-if",!0)],2),d(o)?le("v-if",!0):(C(),he(d(tt),{key:2,class:M(d(i).m("close")),onClick:g=>c(p)},{default:N(()=>[I(d(Jr))]),_:2},1032,["class","onClick"])),le(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),le(" This is a bug which needs to be fixed "),le(" TODO: Fix the incorrect navigation interaction "),d(o)?le("v-if",!0):(C(),j("i",{key:3,class:M(d(i).m("close-tip"))},ve(d(s)("el.upload.deleteTip")),3)),f.listType==="picture-card"?(C(),j("span",{key:4,class:M(d(r).be("list","item-actions"))},[R("span",{class:M(d(r).be("list","item-preview")),onClick:g=>f.handlePreview(p)},[I(d(tt),{class:M(d(i).m("zoom-in"))},{default:N(()=>[I(d(A_))]),_:1},8,["class"])],10,qce),d(o)?le("v-if",!0):(C(),j("span",{key:0,class:M(d(r).be("list","item-delete")),onClick:g=>c(p)},[I(d(tt),{class:M(d(i).m("delete"))},{default:N(()=>[I(d(Ku))]),_:1},8,["class"])],10,Gce))],2)):le("v-if",!0)])],42,zce))),128)),we(f.$slots,"append")]),_:3},8,["class","name"]))}});var ux=ze(Xce,[["__file","upload-list.vue"]]);const Qce=He({disabled:{type:Boolean,default:!1}}),Jce={file:e=>st(e)},Zce=["onDrop","onDragover"],pN="ElUploadDrag",ede=Z({name:pN}),tde=Z({...ede,props:Qce,emits:Jce,setup(e,{emit:t}){const n=Qe(dN);n||Yn(pN,"usage: <el-upload><el-upload-dragger /></el-upload>");const s=Le("upload"),r=G(!1),i=ir(),a=l=>{if(i.value)return;r.value=!1,l.stopPropagation();const u=Array.from(l.dataTransfer.files),c=n.accept.value;if(!c){t("file",u);return}const f=u.filter(h=>{const{type:p,name:g}=h,m=g.includes(".")?`.${g.split(".").pop()}`:"",y=p.replace(/\/.*$/,"");return c.split(",").map(v=>v.trim()).filter(v=>v).some(v=>v.startsWith(".")?m===v:/\/\*$/.test(v)?y===v.replace(/\/\*$/,""):/^[^/]+\/[^/]+$/.test(v)?p===v:!1)});t("file",f)},o=()=>{i.value||(r.value=!0)};return(l,u)=>(C(),j("div",{class:M([d(s).b("dragger"),d(s).is("dragover",r.value)]),onDrop:dt(a,["prevent"]),onDragover:dt(o,["prevent"]),onDragleave:u[0]||(u[0]=dt(c=>r.value=!1,["prevent"]))},[we(l.$slots,"default")],42,Zce))}});var nde=ze(tde,[["__file","upload-dragger.vue"]]);const sde=He({...hN,beforeUpload:{type:me(Function),default:en},onRemove:{type:me(Function),default:en},onStart:{type:me(Function),default:en},onSuccess:{type:me(Function),default:en},onProgress:{type:me(Function),default:en},onError:{type:me(Function),default:en},onExceed:{type:me(Function),default:en}}),rde=["onKeydown"],ide=["name","multiple","accept"],ade=Z({name:"ElUploadContent",inheritAttrs:!1}),ode=Z({...ade,props:sde,setup(e,{expose:t}){const n=e,s=Le("upload"),r=ir(),i=Jt({}),a=Jt(),o=m=>{if(m.length===0)return;const{autoUpload:y,limit:v,fileList:_,multiple:w,onStart:T,onExceed:S}=n;if(v&&_.length+m.length>v){S(m,_);return}w||(m=m.slice(0,1));for(const E of m){const $=E;$.uid=Gy(),T($),y&&l($)}},l=async m=>{if(a.value.value="",!n.beforeUpload)return c(m);let y,v={};try{const w=n.data,T=n.beforeUpload(m);v=Ap(n.data)?Bp(n.data):n.data,y=await T,Ap(n.data)&&Ys(w,v)&&(v=Bp(n.data))}catch{y=!1}if(y===!1){n.onRemove(m);return}let _=m;y instanceof Blob&&(y instanceof File?_=y:_=new File([y],m.name,{type:m.type})),c(Object.assign(_,{uid:m.uid}),v)},u=async(m,y)=>yt(m)?m(y):m,c=async(m,y)=>{const{headers:v,data:_,method:w,withCredentials:T,name:S,action:E,onProgress:$,onSuccess:P,onError:U,httpRequest:H}=n;try{y=await u(y??_,m)}catch{n.onRemove(m);return}const{uid:z}=m,W={headers:v||{},withCredentials:T,file:m,data:y,method:w,filename:S,action:E,onProgress:V=>{$(V,m)},onSuccess:V=>{P(V,m),delete i.value[z]},onError:V=>{U(V,m),delete i.value[z]}},D=H(W);i.value[z]=D,D instanceof Promise&&D.then(W.onSuccess,W.onError)},f=m=>{const y=m.target.files;y&&o(Array.from(y))},h=()=>{r.value||(a.value.value="",a.value.click())},p=()=>{h()};return t({abort:m=>{sz(i.value).filter(m?([v])=>String(m.uid)===v:()=>!0).forEach(([v,_])=>{_ instanceof XMLHttpRequest&&_.abort(),delete i.value[v]})},upload:l}),(m,y)=>(C(),j("div",{class:M([d(s).b(),d(s).m(m.listType),d(s).is("drag",m.drag)]),tabindex:"0",onClick:h,onKeydown:jt(dt(p,["self"]),["enter","space"])},[m.drag?(C(),he(nde,{key:0,disabled:d(r),onFile:o},{default:N(()=>[we(m.$slots,"default")]),_:3},8,["disabled"])):we(m.$slots,"default",{key:1}),R("input",{ref_key:"inputRef",ref:a,class:M(d(s).e("input")),name:m.name,multiple:m.multiple,accept:m.accept,type:"file",onChange:f,onClick:y[0]||(y[0]=dt(()=>{},["stop"]))},null,42,ide)],42,rde))}});var cx=ze(ode,[["__file","upload-content.vue"]]);const dx="ElUpload",fx=e=>{var t;(t=e.url)!=null&&t.startsWith("blob:")&&URL.revokeObjectURL(e.url)},lde=(e,t)=>{const n=jF(e,"fileList",void 0,{passive:!0}),s=h=>n.value.find(p=>p.uid===h.uid);function r(h){var p;(p=t.value)==null||p.abort(h)}function i(h=["ready","uploading","success","fail"]){n.value=n.value.filter(p=>!h.includes(p.status))}const a=(h,p)=>{const g=s(p);g&&(console.error(h),g.status="fail",n.value.splice(n.value.indexOf(g),1),e.onError(h,g,n.value),e.onChange(g,n.value))},o=(h,p)=>{const g=s(p);g&&(e.onProgress(h,g,n.value),g.status="uploading",g.percentage=Math.round(h.percent))},l=(h,p)=>{const g=s(p);g&&(g.status="success",g.response=h,e.onSuccess(h,g,n.value),e.onChange(g,n.value))},u=h=>{Un(h.uid)&&(h.uid=Gy());const p={name:h.name,percentage:0,status:"ready",size:h.size,raw:h,uid:h.uid};if(e.listType==="picture-card"||e.listType==="picture")try{p.url=URL.createObjectURL(h)}catch(g){g.message,e.onError(g,p,n.value)}n.value=[...n.value,p],e.onChange(p,n.value)},c=async h=>{const p=h instanceof File?s(h):h;p||Yn(dx,"file to be removed not found");const g=m=>{r(m);const y=n.value;y.splice(y.indexOf(m),1),e.onRemove(m,y),fx(m)};e.beforeRemove?await e.beforeRemove(p,n.value)!==!1&&g(p):g(p)};function f(){n.value.filter(({status:h})=>h==="ready").forEach(({raw:h})=>{var p;return h&&((p=t.value)==null?void 0:p.upload(h))})}return Oe(()=>e.listType,h=>{h!=="picture-card"&&h!=="picture"||(n.value=n.value.map(p=>{const{raw:g,url:m}=p;if(!m&&g)try{p.url=URL.createObjectURL(g)}catch(y){e.onError(y,p,n.value)}return p}))}),Oe(n,h=>{for(const p of h)p.uid||(p.uid=Gy()),p.status||(p.status="success")},{immediate:!0,deep:!0}),{uploadFiles:n,abort:r,clearFiles:i,handleError:a,handleProgress:o,handleStart:u,handleSuccess:l,handleRemove:c,submit:f,revokeFileObjectURL:fx}},ude=Z({name:"ElUpload"}),cde=Z({...ude,props:Vce,setup(e,{expose:t}){const n=e,s=ir(),r=Jt(),{abort:i,submit:a,clearFiles:o,uploadFiles:l,handleStart:u,handleError:c,handleRemove:f,handleSuccess:h,handleProgress:p,revokeFileObjectURL:g}=lde(n,r),m=k(()=>n.listType==="picture-card"),y=k(()=>({...n,fileList:l.value,onStart:u,onProgress:p,onSuccess:h,onError:c,onRemove:f}));return on(()=>{l.value.forEach(g)}),Lt(dN,{accept:yn(n,"accept")}),t({abort:i,submit:a,clearFiles:o,handleStart:u,handleRemove:f}),(v,_)=>(C(),j("div",null,[d(m)&&v.showFileList?(C(),he(ux,{key:0,disabled:d(s),"list-type":v.listType,files:d(l),"handle-preview":v.onPreview,onRemove:d(f)},xi({append:N(()=>[I(cx,Rt({ref_key:"uploadRef",ref:r},d(y)),{default:N(()=>[v.$slots.trigger?we(v.$slots,"trigger",{key:0}):le("v-if",!0),!v.$slots.trigger&&v.$slots.default?we(v.$slots,"default",{key:1}):le("v-if",!0)]),_:3},16)]),_:2},[v.$slots.file?{name:"default",fn:N(({file:w})=>[we(v.$slots,"file",{file:w})])}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):le("v-if",!0),!d(m)||d(m)&&!v.showFileList?(C(),he(cx,Rt({key:1,ref_key:"uploadRef",ref:r},d(y)),{default:N(()=>[v.$slots.trigger?we(v.$slots,"trigger",{key:0}):le("v-if",!0),!v.$slots.trigger&&v.$slots.default?we(v.$slots,"default",{key:1}):le("v-if",!0)]),_:3},16)):le("v-if",!0),v.$slots.trigger?we(v.$slots,"default",{key:2}):le("v-if",!0),we(v.$slots,"tip"),!d(m)&&v.showFileList?(C(),he(ux,{key:3,disabled:d(s),"list-type":v.listType,files:d(l),"handle-preview":v.onPreview,onRemove:d(f)},xi({_:2},[v.$slots.file?{name:"default",fn:N(({file:w})=>[we(v.$slots,"file",{file:w})])}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):le("v-if",!0)]))}});var dde=ze(cde,[["__file","upload.vue"]]);const U1=At(dde),fde=He({zIndex:{type:Number,default:9},rotate:{type:Number,default:-22},width:Number,height:Number,image:String,content:{type:me([String,Array]),default:"Element Plus"},font:{type:me(Object)},gap:{type:me(Array),default:()=>[100,100]},offset:{type:me(Array)}});function hde(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function pde(e){return Object.keys(e).map(t=>`${hde(t)}: ${e[t]};`).join(" ")}function mde(){return window.devicePixelRatio||1}const gde=(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},mN=3;function zv(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 vde(){function e(t,n,s,r,i,a,o,l){const[u,c,f,h]=zv(r,i,s);if(t instanceof HTMLImageElement)u.drawImage(t,0,0,f,h);else{const{color:ee,fontSize:te,fontStyle:ie,fontWeight:_e,fontFamily:ue,textAlign:oe,textBaseline:de}=a,ae=Number(te)*s;u.font=`${ie} normal ${_e} ${ae}px/${i}px ${ue}`,u.fillStyle=ee,u.textAlign=oe,u.textBaseline=de;const Ie=Array.isArray(t)?t:[t];Ie==null||Ie.forEach((ke,Ee)=>{u.fillText(ke??"",f/2,Ee*(ae+mN*s))})}const p=Math.PI/180*Number(n),g=Math.max(r,i),[m,y,v]=zv(g,g,s);m.translate(v/2,v/2),m.rotate(p),f>0&&h>0&&m.drawImage(c,-f/2,-h/2);function _(ee,te){const ie=ee*Math.cos(p)-te*Math.sin(p),_e=ee*Math.sin(p)+te*Math.cos(p);return[ie,_e]}let w=0,T=0,S=0,E=0;const $=f/2,P=h/2;[[0-$,0-P],[0+$,0-P],[0+$,0+P],[0-$,0+P]].forEach(([ee,te])=>{const[ie,_e]=_(ee,te);w=Math.min(w,ie),T=Math.max(T,ie),S=Math.min(S,_e),E=Math.max(E,_e)});const H=w+v/2,z=S+v/2,W=T-w,D=E-S,V=o*s,X=l*s,Y=(W+V)*2,B=D+X,[K,L]=zv(Y,B);function Q(ee=0,te=0){K.drawImage(y,H,z,W,D,ee,te,W,D)}return Q(),Q(W+V,-D/2-X/2),Q(W+V,+D/2+X/2),[L.toDataURL(),Y/s,B/s]}return e}const yde=Z({name:"ElWatermark"}),bde=Z({...yde,props:fde,setup(e){const t=e,n={position:"relative"},s=k(()=>{var H,z;return(z=(H=t.font)==null?void 0:H.color)!=null?z:"rgba(0,0,0,.15)"}),r=k(()=>{var H,z;return(z=(H=t.font)==null?void 0:H.fontSize)!=null?z:16}),i=k(()=>{var H,z;return(z=(H=t.font)==null?void 0:H.fontWeight)!=null?z:"normal"}),a=k(()=>{var H,z;return(z=(H=t.font)==null?void 0:H.fontStyle)!=null?z:"normal"}),o=k(()=>{var H,z;return(z=(H=t.font)==null?void 0:H.fontFamily)!=null?z:"sans-serif"}),l=k(()=>{var H,z;return(z=(H=t.font)==null?void 0:H.textAlign)!=null?z:"center"}),u=k(()=>{var H,z;return(z=(H=t.font)==null?void 0:H.textBaseline)!=null?z:"top"}),c=k(()=>t.gap[0]),f=k(()=>t.gap[1]),h=k(()=>c.value/2),p=k(()=>f.value/2),g=k(()=>{var H,z;return(z=(H=t.offset)==null?void 0:H[0])!=null?z:h.value}),m=k(()=>{var H,z;return(z=(H=t.offset)==null?void 0:H[1])!=null?z:p.value}),y=()=>{const H={zIndex:t.zIndex,position:"absolute",left:0,top:0,width:"100%",height:"100%",pointerEvents:"none",backgroundRepeat:"repeat"};let z=g.value-h.value,W=m.value-p.value;return z>0&&(H.left=`${z}px`,H.width=`calc(100% - ${z}px)`,z=0),W>0&&(H.top=`${W}px`,H.height=`calc(100% - ${W}px)`,W=0),H.backgroundPosition=`${z}px ${W}px`,H},v=Jt(null),_=Jt(),w=G(!1),T=()=>{_.value&&(_.value.remove(),_.value=void 0)},S=(H,z)=>{var W;v.value&&_.value&&(w.value=!0,_.value.setAttribute("style",pde({...y(),backgroundImage:`url('${H}')`,backgroundSize:`${Math.floor(z)}px`})),(W=v.value)==null||W.append(_.value),setTimeout(()=>{w.value=!1}))},E=H=>{let z=120,W=64;const D=t.image,V=t.content,X=t.width,Y=t.height;if(!D&&H.measureText){H.font=`${Number(r.value)}px ${o.value}`;const B=Array.isArray(V)?V:[V],K=B.map(L=>{const Q=H.measureText(L);return[Q.width,Q.fontBoundingBoxAscent!==void 0?Q.fontBoundingBoxAscent+Q.fontBoundingBoxDescent:Q.actualBoundingBoxAscent+Q.actualBoundingBoxDescent]});z=Math.ceil(Math.max(...K.map(L=>L[0]))),W=Math.ceil(Math.max(...K.map(L=>L[1])))*B.length+(B.length-1)*mN}return[X??z,Y??W]},$=vde(),P=()=>{const z=document.createElement("canvas").getContext("2d"),W=t.image,D=t.content,V=t.rotate;if(z){_.value||(_.value=document.createElement("div"));const X=mde(),[Y,B]=E(z),K=L=>{const[Q,ee]=$(L||"",V,X,Y,B,{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(Q,ee)};if(W){const L=new Image;L.onload=()=>{K(L)},L.onerror=()=>{K(D)},L.crossOrigin="anonymous",L.referrerPolicy="no-referrer",L.src=W}else K(D)}};return vt(()=>{P()}),Oe(()=>t,()=>{P()},{deep:!0,flush:"post"}),on(()=>{T()}),FF(v,H=>{w.value||H.forEach(z=>{gde(z,_.value)&&(T(),P())})},{attributes:!0,subtree:!0,childList:!0}),(H,z)=>(C(),j("div",{ref_key:"containerRef",ref:v,style:rt([n])},[we(H.$slots,"default")],4))}});var _de=ze(bde,[["__file","watermark.vue"]]);const Tde=At(_de);var wde=[z7,eK,Cq,Ole,t1,Dq,TA,Xq,Qq,bn,IA,gY,TY,RY,LY,GX,MX,eQ,$r,tX,eP,dP,kQ,IQ,hP,rJ,rA,o1,_P,TP,l1,u1,kP,KZ,WZ,yf,MP,RP,jP,KP,WP,bf,io,ao,tt,qP,v1,Fn,pg,GP,ZP,e$,Mne,t$,Une,Tf,Jse,ore,yA,a$,dg,gX,r1,Cre,Ore,cP,va,ei,Ga,bse,yie,xie,kie,sae,lae,E$,bae,Iae,Oae,wf,Sf,Cf,Ile,jle,Kle,aa,Xle,GG,nue,oue,lue,ms,Mue,Yue,uce,gce,Mce,U1,Tde];const Hr="ElInfiniteScroll",Sde=50,Cde=200,Ede=0,xde={delay:{type:Number,default:Cde},distance:{type:Number,default:Ede},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0}},H1=(e,t)=>Object.entries(xde).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},{}),gN=e=>{const{observer:t}=e[Hr];t&&(t.disconnect(),delete e[Hr].observer)},kde=(e,t)=>{const{container:n,containerEl:s,instance:r,observer:i,lastScrollTop:a}=e[Hr],{disabled:o,distance:l}=H1(e,r),{clientHeight:u,scrollHeight:c,scrollTop:f}=s,h=f-a;if(e[Hr].lastScrollTop=f,i||o||h<0)return;let p=!1;if(n===e)p=c-(u+f)<=l;else{const{clientTop:g,scrollHeight:m}=e,y=GF(e,s);p=f+u>=y+g+m-l}p&&t.call(r)};function jv(e,t){const{containerEl:n,instance:s}=e[Hr],{disabled:r}=H1(e,s);r||n.clientHeight===0||(n.scrollHeight<=n.clientHeight?t.call(s):gN(e))}const Ide={async mounted(e,t){const{instance:n,value:s}=t;yt(s)||Yn(Hr,"'v-infinite-scroll' binding value must be a function"),await at();const{delay:r,immediate:i}=H1(e,n),a=S_(e,!0),o=a===window?document.documentElement:a,l=Uo(kde.bind(null,e,s),r);if(a){if(e[Hr]={instance:n,container:a,containerEl:o,delay:r,cb:s,onScroll:l,lastScrollTop:o.scrollTop},i){const u=new MutationObserver(Uo(jv.bind(null,e,s),Sde));e[Hr].observer=u,u.observe(e,{childList:!0,subtree:!0}),jv(e,s)}a.addEventListener("scroll",l)}},unmounted(e){const{container:t,onScroll:n}=e[Hr];t==null||t.removeEventListener("scroll",n),gN(e)},async updated(e){if(!e[Hr])await at();else{const{containerEl:t,cb:n,observer:s}=e[Hr];t.clientHeight&&s&&jv(e,n)}}},Yy=Ide;Yy.install=e=>{e.directive("InfiniteScroll",Yy)};const Ode=Yy;function Ade(e){let t;const n=G(!1),s=Ct({...e,originalPosition:"",originalOverflow:"",visible:!1});function r(h){s.text=h}function i(){const h=s.parent,p=f.ns;if(!h.vLoadingAddClassList){let g=h.getAttribute("loading-number");g=Number.parseInt(g)-1,g?h.setAttribute("loading-number",g.toString()):(Xs(h,p.bm("parent","relative")),h.removeAttribute("loading-number")),Xs(h,p.bm("parent","hidden"))}a(),c.unmount()}function a(){var h,p;(p=(h=f.$el)==null?void 0:h.parentNode)==null||p.removeChild(f.$el)}function o(){var h;e.beforeClose&&!e.beforeClose()||(n.value=!0,clearTimeout(t),t=window.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 u=Z({name:"ElLoading",setup(h,{expose:p}){const{ns:g,zIndex:m}=og("loading");return p({ns:g,zIndex:m}),()=>{const y=s.spinner||s.svg,v=lt("svg",{class:"circular",viewBox:s.svgViewBox?s.svgViewBox:"0 0 50 50",...y?{innerHTML:y}:{}},[lt("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),_=s.text?lt("p",{class:g.b("text")},[s.text]):void 0;return lt(Rn,{name:g.b("fade"),onAfterLeave:l},{default:N(()=>[pt(I("div",{style:{backgroundColor:s.background||""},class:[g.b("mask"),s.customClass,s.fullscreen?"is-fullscreen":""]},[lt("div",{class:g.b("spinner")},[v,_])]),[[Vt,s.visible]])])})}}}),c=Hm(u),f=c.mount(document.createElement("div"));return{...es(s),setText:r,removeElLoadingChild:a,close:o,handleAfterLeave:l,vm:f,get $el(){return f.$el}}}let Rh;const Xy=function(e={}){if(!Kt)return;const t=Pde(e);if(t.fullscreen&&Rh)return Rh;const n=Ade({...t,closed:()=>{var r;(r=t.closed)==null||r.call(t),t.fullscreen&&(Rh=void 0)}});$de(t,t.parent,n),hx(t,t.parent,n),t.parent.vLoadingAddClassList=()=>hx(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),at(()=>n.visible.value=t.visible),t.fullscreen&&(Rh=n),n},Pde=e=>{var t,n,s,r;let i;return Tt(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,target:i}},$de=async(e,t,n)=>{const{nextZIndex:s}=n.vm.zIndex||n.vm._.exposed.zIndex,r={};if(e.fullscreen)n.originalPosition.value=Ma(document.body,"position"),n.originalOverflow.value=Ma(document.body,"overflow"),r.zIndex=s();else if(e.parent===document.body){n.originalPosition.value=Ma(document.body,"position"),await at();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(Ma(document.body,`margin-${i}`),10)}px`}for(const i of["height","width"])r[i]=`${e.target.getBoundingClientRect()[i]}px`}else n.originalPosition.value=Ma(t,"position");for(const[i,a]of Object.entries(r))n.$el.style[i]=a},hx=(e,t,n)=>{const s=n.vm.ns||n.vm._.exposed.ns;["absolute","fixed","sticky"].includes(n.originalPosition.value)?Xs(t,s.bm("parent","relative")):pi(t,s.bm("parent","relative")),e.fullscreen&&e.lock?pi(t,s.bm("parent","hidden")):Xs(t,s.bm("parent","hidden"))},Qy=Symbol("ElLoading"),px=(e,t)=>{var n,s,r,i;const a=t.instance,o=h=>Mt(t.value)?t.value[h]:void 0,l=h=>{const p=Tt(h)&&(a==null?void 0:a[h])||h;return p&&G(p)},u=h=>l(o(h)||e.getAttribute(`element-loading-${Za(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[Qy]={options:f,instance:Xy(f)}},Nde=(e,t)=>{for(const n of Object.keys(t))an(t[n])&&(t[n].value=e[n])},mx={mounted(e,t){t.value&&px(e,t)},updated(e,t){const n=e[Qy];t.oldValue!==t.value&&(t.value&&!t.oldValue?px(e,t):t.value&&t.oldValue?Mt(t.value)&&Nde(t.value,n.options):n==null||n.instance.close())},unmounted(e){var t;(t=e[Qy])==null||t.instance.close()}},Mde={install(e){e.directive("loading",mx),e.config.globalProperties.$loading=Xy},directive:mx,service:Xy},vN=["success","info","warning","error"],Hs=vn({customClass:"",center:!1,dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",offset:16,zIndex:0,grouping:!1,repeatNum:1,appendTo:Kt?document.body:void 0}),Rde=He({customClass:{type:String,default:Hs.customClass},center:{type:Boolean,default:Hs.center},dangerouslyUseHTMLString:{type:Boolean,default:Hs.dangerouslyUseHTMLString},duration:{type:Number,default:Hs.duration},icon:{type:sn,default:Hs.icon},id:{type:String,default:Hs.id},message:{type:me([String,Object,Function]),default:Hs.message},onClose:{type:me(Function),required:!1},showClose:{type:Boolean,default:Hs.showClose},type:{type:String,values:vN,default:Hs.type},offset:{type:Number,default:Hs.offset},zIndex:{type:Number,default:Hs.zIndex},grouping:{type:Boolean,default:Hs.grouping},repeatNum:{type:Number,default:Hs.repeatNum}}),Lde={destroy:()=>!0},qr=Ik([]),Dde=e=>{const t=qr.findIndex(r=>r.id===e),n=qr[t];let s;return t>0&&(s=qr[t-1]),{current:n,prev:s}},Fde=e=>{const{prev:t}=Dde(e);return t?t.vm.exposed.bottom.value:0},Bde=(e,t)=>qr.findIndex(s=>s.id===e)>0?20:t,Vde=["id"],Ude=["innerHTML"],Hde=Z({name:"ElMessage"}),zde=Z({...Hde,props:Rde,emits:Lde,setup(e,{expose:t}){const n=e,{Close:s}=P_,{ns:r,zIndex:i}=og("message"),{currentZIndex:a,nextZIndex:o}=i,l=G(),u=G(!1),c=G(0);let f;const h=k(()=>n.type?n.type==="error"?"danger":n.type:"info"),p=k(()=>{const $=n.type;return{[r.bm("icon",$)]:$&&Wa[$]}}),g=k(()=>n.icon||Wa[n.type]||""),m=k(()=>Fde(n.id)),y=k(()=>Bde(n.id,n.offset)+m.value),v=k(()=>c.value+y.value),_=k(()=>({top:`${y.value}px`,zIndex:a.value}));function w(){n.duration!==0&&({stop:f}=Xo(()=>{S()},n.duration))}function T(){f==null||f()}function S(){u.value=!1}function E({code:$}){$===ot.esc&&S()}return vt(()=>{w(),o(),u.value=!0}),Oe(()=>n.repeatNum,()=>{T(),w()}),dn(document,"keydown",E),_s(l,()=>{c.value=l.value.getBoundingClientRect().height}),t({visible:u,bottom:v,close:S}),($,P)=>(C(),he(Rn,{name:d(r).b("fade"),onBeforeLeave:$.onClose,onAfterLeave:P[0]||(P[0]=U=>$.$emit("destroy")),persisted:""},{default:N(()=>[pt(R("div",{id:$.id,ref_key:"messageRef",ref:l,class:M([d(r).b(),{[d(r).m($.type)]:$.type&&!$.icon},d(r).is("center",$.center),d(r).is("closable",$.showClose),$.customClass]),style:rt(d(_)),role:"alert",onMouseenter:T,onMouseleave:w},[$.repeatNum>1?(C(),he(d(TA),{key:0,value:$.repeatNum,type:d(h),class:M(d(r).e("badge"))},null,8,["value","type","class"])):le("v-if",!0),d(g)?(C(),he(d(tt),{key:1,class:M([d(r).e("icon"),d(p)])},{default:N(()=>[(C(),he(Nt(d(g))))]),_:1},8,["class"])):le("v-if",!0),we($.$slots,"default",{},()=>[$.dangerouslyUseHTMLString?(C(),j(Ke,{key:1},[le(" Caution here, message could've been compromised, never use user's input as message "),R("p",{class:M(d(r).e("content")),innerHTML:$.message},null,10,Ude)],2112)):(C(),j("p",{key:0,class:M(d(r).e("content"))},ve($.message),3))]),$.showClose?(C(),he(d(tt),{key:2,class:M(d(r).e("closeBtn")),onClick:dt(S,["stop"])},{default:N(()=>[I(d(s))]),_:1},8,["class","onClick"])):le("v-if",!0)],46,Vde),[[Vt,u.value]])]),_:3},8,["name","onBeforeLeave"]))}});var jde=ze(zde,[["__file","message.vue"]]);let Kde=1;const yN=e=>{const t=!e||Tt(e)||pn(e)||yt(e)?{message:e}:e,n={...Hs,...t};if(!n.appendTo)n.appendTo=document.body;else if(Tt(n.appendTo)){let s=document.querySelector(n.appendTo);Or(s)||(s=document.body),n.appendTo=s}return n},Wde=e=>{const t=qr.indexOf(e);if(t===-1)return;qr.splice(t,1);const{handler:n}=e;n.close()},qde=({appendTo:e,...t},n)=>{const s=`message_${Kde++}`,r=t.onClose,i=document.createElement("div"),a={...t,id:s,onClose:()=>{r==null||r(),Wde(c)},onDestroy:()=>{cu(null,i)}},o=I(jde,a,yt(a.message)||pn(a.message)?{default:yt(a.message)?a.message:()=>a.message}:null);o.appContext=n||Su._context,cu(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},Su=(e={},t)=>{if(!Kt)return{close:()=>{}};if(ht(W0.max)&&qr.length>=W0.max)return{close:()=>{}};const n=yN(e);if(n.grouping&&qr.length){const r=qr.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}const s=qde(n,t);return qr.push(s),s.handler};vN.forEach(e=>{Su[e]=(t={},n)=>{const s=yN(t);return Su({...s,type:e},n)}});function Gde(e){for(const t of qr)(!e||e===t.props.type)&&t.handler.close()}Su.closeAll=Gde;Su._context=null;const St=_O(Su,"$message"),Yde=Z({name:"ElMessageBox",directives:{TrapFocus:AG},components:{ElButton:bn,ElFocusTrap:ug,ElInput:Fn,ElOverlay:h1,ElIcon:tt,...P_},inheritAttrs:!1,props:{buttonSize:{type:String,validator:N_},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,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}=og("message-box",k(()=>e.buttonSize)),{t:a}=n,{nextZIndex:o}=s,l=G(!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,confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:o()}),c=k(()=>{const X=u.type;return{[r.bm("icon",X)]:X&&Wa[X]}}),f=tr(),h=tr(),p=k(()=>u.icon||Wa[u.type]||""),g=k(()=>!!u.message),m=G(),y=G(),v=G(),_=G(),w=G(),T=k(()=>u.confirmButtonClass);Oe(()=>u.inputValue,async X=>{await at(),e.boxType==="prompt"&&X!==null&&z()},{immediate:!0}),Oe(()=>l.value,X=>{var Y,B;X&&(e.boxType!=="prompt"&&(u.autofocus?v.value=(B=(Y=w.value)==null?void 0:Y.$el)!=null?B:m.value:v.value=m.value),u.zIndex=o()),e.boxType==="prompt"&&(X?at().then(()=>{var K;_.value&&_.value.$el&&(u.autofocus?v.value=(K=W())!=null?K:m.value:v.value=m.value)}):(u.editorErrorMessage="",u.validateError=!1))});const S=k(()=>e.draggable);TO(m,y,S),vt(async()=>{await at(),e.closeOnHashChange&&window.addEventListener("hashchange",E)}),on(()=>{e.closeOnHashChange&&window.removeEventListener("hashchange",E)});function E(){l.value&&(l.value=!1,at(()=>{u.action&&t("action",u.action)}))}const $=()=>{e.closeOnClickModal&&H(u.distinguishCancelAndClose?"close":"cancel")},P=j_($),U=X=>{if(u.inputType!=="textarea")return X.preventDefault(),H("confirm")},H=X=>{var Y;e.boxType==="prompt"&&X==="confirm"&&!z()||(u.action=X,u.beforeClose?(Y=u.beforeClose)==null||Y.call(u,X,u,E):E())},z=()=>{if(e.boxType==="prompt"){const X=u.inputPattern;if(X&&!X.test(u.inputValue||""))return u.editorErrorMessage=u.inputErrorMessage||a("el.messagebox.error"),u.validateError=!0,!1;const Y=u.inputValidator;if(typeof Y=="function"){const B=Y(u.inputValue);if(B===!1)return u.editorErrorMessage=u.inputErrorMessage||a("el.messagebox.error"),u.validateError=!0,!1;if(typeof B=="string")return u.editorErrorMessage=B,u.validateError=!0,!1}}return u.editorErrorMessage="",u.validateError=!1,!0},W=()=>{const X=_.value.$refs;return X.input||X.textarea},D=()=>{H("close")},V=()=>{e.closeOnPressEscape&&D()};return e.lockScroll&&CO(l),{...es(u),ns:r,overlayEvent:P,visible:l,hasMessage:g,typeClass:c,contentId:f,inputId:h,btnSize:i,iconComponent:p,confirmButtonClasses:T,rootRef:m,focusStartRef:v,headerRef:y,inputRef:_,confirmRef:w,doClose:E,handleClose:D,onCloseRequested:V,handleWrapperClick:$,handleInputEnter:U,handleAction:H,t:a}}}),Xde=["aria-label","aria-describedby"],Qde=["aria-label"],Jde=["id"];function Zde(e,t,n,s,r,i){const a=Et("el-icon"),o=Et("close"),l=Et("el-input"),u=Et("el-button"),c=Et("el-focus-trap"),f=Et("el-overlay");return C(),he(Rn,{name:"fade-in-linear",onAfterLeave:t[11]||(t[11]=h=>e.$emit("vanish")),persisted:""},{default:N(()=>[pt(I(f,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:N(()=>[R("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:t[8]||(t[8]=(...h)=>e.overlayEvent.onClick&&e.overlayEvent.onClick(...h)),onMousedown:t[9]||(t[9]=(...h)=>e.overlayEvent.onMousedown&&e.overlayEvent.onMousedown(...h)),onMouseup:t[10]||(t[10]=(...h)=>e.overlayEvent.onMouseup&&e.overlayEvent.onMouseup(...h))},[I(c,{loop:"",trapped:e.visible,"focus-trap-el":e.rootRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:N(()=>[R("div",{ref:"rootRef",class:M([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),{[e.ns.m("center")]:e.center}]),style:rt(e.customStyle),tabindex:"-1",onClick:t[7]||(t[7]=dt(()=>{},["stop"]))},[e.title!==null&&e.title!==void 0?(C(),j("div",{key:0,ref:"headerRef",class:M(e.ns.e("header"))},[R("div",{class:M(e.ns.e("title"))},[e.iconComponent&&e.center?(C(),he(a,{key:0,class:M([e.ns.e("status"),e.typeClass])},{default:N(()=>[(C(),he(Nt(e.iconComponent)))]),_:1},8,["class"])):le("v-if",!0),R("span",null,ve(e.title),1)],2),e.showClose?(C(),j("button",{key:0,type:"button",class:M(e.ns.e("headerbtn")),"aria-label":e.t("el.messagebox.close"),onClick:t[0]||(t[0]=h=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel")),onKeydown:t[1]||(t[1]=jt(dt(h=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"]))},[I(a,{class:M(e.ns.e("close"))},{default:N(()=>[I(o)]),_:1},8,["class"])],42,Qde)):le("v-if",!0)],2)):le("v-if",!0),R("div",{id:e.contentId,class:M(e.ns.e("content"))},[R("div",{class:M(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?(C(),he(a,{key:0,class:M([e.ns.e("status"),e.typeClass])},{default:N(()=>[(C(),he(Nt(e.iconComponent)))]),_:1},8,["class"])):le("v-if",!0),e.hasMessage?(C(),j("div",{key:1,class:M(e.ns.e("message"))},[we(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(C(),he(Nt(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):(C(),he(Nt(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0},{default:N(()=>[Fe(ve(e.dangerouslyUseHTMLString?"":e.message),1)]),_:1},8,["for"]))])],2)):le("v-if",!0)],2),pt(R("div",{class:M(e.ns.e("input"))},[I(l,{id:e.inputId,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":t[2]||(t[2]=h=>e.inputValue=h),type:e.inputType,placeholder:e.inputPlaceholder,"aria-invalid":e.validateError,class:M({invalid:e.validateError}),onKeydown:jt(e.handleInputEnter,["enter"])},null,8,["id","modelValue","type","placeholder","aria-invalid","class","onKeydown"]),R("div",{class:M(e.ns.e("errormsg")),style:rt({visibility:e.editorErrorMessage?"visible":"hidden"})},ve(e.editorErrorMessage),7)],2),[[Vt,e.showInput]])],10,Jde),R("div",{class:M(e.ns.e("btns"))},[e.showCancelButton?(C(),he(u,{key:0,loading:e.cancelButtonLoading,class:M([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:t[3]||(t[3]=h=>e.handleAction("cancel")),onKeydown:t[4]||(t[4]=jt(dt(h=>e.handleAction("cancel"),["prevent"]),["enter"]))},{default:N(()=>[Fe(ve(e.cancelButtonText||e.t("el.messagebox.cancel")),1)]),_:1},8,["loading","class","round","size"])):le("v-if",!0),pt(I(u,{ref:"confirmRef",type:"primary",loading:e.confirmButtonLoading,class:M([e.confirmButtonClasses]),round:e.roundButton,disabled:e.confirmButtonDisabled,size:e.btnSize,onClick:t[5]||(t[5]=h=>e.handleAction("confirm")),onKeydown:t[6]||(t[6]=jt(dt(h=>e.handleAction("confirm"),["prevent"]),["enter"]))},{default:N(()=>[Fe(ve(e.confirmButtonText||e.t("el.messagebox.confirm")),1)]),_:1},8,["loading","class","round","disabled","size"]),[[Vt,e.showConfirmButton]])],2)],6)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,Xde)]),_:3},8,["z-index","overlay-class","mask"]),[[Vt,e.visible]])]),_:3})}var efe=ze(Yde,[["render",Zde],["__file","index.vue"]]);const zd=new Map,tfe=e=>{let t=document.body;return e.appendTo&&(Tt(e.appendTo)&&(t=document.querySelector(e.appendTo)),Or(e.appendTo)&&(t=e.appendTo),Or(t)||(t=document.body)),t},nfe=(e,t,n=null)=>{const s=I(efe,e,yt(e.message)||pn(e.message)?{default:yt(e.message)?e.message:()=>e.message}:null);return s.appContext=n,cu(s,t),tfe(e).appendChild(t.firstElementChild),s.component},sfe=()=>document.createElement("div"),rfe=(e,t)=>{const n=sfe();e.onVanish=()=>{cu(null,n),zd.delete(r)},e.onAction=i=>{const a=zd.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=nfe(e,n,t),r=s.proxy;for(const i in e)zt(e,i)&&!zt(r.$props,i)&&(r[i]=e[i]);return r.visible=!0,r};function Gu(e,t=null){if(!Kt)return Promise.reject();let n;return Tt(e)||pn(e)?e={message:e}:n=e.callback,new Promise((s,r)=>{const i=rfe(e,t??Gu._context);zd.set(i,{options:e,callback:n,resolve:s,reject:r})})}const ife=["alert","confirm","prompt"],afe={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};ife.forEach(e=>{Gu[e]=ofe(e)});function ofe(e){return(t,n,s,r)=>{let i="";return Mt(n)?(s=n,i=""):qn(n)?i="":i=n,Gu(Object.assign({title:i,message:t,type:"",...afe[e]},s,{boxType:e}),r)}}Gu.close=()=>{zd.forEach((e,t)=>{t.doClose()}),zd.clear()};Gu._context=null;const Aa=Gu;Aa.install=e=>{Aa._context=e._context,e.config.globalProperties.$msgbox=Aa,e.config.globalProperties.$messageBox=Aa,e.config.globalProperties.$alert=Aa.alert,e.config.globalProperties.$confirm=Aa.confirm,e.config.globalProperties.$prompt=Aa.prompt};const lfe=Aa,bN=["success","info","warning","error"],ufe=He({customClass:{type:String,default:""},dangerouslyUseHTMLString:{type:Boolean,default:!1},duration:{type:Number,default:4500},icon:{type:sn},id:{type:String,default:""},message:{type:me([String,Object]),default:""},offset:{type:Number,default:0},onClick:{type:me(Function),default:()=>{}},onClose:{type:me(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:[...bN,""],default:""},zIndex:Number}),cfe={destroy:()=>!0},dfe=["id"],ffe=["textContent"],hfe={key:0},pfe=["innerHTML"],mfe=Z({name:"ElNotification"}),gfe=Z({...mfe,props:ufe,emits:cfe,setup(e,{expose:t}){const n=e,{ns:s,zIndex:r}=og("notification"),{nextZIndex:i,currentZIndex:a}=r,{Close:o}=bO,l=G(!1);let u;const c=k(()=>{const w=n.type;return w&&Wa[n.type]?s.m(w):""}),f=k(()=>n.type&&Wa[n.type]||n.icon),h=k(()=>n.position.endsWith("right")?"right":"left"),p=k(()=>n.position.startsWith("top")?"top":"bottom"),g=k(()=>{var w;return{[p.value]:`${n.offset}px`,zIndex:(w=n.zIndex)!=null?w:a.value}});function m(){n.duration>0&&({stop:u}=Xo(()=>{l.value&&v()},n.duration))}function y(){u==null||u()}function v(){l.value=!1}function _({code:w}){w===ot.delete||w===ot.backspace?y():w===ot.esc?l.value&&v():m()}return vt(()=>{m(),i(),l.value=!0}),dn(document,"keydown",_),t({visible:l,close:v}),(w,T)=>(C(),he(Rn,{name:d(s).b("fade"),onBeforeLeave:w.onClose,onAfterLeave:T[1]||(T[1]=S=>w.$emit("destroy")),persisted:""},{default:N(()=>[pt(R("div",{id:w.id,class:M([d(s).b(),w.customClass,d(h)]),style:rt(d(g)),role:"alert",onMouseenter:y,onMouseleave:m,onClick:T[0]||(T[0]=(...S)=>w.onClick&&w.onClick(...S))},[d(f)?(C(),he(d(tt),{key:0,class:M([d(s).e("icon"),d(c)])},{default:N(()=>[(C(),he(Nt(d(f))))]),_:1},8,["class"])):le("v-if",!0),R("div",{class:M(d(s).e("group"))},[R("h2",{class:M(d(s).e("title")),textContent:ve(w.title)},null,10,ffe),pt(R("div",{class:M(d(s).e("content")),style:rt(w.title?void 0:{margin:0})},[we(w.$slots,"default",{},()=>[w.dangerouslyUseHTMLString?(C(),j(Ke,{key:1},[le(" Caution here, message could've been compromised, never use user's input as message "),R("p",{innerHTML:w.message},null,8,pfe)],2112)):(C(),j("p",hfe,ve(w.message),1))])],6),[[Vt,w.message]]),w.showClose?(C(),he(d(tt),{key:0,class:M(d(s).e("closeBtn")),onClick:dt(v,["stop"])},{default:N(()=>[I(d(o))]),_:1},8,["class","onClick"])):le("v-if",!0)],2)],46,dfe),[[Vt,l.value]])]),_:3},8,["name","onBeforeLeave"]))}});var vfe=ze(gfe,[["__file","notification.vue"]]);const em={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},Jy=16;let yfe=1;const Cu=function(e={},t=null){if(!Kt)return{close:()=>{}};(typeof e=="string"||pn(e))&&(e={message:e});const n=e.position||"top-right";let s=e.offset||0;em[n].forEach(({vm:c})=>{var f;s+=(((f=c.el)==null?void 0:f.offsetHeight)||0)+Jy}),s+=Jy;const r=`notification_${yfe++}`,i=e.onClose,a={...e,offset:s,id:r,onClose:()=>{bfe(r,n,i)}};let o=document.body;Or(e.appendTo)?o=e.appendTo:Tt(e.appendTo)&&(o=document.querySelector(e.appendTo)),Or(o)||(o=document.body);const l=document.createElement("div"),u=I(vfe,a,pn(a.message)?{default:()=>a.message}:null);return u.appContext=t??Cu._context,u.props.onDestroy=()=>{cu(null,l)},cu(u,l),em[n].push({vm:u}),o.appendChild(l.firstElementChild),{close:()=>{u.component.exposed.visible.value=!1}}};bN.forEach(e=>{Cu[e]=(t={})=>((typeof t=="string"||pn(t))&&(t={message:t}),Cu({...t,type:e}))});function bfe(e,t,n){const s=em[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-Jy;f.props.offset=h}}function _fe(){for(const e of Object.values(em))e.forEach(({vm:t})=>{t.component.exposed.visible.value=!1})}Cu.closeAll=_fe;Cu._context=null;const Tfe=_O(Cu,"$notify");var wfe=[Ode,Mde,St,lfe,Tfe,i$],Sfe=D7([...wde,...wfe]);const Cfe={class:"util"},Efe=Z({__name:"Util",setup(e){const t=Ct({show:!1,darkTheme:!0});vt(()=>{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=hP;return C(),j("div",Cfe,[I(a,null,{default:N(()=>[pt(R("div",null,[R("a",{href:"javascript:;",onClick:r[0]||(r[0]=o=>n("top"))},[I(i,null,{default:N(()=>[I(d(hf))]),_:1})]),t.darkTheme?(C(),j("a",{key:0,href:"javascript:;",onClick:r[1]||(r[1]=o=>n("light"))},[I(i,null,{default:N(()=>[I(d(kj))]),_:1})])):le("",!0),t.darkTheme?le("",!0):(C(),j("a",{key:1,href:"javascript:;",onClick:r[2]||(r[2]=o=>n("dark"))},[I(i,null,{default:N(()=>[I(d(nj))]),_:1})])),R("a",{href:"/custom/player",onClick:r[3]||(r[3]=o=>n("dark"))},[I(i,null,{default:N(()=>[I(d(Nj))]),_:1})])],512),[[Vt,t.show]])]),_:1}),R("a",{href:"javascript:;",onClick:r[4]||(r[4]=o=>n("more")),class:"more"},[I(i,null,{default:N(()=>[I(d(U0))]),_:1})])])}}}),_n=(e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n},xfe=_n(Efe,[["__scopeId","data-v-66b1aa59"]]);var Zy={},kfe={get exports(){return Zy},set exports(e){Zy=e}};/*! Element Plus v2.4.4 */(function(e,t){(function(n,s){e.exports=s()})(nr,function(){var n={name:"zh-cn",el:{colorpicker:{confirm:"确定",clear:"清空"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",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:"六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页",page:"页",prev:"上一页",next:"下一页",currentPage:"第 {pager} 页",prevPages:"向前 {pager} 页",nextPages:"向后 {pager} 页",deprecationWarning:"你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!"},upload:{deleteTip:"按 delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"}}};return n})})(kfe);const Ife=Zy,Ofe={class:"main"},Afe=Z({__name:"App",setup(e){return(t,n)=>{const s=Et("router-view"),r=rA;return C(),he(r,{locale:d(Ife)},{default:N(()=>[R("div",Ofe,[I(s),I(xfe)])]),_:1},8,["locale"])}}});/*!
|
||
* vue-router v4.1.6
|
||
* (c) 2022 Eduardo San Martin Morote
|
||
* @license MIT
|
||
*/const Ml=typeof window<"u";function Pfe(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const cn=Object.assign;function Kv(e,t){const n={};for(const s in t){const r=t[s];n[s]=ti(r)?r.map(e):e(r)}return n}const td=()=>{},ti=Array.isArray,$fe=/\/$/,Nfe=e=>e.replace($fe,"");function Wv(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=Dfe(s??t,n),{fullPath:s+(i&&"?")+i+a,path:s,query:r,hash:a}}function Mfe(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function gx(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Rfe(e,t,n){const s=t.matched.length-1,r=n.matched.length-1;return s>-1&&s===r&&Eu(t.matched[s],n.matched[r])&&_N(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Eu(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function _N(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Lfe(e[n],t[n]))return!1;return!0}function Lfe(e,t){return ti(e)?vx(e,t):ti(t)?vx(t,e):e===t}function vx(e,t){return ti(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function Dfe(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),s=e.split("/");let r=n.length-1,i,a;for(i=0;i<s.length;i++)if(a=s[i],a!==".")if(a==="..")r>1&&r--;else break;return n.slice(0,r).join("/")+"/"+s.slice(i-(i===s.length?1:0)).join("/")}var jd;(function(e){e.pop="pop",e.push="push"})(jd||(jd={}));var nd;(function(e){e.back="back",e.forward="forward",e.unknown=""})(nd||(nd={}));function Ffe(e){if(!e)if(Ml){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Nfe(e)}const Bfe=/^[^#]+#/;function Vfe(e,t){return e.replace(Bfe,"#")+t}function Ufe(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 bg=()=>({left:window.pageXOffset,top:window.pageYOffset});function Hfe(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=Ufe(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function yx(e,t){return(history.state?history.state.position-t:-1)+e}const eb=new Map;function zfe(e,t){eb.set(e,t)}function jfe(e){const t=eb.get(e);return eb.delete(e),t}let Kfe=()=>location.protocol+"//"+location.host;function TN(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),gx(l,"")}return gx(n,e)+s+r}function Wfe(e,t,n,s){let r=[],i=[],a=null;const o=({state:h})=>{const p=TN(e,location),g=n.value,m=t.value;let y=0;if(h){if(n.value=p,t.value=h,a&&a===g){a=null;return}y=m?h.position-m.position:0}else s(p);r.forEach(v=>{v(n.value,g,{delta:y,type:jd.pop,direction:y?y>0?nd.forward:nd.back:nd.unknown})})};function l(){a=n.value}function u(h){r.push(h);const p=()=>{const g=r.indexOf(h);g>-1&&r.splice(g,1)};return i.push(p),p}function c(){const{history:h}=window;h.state&&h.replaceState(cn({},h.state,{scroll:bg()}),"")}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),{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?bg():null}}function qfe(e){const{history:t,location:n}=window,s={value:TN(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:Kfe()+e+l;try{t[c?"replaceState":"pushState"](u,"",h),r.value=u}catch(p){console.error(p),n[c?"replace":"assign"](h)}}function a(l,u){const c=cn({},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=cn({},r.value,t.state,{forward:l,scroll:bg()});i(c.current,c,!0);const f=cn({},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 Gfe(e){e=Ffe(e);const t=qfe(e),n=Wfe(e,t.state,t.location,t.replace);function s(i,a=!0){a||n.pauseListeners(),history.go(i)}const r=cn({location:"",base:e,go:s,createHref:Vfe.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 Yfe(e){return typeof e=="string"||e&&typeof e=="object"}function wN(e){return typeof e=="string"||typeof e=="symbol"}const Ca={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},SN=Symbol("");var _x;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(_x||(_x={}));function xu(e,t){return cn(new Error,{type:e,[SN]:!0},t)}function Ui(e,t){return e instanceof Error&&SN in e&&(t==null||!!(e.type&t))}const Tx="[^/]+?",Xfe={sensitive:!1,strict:!1,start:!0,end:!0},Qfe=/[.+*?^${}()[\]/\\]/g;function Jfe(e,t){const n=cn({},Xfe,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 p=40+(n.sensitive?.25:0);if(h.type===0)f||(r+="/"),r+=h.value.replace(Qfe,"\\$&"),p+=40;else if(h.type===1){const{value:g,repeatable:m,optional:y,regexp:v}=h;i.push({name:g,repeatable:m,optional:y});const _=v||Tx;if(_!==Tx){p+=10;try{new RegExp(`(${_})`)}catch(T){throw new Error(`Invalid custom RegExp for param "${g}" (${_}): `+T.message)}}let w=m?`((?:${_})(?:/(?:${_}))*)`:`(${_})`;f||(w=y&&u.length<2?`(?:/${w})`:"/"+w),y&&(w+="?"),r+=w,p+=20,y&&(p+=-8),m&&(p+=-20),_===".*"&&(p+=-50)}c.push(p)}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 p=c[h]||"",g=i[h-1];f[g.name]=p&&g.repeatable?p.split("/"):p}return f}function l(u){let c="",f=!1;for(const h of e){(!f||!c.endsWith("/"))&&(c+="/"),f=!1;for(const p of h)if(p.type===0)c+=p.value;else if(p.type===1){const{value:g,repeatable:m,optional:y}=p,v=g in u?u[g]:"";if(ti(v)&&!m)throw new Error(`Provided param "${g}" is an array but it is not repeatable (* or + modifiers)`);const _=ti(v)?v.join("/"):v;if(!_)if(y)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 Zfe(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 ehe(e,t){let n=0;const s=e.score,r=t.score;for(;n<s.length&&n<r.length;){const i=Zfe(s[n],r[n]);if(i)return i;n++}if(Math.abs(r.length-s.length)===1){if(wx(s))return 1;if(wx(r))return-1}return r.length-s.length}function wx(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const the={type:0,value:""},nhe=/[a-zA-Z0-9_]/;function she(e){if(!e)return[[]];if(e==="/")return[[the]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(p){throw new Error(`ERR (${n})/"${u}": ${p}`)}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:nhe.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 rhe(e,t,n){const s=Jfe(she(e.path),n),r=cn(s,{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function ihe(e,t){const n=[],s=new Map;t=Ex({strict:!1,end:!0,sensitive:!1},t);function r(c){return s.get(c)}function i(c,f,h){const p=!h,g=ahe(c);g.aliasOf=h&&h.record;const m=Ex(t,c),y=[g];if("alias"in c){const w=typeof c.alias=="string"?[c.alias]:c.alias;for(const T of w)y.push(cn({},g,{components:h?h.record.components:g.components,path:T,aliasOf:h?h.record:g}))}let v,_;for(const w of y){const{path:T}=w;if(f&&T[0]!=="/"){const S=f.record.path,E=S[S.length-1]==="/"?"":"/";w.path=f.record.path+(T&&E+T)}if(v=rhe(w,f,m),h?h.alias.push(v):(_=_||v,_!==v&&_.alias.push(v),p&&c.name&&!Cx(v)&&a(c.name)),g.children){const S=g.children;for(let E=0;E<S.length;E++)i(S[E],v,h&&h.children[E])}h=h||v,(v.record.components&&Object.keys(v.record.components).length||v.record.name||v.record.redirect)&&l(v)}return _?()=>{a(_)}:td}function a(c){if(wN(c)){const f=s.get(c);f&&(s.delete(c),n.splice(n.indexOf(f),1),f.children.forEach(a),f.alias.forEach(a))}else{const f=n.indexOf(c);f>-1&&(n.splice(f,1),c.record.name&&s.delete(c.record.name),c.children.forEach(a),c.alias.forEach(a))}}function o(){return n}function l(c){let f=0;for(;f<n.length&&ehe(c,n[f])>=0&&(c.record.path!==n[f].record.path||!CN(c,n[f]));)f++;n.splice(f,0,c),c.record.name&&!Cx(c)&&s.set(c.record.name,c)}function u(c,f){let h,p={},g,m;if("name"in c&&c.name){if(h=s.get(c.name),!h)throw xu(1,{location:c});m=h.record.name,p=cn(Sx(f.params,h.keys.filter(_=>!_.optional).map(_=>_.name)),c.params&&Sx(c.params,h.keys.map(_=>_.name))),g=h.stringify(p)}else if("path"in c)g=c.path,h=n.find(_=>_.re.test(g)),h&&(p=h.parse(g),m=h.record.name);else{if(h=f.name?s.get(f.name):n.find(_=>_.re.test(f.path)),!h)throw xu(1,{location:c,currentLocation:f});m=h.record.name,p=cn({},f.params,c.params),g=h.stringify(p)}const y=[];let v=h;for(;v;)y.unshift(v.record),v=v.parent;return{name:m,path:g,params:p,matched:y,meta:lhe(y)}}return e.forEach(c=>i(c)),{addRoute:i,resolve:u,removeRoute:a,getRoutes:o,getRecordMatcher:r}}function Sx(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function ahe(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:ohe(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 ohe(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=="boolean"?n:n[s];return t}function Cx(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function lhe(e){return e.reduce((t,n)=>cn(t,n.meta),{})}function Ex(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}function CN(e,t){return t.children.some(n=>n===e||CN(e,n))}const EN=/#/g,uhe=/&/g,che=/\//g,dhe=/=/g,fhe=/\?/g,xN=/\+/g,hhe=/%5B/g,phe=/%5D/g,kN=/%5E/g,mhe=/%60/g,IN=/%7B/g,ghe=/%7C/g,ON=/%7D/g,vhe=/%20/g;function z1(e){return encodeURI(""+e).replace(ghe,"|").replace(hhe,"[").replace(phe,"]")}function yhe(e){return z1(e).replace(IN,"{").replace(ON,"}").replace(kN,"^")}function tb(e){return z1(e).replace(xN,"%2B").replace(vhe,"+").replace(EN,"%23").replace(uhe,"%26").replace(mhe,"`").replace(IN,"{").replace(ON,"}").replace(kN,"^")}function bhe(e){return tb(e).replace(dhe,"%3D")}function _he(e){return z1(e).replace(EN,"%23").replace(fhe,"%3F")}function The(e){return e==null?"":_he(e).replace(che,"%2F")}function tm(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function whe(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(xN," "),a=i.indexOf("="),o=tm(a<0?i:i.slice(0,a)),l=a<0?null:tm(i.slice(a+1));if(o in t){let u=t[o];ti(u)||(u=t[o]=[u]),u.push(l)}else t[o]=l}return t}function xx(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}(ti(s)?s.map(i=>i&&tb(i)):[s&&tb(s)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+n,i!=null&&(t+="="+i))})}return t}function She(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=ti(s)?s.map(r=>r==null?null:""+r):s==null?s:""+s)}return t}const Che=Symbol(""),kx=Symbol(""),_g=Symbol(""),j1=Symbol(""),nb=Symbol("");function wc(){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,reset:n}}function $a(e,t,n,s,r){const i=s&&(s.enterCallbacks[r]=s.enterCallbacks[r]||[]);return()=>new Promise((a,o)=>{const l=f=>{f===!1?o(xu(4,{from:n,to:t})):f instanceof Error?o(f):Yfe(f)?o(xu(2,{from:t,to:f})):(i&&s.enterCallbacks[r]===i&&typeof f=="function"&&i.push(f),a())},u=e.call(s&&s.instances[r],t,n,l);let c=Promise.resolve(u);e.length<3&&(c=c.then(l)),c.catch(f=>o(f))})}function qv(e,t,n,s){const r=[];for(const i of e)for(const a in i.components){let o=i.components[a];if(!(t!=="beforeRouteEnter"&&!i.instances[a]))if(Ehe(o)){const u=(o.__vccOpts||o)[t];u&&r.push($a(u,n,s,i,a))}else{let l=o();r.push(()=>l.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${a}" at "${i.path}"`));const c=Pfe(u)?u.default:u;i.components[a]=c;const h=(c.__vccOpts||c)[t];return h&&$a(h,n,s,i,a)()}))}}return r}function Ehe(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Ix(e){const t=Qe(_g),n=Qe(j1),s=k(()=>t.resolve(d(e.to))),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(Eu.bind(null,c));if(h>-1)return h;const p=Ox(l[u-2]);return u>1&&Ox(c)===p&&f[f.length-1].path!==p?f.findIndex(Eu.bind(null,l[u-2])):h}),i=k(()=>r.value>-1&&Ohe(n.params,s.value.params)),a=k(()=>r.value>-1&&r.value===n.matched.length-1&&_N(n.params,s.value.params));function o(l={}){return Ihe(l)?t[d(e.replace)?"replace":"push"](d(e.to)).catch(td):Promise.resolve()}return{route:s,href:k(()=>s.value.href),isActive:i,isExactActive:a,navigate:o}}const xhe=Z({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:Ix,setup(e,{slots:t}){const n=Ct(Ix(e)),{options:s}=Qe(_g),r=k(()=>({[Ax(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[Ax(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&t.default(n);return e.custom?i:lt("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},i)}}}),khe=xhe;function Ihe(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 Ohe(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(!ti(r)||r.length!==s.length||s.some((i,a)=>i!==r[a]))return!1}return!0}function Ox(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Ax=(e,t,n)=>e??t??n,Ahe=Z({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=Qe(nb),r=k(()=>e.route||s.value),i=Qe(kx,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]);Lt(kx,k(()=>a.value+1)),Lt(Che,o),Lt(nb,r);const l=G();return Oe(()=>[l.value,o.value,e.name],([u,c,f],[h,p,g])=>{c&&(c.instances[f]=u,p&&p!==c&&u&&u===h&&(c.leaveGuards.size||(c.leaveGuards=p.leaveGuards),c.updateGuards.size||(c.updateGuards=p.updateGuards))),u&&c&&(!p||!Eu(c,p)||!h)&&(c.enterCallbacks[f]||[]).forEach(m=>m(u))},{flush:"post"}),()=>{const u=r.value,c=e.name,f=o.value,h=f&&f.components[c];if(!h)return Px(n.default,{Component:h,route:u});const p=f.props[c],g=p?p===!0?u.params:typeof p=="function"?p(u):p:null,y=lt(h,cn({},g,t,{onVnodeUnmounted:v=>{v.component.isUnmounted&&(f.instances[c]=null)},ref:l}));return Px(n.default,{Component:y,route:u})||y}}});function Px(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Phe=Ahe;function $he(e){const t=ihe(e.routes,e),n=e.parseQuery||whe,s=e.stringifyQuery||xx,r=e.history,i=wc(),a=wc(),o=wc(),l=Jt(Ca);let u=Ca;Ml&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=Kv.bind(null,ue=>""+ue),f=Kv.bind(null,The),h=Kv.bind(null,tm);function p(ue,oe){let de,ae;return wN(ue)?(de=t.getRecordMatcher(ue),ae=oe):ae=ue,t.addRoute(ae,de)}function g(ue){const oe=t.getRecordMatcher(ue);oe&&t.removeRoute(oe)}function m(){return t.getRoutes().map(ue=>ue.record)}function y(ue){return!!t.getRecordMatcher(ue)}function v(ue,oe){if(oe=cn({},oe||l.value),typeof ue=="string"){const J=Wv(n,ue,oe.path),re=t.resolve({path:J.path},oe),Se=r.createHref(J.fullPath);return cn(J,re,{params:h(re.params),hash:tm(J.hash),redirectedFrom:void 0,href:Se})}let de;if("path"in ue)de=cn({},ue,{path:Wv(n,ue.path,oe.path).path});else{const J=cn({},ue.params);for(const re in J)J[re]==null&&delete J[re];de=cn({},ue,{params:f(ue.params)}),oe.params=f(oe.params)}const ae=t.resolve(de,oe),Ie=ue.hash||"";ae.params=c(h(ae.params));const ke=Mfe(s,cn({},ue,{hash:yhe(Ie),path:ae.path})),Ee=r.createHref(ke);return cn({fullPath:ke,hash:Ie,query:s===xx?She(ue.query):ue.query||{}},ae,{redirectedFrom:void 0,href:Ee})}function _(ue){return typeof ue=="string"?Wv(n,ue,l.value.path):cn({},ue)}function w(ue,oe){if(u!==ue)return xu(8,{from:oe,to:ue})}function T(ue){return $(ue)}function S(ue){return T(cn(_(ue),{replace:!0}))}function E(ue){const oe=ue.matched[ue.matched.length-1];if(oe&&oe.redirect){const{redirect:de}=oe;let ae=typeof de=="function"?de(ue):de;return typeof ae=="string"&&(ae=ae.includes("?")||ae.includes("#")?ae=_(ae):{path:ae},ae.params={}),cn({query:ue.query,hash:ue.hash,params:"path"in ae?{}:ue.params},ae)}}function $(ue,oe){const de=u=v(ue),ae=l.value,Ie=ue.state,ke=ue.force,Ee=ue.replace===!0,J=E(de);if(J)return $(cn(_(J),{state:typeof J=="object"?cn({},Ie,J.state):Ie,force:ke,replace:Ee}),oe||de);const re=de;re.redirectedFrom=oe;let Se;return!ke&&Rfe(s,ae,de)&&(Se=xu(16,{to:re,from:ae}),Q(ae,ae,!0,!1)),(Se?Promise.resolve(Se):U(re,ae)).catch(Ae=>Ui(Ae)?Ui(Ae,2)?Ae:L(Ae):B(Ae,re,ae)).then(Ae=>{if(Ae){if(Ui(Ae,2))return $(cn({replace:Ee},_(Ae.to),{state:typeof Ae.to=="object"?cn({},Ie,Ae.to.state):Ie,force:ke}),oe||re)}else Ae=z(re,ae,!0,Ee,Ie);return H(re,ae,Ae),Ae})}function P(ue,oe){const de=w(ue,oe);return de?Promise.reject(de):Promise.resolve()}function U(ue,oe){let de;const[ae,Ie,ke]=Nhe(ue,oe);de=qv(ae.reverse(),"beforeRouteLeave",ue,oe);for(const J of ae)J.leaveGuards.forEach(re=>{de.push($a(re,ue,oe))});const Ee=P.bind(null,ue,oe);return de.push(Ee),Tl(de).then(()=>{de=[];for(const J of i.list())de.push($a(J,ue,oe));return de.push(Ee),Tl(de)}).then(()=>{de=qv(Ie,"beforeRouteUpdate",ue,oe);for(const J of Ie)J.updateGuards.forEach(re=>{de.push($a(re,ue,oe))});return de.push(Ee),Tl(de)}).then(()=>{de=[];for(const J of ue.matched)if(J.beforeEnter&&!oe.matched.includes(J))if(ti(J.beforeEnter))for(const re of J.beforeEnter)de.push($a(re,ue,oe));else de.push($a(J.beforeEnter,ue,oe));return de.push(Ee),Tl(de)}).then(()=>(ue.matched.forEach(J=>J.enterCallbacks={}),de=qv(ke,"beforeRouteEnter",ue,oe),de.push(Ee),Tl(de))).then(()=>{de=[];for(const J of a.list())de.push($a(J,ue,oe));return de.push(Ee),Tl(de)}).catch(J=>Ui(J,8)?J:Promise.reject(J))}function H(ue,oe,de){for(const ae of o.list())ae(ue,oe,de)}function z(ue,oe,de,ae,Ie){const ke=w(ue,oe);if(ke)return ke;const Ee=oe===Ca,J=Ml?history.state:{};de&&(ae||Ee?r.replace(ue.fullPath,cn({scroll:Ee&&J&&J.scroll},Ie)):r.push(ue.fullPath,Ie)),l.value=ue,Q(ue,oe,de,Ee),L()}let W;function D(){W||(W=r.listen((ue,oe,de)=>{if(!_e.listening)return;const ae=v(ue),Ie=E(ae);if(Ie){$(cn(Ie,{replace:!0}),ae).catch(td);return}u=ae;const ke=l.value;Ml&&zfe(yx(ke.fullPath,de.delta),bg()),U(ae,ke).catch(Ee=>Ui(Ee,12)?Ee:Ui(Ee,2)?($(Ee.to,ae).then(J=>{Ui(J,20)&&!de.delta&&de.type===jd.pop&&r.go(-1,!1)}).catch(td),Promise.reject()):(de.delta&&r.go(-de.delta,!1),B(Ee,ae,ke))).then(Ee=>{Ee=Ee||z(ae,ke,!1),Ee&&(de.delta&&!Ui(Ee,8)?r.go(-de.delta,!1):de.type===jd.pop&&Ui(Ee,20)&&r.go(-1,!1)),H(ae,ke,Ee)}).catch(td)}))}let V=wc(),X=wc(),Y;function B(ue,oe,de){L(ue);const ae=X.list();return ae.length?ae.forEach(Ie=>Ie(ue,oe,de)):console.error(ue),Promise.reject(ue)}function K(){return Y&&l.value!==Ca?Promise.resolve():new Promise((ue,oe)=>{V.add([ue,oe])})}function L(ue){return Y||(Y=!ue,D(),V.list().forEach(([oe,de])=>ue?de(ue):oe()),V.reset()),ue}function Q(ue,oe,de,ae){const{scrollBehavior:Ie}=e;if(!Ml||!Ie)return Promise.resolve();const ke=!de&&jfe(yx(ue.fullPath,0))||(ae||!de)&&history.state&&history.state.scroll||null;return at().then(()=>Ie(ue,oe,ke)).then(Ee=>Ee&&Hfe(Ee)).catch(Ee=>B(Ee,ue,oe))}const ee=ue=>r.go(ue);let te;const ie=new Set,_e={currentRoute:l,listening:!0,addRoute:p,removeRoute:g,hasRoute:y,getRoutes:m,resolve:v,options:e,push:T,replace:S,go:ee,back:()=>ee(-1),forward:()=>ee(1),beforeEach:i.add,beforeResolve:a.add,afterEach:o.add,onError:X.add,isReady:K,install(ue){const oe=this;ue.component("RouterLink",khe),ue.component("RouterView",Phe),ue.config.globalProperties.$router=oe,Object.defineProperty(ue.config.globalProperties,"$route",{enumerable:!0,get:()=>d(l)}),Ml&&!te&&l.value===Ca&&(te=!0,T(r.location).catch(Ie=>{}));const de={};for(const Ie in Ca)de[Ie]=k(()=>l.value[Ie]);ue.provide(_g,oe),ue.provide(j1,Ct(de)),ue.provide(nb,l);const ae=ue.unmount;ie.add(ue),ue.unmount=function(){ie.delete(ue),ie.size<1&&(u=Ca,W&&W(),W=null,l.value=Ca,te=!1,Y=!1),ae()}}};return _e}function Tl(e){return e.reduce((t,n)=>t.then(()=>n()),Promise.resolve())}function Nhe(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=>Eu(u,o))?s.push(o):n.push(o));const l=e.matched[a];l&&(t.matched.find(u=>Eu(u,l))||r.push(l))}return[n,s,r]}function ya(){return Qe(_g)}function Mhe(){return Qe(j1)}const Rhe={},Lhe={class:"custom-footer"};function Dhe(e,t){return C(),j("div",Lhe," 本站所有内容均来自互联网分享站点所提供的公开引用资源,未提供资源上传、存储服务。 ")}const Fhe=_n(Rhe,[["render",Dhe],["__scopeId","data-v-83253fd7"]]);function AN(e,t){return function(){return e.apply(t,arguments)}}const{toString:PN}=Object.prototype,{getPrototypeOf:K1}=Object,W1=(e=>t=>{const n=PN.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ba=e=>(e=e.toLowerCase(),t=>W1(t)===e),Tg=e=>t=>typeof t===e,{isArray:Yu}=Array,Kd=Tg("undefined");function Bhe(e){return e!==null&&!Kd(e)&&e.constructor!==null&&!Kd(e.constructor)&&Ya(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const $N=ba("ArrayBuffer");function Vhe(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&$N(e.buffer),t}const Uhe=Tg("string"),Ya=Tg("function"),NN=Tg("number"),q1=e=>e!==null&&typeof e=="object",Hhe=e=>e===!0||e===!1,Tp=e=>{if(W1(e)!=="object")return!1;const t=K1(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},zhe=ba("Date"),jhe=ba("File"),Khe=ba("Blob"),Whe=ba("FileList"),qhe=e=>q1(e)&&Ya(e.pipe),Ghe=e=>{const t="[object FormData]";return e&&(typeof FormData=="function"&&e instanceof FormData||PN.call(e)===t||Ya(e.toString)&&e.toString()===t)},Yhe=ba("URLSearchParams"),Xhe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function kf(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let s,r;if(typeof e!="object"&&(e=[e]),Yu(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 MN(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 RN=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),LN=e=>!Kd(e)&&e!==RN;function sb(){const{caseless:e}=LN(this)&&this||{},t={},n=(s,r)=>{const i=e&&MN(t,r)||r;Tp(t[i])&&Tp(s)?t[i]=sb(t[i],s):Tp(s)?t[i]=sb({},s):Yu(s)?t[i]=s.slice():t[i]=s};for(let s=0,r=arguments.length;s<r;s++)arguments[s]&&kf(arguments[s],n);return t}const Qhe=(e,t,n,{allOwnKeys:s}={})=>(kf(t,(r,i)=>{n&&Ya(r)?e[i]=AN(r,n):e[i]=r},{allOwnKeys:s}),e),Jhe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Zhe=(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)},epe=(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&&K1(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},tpe=(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},npe=e=>{if(!e)return null;if(Yu(e))return e;let t=e.length;if(!NN(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},spe=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&K1(Uint8Array)),rpe=(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])}},ipe=(e,t)=>{let n;const s=[];for(;(n=e.exec(t))!==null;)s.push(n);return s},ape=ba("HTMLFormElement"),ope=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,s,r){return s.toUpperCase()+r}),$x=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),lpe=ba("RegExp"),DN=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),s={};kf(n,(r,i)=>{t(r,i,e)!==!1&&(s[i]=r)}),Object.defineProperties(e,s)},upe=e=>{DN(e,(t,n)=>{if(Ya(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const s=e[n];if(Ya(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+"'")})}})},cpe=(e,t)=>{const n={},s=r=>{r.forEach(i=>{n[i]=!0})};return Yu(e)?s(e):s(String(e).split(t)),n},dpe=()=>{},fpe=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Gv="abcdefghijklmnopqrstuvwxyz",Nx="0123456789",FN={DIGIT:Nx,ALPHA:Gv,ALPHA_DIGIT:Gv+Gv.toUpperCase()+Nx},hpe=(e=16,t=FN.ALPHA_DIGIT)=>{let n="";const{length:s}=t;for(;e--;)n+=t[Math.random()*s|0];return n};function ppe(e){return!!(e&&Ya(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const mpe=e=>{const t=new Array(10),n=(s,r)=>{if(q1(s)){if(t.indexOf(s)>=0)return;if(!("toJSON"in s)){t[r]=s;const i=Yu(s)?[]:{};return kf(s,(a,o)=>{const l=n(a,r+1);!Kd(l)&&(i[o]=l)}),t[r]=void 0,i}}return s};return n(e,0)},nt={isArray:Yu,isArrayBuffer:$N,isBuffer:Bhe,isFormData:Ghe,isArrayBufferView:Vhe,isString:Uhe,isNumber:NN,isBoolean:Hhe,isObject:q1,isPlainObject:Tp,isUndefined:Kd,isDate:zhe,isFile:jhe,isBlob:Khe,isRegExp:lpe,isFunction:Ya,isStream:qhe,isURLSearchParams:Yhe,isTypedArray:spe,isFileList:Whe,forEach:kf,merge:sb,extend:Qhe,trim:Xhe,stripBOM:Jhe,inherits:Zhe,toFlatObject:epe,kindOf:W1,kindOfTest:ba,endsWith:tpe,toArray:npe,forEachEntry:rpe,matchAll:ipe,isHTMLForm:ape,hasOwnProperty:$x,hasOwnProp:$x,reduceDescriptors:DN,freezeMethods:upe,toObjectSet:cpe,toCamelCase:ope,noop:dpe,toFiniteNumber:fpe,findKey:MN,global:RN,isContextDefined:LN,ALPHABET:FN,generateString:hpe,isSpecCompliantForm:ppe,toJSONObject:mpe};function rn(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)}nt.inherits(rn,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:nt.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const BN=rn.prototype,VN={};["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=>{VN[e]={value:e}});Object.defineProperties(rn,VN);Object.defineProperty(BN,"isAxiosError",{value:!0});rn.from=(e,t,n,s,r,i)=>{const a=Object.create(BN);return nt.toFlatObject(e,a,function(l){return l!==Error.prototype},o=>o!=="isAxiosError"),rn.call(a,e.message,t,n,s,r),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const gpe=null;function rb(e){return nt.isPlainObject(e)||nt.isArray(e)}function UN(e){return nt.endsWith(e,"[]")?e.slice(0,-2):e}function Mx(e,t,n){return e?e.concat(t).map(function(r,i){return r=UN(r),!n&&i?"["+r+"]":r}).join(n?".":""):t}function vpe(e){return nt.isArray(e)&&!e.some(rb)}const ype=nt.toFlatObject(nt,{},null,function(t){return/^is[A-Z]/.test(t)});function wg(e,t,n){if(!nt.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=nt.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,y){return!nt.isUndefined(y[m])});const s=n.metaTokens,r=n.visitor||c,i=n.dots,a=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&nt.isSpecCompliantForm(t);if(!nt.isFunction(r))throw new TypeError("visitor must be a function");function u(g){if(g===null)return"";if(nt.isDate(g))return g.toISOString();if(!l&&nt.isBlob(g))throw new rn("Blob is not supported. Use a Buffer instead.");return nt.isArrayBuffer(g)||nt.isTypedArray(g)?l&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function c(g,m,y){let v=g;if(g&&!y&&typeof g=="object"){if(nt.endsWith(m,"{}"))m=s?m:m.slice(0,-2),g=JSON.stringify(g);else if(nt.isArray(g)&&vpe(g)||(nt.isFileList(g)||nt.endsWith(m,"[]"))&&(v=nt.toArray(g)))return m=UN(m),v.forEach(function(w,T){!(nt.isUndefined(w)||w===null)&&t.append(a===!0?Mx([m],T,i):a===null?m:m+"[]",u(w))}),!1}return rb(g)?!0:(t.append(Mx(y,m,i),u(g)),!1)}const f=[],h=Object.assign(ype,{defaultVisitor:c,convertValue:u,isVisitable:rb});function p(g,m){if(!nt.isUndefined(g)){if(f.indexOf(g)!==-1)throw Error("Circular reference detected in "+m.join("."));f.push(g),nt.forEach(g,function(v,_){(!(nt.isUndefined(v)||v===null)&&r.call(t,v,nt.isString(_)?_.trim():_,m,h))===!0&&p(v,m?m.concat(_):[_])}),f.pop()}}if(!nt.isObject(e))throw new TypeError("data must be an object");return p(e),t}function Rx(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(s){return t[s]})}function G1(e,t){this._pairs=[],e&&wg(e,this,t)}const HN=G1.prototype;HN.append=function(t,n){this._pairs.push([t,n])};HN.toString=function(t){const n=t?function(s){return t.call(this,s,Rx)}:Rx;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function bpe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function zN(e,t,n){if(!t)return e;const s=n&&n.encode||bpe,r=n&&n.serialize;let i;if(r?i=r(t,n):i=nt.isURLSearchParams(t)?t.toString():new G1(t,n).toString(s),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class _pe{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){nt.forEach(this.handlers,function(s){s!==null&&t(s)})}}const Lx=_pe,jN={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Tpe=typeof URLSearchParams<"u"?URLSearchParams:G1,wpe=typeof FormData<"u"?FormData:null,Spe=typeof Blob<"u"?Blob:null,Cpe=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),Epe=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),gi={isBrowser:!0,classes:{URLSearchParams:Tpe,FormData:wpe,Blob:Spe},isStandardBrowserEnv:Cpe,isStandardBrowserWebWorkerEnv:Epe,protocols:["http","https","file","blob","url","data"]};function xpe(e,t){return wg(e,new gi.classes.URLSearchParams,Object.assign({visitor:function(n,s,r,i){return gi.isNode&&nt.isBuffer(n)?(this.append(s,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function kpe(e){return nt.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Ipe(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 KN(e){function t(n,s,r,i){let a=n[i++];const o=Number.isFinite(+a),l=i>=n.length;return a=!a&&nt.isArray(r)?r.length:a,l?(nt.hasOwnProp(r,a)?r[a]=[r[a],s]:r[a]=s,!o):((!r[a]||!nt.isObject(r[a]))&&(r[a]=[]),t(n,s,r[a],i)&&nt.isArray(r[a])&&(r[a]=Ipe(r[a])),!o)}if(nt.isFormData(e)&&nt.isFunction(e.entries)){const n={};return nt.forEachEntry(e,(s,r)=>{t(kpe(s),r,n,0)}),n}return null}const Ope={"Content-Type":void 0};function Ape(e,t,n){if(nt.isString(e))try{return(t||JSON.parse)(e),nt.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(n||JSON.stringify)(e)}const Sg={transitional:jN,adapter:["xhr","http"],transformRequest:[function(t,n){const s=n.getContentType()||"",r=s.indexOf("application/json")>-1,i=nt.isObject(t);if(i&&nt.isHTMLForm(t)&&(t=new FormData(t)),nt.isFormData(t))return r&&r?JSON.stringify(KN(t)):t;if(nt.isArrayBuffer(t)||nt.isBuffer(t)||nt.isStream(t)||nt.isFile(t)||nt.isBlob(t))return t;if(nt.isArrayBufferView(t))return t.buffer;if(nt.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 xpe(t,this.formSerializer).toString();if((o=nt.isFileList(t))||s.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return wg(o?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||r?(n.setContentType("application/json",!1),Ape(t)):t}],transformResponse:[function(t){const n=this.transitional||Sg.transitional,s=n&&n.forcedJSONParsing,r=this.responseType==="json";if(t&&nt.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"?rn.from(o,rn.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, */*"}}};nt.forEach(["delete","get","head"],function(t){Sg.headers[t]={}});nt.forEach(["post","put","patch"],function(t){Sg.headers[t]=nt.merge(Ope)});const Y1=Sg,Ppe=nt.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"]),$pe=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]&&Ppe[n])&&(n==="set-cookie"?t[n]?t[n].push(s):t[n]=[s]:t[n]=t[n]?t[n]+", "+s:s)}),t},Dx=Symbol("internals");function Sc(e){return e&&String(e).trim().toLowerCase()}function wp(e){return e===!1||e==null?e:nt.isArray(e)?e.map(wp):String(e)}function Npe(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}function Mpe(e){return/^[-_a-zA-Z]+$/.test(e.trim())}function Yv(e,t,n,s,r){if(nt.isFunction(s))return s.call(this,t,n);if(r&&(t=n),!!nt.isString(t)){if(nt.isString(s))return t.indexOf(s)!==-1;if(nt.isRegExp(s))return s.test(t)}}function Rpe(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,s)=>n.toUpperCase()+s)}function Lpe(e,t){const n=nt.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 Cg{constructor(t){t&&this.set(t)}set(t,n,s){const r=this;function i(o,l,u){const c=Sc(l);if(!c)throw new Error("header name must be a non-empty string");const f=nt.findKey(r,c);(!f||r[f]===void 0||u===!0||u===void 0&&r[f]!==!1)&&(r[f||l]=wp(o))}const a=(o,l)=>nt.forEach(o,(u,c)=>i(u,c,l));return nt.isPlainObject(t)||t instanceof this.constructor?a(t,n):nt.isString(t)&&(t=t.trim())&&!Mpe(t)?a($pe(t),n):t!=null&&i(n,t,s),this}get(t,n){if(t=Sc(t),t){const s=nt.findKey(this,t);if(s){const r=this[s];if(!n)return r;if(n===!0)return Npe(r);if(nt.isFunction(n))return n.call(this,r,s);if(nt.isRegExp(n))return n.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Sc(t),t){const s=nt.findKey(this,t);return!!(s&&this[s]!==void 0&&(!n||Yv(this,this[s],s,n)))}return!1}delete(t,n){const s=this;let r=!1;function i(a){if(a=Sc(a),a){const o=nt.findKey(s,a);o&&(!n||Yv(s,s[o],o,n))&&(delete s[o],r=!0)}}return nt.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||Yv(this,this[i],i,t,!0))&&(delete this[i],r=!0)}return r}normalize(t){const n=this,s={};return nt.forEach(this,(r,i)=>{const a=nt.findKey(s,i);if(a){n[a]=wp(r),delete n[i];return}const o=t?Rpe(i):String(i).trim();o!==i&&delete n[i],n[o]=wp(r),s[o]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return nt.forEach(this,(s,r)=>{s!=null&&s!==!1&&(n[r]=t&&nt.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[Dx]=this[Dx]={accessors:{}}).accessors,r=this.prototype;function i(a){const o=Sc(a);s[o]||(Lpe(r,a),s[o]=!0)}return nt.isArray(t)?t.forEach(i):i(t),this}}Cg.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);nt.freezeMethods(Cg.prototype);nt.freezeMethods(Cg);const Ji=Cg;function Xv(e,t){const n=this||Y1,s=t||n,r=Ji.from(s.headers);let i=s.data;return nt.forEach(e,function(o){i=o.call(n,i,r.normalize(),t?t.status:void 0)}),r.normalize(),i}function WN(e){return!!(e&&e.__CANCEL__)}function If(e,t,n){rn.call(this,e??"canceled",rn.ERR_CANCELED,t,n),this.name="CanceledError"}nt.inherits(If,rn,{__CANCEL__:!0});function Dpe(e,t,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?e(n):t(new rn("Request failed with status code "+n.status,[rn.ERR_BAD_REQUEST,rn.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const Fpe=gi.isStandardBrowserEnv?function(){return{write:function(n,s,r,i,a,o){const l=[];l.push(n+"="+encodeURIComponent(s)),nt.isNumber(r)&&l.push("expires="+new Date(r).toGMTString()),nt.isString(i)&&l.push("path="+i),nt.isString(a)&&l.push("domain="+a),o===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(n){const s=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return s?decodeURIComponent(s[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function Bpe(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Vpe(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function qN(e,t){return e&&!Bpe(t)?Vpe(e,t):t}const Upe=gi.isStandardBrowserEnv?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=nt.isString(a)?r(a):a;return o.protocol===s.protocol&&o.host===s.host}}():function(){return function(){return!0}}();function Hpe(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function zpe(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 p=c&&u-c;return p?Math.round(h*1e3/p):void 0}}function Fx(e,t){let n=0;const s=zpe(50,250);return r=>{const i=r.loaded,a=r.lengthComputable?r.total:void 0,o=i-n,l=s(o),u=i<=a;n=i;const c={loaded:i,total:a,progress:a?i/a:void 0,bytes:o,rate:l||void 0,estimated:l&&a&&u?(a-i)/l:void 0,event:r};c[t?"download":"upload"]=!0,e(c)}}const jpe=typeof XMLHttpRequest<"u",Kpe=jpe&&function(e){return new Promise(function(n,s){let r=e.data;const i=Ji.from(e.headers).normalize(),a=e.responseType;let o;function l(){e.cancelToken&&e.cancelToken.unsubscribe(o),e.signal&&e.signal.removeEventListener("abort",o)}nt.isFormData(r)&&(gi.isStandardBrowserEnv||gi.isStandardBrowserWebWorkerEnv)&&i.setContentType(!1);let u=new XMLHttpRequest;if(e.auth){const p=e.auth.username||"",g=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(p+":"+g))}const c=qN(e.baseURL,e.url);u.open(e.method.toUpperCase(),zN(c,e.params,e.paramsSerializer),!0),u.timeout=e.timeout;function f(){if(!u)return;const p=Ji.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),m={data:!a||a==="text"||a==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:p,config:e,request:u};Dpe(function(v){n(v),l()},function(v){s(v),l()},m),u=null}if("onloadend"in u?u.onloadend=f:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(f)},u.onabort=function(){u&&(s(new rn("Request aborted",rn.ECONNABORTED,e,u)),u=null)},u.onerror=function(){s(new rn("Network Error",rn.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let g=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const m=e.transitional||jN;e.timeoutErrorMessage&&(g=e.timeoutErrorMessage),s(new rn(g,m.clarifyTimeoutError?rn.ETIMEDOUT:rn.ECONNABORTED,e,u)),u=null},gi.isStandardBrowserEnv){const p=(e.withCredentials||Upe(c))&&e.xsrfCookieName&&Fpe.read(e.xsrfCookieName);p&&i.set(e.xsrfHeaderName,p)}r===void 0&&i.setContentType(null),"setRequestHeader"in u&&nt.forEach(i.toJSON(),function(g,m){u.setRequestHeader(m,g)}),nt.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),a&&a!=="json"&&(u.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&u.addEventListener("progress",Fx(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",Fx(e.onUploadProgress)),(e.cancelToken||e.signal)&&(o=p=>{u&&(s(!p||p.type?new If(null,e,u):p),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(o),e.signal&&(e.signal.aborted?o():e.signal.addEventListener("abort",o)));const h=Hpe(c);if(h&&gi.protocols.indexOf(h)===-1){s(new rn("Unsupported protocol "+h+":",rn.ERR_BAD_REQUEST,e));return}u.send(r||null)})},Sp={http:gpe,xhr:Kpe};nt.forEach(Sp,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Wpe={getAdapter:e=>{e=nt.isArray(e)?e:[e];const{length:t}=e;let n,s;for(let r=0;r<t&&(n=e[r],!(s=nt.isString(n)?Sp[n.toLowerCase()]:n));r++);if(!s)throw s===!1?new rn(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(nt.hasOwnProp(Sp,n)?`Adapter '${n}' is not available in the build`:`Unknown adapter '${n}'`);if(!nt.isFunction(s))throw new TypeError("adapter is not a function");return s},adapters:Sp};function Qv(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new If(null,e)}function Bx(e){return Qv(e),e.headers=Ji.from(e.headers),e.data=Xv.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Wpe.getAdapter(e.adapter||Y1.adapter)(e).then(function(s){return Qv(e),s.data=Xv.call(e,e.transformResponse,s),s.headers=Ji.from(s.headers),s},function(s){return WN(s)||(Qv(e),s&&s.response&&(s.response.data=Xv.call(e,e.transformResponse,s.response),s.response.headers=Ji.from(s.response.headers))),Promise.reject(s)})}const Vx=e=>e instanceof Ji?e.toJSON():e;function ku(e,t){t=t||{};const n={};function s(u,c,f){return nt.isPlainObject(u)&&nt.isPlainObject(c)?nt.merge.call({caseless:f},u,c):nt.isPlainObject(c)?nt.merge({},c):nt.isArray(c)?c.slice():c}function r(u,c,f){if(nt.isUndefined(c)){if(!nt.isUndefined(u))return s(void 0,u,f)}else return s(u,c,f)}function i(u,c){if(!nt.isUndefined(c))return s(void 0,c)}function a(u,c){if(nt.isUndefined(c)){if(!nt.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,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(Vx(u),Vx(c),!0)};return nt.forEach(Object.keys(e).concat(Object.keys(t)),function(c){const f=l[c]||r,h=f(e[c],t[c],c);nt.isUndefined(h)&&f!==o||(n[c]=h)}),n}const GN="1.3.4",X1={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{X1[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});const Ux={};X1.transitional=function(t,n,s){function r(i,a){return"[Axios v"+GN+"] Transitional option '"+i+"'"+a+(s?". "+s:"")}return(i,a,o)=>{if(t===!1)throw new rn(r(a," has been removed"+(n?" in "+n:"")),rn.ERR_DEPRECATED);return n&&!Ux[a]&&(Ux[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 qpe(e,t,n){if(typeof e!="object")throw new rn("options must be an object",rn.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 rn("option "+i+" must be "+l,rn.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new rn("Unknown option "+i,rn.ERR_BAD_OPTION)}}const ib={assertOptions:qpe,validators:X1},Ea=ib.validators;class nm{constructor(t){this.defaults=t,this.interceptors={request:new Lx,response:new Lx}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=ku(this.defaults,n);const{transitional:s,paramsSerializer:r,headers:i}=n;s!==void 0&&ib.assertOptions(s,{silentJSONParsing:Ea.transitional(Ea.boolean),forcedJSONParsing:Ea.transitional(Ea.boolean),clarifyTimeoutError:Ea.transitional(Ea.boolean)},!1),r!==void 0&&ib.assertOptions(r,{encode:Ea.function,serialize:Ea.function},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a;a=i&&nt.merge(i.common,i[n.method]),a&&nt.forEach(["delete","get","head","post","put","patch","common"],g=>{delete i[g]}),n.headers=Ji.concat(a,i);const o=[];let l=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(l=l&&m.synchronous,o.unshift(m.fulfilled,m.rejected))});const u=[];this.interceptors.response.forEach(function(m){u.push(m.fulfilled,m.rejected)});let c,f=0,h;if(!l){const g=[Bx.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 p=n;for(f=0;f<h;){const g=o[f++],m=o[f++];try{p=g(p)}catch(y){m.call(this,y);break}}try{c=Bx.call(this,p)}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=ku(this.defaults,t);const n=qN(t.baseURL,t.url);return zN(n,t.params,t.paramsSerializer)}}nt.forEach(["delete","get","head","options"],function(t){nm.prototype[t]=function(n,s){return this.request(ku(s||{},{method:t,url:n,data:(s||{}).data}))}});nt.forEach(["post","put","patch"],function(t){function n(s){return function(i,a,o){return this.request(ku(o||{},{method:t,headers:s?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}nm.prototype[t]=n(),nm.prototype[t+"Form"]=n(!0)});const Cp=nm;class Q1{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 If(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 Q1(function(r){t=r}),cancel:t}}}const Gpe=Q1;function Ype(e){return function(n){return e.apply(null,n)}}function Xpe(e){return nt.isObject(e)&&e.isAxiosError===!0}const ab={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(ab).forEach(([e,t])=>{ab[t]=e});const Qpe=ab;function YN(e){const t=new Cp(e),n=AN(Cp.prototype.request,t);return nt.extend(n,Cp.prototype,t,{allOwnKeys:!0}),nt.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return YN(ku(e,r))},n}const ns=YN(Y1);ns.Axios=Cp;ns.CanceledError=If;ns.CancelToken=Gpe;ns.isCancel=WN;ns.VERSION=GN;ns.toFormData=wg;ns.AxiosError=rn;ns.Cancel=ns.CanceledError;ns.all=function(t){return Promise.all(t)};ns.spread=Ype;ns.isAxiosError=Xpe;ns.mergeConfig=ku;ns.AxiosHeaders=Ji;ns.formToJSON=e=>KN(nt.isHTMLForm(e)?new FormData(e):e);ns.HttpStatusCode=Qpe;ns.default=ns;const Jpe=ns,Zpe={class:"loader"},eme=b8('<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),tme=[eme],nme=Z({__name:"Loading",props:{msg:{}},setup(e){return(t,n)=>pt((C(),j("div",Zpe,tme,512)),[[Vt,e.msg.show]])}}),sme=_n(nme,[["__scopeId","data-v-f4c312d6"]]),Ep=Ct({show:!1,title:"拼命加载中..."}),rme=Hm(sme,{msg:Ep}).mount(document.createElement("div")),Jv={start(e){Ep.show=!0,Ep.title=e,document.body.appendChild(rme.$el),document.body.style.overflow="hidden"},close(){Ep.show=!1,document.body.style.overflow="auto"}},ime=e=>{const t={key:"auth-token",value:e};localStorage.setItem("auth",JSON.stringify(t))},XN=()=>JSON.parse(localStorage.getItem("auth")),ame=()=>{localStorage.removeItem("auth")};let Cc=0;const QN=e=>new Promise((t,n)=>{const s=Jpe.create({baseURL:"/api",timeout:8e4});s.interceptors.request.use(r=>{Cc++,Jv.start("");let i=XN();return i&&i.value.length>0&&(r.headers[i.key]=i.value),r},r=>Promise.reject(r)),s.interceptors.response.use(r=>{Cc--,Cc==0&&Jv.close();let i=r.headers["new-token"];return i&&i.length>0&&ime(i),r.data},r=>(Cc--,Cc==0&&Jv.close(),r.response.status==401?(rw.replace("/login"),St.error(r.response.data.msg)):r.response.status==403?St.error("无访问权限!!!"):St.error("服务器繁忙,请稍后再试"),Promise.reject(r))),s(e).then(r=>{t(r)}).catch(r=>{n(r)})}),fn=(e,t)=>QN({url:e,method:"get",params:t}),ds=(e,t)=>QN({url:e,method:"post",data:t}),Jl={FILM_HISTORY:"filmHistory"},Zl={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}},Of=e=>(sr("data-v-f65eaf42"),e=e(),rr(),e),ome={class:"header"},lme={class:"nav_left"},ume={href:"/",class:"site"},cme={class:"search_group"},dme={class:"nav_right"},fme={class:"nav_link hidden-md-and-down"},hme=Of(()=>R("a",{href:"/"},"首页",-1)),pme=["href"],mme=["href"],gme=Of(()=>R("b",{style:{"font-size":"22px"},class:"iconfont icon-history"},null,-1)),vme=[gme],yme={key:0,class:"dropdown-container"},bme={class:"history-h"},_me=Of(()=>R("b",{class:"iconfont icon-record history-h-icon"},null,-1)),Tme=Of(()=>R("span",{class:"history-h-title"},"历史观看记录",-1)),wme={key:0,class:"history-c"},Sme=["href"],Cme={class:"history-c-item-t"},Eme={class:"history-c-item-e"},xme={href:"/search",class:"hidden-md-and-up"},kme=["id"],Ime={class:"wrap_nav"},Ome=Of(()=>R("a",{href:"/"},"首页",-1)),Ame=["href"],Pme=Z({__name:"NewHeader",setup(e){const t=G(!1),n=G(""),s=Ct({historyFlag:!1,historyList:[{}],nav:Array,site:Object}),r=u=>{if(s.historyFlag=u,u){let c=Zl.getCookie(Jl.FILM_HISTORY)?JSON.parse(Zl.getCookie(Jl.FILM_HISTORY)):null,f=[];if(c){for(let h in c)f.push(c[h]);f.sort((h,p)=>p.timeStamp-h.timeStamp)}s.historyList=f}},i=()=>{Zl.clearCookie(Jl.FILM_HISTORY),s.historyList=[]};ya();const a=()=>{if(n.value.length<=0){St.error({message:"请先输入影片名称关键字再进行搜索",duration:1500});return}location.href=`/search?search=${n.value}`},o=Ct({cartoon:{},film:{},tv:{},variety:{}}),l=()=>{fn("/config/basic").then(u=>{u.code===0?s.site=u.data:St.error({message:u.msg})})};return vt(()=>{fn("/navCategory").then(u=>{u.code===0?s.nav=u.data:St.error({message:"导航分类信息获取失败",duration:1e3})}),l()}),(u,c)=>{const f=bn,h=bf,p=tt,g=RP;return C(),j("div",ome,[R("div",lme,[R("a",ume,ve(s.site.siteName),1),R("div",cme,[pt(R("input",{"onUpdate:modelValue":c[0]||(c[0]=m=>n.value=m),onKeydown:c[1]||(c[1]=m=>{m.keyCode==13&&a()}),placeholder:"搜索 动漫,剧集,电影 ",class:"search"},null,544),[[sa,n.value]]),I(f,{onClick:a,icon:d(Id)},null,8,["icon"])])]),R("div",dme,[R("div",fme,[hme,(C(!0),j(Ke,null,bt(s.nav,m=>(C(),j("a",{href:`/filmClassify?Pid=${m.id}`},ve(m.name),9,pme))),256))]),R("div",{class:"history-link hidden-md-and-down",onMouseenter:c[2]||(c[2]=m=>r(!0)),onMouseleave:c[3]||(c[3]=m=>r(!1))},[R("a",{href:`/filmClassify?Pid=${o.variety.id}`},vme,8,mme),I(Rn,{name:"fade-slide",duration:"300"},{default:N(()=>[s.historyFlag?(C(),j("div",yme,[R("div",bme,[_me,Tme,s.historyList.length>0?(C(),j("a",{key:0,class:"iconfont icon-clear1 history-del",onClick:i})):le("",!0)]),s.historyList.length>0?(C(),j("div",wme,[(C(!0),j(Ke,null,bt(s.historyList,m=>(C(),j("a",{href:m.link,class:"history-c-item"},[R("span",Cme,ve(m.name),1),R("span",Eme,ve(m.episode),1)],8,Sme))),256))])):(C(),he(h,{key:1,style:{padding:"10px 0"},description:"暂无观看记录"}))])):le("",!0)]),_:1})],32),R("a",xme,[I(p,{style:{"font-size":"18px"}},{default:N(()=>[I(d(Id))]),_:1})]),R("a",{onClick:c[4]||(c[4]=m=>t.value=!0),class:"iconfont icon-caidan",style:{"font-size":"26px"}}),I(g,{modelValue:t.value,"onUpdate:modelValue":c[5]||(c[5]=m=>t.value=m),"append-to-body":"","show-close":!1,size:"45%",class:"warp-drawer"},{header:N(({close:m,titleId:y,titleClass:v})=>[R("h2",{class:M(["menu-title",v]),id:y},ve(s.site.siteName),11,kme)]),default:N(()=>[R("div",Ime,[Ome,(C(!0),j(Ke,null,bt(s.nav,m=>(C(),j("a",{href:`/filmClassify?Pid=${m.id}`},ve(m.name),9,Ame))),256))])]),_:1},8,["modelValue"])])])}}}),$me=_n(Pme,[["__scopeId","data-v-f65eaf42"]]),Nme=Z({__name:"IndexHome",setup(e){return(t,n)=>{const s=l1,r=Et("router-view"),i=u1,a=TP,o=o1;return C(),he(o,null,{default:N(()=>[I(s,null,{default:N(()=>[I($me)]),_:1}),I(i,null,{default:N(()=>[I(r)]),_:1}),I(a,null,{default:N(()=>[I(Fhe)]),_:1})]),_:1})}}}),Mme=_n(Nme,[["__scopeId","data-v-d7b3d038"]]),Rme={key:0,class:"c_content"},Lme={key:0},Dme=["href"],Fme={class:"tag_group"},Bme={class:"cus_tag"},Vme={class:"cus_tag"},Ume={class:"cus_tag"},Hme={class:"cus_remark hidden-md-and-up"},zme=["src","alt"],jme=["href"],Kme={class:"cus_remark hidden-md-and-down"},Wme=Z({__name:"FilmList",props:{list:Array,col:Number},setup(e){const t=e,n=Ct({col:0,list:Array,width:0}),s=r=>{r.target.style.display="none"};return Gs(()=>{const r=navigator.userAgent.toLowerCase();let i=/mobile|android|iphone|ipad|phone/i.test(r),a=i?3:t.col?t.col:0,o=t.list,l=o.length;if(n.width=i?31:Math.floor(100/a),l%a!=0)for(let u=0;u<a-l%a;u++){let c={...o[0]};c.id=-99,o.push(c)}n.list=o}),(r,i)=>{const a=bf;return n.list?(C(),j("div",Rme,[n.list.length>0?(C(!0),j(Ke,{key:0},bt(n.list,o=>{var l;return C(),j("div",{class:"item",style:rt({width:`calc(${n.width-1}%)`})},[o.id!=-99?(C(),j("div",Lme,[R("a",{href:`/filmDetail?link=${o.id}`,class:"default_image link_content"},[R("div",Fme,[R("span",Bme,ve(o.year?o.year.slice(0,4):"未知"),1),R("span",Vme,ve(o.cName),1),R("span",Ume,ve(o.area.split(",")[0]),1)]),R("span",Hme,ve(o.remarks),1),R("img",{src:o.picture,alt:(l=o.name)==null?void 0:l.split("[")[0],onError:s},null,40,zme)],8,Dme),R("a",{href:`/filmDetail?link=${o.id}`,class:"content_text_tag"},ve(o.name.split("[")[0]),9,jme),R("span",Kme,ve(o.remarks),1)])):le("",!0)],4)}),256)):le("",!0),n.list.length<=0?(C(),he(a,{key:1,style:{padding:"10px 0",margin:"0 auto"},description:"暂无相关数据"})):le("",!0)])):le("",!0)}}}),eu=_n(Wme,[["__scopeId","data-v-b7dc5067"]]),qme={class:"container"},Gme={class:"content_item"},Yme=["href"],Xme={class:"nav_ul"},Qme={key:0,class:"nav_category hidden-md-and-down"},Jme=["href"],Zme={class:"nav_category hidden-md-and-down"},ege=["href"],tge={class:"hot_title"},nge={class:"content_right_item"},sge=["href"],rge={class:"top_item"},ige=Z({__name:"Home",setup(e){let t=[{name:"樱花庄的宠物女孩",year:2012,cName:"动漫",poster:"https://img.bfzypic.com/upload/vod/20230424-43/06e79232a4650aea00f7476356a49847.jpg",picture:"https://s2.loli.net/2024/02/21/Wt1QDhabdEI7HcL.jpg"},{name:"从零开始的异世界生活",year:2016,cName:"动漫",poster:"https://img.bfzypic.com/upload/vod/20230424-29/82e3aec3f43103fa1b7e5a0e7f7c3806.jpg",picture:"https://s2.loli.net/2024/02/21/UkpdhIRO12fsy6C.jpg"},{name:"五等分的新娘",year:2020,cName:"动漫",poster:"https://img.bfzypic.com/upload/vod/20230424-38/dfff403cfd9a5b7d6eed8b4f1b3dedb1.jpg",picture:"https://s2.loli.net/2024/02/21/wXJr59Zuv4tcKNp.jpg"},{name:"我的青春恋爱物语果然有问题",year:2018,cName:"动漫",poster:"https://img.bfzypic.com/upload/vod/20230424-37/e5c9ec121c2cba230243c333447e818a.jpg",picture:"https://s2.loli.net/2024/02/21/oMAGzSliK2YbhRu.jpg"}];G();const n=Ct({info:{},banner:{current:{name:"",year:2024,cName:"",poster:"",picture:""},touch:{index:0,star:0,end:0}}});return sl(()=>{n.banner.current=t[0],fn("/index").then(s=>{s.code==0?n.info=s.data:St.error({message:s.msg})})}),(s,r)=>{const i=dP,a=cP;return C(),j("div",qme,[le("",!0),le("",!0),(C(!0),j(Ke,null,bt(n.info.content,o=>(C(),j("div",Gme,[o.nav.show?(C(),j(Ke,{key:0},[I(a,{class:"row-bg cus_nav",justify:"space-between"},{default:N(()=>[I(i,{span:12,class:"title"},{default:N(()=>[R("span",{class:M(`iconfont ${o.nav.name.search("电影")!=-1?"icon-film":o.nav.name.search("剧")!=-1?"icon-tv":o.nav.name.search("动漫")!=-1?"icon-cartoon":"icon-variety"}`),style:{color:"#79bbff","font-size":"32px","margin-right":"10px","line-height":"130%"}},null,2),R("a",{href:`/filmClassify?Pid=${o.nav.id}`},ve(o.nav.name),9,Yme)]),_:2},1024),I(i,{span:12},{default:N(()=>[R("ul",Xme,[(C(!0),j(Ke,null,bt(o.nav.children,l=>(C(),j(Ke,null,[l.show?(C(),j("li",Qme,[R("a",{href:`/filmClassifySearch?Pid=${l.pid}&Category=${l.id}`},ve(l.name),9,Jme)])):le("",!0)],64))),256)),R("li",Zme,[R("a",{href:`/filmClassify?Pid=${o.nav.id}`},"更多 >",8,ege)])])]),_:2},1024)]),_:2},1024),I(a,{class:"cus_content"},{default:N(()=>[I(i,{md:24,lg:20,xl:20,class:"cus_content"},{default:N(()=>[o.movies?(C(),he(eu,{key:0,col:6,list:o.movies.slice(0,12)},null,8,["list"])):le("",!0)]),_:2},1024),I(i,{md:0,lg:4,xl:4,class:"hidden-md-and-down content_right"},{default:N(()=>[R("h3",tge,"🔥热播"+ve(o.nav.name),1),(C(!0),j(Ke,null,bt(o.hot.slice(0,12),(l,u)=>(C(),j("div",nge,[R("a",{href:`/filmDetail?link=${l.mid}`},[R("b",rge,ve(u+1+"."),1),R("span",null,ve(l.name),1)],8,sge)]))),256))]),_:2},1024)]),_:2},1024)],64)):le("",!0)]))),256))])}}}),age=_n(ige,[["__scopeId","data-v-b69e2ae1"]]),oge=e=>(sr("data-v-7fb740c1"),e=e(),rr(),e),lge={class:"relate_container"},uge=oge(()=>R("p",{class:"title"},"相关推荐",-1)),cge=Z({__name:"RelateList",props:{relateList:Array},setup(e){return(t,n)=>(C(),j("div",lge,[uge,I(eu,{col:7,list:e.relateList},null,8,["list"])]))}}),JN=_n(cge,[["__scopeId","data-v-7fb740c1"]]),Rr=e=>(sr("data-v-9834b603"),e=e(),rr(),e),dge={class:"film"},fge={class:"hidden-sm-and-up"},hge={class:"title_mt"},pge={class:"title_mt_right"},mge={class:"tags"},gge={style:{margin:"2px 0"}},vge=Rr(()=>R("span",null,"导演:",-1)),yge=Rr(()=>R("span",null,"主演:",-1)),bge=Rr(()=>R("span",null,"上映:",-1)),_ge=Rr(()=>R("span",null,"地区:",-1)),Tge={key:0},wge=Rr(()=>R("span",null,"连载:",-1)),Sge={class:"mt_content"},Cge=["innerHTML"],Ege={class:"title hidden-sm-and-down"},xge={class:"tags"},kge={class:"t_c"},Ige=["href"],Oge={key:0},Age=Rr(()=>R("span",null,"导演:",-1)),Pge=Rr(()=>R("span",null,"主演:",-1)),$ge=Rr(()=>R("span",null,"上映:",-1)),Nge={key:0},Mge=Rr(()=>R("span",null,"连载:",-1)),Rge=Rr(()=>R("span",null,"评分:",-1)),Lge={id:"score"},Dge={class:"cus_wap"},Fge=Rr(()=>R("p",{style:{"min-width":"40px"}},[R("span",null,"剧情:")],-1)),Bge=["innerHTML"],Vge={class:"play-module"},Uge={class:"play-module-item"},Hge={class:"module-heading"},zge=Rr(()=>R("p",{class:"play-module-title"},"播放列表",-1)),jge={class:"play-tab-group"},Kge=["onClick"],Wge={class:"play-list"},qge={class:"play-list-item"},Gge=["onClick"],Yge={class:"correlation"},Xge=Z({__name:"FilmDetails",setup(e){const t=ya(),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=G({state:!1,text:"展开"}),o=G(),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 sl(()=>{let u=t.currentRoute.value.query.link;fn("/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):St({type:"error",dangerouslyUseHTMLString:!0,message:c.msg})})}),(u,c)=>{const f=tt,h=bn;return pt((C(),j("div",dge,[R("div",fge,[R("div",hge,[R("a",{class:"picture_mt",href:"",style:rt({backgroundImage:`url('${n.detail.picture}')`})},null,4),R("div",pge,[R("h3",null,ve(n.detail.name),1),R("ul",mge,[R("li",gge,ve(n.detail.descriptor.classTag?`${n.detail.descriptor.classTag}`.replaceAll(","," | "):"未知"),1)]),R("p",null,[vge,Fe(" "+ve(n.detail.descriptor.director),1)]),R("p",null,[yge,Fe(" "+ve(s(n.detail.descriptor.actor)),1)]),R("p",null,[bge,Fe(" "+ve(n.detail.descriptor.releaseDate),1)]),R("p",null,[_ge,Fe(" "+ve(n.detail.descriptor.area),1)]),n.detail.descriptor.remarks?(C(),j("p",Tge,[wge,Fe(ve(n.detail.descriptor.remarks),1)])):le("",!0)])]),R("div",Sge,[R("p",{innerHTML:`${n.detail.descriptor.content}`.replaceAll(" ","")},null,8,Cge)])]),R("div",Ege,[R("a",{class:"picture",href:"",style:rt({backgroundImage:`url('${n.detail.picture}')`})},null,4),R("h2",null,ve(n.detail.name),1),R("ul",xge,[R("li",kge,[R("a",{href:`/filmClassifySearch?Pid=${n.detail.pid}&Category=${n.detail.cid}`},[I(f,null,{default:N(()=>[I(d(O_))]),_:1}),Fe(" "+ve(n.detail.descriptor.cName),1)],8,Ige)]),n.detail.descriptor.classTag?(C(),j("li",Oge,ve(`${n.detail.descriptor.classTag}`.replaceAll(","," ")),1)):le("",!0),R("li",null,ve(n.detail.descriptor.year),1),R("li",null,ve(n.detail.descriptor.area),1)]),R("p",null,[Age,Fe(" "+ve(n.detail.descriptor.director),1)]),R("p",null,[Pge,Fe(" "+ve(n.detail.descriptor.actor),1)]),R("p",null,[$ge,Fe(" "+ve(n.detail.descriptor.releaseDate),1)]),n.detail.descriptor.remarks?(C(),j("p",Nge,[Mge,Fe(ve(n.detail.descriptor.remarks),1)])):le("",!0),R("p",null,[Rge,R("b",Lge,ve(n.detail.descriptor.dbScore),1)]),R("div",Dge,[Fge,R("p",{ref_key:"textContent",ref:o,class:"text_content"},[`${n.detail.descriptor.content}`.length>140?(C(),he(h,{key:0,class:"multi_text",style:{color:"#a574b7"},onClick:c[0]||(c[0]=p=>l(a.value.state)),link:""},{default:N(()=>[Fe(ve(a.value.text),1)]),_:1})):le("",!0),R("span",{class:"cus_info",innerHTML:n.detail.descriptor.content},null,8,Bge)],512)]),R("p",null,[I(h,{type:"warning",class:"player",size:"large",onClick:c[1]||(c[1]=p=>i({episode:0,source:n.detail.list[0].id})),round:""},{default:N(()=>[I(f,null,{default:N(()=>[I(d(Xm))]),_:1}),Fe(" 立即播放 ")]),_:1})])]),R("div",Vge,[R("div",Uge,[R("div",Hge,[zge,R("div",jge,[(C(!0),j(Ke,null,bt(n.detail.list,p=>(C(),j("a",{href:"javascript:;",class:M(`play-tab-item ${n.currentTabId==p.id?"tab-active":""}`),onClick:g=>r(p.id)},ve(p.name),11,Kge))),256))])]),R("div",Wge,[(C(!0),j(Ke,null,bt(n.detail.list,p=>pt((C(),j("div",qge,[(C(!0),j(Ke,null,bt(p.linkList,(g,m)=>(C(),j("a",{class:"play-link",href:"javascript:;",onClick:y=>i({source:p.id,episode:m})},ve(g.episode),9,Gge))),256))],512)),[[Vt,n.currentTabId==p.id]])),256))])])]),R("div",Yge,[I(JN,{"relate-list":n.relate},null,8,["relate-list"])])],512)),[[Vt,n.loading]])}}}),Qge=_n(Xge,[["__scopeId","data-v-9834b603"]]),ZN="/assets/play-bb9c8990.png";var Rc;typeof window<"u"?Rc=window:typeof nr<"u"?Rc=nr:typeof self<"u"?Rc=self:Rc={};var ye=Rc;const Jge={},Zge=Object.freeze(Object.defineProperty({__proto__:null,default:Jge},Symbol.toStringTag,{value:"Module"})),eve=OA(Zge);var Hx=typeof nr<"u"?nr:typeof window<"u"?window:{},tve=eve,Lc;typeof document<"u"?Lc=document:(Lc=Hx["__GLOBAL_DOCUMENT_CACHE@4"],Lc||(Lc=Hx["__GLOBAL_DOCUMENT_CACHE@4"]=tve));var gt=Lc,Gt={},nve={get exports(){return Gt},set exports(e){Gt=e}};(function(e,t){function n(l){if(l&&typeof l=="object"){var u=l.which||l.keyCode||l.charCode;u&&(l=u)}if(typeof l=="number")return a[l];var c=String(l),f=s[c.toLowerCase()];if(f)return f;var f=r[c.toLowerCase()];if(f)return f;if(c.length===1)return c.charCodeAt(0)}n.isEventKey=function(u,c){if(u&&typeof u=="object"){var f=u.which||u.keyCode||u.charCode;if(f==null)return!1;if(typeof c=="string"){var h=s[c.toLowerCase()];if(h)return h===f;var h=r[c.toLowerCase()];if(h)return h===f}else if(typeof c=="number")return c===f;return!1}},t=e.exports=n;var s=t.code=t.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},r=t.aliases={windows:91,"⇧":16,"⌥":18,"⌃":17,"⌘":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91};/*!
|
||
* Programatically add the following
|
||
*/for(i=97;i<123;i++)s[String.fromCharCode(i)]=i-32;for(var i=48;i<58;i++)s[i-48]=i;for(i=1;i<13;i++)s["f"+i]=i+111;for(i=0;i<10;i++)s["numpad "+i]=i+96;var a=t.names=t.title={};for(i in s)a[s[i]]=i;for(var o in r)s[o]=r[o]})(nve,Gt);var sve=rve;function rve(e,t){var n,s=null;try{n=JSON.parse(e,t)}catch(r){s=r}return[s,n]}var Wd={},ive={get exports(){return Wd},set exports(e){Wd=e}};function oa(){return oa=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},oa.apply(this,arguments)}const ave=Object.freeze(Object.defineProperty({__proto__:null,default:oa},Symbol.toStringTag,{value:"Module"})),ove=OA(ave);var lve=cve,uve=Object.prototype.toString;function cve(e){if(!e)return!1;var t=uve.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)}var dve=ye,fve=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(dve.TextDecoder){var o=hve(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 hve(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 pve=fve,eM=ye,mve=ove,gve=lve;wi.httpHandler=pve;/**
|
||
* @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 vve=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};ive.exports=wi;Wd.default=wi;wi.XMLHttpRequest=eM.XMLHttpRequest||Tve;wi.XDomainRequest="withCredentials"in new wi.XMLHttpRequest?wi.XMLHttpRequest:eM.XDomainRequest;yve(["get","put","post","patch","head","delete"],function(e){wi[e==="delete"?"del":e]=function(t,n,s){return n=tM(t,n,s),n.method=e.toUpperCase(),nM(n)}});function yve(e,t){for(var n=0;n<e.length;n++)t(e[n])}function bve(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}function tM(e,t,n){var s=e;return gve(t)?(n=t,typeof e=="string"&&(s={uri:e})):s=mve({},t,{uri:e}),s.callback=n,s}function wi(e,t,n){return t=tM(e,t,n),nM(t)}function nM(e){if(typeof e.callback>"u")throw new Error("callback argument missing");var t=!1,n=function(w,T,S){t||(t=!0,e.callback(w,T,S))};function s(){o.readyState===4&&setTimeout(a,0)}function r(){var _=void 0;if(o.response?_=o.response:_=o.responseText||_ve(o),m)try{_=JSON.parse(_)}catch{}return _}function i(_){return clearTimeout(y),_ instanceof Error||(_=new Error(""+(_||"Unknown XMLHttpRequest Error"))),_.statusCode=0,n(_,v)}function a(){if(!u){var _;clearTimeout(y),e.useXDR&&o.status===void 0?_=200:_=o.status===1223?204:o.status;var w=v,T=null;return _!==0?(w={body:r(),statusCode:_,method:f,headers:{},url:c,rawRequest:o},o.getAllResponseHeaders&&(w.headers=vve(o.getAllResponseHeaders()))):T=new Error("Internal XMLHttpRequest Error"),n(T,w,w.body)}}var o=e.xhr||null;o||(e.cors||e.useXDR?o=new wi.XDomainRequest:o=new wi.XMLHttpRequest);var l,u,c=o.url=e.uri||e.url,f=o.method=e.method||"GET",h=e.body||e.data,p=o.headers=e.headers||{},g=!!e.sync,m=!1,y,v={body:void 0,headers:{},statusCode:0,method:f,url:c,rawRequest:o};if("json"in e&&e.json!==!1&&(m=!0,p.accept||p.Accept||(p.Accept="application/json"),f!=="GET"&&f!=="HEAD"&&(p["content-type"]||p["Content-Type"]||(p["Content-Type"]="application/json"),h=JSON.stringify(e.json===!0?h:e.json))),o.onreadystatechange=s,o.onload=a,o.onerror=i,o.onprogress=function(){},o.onabort=function(){u=!0},o.ontimeout=i,o.open(f,c,!g,e.username,e.password),g||(o.withCredentials=!!e.withCredentials),!g&&e.timeout>0&&(y=setTimeout(function(){if(!u){u=!0,o.abort("timeout");var _=new Error("XMLHttpRequest timeout");_.code="ETIMEDOUT",i(_)}},e.timeout)),o.setRequestHeader)for(l in p)p.hasOwnProperty(l)&&o.setRequestHeader(l,p[l]);else if(e.headers&&!bve(e.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in e&&(o.responseType=e.responseType),"beforeSend"in e&&typeof e.beforeSend=="function"&&e.beforeSend(o),o.send(h||null),o}function _ve(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 Tve(){}var sm={},wve={get exports(){return sm},set exports(e){sm=e}},zx=gt,J1=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 fr(e,t){this.name="ParsingError",this.code=e.code,this.message=t||e.message}fr.prototype=J1(Error.prototype);fr.prototype.constructor=fr;fr.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}};function Z1(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 sd(){this.values=J1(null)}sd.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 Dc(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 Sve(e,t,n){var s=e;function r(){var o=Z1(e);if(o===null)throw new fr(fr.Errors.BadTimeStamp,"Malformed timestamp: "+s);return e=e.replace(/^[^\sa-zA-Z-]+/,""),o}function i(o,l){var u=new sd;Dc(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 p=f.split(","),g=p[0];u.integer(c,g),u.percent(c,g)&&u.set("snapToLines",!1),u.alt(c,g,["auto"]),p.length===2&&u.alt("lineAlign",p[1],["start","center","end"]);break;case"position":p=f.split(","),u.percent(c,p[0]),p.length===2&&u.alt("positionAlign",p[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 fr(fr.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 Zv=zx.createElement&&zx.createElement("textarea"),Cve={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},jx={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)"},Eve={v:"title",lang:"lang"},Kx={rt:"ruby"};function sM(e,t){function n(){if(!t)return null;function g(y){return t=t.substr(y.length),y}var m=t.match(/^([^<]*)(<[^>]*>?)?/);return g(m[1]?m[1]:m[2])}function s(g){return Zv.innerHTML=g,g=Zv.textContent,Zv.textContent="",g}function r(g,m){return!Kx[m.localName]||Kx[m.localName]===g.localName}function i(g,m){var y=Cve[g];if(!y)return null;var v=e.document.createElement(y),_=Eve[g];return _&&m&&(v[_]=m.trim()),v}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=Z1(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 p=h[2].split(".");p.forEach(function(g){var m=/^bg_/.test(g),y=m?g.slice(3):g;if(jx.hasOwnProperty(y)){var v=m?"background-color":"color",_=jx[y];f.style[v]=_}}),f.className=p.join(" ")}u.push(h[1]),o.appendChild(f),o=f;continue}o.appendChild(e.document.createTextNode(s(l)))}return a}var Wx=[[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 xve(e){for(var t=0;t<Wx.length;t++){var n=Wx[t];if(e>=n[0]&&e<=n[1])return!0}return!1}function kve(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),xve(s))return"rtl";return"ltr"}function Ive(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 Eg(){}Eg.prototype.applyStyles=function(e,t){t=t||this.div;for(var n in e)e.hasOwnProperty(n)&&(t.style[n]=e[n])};Eg.prototype.formatStyle=function(e,t){return e===0?0:e+t};function rm(e,t,n){Eg.call(this),this.cue=t,this.cueDiv=sM(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:kve(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":r=t.position;break;case"center":r=t.position-t.size/2;break;case"end":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")})}}rm.prototype=J1(Eg.prototype);rm.prototype.constructor=rm;function Is(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}Is.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}};Is.prototype.overlaps=function(e){return this.left<e.right&&this.right>e.left&&this.top<e.bottom&&this.bottom>e.top};Is.prototype.overlapsAny=function(e){for(var t=0;t<e.length;t++)if(this.overlaps(e[t]))return!0;return!1};Is.prototype.within=function(e){return this.top>=e.top&&this.bottom<=e.bottom&&this.left>=e.left&&this.right<=e.right};Is.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}};Is.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)};Is.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}};Is.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 Ove(e,t,n,s){function r(y,v){for(var _,w=new Is(y),T=1,S=0;S<v.length;S++){for(;y.overlapsOppositeAxis(n,v[S])||y.within(n)&&y.overlapsAny(s);)y.move(v[S]);if(y.within(n))return y;var E=y.intersectPercentage(n);T>E&&(_=new Is(y),T=E),y=new Is(w)}return _||w}var i=new Is(t),a=t.cue,o=Ive(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,p=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(p,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 Is(t)}var m=r(i,l);t.move(m.toCSSCompatValues(n))}function Xu(){}Xu.StringDecoder=function(){return{decode:function(e){if(!e)return"";if(typeof e!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}};Xu.convertCueToDOMTree=function(e,t){return!e||!t?null:sM(e,t)};var Ave=.05,Pve="sans-serif",$ve="1.5%";Xu.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=$ve,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=Is.getSimpleBoxPosition(s),l=Math.round(o.height*Ave*100)/100,u={font:l+"px "+Pve};(function(){for(var c,f,h=0;h<t.length;h++)f=t[h],c=new rm(e,f,u),s.appendChild(c.div),Ove(e,c,o,a),f.displayState=c.div,a.push(Is.getSimpleBoxPosition(c))})()};Xu.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=[]};Xu.Parser.prototype={reportOrThrowError:function(e){if(e instanceof fr)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 sd;if(Dc(c,function(p,g){switch(p){case"id":f.set(p,g);break;case"width":f.percent(p,g);break;case"lines":f.integer(p,g);break;case"regionanchor":case"viewportanchor":var m=g.split(",");if(m.length!==2)break;var y=new sd;if(y.percent("x",m[0]),y.percent("y",m[1]),!y.has("x")||!y.has("y"))break;f.set(p+"X",y.get("x")),f.set(p+"Y",y.get("y"));break;case"scroll":f.alt(p,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 sd;Dc(c,function(h,p){switch(h){case"MPEGT":f.integer(h+"S",p);break;case"LOCA":f.set(h+"L",Z1(p));break}},/[^\d]:/,/,/),t.ontimestampmap&&t.ontimestampmap({MPEGTS:f.get("MPEGTS"),LOCAL:f.get("LOCAL")})}function i(c){c.match(/X-TIMESTAMP-MAP/)?Dc(c,function(f,h){switch(f){case"X-TIMESTAMP-MAP":r(h);break}},/=/):Dc(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 fr(fr.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{Sve(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 fr(fr.Errors.BadSignature)}catch(t){e.reportOrThrowError(t)}return e.onflush&&e.onflush(),this}};var Nve=Xu,Mve="auto",Rve={"":1,lr:1,rl:1},Lve={start:1,center:1,end:1,left:1,right:1,auto:1,"line-left":1,"line-right":1};function Dve(e){if(typeof e!="string")return!1;var t=Rve[e.toLowerCase()];return t?e.toLowerCase():!1}function e0(e){if(typeof e!="string")return!1;var t=Lve[e.toLowerCase()];return t?e.toLowerCase():!1}function rM(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",p="auto",g="auto",m=100,y="center";Object.defineProperties(this,{id:{enumerable:!0,get:function(){return s},set:function(v){s=""+v}},pauseOnExit:{enumerable:!0,get:function(){return r},set:function(v){r=!!v}},startTime:{enumerable:!0,get:function(){return i},set:function(v){if(typeof v!="number")throw new TypeError("Start time must be set to a number.");i=v,this.hasBeenReset=!0}},endTime:{enumerable:!0,get:function(){return a},set:function(v){if(typeof v!="number")throw new TypeError("End time must be set to a number.");a=v,this.hasBeenReset=!0}},text:{enumerable:!0,get:function(){return o},set:function(v){o=""+v,this.hasBeenReset=!0}},region:{enumerable:!0,get:function(){return l},set:function(v){l=v,this.hasBeenReset=!0}},vertical:{enumerable:!0,get:function(){return u},set:function(v){var _=Dve(v);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(v){c=!!v,this.hasBeenReset=!0}},line:{enumerable:!0,get:function(){return f},set:function(v){if(typeof v!="number"&&v!==Mve)throw new SyntaxError("Line: an invalid number or illegal string was specified.");f=v,this.hasBeenReset=!0}},lineAlign:{enumerable:!0,get:function(){return h},set:function(v){var _=e0(v);_?(h=_,this.hasBeenReset=!0):console.warn("lineAlign: an invalid or illegal string was specified.")}},position:{enumerable:!0,get:function(){return p},set:function(v){if(v<0||v>100)throw new Error("Position must be between 0 and 100.");p=v,this.hasBeenReset=!0}},positionAlign:{enumerable:!0,get:function(){return g},set:function(v){var _=e0(v);_?(g=_,this.hasBeenReset=!0):console.warn("positionAlign: an invalid or illegal string was specified.")}},size:{enumerable:!0,get:function(){return m},set:function(v){if(v<0||v>100)throw new Error("Size must be between 0 and 100.");m=v,this.hasBeenReset=!0}},align:{enumerable:!0,get:function(){return y},set:function(v){var _=e0(v);if(!_)throw new SyntaxError("align: an invalid or illegal alignment string was specified.");y=_,this.hasBeenReset=!0}}}),this.displayState=void 0}rM.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)};var Fve=rM,Bve={"":!0,up:!0};function Vve(e){if(typeof e!="string")return!1;var t=Bve[e.toLowerCase()];return t?e.toLowerCase():!1}function Ec(e){return typeof e=="number"&&e>=0&&e<=100}function Uve(){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(!Ec(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(!Ec(o))throw new Error("RegionAnchorX must be between 0 and 100.");s=o}},regionAnchorX:{enumerable:!0,get:function(){return n},set:function(o){if(!Ec(o))throw new Error("RegionAnchorY must be between 0 and 100.");n=o}},viewportAnchorY:{enumerable:!0,get:function(){return i},set:function(o){if(!Ec(o))throw new Error("ViewportAnchorY must be between 0 and 100.");i=o}},viewportAnchorX:{enumerable:!0,get:function(){return r},set:function(o){if(!Ec(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=Vve(o);l===!1?console.warn("Scroll: an invalid or illegal string was specified."):a=l}}})}var Hve=Uve,la=ye,dl=wve.exports={WebVTT:Nve,VTTCue:Fve,VTTRegion:Hve};la.vttjs=dl;la.WebVTT=dl.WebVTT;var zve=dl.VTTCue,jve=dl.VTTRegion,Kve=la.VTTCue,Wve=la.VTTRegion;dl.shim=function(){la.VTTCue=zve,la.VTTRegion=jve};dl.restore=function(){la.VTTCue=Kve,la.VTTRegion=Wve};la.VTTCue||dl.shim();var ob={},qve={get exports(){return ob},set exports(e){ob=e}};(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 p=o.parseURL(l);if(!p)throw new Error("Error trying to parse base URL.");if(!p.netLoc&&p.path&&p.path[0]!=="/"){var g=r.exec(p.path);p.netLoc=g[1],p.path=g[2]}p.netLoc&&!p.path&&(p.path="/");var m={scheme:p.scheme,netLoc:h.netLoc,path:null,params:h.params,query:h.query,fragment:h.fragment};if(!h.netLoc&&(m.netLoc=p.netLoc,h.path[0]!=="/"))if(!h.path)m.path=p.path,h.params||(m.params=p.params,h.query||(m.query=p.query));else{var y=p.path,v=y.substring(0,y.lastIndexOf("/")+1)+h.path;m.path=o.normalizePath(v)}return m.path===null&&(m.path=c.alwaysNormalize?o.normalizePath(h.path):h.path),o.buildURLFromParts(m)},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})()})(qve);const im=ob;var qx="http://example.com",Gve=function(t,n){if(/^[a-z]+:/i.test(n))return n;/^data:/.test(t)&&(t=ye.location&&ye.location.href||"");var s=typeof ye.URL=="function",r=/^\/\//.test(t),i=!ye.location&&!/\/\//i.test(t);if(s?t=new ye.URL(t,ye.location||qx):/\/\//i.test(t)||(t=im.buildAbsoluteURL(ye.location&&ye.location.href||"",t)),s){var a=new URL(n,t);return i?a.href.slice(qx.length):r?a.href.slice(a.protocol.length):a.href}return im.buildAbsoluteURL(t,n)},eT=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}(),Yve=function(t){return ye.atob?ye.atob(t):Buffer.from(t,"base64").toString("binary")};function Xve(e){for(var t=Yve(e),n=new Uint8Array(t.length),s=0;s<t.length;s++)n[s]=t.charCodeAt(s);return n}/*! @name m3u8-parser @version 6.0.0 @license Apache-2.0 */class Qve extends eT{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 Jve=String.fromCharCode(9),t0=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},Zve=function(){const e="[^=]*",t='"[^"]*"|[^,]*',n="(?:"+e+")=(?:"+t+")";return new RegExp("(?:^|,)("+n+")")},Br=function(e){const t={};if(!e)return t;const n=e.split(Zve());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 e0e extends eT{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=oa(t0(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=t0(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(Jve)),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=t0(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}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 t0e=e=>e.toLowerCase().replace(/-(\w)/g,t=>t[1].toUpperCase()),wl=function(e){const t={};return Object.keys(e).forEach(function(n){t[t0e(n)]=e[n]}),t},n0=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 n0e extends eT{constructor(){super(),this.lineStream=new Qve,this.parseStream=new e0e,this.lineStream.pipe(this.parseStream);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:[],segments:[]};let f=0,h=0;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(p){let g,m;({tag(){({version(){p.version&&(this.manifest.version=p.version)},"allow-cache"(){this.manifest.allowCache=p.allowed,"allowed"in p||(this.trigger("info",{message:"defaulting allowCache to YES"}),this.manifest.allowCache=!0)},byterange(){const y={};"length"in p&&(s.byterange=y,y.length=p.length,"offset"in p||(p.offset=f)),"offset"in p&&(s.byterange=y,y.offset=p.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"})),p.duration>0&&(s.duration=p.duration),p.duration===0&&(s.duration=.01,this.trigger("info",{message:"updating zero segment duration to a small value"})),this.manifest.segments=n},key(){if(!p.attributes){this.trigger("warn",{message:"ignoring key declaration without attribute list"});return}if(p.attributes.METHOD==="NONE"){i=null;return}if(!p.attributes.URI){this.trigger("warn",{message:"ignoring key declaration without URI"});return}if(p.attributes.KEYFORMAT==="com.apple.streamingkeydelivery"){this.manifest.contentProtection=this.manifest.contentProtection||{},this.manifest.contentProtection["com.apple.fps.1_0"]={attributes:p.attributes};return}if(p.attributes.KEYFORMAT==="com.microsoft.playready"){this.manifest.contentProtection=this.manifest.contentProtection||{},this.manifest.contentProtection["com.microsoft.playready"]={uri:p.attributes.URI};return}if(p.attributes.KEYFORMAT===u){if(["SAMPLE-AES","SAMPLE-AES-CTR","SAMPLE-AES-CENC"].indexOf(p.attributes.METHOD)===-1){this.trigger("warn",{message:"invalid key method provided for Widevine"});return}if(p.attributes.METHOD==="SAMPLE-AES-CENC"&&this.trigger("warn",{message:"SAMPLE-AES-CENC is deprecated, please use SAMPLE-AES-CTR instead"}),p.attributes.URI.substring(0,23)!=="data:text/plain;base64,"){this.trigger("warn",{message:"invalid key URI provided for Widevine"});return}if(!(p.attributes.KEYID&&p.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:p.attributes.KEYFORMAT,keyId:p.attributes.KEYID.substring(2)},pssh:Xve(p.attributes.URI.split(",")[1])};return}p.attributes.METHOD||this.trigger("warn",{message:"defaulting key method to AES-128"}),i={method:p.attributes.METHOD||"AES-128",uri:p.attributes.URI},typeof p.attributes.IV<"u"&&(i.iv=p.attributes.IV)},"media-sequence"(){if(!isFinite(p.number)){this.trigger("warn",{message:"ignoring invalid media sequence: "+p.number});return}this.manifest.mediaSequence=p.number},"discontinuity-sequence"(){if(!isFinite(p.number)){this.trigger("warn",{message:"ignoring invalid discontinuity sequence: "+p.number});return}this.manifest.discontinuitySequence=p.number,c=p.number},"playlist-type"(){if(!/VOD|EVENT/.test(p.playlistType)){this.trigger("warn",{message:"ignoring unknown playlist type: "+p.playlist});return}this.manifest.playlistType=p.playlistType},map(){r={},p.uri&&(r.uri=p.uri),p.byterange&&(r.byterange=p.byterange),i&&(r.key=i)},"stream-inf"(){if(this.manifest.playlists=n,this.manifest.mediaGroups=this.manifest.mediaGroups||l,!p.attributes){this.trigger("warn",{message:"ignoring empty stream-inf attributes"});return}s.attributes||(s.attributes={}),oa(s.attributes,p.attributes)},media(){if(this.manifest.mediaGroups=this.manifest.mediaGroups||l,!(p.attributes&&p.attributes.TYPE&&p.attributes["GROUP-ID"]&&p.attributes.NAME)){this.trigger("warn",{message:"ignoring incomplete or missing media group"});return}const y=this.manifest.mediaGroups[p.attributes.TYPE];y[p.attributes["GROUP-ID"]]=y[p.attributes["GROUP-ID"]]||{},g=y[p.attributes["GROUP-ID"]],m={default:/yes/i.test(p.attributes.DEFAULT)},m.default?m.autoselect=!0:m.autoselect=/yes/i.test(p.attributes.AUTOSELECT),p.attributes.LANGUAGE&&(m.language=p.attributes.LANGUAGE),p.attributes.URI&&(m.uri=p.attributes.URI),p.attributes["INSTREAM-ID"]&&(m.instreamId=p.attributes["INSTREAM-ID"]),p.attributes.CHARACTERISTICS&&(m.characteristics=p.attributes.CHARACTERISTICS),p.attributes.FORCED&&(m.forced=/yes/i.test(p.attributes.FORCED)),g[p.attributes.NAME]=m},discontinuity(){c+=1,s.discontinuity=!0,this.manifest.discontinuityStarts.push(n.length)},"program-date-time"(){typeof this.manifest.dateTimeString>"u"&&(this.manifest.dateTimeString=p.dateTimeString,this.manifest.dateTimeObject=p.dateTimeObject),s.dateTimeString=p.dateTimeString,s.dateTimeObject=p.dateTimeObject},targetduration(){if(!isFinite(p.duration)||p.duration<0){this.trigger("warn",{message:"ignoring invalid target duration: "+p.duration});return}this.manifest.targetDuration=p.duration,n0.call(this,this.manifest)},start(){if(!p.attributes||isNaN(p.attributes["TIME-OFFSET"])){this.trigger("warn",{message:"ignoring start declaration without appropriate attribute list"});return}this.manifest.start={timeOffset:p.attributes["TIME-OFFSET"],precise:p.attributes.PRECISE}},"cue-out"(){s.cueOut=p.data},"cue-out-cont"(){s.cueOutCont=p.data},"cue-in"(){s.cueIn=p.data},skip(){this.manifest.skip=wl(p.attributes),this.warnOnMissingAttributes_("#EXT-X-SKIP",p.attributes,["SKIPPED-SEGMENTS"])},part(){a=!0;const y=this.manifest.segments.length,v=wl(p.attributes);s.parts=s.parts||[],s.parts.push(v),v.byterange&&(v.byterange.hasOwnProperty("offset")||(v.byterange.offset=h),h=v.byterange.offset+v.byterange.length);const _=s.parts.length-1;this.warnOnMissingAttributes_(`#EXT-X-PART #${_} for segment #${y}`,p.attributes,["URI","DURATION"]),this.manifest.renditionReports&&this.manifest.renditionReports.forEach((w,T)=>{w.hasOwnProperty("lastPart")||this.trigger("warn",{message:`#EXT-X-RENDITION-REPORT #${T} lacks required attribute(s): LAST-PART`})})},"server-control"(){const y=this.manifest.serverControl=wl(p.attributes);y.hasOwnProperty("canBlockReload")||(y.canBlockReload=!1,this.trigger("info",{message:"#EXT-X-SERVER-CONTROL defaulting CAN-BLOCK-RELOAD to false"})),n0.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,v=wl(p.attributes),_=v.type&&v.type==="PART";s.preloadHints=s.preloadHints||[],s.preloadHints.push(v),v.byterange&&(v.byterange.hasOwnProperty("offset")||(v.byterange.offset=_?h:0,_&&(h=v.byterange.offset+v.byterange.length)));const w=s.preloadHints.length-1;if(this.warnOnMissingAttributes_(`#EXT-X-PRELOAD-HINT #${w} for segment #${y}`,p.attributes,["TYPE","URI"]),!!v.type)for(let T=0;T<s.preloadHints.length-1;T++){const S=s.preloadHints[T];S.type&&S.type===v.type&&this.trigger("warn",{message:`#EXT-X-PRELOAD-HINT #${w} for segment #${y} has the same TYPE ${v.type} as preload hint #${T}`})}},"rendition-report"(){const y=wl(p.attributes);this.manifest.renditionReports=this.manifest.renditionReports||[],this.manifest.renditionReports.push(y);const v=this.manifest.renditionReports.length-1,_=["LAST-MSN","URI"];a&&_.push("LAST-PART"),this.warnOnMissingAttributes_(`#EXT-X-RENDITION-REPORT #${v}`,p.attributes,_)},"part-inf"(){this.manifest.partInf=wl(p.attributes),this.warnOnMissingAttributes_("#EXT-X-PART-INF",p.attributes,["PART-TARGET"]),this.manifest.partInf.partTarget&&(this.manifest.partTargetDuration=this.manifest.partInf.partTarget),n0.call(this,this.manifest)}}[p.tagType]||o).call(t)},uri(){s.uri=p.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,s={}},comment(){},custom(){p.segment?(s.custom=s.custom||{},s.custom[p.customType]=p.data):(this.manifest.custom=this.manifest.custom||{},this.manifest.custom[p.customType]=p.data)}})[p.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.trigger("end")}addParser(t){this.parseStream.addParser(t)}addTagMapper(t){this.parseStream.addTagMapper(t)}}var Ko={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^/},s0e=["video","audio","text"],Gx=["Video","Audio","Text"],iM=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})},ui=function(t){t===void 0&&(t="");var n=t.split(","),s=[];return n.forEach(function(r){r=r.trim();var i;s0e.forEach(function(a){var o=Ko[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},r0e=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 ui(i.playlists[0].attributes.CODECS)}return null},aM=function(t){return t===void 0&&(t=""),Ko.audio.test(t.trim().toLowerCase())},i0e=function(t){return t===void 0&&(t=""),Ko.text.test(t.trim().toLowerCase())},qd=function(t){if(!(!t||typeof t!="string")){var n=t.toLowerCase().split(",").map(function(i){return iM(i.trim())}),s="video";n.length===1&&aM(n[0])?s="audio":n.length===1&&i0e(n[0])&&(s="application");var r="mp4";return n.every(function(i){return Ko.mp4.test(i)})?r="mp4":n.every(function(i){return Ko.webm.test(i)})?r="webm":n.every(function(i){return Ko.ogg.test(i)})&&(r="ogg"),s+"/"+r+';codecs="'+t+'"'}},xp=function(t){return t===void 0&&(t=""),ye.MediaSource&&ye.MediaSource.isTypeSupported&&ye.MediaSource.isTypeSupported(qd(t))||!1},s0=function(t){return t===void 0&&(t=""),t.toLowerCase().split(",").every(function(n){n=n.trim();for(var s=0;s<Gx.length;s++){var r=Gx[s];if(Ko["muxer"+r].test(n))return!0}return!1})},Yx="mp4a.40.2",a0e="avc1.4d400d",o0e=/^(audio|video|application)\/(x-|vnd\.apple\.)?mpegurl/i,l0e=/^application\/dash\+xml/i,oM=function(t){return o0e.test(t)?"hls":l0e.test(t)?"dash":t==="application/vnd.videojs.vhs+json"?"vhs-json":null},u0e=function(t){return t.toString(2).length},c0e=function(t){return Math.ceil(u0e(t)/8)},lM=function(t){return ArrayBuffer.isView==="function"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer},d0e=function(t){return lM(t)},Bt=function(t){return t instanceof Uint8Array?t:(!Array.isArray(t)&&!d0e(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))},cs=ye.BigInt||Number,lb=[cs("0x1"),cs("0x100"),cs("0x10000"),cs("0x1000000"),cs("0x100000000"),cs("0x10000000000"),cs("0x1000000000000"),cs("0x100000000000000"),cs("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 f0e=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=Bt(t);var l=o?"reduce":"reduceRight",u=t[l]?t[l]:Array.prototype[l],c=u.call(t,function(h,p,g){var m=o?g:Math.abs(g+1-t.length);return h+cs(p)*lb[m]},cs(0));if(i){var f=lb[t.length]/cs(2)-cs(1);c=cs(c),c>f&&(c-=f,c-=f,c-=cs(2))}return Number(c)},h0e=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=cs(t);for(var a=c0e(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/lb[l]&cs(255)),t<0&&(o[u]=Math.abs(~o[u]),o[u]-=l===0?1:2)}return o},uM=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},p0e=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 Bt(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=Bt(o),i.set(o,a),a+=o.byteLength}),i},Nn=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=Bt(t),n=Bt(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})},Xx="http://example.com",tT=function(t,n){if(/^[a-z]+:/i.test(n))return n;/^data:/.test(t)&&(t=ye.location&&ye.location.href||"");var s=typeof ye.URL=="function",r=/^\/\//.test(t),i=!ye.location&&!/\/\//i.test(t);if(s?t=new ye.URL(t,ye.location||Xx):/\/\//i.test(t)||(t=im.buildAbsoluteURL(ye.location&&ye.location.href||"",t)),s){var a=new URL(n,t);return i?a.href.slice(Xx.length):r?a.href.slice(a.protocol.length):a.href}return im.buildAbsoluteURL(t,n)},m0e=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)}})},g0e=function(t){return ye.atob?ye.atob(t):Buffer.from(t,"base64").toString("binary")};function v0e(e){for(var t=g0e(e),n=new Uint8Array(t.length),s=0;s<t.length;s++)n[s]=t.charCodeAt(s);return n}var oo={},_a={};function y0e(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 nT(e,t){return t===void 0&&(t=Object),t&&typeof t.freeze=="function"?t.freeze(e):e}function b0e(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 cM=nT({HTML:"text/html",isHTML:function(e){return e===cM.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),dM=nT({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(e){return e===dM.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});_a.assign=b0e;_a.find=y0e;_a.freeze=nT;_a.MIME_TYPE=cM;_a.NAMESPACE=dM;var fM=_a,Si=fM.find,Gd=fM.NAMESPACE;function _0e(e){return e!==""}function T0e(e){return e?e.split(/[\t\n\f\r ]+/).filter(_0e):[]}function w0e(e,t){return e.hasOwnProperty(t)||(e[t]=!0),e}function Qx(e){if(!e)return[];var t=T0e(e);return Object.keys(t.reduce(w0e,{}))}function S0e(e){return function(t){return e&&e.indexOf(t)!==-1}}function Af(e,t){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}function ar(e,t){var n=e.prototype;if(!(n instanceof t)){let r=function(){};var s=r;r.prototype=t.prototype,r=new r,Af(n,r),e.prototype=n=r}n.constructor!=e&&(typeof e!="function"&&console.error("unknown Class:"+e),n.constructor=e)}var or={},Xr=or.ELEMENT_NODE=1,Iu=or.ATTRIBUTE_NODE=2,am=or.TEXT_NODE=3,hM=or.CDATA_SECTION_NODE=4,pM=or.ENTITY_REFERENCE_NODE=5,C0e=or.ENTITY_NODE=6,mM=or.PROCESSING_INSTRUCTION_NODE=7,gM=or.COMMENT_NODE=8,vM=or.DOCUMENT_NODE=9,yM=or.DOCUMENT_TYPE_NODE=10,ua=or.DOCUMENT_FRAGMENT_NODE=11,E0e=or.NOTATION_NODE=12,Ts={},ls={};Ts.INDEX_SIZE_ERR=(ls[1]="Index size error",1);Ts.DOMSTRING_SIZE_ERR=(ls[2]="DOMString size error",2);var Ks=Ts.HIERARCHY_REQUEST_ERR=(ls[3]="Hierarchy request error",3);Ts.WRONG_DOCUMENT_ERR=(ls[4]="Wrong document",4);Ts.INVALID_CHARACTER_ERR=(ls[5]="Invalid character",5);Ts.NO_DATA_ALLOWED_ERR=(ls[6]="No data allowed",6);Ts.NO_MODIFICATION_ALLOWED_ERR=(ls[7]="No modification allowed",7);var bM=Ts.NOT_FOUND_ERR=(ls[8]="Not found",8);Ts.NOT_SUPPORTED_ERR=(ls[9]="Not supported",9);var Jx=Ts.INUSE_ATTRIBUTE_ERR=(ls[10]="Attribute in use",10);Ts.INVALID_STATE_ERR=(ls[11]="Invalid state",11);Ts.SYNTAX_ERR=(ls[12]="Syntax error",12);Ts.INVALID_MODIFICATION_ERR=(ls[13]="Invalid modification",13);Ts.NAMESPACE_ERR=(ls[14]="Invalid namespace",14);Ts.INVALID_ACCESS_ERR=(ls[15]="Invalid access",15);function Kn(e,t){if(t instanceof Error)var n=t;else n=this,Error.call(this,ls[e]),this.message=ls[e],Error.captureStackTrace&&Error.captureStackTrace(this,Kn);return n.code=e,t&&(this.message=this.message+": "+t),n}Kn.prototype=Error.prototype;Af(Ts,Kn);function Zi(){}Zi.prototype={length:0,item:function(e){return this[e]||null},toString:function(e,t){for(var n=[],s=0;s<this.length;s++)Bl(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 Ou(e,t){this._node=e,this._refresh=t,sT(this)}function sT(e){var t=e._node._inc||e._node.ownerDocument._inc;if(e._inc!=t){var n=e._refresh(e._node);PM(e,"length",n.length),Af(n,e),e._inc=t}}Ou.prototype.item=function(e){return sT(this),this[e]};ar(Ou,Zi);function om(){}function _M(e,t){for(var n=e.length;n--;)if(e[n]===t)return n}function Zx(e,t,n,s){if(s?t[_M(t,s)]=n:t[t.length++]=n,e){n.ownerElement=e;var r=e.ownerDocument;r&&(s&&SM(r,e,s),x0e(r,e,n))}}function e2(e,t,n){var s=_M(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&&(SM(i,e,n),n.ownerElement=null)}}else throw new Kn(bM,new Error(e.tagName+"@"+n))}om.prototype={length:0,item:Zi.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 Kn(Jx);var n=this.getNamedItem(e.nodeName);return Zx(this._ownerElement,this,e,n),n},setNamedItemNS:function(e){var t=e.ownerElement,n;if(t&&t!=this._ownerElement)throw new Kn(Jx);return n=this.getNamedItemNS(e.namespaceURI,e.localName),Zx(this._ownerElement,this,e,n),n},removeNamedItem:function(e){var t=this.getNamedItem(e);return e2(this._ownerElement,this,t),t},removeNamedItemNS:function(e,t){var n=this.getNamedItemNS(e,t);return e2(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 TM(){}TM.prototype={hasFeature:function(e,t){return!0},createDocument:function(e,t,n){var s=new Pf;if(s.implementation=this,s.childNodes=new Zi,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 xg;return s.name=e,s.nodeName=e,s.publicId=t||"",s.systemId=n||"",s}};function hn(){}hn.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 lm(this,e,t)},replaceChild:function(e,t){lm(this,e,t,EM),t&&this.removeChild(t)},removeChild:function(e){return CM(this,e)},appendChild:function(e){return this.insertBefore(e,null)},hasChildNodes:function(){return this.firstChild!=null},cloneNode:function(e){return ub(this.ownerDocument||this,this,e)},normalize:function(){for(var e=this.firstChild;e;){var t=e.nextSibling;t&&t.nodeType==am&&e.nodeType==am?(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==Iu?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==Iu?t.ownerDocument:t.parentNode}return null},isDefaultNamespace:function(e){var t=this.lookupPrefix(e);return t==null}};function wM(e){return e=="<"&&"<"||e==">"&&">"||e=="&"&&"&"||e=='"'&&"""||"&#"+e.charCodeAt()+";"}Af(or,hn);Af(or,hn.prototype);function Yd(e,t){if(t(e))return!0;if(e=e.firstChild)do if(Yd(e,t))return!0;while(e=e.nextSibling)}function Pf(){this.ownerDocument=this}function x0e(e,t,n){e&&e._inc++;var s=n.namespaceURI;s===Gd.XMLNS&&(t._nsMap[n.prefix?n.localName:""]=n.value)}function SM(e,t,n,s){e&&e._inc++;var r=n.namespaceURI;r===Gd.XMLNS&&delete t._nsMap[n.prefix?n.localName:""]}function rT(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 CM(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,rT(e.ownerDocument,e),t}function k0e(e){return e&&(e.nodeType===hn.DOCUMENT_NODE||e.nodeType===hn.DOCUMENT_FRAGMENT_NODE||e.nodeType===hn.ELEMENT_NODE)}function I0e(e){return e&&(Ci(e)||iT(e)||ca(e)||e.nodeType===hn.DOCUMENT_FRAGMENT_NODE||e.nodeType===hn.COMMENT_NODE||e.nodeType===hn.PROCESSING_INSTRUCTION_NODE)}function ca(e){return e&&e.nodeType===hn.DOCUMENT_TYPE_NODE}function Ci(e){return e&&e.nodeType===hn.ELEMENT_NODE}function iT(e){return e&&e.nodeType===hn.TEXT_NODE}function t2(e,t){var n=e.childNodes||[];if(Si(n,Ci)||ca(t))return!1;var s=Si(n,ca);return!(t&&s&&n.indexOf(s)>n.indexOf(t))}function n2(e,t){var n=e.childNodes||[];function s(i){return Ci(i)&&i!==t}if(Si(n,s))return!1;var r=Si(n,ca);return!(t&&r&&n.indexOf(r)>n.indexOf(t))}function O0e(e,t,n){if(!k0e(e))throw new Kn(Ks,"Unexpected parent node type "+e.nodeType);if(n&&n.parentNode!==e)throw new Kn(bM,"child not in parent");if(!I0e(t)||ca(t)&&e.nodeType!==hn.DOCUMENT_NODE)throw new Kn(Ks,"Unexpected node type "+t.nodeType+" for parent node type "+e.nodeType)}function A0e(e,t,n){var s=e.childNodes||[],r=t.childNodes||[];if(t.nodeType===hn.DOCUMENT_FRAGMENT_NODE){var i=r.filter(Ci);if(i.length>1||Si(r,iT))throw new Kn(Ks,"More than one element or text in fragment");if(i.length===1&&!t2(e,n))throw new Kn(Ks,"Element in fragment can not be inserted before doctype")}if(Ci(t)&&!t2(e,n))throw new Kn(Ks,"Only one element can be added and only after doctype");if(ca(t)){if(Si(s,ca))throw new Kn(Ks,"Only one doctype is allowed");var a=Si(s,Ci);if(n&&s.indexOf(a)<s.indexOf(n))throw new Kn(Ks,"Doctype can only be inserted before an element");if(!n&&a)throw new Kn(Ks,"Doctype can not be appended since element is present")}}function EM(e,t,n){var s=e.childNodes||[],r=t.childNodes||[];if(t.nodeType===hn.DOCUMENT_FRAGMENT_NODE){var i=r.filter(Ci);if(i.length>1||Si(r,iT))throw new Kn(Ks,"More than one element or text in fragment");if(i.length===1&&!n2(e,n))throw new Kn(Ks,"Element in fragment can not be inserted before doctype")}if(Ci(t)&&!n2(e,n))throw new Kn(Ks,"Only one element can be added and only after doctype");if(ca(t)){let l=function(u){return ca(u)&&u!==n};var o=l;if(Si(s,l))throw new Kn(Ks,"Only one doctype is allowed");var a=Si(s,Ci);if(n&&s.indexOf(a)<s.indexOf(n))throw new Kn(Ks,"Doctype can only be inserted before an element")}}function lm(e,t,n,s){O0e(e,t,n),e.nodeType===hn.DOCUMENT_NODE&&(s||A0e)(e,t,n);var r=t.parentNode;if(r&&r.removeChild(t),t.nodeType===ua){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 rT(e.ownerDocument||e,e),t.nodeType==ua&&(t.firstChild=t.lastChild=null),t}function P0e(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,rT(e.ownerDocument,e,t),t}Pf.prototype={nodeName:"#document",nodeType:vM,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,t){if(e.nodeType==ua){for(var n=e.firstChild;n;){var s=n.nextSibling;this.insertBefore(n,t),n=s}return e}return lm(this,e,t),e.ownerDocument=this,this.documentElement===null&&e.nodeType===Xr&&(this.documentElement=e),e},removeChild:function(e){return this.documentElement==e&&(this.documentElement=null),CM(this,e)},replaceChild:function(e,t){lm(this,e,t,EM),e.ownerDocument=this,t&&this.removeChild(t),Ci(e)&&(this.documentElement=e)},importNode:function(e,t){return AM(this,e,t)},getElementById:function(e){var t=null;return Yd(this.documentElement,function(n){if(n.nodeType==Xr&&n.getAttribute("id")==e)return t=n,!0}),t},getElementsByClassName:function(e){var t=Qx(e);return new Ou(this,function(n){var s=[];return t.length>0&&Yd(n.documentElement,function(r){if(r!==n&&r.nodeType===Xr){var i=r.getAttribute("class");if(i){var a=e===i;if(!a){var o=Qx(i);a=t.every(S0e(o))}a&&s.push(r)}}}),s})},createElement:function(e){var t=new el;t.ownerDocument=this,t.nodeName=e,t.tagName=e,t.localName=e,t.childNodes=new Zi;var n=t.attributes=new om;return n._ownerElement=t,t},createDocumentFragment:function(){var e=new kg;return e.ownerDocument=this,e.childNodes=new Zi,e},createTextNode:function(e){var t=new aT;return t.ownerDocument=this,t.appendData(e),t},createComment:function(e){var t=new oT;return t.ownerDocument=this,t.appendData(e),t},createCDATASection:function(e){var t=new lT;return t.ownerDocument=this,t.appendData(e),t},createProcessingInstruction:function(e,t){var n=new cT;return n.ownerDocument=this,n.tagName=n.target=e,n.nodeValue=n.data=t,n},createAttribute:function(e){var t=new um;return t.ownerDocument=this,t.name=e,t.nodeName=e,t.localName=e,t.specified=!0,t},createEntityReference:function(e){var t=new uT;return t.ownerDocument=this,t.nodeName=e,t},createElementNS:function(e,t){var n=new el,s=t.split(":"),r=n.attributes=new om;return n.childNodes=new Zi,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 um,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}};ar(Pf,hn);function el(){this._nsMap={}}el.prototype={nodeType:Xr,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===ua?this.insertBefore(e,null):P0e(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 Ou(this,function(t){var n=[];return Yd(t,function(s){s!==t&&s.nodeType==Xr&&(e==="*"||s.tagName==e)&&n.push(s)}),n})},getElementsByTagNameNS:function(e,t){return new Ou(this,function(n){var s=[];return Yd(n,function(r){r!==n&&r.nodeType===Xr&&(e==="*"||r.namespaceURI===e)&&(t==="*"||r.localName==t)&&s.push(r)}),s})}};Pf.prototype.getElementsByTagName=el.prototype.getElementsByTagName;Pf.prototype.getElementsByTagNameNS=el.prototype.getElementsByTagNameNS;ar(el,hn);function um(){}um.prototype.nodeType=Iu;ar(um,hn);function $f(){}$f.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(ls[Ks])},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}};ar($f,hn);function aT(){}aT.prototype={nodeName:"#text",nodeType:am,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}};ar(aT,$f);function oT(){}oT.prototype={nodeName:"#comment",nodeType:gM};ar(oT,$f);function lT(){}lT.prototype={nodeName:"#cdata-section",nodeType:hM};ar(lT,$f);function xg(){}xg.prototype.nodeType=yM;ar(xg,hn);function xM(){}xM.prototype.nodeType=E0e;ar(xM,hn);function kM(){}kM.prototype.nodeType=C0e;ar(kM,hn);function uT(){}uT.prototype.nodeType=pM;ar(uT,hn);function kg(){}kg.prototype.nodeName="#document-fragment";kg.prototype.nodeType=ua;ar(kg,hn);function cT(){}cT.prototype.nodeType=mM;ar(cT,hn);function IM(){}IM.prototype.serializeToString=function(e,t,n){return OM.call(e,t,n)};hn.prototype.toString=OM;function OM(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 Bl(this,n,e,t,a),n.join("")}function s2(e,t,n){var s=e.prefix||"",r=e.namespaceURI;if(!r||s==="xml"&&r===Gd.XML||r===Gd.XMLNS)return!1;for(var i=n.length;i--;){var a=n[i];if(a.prefix===s)return a.namespace!==r}return!0}function r0(e,t,n){e.push(" ",t,'="',n.replace(/[<>&"\t\n\r]/g,wM),'"')}function Bl(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 Xr:var i=e.attributes,a=i.length,v=e.firstChild,o=e.tagName;n=Gd.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 p=0;p<a;p++){var g=i.item(p);g.prefix=="xmlns"?r.push({prefix:g.localName,namespace:g.value}):g.nodeName=="xmlns"&&r.push({prefix:"",namespace:g.value})}for(var p=0;p<a;p++){var g=i.item(p);if(s2(g,n,r)){var m=g.prefix||"",y=g.namespaceURI;r0(t,m?"xmlns:"+m:"xmlns",y),r.push({prefix:m,namespace:y})}Bl(g,t,n,s,r)}if(o===l&&s2(e,n,r)){var m=e.prefix||"",y=e.namespaceURI;r0(t,m?"xmlns:"+m:"xmlns",y),r.push({prefix:m,namespace:y})}if(v||n&&!/^(?:meta|link|img|br|hr|input)$/i.test(o)){if(t.push(">"),n&&/^script$/i.test(o))for(;v;)v.data?t.push(v.data):Bl(v,t,n,s,r.slice()),v=v.nextSibling;else for(;v;)Bl(v,t,n,s,r.slice()),v=v.nextSibling;t.push("</",l,">")}else t.push("/>");return;case vM:case ua:for(var v=e.firstChild;v;)Bl(v,t,n,s,r.slice()),v=v.nextSibling;return;case Iu:return r0(t,e.name,e.value);case am:return t.push(e.data.replace(/[<&>]/g,wM));case hM:return t.push("<![CDATA[",e.data,"]]>");case gM:return t.push("<!--",e.data,"-->");case yM:var _=e.publicId,w=e.systemId;if(t.push("<!DOCTYPE ",e.name),_)t.push(" PUBLIC ",_),w&&w!="."&&t.push(" ",w),t.push(">");else if(w&&w!=".")t.push(" SYSTEM ",w,">");else{var T=e.internalSubset;T&&t.push(" [",T,"]"),t.push(">")}return;case mM:return t.push("<?",e.target," ",e.data,"?>");case pM:return t.push("&",e.nodeName,";");default:t.push("??",e.nodeName)}}function AM(e,t,n){var s;switch(t.nodeType){case Xr:s=t.cloneNode(!1),s.ownerDocument=e;case ua:break;case Iu:n=!0;break}if(s||(s=t.cloneNode(!1)),s.ownerDocument=e,s.parentNode=null,n)for(var r=t.firstChild;r;)s.appendChild(AM(e,r,n)),r=r.nextSibling;return s}function ub(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 Zi),s.ownerDocument=e,s.nodeType){case Xr:var a=t.attributes,o=s.attributes=new om,l=a.length;o._ownerElement=s;for(var u=0;u<l;u++)s.setAttributeNode(ub(e,a.item(u),!0));break;case Iu:n=!0}if(n)for(var c=t.firstChild;c;)s.appendChild(ub(e,c,n)),c=c.nextSibling;return s}function PM(e,t,n){e[t]=n}try{if(Object.defineProperty){let e=function(t){switch(t.nodeType){case Xr:case ua: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 getTextContent=e;Object.defineProperty(Ou.prototype,"length",{get:function(){return sT(this),this.$$length}}),Object.defineProperty(hn.prototype,"textContent",{get:function(){return e(this)},set:function(t){switch(this.nodeType){case Xr:case ua: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}}}),PM=function(t,n,s){t["$$"+n]=s}}}catch{}oo.DocumentType=xg;oo.DOMException=Kn;oo.DOMImplementation=TM;oo.Element=el;oo.Node=hn;oo.NodeList=Zi;oo.XMLSerializer=IM;var Ig={},$M={};(function(e){var t=_a.freeze;e.XML_ENTITIES=t({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),e.HTML_ENTITIES=t({lt:"<",gt:">",amp:"&",quot:'"',apos:"'",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",times:"×",divide:"÷",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",euro:"€",trade:"™",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"}),e.entityMap=e.HTML_ENTITIES})($M);var dT={},Xd=_a.NAMESPACE,cb=/[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]/,r2=new RegExp("[\\-\\.0-9"+cb.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),i2=new RegExp("^"+cb.source+r2.source+"*(?::"+cb.source+r2.source+"*)?$"),xc=0,xa=1,Sl=2,kc=3,Cl=4,El=5,Ic=6,Lh=7;function Au(e,t){this.message=e,this.locator=t,Error.captureStackTrace&&Error.captureStackTrace(this,Au)}Au.prototype=new Error;Au.prototype.name=Au.name;function NM(){}NM.prototype={parse:function(e,t,n){var s=this.domBuilder;s.startDocument(),MM(t,t={}),$0e(e,t,n,s,this.errorHandler),s.endDocument()}};function $0e(e,t,n,s,r){function i(Y){if(Y>65535){Y-=65536;var B=55296+(Y>>10),K=56320+(Y&1023);return String.fromCharCode(B,K)}else return String.fromCharCode(Y)}function a(Y){var B=Y.slice(1,-1);return Object.hasOwnProperty.call(n,B)?n[B]:B.charAt(0)==="#"?i(parseInt(B.substr(1).replace("x","0x"))):(r.error("entity not found:"+Y),Y)}function o(Y){if(Y>m){var B=e.substring(m,Y).replace(/&#?\w+;/g,a);h&&l(m),s.characters(B,0,Y-m),m=Y}}function l(Y,B){for(;Y>=c&&(B=f.exec(e));)u=B.index,c=u+B[0].length,h.lineNumber++;h.columnNumber=Y-u+1}for(var u=0,c=0,f=/.*(?:\r\n?|\n)|.*$/g,h=s.locator,p=[{currentNSMap:t}],g={},m=0;;){try{var y=e.indexOf("<",m);if(y<0){if(!e.substr(m).match(/^\s*$/)){var v=s.doc,_=v.createTextNode(e.substr(m));v.appendChild(_),s.currentElement=_}return}switch(y>m&&o(y),e.charAt(y+1)){case"/":var z=e.indexOf(">",y+3),w=e.substring(y+2,z).replace(/[ \t\n\r]+$/g,""),T=p.pop();z<0?(w=e.substring(y+2).replace(/[\s<].*/,""),r.error("end tag name: "+w+" is not complete:"+T.tagName),z=y+1+w.length):w.match(/\s</)&&(w=w.replace(/[\s<].*/,""),r.error("end tag name: "+w+" maybe not complete"),z=y+1+w.length);var S=T.localNSMap,E=T.tagName==w,$=E||T.tagName&&T.tagName.toLowerCase()==w.toLowerCase();if($){if(s.endElement(T.uri,T.localName,w),S)for(var P in S)Object.prototype.hasOwnProperty.call(S,P)&&s.endPrefixMapping(P);E||r.fatalError("end tag name: "+w+" is not match the current start tagName:"+T.tagName)}else p.push(T);z++;break;case"?":h&&l(y),z=D0e(e,y,s);break;case"!":h&&l(y),z=L0e(e,y,s,r);break;default:h&&l(y);var U=new RM,H=p[p.length-1].currentNSMap,z=N0e(e,y,U,H,a,r),W=U.length;if(!U.closed&&R0e(e,z,U.tagName,g)&&(U.closed=!0,n.nbsp||r.warning("unclosed xml attribute")),h&&W){for(var D=a2(h,{}),V=0;V<W;V++){var X=U[V];l(X.offset),X.locator=a2(h,{})}s.locator=D,o2(U,s,H)&&p.push(U),s.locator=h}else o2(U,s,H)&&p.push(U);Xd.isHTML(U.uri)&&!U.closed?z=M0e(e,z,U.tagName,a,s):z++}}catch(Y){if(Y instanceof Au)throw Y;r.error("element parse error: "+Y),z=-1}z>m?m=z:o(Math.max(y,m)+1)}}function a2(e,t){return t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t}function N0e(e,t,n,s,r,i){function a(h,p,g){n.attributeNames.hasOwnProperty(h)&&i.fatalError("Attribute "+h+" redefined"),n.addValue(h,p.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,r),g)}for(var o,l,u=++t,c=xc;;){var f=e.charAt(u);switch(f){case"=":if(c===xa)o=e.slice(t,u),c=kc;else if(c===Sl)c=kc;else throw new Error("attribute equal must after attrName");break;case"'":case'"':if(c===kc||c===xa)if(c===xa&&(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=El;else throw new Error("attribute value no end '"+f+"' match");else if(c==Cl)l=e.slice(t,u),a(o,l,t),i.warning('attribute "'+o+'" missed start quot('+f+")!!"),t=u+1,c=El;else throw new Error('attribute value must after "="');break;case"/":switch(c){case xc:n.setTagName(e.slice(t,u));case El:case Ic:case Lh:c=Lh,n.closed=!0;case Cl:case xa:break;case Sl:n.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return i.error("unexpected end of input"),c==xc&&n.setTagName(e.slice(t,u)),u;case">":switch(c){case xc:n.setTagName(e.slice(t,u));case El:case Ic:case Lh:break;case Cl:case xa:l=e.slice(t,u),l.slice(-1)==="/"&&(n.closed=!0,l=l.slice(0,-1));case Sl:c===Sl&&(l=o),c==Cl?(i.warning('attribute "'+l+'" missed quot(")!'),a(o,l,t)):((!Xd.isHTML(s[""])||!l.match(/^(?:disabled|checked|selected)$/i))&&i.warning('attribute "'+l+'" missed value!! "'+l+'" instead!!'),a(l,l,t));break;case kc:throw new Error("attribute value missed!!")}return u;case"":f=" ";default:if(f<=" ")switch(c){case xc:n.setTagName(e.slice(t,u)),c=Ic;break;case xa:o=e.slice(t,u),c=Sl;break;case Cl:var l=e.slice(t,u);i.warning('attribute "'+l+'" missed quot(")!!'),a(o,l,t);case El:c=Ic;break}else switch(c){case Sl:n.tagName,(!Xd.isHTML(s[""])||!o.match(/^(?:disabled|checked|selected)$/i))&&i.warning('attribute "'+o+'" missed value!! "'+o+'" instead2!!'),a(o,o,t),t=u,c=xa;break;case El:i.warning('attribute space is required"'+o+'"!!');case Ic:c=xa,t=u;break;case kc:c=Cl,t=u;break;case Lh:throw new Error("elements closed character '/' and '>' must be connected to")}}u++}}function o2(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={},MM(n,n={})),n[c]=r[c]=o,i.uri=Xd.XMLNS,t.startPrefixMapping(c,o))}for(var f=e.length;f--;){i=e[f];var l=i.prefix;l&&(l==="xml"&&(i.uri=Xd.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 p=e.uri=n[l||""];if(t.startElement(p,u,s,e),e.closed){if(t.endElement(p,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 M0e(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 R0e(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 MM(e,t){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}function L0e(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=F0e(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 D0e(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 RM(){this.attributeNames={}}RM.prototype={setTagName:function(e){if(!i2.test(e))throw new Error("invalid tagName:"+e);this.tagName=e},addValue:function(e,t,n){if(!i2.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 F0e(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}dT.XMLReader=NM;dT.ParseError=Au;var B0e=_a,V0e=oo,l2=$M,LM=dT,U0e=V0e.DOMImplementation,u2=B0e.NAMESPACE,H0e=LM.ParseError,z0e=LM.XMLReader;function DM(e){return e.replace(/\r[\n\u0085]/g,`
|
||
`).replace(/[\r\u0085\u2028]/g,`
|
||
`)}function FM(e){this.options=e||{locator:{}}}FM.prototype.parseFromString=function(e,t){var n=this.options,s=new z0e,r=n.domBuilder||new Nf,i=n.errorHandler,a=n.locator,o=n.xmlns||{},l=/\/x?html?$/.test(t),u=l?l2.HTML_ENTITIES:l2.XML_ENTITIES;a&&r.setDocumentLocator(a),s.errorHandler=j0e(i,r,a),s.domBuilder=n.domBuilder||r,l&&(o[""]=u2.HTML),o.xml=o.xml||u2.XML;var c=n.normalizeLineEndings||DM;return e&&typeof e=="string"?s.parse(c(e),o,u):s.errorHandler.error("invalid doc source"),r.doc};function j0e(e,t,n){if(!e){if(t instanceof Nf)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+db(n))}||function(){}}return i("warning"),i("error"),i("fatalError"),s}function Nf(){this.cdata=!1}function xl(e,t){t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber}Nf.prototype={startDocument:function(){this.doc=new U0e().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;Dh(this,i),this.currentElement=i,this.locator&&xl(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&&xl(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&&xl(this.locator,n),Dh(this,n)},ignorableWhitespace:function(e,t,n){},characters:function(e,t,n){if(e=c2.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&&xl(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=c2.apply(this,arguments);var s=this.doc.createComment(e);this.locator&&xl(this.locator,s),Dh(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&&xl(this.locator,r),Dh(this,r),this.doc.doctype=r}},warning:function(e){console.warn("[xmldom warning] "+e,db(this.locator))},error:function(e){console.error("[xmldom error] "+e,db(this.locator))},fatalError:function(e){throw new H0e(e,this.locator)}};function db(e){if(e)return`
|
||
@`+(e.systemId||"")+"#[line:"+e.lineNumber+",col:"+e.columnNumber+"]"}function c2(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){Nf.prototype[e]=function(){return null}});function Dh(e,t){e.currentElement?e.currentElement.appendChild(t):e.doc.appendChild(t)}Ig.__DOMHandler=Nf;Ig.normalizeLineEndings=DM;Ig.DOMParser=FM;var K0e=Ig.DOMParser;/*! @name mpd-parser @version 1.1.1 @license Apache-2.0 */const d2=e=>!!e&&typeof e=="object",vs=(...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]):d2(t[s])&&d2(n[s])?t[s]=vs(t[s],n[s]):t[s]=n[s]}),t),{}),BM=e=>Object.keys(e).map(t=>e[t]),W0e=(e,t)=>{const n=[];for(let s=e;s<t;s++)n.push(s);return n},Pu=e=>e.reduce((t,n)=>t.concat(n),[]),VM=e=>{if(!e.length)return[];const t=[];for(let n=0;n<e.length;n++)t.push(e[n]);return t},q0e=(e,t)=>e.reduce((n,s,r)=>(s[t]&&n.push(r),n),[]),G0e=(e,t)=>BM(e.reduce((n,s)=>(s.forEach(r=>{n[t(r)]=r}),n),{}));var $u={INVALID_NUMBER_OF_PERIOD:"INVALID_NUMBER_OF_PERIOD",DASH_EMPTY_MANIFEST:"DASH_EMPTY_MANIFEST",DASH_INVALID_XML:"DASH_INVALID_XML",NO_BASE_URL:"NO_BASE_URL",MISSING_SEGMENT_INFORMATION:"MISSING_SEGMENT_INFORMATION",SEGMENT_TIME_UNSPECIFIED:"SEGMENT_TIME_UNSPECIFIED",UNSUPPORTED_UTC_TIMING_SCHEME:"UNSUPPORTED_UTC_TIMING_SCHEME"};const Qd=({baseUrl:e="",source:t="",range:n="",indexRange:s=""})=>{const r={uri:t,resolvedUri:tT(e||"",t)};if(n||s){const a=(n||s).split("-");let o=ye.BigInt?ye.BigInt(a[0]):parseInt(a[0],10),l=ye.BigInt?ye.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=ye.BigInt(l)-ye.BigInt(o)+ye.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},Y0e=e=>{let t;return typeof e.offset=="bigint"||typeof e.length=="bigint"?t=ye.BigInt(e.offset)+ye.BigInt(e.length)-ye.BigInt(1):t=e.offset+e.length-1,`${e.offset}-${t}`},f2=e=>(e&&typeof e!="number"&&(e=parseInt(e,10)),isNaN(e)?null:e),X0e={static(e){const{duration:t,timescale:n=1,sourceDuration:s,periodDuration:r}=e,i=f2(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=f2(e.endNumber),c=(t+n)/1e3,f=s+a,p=c+o-f,g=Math.ceil(p*r/i),m=Math.floor((c-f-l)*r/i),y=Math.floor((c-f)*r/i);return{start:Math.max(0,m),end:typeof u=="number"?u:Math.min(g,y)}}},Q0e=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}},fT=e=>{const{type:t,duration:n,timescale:s=1,periodDuration:r,sourceDuration:i}=e,{start:a,end:o}=X0e[t](e),l=W0e(a,o).map(Q0e(e));if(t==="static"){const u=l.length-1,c=typeof r=="number"?r:i;l[u].duration=c-n/s*u}return l},UM=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($u.NO_BASE_URL);const u=Qd({baseUrl:t,source:n.sourceURL,range:n.range}),c=Qd({baseUrl:t,source:t,indexRange:r});if(c.map=u,l){const f=fT(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]},hT=(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(y=>y.referenceType!==1),c=[],f=e.endList?"static":"dynamic",h=e.sidx.timeline;let p=h,g=e.mediaSequence||0,m;typeof t.firstOffset=="bigint"?m=ye.BigInt(o)+t.firstOffset:m=o+t.firstOffset;for(let y=0;y<u.length;y++){const v=t.references[y],_=v.referencedSize,w=v.subsegmentDuration;let T;typeof m=="bigint"?T=m+ye.BigInt(_)-ye.BigInt(1):T=m+_-1;const S=`${m}-${T}`,$=UM({baseUrl:n,timescale:l,timeline:i,periodStart:h,presentationTime:p,number:g,duration:w,sourceDuration:r,indexRange:S,type:f})[0];s&&($.map=s),c.push($),typeof m=="bigint"?m+=ye.BigInt(_):m+=_,p+=w/l,g++}return e.segments=c,e},J0e=["AUDIO","SUBTITLES"],Z0e=1/60,HM=e=>G0e(e,({timeline:t})=>t).sort((t,n)=>t.timeline>n.timeline?1:-1),eye=(e,t)=>{for(let n=0;n<e.length;n++)if(e[n].attributes.NAME===t)return e[n];return null},h2=e=>{let t=[];return m0e(e,J0e,(n,s,r,i)=>{t=t.concat(n.playlists||[])}),t},p2=({playlist:e,mediaSequence:t})=>{e.mediaSequence=t,e.segments.forEach((n,s)=>{n.number=e.mediaSequence+s})},tye=({oldPlaylists:e,newPlaylists:t,timelineStarts:n})=>{t.forEach(s=>{s.discontinuitySequence=n.findIndex(function({timeline:l}){return l===s.timeline});const r=eye(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)<Z0e});if(a===-1){p2({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--),p2({playlist:s,mediaSequence:r.segments[a].number})})},nye=({oldManifest:e,newManifest:t})=>{const n=e.playlists.concat(h2(e)),s=t.playlists.concat(h2(t));return t.timelineStarts=HM([e.timelineStarts,t.timelineStarts]),tye({oldPlaylists:n,newPlaylists:s,timelineStarts:t.timelineStarts}),t},Og=e=>e&&e.uri+"-"+Y0e(e.byterange),i0=e=>BM(e.reduce((n,s)=>{const r=s.attributes.id+(s.attributes.lang||"");return n[r]?(s.segments&&(s.segments[0]&&(s.segments[0].discontinuity=!0),n[r].segments.push(...s.segments)),s.attributes.contentProtection&&(n[r].attributes.contentProtection=s.attributes.contentProtection)):(n[r]=s,n[r].attributes.timelineStarts=[]),n[r].attributes.timelineStarts.push({start:s.attributes.periodStart,timeline:s.attributes.periodStart}),n},{})).map(n=>(n.discontinuityStarts=q0e(n.segments||[],"discontinuity"),n)),pT=(e,t)=>{const n=Og(e.sidx),s=n&&t[n]&&t[n].sidx;return s&&hT(e,s,e.sidx.resolvedUri),e},sye=(e,t={})=>{if(!Object.keys(t).length)return e;for(const n in e)e[n]=pT(e[n],t);return e},rye=({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:"",targetDuration:e.duration,discontinuitySequence:r,discontinuityStarts:i,timelineStarts:e.timelineStarts,mediaSequence:s,segments:t};return e.contentProtection&&(o.contentProtection=e.contentProtection),n&&(o.sidx=n),a&&(o.attributes.AUDIO="audio",o.attributes.SUBTITLES="subs"),o},iye=({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};return e.codecs&&(i.CODECS=e.codecs),{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}},aye=(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=pT(rye(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},oye=(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(pT(iye(s),t)),n},{}),lye=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),{}),uye=({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:"",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),n&&(r.sidx=n),r},cye=({attributes:e})=>e.mimeType==="video/mp4"||e.mimeType==="video/webm"||e.contentType==="video",dye=({attributes:e})=>e.mimeType==="audio/mp4"||e.mimeType==="audio/webm"||e.contentType==="audio",fye=({attributes:e})=>e.mimeType==="text/vtt"||e.contentType==="text",hye=(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})})},m2=e=>e?Object.keys(e).reduce((t,n)=>{const s=e[n];return t.concat(s.playlists)},[]):[],pye=({dashPlaylists:e,locations:t,sidxMapping:n={},previousManifest:s,eventStream:r})=>{if(!e.length)return{};const{sourceDuration:i,type:a,suggestedPresentationDelay:o,minimumUpdatePeriod:l}=e[0].attributes,u=i0(e.filter(cye)).map(uye),c=i0(e.filter(dye)),f=i0(e.filter(fye)),h=e.map(w=>w.attributes.captionServices).filter(Boolean),p={allowCache:!0,discontinuityStarts:[],segments:[],endList:!0,mediaGroups:{AUDIO:{},VIDEO:{},["CLOSED-CAPTIONS"]:{},SUBTITLES:{}},uri:"",duration:i,playlists:sye(u,n)};l>=0&&(p.minimumUpdatePeriod=l*1e3),t&&(p.locations=t),a==="dynamic"&&(p.suggestedPresentationDelay=o),r&&r.length>0&&(p.eventStream=r);const g=p.playlists.length===0,m=c.length?aye(c,n,g):null,y=f.length?oye(f,n):null,v=u.concat(m2(m),m2(y)),_=v.map(({timelineStarts:w})=>w);return p.timelineStarts=HM(_),hye(v,p.timelineStarts),m&&(p.mediaGroups.AUDIO.audio=m),y&&(p.mediaGroups.SUBTITLES.subs=y),h.length&&(p.mediaGroups["CLOSED-CAPTIONS"].cc=lye(h)),s?nye({oldManifest:s,newManifest:p}):p},mye=(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)},zM=(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],p=h.d,g=h.r||0,m=h.t||0;c<0&&(c=m),m&&m>c&&(c=m);let y;if(g<0){const w=f+1;w===t.length?n==="dynamic"&&s>0&&r.indexOf("$Number$")>0?y=mye(e,c,p):y=(i*a-c)/p:y=(t[w].t-c)/p}else y=g+1;const v=o+u.length+y;let _=o+u.length;for(;_<v;)u.push({number:_,duration:p/a,time:c,timeline:l}),c+=p,_++}return u},gye=/\$([A-z]*)(?:(%0)([0-9]+)d)?\$/g,vye=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}`},g2=(e,t)=>e.replace(gye,vye(t)),yye=(e,t)=>!e.duration&&!t?[{number:e.startNumber||1,duration:e.sourceDuration,time:0,timeline:e.periodStart}]:e.duration?fT(e):zM(e,t),bye=(e,t)=>{const n={RepresentationID:e.id,Bandwidth:e.bandwidth||0},{initialization:s={sourceURL:"",range:""}}=e,r=Qd({baseUrl:e.baseUrl,source:g2(s.sourceURL,n),range:s.range});return yye(e,t).map(a=>{n.Number=a.number,n.Time=a.time;const o=g2(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:tT(e.baseUrl||"",o),map:r,number:a.number,presentationTime:c}})},_ye=(e,t)=>{const{baseUrl:n,initialization:s={}}=e,r=Qd({baseUrl:n,source:s.sourceURL,range:s.range}),i=Qd({baseUrl:n,source:t.media,range:t.mediaRange});return i.map=r,i},Tye=(e,t)=>{const{duration:n,segmentUrls:s=[],periodStart:r}=e;if(!n&&!t||n&&t)throw new Error($u.SEGMENT_TIME_UNSPECIFIED);const i=s.map(l=>_ye(e,l));let a;return n&&(a=fT(e)),t&&(a=zM(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)},wye=({attributes:e,segmentInfo:t})=>{let n,s;t.template?(s=bye,n=vs(e,t.template)):t.base?(s=UM,n=vs(e,t.base)):t.list&&(s=Tye,n=vs(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},Sye=e=>e.map(wye),Dn=(e,t)=>VM(e.childNodes).filter(({tagName:n})=>n===t),Ag=e=>e.textContent.trim(),Cye=e=>parseFloat(e.split("/").reduce((t,n)=>t/n)),kl=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,p]=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(p||0)},Eye=e=>(/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(e)&&(e+="Z"),Date.parse(e)),v2={mediaPresentationDuration(e){return kl(e)},availabilityStartTime(e){return Eye(e)/1e3},minimumUpdatePeriod(e){return kl(e)},suggestedPresentationDelay(e){return kl(e)},type(e){return e},timeShiftBufferDepth(e){return kl(e)},start(e){return kl(e)},width(e){return parseInt(e,10)},height(e){return parseInt(e,10)},bandwidth(e){return parseInt(e,10)},frameRate(e){return Cye(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)?kl(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}},rs=e=>e&&e.attributes?VM(e.attributes).reduce((t,n)=>{const s=v2[n.name]||v2.DEFAULT;return t[n.name]=s(n.value),t},{}):{},xye={"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"},Pg=(e,t)=>t.length?Pu(e.map(function(n){return t.map(function(s){return tT(n,Ag(s))})})):e,mT=e=>{const t=Dn(e,"SegmentTemplate")[0],n=Dn(e,"SegmentList")[0],s=n&&Dn(n,"SegmentURL").map(f=>vs({tag:"SegmentURL"},rs(f))),r=Dn(e,"SegmentBase")[0],i=n||t,a=i&&Dn(i,"SegmentTimeline")[0],o=n||r||t,l=o&&Dn(o,"Initialization")[0],u=t&&rs(t);u&&l?u.initialization=l&&rs(l):u&&u.initialization&&(u.initialization={sourceURL:u.initialization});const c={template:u,segmentTimeline:a&&Dn(a,"S").map(f=>rs(f)),list:n&&vs(rs(n),{segmentUrls:s,initialization:rs(l)}),base:r&&vs(rs(r),{initialization:rs(l)})};return Object.keys(c).forEach(f=>{c[f]||delete c[f]}),c},kye=(e,t,n)=>s=>{const r=Dn(s,"BaseURL"),i=Pg(t,r),a=vs(e,rs(s)),o=mT(s);return i.map(l=>({segmentInfo:vs(n,o),attributes:vs(a,{baseUrl:l})}))},Iye=e=>e.reduce((t,n)=>{const s=rs(n);s.schemeIdUri&&(s.schemeIdUri=s.schemeIdUri.toLowerCase());const r=xye[s.schemeIdUri];if(r){t[r]={attributes:s};const i=Dn(n,"cenc:pssh")[0];if(i){const a=Ag(i);t[r].pssh=a&&v0e(a)}}return t},{}),Oye=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})},Aye=e=>Pu(Dn(e.node,"EventStream").map(t=>{const n=rs(t),s=n.schemeIdUri;return Dn(t,"Event").map(r=>{const i=rs(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:Ag(r)||i.messageData,contentEncoding:n.contentEncoding,presentationTimeOffset:n.presentationTimeOffset||0}})})),Pye=(e,t,n)=>s=>{const r=rs(s),i=Pg(t,Dn(s,"BaseURL")),a=Dn(s,"Role")[0],o={role:rs(a)};let l=vs(e,r,o);const u=Dn(s,"Accessibility")[0],c=Oye(rs(u));c&&(l=vs(l,{captionServices:c}));const f=Dn(s,"Label")[0];if(f&&f.childNodes.length){const y=f.childNodes[0].nodeValue.trim();l=vs(l,{label:y})}const h=Iye(Dn(s,"ContentProtection"));Object.keys(h).length&&(l=vs(l,{contentProtection:h}));const p=mT(s),g=Dn(s,"Representation"),m=vs(n,p);return Pu(g.map(kye(l,i,m)))},$ye=(e,t)=>(n,s)=>{const r=Pg(t,Dn(n.node,"BaseURL")),i=vs(e,{periodStart:n.attributes.start});typeof n.attributes.duration=="number"&&(i.periodDuration=n.attributes.duration);const a=Dn(n.node,"AdaptationSet"),o=mT(n.node);return Pu(a.map(Pye(i,r,o)))},Nye=({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,Mye=(e,t={})=>{const{manifestUri:n="",NOW:s=Date.now(),clientOffset:r=0}=t,i=Dn(e,"Period");if(!i.length)throw new Error($u.INVALID_NUMBER_OF_PERIOD);const a=Dn(e,"Location"),o=rs(e),l=Pg([n],Dn(e,"BaseURL"));o.type=o.type||"static",o.sourceDuration=o.mediaPresentationDuration||0,o.NOW=s,o.clientOffset=r,a.length&&(o.locations=a.map(Ag));const u=[];return i.forEach((c,f)=>{const h=rs(c),p=u[f-1];h.start=Nye({attributes:h,priorPeriodAttributes:p?p.attributes:null,mpdType:o.type}),u.push({node:c,attributes:h})}),{locations:o.locations,representationInfo:Pu(u.map($ye(o,l))),eventStream:Pu(u.map(Aye))}},jM=e=>{if(e==="")throw new Error($u.DASH_EMPTY_MANIFEST);const t=new K0e;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($u.DASH_INVALID_XML);return s},Rye=e=>{const t=Dn(e,"UTCTiming")[0];if(!t)return null;const n=rs(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($u.UNSUPPORTED_UTC_TIMING_SCHEME)}return n},Lye=(e,t={})=>{const n=Mye(jM(e),t),s=Sye(n.representationInfo);return pye({dashPlaylists:s,locations:n.locations,sidxMapping:t.sidxMapping,previousManifest:t.previousManifest,eventStream:n.eventStream})},Dye=e=>Rye(jM(e));var KM=Math.pow(2,32),Fye=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)*KM+t.getUint32(4)},Bye={getUint64:Fye,MAX_UINT32:KM},y2=Bye.getUint64,Vye=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=y2(e.subarray(s)),n.firstOffset=y2(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},Uye=Vye,Hye=Bt([73,68,51]),zye=function(t,n){n===void 0&&(n=0),t=Bt(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},Fc=function e(t,n){return n===void 0&&(n=0),t=Bt(t),t.length-n<10||!Nn(t,Hye,{offset:n})?n:(n+=zye(t,n),e(t,n))},b2=function(t){return typeof t=="string"?uM(t):t},jye=function(t){return Array.isArray(t)?t.map(function(n){return b2(n)}):[b2(t)]},Kye=function e(t,n,s){s===void 0&&(s=!1),n=jye(n),t=Bt(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);Nn(o,n[0])&&(n.length===1?r.push(u):r.push.apply(r,e(u,n.slice(1),s))),i=l}return r},Fh={EBML:Bt([26,69,223,163]),DocType:Bt([66,130]),Segment:Bt([24,83,128,103]),SegmentInfo:Bt([21,73,169,102]),Tracks:Bt([22,84,174,107]),Track:Bt([174]),TrackNumber:Bt([215]),DefaultDuration:Bt([35,227,131]),TrackEntry:Bt([174]),TrackType:Bt([131]),FlagDefault:Bt([136]),CodecID:Bt([134]),CodecPrivate:Bt([99,162]),VideoTrack:Bt([224]),AudioTrack:Bt([225]),Cluster:Bt([31,67,182,117]),Timestamp:Bt([231]),TimestampScale:Bt([42,215,177]),BlockGroup:Bt([160]),BlockDuration:Bt([155]),Block:Bt([161]),SimpleBlock:Bt([163])},fb=[128,64,32,16,8,4,2,1],Wye=function(t){for(var n=1,s=0;s<fb.length&&!(t&fb[s]);s++)n++;return n},cm=function(t,n,s,r){s===void 0&&(s=!0),r===void 0&&(r=!1);var i=Wye(t[n]),a=t.subarray(n,n+i);return s&&(a=Array.prototype.slice.call(t,n,n+i),a[0]^=fb[i-1]),{length:i,value:f0e(a,{signed:r}),bytes:a}},_2=function e(t){return typeof t=="string"?t.match(/.{1,2}/g).map(function(n){return e(n)}):typeof t=="number"?h0e(t):t},qye=function(t){return Array.isArray(t)?t.map(function(n){return _2(n)}):[_2(t)]},Gye=function e(t,n,s){if(s>=n.length)return n.length;var r=cm(n,s,!1);if(Nn(t.bytes,r.bytes))return s;var i=cm(n,s+r.length);return e(t,n,s+i.length+i.value+r.length)},T2=function e(t,n){n=qye(n),t=Bt(t);var s=[];if(!n.length)return s;for(var r=0;r<t.length;){var i=cm(t,r,!1),a=cm(t,r+i.length),o=r+i.length+a.length;a.value===127&&(a.value=Gye(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);Nn(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},Yye=Bt([0,0,0,1]),Xye=Bt([0,0,1]),Qye=Bt([0,0,3]),Jye=function(t){for(var n=[],s=1;s<t.length-2;)Nn(t.subarray(s,s+3),Qye)&&(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},WM=function(t,n,s,r){r===void 0&&(r=1/0),t=Bt(t),s=[].concat(s);for(var i=0,a,o=0;i<t.length&&(o<r||a);){var l=void 0;if(Nn(t.subarray(i),Yye)?l=4:Nn(t.subarray(i),Xye)&&(l=3),!l){i++;continue}if(o++,a)return Jye(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)},Zye=function(t,n,s){return WM(t,"h264",n,s)},ebe=function(t,n,s){return WM(t,"h265",n,s)},Es={webm:Bt([119,101,98,109]),matroska:Bt([109,97,116,114,111,115,107,97]),flac:Bt([102,76,97,67]),ogg:Bt([79,103,103,83]),ac3:Bt([11,119]),riff:Bt([82,73,70,70]),avi:Bt([65,86,73]),wav:Bt([87,65,86,69]),"3gp":Bt([102,116,121,112,51,103]),mp4:Bt([102,116,121,112]),fmp4:Bt([115,116,121,112]),mov:Bt([102,116,121,112,113,116]),moov:Bt([109,111,111,118]),moof:Bt([109,111,111,102])},Nu={aac:function(t){var n=Fc(t);return Nn(t,[255,16],{offset:n,mask:[255,22]})},mp3:function(t){var n=Fc(t);return Nn(t,[255,2],{offset:n,mask:[255,6]})},webm:function(t){var n=T2(t,[Fh.EBML,Fh.DocType])[0];return Nn(n,Es.webm)},mkv:function(t){var n=T2(t,[Fh.EBML,Fh.DocType])[0];return Nn(n,Es.matroska)},mp4:function(t){if(Nu["3gp"](t)||Nu.mov(t))return!1;if(Nn(t,Es.mp4,{offset:4})||Nn(t,Es.fmp4,{offset:4})||Nn(t,Es.moof,{offset:4})||Nn(t,Es.moov,{offset:4}))return!0},mov:function(t){return Nn(t,Es.mov,{offset:4})},"3gp":function(t){return Nn(t,Es["3gp"],{offset:4})},ac3:function(t){var n=Fc(t);return Nn(t,Es.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=Fc(t);return Nn(t,Es.flac,{offset:n})},ogg:function(t){return Nn(t,Es.ogg)},avi:function(t){return Nn(t,Es.riff)&&Nn(t,Es.avi,{offset:8})},wav:function(t){return Nn(t,Es.riff)&&Nn(t,Es.wav,{offset:8})},h264:function(t){return Zye(t,7,3).length},h265:function(t){return ebe(t,[32,33],3).length}},hb=Object.keys(Nu).filter(function(e){return e!=="ts"&&e!=="h264"&&e!=="h265"}).concat(["ts","h264","h265"]);hb.forEach(function(e){var t=Nu[e];Nu[e]=function(n){return t(Bt(n))}});var tbe=Nu,gT=function(t){t=Bt(t);for(var n=0;n<hb.length;n++){var s=hb[n];if(tbe[s](t))return s}return""},nbe=function(t){return Kye(t,["moof"]).length>0},vT=9e4,yT,bT,$g,_T,qM,GM,YM;yT=function(e){return e*vT};bT=function(e,t){return e*t};$g=function(e){return e/vT};_T=function(e,t){return e/t};qM=function(e,t){return yT(_T(e,t))};GM=function(e,t){return bT($g(e),t)};YM=function(e,t,n){return $g(n?e:e-t)};var dm={ONE_SECOND_IN_TS:vT,secondsToVideoTs:yT,secondsToAudioTs:bT,videoTsToSeconds:$g,audioTsToSeconds:_T,audioTsToVideoTs:qM,videoTsToAudioTs:GM,metadataTsToSeconds:YM};/**
|
||
* @license
|
||
* Video.js 8.0.4 <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 XM="8.0.4";const Gi={},Xa=function(e,t){return Gi[e]=Gi[e]||[],t&&(Gi[e]=Gi[e].concat(t)),Gi[e]},sbe=function(e,t){Xa(e,t)},QM=function(e,t){const n=Xa(e).indexOf(t);return n<=-1?!1:(Gi[e]=Gi[e].slice(),Gi[e].splice(n,1),!0)},rbe=function(e,t){Xa(e,[].concat(t).map(n=>{const s=(...r)=>(QM(e,s),n(...r));return s}))},fm={prefixed:!0},kp=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror","fullscreen"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror","-webkit-full-screen"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror","-moz-full-screen"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError","-ms-fullscreen"]],w2=kp[0];let Bc;for(let e=0;e<kp.length;e++)if(kp[e][1]in gt){Bc=kp[e];break}if(Bc){for(let e=0;e<Bc.length;e++)fm[w2[e]]=Bc[e];fm.prefixed=Bc[0]!==w2[0]}let js=[];const ibe=(e,t)=>(n,s,r)=>{const i=t.levels[s],a=new RegExp(`^(${i})$`);if(n!=="log"&&r.unshift(n.toUpperCase()+":"),r.unshift(e+":"),js){js.push([].concat(r));const l=js.length-1e3;js.splice(0,l>0?l:0)}if(!ye.console)return;let o=ye.console[n];!o&&n==="debug"&&(o=ye.console.info||ye.console.log),!(!o||!i||!a.test(n))&&o[Array.isArray(r)?"apply":"call"](ye.console,r)};function JM(e){let t="info",n;const s=function(...r){n("log",t,r)};return n=ibe(e,s),s.createLogger=r=>JM(e+": "+r),s.levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:t},s.level=r=>{if(typeof r=="string"){if(!s.levels.hasOwnProperty(r))throw new Error(`"${r}" in not a valid log level`);t=r}return t},s.history=()=>js?[].concat(js):[],s.history.filter=r=>(js||[]).filter(i=>new RegExp(`.*${r}.*`).test(i[0])),s.history.clear=()=>{js&&(js.length=0)},s.history.disable=()=>{js!==null&&(js.length=0,js=null)},s.history.enable=()=>{js===null&&(js=[])},s.error=(...r)=>n("error",t,r),s.warn=(...r)=>n("warn",t,r),s.debug=(...r)=>n("debug",t,r),s}const nn=JM("VIDEOJS"),ZM=nn.createLogger,abe=Object.prototype.toString,eR=function(e){return Pi(e)?Object.keys(e):[]};function tu(e,t){eR(e).forEach(n=>t(e[n],n))}function tR(e,t,n=0){return eR(e).reduce((s,r)=>t(s,e[r],r),n)}function Pi(e){return!!e&&typeof e=="object"}function Mu(e){return Pi(e)&&abe.call(e)==="[object Object]"&&e.constructor===Object}function En(...e){const t={};return e.forEach(n=>{n&&tu(n,(s,r)=>{if(!Mu(s)){t[r]=s;return}Mu(t[r])||(t[r]={}),t[r]=En(t[r],s)})}),t}function Ng(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 obe=Object.freeze({__proto__:null,each:tu,reduce:tR,isObject:Pi,isPlain:Mu,merge:En,defineLazyProperty:Ng});let TT=!1,nR=null,$i=!1,sR,rR=!1,nu=!1,su=!1,Ni=!1,wT=null,Mg=null,iR=null,hm=!1,Rg=!1,pm=!1,Lg=!1;const Jd=!!(Qu()&&("ontouchstart"in ye||ye.navigator.maxTouchPoints||ye.DocumentTouch&&ye.document instanceof ye.DocumentTouch)),Il=ye.navigator&&ye.navigator.userAgentData;Il&&($i=Il.platform==="Android",nu=!!Il.brands.find(e=>e.brand==="Microsoft Edge"),su=!!Il.brands.find(e=>e.brand==="Chromium"),Ni=!nu&&su,wT=Mg=(Il.brands.find(e=>e.brand==="Chromium")||{}).version||null,Rg=Il.platform==="Windows");if(!su){const e=ye.navigator&&ye.navigator.userAgent||"";TT=/iPod/i.test(e),nR=function(){const t=e.match(/OS (\d+)_/i);return t&&t[1]?t[1]:null}(),$i=/Android/i.test(e),sR=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}(),rR=/Firefox/i.test(e),nu=/Edg/i.test(e),su=/Chrome/i.test(e)||/CriOS/i.test(e),Ni=!nu&&su,wT=Mg=function(){const t=e.match(/(Chrome|CriOS)\/(\d+)/);return t&&t[2]?parseFloat(t[2]):null}(),iR=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}(),hm=/Safari/i.test(e)&&!Ni&&!$i&&!nu,Rg=/Windows/i.test(e),pm=/iPad/i.test(e)||hm&&Jd&&!/iPhone/i.test(e),Lg=/iPhone/i.test(e)&&!pm}const Rs=Lg||pm||TT,Dg=(hm||Rs)&&!Ni;var lbe=Object.freeze({__proto__:null,get IS_IPOD(){return TT},get IOS_VERSION(){return nR},get IS_ANDROID(){return $i},get ANDROID_VERSION(){return sR},get IS_FIREFOX(){return rR},get IS_EDGE(){return nu},get IS_CHROMIUM(){return su},get IS_CHROME(){return Ni},get CHROMIUM_VERSION(){return wT},get CHROME_VERSION(){return Mg},get IE_VERSION(){return iR},get IS_SAFARI(){return hm},get IS_WINDOWS(){return Rg},get IS_IPAD(){return pm},get IS_IPHONE(){return Lg},TOUCH_ENABLED:Jd,IS_IOS:Rs,IS_ANY_SAFARI:Dg});function S2(e){return typeof e=="string"&&!!e.trim()}function ube(e){if(e.indexOf(" ")>=0)throw new Error("class has illegal whitespace characters")}function Qu(){return gt===ye.document}function Ju(e){return Pi(e)&&e.nodeType===1}function aR(){try{return ye.parent!==ye.self}catch{return!0}}function oR(e){return function(t,n){if(!S2(t))return gt[e](null);S2(n)&&(n=gt.querySelector(n));const s=Ju(n)?n:gt;return s[e]&&s[e](t)}}function Zt(e="div",t={},n={},s){const r=gt.createElement(e);return Object.getOwnPropertyNames(t).forEach(function(i){const a=t[i];i==="textContent"?lo(r,a):(r[i]!==a||i==="tabIndex")&&(r[i]=a)}),Object.getOwnPropertyNames(n).forEach(function(i){r.setAttribute(i,n[i])}),s&&ST(r,s),r}function lo(e,t){return typeof e.textContent>"u"?e.innerText=t:e.textContent=t,e}function pb(e,t){t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)}function rd(e,t){return ube(t),e.classList.contains(t)}function Wo(e,...t){return e.classList.add(...t.reduce((n,s)=>n.concat(s.split(/\s+/)),[])),e}function Fg(e,...t){return e?(e.classList.remove(...t.reduce((n,s)=>n.concat(s.split(/\s+/)),[])),e):(nn.warn("removeClass was called with an element that doesn't exist"),null)}function lR(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 uR(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 Na(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;(typeof e[i]=="boolean"||n.indexOf(","+i+",")!==-1)&&(a=a!==null),t[i]=a}}return t}function cR(e,t){return e.getAttribute(t)}function Ru(e,t,n){e.setAttribute(t,n)}function Bg(e,t){e.removeAttribute(t)}function dR(){gt.body.focus(),gt.onselectstart=function(){return!1}}function fR(){gt.onselectstart=function(){return!0}}function Lu(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(Du(e,"height"))),n.width||(n.width=parseFloat(Du(e,"width"))),n}}function Zd(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!==gt[fm.fullscreenElement];)s+=e.offsetLeft,r+=e.offsetTop,e=e.offsetParent;return{left:s,top:r,width:t,height:n}}function Vg(e,t){const n={x:0,y:0};if(Rs){let c=e;for(;c&&c.nodeName.toLowerCase()!=="html";){const f=Du(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]}c=c.parentNode}}const s={},r=Zd(t.target),i=Zd(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,Rs&&(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 hR(e){return Pi(e)&&e.nodeType===3}function Ug(e){for(;e.firstChild;)e.removeChild(e.firstChild);return e}function pR(e){return typeof e=="function"&&(e=e()),(Array.isArray(e)?e:[e]).map(t=>{if(typeof t=="function"&&(t=t()),Ju(t)||hR(t))return t;if(typeof t=="string"&&/\S/.test(t))return gt.createTextNode(t)}).filter(t=>t)}function ST(e,t){return pR(t).forEach(n=>e.appendChild(n)),e}function mR(e,t){return ST(Ug(e),t)}function ef(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?!0:!(e.button!==0||e.buttons!==1)}const Qa=oR("querySelector"),gR=oR("querySelectorAll");function Du(e,t){if(!e||!t)return"";if(typeof ye.getComputedStyle=="function"){let n;try{n=ye.getComputedStyle(e)}catch{return""}return n?n.getPropertyValue(t)||n[t]:""}return""}var vR=Object.freeze({__proto__:null,isReal:Qu,isEl:Ju,isInFrame:aR,createEl:Zt,textContent:lo,prependTo:pb,hasClass:rd,addClass:Wo,removeClass:Fg,toggleClass:lR,setAttributes:uR,getAttributes:Na,getAttribute:cR,setAttribute:Ru,removeAttribute:Bg,blockTextSelection:dR,unblockTextSelection:fR,getBoundingClientRect:Lu,findPosition:Zd,getPointerPosition:Vg,isTextNode:hR,emptyEl:Ug,normalizeContent:pR,appendContent:ST,insertContent:mR,isSingleLeftClick:ef,$:Qa,$$:gR,computedStyle:Du});let yR=!1,mb;const cbe=function(){if(mb.options.autoSetup===!1)return;const e=Array.prototype.slice.call(gt.getElementsByTagName("video")),t=Array.prototype.slice.call(gt.getElementsByTagName("audio")),n=Array.prototype.slice.call(gt.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&&mb(a);else{gb(1);break}}else yR||gb(1)};function gb(e,t){Qu()&&(t&&(mb=t),ye.setTimeout(cbe,e))}function vb(){yR=!0,ye.removeEventListener("load",vb)}Qu()&&(gt.readyState==="complete"?vb():ye.addEventListener("load",vb));const bR=function(e){const t=gt.createElement("style");return t.className=e,t},_R=function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.textContent=t};var Os=new WeakMap;const dbe=3;let fbe=dbe;function Mi(){return fbe++}function C2(e,t){if(!Os.has(e))return;const n=Os.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&&Os.delete(e)}function CT(e,t,n,s){n.forEach(function(r){e(t,r,s)})}function Hg(e){if(e.fixed_)return e;function t(){return!0}function n(){return!1}if(!e||!e.isPropagationStopped||!e.isImmediatePropagationStopped){const s=e||ye.event;e={};for(const r in s)r!=="layerX"&&r!=="layerY"&&r!=="keyLocation"&&r!=="webkitMovementX"&&r!=="webkitMovementY"&&r!=="path"&&(r==="returnValue"&&s.preventDefault||(e[r]=s[r]));if(e.target||(e.target=e.srcElement||gt),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 r=gt.documentElement,i=gt.body;e.pageX=e.clientX+(r&&r.scrollLeft||i&&i.scrollLeft||0)-(r&&r.clientLeft||i&&i.clientLeft||0),e.pageY=e.clientY+(r&&r.scrollTop||i&&i.scrollTop||0)-(r&&r.clientTop||i&&i.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 Bh;const hbe=function(){if(typeof Bh!="boolean"){Bh=!1;try{const e=Object.defineProperty({},"passive",{get(){Bh=!0}});ye.addEventListener("test",null,e),ye.removeEventListener("test",null,e)}catch{}}return Bh},pbe=["touchstart","touchmove"];function vr(e,t,n){if(Array.isArray(t))return CT(vr,e,t,n);Os.has(e)||Os.set(e,{});const s=Os.get(e);if(s.handlers||(s.handlers={}),s.handlers[t]||(s.handlers[t]=[]),n.guid||(n.guid=Mi()),s.handlers[t].push(n),s.dispatcher||(s.disabled=!1,s.dispatcher=function(r,i){if(s.disabled)return;r=Hg(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){nn.error(c)}}}),s.handlers[t].length===1)if(e.addEventListener){let r=!1;hbe()&&pbe.indexOf(t)>-1&&(r={passive:!0}),e.addEventListener(t,s.dispatcher,r)}else e.attachEvent&&e.attachEvent("on"+t,s.dispatcher)}function bs(e,t,n){if(!Os.has(e))return;const s=Os.get(e);if(!s.handlers)return;if(Array.isArray(t))return CT(bs,e,t,n);const r=function(a,o){s.handlers[o]=[],C2(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);C2(e,t)}}function Zu(e,t,n){const s=Os.has(e)?Os.get(e):{},r=e.parentNode||e.ownerDocument;if(typeof t=="string"?t={type:t,target:e}:t.target||(t.target=e),t=Hg(t),s.dispatcher&&s.dispatcher.call(e,t,n),r&&!t.isPropagationStopped()&&t.bubbles===!0)Zu.call(null,r,t,n);else if(!r&&!t.defaultPrevented&&t.target&&t.target[t.type]){Os.has(t.target)||Os.set(t.target,{});const i=Os.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 zg(e,t,n){if(Array.isArray(t))return CT(zg,e,t,n);const s=function(){bs(e,t,s),n.apply(this,arguments)};s.guid=n.guid=n.guid||Mi(),vr(e,t,s)}function ET(e,t,n){const s=function(){bs(e,t,s),n.apply(this,arguments)};s.guid=n.guid=n.guid||Mi(),vr(e,t,s)}var mbe=Object.freeze({__proto__:null,fixEvent:Hg,on:vr,off:bs,trigger:Zu,one:zg,any:ET});const Nr=30,xn=function(e,t,n){t.guid||(t.guid=Mi());const s=t.bind(e);return s.guid=n?n+"_"+t.guid:t.guid,s},Ri=function(e,t){let n=ye.performance.now();return function(...r){const i=ye.performance.now();i-n>=t&&(e(...r),n=i)}},TR=function(e,t,n,s=ye){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 gbe=Object.freeze({__proto__:null,UPDATE_REFRESH_INTERVAL:Nr,bind_:xn,throttle:Ri,debounce:TR});let Oc;class Mr{on(t,n){const s=this.addEventListener;this.addEventListener=()=>{},vr(this,t,n),this.addEventListener=s}off(t,n){bs(this,t,n)}one(t,n){const s=this.addEventListener;this.addEventListener=()=>{},zg(this,t,n),this.addEventListener=s}any(t,n){const s=this.addEventListener;this.addEventListener=()=>{},ET(this,t,n),this.addEventListener=s}trigger(t){const n=t.type||t;typeof t=="string"&&(t={type:n}),t=Hg(t),this.allowedEvents_[n]&&this["on"+n]&&this["on"+n](t),Zu(this,t)}queueTrigger(t){Oc||(Oc=new Map);const n=t.type||t;let s=Oc.get(this);s||(s=new Map,Oc.set(this,s));const r=s.get(n);s.delete(n),ye.clearTimeout(r);const i=ye.setTimeout(()=>{s.delete(n),s.size===0&&(s=null,Oc.delete(this)),this.trigger(t)},0);s.set(n,i)}}Mr.prototype.allowedEvents_={};Mr.prototype.addEventListener=Mr.prototype.on;Mr.prototype.removeEventListener=Mr.prototype.off;Mr.prototype.dispatchEvent=Mr.prototype.trigger;const jg=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,ea=e=>e instanceof Mr||!!e.eventBusEl_&&["on","one","off","trigger"].every(t=>typeof e[t]=="function"),vbe=(e,t)=>{ea(e)?t():(e.eventedCallbacks||(e.eventedCallbacks=[]),e.eventedCallbacks.push(t))},yb=e=>typeof e=="string"&&/\S/.test(e)||Array.isArray(e)&&!!e.length,mm=(e,t,n)=>{if(!e||!e.nodeName&&!ea(e))throw new Error(`Invalid target for ${jg(t)}#${n}; must be a DOM node or evented object.`)},wR=(e,t,n)=>{if(!yb(e))throw new Error(`Invalid event type for ${jg(t)}#${n}; must be a non-empty string or array.`)},SR=(e,t,n)=>{if(typeof e!="function")throw new Error(`Invalid listener for ${jg(t)}#${n}; must be a function.`)},a0=(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,mm(r,e,n),wR(i,e,n),SR(a,e,n),a=xn(e,a),{isTargetingSelf:s,target:r,type:i,listener:a}},_o=(e,t,n,s)=>{mm(e,e,t),e.nodeName?mbe[t](e,n,s):e[t](n,s)},ybe={on(...e){const{isTargetingSelf:t,target:n,type:s,listener:r}=a0(this,e,"on");if(_o(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,_o(this,"on","dispose",i),_o(n,"on","dispose",a)}},one(...e){const{isTargetingSelf:t,target:n,type:s,listener:r}=a0(this,e,"one");if(t)_o(n,"one",s,r);else{const i=(...a)=>{this.off(n,s,i),r.apply(null,a)};i.guid=r.guid,_o(n,"one",s,i)}},any(...e){const{isTargetingSelf:t,target:n,type:s,listener:r}=a0(this,e,"any");if(t)_o(n,"any",s,r);else{const i=(...a)=>{this.off(n,s,i),r.apply(null,a)};i.guid=r.guid,_o(n,"any",s,i)}},off(e,t,n){if(!e||yb(e))bs(this.eventBusEl_,e,t);else{const s=e,r=t;mm(s,this,"off"),wR(r,this,"off"),SR(n,this,"off"),n=xn(this,n),this.off("dispose",n),s.nodeName?(bs(s,r,n),bs(s,"dispose",n)):ea(s)&&(s.off(r,n),s.off("dispose",n))}},trigger(e,t){mm(this.eventBusEl_,this,"trigger");const n=e&&typeof e!="string"?e.type:e;if(!yb(n))throw new Error(`Invalid event type for ${jg(this)}#trigger; must be a non-empty string or object with a type key that has a non-empty value.`);return Zu(this.eventBusEl_,e,t)}};function xT(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_=Zt("span",{className:"vjs-event-bus"});return Object.assign(e,ybe),e.eventedCallbacks&&e.eventedCallbacks.forEach(s=>{s()}),e.on("dispose",()=>{e.off(),[e,e.el_,e.eventBusEl_].forEach(function(s){s&&Os.has(s)&&Os.delete(s)}),ye.setTimeout(()=>{e.eventBusEl_=null},0)}),e}const bbe={state:{},setState(e){typeof e=="function"&&(e=e());let t;return tu(e,(n,s)=>{this.state[s]!==n&&(t=t||{},t[s]={from:this.state[s],to:n}),this.state[s]=n}),t&&ea(this)&&this.trigger({changes:t,type:"statechanged"}),t}};function CR(e,t){return Object.assign(e,bbe),e.state=Object.assign({},e.state,t),typeof e.handleStateChanged=="function"&&ea(e)&&e.on("statechanged",e.handleStateChanged),e}const id=function(e){return typeof e!="string"?e:e.replace(/./,t=>t.toLowerCase())},Vn=function(e){return typeof e!="string"?e:e.replace(/./,t=>t.toUpperCase())},ER=function(e,t){return Vn(e)===Vn(t)};var _be=Object.freeze({__proto__:null,toLowerCase:id,toTitleCase:Vn,titleCaseEquals:ER});class Ze{constructor(t,n,s){if(!t&&this.play?this.player_=t=this:this.player_=t,this.isDisposed_=!1,this.parentComponent_=null,this.options_=En({},this.options_),n=this.options_=En(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_${Mi()}`}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)),n.evented!==!1&&(xT(this,{eventBusKey:this.el_?"el_":null}),this.handleLanguagechange=this.handleLanguagechange.bind(this),this.on(this.player_,"languagechange",this.handleLanguagechange)),CR(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()}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_=En(this.options_,t),this.options_):this.options_}el(){return this.el_}createEl(t,n,s){return Zt(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 p=h;return typeof h>"u"&&(p=c),p})),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}addChild(t,n={},s=this.children_.length){let r,i;if(typeof t=="string"){i=Vn(t);const a=n.componentClass||i;n.name=i;const o=Ze.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&&Vn(r.name()),i&&(this.childNameIndex_[i]=r,this.childNameIndex_[id(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_:Ju(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_[Vn(t.name())]=null,this.childNameIndex_[id(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=Ze.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=Ze.getComponent(a.opts.componentClass||Vn(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 Qa(t,n||this.contentEl())}$$(t,n){return gR(t,n||this.contentEl())}hasClass(t){return rd(this.el_,t)}addClass(...t){Wo(this.el_,...t)}removeClass(...t){Fg(this.el_,...t)}toggleClass(t,n){lR(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 cR(this.el_,t)}setAttribute(t,n){Ru(this.el_,t,n)}removeAttribute(t){Bg(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"+Vn(t)],10)}currentDimension(t){let n=0;if(t!=="width"&&t!=="height")throw new Error("currentDimension only accepts width or height value");if(n=Du(this.el_,t),n=parseFloat(n),n===0||isNaN(n)){const s=`offset${Vn(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")}focus(){this.el_.focus()}blur(){this.el_.blur()}handleKeyDown(t){this.player_&&(Gt.isEventKey(t,"Tab")||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=ye.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&&ye.performance.now()-t<r&&(o.preventDefault(),this.trigger("tap"))})}enableTouchActivity(){if(!this.player()||!this.player().reportUserActivity)return;const t=xn(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=xn(this,t),this.clearTimersOnDispose_(),s=ye.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),ye.clearTimeout(t)),t}setInterval(t,n){t=xn(this,t),this.clearTimersOnDispose_();const s=ye.setInterval(t,n);return this.setIntervalIds_.add(s),s}clearInterval(t){return this.setIntervalIds_.has(t)&&(this.setIntervalIds_.delete(t),ye.clearInterval(t)),t}requestAnimationFrame(t){this.clearTimersOnDispose_();var n;return t=xn(this,t),n=ye.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=xn(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),ye.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}))}static registerComponent(t,n){if(typeof t!="string"||!t)throw new Error(`Illegal component name, "${t}"; must be a non-empty string.`);const s=Ze.getComponent("Tech"),r=s&&s.isTech(n),i=Ze===n||Ze.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=Vn(t),Ze.components_||(Ze.components_={});const a=Ze.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 Ze.components_[t]=n,Ze.components_[id(t)]=n,n}static getComponent(t){if(!(!t||!Ze.components_))return Ze.components_[t]}}Ze.registerComponent("Component",Ze);function Tbe(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 E2(e,t,n,s){return Tbe(e,s,n.length-1),n[s][t]}function o0(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:E2.bind(null,"start",0,e),end:E2.bind(null,"end",1,e)},ye.Symbol&&ye.Symbol.iterator&&(t[ye.Symbol.iterator]=()=>(e||[]).values()),t}function Ei(e,t){return Array.isArray(e)?o0(e):e===void 0||t===void 0?o0():o0([[e,t]])}const xR=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 kT=xR;function kR(e){kT=e}function IR(){kT=xR}function tl(e,t=e){return kT(e,t)}var wbe=Object.freeze({__proto__:null,createTimeRanges:Ei,createTimeRange:Ei,setFormatTime:kR,resetFormatTime:IR,formatTime:tl});function OR(e,t){let n=0,s,r;if(!t)return 0;(!e||!e.length)&&(e=Ei(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 As(e){if(e instanceof As)return e;typeof e=="number"?this.code=e:typeof e=="string"?this.message=e:Pi(e)&&(typeof e.code=="number"&&(this.code=e.code),Object.assign(this,e)),this.message||(this.message=As.defaultMessages[this.code]||"")}As.prototype.code=0;As.prototype.message="";As.prototype.status=null;As.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"];As.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."};for(let e=0;e<As.errorTypes.length;e++)As[As.errorTypes[e]]=e,As.prototype[As.errorTypes[e]]=e;function ad(e){return e!=null&&typeof e.then=="function"}function vi(e){ad(e)&&e.then(null,t=>{})}const bb=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}})})},Sbe=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=bb(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(bb))},Cbe=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 x2={textTracksToJson:Sbe,jsonToTextTracks:Cbe,trackToJson_:bb};const l0="vjs-modal-dialog";class ec extends Ze{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_=Zt("div",{className:`${l0}-content`},{role:"document"}),this.descEl_=Zt("p",{className:`${l0}-description vjs-control-text`,id:this.el().getAttribute("aria-describedby")}),lo(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"})}dispose(){this.contentEl_=null,this.descEl_=null,this.previouslyActiveEl_=null,super.dispose()}buildCSSClass(){return`${l0} 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_){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("modalclose"),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(),mR(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"),Ug(this.contentEl()),this.trigger("modalempty")}content(t){return typeof t<"u"&&(this.content_=t),this.content_}conditionalFocus_(){const t=gt.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(t.stopPropagation(),Gt.isEventKey(t,"Escape")&&this.closeable()){t.preventDefault(),this.close();return}if(!Gt.isEventKey(t,"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}gt.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 ye.HTMLAnchorElement||n instanceof ye.HTMLAreaElement)&&n.hasAttribute("href")||(n instanceof ye.HTMLInputElement||n instanceof ye.HTMLSelectElement||n instanceof ye.HTMLTextAreaElement||n instanceof ye.HTMLButtonElement)&&!n.hasAttribute("disabled")||n instanceof ye.HTMLIFrameElement||n instanceof ye.HTMLObjectElement||n instanceof ye.HTMLEmbedElement||n.hasAttribute("tabindex")&&n.getAttribute("tabindex")!==-1||n.hasAttribute("contenteditable"))}}ec.prototype.options_={pauseOnOpen:!0,temporary:!0};Ze.registerComponent("ModalDialog",ec);class Fu extends Mr{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})},ea(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}}Fu.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack",labelchange:"labelchange"};for(const e in Fu.prototype.allowedEvents_)Fu.prototype["on"+e]=null;const u0=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 Ebe extends Fu{constructor(t=[]){for(let n=t.length-1;n>=0;n--)if(t[n].enabled){u0(t,t[n]);break}super(t),this.changing_=!1}addTrack(t){t.enabled&&u0(this,t),super.addTrack(t),t.addEventListener&&(t.enabledChange_=()=>{this.changing_||(this.changing_=!0,u0(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 c0=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 xbe extends Fu{constructor(t=[]){for(let n=t.length-1;n>=0;n--)if(t[n].selected){c0(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&&c0(this,t),super.addTrack(t),t.addEventListener&&(t.selectedChange_=()=>{this.changing_||(this.changing_=!0,c0(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 AR extends Fu{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 kbe{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 gm{constructor(t){gm.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 Ibe={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},Obe={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},Abe={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},k2={disabled:"disabled",hidden:"hidden",showing:"showing"};class IT extends Mr{constructor(t={}){super();const n={id:t.id||"vjs_track_"+Mi(),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 OT=function(e){const t=["protocol","hostname","port","pathname","search","hash","host"],n=gt.createElement("a");n.href=e;const s={};for(let r=0;r<t.length;r++)s[t[r]]=n[t[r]];return s.protocol==="http:"&&(s.host=s.host.replace(/:80$/,"")),s.protocol==="https:"&&(s.host=s.host.replace(/:443$/,"")),s.protocol||(s.protocol=ye.location.protocol),s.host||(s.host=ye.location.host),s},PR=function(e){if(!e.match(/^https?:\/\//)){const t=gt.createElement("a");t.href=e,e=t.href}return e},AT=function(e){if(typeof e=="string"){const n=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/.exec(e);if(n)return n.pop().toLowerCase()}return""},Kg=function(e,t=ye.location){const n=OT(e);return(n.protocol===":"?t.protocol:n.protocol)+n.host!==t.protocol+t.host};var Pbe=Object.freeze({__proto__:null,parseUrl:OT,getAbsoluteURL:PR,getFileExtension:AT,isCrossOrigin:Kg});const I2=function(e,t){const n=new ye.WebVTT.Parser(ye,ye.vttjs,ye.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&&(ye.console&&ye.console.groupCollapsed&&ye.console.groupCollapsed(`Text Track parsing errors for ${t.src}`),s.forEach(r=>nn.error(r)),ye.console&&ye.console.groupEnd&&ye.console.groupEnd()),n.flush()},O2=function(e,t){const n={uri:e},s=Kg(e);s&&(n.cors=s);const r=t.tech_.crossOrigin()==="use-credentials";r&&(n.withCredentials=r),Wd(n,xn(this,function(i,a,o){if(i)return nn.error(i,a);t.loaded_=!0,typeof ye.WebVTT!="function"?t.tech_&&t.tech_.any(["vttjsloaded","vttjserror"],l=>{if(l.type==="vttjserror"){nn.error(`vttjs failed to load, stopping trying to process ${t.src}`);return}return I2(o,t)}):I2(o,t)}))};class Mf extends IT{constructor(t={}){if(!t.tech)throw new Error("A tech was not provided.");const n=En(t,{kind:Abe[t.kind]||"subtitles",language:t.language||t.srclang||""});let s=k2[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 gm(this.cues_),a=new gm(this.activeCues_);let o=!1;this.timeupdateHandler=xn(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){k2[u]&&s!==u&&(s=u,!this.preload_&&s!=="disabled"&&this.cues.length===0&&O2(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 p=this.cues[f];p.startTime<=u&&p.endTime>=u&&c.push(p)}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")&&O2(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(ye.vttjs&&!(t instanceof ye.vttjs.VTTCue)){n=new ye.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}}}}Mf.prototype.allowedEvents_={cuechange:"cuechange"};class $R extends IT{constructor(t={}){const n=En(t,{kind:Obe[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 NR extends IT{constructor(t={}){const n=En(t,{kind:Ibe[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 da extends Mr{constructor(t={}){super();let n;const s=new Mf(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=da.NONE,s.addEventListener("loadeddata",()=>{n=da.LOADED,this.trigger({type:"load",target:this})})}}da.prototype.allowedEvents_={load:"load"};da.NONE=0;da.LOADING=1;da.LOADED=2;da.ERROR=3;const xr={audio:{ListClass:Ebe,TrackClass:$R,capitalName:"Audio"},video:{ListClass:xbe,TrackClass:NR,capitalName:"Video"},text:{ListClass:AR,TrackClass:Mf,capitalName:"Text"}};Object.keys(xr).forEach(function(e){xr[e].getterName=`${e}Tracks`,xr[e].privateName=`${e}Tracks_`});const Bu={remoteText:{ListClass:AR,TrackClass:Mf,capitalName:"RemoteText",getterName:"remoteTextTracks",privateName:"remoteTextTracks_"},remoteTextEl:{ListClass:kbe,TrackClass:da,capitalName:"RemoteTextTrackEls",getterName:"remoteTextTrackEls",privateName:"remoteTextTrackEls_"}},ks=Object.assign({},xr,Bu);Bu.names=Object.keys(Bu);xr.names=Object.keys(xr);ks.names=[].concat(Bu.names).concat(xr.names);function $be(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 ks.text.TrackClass(r);return i.addTrack(a),a}class Xt extends Ze{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}),ks.names.forEach(s=>{const r=ks[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 ks.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(xn(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 Ei(0,0)}bufferedPercent(){return OR(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(xr.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 As(t),this.trigger("error")),this.error_}played(){return this.hasStarted_?Ei(0,0):Ei()}play(){}setScrubbing(){}scrubbing(){}setCurrentTime(){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})}initTrackListeners(){xr.names.forEach(t=>{const n=xr[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(!ye.WebVTT)if(gt.body.contains(this.el())){if(!this.options_["vtt.js"]&&Mu(sm)&&Object.keys(sm).length>0){this.trigger("vttjsloaded");return}const t=gt.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}),ye.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 $be(this,t,n,s)}createRemoteTextTrack(t){const n=En(t,{tech:this});return new Bu.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=Mi();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(){}overrideNativeVideoTracks(){}canPlayType(){return""}static canPlayType(){return""}static canPlaySource(t,n){return Xt.canPlayType(t.type)}static isTech(t){return t.prototype instanceof Xt||t instanceof Xt||t===Xt}static registerTech(t,n){if(Xt.techs_||(Xt.techs_={}),!Xt.isTech(n))throw new Error(`Tech ${t} must be a Tech`);if(!Xt.canPlayType)throw new Error("Techs must have a static canPlayType method on them");if(!Xt.canPlaySource)throw new Error("Techs must have a static canPlaySource method on them");return t=Vn(t),Xt.techs_[t]=n,Xt.techs_[id(t)]=n,t!=="Tech"&&Xt.defaultTechOrder_.push(t),n}static getTech(t){if(t){if(Xt.techs_&&Xt.techs_[t])return Xt.techs_[t];if(t=Vn(t),ye&&ye.videojs&&ye.videojs[t])return nn.warn(`The ${t} tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)`),ye.videojs[t]}}}ks.names.forEach(function(e){const t=ks[e];Xt.prototype[t.getterName]=function(){return this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName]}});Xt.prototype.featuresVolumeControl=!0;Xt.prototype.featuresMuteControl=!0;Xt.prototype.featuresFullscreenResize=!1;Xt.prototype.featuresPlaybackRate=!1;Xt.prototype.featuresProgressEvents=!1;Xt.prototype.featuresSourceset=!1;Xt.prototype.featuresTimeupdateEvents=!1;Xt.prototype.featuresNativeTextTracks=!1;Xt.prototype.featuresVideoFrameCallback=!1;Xt.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:nn.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)}};Ze.registerComponent("Tech",Xt);Xt.registerTech("Tech",Xt);Xt.defaultTechOrder_=[];const qo={},_b={},vm={};function Nbe(e,t){qo[e]=qo[e]||[],qo[e].push(t)}function Mbe(e,t,n){e.setTimeout(()=>So(t,qo[t.type],n,e),1)}function Rbe(e,t){e.forEach(n=>n.setTech&&n.setTech(t))}function Lbe(e,t,n){return e.reduceRight(PT(n),t[n]())}function Dbe(e,t,n,s){return t[n](e.reduce(PT(n),s))}function A2(e,t,n,s=null){const r="call"+Vn(n),i=e.reduce(PT(r),s),a=i===vm,o=a?null:t[n](i);return Vbe(e,n,o,a),o}const Fbe={buffered:1,currentTime:1,duration:1,muted:1,played:1,paused:1,seekable:1,volume:1,ended:1},Bbe={setCurrentTime:1,setMuted:1,setVolume:1},P2={play:1,pause:1};function PT(e){return(t,n)=>t===vm?vm:n[e]?n[e](t):t}function Vbe(e,t,n,s){for(let r=e.length-1;r>=0;r--){const i=e[r];i[t]&&i[t](s,n)}}function Ube(e){_b[e.id()]=null}function Hbe(e,t){const n=_b[e.id()];let s=null;if(n==null)return s=t(e),_b[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 So(e={},t=[],n,s,r=[],i=!1){const[a,...o]=t;if(typeof a=="string")So(e,qo[a],n,s,r,i);else if(a){const l=Hbe(s,a);if(!l.setSource)return r.push(l),So(e,o,n,s,r,i);l.setSource(Object.assign({},e),function(u,c){if(u)return So(e,o,n,s,r,i);r.push(l),So(c,e.type===c.type?o:qo[c.type],n,s,r,i)})}else o.length?So(e,o,n,s,r,i):i?n(e,r):So(e,qo["*"],n,s,r,!0)}const zbe={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"},ym=function(e=""){const t=AT(e);return zbe[t.toLowerCase()]||""},jbe=(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 ym(t)},MR=function(e){if(Array.isArray(e)){let t=[];e.forEach(function(n){n=MR(n),Array.isArray(n)?t=t.concat(n):Pi(n)&&t.push(n)}),e=t}else typeof e=="string"&&e.trim()?e=[$2({src:e})]:Pi(e)&&typeof e.src=="string"&&e.src&&e.src.trim()?e=[$2(e)]:e=[];return e};function $2(e){if(!e.type){const t=ym(e.src);t&&(e.type=t)}return e}class Kbe extends Ze{constructor(t,n,s){const r=En({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=Vn(a[i]);let l=Xt.getTech(o);if(o||(l=Ze.getComponent(o)),l&&l.isSupported()){t.loadTech_(o);break}}else t.src(n.playerOptions.sources)}}Ze.registerComponent("MediaLoader",Kbe);class Wg extends Ze{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"&&nn.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=Zt(t,n,s);return r.appendChild(Zt("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),this.createControlTextEl(r),r}dispose(){this.controlTextEl_=null,super.dispose()}createControlTextEl(t){return this.controlTextEl_=Zt("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,lo(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){Gt.isEventKey(t,"Space")||Gt.isEventKey(t,"Enter")?(t.preventDefault(),t.stopPropagation(),this.trigger("click")):super.handleKeyDown(t)}}Ze.registerComponent("ClickableComponent",Wg);class Tb extends Wg{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 Zt("picture",{className:"vjs-poster",tabIndex:-1},{},Zt("img",{loading:"lazy",crossOrigin:this.crossOrigin()},{alt:""}))}crossOrigin(t){if(typeof t>"u")return this.el_?this.el_.querySelector("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.el_.querySelector("img").crossOrigin=t}update(t){const n=this.player().poster();this.setSrc(n),n?this.show():this.hide()}setSrc(t){this.el_.querySelector("img").src=t}handleClick(t){this.player_.controls()&&(this.player_.tech(!0)&&this.player_.tech(!0).focus(),this.player_.paused()?vi(this.player_.play()):this.player_.pause())}}Tb.prototype.crossorigin=Tb.prototype.crossOrigin;Ze.registerComponent("PosterImage",Tb);const _r="#222",N2="#ccc",Wbe={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 d0(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 f0(e,t,n){try{e.style[t]=n}catch{return}}class qbe extends Ze{constructor(t,n,s){super(t,n,s);const r=i=>this.updateDisplay(i);t.on("loadstart",i=>this.toggleDisplay(i)),t.on("texttrackchange",r),t.on("loadedmetadata",i=>this.preselectTrack(i)),t.ready(xn(this,function(){if(t.tech_&&t.tech_.featuresNativeTextTracks){this.hide();return}t.on("fullscreenchange",r),t.on("playerresize",r);const i=ye.screen.orientation||ye,a=ye.screen.orientation?"change":"orientationchange";i.addEventListener(a,r),t.on("dispose",()=>i.removeEventListener(a,r));const o=this.options_.playerOptions.tracks||[];for(let l=0;l<o.length;l++)this.player_.addRemoteTextTrack(o[l],!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 ye.WebVTT=="function"&&ye.WebVTT.processCues(ye,[],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))}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&&f0(a.firstChild,"color",d0(n.color||"#fff",n.textOpacity)),n.backgroundColor&&(a.firstChild.style.backgroundColor=n.backgroundColor),n.backgroundOpacity&&f0(a.firstChild,"backgroundColor",d0(n.backgroundColor||"#000",n.backgroundOpacity)),n.windowColor&&(n.windowOpacity?f0(a,"backgroundColor",d0(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 ${N2}, 0 1px ${N2}, -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=ye.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=Wbe[n.fontFamily])}}updateForTrack(t){if(Array.isArray(t)||(t=[t]),typeof ye.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])}ye.WebVTT.processCues(ye,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;Wo(a,"vjs-text-track-cue","vjs-text-track-cue-"+(r.language?r.language:s)),r.language&&Ru(a,"lang",r.language)}this.player_.textTrackSettings&&this.updateDisplayState(r)}}}Ze.registerComponent("TextTrackDisplay",qbe);class Gbe extends Ze{createEl(){const t=this.player_.isAudio(),n=this.localize(t?"Audio Player":"Video Player"),s=Zt("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}}Ze.registerComponent("LoadingSpinner",Gbe);class Qr extends Wg{createEl(t,n={},s={}){t="button",n=Object.assign({className:this.buildCSSClass()},n),s=Object.assign({type:"button"},s);const r=Zt(t,n,s);return r.appendChild(Zt("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),this.createControlTextEl(r),r}addChild(t,n={}){const s=this.constructor.name;return nn.warn(`Adding an actionable (user controllable) child to a Button (${s}) is not supported; use a ClickableComponent instead.`),Ze.prototype.addChild.call(this,t,n)}enable(){super.enable(),this.el_.removeAttribute("disabled")}disable(){super.disable(),this.el_.setAttribute("disabled","disabled")}handleKeyDown(t){if(Gt.isEventKey(t,"Space")||Gt.isEventKey(t,"Enter")){t.stopPropagation();return}super.handleKeyDown(t)}}Ze.registerComponent("Button",Qr);class RR extends Qr{constructor(t,n){super(t,n),this.mouseused_=!1,this.on("mousedown",s=>this.handleMouseDown(s))}buildCSSClass(){return"vjs-big-play-button"}handleClick(t){const n=this.player_.play();if(this.mouseused_&&t.clientX&&t.clientY){vi(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();ad(n)?n.then(i,()=>{}):this.setTimeout(i,1)}handleKeyDown(t){this.mouseused_=!1,super.handleKeyDown(t)}handleMouseDown(t){this.mouseused_=!0}}RR.prototype.controlText_="Play Video";Ze.registerComponent("BigPlayButton",RR);class Ybe extends Qr{constructor(t,n){super(t,n),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){Gt.isEventKey(t,"Esc")?(t.preventDefault(),t.stopPropagation(),this.trigger("click")):super.handleKeyDown(t)}}Ze.registerComponent("CloseButton",Ybe);class LR extends Qr{constructor(t,n={}){super(t,n),n.replay=n.replay===void 0||n.replay,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()?vi(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.controlText("Pause")}handlePause(t){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.controlText("Play")}handleEnded(t){this.removeClass("vjs-playing"),this.addClass("vjs-ended"),this.controlText("Replay"),this.one(this.player_,"seeked",n=>this.handleSeeked(n))}}LR.prototype.controlText_="Play";Ze.registerComponent("PlayToggle",LR);class tc extends Ze{constructor(t,n){super(t,n),this.on(t,["timeupdate","ended"],s=>this.updateContent(s)),this.updateTextNode_()}createEl(){const t=this.buildCSSClass(),n=super.createEl("div",{className:`${t} vjs-time-control vjs-control`}),s=Zt("span",{className:"vjs-control-text",textContent:`${this.localize(this.labelText_)} `},{role:"presentation"});return n.appendChild(s),this.contentEl_=Zt("span",{className:`${t}-display`},{"aria-live":"off",role:"presentation"}),n.appendChild(this.contentEl_),n}dispose(){this.contentEl_=null,this.textNode_=null,super.dispose()}updateTextNode_(t=0){t=tl(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,nn.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_=gt.createTextNode(this.formattedTime_),this.textNode_&&(n?this.contentEl_.replaceChild(this.textNode_,n):this.contentEl_.appendChild(this.textNode_))}))}updateContent(t){}}tc.prototype.labelText_="Time";tc.prototype.controlText_="Time";Ze.registerComponent("TimeDisplay",tc);class $T extends tc{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)}}$T.prototype.labelText_="Current Time";$T.prototype.controlText_="Current Time";Ze.registerComponent("CurrentTimeDisplay",$T);class NT extends tc{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)}}NT.prototype.labelText_="Duration";NT.prototype.controlText_="Duration";Ze.registerComponent("DurationDisplay",NT);class Xbe extends Ze{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}}Ze.registerComponent("TimeDivider",Xbe);class MT extends tc{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(Zt("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)}}MT.prototype.labelText_="Remaining Time";MT.prototype.controlText_="Remaining Time";Ze.registerComponent("RemainingTimeDisplay",MT);class Qbe extends Ze{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_=Zt("div",{className:"vjs-live-display"},{"aria-live":"off"}),this.contentEl_.appendChild(Zt("span",{className:"vjs-control-text",textContent:`${this.localize("Stream Type")} `})),this.contentEl_.appendChild(gt.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()}}Ze.registerComponent("LiveDisplay",Qbe);class DR extends Qr{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.textEl_=Zt("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()}}DR.prototype.controlText_="Seek to live, currently playing live";Ze.registerComponent("SeekToLive",DR);function Rf(e,t,n){return e=Number(e),Math.min(n,Math.max(t,isNaN(e)?t:e))}var Jbe=Object.freeze({__proto__:null,clamp:Rf});class RT extends Ze{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"&&!Ni&&t.preventDefault(),dR(),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(){const t=this.bar.el_.ownerDocument;fR(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),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.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(Rf(this.getPercent(),0,1).toFixed(4))}calculateDistance(t){const n=Vg(this.el_,t);return this.vertical()?n.y:n.x}handleKeyDown(t){Gt.isEventKey(t,"Left")||Gt.isEventKey(t,"Down")?(t.preventDefault(),t.stopPropagation(),this.stepBack()):Gt.isEventKey(t,"Right")||Gt.isEventKey(t,"Up")?(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")}}Ze.registerComponent("Slider",RT);const h0=(e,t)=>Rf(e/t*100,0,100).toFixed(2)+"%";class Zbe extends Ze{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=Zt("span",{className:"vjs-control-text"}),s=Zt("span",{textContent:this.localize("Loaded")}),r=gt.createTextNode(": ");return this.percentageEl_=Zt("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=h0(i,r);this.percent_!==o&&(this.el_.style.width=o,lo(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(Zt()),a[l]=f),!(f.dataset.start===u&&f.dataset.end===c)&&(f.dataset.start=u,f.dataset.end=c,f.style.left=h0(u,i),f.style.width=h0(c-u,i))}for(let l=a.length;l>s.length;l--)this.el_.removeChild(a[l-1]);a.length=s.length})}}Ze.registerComponent("LoadProgressBar",Zbe);class e_e extends Ze{constructor(t,n){super(t,n),this.update=Ri(xn(this,this.update),Nr)}createEl(){return super.createEl("div",{className:"vjs-time-tooltip"},{"aria-hidden":"true"})}update(t,n,s){const r=Zd(this.el_),i=Lu(this.player_.el()),a=t.width*n;if(!i||!r)return;const o=t.left-i.left+a,l=t.width-a+(i.right-t.right);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){lo(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?"":"-")+tl(l,o)}else i=tl(s,a);this.update(t,n,i),r&&r()})}}Ze.registerComponent("TimeTooltip",e_e);class LT extends Ze{constructor(t,n){super(t,n),this.update=Ri(xn(this,this.update),Nr)}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)}}LT.prototype.options_={children:[]};!Rs&&!$i&<.prototype.options_.children.push("timeTooltip");Ze.registerComponent("PlayProgressBar",LT);class FR extends Ze{constructor(t,n){super(t,n),this.update=Ri(xn(this,this.update),Nr)}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`})}}FR.prototype.options_={children:["timeTooltip"]};Ze.registerComponent("MouseTimeDisplay",FR);const Vh=5,M2=12;class DT extends RT{constructor(t,n){super(t,n),this.setEventHandlers_()}setEventHandlers_(){this.update_=xn(this,this.update),this.update=Ri(this.update_,Nr),this.on(this.player_,["ended","durationchange","timeupdate"],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 gt&&"visibilityState"in gt&&this.on(gt,"visibilitychange",this.toggleVisibility_)}toggleVisibility_(t){gt.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,Nr))}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(gt.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}",[tl(s,i),tl(i,i)],"{1} of {2}")),this.currentTime_=s,this.duration_=i),this.bar&&this.bar.update(Lu(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){ef(t)&&(t.stopPropagation(),this.videoWasPlaying=!this.player_.paused(),this.player_.pause(),super.handleMouseDown(t))}handleMouseMove(t,n=!1){if(!ef(t))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)}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?vi(this.player_.play()):this.update_()}stepForward(){this.userSeek_(this.player_.currentTime()+Vh)}stepBack(){this.userSeek_(this.player_.currentTime()-Vh)}handleAction(t){this.player_.paused()?this.player_.play():this.player_.pause()}handleKeyDown(t){const n=this.player_.liveTracker;if(Gt.isEventKey(t,"Space")||Gt.isEventKey(t,"Enter"))t.preventDefault(),t.stopPropagation(),this.handleAction(t);else if(Gt.isEventKey(t,"Home"))t.preventDefault(),t.stopPropagation(),this.userSeek_(0);else if(Gt.isEventKey(t,"End"))t.preventDefault(),t.stopPropagation(),n&&n.isLive()?this.userSeek_(n.liveCurrentTime()):this.userSeek_(this.player_.duration());else if(/^[0-9]$/.test(Gt(t))){t.preventDefault(),t.stopPropagation();const s=(Gt.codes[Gt(t)]-Gt.codes[0])*10/100;n&&n.isLive()?this.userSeek_(n.seekableStart()+n.liveWindow()*s):this.userSeek_(this.player_.duration()*s)}else Gt.isEventKey(t,"PgDn")?(t.preventDefault(),t.stopPropagation(),this.userSeek_(this.player_.currentTime()-Vh*M2)):Gt.isEventKey(t,"PgUp")?(t.preventDefault(),t.stopPropagation(),this.userSeek_(this.player_.currentTime()+Vh*M2)):super.handleKeyDown(t)}dispose(){this.disableInterval_(),this.off(this.player_,["ended","durationchange","timeupdate"],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 gt&&"visibilityState"in gt&&this.off(gt,"visibilitychange",this.toggleVisibility_),super.dispose()}}DT.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar"};!Rs&&!$i&&DT.prototype.options_.children.splice(1,0,"mouseTimeDisplay");Ze.registerComponent("SeekBar",DT);class BR extends Ze{constructor(t,n){super(t,n),this.handleMouseMove=Ri(xn(this,this.handleMouseMove),Nr),this.throttledHandleMouseSeek=Ri(xn(this,this.handleMouseSeek),Nr),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=Zd(i);let o=Vg(i,t).x;o=Rf(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&&vi(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()}}BR.prototype.options_={children:["seekBar"]};Ze.registerComponent("ProgressControl",BR);class VR extends Qr{constructor(t,n){super(t,n),this.on(t,["enterpictureinpicture","leavepictureinpicture"],s=>this.handlePictureInPictureChange(s)),this.on(t,["disablepictureinpicturechanged","loadedmetadata"],s=>this.handlePictureInPictureEnabledChange(s)),this.on(t,["loadedmetadata","audioonlymodechange","audiopostermodechange"],()=>{t.currentType().substring(0,5)==="audio"||t.audioPosterMode()||t.audioOnlyMode()?(t.isInPictureInPicture()&&t.exitPictureInPicture(),this.hide()):this.show()}),this.disable()}buildCSSClass(){return`vjs-picture-in-picture-control ${super.buildCSSClass()}`}handlePictureInPictureEnabledChange(){gt.pictureInPictureEnabled&&this.player_.disablePictureInPicture()===!1?this.enable():this.disable()}handlePictureInPictureChange(t){this.player_.isInPictureInPicture()?this.controlText("Exit Picture-in-Picture"):this.controlText("Picture-in-Picture"),this.handlePictureInPictureEnabledChange()}handleClick(t){this.player_.isInPictureInPicture()?this.player_.exitPictureInPicture():this.player_.requestPictureInPicture()}}VR.prototype.controlText_="Picture-in-Picture";Ze.registerComponent("PictureInPictureToggle",VR);class UR extends Qr{constructor(t,n){super(t,n),this.on(t,"fullscreenchange",s=>this.handleFullscreenChange(s)),gt[t.fsApi_.fullscreenEnabled]===!1&&this.disable()}buildCSSClass(){return`vjs-fullscreen-control ${super.buildCSSClass()}`}handleFullscreenChange(t){this.player_.isFullscreen()?this.controlText("Exit Fullscreen"):this.controlText("Fullscreen")}handleClick(t){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()}}UR.prototype.controlText_="Fullscreen";Ze.registerComponent("FullscreenToggle",UR);const t_e=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 n_e extends Ze{createEl(){const t=super.createEl("div",{className:"vjs-volume-level"});return t.appendChild(super.createEl("span",{className:"vjs-control-text"})),t}}Ze.registerComponent("VolumeLevel",n_e);class s_e extends Ze{constructor(t,n){super(t,n),this.update=Ri(xn(this,this.update),Nr)}createEl(){return super.createEl("div",{className:"vjs-volume-tooltip"},{"aria-hidden":"true"})}update(t,n,s,r){if(!s){const i=Lu(this.el_),a=Lu(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){lo(this.el_,t)}updateVolume(t,n,s,r,i){this.requestNamedAnimationFrame("VolumeLevelTooltip#updateVolume",()=>{this.update(t,n,s,r.toFixed(0)),i&&i()})}}Ze.registerComponent("VolumeLevelTooltip",s_e);class HR extends Ze{constructor(t,n){super(t,n),this.update=Ri(xn(this,this.update),Nr)}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`})}}HR.prototype.options_={children:["volumeLevelTooltip"]};Ze.registerComponent("MouseVolumeLevelDisplay",HR);class qg extends RT{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){ef(t)&&super.handleMouseDown(t)}handleMouseMove(t){const n=this.getChild("mouseVolumeLevelDisplay");if(n){const s=this.el(),r=Lu(s),i=this.vertical();let a=Vg(s,t);a=i?a.y:a.x,a=Rf(a,0,1),n.update(r,a,i)}ef(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)})}}qg.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"};!Rs&&!$i&&qg.prototype.options_.children.splice(0,0,"mouseVolumeLevelDisplay");qg.prototype.playerEvent="volumechange";Ze.registerComponent("VolumeBar",qg);class zR extends Ze{constructor(t,n={}){n.vertical=n.vertical||!1,(typeof n.volumeBar>"u"||Mu(n.volumeBar))&&(n.volumeBar=n.volumeBar||{},n.volumeBar.vertical=n.vertical),super(t,n),t_e(this,t),this.throttledHandleMouseMove=Ri(xn(this,this.handleMouseMove),Nr),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)}}zR.prototype.options_={children:["volumeBar"]};Ze.registerComponent("VolumeControl",zR);const r_e=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 jR extends Qr{constructor(t,n){super(t,n),r_e(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;Rs&&this.player_.tech_&&this.player_.tech_.el_&&this.player_.muted(this.player_.tech_.el_.muted),t===0||this.player_.muted()?n=0:t<.33?n=1:t<.67&&(n=2),Fg(this.el_,[0,1,2,3].reduce((s,r)=>s+`${r?" ":""}vjs-vol-${r}`,"")),Wo(this.el_,`vjs-vol-${n}`)}updateControlText_(){const n=this.player_.muted()||this.player_.volume()===0?"Unmute":"Mute";this.controlText()!==n&&this.controlText(n)}}jR.prototype.controlText_="Mute";Ze.registerComponent("MuteToggle",jR);class KR extends Ze{constructor(t,n={}){typeof n.inline<"u"?n.inline=n.inline:n.inline=!0,(typeof n.volumeControl>"u"||Mu(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){Gt.isEventKey(t,"Esc")&&this.muteToggle.focus()}handleMouseOver(t){this.addClass("vjs-hover"),vr(gt,"keyup",this.handleKeyPressHandler_)}handleMouseOut(t){this.removeClass("vjs-hover"),bs(gt,"keyup",this.handleKeyPressHandler_)}handleKeyPress(t){Gt.isEventKey(t,"Esc")&&this.handleMouseOut()}}KR.prototype.options_={children:["muteToggle","volumeControl"]};Ze.registerComponent("VolumePanel",KR);class WR extends Ze{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 Ze&&(this.on(t,"blur",this.boundHandleBlur_),this.on(t,["tap","click"],this.boundHandleTapClick_))}removeEventListenerForItem(t){t instanceof Ze&&(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_=Zt(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_),vr(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||gt.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){Gt.isEventKey(t,"Left")||Gt.isEventKey(t,"Down")?(t.preventDefault(),t.stopPropagation(),this.stepForward()):(Gt.isEventKey(t,"Right")||Gt.isEventKey(t,"Up"))&&(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())}}Ze.registerComponent("Menu",WR);class FT extends Ze{constructor(t,n={}){super(t,n),this.menuButton_=new Qr(t,n),this.menuButton_.controlText(this.controlText_),this.menuButton_.el_.setAttribute("aria-haspopup","true");const s=Qr.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(),vr(gt,"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 WR(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title){const n=Zt("li",{className:"vjs-menu-title",textContent:Vn(this.options_.title),tabIndex:-1}),s=new Ze(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()},{})}buildWrapperCSSClass(){let t="vjs-menu-button";this.options_.inline===!0?t+="-inline":t+="-popup";const n=Qr.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"),bs(gt,"keyup",this.handleMenuKeyUp_)}focus(){this.menuButton_.focus()}blur(){this.menuButton_.blur()}handleKeyDown(t){Gt.isEventKey(t,"Esc")||Gt.isEventKey(t,"Tab")?(this.buttonPressed_&&this.unpressButton(),Gt.isEventKey(t,"Tab")||(t.preventDefault(),this.menuButton_.focus())):(Gt.isEventKey(t,"Up")||Gt.isEventKey(t,"Down"))&&(this.buttonPressed_||(t.preventDefault(),this.pressButton()))}handleMenuKeyUp(t){(Gt.isEventKey(t,"Esc")||Gt.isEventKey(t,"Tab"))&&this.removeClass("vjs-hover")}handleSubmenuKeyPress(t){this.handleSubmenuKeyDown(t)}handleSubmenuKeyDown(t){(Gt.isEventKey(t,"Esc")||Gt.isEventKey(t,"Tab"))&&(this.buttonPressed_&&this.unpressButton(),Gt.isEventKey(t,"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"),Rs&&aR())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()}}Ze.registerComponent("MenuButton",FT);class BT extends FT{constructor(t,n){const s=n.tracks;if(super(t,n),this.items.length<=1&&this.hide(),!s)return;const r=xn(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)})}}Ze.registerComponent("TrackButton",BT);const i_e=["Tab","Esc","Up","Down","Right","Left"];class Lf extends Wg{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);return r.replaceChild(Zt("span",{className:"vjs-menu-item-text",textContent:this.localize(this.options_.label)}),r.querySelector(".vjs-icon-placeholder")),r}handleKeyDown(t){i_e.some(n=>Gt.isEventKey(t,n))||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))}}Ze.registerComponent("MenuItem",Lf);class Df extends Lf{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 ye.Event!="object")try{o=new ye.Event("change")}catch{}o||(o=gt.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()}}Ze.registerComponent("TextTrackMenuItem",Df);class qR extends Df{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})}}Ze.registerComponent("OffTextTrackMenuItem",qR);class nc extends BT{constructor(t,n={}){n.tracks=t.textTracks(),super(t,n)}createItems(t=[],n=Df){let s;this.label_&&(s=`${this.label_} off`),t.push(new qR(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}}Ze.registerComponent("TextTrackButton",nc);class GR extends Lf{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)}}Ze.registerComponent("ChaptersTrackMenuItem",GR);class VT extends nc{constructor(t,n,s){super(t,n,s),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(Vn(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 GR(this.player_,{track:this.track_,cue:i});t.push(a)}return t}}VT.prototype.kind_="chapters";VT.prototype.controlText_="Chapters";Ze.registerComponent("ChaptersButton",VT);class UT extends nc{constructor(t,n,s){super(t,n,s);const r=t.textTracks(),i=xn(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()}`}}UT.prototype.kind_="descriptions";UT.prototype.controlText_="Descriptions";Ze.registerComponent("DescriptionsButton",UT);class HT extends nc{constructor(t,n,s){super(t,n,s)}buildCSSClass(){return`vjs-subtitles-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-subtitles-button ${super.buildWrapperCSSClass()}`}}HT.prototype.kind_="subtitles";HT.prototype.controlText_="Subtitles";Ze.registerComponent("SubtitlesButton",HT);class zT extends Df{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()}}Ze.registerComponent("CaptionSettingsMenuItem",zT);class jT extends nc{constructor(t,n,s){super(t,n,s)}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 zT(this.player_,{kind:this.kind_})),this.hideThreshold_+=1),super.createItems(t)}}jT.prototype.kind_="captions";jT.prototype.controlText_="Captions";Ze.registerComponent("CaptionsButton",jT);class YR extends Df{createEl(t,n,s){const r=super.createEl(t,n,s),i=r.querySelector(".vjs-menu-item-text");return this.options_.track.kind==="captions"&&(i.appendChild(Zt("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),i.appendChild(Zt("span",{className:"vjs-control-text",textContent:` ${this.localize("Captions")}`}))),r}}Ze.registerComponent("SubsCapsMenuItem",YR);class KT extends nc{constructor(t,n={}){super(t,n),this.label_="subtitles",["en","en-us","en-ca","fr-ca"].indexOf(this.player_.language_)>-1&&(this.label_="captions"),this.menuButton_.controlText(Vn(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 zT(this.player_,{kind:this.label_})),this.hideThreshold_+=1),t=super.createItems(t,YR),t}}KT.prototype.kinds_=["captions","subtitles"];KT.prototype.controlText_="Subtitles";Ze.registerComponent("SubsCapsButton",KT);class XR extends Lf{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 this.options_.track.kind==="main-desc"&&(i.appendChild(Zt("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),i.appendChild(Zt("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)}}Ze.registerComponent("AudioTrackMenuItem",XR);class QR extends BT{constructor(t,n={}){n.tracks=t.audioTracks(),super(t,n)}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 XR(this.player_,{track:r,selectable:!0,multiSelectable:!1}))}return t}}QR.prototype.controlText_="Audio Track";Ze.registerComponent("AudioTrackButton",QR);class WT extends Lf{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)}}WT.prototype.contentElType="button";Ze.registerComponent("PlaybackRateMenuItem",WT);class JR extends FT{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_=Zt("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 WT(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")}}JR.prototype.controlText_="Playback Rate";Ze.registerComponent("PlaybackRateMenuButton",JR);class ZR extends Ze{buildCSSClass(){return`vjs-spacer ${super.buildCSSClass()}`}createEl(t="div",n={},s={}){return n.className||(n.className=this.buildCSSClass()),super.createEl(t,n,s)}}Ze.registerComponent("Spacer",ZR);class a_e extends ZR{buildCSSClass(){return`vjs-custom-control-spacer ${super.buildCSSClass()}`}createEl(){return super.createEl("div",{className:this.buildCSSClass(),textContent:" "})}}Ze.registerComponent("CustomControlSpacer",a_e);class bm extends Ze{createEl(){return super.createEl("div",{className:"vjs-control-bar",dir:"ltr"})}}bm.prototype.options_={children:["playToggle","volumePanel","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","seekToLive","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subsCapsButton","audioTrackButton","fullscreenToggle"]};"exitPictureInPicture"in gt&&bm.prototype.options_.children.splice(bm.prototype.options_.children.length-1,0,"pictureInPictureToggle");Ze.registerComponent("ControlBar",bm);class eL extends ec{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):""}}eL.prototype.options_=Object.assign({},ec.prototype.options_,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0});Ze.registerComponent("ErrorDisplay",eL);const p0="vjs-text-track-settings",R2=["#000","Black"],L2=["#00F","Blue"],D2=["#0FF","Cyan"],F2=["#0F0","Green"],B2=["#F0F","Magenta"],V2=["#F00","Red"],U2=["#FFF","White"],H2=["#FF0","Yellow"],m0=["1","Opaque"],g0=["0.5","Semi-Transparent"],z2=["0","Transparent"],Oo={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[R2,U2,V2,F2,L2,H2,B2,D2]},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Transparency",options:[m0,g0,z2]},color:{selector:".vjs-fg-color > select",id:"captions-foreground-color-%s",label:"Color",options:[U2,R2,V2,F2,L2,H2,B2,D2]},edgeStyle:{selector:".vjs-edge-style > select",id:"%s",label:"Text Edge Style",options:[["none","None"],["raised","Raised"],["depressed","Depressed"],["uniform","Uniform"],["dropshadow","Dropshadow"]]},fontFamily:{selector:".vjs-font-family > select",id:"captions-font-family-%s",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:"captions-font-size-%s",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:"Transparency",options:[m0,g0]},windowColor:{selector:".vjs-window-color > select",id:"captions-window-color-%s",label:"Color"},windowOpacity:{selector:".vjs-window-opacity > select",id:"captions-window-opacity-%s",label:"Transparency",options:[z2,g0,m0]}};Oo.windowColor.options=Oo.backgroundColor.options;function tL(e,t){if(t&&(e=t(e)),e&&e!=="none")return e}function o_e(e,t){const n=e.options[e.options.selectedIndex].value;return tL(n,t)}function l_e(e,t,n){if(t){for(let s=0;s<e.options.length;s++)if(tL(e.options[s].value,n)===t){e.selectedIndex=s;break}}}class u_e extends ec{constructor(t,n){n.temporary=!1,super(t,n),this.updateDisplay=this.updateDisplay.bind(this),this.fill(),this.hasBeenOpened_=this.hasBeenFilled_=!0,this.endDialog=Zt("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.on(this.$(".vjs-done-button"),"click",()=>{this.saveSettings(),this.close()}),this.on(this.$(".vjs-default-button"),"click",()=>{this.setDefaults(),this.updateDisplay()}),tu(Oo,s=>{this.on(this.$(s.selector),"change",this.updateDisplay)}),this.options_.persistTextTrackSettings&&this.restoreSettings()}dispose(){this.endDialog=null,super.dispose()}createElSelect_(t,n="",s="label"){const r=Oo[t],i=r.id.replace("%s",this.id_),a=[n,i].join(" ").trim();return[`<${s} id="${i}" class="${s==="label"?"vjs-label":""}">`,this.localize(r.label),`</${s}>`,`<select aria-labelledby="${a}">`].concat(r.options.map(o=>{const l=i+"-"+o[1].replace(/\W+/g,"");return[`<option id="${l}" value="${o[0]}" `,`aria-labelledby="${a} ${l}">`,this.localize(o[1]),"</option>"].join("")})).concat("</select>").join("")}createElFgColor_(){const t=`captions-text-legend-${this.id_}`;return['<fieldset class="vjs-fg-color vjs-track-setting">',`<legend id="${t}">`,this.localize("Text"),"</legend>",this.createElSelect_("color",t),'<span class="vjs-text-opacity vjs-opacity">',this.createElSelect_("textOpacity",t),"</span>","</fieldset>"].join("")}createElBgColor_(){const t=`captions-background-${this.id_}`;return['<fieldset class="vjs-bg-color vjs-track-setting">',`<legend id="${t}">`,this.localize("Background"),"</legend>",this.createElSelect_("backgroundColor",t),'<span class="vjs-bg-opacity vjs-opacity">',this.createElSelect_("backgroundOpacity",t),"</span>","</fieldset>"].join("")}createElWinColor_(){const t=`captions-window-${this.id_}`;return['<fieldset class="vjs-window-color vjs-track-setting">',`<legend id="${t}">`,this.localize("Window"),"</legend>",this.createElSelect_("windowColor",t),'<span class="vjs-window-opacity vjs-opacity">',this.createElSelect_("windowOpacity",t),"</span>","</fieldset>"].join("")}createElColors_(){return Zt("div",{className:"vjs-track-settings-colors",innerHTML:[this.createElFgColor_(),this.createElBgColor_(),this.createElWinColor_()].join("")})}createElFont_(){return Zt("div",{className:"vjs-track-settings-font",innerHTML:['<fieldset class="vjs-font-percent vjs-track-setting">',this.createElSelect_("fontPercent","","legend"),"</fieldset>",'<fieldset class="vjs-edge-style vjs-track-setting">',this.createElSelect_("edgeStyle","","legend"),"</fieldset>",'<fieldset class="vjs-font-family vjs-track-setting">',this.createElSelect_("fontFamily","","legend"),"</fieldset>"].join("")})}createElControls_(){const t=this.localize("restore all settings to the default values");return Zt("div",{className:"vjs-track-settings-controls",innerHTML:[`<button type="button" class="vjs-default-button" title="${t}">`,this.localize("Reset"),`<span class="vjs-control-text"> ${t}</span>`,"</button>",`<button type="button" class="vjs-done-button">${this.localize("Done")}</button>`].join("")})}content(){return[this.createElColors_(),this.createElFont_(),this.createElControls_()]}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 tR(Oo,(t,n,s)=>{const r=o_e(this.$(n.selector),n.parser);return r!==void 0&&(t[s]=r),t},{})}setValues(t){tu(Oo,(n,s)=>{l_e(this.$(n.selector),t[s],n.parser)})}setDefaults(){tu(Oo,t=>{const n=t.hasOwnProperty("default")?t.default:0;this.$(t.selector).selectedIndex=n})}restoreSettings(){let t;try{t=JSON.parse(ye.localStorage.getItem(p0))}catch(n){nn.warn(n)}t&&this.setValues(t)}saveSettings(){if(!this.options_.persistTextTrackSettings)return;const t=this.getValues();try{Object.keys(t).length?ye.localStorage.setItem(p0,JSON.stringify(t)):ye.localStorage.removeItem(p0)}catch(n){nn.warn(n)}}updateDisplay(){const t=this.player_.getChild("textTrackDisplay");t&&t.updateDisplay()}conditionalBlur_(){this.previouslyActiveEl_=null;const t=this.player_.controlBar,n=t&&t.subsCapsButton,s=t&&t.captionsButton;n?n.focus():s&&s.focus()}}Ze.registerComponent("TextTrackSettings",u_e);class c_e extends Ze{constructor(t,n){let s=n.ResizeObserver||ye.ResizeObserver;n.ResizeObserver===null&&(s=!1);const r=En({createEl:!s,reportTouchActivity:!1},n);super(t,r),this.ResizeObserver=n.ResizeObserver||ye.ResizeObserver,this.loadListener_=null,this.resizeObserver_=null,this.debouncedHandler_=TR(()=>{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(){bs(this,"resize",i),bs(this,"unload",a),a=null};vr(this.el_.contentWindow,"unload",a),vr(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()}}Ze.registerComponent("ResizeManager",c_e);const d_e={trackingThreshold:20,liveTolerance:15};class f_e extends Ze{constructor(t,n){const s=En(d_e,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(ye.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_,Nr),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()}}Ze.registerComponent("LiveTracker",f_e);class h_e extends Ze{constructor(t,n){super(t,n),this.on("statechanged",s=>this.updateDom_()),this.updateDom_()}createEl(){return this.els={title:Zt("div",{className:"vjs-title-bar-title",id:`vjs-title-bar-title-${Mi()}`}),description:Zt("div",{className:"vjs-title-bar-description",id:`vjs-title-bar-description-${Mi()}`})},Zt("div",{className:"vjs-title-bar"},{},Object.values(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];Ug(a),i&&lo(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}}Ze.registerComponent("TitleBar",h_e);const wb=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},p_e=Object.defineProperty({},"innerHTML",{get(){return this.cloneNode(!0).innerHTML},set(e){const t=gt.createElement(this.nodeName.toLowerCase());t.innerHTML=e;const n=gt.createDocumentFragment();for(;t.childNodes.length;)n.appendChild(t.childNodes[0]);return this.innerText="",ye.Element.prototype.appendChild.call(this,n),this.innerHTML}}),nL=(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},m_e=e=>nL([e.el(),ye.HTMLMediaElement.prototype,ye.Element.prototype,p_e],"innerHTML"),j2=function(e){const t=e.el();if(t.resetSourceWatch_)return;const n={},s=m_e(e),r=i=>(...a)=>{const o=i.apply(t,a);return wb(e),o};["append","appendChild","insertAdjacentHTML"].forEach(i=>{t[i]&&(n[i]=t[i],t[i]=r(n[i]))}),Object.defineProperty(t,"innerHTML",En(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_)},g_e=Object.defineProperty({},"src",{get(){return this.hasAttribute("src")?PR(ye.Element.prototype.getAttribute.call(this,"src")):""},set(e){return ye.Element.prototype.setAttribute.call(this,"src",e),e}}),v_e=e=>nL([e.el(),ye.HTMLMediaElement.prototype,g_e],"src"),y_e=function(e){if(!e.featuresSourceset)return;const t=e.el();if(t.resetSourceset_)return;const n=v_e(e),s=t.setAttribute,r=t.load;Object.defineProperty(t,"src",En(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 wb(e)||(e.triggerSourceset(""),j2(e)),i},t.currentSrc?e.triggerSourceset(t.currentSrc):wb(e)||j2(e),t.resetSourceset_=()=>{t.resetSourceset_=null,t.load=r,t.setAttribute=s,Object.defineProperty(t,"src",n),t.resetSourceWatch_&&t.resetSourceWatch_()}};class xt extends Xt{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")&&Kg(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&&nn.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_(),(Jd||Lg)&&t.nativeControlsForTouch===!0&&this.setControls(!0),this.proxyWebkitFullscreen_(),this.triggerReady()}dispose(){this.el_&&this.el_.resetSourceset_&&this.el_.resetSourceset_(),xt.disposeMediaElement(this.el_),this.options_=null,super.dispose()}setupSourcesetHandling_(){y_e(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=xr[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[Bu.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_(){xr.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),xt.disposeMediaElement(t),t=s}else{t=gt.createElement("video");const s=this.options_.tag&&Na(this.options_.tag),r=En({},s);(!Jd||this.options_.nativeControlsForTouch!==!0)&&delete r.controls,uR(t,Object.assign(r,{id:this.options_.techId,class:"vjs-tech"}))}t.playerId=this.options_.playerId}typeof this.options_.preload<"u"&&Ru(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?Ru(t,r,r):Bg(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&&Dg?this.el_.fastSeek(t):this.el_.currentTime=t}catch(n){nn(n,"Video is not ready. (Video.js)")}}duration(){if(this.el_.duration===1/0&&$i&&Ni&&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)vi(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(){xt.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=gt.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),ye.performance&&(t.creationTime=ye.performance.now()),t}}Ng(xt,"TEST_VID",function(){if(!Qu())return;const e=gt.createElement("video"),t=gt.createElement("track");return t.kind="captions",t.srclang="en",t.label="English",e.appendChild(t),e});xt.isSupported=function(){try{xt.TEST_VID.volume=.5}catch{return!1}return!!(xt.TEST_VID&&xt.TEST_VID.canPlayType)};xt.canPlayType=function(e){return xt.TEST_VID.canPlayType(e)};xt.canPlaySource=function(e,t){return xt.canPlayType(e.type)};xt.canControlVolume=function(){try{const e=xt.TEST_VID.volume;xt.TEST_VID.volume=e/2+.1;const t=e!==xt.TEST_VID.volume;return t&&Rs?(ye.setTimeout(()=>{xt&&xt.prototype&&(xt.prototype.featuresVolumeControl=e!==xt.TEST_VID.volume)}),!1):t}catch{return!1}};xt.canMuteVolume=function(){try{const e=xt.TEST_VID.muted;return xt.TEST_VID.muted=!e,xt.TEST_VID.muted?Ru(xt.TEST_VID,"muted","muted"):Bg(xt.TEST_VID,"muted","muted"),e!==xt.TEST_VID.muted}catch{return!1}};xt.canControlPlaybackRate=function(){if($i&&Ni&&Mg<58)return!1;try{const e=xt.TEST_VID.playbackRate;return xt.TEST_VID.playbackRate=e/2+.1,e!==xt.TEST_VID.playbackRate}catch{return!1}};xt.canOverrideAttributes=function(){try{const e=()=>{};Object.defineProperty(gt.createElement("video"),"src",{get:e,set:e}),Object.defineProperty(gt.createElement("audio"),"src",{get:e,set:e}),Object.defineProperty(gt.createElement("video"),"innerHTML",{get:e,set:e}),Object.defineProperty(gt.createElement("audio"),"innerHTML",{get:e,set:e})}catch{return!1}return!0};xt.supportsNativeTextTracks=function(){return Dg||Rs&&Ni};xt.supportsNativeVideoTracks=function(){return!!(xt.TEST_VID&&xt.TEST_VID.videoTracks)};xt.supportsNativeAudioTracks=function(){return!!(xt.TEST_VID&&xt.TEST_VID.audioTracks)};xt.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]){Ng(xt.prototype,e,()=>xt[t](),!0)});xt.prototype.featuresVolumeControl=xt.canControlVolume();xt.prototype.movingMediaElementInDOM=!Rs;xt.prototype.featuresFullscreenResize=!0;xt.prototype.featuresProgressEvents=!0;xt.prototype.featuresTimeupdateEvents=!0;xt.prototype.featuresVideoFrameCallback=!!(xt.TEST_VID&&xt.TEST_VID.requestVideoFrameCallback);xt.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{}}()}};xt.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){xt.prototype[e]=function(){return this.el_[e]||this.el_.hasAttribute(e)}});["muted","defaultMuted","autoplay","loop","playsinline"].forEach(function(e){xt.prototype["set"+Vn(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){xt.prototype[e]=function(){return this.el_[e]}});["volume","src","poster","preload","playbackRate","defaultPlaybackRate","disablePictureInPicture","crossOrigin"].forEach(function(e){xt.prototype["set"+Vn(e)]=function(t){this.el_[e]=t}});["pause","load","play"].forEach(function(e){xt.prototype[e]=function(){return this.el_[e]()}});Xt.withSourceHandlers(xt);xt.nativeSourceHandler={};xt.nativeSourceHandler.canPlayType=function(e){try{return xt.TEST_VID.canPlayType(e)}catch{return""}};xt.nativeSourceHandler.canHandleSource=function(e,t){if(e.type)return xt.nativeSourceHandler.canPlayType(e.type);if(e.src){const n=AT(e.src);return xt.nativeSourceHandler.canPlayType(`video/${n}`)}return""};xt.nativeSourceHandler.handleSource=function(e,t,n){t.setSrc(e.src)};xt.nativeSourceHandler.dispose=function(){};xt.registerSourceHandler(xt.nativeSourceHandler);Xt.registerTech("Html5",xt);const sL=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","resize","volumechange","texttrackchange"],v0={canplay:"CanPlay",canplaythrough:"CanPlayThrough",playing:"Playing",seeked:"Seeked"},Sb=["tiny","xsmall","small","medium","large","xlarge","huge"],Ip={};Sb.forEach(e=>{const t=e.charAt(0)==="x"?`x-${e.substring(1)}`:e;Ip[e]=`vjs-layout-${t}`});const b_e={tiny:210,xsmall:320,small:425,medium:768,large:1440,xlarge:2560,huge:1/0};class kn extends Ze{constructor(t,n,s){if(t.id=t.id||n.id||`vjs_video_${Mi()}`,n=Object.assign(kn.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.isFullscreen_=!1,this.log=ZM(this.id_),this.fsApi_=fm,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_={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&&Na(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_=kn.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(),xT(this,{eventBusKey:"el_"}),this.fsApi_.requestFullscreen&&(vr(gt,this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_),this.on(this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_)),this.fluid_&&this.on(["playerreset","resize"],this.boundUpdateStyleEl_);const r=En(this.options_);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),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"),Jd&&this.addClass("vjs-touch-enabled"),Rs||this.addClass("vjs-workinghover"),kn.players[this.id_]=this;const i=XM.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"),bs(gt,this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_),bs(gt,"keydown",this.boundFullWindowOnEscKey_),this.styleEl_&&this.styleEl_.parentNode&&(this.styleEl_.parentNode.removeChild(this.styleEl_),this.styleEl_=null),kn.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),Ube(this),ks.names.forEach(t=>{const n=ks[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=Na(t);if(r){for(n=this.el_=t,t=this.tag=gt.createElement("video");n.children.length;)t.appendChild(n.firstChild);rd(n,"video-js")||Wo(n,"video-js"),n.appendChild(t),s=this.playerElIngest_=n,Object.keys(n).forEach(o=>{try{t[o]=n[o]}catch{}})}if(t.setAttribute("tabindex","-1"),i.tabindex="-1",Ni&&Rg&&(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(o){r&&o==="class"||n.setAttribute(o,i[o]),r&&t.setAttribute(o,i[o])}),t.playerId=t.id,t.id+="_html5_api",t.className="vjs-tech",t.player=n.player=this,this.addClass("vjs-paused"),ye.VIDEOJS_NO_DYNAMIC_STYLE!==!0){this.styleEl_=bR("vjs-styles-dimensions");const o=Qa(".vjs-styles-defaults"),l=Qa("head");l.insertBefore(this.styleEl_,o?o.nextSibling:l.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 a=t.getElementsByTagName("a");for(let o=0;o<a.length;o++){const l=a.item(o);Wo(l,"vjs-hidden"),l.setAttribute("hidden","hidden")}return t.initNetworkState_=t.networkState,t.parentNode&&!s&&t.parentNode.insertBefore(n,t),pb(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"){nn.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)){nn.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,ea(this)&&this.off(["playerreset","resize"],this.boundUpdateStyleEl_),t?(this.addClass("vjs-fluid"),this.fill(!1),vbe(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(ye.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),_R(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=Vn(t),r=t.charAt(0).toLowerCase()+t.slice(1);s!=="Html5"&&this.tag&&(Xt.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};ks.names.forEach(l=>{const u=ks[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=Xt.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(xn(this,this.handleTechReady_),!0),x2.jsonToTextTracks(this.textTracksJson_||[],this.tech_),sL.forEach(l=>{this.on(this.tech_,l,u=>this[`handleTech${Vn(l)}_`](u))}),Object.keys(v0).forEach(l=>{this.on(this.tech_,l,u=>{if(this.tech_.playbackRate()===0&&this.tech_.seeking()){this.queuedCallbacks_.push({callback:this[`handleTech${v0[l]}_`].bind(this),event:u});return}this[`handleTech${v0[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)&&pb(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)}unloadTech_(){ks.names.forEach(t=>{const n=ks[t];this[n.privateName]=this[n.getterName]()}),this.textTracksJson_=x2.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&&nn.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_}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(ad(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(),ad(s)&&(s=s.catch(n))):t==="muted"&&!this.muted()?s=n():s=this.play(),!!ad(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=jbe(this,n)),this.cache_.source=En({},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=Na(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()?vi(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=gt[this.fsApi_.fullscreenElement]===s;!r&&s.matches?r=s.matches(":"+this.fsApi_.fullscreen):!r&&s.msMatchesSelector&&(r=s.msMatchesSelector(":"+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();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 Bbe)return Dbe(this.middleware_,this.tech_,t,n);if(t in P2)return A2(this.middleware_,this.tech_,t,n);try{this.tech_&&this.tech_[t](n)}catch(s){throw nn(s),s}},!0)}techGet_(t){if(!(!this.tech_||!this.tech_.isReady_)){if(t in Fbe)return Lbe(this.middleware_,this.tech_,t);if(t in P2)return A2(this.middleware_,this.tech_,t);try{return this.tech_[t]()}catch(n){throw this.tech_[t]===void 0?(nn(`Video.js: ${t} method not defined for ${this.techName_} playback technology.`,n),n):n.name==="TypeError"?(nn(`Video.js: ${t} unavailable on ${this.techName_} playback technology element.`,n),this.tech_.isReady_=!1,n):(nn(n),n)}}}play(){return new Promise(t=>{this.play_(t)})}play_(t=vi){this.playCallbacks_.push(t);const n=!!(!this.changingSrc_&&(this.src()||this.currentSrc()));if(this.waitToPlay_&&(this.off(["ready","loadstart"],this.waitToPlay_),this.waitToPlay_=null),!this.isReady_||!n){this.waitToPlay_=r=>{this.play_()},this.one(["ready","loadstart"],this.waitToPlay_),!n&&(Dg||Rs)&&this.load();return}const s=this.techGet_("play");s===null?this.runPlayTerminatedQueue_():this.runPlayCallbacks_(s)}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")||Ei(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(typeof t<"u"){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;return}return this.cache_.currentTime=this.techGet_("currentTime")||0,this.cache_.currentTime}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=Ei(0,0)),t}bufferedPercent(){return OR(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,parseFloat(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=gt[this.fsApi_.exitFullscreen]();return t&&vi(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=gt.documentElement.style.overflow,vr(gt,"keydown",this.boundFullWindowOnEscKey_),gt.documentElement.style.overflow="hidden",Wo(gt.body,"vjs-full-window"),this.trigger("enterFullWindow")}fullWindowOnEscKey(t){Gt.isEventKey(t,"Esc")&&this.isFullscreen()===!0&&(this.isFullWindow?this.exitFullWindow():this.exitFullscreen())}exitFullWindow(){this.isFullscreen(!1),this.isFullWindow=!1,bs(gt,"keydown",this.boundFullWindowOnEscKey_),gt.documentElement.style.overflow=this.docOrigOverflow,Fg(gt.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("pictureInPictureEnabled"in gt&&this.disablePictureInPicture()===!1)return this.techGet_("requestPictureInPicture")}exitPictureInPicture(){if("pictureInPictureEnabled"in gt)return gt.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=>Gt.isEventKey(a,"f"),muteKey:r=a=>Gt.isEventKey(a,"m"),playPauseKey:i=a=>Gt.isEventKey(a,"k")||Gt.isEventKey(a,"Space")}=n;if(s.call(this,t)){t.preventDefault(),t.stopPropagation();const a=Ze.getComponent("FullscreenToggle");gt[this.fsApi_.fullscreenEnabled]!==!1&&a.prototype.handleClick.call(this,t)}else r.call(this,t)?(t.preventDefault(),t.stopPropagation(),Ze.getComponent("MuteToggle").prototype.handleClick.call(this,t)):i.call(this,t)&&(t.preventDefault(),t.stopPropagation(),Ze.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=Xt.getTech(i);if(a||(a=Ze.getComponent(i)),!a){nn.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,Xt.getTech(o)]).filter(([o,l])=>l?l.isSupported():(nn.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=MR(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]),Mbe(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}Rbe(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?ER(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(){this.techCall_("load")}reset(){if(this.paused())this.doReset_();else{const t=this.play();vi(t.then(()=>this.doReset_()))}}doReset_(){this.tech_&&this.tech_.clearTracks("text"),this.resetCache_(),this.poster(""),this.loadTech_(this.options_.techOrder[0],null),this.techCall_("reset"),this.resetControlBarUI_(),ea(this)&&this.trigger("playerreset")}resetControlBarUI_(){this.resetProgressBar_(),this.resetPlaybackRate_(),this.resetVolumeBar_()}resetProgressBar_(){this.currentTime(0);const{durationDisplay:t,remainingTimeDisplay:n}=this.controlBar||{};t&&t.updateContent(),n&&n.updateContent()}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):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(Xa("beforeerror").forEach(n=>{const s=n(this,t);if(!(Pi(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_=t,this.removeClass("vjs-error"),this.errorDisplay&&this.errorDisplay.close();return}this.error_=new As(t),this.addClass("vjs-error"),nn.error(`(CODE:${this.error_.code} ${As.errorTypes[this.error_.code]})`,this.error_.message,this.error_),this.trigger("error"),Xa("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=xn(this,this.reportUserActivity),i=function(c){(c.screenX!==n||c.screenY!==s)&&(n=c.screenX,s=c.screenY,r())},a=function(){r(),this.clearInterval(t),t=this.setInterval(r,250)},o=function(c){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&&!Rs&&!$i&&(l.on("mouseenter",function(c){this.player().options_.inactivityTimeout!==0&&(this.player().cache_.inactivityTimeout=this.player().options_.inactivityTimeout),this.player().options_.inactivityTimeout=0}),l.on("mouseleave",function(c){this.player().options_.inactivityTimeout=this.player().cache_.inactivityTimeout})),this.on("keydown",r),this.on("keyup",r);let u;this.setInterval(function(){if(!this.userActivity_)return;this.userActivity_=!1,this.userActive(!0),this.clearTimeout(u);const c=this.options_.inactivityTimeout;c<=0||(u=this.setTimeout(function(){this.userActivity_||this.userActive(!1)},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_}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.height(s),this.trigger("audioonlymodechange")}disableAudioOnlyUI_(){this.removeClass("vjs-audio-only-mode"),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(),ea(this)&&this.trigger("languagechange"))}languages(){return En(kn.prototype.options_.languages,this.languages_)}toJSON(){const t=En(this.options_),n=t.tracks;t.tracks=[];for(let s=0;s<n.length;s++){let r=n[s];r=En(r),r.player=void 0,t.tracks[s]=r}return t}createModal(t,n){n=n||{},n.content=t||"";const s=new ec(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<Sb.length;s++){const r=Sb[s],i=this.breakpoints_[r];if(n<=i){if(t===r)return;t&&this.removeClass(Ip[t]),this.addClass(Ip[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({},b_e,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 Ip[this.breakpoint_]||""}loadMedia(t,n){if(!t||typeof t!="object")return;this.reset(),this.cache_.media=En(t);const{artist:s,artwork:r,description:i,poster:a,src:o,textTracks:l,title:u}=this.cache_.media;!r&&a&&(this.cache_.media.artwork=[{src:a,type:ym(a)}]),o&&this.src(o),a&&this.poster(a),Array.isArray(l)&&l.forEach(c=>this.addRemoteTextTrack(c,!1)),this.titleBar&&this.titleBar.update({title:u,description:i||s||""}),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:ym(r.poster)}]),r}return En(this.cache_.media)}static getTagSettings(t){const n={sources:[],tracks:[]},s=Na(t),r=s["data-setup"];if(rd(t,"vjs-fill")&&(s.fill=!0),rd(t,"vjs-fluid")&&(s.fluid=!0),r!==null){const[i,a]=sve(r||"{}");i&&nn.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(Na(l)):u==="track"&&n.tracks.push(Na(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"))}}ks.names.forEach(function(e){const t=ks[e];kn.prototype[t.getterName]=function(){return this.tech_?this.tech_[t.getterName]():(this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName])}});kn.prototype.crossorigin=kn.prototype.crossOrigin;kn.players={};const Ac=ye.navigator;kn.prototype.options_={techOrder:Xt.defaultTechOrder_,html5:{},enableSourceset:!0,inactivityTimeout:2e3,playbackRates:[],liveui:!1,children:["mediaLoader","posterImage","titleBar","textTrackDisplay","loadingSpinner","bigPlayButton","liveTracker","controlBar","errorDisplay","textTrackSettings","resizeManager"],language:Ac&&(Ac.languages&&Ac.languages[0]||Ac.userLanguage||Ac.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};["ended","seeking","seekable","networkState","readyState"].forEach(function(e){kn.prototype[e]=function(){return this.techGet_(e)}});sL.forEach(function(e){kn.prototype[`handleTech${Vn(e)}_`]=function(){return this.trigger(e)}});Ze.registerComponent("Player",kn);const _m="plugin",ru="activePlugins_",Vl={},Tm=e=>Vl.hasOwnProperty(e),Op=e=>Tm(e)?Vl[e]:void 0,rL=(e,t)=>{e[ru]=e[ru]||{},e[ru][t]=!0},wm=(e,t,n)=>{const s=(n?"before":"")+"pluginsetup";e.trigger(s,t),e.trigger(s+":"+t.name,t)},__e=function(e,t){const n=function(){wm(this,{name:e,plugin:t,instance:null},!0);const s=t.apply(this,arguments);return rL(this,e),wm(this,{name:e,plugin:t,instance:s}),s};return Object.keys(t).forEach(function(s){n[s]=t[s]}),n},K2=(e,t)=>(t.prototype.name=e,function(...n){wm(this,{name:e,plugin:t,instance:null},!0);const s=new t(this,...n);return this[e]=()=>s,wm(this,s.getEventHash()),s});class Zs{constructor(t){if(this.constructor===Zs)throw new Error("Plugin must be sub-classed; not directly instantiated.");this.player=t,this.log||(this.log=this.player.log.createLogger(this.name)),xT(this),delete this.trigger,CR(this,this.constructor.defaultState),rL(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 Zu(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[ru][t]=!1,this.player=this.state=null,n[t]=K2(t,Vl[t])}static isBasic(t){const n=typeof t=="string"?Op(t):t;return typeof n=="function"&&!Zs.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(Tm(t))nn.warn(`A plugin named "${t}" already exists. You may want to avoid re-registering plugins!`);else if(kn.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 Vl[t]=n,t!==_m&&(Zs.isBasic(n)?kn.prototype[t]=__e(t,n):kn.prototype[t]=K2(t,n)),n}static deregisterPlugin(t){if(t===_m)throw new Error("Cannot de-register base plugin.");Tm(t)&&(delete Vl[t],delete kn.prototype[t])}static getPlugins(t=Object.keys(Vl)){let n;return t.forEach(s=>{const r=Op(s);r&&(n=n||{},n[s]=r)}),n}static getPluginVersion(t){const n=Op(t);return n&&n.VERSION||""}}Zs.getPlugin=Op;Zs.BASE_PLUGIN_NAME=_m;Zs.registerPlugin(_m,Zs);kn.prototype.usingPlugin=function(e){return!!this[ru]&&this[ru][e]===!0};kn.prototype.hasPlugin=function(e){return!!Tm(e)};function T_e(e,t){let n=!1;return function(...s){return n||nn.warn(e),n=!0,t.apply(this,s)}}function ii(e,t,n,s){return T_e(`${t} is deprecated and will be removed in ${e}.0; please use ${n} instead.`,s)}const iL=e=>e.indexOf("#")===0?e.slice(1):e;function je(e,t,n){let s=je.getPlayer(e);if(s)return t&&nn.warn(`Player "${e}" is already initialised. Options will not be applied.`),n&&s.ready(n),s;const r=typeof e=="string"?Qa("#"+iL(e)):e;if(!Ju(r))throw new TypeError("The element or ID supplied is not valid. (videojs)");(!r.ownerDocument.defaultView||!r.ownerDocument.body.contains(r))&&nn.warn("The element supplied is not included in the DOM"),t=t||{},t.restoreEl===!0&&(t.restoreEl=(r.parentNode&&r.parentNode.hasAttribute("data-vjs-player")?r.parentNode:r).cloneNode(!0)),Xa("beforesetup").forEach(a=>{const o=a(r,En(t));if(!Pi(o)||Array.isArray(o)){nn.error("please return an object in beforesetup hooks");return}t=En(t,o)});const i=Ze.getComponent("Player");return s=new i(r,t,n),Xa("setup").forEach(a=>a(s)),s}je.hooks_=Gi;je.hooks=Xa;je.hook=sbe;je.hookOnce=rbe;je.removeHook=QM;if(ye.VIDEOJS_NO_DYNAMIC_STYLE!==!0&&Qu()){let e=Qa(".vjs-styles-defaults");if(!e){e=bR("vjs-styles-defaults");const t=Qa("head");t&&t.insertBefore(e,t.firstChild),_R(e,`
|
||
.video-js {
|
||
width: 300px;
|
||
height: 150px;
|
||
}
|
||
|
||
.vjs-fluid:not(.vjs-audio-only-mode) {
|
||
padding-top: 56.25%
|
||
}
|
||
`)}}gb(1,je);je.VERSION=XM;je.options=kn.prototype.options_;je.getPlayers=()=>kn.players;je.getPlayer=e=>{const t=kn.players;let n;if(typeof e=="string"){const s=iL(e),r=t[s];if(r)return r;n=Qa("#"+s)}else n=e;if(Ju(n)){const{player:s,playerId:r}=n;if(s||t[r])return s||t[r]}};je.getAllPlayers=()=>Object.keys(kn.players).map(e=>kn.players[e]).filter(Boolean);je.players=kn.players;je.getComponent=Ze.getComponent;je.registerComponent=(e,t)=>{Xt.isTech(t)&&nn.warn(`The ${e} tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)`),Ze.registerComponent.call(Ze,e,t)};je.getTech=Xt.getTech;je.registerTech=Xt.registerTech;je.use=Nbe;Object.defineProperty(je,"middleware",{value:{},writeable:!1,enumerable:!0});Object.defineProperty(je.middleware,"TERMINATOR",{value:vm,writeable:!1,enumerable:!0});je.browser=lbe;je.obj=obe;je.mergeOptions=ii(9,"videojs.mergeOptions","videojs.obj.merge",En);je.defineLazyProperty=ii(9,"videojs.defineLazyProperty","videojs.obj.defineLazyProperty",Ng);je.bind=ii(9,"videojs.bind","native Function.prototype.bind",xn);je.registerPlugin=Zs.registerPlugin;je.deregisterPlugin=Zs.deregisterPlugin;je.plugin=(e,t)=>(nn.warn("videojs.plugin() is deprecated; use videojs.registerPlugin() instead"),Zs.registerPlugin(e,t));je.getPlugins=Zs.getPlugins;je.getPlugin=Zs.getPlugin;je.getPluginVersion=Zs.getPluginVersion;je.addLanguage=function(e,t){return e=(""+e).toLowerCase(),je.options.languages=En(je.options.languages,{[e]:t}),je.options.languages[e]};je.log=nn;je.createLogger=ZM;je.time=wbe;je.createTimeRange=ii(9,"videojs.createTimeRange","videojs.time.createTimeRanges",Ei);je.createTimeRanges=ii(9,"videojs.createTimeRanges","videojs.time.createTimeRanges",Ei);je.formatTime=ii(9,"videojs.formatTime","videojs.time.formatTime",tl);je.setFormatTime=ii(9,"videojs.setFormatTime","videojs.time.setFormatTime",kR);je.resetFormatTime=ii(9,"videojs.resetFormatTime","videojs.time.resetFormatTime",IR);je.parseUrl=ii(9,"videojs.parseUrl","videojs.url.parseUrl",OT);je.isCrossOrigin=ii(9,"videojs.isCrossOrigin","videojs.url.isCrossOrigin",Kg);je.EventTarget=Mr;je.any=ET;je.on=vr;je.one=zg;je.off=bs;je.trigger=Zu;je.xhr=Wd;je.TextTrack=Mf;je.AudioTrack=$R;je.VideoTrack=NR;["isEl","isTextNode","createEl","hasClass","addClass","removeClass","toggleClass","setAttributes","getAttributes","emptyEl","appendContent","insertContent"].forEach(e=>{je[e]=function(){return nn.warn(`videojs.${e}() is deprecated; use videojs.dom.${e}() instead`),vR[e].apply(null,arguments)}});je.computedStyle=ii(9,"videojs.computedStyle","videojs.dom.computedStyle",Du);je.dom=vR;je.fn=gbe;je.num=Jbe;je.str=_be;je.url=Pbe;/*! @name videojs-contrib-quality-levels @version 3.0.0 @license Apache-2.0 */class w_e{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 Sm extends je.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}addQualityLevel(t){let n=this.getQualityLevelById(t.id);if(n)return n;const s=this.levels_.length;return n=new w_e(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}}Sm.prototype.allowedEvents_={change:"change",addqualitylevel:"addqualitylevel",removequalitylevel:"removequalitylevel"};for(const e in Sm.prototype.allowedEvents_)Sm.prototype["on"+e]=null;var aL="3.0.0";const S_e=je.registerPlugin||je.plugin,C_e=function(e,t){const n=e.qualityLevels,s=new Sm,r=function(){s.dispose(),e.qualityLevels=n,e.off("dispose",r)};return e.on("dispose",r),e.qualityLevels=()=>s,e.qualityLevels.VERSION=aL,s},oL=function(e){return C_e(this,je.mergeOptions({},e))};S_e("qualityLevels",oL);oL.VERSION=aL;/*! @name @videojs/http-streaming @version 3.0.0 @license Apache-2.0 */const zr=Gve,Cm=(e,t)=>t&&t.responseURL&&e!==t.responseURL?t.responseURL:e,ai=e=>je.log.debug?je.log.debug.bind(je,"VHS:",`${e} >`):function(){};function wn(...e){const t=je.obj||je;return(t.merge||t.mergeOptions).apply(t,e)}function ys(...e){const t=je.time||je;return(t.createTimeRanges||t.createTimeRanges).apply(t,e)}const Ja=1/30,yi=Ja*3,lL=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 ys(n)},Ul=function(e,t){return lL(e,function(n,s){return n-yi<=t&&s+yi>=t})},Uh=function(e,t){return lL(e,function(n){return n-Ja>=t})},E_e=function(e){if(e.length<2)return ys();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 ys(t)},x_e=function(e,t){let n=null,s=null,r=0;const i=[],a=[];if(!e||!e.length||!t||!t.length)return ys();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 ys(a)},uL=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(", ")},k_e=function(e,t,n=1){return((e.length?e.end(e.length-1):0)-t)/n},Do=e=>{const t=[];for(let n=0;n<e.length;n++)t.push({start:e.start(n),end:e.end(n)});return t},I_e=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},W2=function(e){if(!(!e||!e.length||!e.end))return e.end(e.length-1)},qT=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},GT=(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},Cb=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),[]),cL=e=>{const t=e.segments&&e.segments.length&&e.segments[e.segments.length-1];return t&&t.parts||[]},dL=({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},fL=(e,t)=>{if(t.endList)return 0;if(e&&e.suggestedPresentationDelay)return e.suggestedPresentationDelay;const n=cL(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},O_e=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+=GT(e,r),typeof r.start<"u")return{result:n+r.start,precise:!0}}return{result:n,precise:!1}},A_e=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+=GT(e,s),typeof s.end<"u")return{result:s.end-n,precise:!0}}return{result:-1,precise:!1}},hL=function(e,t,n){if(typeof t>"u"&&(t=e.mediaSequence+e.segments.length),t<e.mediaSequence)return 0;const s=O_e(e,t);if(s.precise)return s.result;const r=A_e(e,t);return r.precise?r.result:s.result+n},pL=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 ye.Infinity}return hL(e,t,n)},od=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},mL=function(e,t,n,s){if(!e||!e.segments)return null;if(e.endList)return pL(e);if(t===null)return null;t=t||0;let r=hL(e,e.mediaSequence+e.segments.length,t);return n&&(s=typeof s=="number"?s:fL(null,e),r-=s),Math.max(0,r)},P_e=function(e,t,n){const r=t||0,i=mL(e,t,!0,n);return i===null?ys():ys(r,i)},$_e=function({playlist:e,currentTime:t,startingSegmentIndex:n,startingPartIndex:s,startTime:r,exactManifestTimings:i}){let a=t-r;const o=Cb(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+Ja<=0)continue;return{partIndex:c.partIndex,segmentIndex:c.segmentIndex,startTime:r-od({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];if(a-=c.duration,i){if(a>0)continue}else if(a-Ja>=0)continue;return{partIndex:c.partIndex,segmentIndex:c.segmentIndex,startTime:r+od({defaultDuration:e.targetDuration,durationList:o,startIndex:l,endIndex:u})}}return{segmentIndex:o[o.length-1].segmentIndex,partIndex:o[o.length-1].partIndex,startTime:t}},gL=function(e){return e.excludeUntil&&e.excludeUntil>Date.now()},YT=function(e){return e.excludeUntil&&e.excludeUntil===1/0},Gg=function(e){const t=gL(e);return!e.disabled&&!t},N_e=function(e){return e.disabled},M_e=function(e){for(let t=0;t<e.segments.length;t++)if(e.segments[t].key)return!0;return!1},vL=function(e,t){return t.attributes&&t.attributes[e]},R_e=function(e,t,n,s=0){return vL("BANDWIDTH",n)?(e*n.attributes.BANDWIDTH-s*8)/t:NaN},Eb=(e,t)=>{if(e.playlists.length===1)return!0;const n=t.attributes.BANDWIDTH||Number.MAX_VALUE;return e.playlists.filter(s=>Gg(s)?(s.attributes.BANDWIDTH||0)<n:!1).length===0},XT=(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),q2=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},Ff=e=>{if(!e||!e.playlists||!e.playlists.length)return q2(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=>aM(i))||q2(e,i=>XT(n,i))))return!1}return!0};var Ws={liveEdgeDelay:fL,duration:pL,seekable:P_e,getMediaInfoForTime:$_e,isEnabled:Gg,isDisabled:N_e,isExcluded:gL,isIncompatible:YT,playlistEnd:mL,isAes:M_e,hasAttribute:vL,estimateSegmentRequestTime:R_e,isLowestEnabledRendition:Eb,isAudioOnly:Ff,playlistMatch:XT,segmentDurationWithParts:GT};const{log:yL}=je,QT=(e,t)=>`${e}-${t}`,L_e=({onwarn:e,oninfo:t,manifestString:n,customTagParsers:s=[],customTagMappers:r=[],llhls:i})=>{const a=new n0e;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(`manifest has no targetDuration defaulting to ${u}`),o.targetDuration=u}const l=cL(o);if(l.length&&!o.partTargetDuration){const u=l.reduce((c,f)=>Math.max(c,f.duration),0);e&&(e(`manifest has no partTargetDuration defaulting to ${u}`),yL.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},Bf=(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)}})},bL=({playlist:e,uri:t,id:n})=>{e.id=n,e.playlistErrors_=0,t&&(e.uri=t),e.attributes=e.attributes||{}},D_e=e=>{let t=e.playlists.length;for(;t--;){const n=e.playlists[t];bL({playlist:n,id:QT(t,n.uri)}),n.resolvedUri=zr(e.uri,n.uri),e.playlists[n.id]=n,e.playlists[n.uri]=n,n.attributes.BANDWIDTH||yL.warn("Invalid playlist STREAM-INF detected. Missing BANDWIDTH attribute.")}},F_e=e=>{Bf(e,t=>{t.uri&&(t.resolvedUri=zr(e.uri,t.uri))})},B_e=(e,t)=>{const n=QT(0,t),s={mediaGroups:{AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},uri:ye.location.href,resolvedUri:ye.location.href,playlists:[{uri:t,id:n,resolvedUri:t,attributes:{}}]};return s.playlists[n]=s.playlists[0],s.playlists[t]=s.playlists[0],s},_L=(e,t)=>{e.uri=t;for(let s=0;s<e.playlists.length;s++)if(!e.playlists[s].uri){const r=`placeholder-uri-${s}`;e.playlists[s].uri=r}const n=Ff(e);Bf(e,(s,r,i,a)=>{const o=`placeholder-uri-${r}-${i}-${a}`;if(!s.playlists||!s.playlists.length){if(n&&r==="AUDIO"&&!s.uri)for(let l=0;l<e.playlists.length;l++){const u=e.playlists[l];if(u.attributes&&u.attributes.AUDIO&&u.attributes.AUDIO===i)return}s.playlists=[oa({},s)]}s.playlists.forEach(function(l,u){const c=QT(u,o);l.uri?l.resolvedUri=l.resolvedUri||zr(e.uri,l.uri):(l.uri=u===0?o:c,l.resolvedUri=l.uri),l.id=l.id||c,l.attributes=l.attributes||{},e.playlists[l.id]=l,e.playlists[l.uri]=l})}),D_e(e),F_e(e)},{EventTarget:V_e}=je,U_e=(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=dL(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 ye.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},H_e=(e,t)=>{if(!e)return t;const n=wn(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]=wn(e.parts[s],t.parts[s]));return!e.skipped&&t.skipped&&(n.skipped=!1),e.preload&&!t.preload&&(n.preload=!1),n},z_e=(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(H_e(l,u))):(a&&!u.map&&(u.map=a),i.push(u))}return i},TL=(e,t)=>{!e.resolvedUri&&e.uri&&(e.resolvedUri=zr(t,e.uri)),e.key&&!e.key.resolvedUri&&(e.key.resolvedUri=zr(t,e.key.uri)),e.map&&!e.map.resolvedUri&&(e.map.resolvedUri=zr(t,e.map.uri)),e.map&&e.map.key&&!e.map.key.resolvedUri&&(e.map.key.resolvedUri=zr(t,e.map.key.uri)),e.parts&&e.parts.length&&e.parts.forEach(n=>{n.resolvedUri||(n.resolvedUri=zr(t,n.uri))}),e.preloadHints&&e.preloadHints.length&&e.preloadHints.forEach(n=>{n.resolvedUri||(n.resolvedUri=zr(t,n.uri))})},wL=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},SL=(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,xb=(e,t,n=SL)=>{const s=wn(e,{}),r=s.playlists[t.id];if(!r||n(r,t))return null;t.segments=wL(t);const i=wn(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=z_e(r.segments,t.segments,t.mediaSequence-r.mediaSequence)}i.segments.forEach(a=>{TL(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,Bf(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},kb=(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};class Hl extends V_e{constructor(t,n,s={}){if(super(),!t)throw new Error("A non-empty playlist URL or object is required");this.logger_=ai("PlaylistLoader");const{withCredentials:r=!1}=s;this.src=t,this.vhs_=n,this.withCredentials=r;const i=n.options_;this.customTagParsers=i&&i.customTagParsers||[],this.customTagMappers=i&&i.customTagMappers||[],this.llhls=i&&i.llhls,this.state="HAVE_NOTHING",this.handleMediaupdatetimeout_=this.handleMediaupdatetimeout_.bind(this),this.on("mediaupdatetimeout",this.handleMediaupdatetimeout_)}handleMediaupdatetimeout_(){if(this.state!=="HAVE_METADATA")return;const t=this.media();let n=zr(this.main.uri,t.uri);this.llhls&&(n=U_e(n,t)),this.state="HAVE_CURRENT_METADATA",this.request=this.vhs_.xhr({uri:n,withCredentials:this.withCredentials},(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},this.trigger("error")}parseManifest_({url:t,manifestString:n}){return L_e({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})}haveMetadata({playlistString:t,playlistObject:n,url:s,id:r}){this.request=null,this.state="HAVE_METADATA";const i=n||this.parseManifest_({url:s,manifestString:t});i.lastRequest=Date.now(),bL({playlist:i,uri:s,id:r});const a=xb(this.main,i);this.targetDuration=i.partTargetDuration||i.targetDuration,this.pendingMedia_=null,a?(this.main=a,this.media_=this.main.playlists[r]):this.trigger("playlistunchanged"),this.updateMediaUpdateTimeout_(kb(this.media(),!!a)),this.trigger("loadedplaylist")}dispose(){this.trigger("dispose"),this.stopRequest(),ye.clearTimeout(this.mediaUpdateTimeout),ye.clearTimeout(this.finalRenditionTimeout),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(ye.clearTimeout(this.finalRenditionTimeout),n){const a=(t.partTargetDuration||t.targetDuration)/2*1e3||5e3;this.finalRenditionTimeout=ye.setTimeout(this.media.bind(this,t,!1),a);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_(kb(t,!0)),!!r){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,this.request=this.vhs_.xhr({uri:t.resolvedUri,withCredentials:this.withCredentials},(a,o)=>{if(this.request){if(t.lastRequest=Date.now(),t.resolvedUri=Cm(t.resolvedUri,o),a)return this.playlistRequestError(this.request,t,s);this.haveMetadata({playlistString:o.responseText,url:t.uri,id:t.id}),s==="HAVE_MAIN_MANIFEST"?this.trigger("loadedmetadata"):this.trigger("mediachange")}})}}pause(){this.mediaUpdateTimeout&&(ye.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&&(ye.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null);const n=this.media();if(t){const s=n?(n.partTargetDuration||n.targetDuration)/2*1e3:5e3;this.mediaUpdateTimeout=ye.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&&(ye.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null),!(!this.media()||this.media().endList)&&(this.mediaUpdateTimeout=ye.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=ye.location.href),this.src.resolvedUri=this.src.uri,setTimeout(()=>{this.setupInitialPlaylist(this.src)},0);return}this.request=this.vhs_.xhr({uri:this.src,withCredentials:this.withCredentials},(t,n)=>{if(!this.request)return;if(this.request=null,t)return this.error={status:n.status,message:`HLS playlist request error at URL: ${this.src}.`,responseText:n.responseText,code:2},this.state==="HAVE_NOTHING"&&(this.started=!1),this.trigger("error");this.src=Cm(this.src,n);const s=this.parseManifest_({manifestString:n.responseText,url:this.src});this.setupInitialPlaylist(s)})}srcUri(){return typeof this.src=="string"?this.src:this.src.uri}setupInitialPlaylist(t){if(this.state="HAVE_MAIN_MANIFEST",t.playlists){this.main=t,_L(this.main,this.srcUri()),t.playlists.forEach(s=>{s.segments=wL(s),s.segments.forEach(r=>{TL(r,s.resolvedUri)})}),this.trigger("loadedplaylist"),this.request||this.media(this.main.playlists[0]);return}const n=this.srcUri()||ye.location.href;this.main=B_e(t,n),this.haveMetadata({playlistObject:t,url:n,id:this.main.playlists[0].id}),this.trigger("loadedmetadata")}}const{xhr:j_e}=je,Ib=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)},CL=function(){const e=function t(n,s){n=wn({timeout:45e3},n);const r=t.beforeRequest||je.Vhs.xhr.beforeRequest;if(r&&typeof r=="function"){const l=r(n);l&&(n=l)}const a=(je.Vhs.xhr.original===!0?j_e:je.Vhs.xhr)(n,function(l,u){return Ib(a,l,u,s)}),o=a.abort;return a.abort=function(){return a.aborted=!0,o.apply(a,arguments)},a.uri=n.uri,a.requestTime=Date.now(),a};return e.original=!0,e},K_e=function(e){let t;const n=e.offset;return typeof e.offset=="bigint"||typeof e.length=="bigint"?t=ye.BigInt(e.offset)+ye.BigInt(e.length)-ye.BigInt(1):t=e.offset+e.length-1,"bytes="+n+"-"+t},Ob=function(e){const t={};return e.byterange&&(t.Range=K_e(e.byterange)),t},W_e=function(e,t){return e.start(t)+"-"+e.end(t)},q_e=function(e,t){const n=e.toString(16);return"00".substring(0,2-n.length)+n+(t%2?" ":"")},G_e=function(e){return e>=32&&e<126?String.fromCharCode(e):"."},EL=function(e){const t={};return Object.keys(e).forEach(n=>{const s=e[n];lM(s)?t[n]={bytes:s.buffer,byteOffset:s.byteOffset,byteLength:s.byteLength}:t[n]=s}),t},Em=function(e){const t=e.byterange||{length:1/0,offset:0};return[t.length,t.offset,e.resolvedUri].join(",")},xL=function(e){return e.resolvedUri},kL=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(q_e).join(""),i=t.slice(a*n,a*n+n).map(G_e).join(""),s+=r+" "+i+`
|
||
`;return s},Y_e=({bytes:e})=>kL(e),X_e=e=>{let t="",n;for(n=0;n<e.length;n++)t+=W_e(e,n)+" ";return t};var Q_e=Object.freeze({__proto__:null,createTransferableMessage:EL,initSegmentId:Em,segmentKeyId:xL,hexDump:kL,tagDump:Y_e,textRanges:X_e});const IL=.25,J_e=(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)},Z_e=e=>e.transmuxedPresentationEnd-e.transmuxedPresentationStart-e.transmuxerPrependedSeconds,e1e=(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<s.dateTimeObject)return null;for(let l=0;l<t.segments.length-1;l++){s=t.segments[l];const u=t.segments[l+1].dateTimeObject;if(n<u)break}const r=t.segments[t.segments.length-1],i=r.dateTimeObject,a=r.videoTimingInfo?Z_e(r.videoTimingInfo):r.duration+r.duration*IL,o=new Date(i.getTime()+a*1e3);return n>o?null:(n>i&&(s=r),{segment:s,estimatedStart:s.videoTimingInfo?s.videoTimingInfo.transmuxedPresentationStart:Ws.duration(t,t.mediaSequence+t.segments.indexOf(s)),type:s.videoTimingInfo?"accurate":"estimate"})},t1e=(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*IL)return null;s=r}return{segment:s,estimatedStart:s.videoTimingInfo?s.videoTimingInfo.transmuxedPresentationStart:n-s.duration,type:s.videoTimingInfo?"accurate":"estimate"}},n1e=(e,t)=>{let n,s;try{n=new Date(e),s=new Date(t)}catch{}const r=n.getTime();return(s.getTime()-r)/1e3},s1e=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},r1e=({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=t1e(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=J_e(t,s.segment);return i&&(r.programDateTime=i.toISOString()),n(null,r)},OL=({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(!s1e(t))return a({message:"programDateTime tags must be provided in the manifest "+t.resolvedUri});const o=e1e(e,t);if(!o)return a({message:`${e} was not found in the stream`});const l=o.segment,u=n1e(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",()=>{OL({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)},y0=(e,t)=>{if(e.readyState===4)return t()},i1e=(e,t,n)=>{let s=[],r,i=!1;const a=function(c,f,h,p){return f.abort(),i=!0,n(c,f,h,p)},o=function(c,f){if(i)return;if(c)return a(c,f,"",s);const h=f.responseText.substring(s&&s.byteLength||0,f.responseText.length);if(s=p0e(s,uM(h,!0)),r=r||Fc(s),s.length<10||r&&s.length<r+2)return y0(f,()=>a(c,f,"",s));const p=gT(s);return p==="ts"&&s.length<188?y0(f,()=>a(c,f,"",s)):!p&&s.length<376?y0(f,()=>a(c,f,"",s)):a(null,f,p,s)},u=t({uri:e,beforeSend(c){c.overrideMimeType("text/plain; charset=x-user-defined"),c.addEventListener("progress",function({total:f,loaded:h}){return Ib(c,null,{statusCode:c.status},o)})}},function(c,f){return Ib(u,c,f,o)});return u},{EventTarget:a1e}=je,G2=function(e,t){if(!SL(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},o1e=({mainXml:e,srcUrl:t,clientOffset:n,sidxMapping:s,previousManifest:r})=>{const i=Lye(e,{manifestUri:t,clientOffset:n,sidxMapping:s,previousManifest:r});return _L(i,t),i},l1e=(e,t,n)=>{let s=!0,r=wn(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=Og(a.sidx);n&&n[l]&&n[l].sidx&&hT(a,n[l].sidx,a.sidx.resolvedUri)}const o=xb(r,a,G2);o&&(r=o,s=!1)}return Bf(t,(i,a,o,l)=>{if(i.playlists&&i.playlists.length){const u=i.playlists[0].id,c=xb(r,i.playlists[0],G2);c&&(r=c,r.mediaGroups[a][o][l].playlists[0]=r.playlists[u],s=!1)}}),t.minimumUpdatePeriod!==e.minimumUpdatePeriod&&(s=!1),s?null:r},u1e=(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,Y2=(e,t)=>{const n={};for(const s in e){const i=e[s].sidx;if(i){const a=Og(i);if(!t[a])break;const o=t[a].sidxInfo;u1e(o,i)&&(n[a]=t[a])}}return n},c1e=(e,t)=>{let s=Y2(e.playlists,t);return Bf(e,(r,i,a,o)=>{if(r.playlists&&r.playlists.length){const l=r.playlists;s=wn(s,Y2(l,t))}}),s};class Ab extends a1e{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,!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_=ai("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},s&&(this.state=s),this.trigger("error"),!0}addSidxSegments_(t,n,s){const r=t.sidx&&Og(t.sidx);if(!t.sidx||!r||this.mainPlaylistLoader_.sidxMapping_[r]){this.mediaRequest_=ye.setTimeout(()=>s(!1),0);return}const i=Cm(t.sidx.resolvedUri),a=(o,l)=>{if(this.requestErrored_(o,l,n))return;const u=this.mainPlaylistLoader_.sidxMapping_;let c;try{c=Uye(Bt(l.response).subarray(8))}catch(f){this.requestErrored_(f,l,n);return}return u[r]={sidxInfo:t.sidx,sidx:c},hT(t,c,t.sidx.resolvedUri),s(!0)};this.request=i1e(i,this.vhs_.xhr,(o,l,u,c)=>{if(o)return a(o,l);if(!u||u!=="mp4")return a({status:l.status,message:`Unsupported ${u||"unknown"} container type for sidx segment at URL: ${i}`,response:"",playlist:t,internal:!0,playlistExclusionDuration:1/0,code:2},l);const{offset:f,length:h}=t.sidx.byterange;if(c.length>=h+f)return a(o,{response:c.subarray(f,f+h),status:l.status,uri:l.uri});this.request=this.vhs_.xhr({uri:i,responseType:"arraybuffer",headers:Ob({byterange:t.sidx.byterange})},a)})}dispose(){this.trigger("dispose"),this.stopRequest(),this.loadedPlaylists_={},ye.clearTimeout(this.minimumUpdatePeriodTimeout_),ye.clearTimeout(this.mediaRequest_),ye.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(),ye.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.isMain_&&(ye.clearTimeout(this.mainPlaylistLoader_.minimumUpdatePeriodTimeout_),this.mainPlaylistLoader_.minimumUpdatePeriodTimeout_=null),this.state==="HAVE_NOTHING"&&(this.started=!1)}load(t){ye.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null;const n=this.media();if(t){const s=n?n.targetDuration/2*1e3:5e3;this.mediaUpdateTimeout=ye.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_=ye.setTimeout(()=>this.haveMain_(),0);return}this.requestMain_((t,n)=>{this.haveMain_(),!this.hasPendingRequest()&&!this.media_&&this.media(this.mainPlaylistLoader_.main.playlists[0])})}requestMain_(t){this.request=this.vhs_.xhr({uri:this.mainPlaylistLoader_.srcUrl,withCredentials:this.withCredentials},(n,s)=>{if(this.requestErrored_(n,s)){this.state==="HAVE_NOTHING"&&(this.started=!1);return}const r=s.responseText!==this.mainPlaylistLoader_.mainXml_;if(this.mainPlaylistLoader_.mainXml_=s.responseText,s.responseHeaders&&s.responseHeaders.date?this.mainLoaded_=Date.parse(s.responseHeaders.date):this.mainLoaded_=Date.now(),this.mainPlaylistLoader_.srcUrl=Cm(this.mainPlaylistLoader_.srcUrl,s),r){this.handleMain_(),this.syncClientServerClock_(()=>t(s,r));return}return t(s,r)})}syncClientServerClock_(t){const n=Dye(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:zr(this.mainPlaylistLoader_.srcUrl,n.value),method:n.method,withCredentials:this.withCredentials},(s,r)=>{if(!this.request)return;if(s)return 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;let n=o1e({mainXml:this.mainPlaylistLoader_.mainXml_,srcUrl:this.mainPlaylistLoader_.srcUrl,clientOffset:this.mainPlaylistLoader_.clientOffset_,sidxMapping:this.mainPlaylistLoader_.sidxMapping_,previousManifest:t});t&&(n=l1e(t,n,this.mainPlaylistLoader_.sidxMapping_)),this.mainPlaylistLoader_.main=n||t;const s=this.mainPlaylistLoader_.main.locations&&this.mainPlaylistLoader_.main.locations[0];return s&&s!==this.mainPlaylistLoader_.srcUrl&&(this.mainPlaylistLoader_.srcUrl=s),(!t||n&&n.minimumUpdatePeriod!==t.minimumUpdatePeriod)&&this.updateMinimumUpdatePeriodTimeout_(),!!n}updateMinimumUpdatePeriodTimeout_(){const t=this.mainPlaylistLoader_;t.createMupOnMedia_&&(t.off("loadedmetadata",t.createMupOnMedia_),t.createMupOnMedia_=null),t.minimumUpdatePeriodTimeout_&&(ye.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_=ye.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_=c1e(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=ye.setTimeout(()=>{this.trigger("mediaupdatetimeout"),r()},kb(this.media(),!!s)))};r()}this.trigger("loadedplaylist")}}var is={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 d1e=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},AL=function(e){return e.on=e.addEventListener,e.off=e.removeEventListener,e},f1e=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())}},PL=function(e){return function(){const t=f1e(e),n=AL(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}},$L=function(e){return`var browserWorkerPolyFill = ${AL.toString()};
|
||
browserWorkerPolyFill(self);
|
||
`+e},NL=function(e){return e.toString().replace(/^function.+?{/,"").slice(0,-1)},h1e=$L(NL(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 b={};this.on=function(x,O){b[x]||(b[x]=[]),b[x]=b[x].concat(O)},this.off=function(x,O){var A;return b[x]?(A=b[x].indexOf(O),b[x]=b[x].slice(),b[x].splice(A,1),A>-1):!1},this.trigger=function(x){var O,A,F,q;if(O=b[x],!!O)if(arguments.length===2)for(F=O.length,A=0;A<F;++A)O[A].call(this,arguments[1]);else{for(q=[],A=arguments.length,A=1;A<arguments.length;++A)q.push(arguments[A]);for(F=O.length,A=0;A<F;++A)O[A].apply(this,q)}},this.dispose=function(){b={}}}};t.prototype.pipe=function(b){return this.on("data",function(x){b.push(x)}),this.on("done",function(x){b.flush(x)}),this.on("partialdone",function(x){b.partialFlush(x)}),this.on("endedtimeline",function(x){b.endTimeline(x)}),this.on("reset",function(x){b.reset(x)}),b},t.prototype.push=function(b){this.trigger("data",b)},t.prototype.flush=function(b){this.trigger("done",b)},t.prototype.partialFlush=function(b){this.trigger("partialdone",b)},t.prototype.endTimeline=function(b){this.trigger("endedtimeline",b)},t.prototype.reset=function(b){this.trigger("reset",b)};var n=t,s=Math.pow(2,32),r=function(b){var x=new DataView(b.buffer,b.byteOffset,b.byteLength),O;return x.getBigUint64?(O=x.getBigUint64(0),O<Number.MAX_SAFE_INTEGER?Number(O):O):x.getUint32(0)*s+x.getUint32(4)},i={getUint64:r,MAX_UINT32:s},a=i.MAX_UINT32,o,l,u,c,f,h,p,g,m,y,v,_,w,T,S,E,$,P,U,H,z,W,D,V,X,Y,B,K,L,Q,ee,te,ie,_e,ue,oe;(function(){var b;if(D={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(b in D)D.hasOwnProperty(b)&&(D[b]=[b.charCodeAt(0),b.charCodeAt(1),b.charCodeAt(2),b.charCodeAt(3)]);V=new Uint8Array(["i".charCodeAt(0),"s".charCodeAt(0),"o".charCodeAt(0),"m".charCodeAt(0)]),Y=new Uint8Array(["a".charCodeAt(0),"v".charCodeAt(0),"c".charCodeAt(0),"1".charCodeAt(0)]),X=new Uint8Array([0,0,0,1]),B=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]),K=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]),L={video:B,audio:K},te=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),ee=new Uint8Array([0,0,0,0,0,0,0,0]),ie=new Uint8Array([0,0,0,0,0,0,0,0]),_e=ie,ue=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),oe=ie,Q=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}})(),o=function(b){var x=[],O=0,A,F,q;for(A=1;A<arguments.length;A++)x.push(arguments[A]);for(A=x.length;A--;)O+=x[A].byteLength;for(F=new Uint8Array(O+8),q=new DataView(F.buffer,F.byteOffset,F.byteLength),q.setUint32(0,F.byteLength),F.set(b,4),A=0,O=8;A<x.length;A++)F.set(x[A],O),O+=x[A].byteLength;return F},l=function(){return o(D.dinf,o(D.dref,te))},u=function(b){return o(D.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,b.audioobjecttype<<3|b.samplingfrequencyindex>>>1,b.samplingfrequencyindex<<7|b.channelcount<<3,6,1,2]))},c=function(){return o(D.ftyp,V,X,V,Y)},E=function(b){return o(D.hdlr,L[b])},f=function(b){return o(D.mdat,b)},S=function(b){var x=new Uint8Array([0,0,0,0,0,0,0,2,0,0,0,3,0,1,95,144,b.duration>>>24&255,b.duration>>>16&255,b.duration>>>8&255,b.duration&255,85,196,0,0]);return b.samplerate&&(x[12]=b.samplerate>>>24&255,x[13]=b.samplerate>>>16&255,x[14]=b.samplerate>>>8&255,x[15]=b.samplerate&255),o(D.mdhd,x)},T=function(b){return o(D.mdia,S(b),E(b.type),p(b))},h=function(b){return o(D.mfhd,new Uint8Array([0,0,0,0,(b&4278190080)>>24,(b&16711680)>>16,(b&65280)>>8,b&255]))},p=function(b){return o(D.minf,b.type==="video"?o(D.vmhd,Q):o(D.smhd,ee),l(),P(b))},g=function(b,x){for(var O=[],A=x.length;A--;)O[A]=H(x[A]);return o.apply(null,[D.moof,h(b)].concat(O))},m=function(b){for(var x=b.length,O=[];x--;)O[x]=_(b[x]);return o.apply(null,[D.moov,v(4294967295)].concat(O).concat(y(b)))},y=function(b){for(var x=b.length,O=[];x--;)O[x]=z(b[x]);return o.apply(null,[D.mvex].concat(O))},v=function(b){var x=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,2,0,1,95,144,(b&4278190080)>>24,(b&16711680)>>16,(b&65280)>>8,b&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(D.mvhd,x)},$=function(b){var x=b.samples||[],O=new Uint8Array(4+x.length),A,F;for(F=0;F<x.length;F++)A=x[F].flags,O[F+4]=A.dependsOn<<4|A.isDependedOn<<2|A.hasRedundancy;return o(D.sdtp,O)},P=function(b){return o(D.stbl,U(b),o(D.stts,oe),o(D.stsc,_e),o(D.stsz,ue),o(D.stco,ie))},function(){var b,x;U=function(O){return o(D.stsd,new Uint8Array([0,0,0,0,0,0,0,1]),O.type==="video"?b(O):x(O))},b=function(O){var A=O.sps||[],F=O.pps||[],q=[],se=[],ce,fe;for(ce=0;ce<A.length;ce++)q.push((A[ce].byteLength&65280)>>>8),q.push(A[ce].byteLength&255),q=q.concat(Array.prototype.slice.call(A[ce]));for(ce=0;ce<F.length;ce++)se.push((F[ce].byteLength&65280)>>>8),se.push(F[ce].byteLength&255),se=se.concat(Array.prototype.slice.call(F[ce]));if(fe=[D.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,(O.width&65280)>>8,O.width&255,(O.height&65280)>>8,O.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(D.avcC,new Uint8Array([1,O.profileIdc,O.profileCompatibility,O.levelIdc,255].concat([A.length],q,[F.length],se))),o(D.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192]))],O.sarRatio){var be=O.sarRatio[0],Me=O.sarRatio[1];fe.push(o(D.pasp,new Uint8Array([(be&4278190080)>>24,(be&16711680)>>16,(be&65280)>>8,be&255,(Me&4278190080)>>24,(Me&16711680)>>16,(Me&65280)>>8,Me&255])))}return o.apply(null,fe)},x=function(O){return o(D.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,(O.channelcount&65280)>>8,O.channelcount&255,(O.samplesize&65280)>>8,O.samplesize&255,0,0,0,0,(O.samplerate&65280)>>8,O.samplerate&255,0,0]),u(O))}}(),w=function(b){var x=new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,(b.id&4278190080)>>24,(b.id&16711680)>>16,(b.id&65280)>>8,b.id&255,0,0,0,0,(b.duration&4278190080)>>24,(b.duration&16711680)>>16,(b.duration&65280)>>8,b.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,(b.width&65280)>>8,b.width&255,0,0,(b.height&65280)>>8,b.height&255,0,0]);return o(D.tkhd,x)},H=function(b){var x,O,A,F,q,se,ce;return x=o(D.tfhd,new Uint8Array([0,0,0,58,(b.id&4278190080)>>24,(b.id&16711680)>>16,(b.id&65280)>>8,b.id&255,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0])),se=Math.floor(b.baseMediaDecodeTime/a),ce=Math.floor(b.baseMediaDecodeTime%a),O=o(D.tfdt,new Uint8Array([1,0,0,0,se>>>24&255,se>>>16&255,se>>>8&255,se&255,ce>>>24&255,ce>>>16&255,ce>>>8&255,ce&255])),q=32+20+8+16+8+8,b.type==="audio"?(A=W(b,q),o(D.traf,x,O,A)):(F=$(b),A=W(b,F.length+q),o(D.traf,x,O,A,F))},_=function(b){return b.duration=b.duration||4294967295,o(D.trak,w(b),T(b))},z=function(b){var x=new Uint8Array([0,0,0,0,(b.id&4278190080)>>24,(b.id&16711680)>>16,(b.id&65280)>>8,b.id&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return b.type!=="video"&&(x[x.length-1]=0),o(D.trex,x)},function(){var b,x,O;O=function(A,F){var q=0,se=0,ce=0,fe=0;return A.length&&(A[0].duration!==void 0&&(q=1),A[0].size!==void 0&&(se=2),A[0].flags!==void 0&&(ce=4),A[0].compositionTimeOffset!==void 0&&(fe=8)),[0,0,q|se|ce|fe,1,(A.length&4278190080)>>>24,(A.length&16711680)>>>16,(A.length&65280)>>>8,A.length&255,(F&4278190080)>>>24,(F&16711680)>>>16,(F&65280)>>>8,F&255]},x=function(A,F){var q,se,ce,fe,be,Me;for(fe=A.samples||[],F+=8+12+16*fe.length,ce=O(fe,F),se=new Uint8Array(ce.length+fe.length*16),se.set(ce),q=ce.length,Me=0;Me<fe.length;Me++)be=fe[Me],se[q++]=(be.duration&4278190080)>>>24,se[q++]=(be.duration&16711680)>>>16,se[q++]=(be.duration&65280)>>>8,se[q++]=be.duration&255,se[q++]=(be.size&4278190080)>>>24,se[q++]=(be.size&16711680)>>>16,se[q++]=(be.size&65280)>>>8,se[q++]=be.size&255,se[q++]=be.flags.isLeading<<2|be.flags.dependsOn,se[q++]=be.flags.isDependedOn<<6|be.flags.hasRedundancy<<4|be.flags.paddingValue<<1|be.flags.isNonSyncSample,se[q++]=be.flags.degradationPriority&240<<8,se[q++]=be.flags.degradationPriority&15,se[q++]=(be.compositionTimeOffset&4278190080)>>>24,se[q++]=(be.compositionTimeOffset&16711680)>>>16,se[q++]=(be.compositionTimeOffset&65280)>>>8,se[q++]=be.compositionTimeOffset&255;return o(D.trun,se)},b=function(A,F){var q,se,ce,fe,be,Me;for(fe=A.samples||[],F+=8+12+8*fe.length,ce=O(fe,F),q=new Uint8Array(ce.length+fe.length*8),q.set(ce),se=ce.length,Me=0;Me<fe.length;Me++)be=fe[Me],q[se++]=(be.duration&4278190080)>>>24,q[se++]=(be.duration&16711680)>>>16,q[se++]=(be.duration&65280)>>>8,q[se++]=be.duration&255,q[se++]=(be.size&4278190080)>>>24,q[se++]=(be.size&16711680)>>>16,q[se++]=(be.size&65280)>>>8,q[se++]=be.size&255;return o(D.trun,q)},W=function(A,F){return A.type==="audio"?b(A,F):x(A,F)}}();var de={ftyp:c,mdat:f,moof:g,moov:m,initSegment:function(b){var x=c(),O=m(b),A;return A=new Uint8Array(x.byteLength+O.byteLength),A.set(x),A.set(O,x.byteLength),A}},ae=function(b){var x,O,A=[],F=[];for(F.byteLength=0,F.nalCount=0,F.duration=0,A.byteLength=0,x=0;x<b.length;x++)O=b[x],O.nalUnitType==="access_unit_delimiter_rbsp"?(A.length&&(A.duration=O.dts-A.dts,F.byteLength+=A.byteLength,F.nalCount+=A.length,F.duration+=A.duration,F.push(A)),A=[O],A.byteLength=O.data.byteLength,A.pts=O.pts,A.dts=O.dts):(O.nalUnitType==="slice_layer_without_partitioning_rbsp_idr"&&(A.keyFrame=!0),A.duration=O.dts-A.dts,A.byteLength+=O.data.byteLength,A.push(O));return F.length&&(!A.duration||A.duration<=0)&&(A.duration=F[F.length-1].duration),F.byteLength+=A.byteLength,F.nalCount+=A.length,F.duration+=A.duration,F.push(A),F},Ie=function(b){var x,O,A=[],F=[];for(A.byteLength=0,A.nalCount=0,A.duration=0,A.pts=b[0].pts,A.dts=b[0].dts,F.byteLength=0,F.nalCount=0,F.duration=0,F.pts=b[0].pts,F.dts=b[0].dts,x=0;x<b.length;x++)O=b[x],O.keyFrame?(A.length&&(F.push(A),F.byteLength+=A.byteLength,F.nalCount+=A.nalCount,F.duration+=A.duration),A=[O],A.nalCount=O.length,A.byteLength=O.byteLength,A.pts=O.pts,A.dts=O.dts,A.duration=O.duration):(A.duration+=O.duration,A.nalCount+=O.length,A.byteLength+=O.byteLength,A.push(O));return F.length&&A.duration<=0&&(A.duration=F[F.length-1].duration),F.byteLength+=A.byteLength,F.nalCount+=A.nalCount,F.duration+=A.duration,F.push(A),F},ke=function(b){var x;return!b[0][0].keyFrame&&b.length>1&&(x=b.shift(),b.byteLength-=x.byteLength,b.nalCount-=x.nalCount,b[0][0].dts=x.dts,b[0][0].pts=x.pts,b[0][0].duration+=x.duration),b},Ee=function(){return{size:0,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0,degradationPriority:0,isNonSyncSample:1}}},J=function(b,x){var O=Ee();return O.dataOffset=x,O.compositionTimeOffset=b.pts-b.dts,O.duration=b.duration,O.size=4*b.length,O.size+=b.byteLength,b.keyFrame&&(O.flags.dependsOn=2,O.flags.isNonSyncSample=0),O},re=function(b,x){var O,A,F,q,se,ce=x||0,fe=[];for(O=0;O<b.length;O++)for(q=b[O],A=0;A<q.length;A++)se=q[A],F=J(se,ce),ce+=F.size,fe.push(F);return fe},Se=function(b){var x,O,A,F,q,se,ce=0,fe=b.byteLength,be=b.nalCount,Me=fe+4*be,We=new Uint8Array(Me),kt=new DataView(We.buffer);for(x=0;x<b.length;x++)for(F=b[x],O=0;O<F.length;O++)for(q=F[O],A=0;A<q.length;A++)se=q[A],kt.setUint32(ce,se.data.byteLength),ce+=4,We.set(se.data,ce),ce+=se.data.byteLength;return We},Ae=function(b,x){var O,A=x||0,F=[];return O=J(b,A),F.push(O),F},Be=function(b){var x,O,A=0,F=b.byteLength,q=b.length,se=F+4*q,ce=new Uint8Array(se),fe=new DataView(ce.buffer);for(x=0;x<b.length;x++)O=b[x],fe.setUint32(A,O.data.byteLength),A+=4,ce.set(O.data,A),A+=O.data.byteLength;return ce},Pe={groupNalsIntoFrames:ae,groupFramesIntoGops:Ie,extendFirstKeyFrame:ke,generateSampleTable:re,concatenateNalData:Se,generateSampleTableForFrame:Ae,concatenateNalDataForFrame:Be},Ve=[33,16,5,32,164,27],$e=[33,65,108,84,1,2,4,8,168,2,4,8,17,191,252],Te=function(b){for(var x=[];b--;)x.push(0);return x},De=function(b){return Object.keys(b).reduce(function(x,O){return x[O]=new Uint8Array(b[O].reduce(function(A,F){return A.concat(F)},[])),x},{})},qe,Je=function(){if(!qe){var b={96e3:[Ve,[227,64],Te(154),[56]],88200:[Ve,[231],Te(170),[56]],64e3:[Ve,[248,192],Te(240),[56]],48e3:[Ve,[255,192],Te(268),[55,148,128],Te(54),[112]],44100:[Ve,[255,192],Te(268),[55,163,128],Te(84),[112]],32e3:[Ve,[255,192],Te(268),[55,234],Te(226),[112]],24e3:[Ve,[255,192],Te(268),[55,255,128],Te(268),[111,112],Te(126),[224]],16e3:[Ve,[255,192],Te(268),[55,255,128],Te(268),[111,255],Te(269),[223,108],Te(195),[1,192]],12e3:[$e,Te(268),[3,127,248],Te(268),[6,255,240],Te(268),[13,255,224],Te(268),[27,253,128],Te(259),[56]],11025:[$e,Te(268),[3,127,248],Te(268),[6,255,240],Te(268),[13,255,224],Te(268),[27,255,192],Te(268),[55,175,128],Te(108),[112]],8e3:[$e,Te(268),[3,121,16],Te(47),[7]]};qe=De(b)}return qe},et=9e4,Re,Xe,ct,wt,Pt,ut,Ce;Re=function(b){return b*et},Xe=function(b,x){return b*x},ct=function(b){return b/et},wt=function(b,x){return b/x},Pt=function(b,x){return Re(wt(b,x))},ut=function(b,x){return Xe(ct(b),x)},Ce=function(b,x,O){return ct(O?b:b-x)};var pe={ONE_SECOND_IN_TS:et,secondsToVideoTs:Re,secondsToAudioTs:Xe,videoTsToSeconds:ct,audioTsToSeconds:wt,audioTsToVideoTs:Pt,videoTsToAudioTs:ut,metadataTsToSeconds:Ce},ge=Je,Ne=pe,ne=function(b){var x,O,A=0;for(x=0;x<b.length;x++)O=b[x],A+=O.data.byteLength;return A},Ye=function(b,x,O,A){var F,q=0,se=0,ce=0,fe=0,be,Me,We;if(x.length&&(F=Ne.audioTsToVideoTs(b.baseMediaDecodeTime,b.samplerate),q=Math.ceil(Ne.ONE_SECOND_IN_TS/(b.samplerate/1024)),O&&A&&(se=F-Math.max(O,A),ce=Math.floor(se/q),fe=ce*q),!(ce<1||fe>Ne.ONE_SECOND_IN_TS/2))){for(be=ge()[b.samplerate],be||(be=x[0].data),Me=0;Me<ce;Me++)We=x[0],x.splice(0,0,{data:be,dts:We.dts-q,pts:We.pts-q});return b.baseMediaDecodeTime-=Math.floor(Ne.videoTsToAudioTs(fe,b.samplerate)),fe}},_t=function(b,x,O){return x.minSegmentDts>=O?b:(x.minSegmentDts=1/0,b.filter(function(A){return A.dts>=O?(x.minSegmentDts=Math.min(x.minSegmentDts,A.dts),x.minSegmentPts=x.minSegmentDts,!0):!1}))},Ft=function(b){var x,O,A=[];for(x=0;x<b.length;x++)O=b[x],A.push({size:O.data.byteLength,duration:1024});return A},Pn=function(b){var x,O,A=0,F=new Uint8Array(ne(b));for(x=0;x<b.length;x++)O=b[x],F.set(O.data,A),A+=O.data.byteLength;return F},mn={prefixWithSilence:Ye,trimAdtsFramesByEarliestDts:_t,generateSampleTable:Ft,concatenateFrameData:Pn},Vs=pe.ONE_SECOND_IN_TS,Jn=function(b,x){typeof x.pts=="number"&&(b.timelineStartInfo.pts===void 0&&(b.timelineStartInfo.pts=x.pts),b.minSegmentPts===void 0?b.minSegmentPts=x.pts:b.minSegmentPts=Math.min(b.minSegmentPts,x.pts),b.maxSegmentPts===void 0?b.maxSegmentPts=x.pts:b.maxSegmentPts=Math.max(b.maxSegmentPts,x.pts)),typeof x.dts=="number"&&(b.timelineStartInfo.dts===void 0&&(b.timelineStartInfo.dts=x.dts),b.minSegmentDts===void 0?b.minSegmentDts=x.dts:b.minSegmentDts=Math.min(b.minSegmentDts,x.dts),b.maxSegmentDts===void 0?b.maxSegmentDts=x.dts:b.maxSegmentDts=Math.max(b.maxSegmentDts,x.dts))},xe=function(b){delete b.minSegmentDts,delete b.maxSegmentDts,delete b.minSegmentPts,delete b.maxSegmentPts},Ge=function(b,x){var O,A,F=b.minSegmentDts;return x||(F-=b.timelineStartInfo.dts),O=b.timelineStartInfo.baseMediaDecodeTime,O+=F,O=Math.max(0,O),b.type==="audio"&&(A=b.samplerate/Vs,O*=A,O=Math.floor(O)),O},mt={clearDtsInfo:xe,calculateTrackBaseMediaDecodeTime:Ge,collectDtsInfo:Jn},Ut=4,Hn=128,Ue=function(b){for(var x=0,O={payloadType:-1,payloadSize:0},A=0,F=0;x<b.byteLength&&b[x]!==Hn;){for(;b[x]===255;)A+=255,x++;for(A+=b[x++];b[x]===255;)F+=255,x++;if(F+=b[x++],!O.payload&&A===Ut){var q=String.fromCharCode(b[x+3],b[x+4],b[x+5],b[x+6]);if(q==="GA94"){O.payloadType=A,O.payloadSize=F,O.payload=b.subarray(x,x+F);break}else O.payload=void 0}x+=F,A=0,F=0}return O},ft=function(b){return b.payload[0]!==181||(b.payload[1]<<8|b.payload[2])!==49||String.fromCharCode(b.payload[3],b.payload[4],b.payload[5],b.payload[6])!=="GA94"||b.payload[7]!==3?null:b.payload.subarray(8,b.payload.length-1)},Dt=function(b,x){var O=[],A,F,q,se;if(!(x[0]&64))return O;for(F=x[0]&31,A=0;A<F;A++)q=A*3,se={type:x[q+2]&3,pts:b},x[q+2]&4&&(se.ccData=x[q+3]<<8|x[q+4],O.push(se));return O},qt=function(b){for(var x=b.byteLength,O=[],A=1,F,q;A<x-2;)b[A]===0&&b[A+1]===0&&b[A+2]===3?(O.push(A+2),A+=2):A++;if(O.length===0)return b;F=x-O.length,q=new Uint8Array(F);var se=0;for(A=0;A<F;se++,A++)se===O[0]&&(se++,O.shift()),q[A]=b[se];return q},zn={parseSei:Ue,parseUserData:ft,parseCaptionPackets:Dt,discardEmulationPreventionBytes:qt,USER_DATA_REGISTERED_ITU_T_T35:Ut},ws=n,Ln=zn,Bn=function(b){b=b||{},Bn.prototype.init.call(this),this.parse708captions_=typeof b.parse708captions=="boolean"?b.parse708captions:!0,this.captionPackets_=[],this.ccStreams_=[new $n(0,0),new $n(0,1),new $n(1,0),new $n(1,1)],this.parse708captions_&&(this.cc708Stream_=new Tn({captionServices:b.captionServices})),this.reset(),this.ccStreams_.forEach(function(x){x.on("data",this.trigger.bind(this,"data")),x.on("partialdone",this.trigger.bind(this,"partialdone")),x.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")))};Bn.prototype=new ws,Bn.prototype.push=function(b){var x,O,A;if(b.nalUnitType==="sei_rbsp"&&(x=Ln.parseSei(b.escapedRBSP),!!x.payload&&x.payloadType===Ln.USER_DATA_REGISTERED_ITU_T_T35&&(O=Ln.parseUserData(x),!!O))){if(b.dts<this.latestDts_){this.ignoreNextEqualDts_=!0;return}else if(b.dts===this.latestDts_&&this.ignoreNextEqualDts_){this.numSameDts_--,this.numSameDts_||(this.ignoreNextEqualDts_=!1);return}A=Ln.parseCaptionPackets(b.pts,O),this.captionPackets_=this.captionPackets_.concat(A),this.latestDts_!==b.dts&&(this.numSameDts_=0),this.numSameDts_++,this.latestDts_=b.dts}},Bn.prototype.flushCCStreams=function(b){this.ccStreams_.forEach(function(x){return b==="flush"?x.flush():x.partialFlush()},this)},Bn.prototype.flushStream=function(b){if(!this.captionPackets_.length){this.flushCCStreams(b);return}this.captionPackets_.forEach(function(x,O){x.presortIndex=O}),this.captionPackets_.sort(function(x,O){return x.pts===O.pts?x.presortIndex-O.presortIndex:x.pts-O.pts}),this.captionPackets_.forEach(function(x){x.type<2?this.dispatchCea608Packet(x):this.dispatchCea708Packet(x)},this),this.captionPackets_.length=0,this.flushCCStreams(b)},Bn.prototype.flush=function(){return this.flushStream("flush")},Bn.prototype.partialFlush=function(){return this.flushStream("partialFlush")},Bn.prototype.reset=function(){this.latestDts_=null,this.ignoreNextEqualDts_=!1,this.numSameDts_=0,this.activeCea608Channel_=[null,null],this.ccStreams_.forEach(function(b){b.reset()})},Bn.prototype.dispatchCea608Packet=function(b){this.setsTextOrXDSActive(b)?this.activeCea608Channel_[b.type]=null:this.setsChannel1Active(b)?this.activeCea608Channel_[b.type]=0:this.setsChannel2Active(b)&&(this.activeCea608Channel_[b.type]=1),this.activeCea608Channel_[b.type]!==null&&this.ccStreams_[(b.type<<1)+this.activeCea608Channel_[b.type]].push(b)},Bn.prototype.setsChannel1Active=function(b){return(b.ccData&30720)===4096},Bn.prototype.setsChannel2Active=function(b){return(b.ccData&30720)===6144},Bn.prototype.setsTextOrXDSActive=function(b){return(b.ccData&28928)===256||(b.ccData&30974)===4138||(b.ccData&30974)===6186},Bn.prototype.dispatchCea708Packet=function(b){this.parse708captions_&&this.cc708Stream_.push(b)};var aD={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},oD=function(b){var x=aD[b]||b;return b&4096&&b===x?"":String.fromCharCode(x)},Uf=function(b){return 32<=b&&b<=127||160<=b&&b<=255},Fi=function(b){this.windowNum=b,this.reset()};Fi.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},Fi.prototype.getText=function(){return this.rows.join(`
|
||
`)},Fi.prototype.clearText=function(){this.rows=[""],this.rowIdx=0},Fi.prototype.newLine=function(b){for(this.rows.length>=this.virtualRowCount&&typeof this.beforeRowOverflow=="function"&&this.beforeRowOverflow(b),this.rows.length>0&&(this.rows.push(""),this.rowIdx++);this.rows.length>this.virtualRowCount;)this.rows.shift(),this.rowIdx--},Fi.prototype.isEmpty=function(){return this.rows.length===0?!0:this.rows.length===1?this.rows[0]==="":!1},Fi.prototype.addText=function(b){this.rows[this.rowIdx]+=b},Fi.prototype.backspace=function(){if(!this.isEmpty()){var b=this.rows[this.rowIdx];this.rows[this.rowIdx]=b.substr(0,b.length-1)}};var Hf=function(b,x,O){this.serviceNum=b,this.text="",this.currentWindow=new Fi(-1),this.windows=[],this.stream=O,typeof x=="string"&&this.createTextDecoder(x)};Hf.prototype.init=function(b,x){this.startPts=b;for(var O=0;O<8;O++)this.windows[O]=new Fi(O),typeof x=="function"&&(this.windows[O].beforeRowOverflow=x)},Hf.prototype.setCurrentWindow=function(b){this.currentWindow=this.windows[b]},Hf.prototype.createTextDecoder=function(b){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(b)}catch(x){this.stream.trigger("log",{level:"warn",message:"TextDecoder could not be created with "+b+" encoding. "+x})}};var Tn=function(b){b=b||{},Tn.prototype.init.call(this);var x=this,O=b.captionServices||{},A={},F;Object.keys(O).forEach(q=>{F=O[q],/^SERVICE/.test(q)&&(A[q]=F.encoding)}),this.serviceEncodings=A,this.current708Packet=null,this.services={},this.push=function(q){q.type===3?(x.new708Packet(),x.add708Bytes(q)):(x.current708Packet===null&&x.new708Packet(),x.add708Bytes(q))}};Tn.prototype=new ws,Tn.prototype.new708Packet=function(){this.current708Packet!==null&&this.push708Packet(),this.current708Packet={data:[],ptsVals:[]}},Tn.prototype.add708Bytes=function(b){var x=b.ccData,O=x>>>8,A=x&255;this.current708Packet.ptsVals.push(b.pts),this.current708Packet.data.push(O),this.current708Packet.data.push(A)},Tn.prototype.push708Packet=function(){var b=this.current708Packet,x=b.data,O=null,A=null,F=0,q=x[F++];for(b.seq=q>>6,b.sizeCode=q&63;F<x.length;F++)q=x[F++],O=q>>5,A=q&31,O===7&&A>0&&(q=x[F++],O=q),this.pushServiceBlock(O,F,A),A>0&&(F+=A-1)},Tn.prototype.pushServiceBlock=function(b,x,O){var A,F=x,q=this.current708Packet.data,se=this.services[b];for(se||(se=this.initService(b,F));F<x+O&&F<q.length;F++)A=q[F],Uf(A)?F=this.handleText(F,se):A===24?F=this.multiByteCharacter(F,se):A===16?F=this.extendedCommands(F,se):128<=A&&A<=135?F=this.setCurrentWindow(F,se):152<=A&&A<=159?F=this.defineWindow(F,se):A===136?F=this.clearWindows(F,se):A===140?F=this.deleteWindows(F,se):A===137?F=this.displayWindows(F,se):A===138?F=this.hideWindows(F,se):A===139?F=this.toggleWindows(F,se):A===151?F=this.setWindowAttributes(F,se):A===144?F=this.setPenAttributes(F,se):A===145?F=this.setPenColor(F,se):A===146?F=this.setPenLocation(F,se):A===143?se=this.reset(F,se):A===8?se.currentWindow.backspace():A===12?se.currentWindow.clearText():A===13?se.currentWindow.pendingNewLine=!0:A===14?se.currentWindow.clearText():A===141&&F++},Tn.prototype.extendedCommands=function(b,x){var O=this.current708Packet.data,A=O[++b];return Uf(A)&&(b=this.handleText(b,x,{isExtended:!0})),b},Tn.prototype.getPts=function(b){return this.current708Packet.ptsVals[Math.floor(b/2)]},Tn.prototype.initService=function(b,x){var A="SERVICE"+b,O=this,A,F;return A in this.serviceEncodings&&(F=this.serviceEncodings[A]),this.services[b]=new Hf(b,F,O),this.services[b].init(this.getPts(x),function(q){O.flushDisplayed(q,O.services[b])}),this.services[b]},Tn.prototype.handleText=function(b,x,O){var A=O&&O.isExtended,F=O&&O.isMultiByte,q=this.current708Packet.data,se=A?4096:0,ce=q[b],fe=q[b+1],be=x.currentWindow,Me,We;return x.textDecoder_&&!A?(F?(We=[ce,fe],b++):We=[ce],Me=x.textDecoder_.decode(new Uint8Array(We))):Me=oD(se|ce),be.pendingNewLine&&!be.isEmpty()&&be.newLine(this.getPts(b)),be.pendingNewLine=!1,be.addText(Me),b},Tn.prototype.multiByteCharacter=function(b,x){var O=this.current708Packet.data,A=O[b+1],F=O[b+2];return Uf(A)&&Uf(F)&&(b=this.handleText(++b,x,{isMultiByte:!0})),b},Tn.prototype.setCurrentWindow=function(b,x){var O=this.current708Packet.data,A=O[b],F=A&7;return x.setCurrentWindow(F),b},Tn.prototype.defineWindow=function(b,x){var O=this.current708Packet.data,A=O[b],F=A&7;x.setCurrentWindow(F);var q=x.currentWindow;return A=O[++b],q.visible=(A&32)>>5,q.rowLock=(A&16)>>4,q.columnLock=(A&8)>>3,q.priority=A&7,A=O[++b],q.relativePositioning=(A&128)>>7,q.anchorVertical=A&127,A=O[++b],q.anchorHorizontal=A,A=O[++b],q.anchorPoint=(A&240)>>4,q.rowCount=A&15,A=O[++b],q.columnCount=A&63,A=O[++b],q.windowStyle=(A&56)>>3,q.penStyle=A&7,q.virtualRowCount=q.rowCount+1,b},Tn.prototype.setWindowAttributes=function(b,x){var O=this.current708Packet.data,A=O[b],F=x.currentWindow.winAttr;return A=O[++b],F.fillOpacity=(A&192)>>6,F.fillRed=(A&48)>>4,F.fillGreen=(A&12)>>2,F.fillBlue=A&3,A=O[++b],F.borderType=(A&192)>>6,F.borderRed=(A&48)>>4,F.borderGreen=(A&12)>>2,F.borderBlue=A&3,A=O[++b],F.borderType+=(A&128)>>5,F.wordWrap=(A&64)>>6,F.printDirection=(A&48)>>4,F.scrollDirection=(A&12)>>2,F.justify=A&3,A=O[++b],F.effectSpeed=(A&240)>>4,F.effectDirection=(A&12)>>2,F.displayEffect=A&3,b},Tn.prototype.flushDisplayed=function(b,x){for(var O=[],A=0;A<8;A++)x.windows[A].visible&&!x.windows[A].isEmpty()&&O.push(x.windows[A].getText());x.endPts=b,x.text=O.join(`
|
||
|
||
`),this.pushCaption(x),x.startPts=b},Tn.prototype.pushCaption=function(b){b.text!==""&&(this.trigger("data",{startPts:b.startPts,endPts:b.endPts,text:b.text,stream:"cc708_"+b.serviceNum}),b.text="",b.startPts=b.endPts)},Tn.prototype.displayWindows=function(b,x){var O=this.current708Packet.data,A=O[++b],F=this.getPts(b);this.flushDisplayed(F,x);for(var q=0;q<8;q++)A&1<<q&&(x.windows[q].visible=1);return b},Tn.prototype.hideWindows=function(b,x){var O=this.current708Packet.data,A=O[++b],F=this.getPts(b);this.flushDisplayed(F,x);for(var q=0;q<8;q++)A&1<<q&&(x.windows[q].visible=0);return b},Tn.prototype.toggleWindows=function(b,x){var O=this.current708Packet.data,A=O[++b],F=this.getPts(b);this.flushDisplayed(F,x);for(var q=0;q<8;q++)A&1<<q&&(x.windows[q].visible^=1);return b},Tn.prototype.clearWindows=function(b,x){var O=this.current708Packet.data,A=O[++b],F=this.getPts(b);this.flushDisplayed(F,x);for(var q=0;q<8;q++)A&1<<q&&x.windows[q].clearText();return b},Tn.prototype.deleteWindows=function(b,x){var O=this.current708Packet.data,A=O[++b],F=this.getPts(b);this.flushDisplayed(F,x);for(var q=0;q<8;q++)A&1<<q&&x.windows[q].reset();return b},Tn.prototype.setPenAttributes=function(b,x){var O=this.current708Packet.data,A=O[b],F=x.currentWindow.penAttr;return A=O[++b],F.textTag=(A&240)>>4,F.offset=(A&12)>>2,F.penSize=A&3,A=O[++b],F.italics=(A&128)>>7,F.underline=(A&64)>>6,F.edgeType=(A&56)>>3,F.fontStyle=A&7,b},Tn.prototype.setPenColor=function(b,x){var O=this.current708Packet.data,A=O[b],F=x.currentWindow.penColor;return A=O[++b],F.fgOpacity=(A&192)>>6,F.fgRed=(A&48)>>4,F.fgGreen=(A&12)>>2,F.fgBlue=A&3,A=O[++b],F.bgOpacity=(A&192)>>6,F.bgRed=(A&48)>>4,F.bgGreen=(A&12)>>2,F.bgBlue=A&3,A=O[++b],F.edgeRed=(A&48)>>4,F.edgeGreen=(A&12)>>2,F.edgeBlue=A&3,b},Tn.prototype.setPenLocation=function(b,x){var O=this.current708Packet.data,A=O[b],F=x.currentWindow.penLoc;return x.currentWindow.pendingNewLine=!0,A=O[++b],F.row=A&15,A=O[++b],F.column=A&63,b},Tn.prototype.reset=function(b,x){var O=this.getPts(b);return this.flushDisplayed(O,x),this.initService(x.serviceNum,b)};var lD={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},zf=function(b){return b===null?"":(b=lD[b]||b,String.fromCharCode(b))},jf=14,uD=[4352,4384,4608,4640,5376,5408,5632,5664,5888,5920,4096,4864,4896,5120,5152],uo=function(){for(var b=[],x=jf+1;x--;)b.push("");return b},$n=function(b,x){$n.prototype.init.call(this),this.field_=b||0,this.dataChannel_=x||0,this.name_="CC"+((this.field_<<1|this.dataChannel_)+1),this.setConstants(),this.reset(),this.push=function(O){var A,F,q,se,ce;if(A=O.ccData&32639,A===this.lastControlCode_){this.lastControlCode_=null;return}if((A&61440)===4096?this.lastControlCode_=A:A!==this.PADDING_&&(this.lastControlCode_=null),q=A>>>8,se=A&255,A!==this.PADDING_)if(A===this.RESUME_CAPTION_LOADING_)this.mode_="popOn";else if(A===this.END_OF_CAPTION_)this.mode_="popOn",this.clearFormatting(O.pts),this.flushDisplayed(O.pts),F=this.displayed_,this.displayed_=this.nonDisplayed_,this.nonDisplayed_=F,this.startPts_=O.pts;else if(A===this.ROLL_UP_2_ROWS_)this.rollUpRows_=2,this.setRollUp(O.pts);else if(A===this.ROLL_UP_3_ROWS_)this.rollUpRows_=3,this.setRollUp(O.pts);else if(A===this.ROLL_UP_4_ROWS_)this.rollUpRows_=4,this.setRollUp(O.pts);else if(A===this.CARRIAGE_RETURN_)this.clearFormatting(O.pts),this.flushDisplayed(O.pts),this.shiftRowsUp_(),this.startPts_=O.pts;else if(A===this.BACKSPACE_)this.mode_==="popOn"?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1);else if(A===this.ERASE_DISPLAYED_MEMORY_)this.flushDisplayed(O.pts),this.displayed_=uo();else if(A===this.ERASE_NON_DISPLAYED_MEMORY_)this.nonDisplayed_=uo();else if(A===this.RESUME_DIRECT_CAPTIONING_)this.mode_!=="paintOn"&&(this.flushDisplayed(O.pts),this.displayed_=uo()),this.mode_="paintOn",this.startPts_=O.pts;else if(this.isSpecialCharacter(q,se))q=(q&3)<<8,ce=zf(q|se),this[this.mode_](O.pts,ce),this.column_++;else if(this.isExtCharacter(q,se))this.mode_==="popOn"?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1),q=(q&3)<<8,ce=zf(q|se),this[this.mode_](O.pts,ce),this.column_++;else if(this.isMidRowCode(q,se))this.clearFormatting(O.pts),this[this.mode_](O.pts," "),this.column_++,(se&14)===14&&this.addFormatting(O.pts,["i"]),(se&1)===1&&this.addFormatting(O.pts,["u"]);else if(this.isOffsetControlCode(q,se))this.column_+=se&3;else if(this.isPAC(q,se)){var fe=uD.indexOf(A&7968);this.mode_==="rollUp"&&(fe-this.rollUpRows_+1<0&&(fe=this.rollUpRows_-1),this.setRollUp(O.pts,fe)),fe!==this.row_&&(this.clearFormatting(O.pts),this.row_=fe),se&1&&this.formatting_.indexOf("u")===-1&&this.addFormatting(O.pts,["u"]),(A&16)===16&&(this.column_=((A&14)>>1)*4),this.isColorPAC(se)&&(se&14)===14&&this.addFormatting(O.pts,["i"])}else this.isNormalChar(q)&&(se===0&&(se=null),ce=zf(q),ce+=zf(se),this[this.mode_](O.pts,ce),this.column_+=ce.length)}};$n.prototype=new ws,$n.prototype.flushDisplayed=function(b){var x=this.displayed_.map(function(O,A){try{return O.trim()}catch{return this.trigger("log",{level:"warn",message:"Skipping a malformed 608 caption at index "+A+"."}),""}},this).join(`
|
||
`).replace(/^\n+|\n+$/g,"");x.length&&this.trigger("data",{startPts:this.startPts_,endPts:b,text:x,stream:this.name_})},$n.prototype.reset=function(){this.mode_="popOn",this.topRow_=0,this.startPts_=0,this.displayed_=uo(),this.nonDisplayed_=uo(),this.lastControlCode_=null,this.column_=0,this.row_=jf,this.rollUpRows_=2,this.formatting_=[]},$n.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},$n.prototype.isSpecialCharacter=function(b,x){return b===this.EXT_&&x>=48&&x<=63},$n.prototype.isExtCharacter=function(b,x){return(b===this.EXT_+1||b===this.EXT_+2)&&x>=32&&x<=63},$n.prototype.isMidRowCode=function(b,x){return b===this.EXT_&&x>=32&&x<=47},$n.prototype.isOffsetControlCode=function(b,x){return b===this.OFFSET_&&x>=33&&x<=35},$n.prototype.isPAC=function(b,x){return b>=this.BASE_&&b<this.BASE_+8&&x>=64&&x<=127},$n.prototype.isColorPAC=function(b){return b>=64&&b<=79||b>=96&&b<=127},$n.prototype.isNormalChar=function(b){return b>=32&&b<=127},$n.prototype.setRollUp=function(b,x){if(this.mode_!=="rollUp"&&(this.row_=jf,this.mode_="rollUp",this.flushDisplayed(b),this.nonDisplayed_=uo(),this.displayed_=uo()),x!==void 0&&x!==this.row_)for(var O=0;O<this.rollUpRows_;O++)this.displayed_[x-O]=this.displayed_[this.row_-O],this.displayed_[this.row_-O]="";x===void 0&&(x=this.row_),this.topRow_=x-this.rollUpRows_+1},$n.prototype.addFormatting=function(b,x){this.formatting_=this.formatting_.concat(x);var O=x.reduce(function(A,F){return A+"<"+F+">"},"");this[this.mode_](b,O)},$n.prototype.clearFormatting=function(b){if(this.formatting_.length){var x=this.formatting_.reverse().reduce(function(O,A){return O+"</"+A+">"},"");this.formatting_=[],this[this.mode_](b,x)}},$n.prototype.popOn=function(b,x){var O=this.nonDisplayed_[this.row_];O+=x,this.nonDisplayed_[this.row_]=O},$n.prototype.rollUp=function(b,x){var O=this.displayed_[this.row_];O+=x,this.displayed_[this.row_]=O},$n.prototype.shiftRowsUp_=function(){var b;for(b=0;b<this.topRow_;b++)this.displayed_[b]="";for(b=this.row_+1;b<jf+1;b++)this.displayed_[b]="";for(b=this.topRow_;b<this.row_;b++)this.displayed_[b]=this.displayed_[b+1];this.displayed_[this.row_]=""},$n.prototype.paintOn=function(b,x){var O=this.displayed_[this.row_];O+=x,this.displayed_[this.row_]=O};var aw={CaptionStream:Bn,Cea608Stream:$n,Cea708Stream:Tn},Kf={H264_STREAM_TYPE:27,ADTS_STREAM_TYPE:15,METADATA_STREAM_TYPE:21},cD=n,dD=8589934592,fD=4294967296,ow="shared",Qg=function(b,x){var O=1;for(b>x&&(O=-1);Math.abs(x-b)>fD;)b+=O*dD;return b},Jg=function(b){var x,O;Jg.prototype.init.call(this),this.type_=b||ow,this.push=function(A){this.type_!==ow&&A.type!==this.type_||(O===void 0&&(O=A.dts),A.dts=Qg(A.dts,O),A.pts=Qg(A.pts,O),x=A.dts,this.trigger("data",A))},this.flush=function(){O=x,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.discontinuity=function(){O=void 0,x=void 0},this.reset=function(){this.discontinuity(),this.trigger("reset")}};Jg.prototype=new cD;var lw={TimestampRolloverStream:Jg,handleRollover:Qg},hD=(b,x,O)=>{if(!b)return-1;for(var A=O;A<b.length;A++)if(b[A]===x)return A;return-1},pD={typedArrayIndexOf:hD},mD=n,gD=Kf,Wf=pD.typedArrayIndexOf,qf={Iso88591:0,Utf16:1,Utf16be:2,Utf8:3},uw=function(b,x,O){var A,F="";for(A=x;A<O;A++)F+="%"+("00"+b[A].toString(16)).slice(-2);return F},sc=function(b,x,O){return decodeURIComponent(uw(b,x,O))},rc=function(b,x,O){return unescape(uw(b,x,O))},Gf=function(b){return b[0]<<21|b[1]<<14|b[2]<<7|b[3]},Yf={APIC:function(b){var x=1,O,A,F="-->";b.data[0]===qf.Utf8&&(O=Wf(b.data,0,x),!(O<0)&&(b.mimeType=rc(b.data,x,O),x=O+1,b.pictureType=b.data[x],x++,A=Wf(b.data,0,x),!(A<0)&&(b.description=sc(b.data,x,A),x=A+1,b.mimeType===F?b.url=rc(b.data,x,b.data.length):b.pictureData=b.data.subarray(x,b.data.length))))},"T*":function(b){b.data[0]===qf.Utf8&&(b.value=sc(b.data,1,b.data.length).replace(/\0*$/,""),b.values=b.value.split("\0"))},TXXX:function(b){var x;b.data[0]===qf.Utf8&&(x=Wf(b.data,0,1),x!==-1&&(b.description=sc(b.data,1,x),b.value=sc(b.data,x+1,b.data.length).replace(/\0*$/,""),b.data=b.value))},"W*":function(b){b.url=rc(b.data,0,b.data.length).replace(/\0.*$/,"")},WXXX:function(b){var x;b.data[0]===qf.Utf8&&(x=Wf(b.data,0,1),x!==-1&&(b.description=sc(b.data,1,x),b.url=rc(b.data,x+1,b.data.length).replace(/\0.*$/,"")))},PRIV:function(b){var x;for(x=0;x<b.data.length;x++)if(b.data[x]===0){b.owner=rc(b.data,0,x);break}b.privateData=b.data.subarray(x+1),b.data=b.privateData}},Xf;Xf=function(b){var x={descriptor:b&&b.descriptor},O=0,A=[],F=0,q;if(Xf.prototype.init.call(this),this.dispatchType=gD.METADATA_STREAM_TYPE.toString(16),x.descriptor)for(q=0;q<x.descriptor.length;q++)this.dispatchType+=("00"+x.descriptor[q].toString(16)).slice(-2);this.push=function(se){var ce,fe,be,Me,We,kt;if(se.type==="timed-metadata"){if(se.dataAlignmentIndicator&&(F=0,A.length=0),A.length===0&&(se.data.length<10||se.data[0]!=="I".charCodeAt(0)||se.data[1]!=="D".charCodeAt(0)||se.data[2]!=="3".charCodeAt(0))){this.trigger("log",{level:"warn",message:"Skipping unrecognized metadata packet"});return}if(A.push(se),F+=se.data.byteLength,A.length===1&&(O=Gf(se.data.subarray(6,10)),O+=10),!(F<O)){for(ce={data:new Uint8Array(O),frames:[],pts:A[0].pts,dts:A[0].dts},We=0;We<O;)ce.data.set(A[0].data.subarray(0,O-We),We),We+=A[0].data.byteLength,F-=A[0].data.byteLength,A.shift();fe=10,ce.data[5]&64&&(fe+=4,fe+=Gf(ce.data.subarray(10,14)),O-=Gf(ce.data.subarray(16,20)));do{if(be=Gf(ce.data.subarray(fe+4,fe+8)),be<1){this.trigger("log",{level:"warn",message:"Malformed ID3 frame encountered. Skipping remaining metadata parsing."});break}if(kt=String.fromCharCode(ce.data[fe],ce.data[fe+1],ce.data[fe+2],ce.data[fe+3]),Me={id:kt,data:ce.data.subarray(fe+10,fe+be+10)},Me.key=Me.id,Yf[Me.id]?Yf[Me.id](Me):Me.id[0]==="T"?Yf["T*"](Me):Me.id[0]==="W"&&Yf["W*"](Me),Me.owner==="com.apple.streaming.transportStreamTimestamp"){var it=Me.data,Ht=(it[3]&1)<<30|it[4]<<22|it[5]<<14|it[6]<<6|it[7]>>>2;Ht*=4,Ht+=it[7]&3,Me.timeStamp=Ht,ce.pts===void 0&&ce.dts===void 0&&(ce.pts=Me.timeStamp,ce.dts=Me.timeStamp),this.trigger("timestamp",Me)}ce.frames.push(Me),fe+=10,fe+=be}while(fe<O);this.trigger("data",ce)}}}},Xf.prototype=new mD;var vD=Xf,Zg=n,ev=aw,Lr=Kf,yD=lw.TimestampRolloverStream,Qf,ic,Jf,hl=188,tv=71;Qf=function(){var b=new Uint8Array(hl),x=0;Qf.prototype.init.call(this),this.push=function(O){var A=0,F=hl,q;for(x?(q=new Uint8Array(O.byteLength+x),q.set(b.subarray(0,x)),q.set(O,x),x=0):q=O;F<q.byteLength;){if(q[A]===tv&&q[F]===tv){this.trigger("data",q.subarray(A,F)),A+=hl,F+=hl;continue}A++,F++}A<q.byteLength&&(b.set(q.subarray(A),0),x=q.byteLength-A)},this.flush=function(){x===hl&&b[0]===tv&&(this.trigger("data",b),x=0),this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.reset=function(){x=0,this.trigger("reset")}},Qf.prototype=new Zg,ic=function(){var b,x,O,A;ic.prototype.init.call(this),A=this,this.packetsWaitingForPmt=[],this.programMapTable=void 0,b=function(F,q){var se=0;q.payloadUnitStartIndicator&&(se+=F[se]+1),q.type==="pat"?x(F.subarray(se),q):O(F.subarray(se),q)},x=function(F,q){q.section_number=F[7],q.last_section_number=F[8],A.pmtPid=(F[10]&31)<<8|F[11],q.pmtPid=A.pmtPid},O=function(F,q){var se,ce,fe,be;if(F[5]&1){for(A.programMapTable={video:null,audio:null,"timed-metadata":{}},se=(F[1]&15)<<8|F[2],ce=3+se-4,fe=(F[10]&15)<<8|F[11],be=12+fe;be<ce;){var Me=F[be],We=(F[be+1]&31)<<8|F[be+2];Me===Lr.H264_STREAM_TYPE&&A.programMapTable.video===null?A.programMapTable.video=We:Me===Lr.ADTS_STREAM_TYPE&&A.programMapTable.audio===null?A.programMapTable.audio=We:Me===Lr.METADATA_STREAM_TYPE&&(A.programMapTable["timed-metadata"][We]=Me),be+=((F[be+3]&15)<<8|F[be+4])+5}q.programMapTable=A.programMapTable}},this.push=function(F){var q={},se=4;if(q.payloadUnitStartIndicator=!!(F[1]&64),q.pid=F[1]&31,q.pid<<=8,q.pid|=F[2],(F[3]&48)>>>4>1&&(se+=F[se]+1),q.pid===0)q.type="pat",b(F.subarray(se),q),this.trigger("data",q);else if(q.pid===this.pmtPid)for(q.type="pmt",b(F.subarray(se),q),this.trigger("data",q);this.packetsWaitingForPmt.length;)this.processPes_.apply(this,this.packetsWaitingForPmt.shift());else this.programMapTable===void 0?this.packetsWaitingForPmt.push([F,se,q]):this.processPes_(F,se,q)},this.processPes_=function(F,q,se){se.pid===this.programMapTable.video?se.streamType=Lr.H264_STREAM_TYPE:se.pid===this.programMapTable.audio?se.streamType=Lr.ADTS_STREAM_TYPE:se.streamType=this.programMapTable["timed-metadata"][se.pid],se.type="pes",se.data=F.subarray(q),this.trigger("data",se)}},ic.prototype=new Zg,ic.STREAM_TYPES={h264:27,adts:15},Jf=function(){var b=this,x=!1,O={data:[],size:0},A={data:[],size:0},F={data:[],size:0},q,se=function(fe,be){var Me;const We=fe[0]<<16|fe[1]<<8|fe[2];be.data=new Uint8Array,We===1&&(be.packetLength=6+(fe[4]<<8|fe[5]),be.dataAlignmentIndicator=(fe[6]&4)!==0,Me=fe[7],Me&192&&(be.pts=(fe[9]&14)<<27|(fe[10]&255)<<20|(fe[11]&254)<<12|(fe[12]&255)<<5|(fe[13]&254)>>>3,be.pts*=4,be.pts+=(fe[13]&6)>>>1,be.dts=be.pts,Me&64&&(be.dts=(fe[14]&14)<<27|(fe[15]&255)<<20|(fe[16]&254)<<12|(fe[17]&255)<<5|(fe[18]&254)>>>3,be.dts*=4,be.dts+=(fe[18]&6)>>>1)),be.data=fe.subarray(9+fe[8]))},ce=function(fe,be,Me){var We=new Uint8Array(fe.size),kt={type:be},it=0,Ht=0,Yt=!1,Zn;if(!(!fe.data.length||fe.size<9)){for(kt.trackId=fe.data[0].pid,it=0;it<fe.data.length;it++)Zn=fe.data[it],We.set(Zn.data,Ht),Ht+=Zn.data.byteLength;se(We,kt),Yt=be==="video"||kt.packetLength<=fe.size,(Me||Yt)&&(fe.size=0,fe.data.length=0),Yt&&b.trigger("data",kt)}};Jf.prototype.init.call(this),this.push=function(fe){({pat:function(){},pes:function(){var be,Me;switch(fe.streamType){case Lr.H264_STREAM_TYPE:be=O,Me="video";break;case Lr.ADTS_STREAM_TYPE:be=A,Me="audio";break;case Lr.METADATA_STREAM_TYPE:be=F,Me="timed-metadata";break;default:return}fe.payloadUnitStartIndicator&&ce(be,Me,!0),be.data.push(fe),be.size+=fe.data.byteLength},pmt:function(){var be={type:"metadata",tracks:[]};q=fe.programMapTable,q.video!==null&&be.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+q.video,codec:"avc",type:"video"}),q.audio!==null&&be.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+q.audio,codec:"adts",type:"audio"}),x=!0,b.trigger("data",be)}})[fe.type]()},this.reset=function(){O.size=0,O.data.length=0,A.size=0,A.data.length=0,this.trigger("reset")},this.flushStreams_=function(){ce(O,"video"),ce(A,"audio"),ce(F,"timed-metadata")},this.flush=function(){if(!x&&q){var fe={type:"metadata",tracks:[]};q.video!==null&&fe.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+q.video,codec:"avc",type:"video"}),q.audio!==null&&fe.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+q.audio,codec:"adts",type:"audio"}),b.trigger("data",fe)}x=!1,this.flushStreams_(),this.trigger("done")}},Jf.prototype=new Zg;var cw={PAT_PID:0,MP2T_PACKET_LENGTH:hl,TransportPacketStream:Qf,TransportParseStream:ic,ElementaryStream:Jf,TimestampRolloverStream:yD,CaptionStream:ev.CaptionStream,Cea608Stream:ev.Cea608Stream,Cea708Stream:ev.Cea708Stream,MetadataStream:vD};for(var nv in Lr)Lr.hasOwnProperty(nv)&&(cw[nv]=Lr[nv]);var bD=cw,_D=n,TD=pe.ONE_SECOND_IN_TS,Zf,dw=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];Zf=function(b){var x,O=0;Zf.prototype.init.call(this),this.skipWarn_=function(A,F){this.trigger("log",{level:"warn",message:`adts skiping bytes ${A} to ${F} in frame ${O} outside syncword`})},this.push=function(A){var F=0,q,se,ce,fe,be;if(b||(O=0),A.type==="audio"){x&&x.length?(ce=x,x=new Uint8Array(ce.byteLength+A.data.byteLength),x.set(ce),x.set(A.data,ce.byteLength)):x=A.data;for(var Me;F+7<x.length;){if(x[F]!==255||(x[F+1]&246)!==240){typeof Me!="number"&&(Me=F),F++;continue}if(typeof Me=="number"&&(this.skipWarn_(Me,F),Me=null),se=(~x[F+1]&1)*2,q=(x[F+3]&3)<<11|x[F+4]<<3|(x[F+5]&224)>>5,fe=((x[F+6]&3)+1)*1024,be=fe*TD/dw[(x[F+2]&60)>>>2],x.byteLength-F<q)break;this.trigger("data",{pts:A.pts+O*be,dts:A.dts+O*be,sampleCount:fe,audioobjecttype:(x[F+2]>>>6&3)+1,channelcount:(x[F+2]&1)<<2|(x[F+3]&192)>>>6,samplerate:dw[(x[F+2]&60)>>>2],samplingfrequencyindex:(x[F+2]&60)>>>2,samplesize:16,data:x.subarray(F+7+se,F+q)}),O++,F+=q}typeof Me=="number"&&(this.skipWarn_(Me,F),Me=null),x=x.subarray(F)}},this.flush=function(){O=0,this.trigger("done")},this.reset=function(){x=void 0,this.trigger("reset")},this.endTimeline=function(){x=void 0,this.trigger("endedtimeline")}},Zf.prototype=new _D;var wD=Zf,fw;fw=function(b){var x=b.byteLength,O=0,A=0;this.length=function(){return 8*x},this.bitsAvailable=function(){return 8*x+A},this.loadWord=function(){var F=b.byteLength-x,q=new Uint8Array(4),se=Math.min(4,x);if(se===0)throw new Error("no bytes available");q.set(b.subarray(F,F+se)),O=new DataView(q.buffer).getUint32(0),A=se*8,x-=se},this.skipBits=function(F){var q;A>F?(O<<=F,A-=F):(F-=A,q=Math.floor(F/8),F-=q*8,x-=q,this.loadWord(),O<<=F,A-=F)},this.readBits=function(F){var q=Math.min(A,F),se=O>>>32-q;return A-=q,A>0?O<<=q:x>0&&this.loadWord(),q=F-q,q>0?se<<q|this.readBits(q):se},this.skipLeadingZeros=function(){var F;for(F=0;F<A;++F)if(O&2147483648>>>F)return O<<=F,A-=F,F;return this.loadWord(),F+this.skipLeadingZeros()},this.skipUnsignedExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.skipExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.readUnsignedExpGolomb=function(){var F=this.skipLeadingZeros();return this.readBits(F+1)-1},this.readExpGolomb=function(){var F=this.readUnsignedExpGolomb();return 1&F?1+F>>>1:-1*(F>>>1)},this.readBoolean=function(){return this.readBits(1)===1},this.readUnsignedByte=function(){return this.readBits(8)},this.loadWord()};var SD=fw,hw=n,CD=SD,eh,ac,pw;ac=function(){var b=0,x,O;ac.prototype.init.call(this),this.push=function(A){var F;O?(F=new Uint8Array(O.byteLength+A.data.byteLength),F.set(O),F.set(A.data,O.byteLength),O=F):O=A.data;for(var q=O.byteLength;b<q-3;b++)if(O[b+2]===1){x=b+5;break}for(;x<q;)switch(O[x]){case 0:if(O[x-1]!==0){x+=2;break}else if(O[x-2]!==0){x++;break}b+3!==x-2&&this.trigger("data",O.subarray(b+3,x-2));do x++;while(O[x]!==1&&x<q);b=x-2,x+=3;break;case 1:if(O[x-1]!==0||O[x-2]!==0){x+=3;break}this.trigger("data",O.subarray(b+3,x-2)),b=x-2,x+=3;break;default:x+=3;break}O=O.subarray(b),x-=b,b=0},this.reset=function(){O=null,b=0,this.trigger("reset")},this.flush=function(){O&&O.byteLength>3&&this.trigger("data",O.subarray(b+3)),O=null,b=0,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")}},ac.prototype=new hw,pw={100:!0,110:!0,122:!0,244:!0,44:!0,83:!0,86:!0,118:!0,128:!0,138:!0,139:!0,134:!0},eh=function(){var b=new ac,x,O,A,F,q,se,ce;eh.prototype.init.call(this),x=this,this.push=function(fe){fe.type==="video"&&(O=fe.trackId,A=fe.pts,F=fe.dts,b.push(fe))},b.on("data",function(fe){var be={trackId:O,pts:A,dts:F,data:fe,nalUnitTypeCode:fe[0]&31};switch(be.nalUnitTypeCode){case 5:be.nalUnitType="slice_layer_without_partitioning_rbsp_idr";break;case 6:be.nalUnitType="sei_rbsp",be.escapedRBSP=q(fe.subarray(1));break;case 7:be.nalUnitType="seq_parameter_set_rbsp",be.escapedRBSP=q(fe.subarray(1)),be.config=se(be.escapedRBSP);break;case 8:be.nalUnitType="pic_parameter_set_rbsp";break;case 9:be.nalUnitType="access_unit_delimiter_rbsp";break}x.trigger("data",be)}),b.on("done",function(){x.trigger("done")}),b.on("partialdone",function(){x.trigger("partialdone")}),b.on("reset",function(){x.trigger("reset")}),b.on("endedtimeline",function(){x.trigger("endedtimeline")}),this.flush=function(){b.flush()},this.partialFlush=function(){b.partialFlush()},this.reset=function(){b.reset()},this.endTimeline=function(){b.endTimeline()},ce=function(fe,be){var Me=8,We=8,kt,it;for(kt=0;kt<fe;kt++)We!==0&&(it=be.readExpGolomb(),We=(Me+it+256)%256),Me=We===0?Me:We},q=function(fe){for(var be=fe.byteLength,Me=[],We=1,kt,it;We<be-2;)fe[We]===0&&fe[We+1]===0&&fe[We+2]===3?(Me.push(We+2),We+=2):We++;if(Me.length===0)return fe;kt=be-Me.length,it=new Uint8Array(kt);var Ht=0;for(We=0;We<kt;Ht++,We++)Ht===Me[0]&&(Ht++,Me.shift()),it[We]=fe[Ht];return it},se=function(fe){var be=0,Me=0,We=0,kt=0,it,Ht,Yt,Zn,yr,ho,Uw,Hw,zw,dv,jw,jn=[1,1],Kw,po;if(it=new CD(fe),Ht=it.readUnsignedByte(),Zn=it.readUnsignedByte(),Yt=it.readUnsignedByte(),it.skipUnsignedExpGolomb(),pw[Ht]&&(yr=it.readUnsignedExpGolomb(),yr===3&&it.skipBits(1),it.skipUnsignedExpGolomb(),it.skipUnsignedExpGolomb(),it.skipBits(1),it.readBoolean()))for(jw=yr!==3?8:12,po=0;po<jw;po++)it.readBoolean()&&(po<6?ce(16,it):ce(64,it));if(it.skipUnsignedExpGolomb(),ho=it.readUnsignedExpGolomb(),ho===0)it.readUnsignedExpGolomb();else if(ho===1)for(it.skipBits(1),it.skipExpGolomb(),it.skipExpGolomb(),Uw=it.readUnsignedExpGolomb(),po=0;po<Uw;po++)it.skipExpGolomb();if(it.skipUnsignedExpGolomb(),it.skipBits(1),Hw=it.readUnsignedExpGolomb(),zw=it.readUnsignedExpGolomb(),dv=it.readBits(1),dv===0&&it.skipBits(1),it.skipBits(1),it.readBoolean()&&(be=it.readUnsignedExpGolomb(),Me=it.readUnsignedExpGolomb(),We=it.readUnsignedExpGolomb(),kt=it.readUnsignedExpGolomb()),it.readBoolean()&&it.readBoolean()){switch(Kw=it.readUnsignedByte(),Kw){case 1:jn=[1,1];break;case 2:jn=[12,11];break;case 3:jn=[10,11];break;case 4:jn=[16,11];break;case 5:jn=[40,33];break;case 6:jn=[24,11];break;case 7:jn=[20,11];break;case 8:jn=[32,11];break;case 9:jn=[80,33];break;case 10:jn=[18,11];break;case 11:jn=[15,11];break;case 12:jn=[64,33];break;case 13:jn=[160,99];break;case 14:jn=[4,3];break;case 15:jn=[3,2];break;case 16:jn=[2,1];break;case 255:{jn=[it.readUnsignedByte()<<8|it.readUnsignedByte(),it.readUnsignedByte()<<8|it.readUnsignedByte()];break}}jn&&jn[0]/jn[1]}return{profileIdc:Ht,levelIdc:Yt,profileCompatibility:Zn,width:(Hw+1)*16-be*2-Me*2,height:(2-dv)*(zw+1)*16-We*2-kt*2,sarRatio:jn}}},eh.prototype=new hw;var ED={H264Stream:eh,NalByteStream:ac},xD=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],mw=function(b,x){var O=b[x+6]<<21|b[x+7]<<14|b[x+8]<<7|b[x+9],A=b[x+5],F=(A&16)>>4;return O=O>=0?O:0,F?O+20:O+10},gw=function(b,x){return b.length-x<10||b[x]!=="I".charCodeAt(0)||b[x+1]!=="D".charCodeAt(0)||b[x+2]!=="3".charCodeAt(0)?x:(x+=mw(b,x),gw(b,x))},kD=function(b){var x=gw(b,0);return b.length>=x+2&&(b[x]&255)===255&&(b[x+1]&240)===240&&(b[x+1]&22)===16},vw=function(b){return b[0]<<21|b[1]<<14|b[2]<<7|b[3]},ID=function(b,x,O){var A,F="";for(A=x;A<O;A++)F+="%"+("00"+b[A].toString(16)).slice(-2);return F},OD=function(b,x,O){return unescape(ID(b,x,O))},AD=function(b,x){var O=(b[x+5]&224)>>5,A=b[x+4]<<3,F=b[x+3]&3<<11;return F|A|O},PD=function(b,x){return b[x]==="I".charCodeAt(0)&&b[x+1]==="D".charCodeAt(0)&&b[x+2]==="3".charCodeAt(0)?"timed-metadata":b[x]&!0&&(b[x+1]&240)===240?"audio":null},$D=function(b){for(var x=0;x+5<b.length;){if(b[x]!==255||(b[x+1]&246)!==240){x++;continue}return xD[(b[x+2]&60)>>>2]}return null},ND=function(b){var x,O,A,F;x=10,b[5]&64&&(x+=4,x+=vw(b.subarray(10,14)));do{if(O=vw(b.subarray(x+4,x+8)),O<1)return null;if(F=String.fromCharCode(b[x],b[x+1],b[x+2],b[x+3]),F==="PRIV"){A=b.subarray(x+10,x+O+10);for(var q=0;q<A.byteLength;q++)if(A[q]===0){var se=OD(A,0,q);if(se==="com.apple.streaming.transportStreamTimestamp"){var ce=A.subarray(q+1),fe=(ce[3]&1)<<30|ce[4]<<22|ce[5]<<14|ce[6]<<6|ce[7]>>>2;return fe*=4,fe+=ce[7]&3,fe}break}}x+=10,x+=O}while(x<b.byteLength);return null},sv={isLikelyAacData:kD,parseId3TagSize:mw,parseAdtsSize:AD,parseType:PD,parseSampleRate:$D,parseAacTimestamp:ND},MD=n,yw=sv,th;th=function(){var b=new Uint8Array,x=0;th.prototype.init.call(this),this.setTimestamp=function(O){x=O},this.push=function(O){var A=0,F=0,q,se,ce,fe;for(b.length?(fe=b.length,b=new Uint8Array(O.byteLength+fe),b.set(b.subarray(0,fe)),b.set(O,fe)):b=O;b.length-F>=3;){if(b[F]==="I".charCodeAt(0)&&b[F+1]==="D".charCodeAt(0)&&b[F+2]==="3".charCodeAt(0)){if(b.length-F<10||(A=yw.parseId3TagSize(b,F),F+A>b.length))break;se={type:"timed-metadata",data:b.subarray(F,F+A)},this.trigger("data",se),F+=A;continue}else if((b[F]&255)===255&&(b[F+1]&240)===240){if(b.length-F<7||(A=yw.parseAdtsSize(b,F),F+A>b.length))break;ce={type:"audio",data:b.subarray(F,F+A),pts:x,dts:x},this.trigger("data",ce),F+=A;continue}F++}q=b.length-F,q>0?b=b.subarray(F):b=new Uint8Array},this.reset=function(){b=new Uint8Array,this.trigger("reset")},this.endTimeline=function(){b=new Uint8Array,this.trigger("endedtimeline")}},th.prototype=new MD;var RD=th,LD=["audioobjecttype","channelcount","samplerate","samplingfrequencyindex","samplesize"],DD=LD,FD=["width","height","profileIdc","levelIdc","profileCompatibility","sarRatio"],BD=FD,nh=n,oc=de,lc=Pe,sh=mn,Dr=mt,Bi=bD,rh=pe,bw=wD,VD=ED.H264Stream,UD=RD,HD=sv.isLikelyAacData,zD=pe.ONE_SECOND_IN_TS,rv=DD,iv=BD,uc,pl,ih,co,jD=function(b,x){x.stream=b,this.trigger("log",x)},_w=function(b,x){for(var O=Object.keys(x),A=0;A<O.length;A++){var F=O[A];F==="headOfPipeline"||!x[F].on||x[F].on("log",jD.bind(b,F))}},Tw=function(b,x){var O;if(b.length!==x.length)return!1;for(O=0;O<b.length;O++)if(b[O]!==x[O])return!1;return!0},av=function(b,x,O,A,F,q){var se=O-x,ce=A-x,fe=F-O;return{start:{dts:b,pts:b+se},end:{dts:b+ce,pts:b+fe},prependedContentDuration:q,baseMediaDecodeTime:b}};pl=function(b,x){var O=[],A,F=0,q=0,se=1/0;x=x||{},A=x.firstSequenceNumber||0,pl.prototype.init.call(this),this.push=function(ce){Dr.collectDtsInfo(b,ce),b&&rv.forEach(function(fe){b[fe]=ce[fe]}),O.push(ce)},this.setEarliestDts=function(ce){F=ce},this.setVideoBaseMediaDecodeTime=function(ce){se=ce},this.setAudioAppendStart=function(ce){q=ce},this.flush=function(){var ce,fe,be,Me,We,kt,it;if(O.length===0){this.trigger("done","AudioSegmentStream");return}ce=sh.trimAdtsFramesByEarliestDts(O,b,F),b.baseMediaDecodeTime=Dr.calculateTrackBaseMediaDecodeTime(b,x.keepOriginalTimestamps),it=sh.prefixWithSilence(b,ce,q,se),b.samples=sh.generateSampleTable(ce),be=oc.mdat(sh.concatenateFrameData(ce)),O=[],fe=oc.moof(A,[b]),Me=new Uint8Array(fe.byteLength+be.byteLength),A++,Me.set(fe),Me.set(be,fe.byteLength),Dr.clearDtsInfo(b),We=Math.ceil(zD*1024/b.samplerate),ce.length&&(kt=ce.length*We,this.trigger("segmentTimingInfo",av(rh.audioTsToVideoTs(b.baseMediaDecodeTime,b.samplerate),ce[0].dts,ce[0].pts,ce[0].dts+kt,ce[0].pts+kt,it||0)),this.trigger("timingInfo",{start:ce[0].pts,end:ce[0].pts+kt})),this.trigger("data",{track:b,boxes:Me}),this.trigger("done","AudioSegmentStream")},this.reset=function(){Dr.clearDtsInfo(b),O=[],this.trigger("reset")}},pl.prototype=new nh,uc=function(b,x){var O,A=[],F=[],q,se;x=x||{},O=x.firstSequenceNumber||0,uc.prototype.init.call(this),delete b.minPTS,this.gopCache_=[],this.push=function(ce){Dr.collectDtsInfo(b,ce),ce.nalUnitType==="seq_parameter_set_rbsp"&&!q&&(q=ce.config,b.sps=[ce.data],iv.forEach(function(fe){b[fe]=q[fe]},this)),ce.nalUnitType==="pic_parameter_set_rbsp"&&!se&&(se=ce.data,b.pps=[ce.data]),A.push(ce)},this.flush=function(){for(var ce,fe,be,Me,We,kt,it=0,Ht,Yt;A.length&&A[0].nalUnitType!=="access_unit_delimiter_rbsp";)A.shift();if(A.length===0){this.resetStream_(),this.trigger("done","VideoSegmentStream");return}if(ce=lc.groupNalsIntoFrames(A),be=lc.groupFramesIntoGops(ce),be[0][0].keyFrame||(fe=this.getGopForFusion_(A[0],b),fe?(it=fe.duration,be.unshift(fe),be.byteLength+=fe.byteLength,be.nalCount+=fe.nalCount,be.pts=fe.pts,be.dts=fe.dts,be.duration+=fe.duration):be=lc.extendFirstKeyFrame(be)),F.length){var Zn;if(x.alignGopsAtEnd?Zn=this.alignGopsAtEnd_(be):Zn=this.alignGopsAtStart_(be),!Zn){this.gopCache_.unshift({gop:be.pop(),pps:b.pps,sps:b.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),A=[],this.resetStream_(),this.trigger("done","VideoSegmentStream");return}Dr.clearDtsInfo(b),be=Zn}Dr.collectDtsInfo(b,be),b.samples=lc.generateSampleTable(be),We=oc.mdat(lc.concatenateNalData(be)),b.baseMediaDecodeTime=Dr.calculateTrackBaseMediaDecodeTime(b,x.keepOriginalTimestamps),this.trigger("processedGopsInfo",be.map(function(yr){return{pts:yr.pts,dts:yr.dts,byteLength:yr.byteLength}})),Ht=be[0],Yt=be[be.length-1],this.trigger("segmentTimingInfo",av(b.baseMediaDecodeTime,Ht.dts,Ht.pts,Yt.dts+Yt.duration,Yt.pts+Yt.duration,it)),this.trigger("timingInfo",{start:be[0].pts,end:be[be.length-1].pts+be[be.length-1].duration}),this.gopCache_.unshift({gop:be.pop(),pps:b.pps,sps:b.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),A=[],this.trigger("baseMediaDecodeTime",b.baseMediaDecodeTime),this.trigger("timelineStartInfo",b.timelineStartInfo),Me=oc.moof(O,[b]),kt=new Uint8Array(Me.byteLength+We.byteLength),O++,kt.set(Me),kt.set(We,Me.byteLength),this.trigger("data",{track:b,boxes:kt}),this.resetStream_(),this.trigger("done","VideoSegmentStream")},this.reset=function(){this.resetStream_(),A=[],this.gopCache_.length=0,F.length=0,this.trigger("reset")},this.resetStream_=function(){Dr.clearDtsInfo(b),q=void 0,se=void 0},this.getGopForFusion_=function(ce){var fe=45e3,be=1e4,Me=1/0,We,kt,it,Ht,Yt;for(Yt=0;Yt<this.gopCache_.length;Yt++)Ht=this.gopCache_[Yt],it=Ht.gop,!(!(b.pps&&Tw(b.pps[0],Ht.pps[0]))||!(b.sps&&Tw(b.sps[0],Ht.sps[0])))&&(it.dts<b.timelineStartInfo.dts||(We=ce.dts-it.dts-it.duration,We>=-be&&We<=fe&&(!kt||Me>We)&&(kt=Ht,Me=We)));return kt?kt.gop:null},this.alignGopsAtStart_=function(ce){var fe,be,Me,We,kt,it,Ht,Yt;for(kt=ce.byteLength,it=ce.nalCount,Ht=ce.duration,fe=be=0;fe<F.length&&be<ce.length&&(Me=F[fe],We=ce[be],Me.pts!==We.pts);){if(We.pts>Me.pts){fe++;continue}be++,kt-=We.byteLength,it-=We.nalCount,Ht-=We.duration}return be===0?ce:be===ce.length?null:(Yt=ce.slice(be),Yt.byteLength=kt,Yt.duration=Ht,Yt.nalCount=it,Yt.pts=Yt[0].pts,Yt.dts=Yt[0].dts,Yt)},this.alignGopsAtEnd_=function(ce){var fe,be,Me,We,kt,it;for(fe=F.length-1,be=ce.length-1,kt=null,it=!1;fe>=0&&be>=0;){if(Me=F[fe],We=ce[be],Me.pts===We.pts){it=!0;break}if(Me.pts>We.pts){fe--;continue}fe===F.length-1&&(kt=be),be--}if(!it&&kt===null)return null;var Ht;if(it?Ht=be:Ht=kt,Ht===0)return ce;var Yt=ce.slice(Ht),Zn=Yt.reduce(function(yr,ho){return yr.byteLength+=ho.byteLength,yr.duration+=ho.duration,yr.nalCount+=ho.nalCount,yr},{byteLength:0,duration:0,nalCount:0});return Yt.byteLength=Zn.byteLength,Yt.duration=Zn.duration,Yt.nalCount=Zn.nalCount,Yt.pts=Yt[0].pts,Yt.dts=Yt[0].dts,Yt},this.alignGopsWith=function(ce){F=ce}},uc.prototype=new nh,co=function(b,x){this.numberOfTracks=0,this.metadataStream=x,b=b||{},typeof b.remux<"u"?this.remuxTracks=!!b.remux:this.remuxTracks=!0,typeof b.keepOriginalTimestamps=="boolean"?this.keepOriginalTimestamps=b.keepOriginalTimestamps:this.keepOriginalTimestamps=!1,this.pendingTracks=[],this.videoTrack=null,this.pendingBoxes=[],this.pendingCaptions=[],this.pendingMetadata=[],this.pendingBytes=0,this.emittedTracks=0,co.prototype.init.call(this),this.push=function(O){if(O.text)return this.pendingCaptions.push(O);if(O.frames)return this.pendingMetadata.push(O);this.pendingTracks.push(O.track),this.pendingBytes+=O.boxes.byteLength,O.track.type==="video"&&(this.videoTrack=O.track,this.pendingBoxes.push(O.boxes)),O.track.type==="audio"&&(this.audioTrack=O.track,this.pendingBoxes.unshift(O.boxes))}},co.prototype=new nh,co.prototype.flush=function(b){var x=0,O={captions:[],captionStreams:{},metadata:[],info:{}},A,F,q,se=0,ce;if(this.pendingTracks.length<this.numberOfTracks){if(b!=="VideoSegmentStream"&&b!=="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?(se=this.videoTrack.timelineStartInfo.pts,iv.forEach(function(fe){O.info[fe]=this.videoTrack[fe]},this)):this.audioTrack&&(se=this.audioTrack.timelineStartInfo.pts,rv.forEach(function(fe){O.info[fe]=this.audioTrack[fe]},this)),this.videoTrack||this.audioTrack){for(this.pendingTracks.length===1?O.type=this.pendingTracks[0].type:O.type="combined",this.emittedTracks+=this.pendingTracks.length,q=oc.initSegment(this.pendingTracks),O.initSegment=new Uint8Array(q.byteLength),O.initSegment.set(q),O.data=new Uint8Array(this.pendingBytes),ce=0;ce<this.pendingBoxes.length;ce++)O.data.set(this.pendingBoxes[ce],x),x+=this.pendingBoxes[ce].byteLength;for(ce=0;ce<this.pendingCaptions.length;ce++)A=this.pendingCaptions[ce],A.startTime=rh.metadataTsToSeconds(A.startPts,se,this.keepOriginalTimestamps),A.endTime=rh.metadataTsToSeconds(A.endPts,se,this.keepOriginalTimestamps),O.captionStreams[A.stream]=!0,O.captions.push(A);for(ce=0;ce<this.pendingMetadata.length;ce++)F=this.pendingMetadata[ce],F.cueTime=rh.metadataTsToSeconds(F.pts,se,this.keepOriginalTimestamps),O.metadata.push(F);for(O.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",O),ce=0;ce<O.captions.length;ce++)A=O.captions[ce],this.trigger("caption",A);for(ce=0;ce<O.metadata.length;ce++)F=O.metadata[ce],this.trigger("id3Frame",F)}this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0)},co.prototype.setRemux=function(b){this.remuxTracks=b},ih=function(b){var x=this,O=!0,A,F;ih.prototype.init.call(this),b=b||{},this.baseMediaDecodeTime=b.baseMediaDecodeTime||0,this.transmuxPipeline_={},this.setupAacPipeline=function(){var q={};this.transmuxPipeline_=q,q.type="aac",q.metadataStream=new Bi.MetadataStream,q.aacStream=new UD,q.audioTimestampRolloverStream=new Bi.TimestampRolloverStream("audio"),q.timedMetadataTimestampRolloverStream=new Bi.TimestampRolloverStream("timed-metadata"),q.adtsStream=new bw,q.coalesceStream=new co(b,q.metadataStream),q.headOfPipeline=q.aacStream,q.aacStream.pipe(q.audioTimestampRolloverStream).pipe(q.adtsStream),q.aacStream.pipe(q.timedMetadataTimestampRolloverStream).pipe(q.metadataStream).pipe(q.coalesceStream),q.metadataStream.on("timestamp",function(se){q.aacStream.setTimestamp(se.timeStamp)}),q.aacStream.on("data",function(se){se.type!=="timed-metadata"&&se.type!=="audio"||q.audioSegmentStream||(F=F||{timelineStartInfo:{baseMediaDecodeTime:x.baseMediaDecodeTime},codec:"adts",type:"audio"},q.coalesceStream.numberOfTracks++,q.audioSegmentStream=new pl(F,b),q.audioSegmentStream.on("log",x.getLogTrigger_("audioSegmentStream")),q.audioSegmentStream.on("timingInfo",x.trigger.bind(x,"audioTimingInfo")),q.adtsStream.pipe(q.audioSegmentStream).pipe(q.coalesceStream),x.trigger("trackinfo",{hasAudio:!!F,hasVideo:!!A}))}),q.coalesceStream.on("data",this.trigger.bind(this,"data")),q.coalesceStream.on("done",this.trigger.bind(this,"done")),_w(this,q)},this.setupTsPipeline=function(){var q={};this.transmuxPipeline_=q,q.type="ts",q.metadataStream=new Bi.MetadataStream,q.packetStream=new Bi.TransportPacketStream,q.parseStream=new Bi.TransportParseStream,q.elementaryStream=new Bi.ElementaryStream,q.timestampRolloverStream=new Bi.TimestampRolloverStream,q.adtsStream=new bw,q.h264Stream=new VD,q.captionStream=new Bi.CaptionStream(b),q.coalesceStream=new co(b,q.metadataStream),q.headOfPipeline=q.packetStream,q.packetStream.pipe(q.parseStream).pipe(q.elementaryStream).pipe(q.timestampRolloverStream),q.timestampRolloverStream.pipe(q.h264Stream),q.timestampRolloverStream.pipe(q.adtsStream),q.timestampRolloverStream.pipe(q.metadataStream).pipe(q.coalesceStream),q.h264Stream.pipe(q.captionStream).pipe(q.coalesceStream),q.elementaryStream.on("data",function(se){var ce;if(se.type==="metadata"){for(ce=se.tracks.length;ce--;)!A&&se.tracks[ce].type==="video"?(A=se.tracks[ce],A.timelineStartInfo.baseMediaDecodeTime=x.baseMediaDecodeTime):!F&&se.tracks[ce].type==="audio"&&(F=se.tracks[ce],F.timelineStartInfo.baseMediaDecodeTime=x.baseMediaDecodeTime);A&&!q.videoSegmentStream&&(q.coalesceStream.numberOfTracks++,q.videoSegmentStream=new uc(A,b),q.videoSegmentStream.on("log",x.getLogTrigger_("videoSegmentStream")),q.videoSegmentStream.on("timelineStartInfo",function(fe){F&&!b.keepOriginalTimestamps&&(F.timelineStartInfo=fe,q.audioSegmentStream.setEarliestDts(fe.dts-x.baseMediaDecodeTime))}),q.videoSegmentStream.on("processedGopsInfo",x.trigger.bind(x,"gopInfo")),q.videoSegmentStream.on("segmentTimingInfo",x.trigger.bind(x,"videoSegmentTimingInfo")),q.videoSegmentStream.on("baseMediaDecodeTime",function(fe){F&&q.audioSegmentStream.setVideoBaseMediaDecodeTime(fe)}),q.videoSegmentStream.on("timingInfo",x.trigger.bind(x,"videoTimingInfo")),q.h264Stream.pipe(q.videoSegmentStream).pipe(q.coalesceStream)),F&&!q.audioSegmentStream&&(q.coalesceStream.numberOfTracks++,q.audioSegmentStream=new pl(F,b),q.audioSegmentStream.on("log",x.getLogTrigger_("audioSegmentStream")),q.audioSegmentStream.on("timingInfo",x.trigger.bind(x,"audioTimingInfo")),q.audioSegmentStream.on("segmentTimingInfo",x.trigger.bind(x,"audioSegmentTimingInfo")),q.adtsStream.pipe(q.audioSegmentStream).pipe(q.coalesceStream)),x.trigger("trackinfo",{hasAudio:!!F,hasVideo:!!A})}}),q.coalesceStream.on("data",this.trigger.bind(this,"data")),q.coalesceStream.on("id3Frame",function(se){se.dispatchType=q.metadataStream.dispatchType,x.trigger("id3Frame",se)}),q.coalesceStream.on("caption",this.trigger.bind(this,"caption")),q.coalesceStream.on("done",this.trigger.bind(this,"done")),_w(this,q)},this.setBaseMediaDecodeTime=function(q){var se=this.transmuxPipeline_;b.keepOriginalTimestamps||(this.baseMediaDecodeTime=q),F&&(F.timelineStartInfo.dts=void 0,F.timelineStartInfo.pts=void 0,Dr.clearDtsInfo(F),se.audioTimestampRolloverStream&&se.audioTimestampRolloverStream.discontinuity()),A&&(se.videoSegmentStream&&(se.videoSegmentStream.gopCache_=[]),A.timelineStartInfo.dts=void 0,A.timelineStartInfo.pts=void 0,Dr.clearDtsInfo(A),se.captionStream.reset()),se.timestampRolloverStream&&se.timestampRolloverStream.discontinuity()},this.setAudioAppendStart=function(q){F&&this.transmuxPipeline_.audioSegmentStream.setAudioAppendStart(q)},this.setRemux=function(q){var se=this.transmuxPipeline_;b.remux=q,se&&se.coalesceStream&&se.coalesceStream.setRemux(q)},this.alignGopsWith=function(q){A&&this.transmuxPipeline_.videoSegmentStream&&this.transmuxPipeline_.videoSegmentStream.alignGopsWith(q)},this.getLogTrigger_=function(q){var se=this;return function(ce){ce.stream=q,se.trigger("log",ce)}},this.push=function(q){if(O){var se=HD(q);se&&this.transmuxPipeline_.type!=="aac"?this.setupAacPipeline():!se&&this.transmuxPipeline_.type!=="ts"&&this.setupTsPipeline(),O=!1}this.transmuxPipeline_.headOfPipeline.push(q)},this.flush=function(){O=!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()}},ih.prototype=new nh;var KD={Transmuxer:ih,VideoSegmentStream:uc,AudioSegmentStream:pl,AUDIO_PROPERTIES:rv,VIDEO_PROPERTIES:iv,generateSegmentTimingInfo:av},WD=function(b){return b>>>0},qD=function(b){return("00"+b.toString(16)).slice(-2)},ah={toUnsigned:WD,toHexString:qD},GD=function(b){var x="";return x+=String.fromCharCode(b[0]),x+=String.fromCharCode(b[1]),x+=String.fromCharCode(b[2]),x+=String.fromCharCode(b[3]),x},ww=GD,YD=ah.toUnsigned,XD=ww,Sw=function(b,x){var O=[],A,F,q,se,ce;if(!x.length)return null;for(A=0;A<b.byteLength;)F=YD(b[A]<<24|b[A+1]<<16|b[A+2]<<8|b[A+3]),q=XD(b.subarray(A+4,A+8)),se=F>1?A+F:b.byteLength,q===x[0]&&(x.length===1?O.push(b.subarray(A+8,se)):(ce=Sw(b.subarray(A+8,se),x.slice(1)),ce.length&&(O=O.concat(ce)))),A=se;return O},Cw=Sw,QD=ah.toUnsigned,JD=i.getUint64,ZD=function(b){var x={version:b[0],flags:new Uint8Array(b.subarray(1,4))};return x.version===1?x.baseMediaDecodeTime=JD(b.subarray(4)):x.baseMediaDecodeTime=QD(b[4]<<24|b[5]<<16|b[6]<<8|b[7]),x},Ew=ZD,e4=function(b){return{isLeading:(b[0]&12)>>>2,dependsOn:b[0]&3,isDependedOn:(b[1]&192)>>>6,hasRedundancy:(b[1]&48)>>>4,paddingValue:(b[1]&14)>>>1,isNonSyncSample:b[1]&1,degradationPriority:b[2]<<8|b[3]}},t4=e4,xw=t4,n4=function(b){var x={version:b[0],flags:new Uint8Array(b.subarray(1,4)),samples:[]},O=new DataView(b.buffer,b.byteOffset,b.byteLength),A=x.flags[2]&1,F=x.flags[2]&4,q=x.flags[1]&1,se=x.flags[1]&2,ce=x.flags[1]&4,fe=x.flags[1]&8,be=O.getUint32(4),Me=8,We;for(A&&(x.dataOffset=O.getInt32(Me),Me+=4),F&&be&&(We={flags:xw(b.subarray(Me,Me+4))},Me+=4,q&&(We.duration=O.getUint32(Me),Me+=4),se&&(We.size=O.getUint32(Me),Me+=4),fe&&(x.version===1?We.compositionTimeOffset=O.getInt32(Me):We.compositionTimeOffset=O.getUint32(Me),Me+=4),x.samples.push(We),be--);be--;)We={},q&&(We.duration=O.getUint32(Me),Me+=4),se&&(We.size=O.getUint32(Me),Me+=4),ce&&(We.flags=xw(b.subarray(Me,Me+4)),Me+=4),fe&&(x.version===1?We.compositionTimeOffset=O.getInt32(Me):We.compositionTimeOffset=O.getUint32(Me),Me+=4),x.samples.push(We);return x},kw=n4,s4=function(b){var x=new DataView(b.buffer,b.byteOffset,b.byteLength),O={version:b[0],flags:new Uint8Array(b.subarray(1,4)),trackId:x.getUint32(4)},A=O.flags[2]&1,F=O.flags[2]&2,q=O.flags[2]&8,se=O.flags[2]&16,ce=O.flags[2]&32,fe=O.flags[0]&65536,be=O.flags[0]&131072,Me;return Me=8,A&&(Me+=4,O.baseDataOffset=x.getUint32(12),Me+=4),F&&(O.sampleDescriptionIndex=x.getUint32(Me),Me+=4),q&&(O.defaultSampleDuration=x.getUint32(Me),Me+=4),se&&(O.defaultSampleSize=x.getUint32(Me),Me+=4),ce&&(O.defaultSampleFlags=x.getUint32(Me)),fe&&(O.durationIsEmpty=!0),!A&&be&&(O.baseDataOffsetIsMoof=!0),O},Iw=s4,cc;typeof window<"u"?cc=window:typeof e<"u"?cc=e:typeof self<"u"?cc=self:cc={};var Ow=cc,r4=zn.discardEmulationPreventionBytes,i4=aw.CaptionStream,dc=Cw,a4=Ew,o4=kw,l4=Iw,Aw=Ow,u4=function(b,x){for(var O=b,A=0;A<x.length;A++){var F=x[A];if(O<F.size)return F;O-=F.size}return null},c4=function(b,x,O){var A=new DataView(b.buffer,b.byteOffset,b.byteLength),F={logs:[],seiNals:[]},q,se,ce,fe;for(se=0;se+4<b.length;se+=ce)if(ce=A.getUint32(se),se+=4,!(ce<=0))switch(b[se]&31){case 6:var be=b.subarray(se+1,se+1+ce),Me=u4(se,x);if(q={nalUnitType:"sei_rbsp",size:ce,data:be,escapedRBSP:r4(be),trackId:O},Me)q.pts=Me.pts,q.dts=Me.dts,fe=Me;else if(fe)q.pts=fe.pts,q.dts=fe.dts;else{F.logs.push({level:"warn",message:"We've encountered a nal unit without data at "+se+" for trackId "+O+". See mux.js#223."});break}F.seiNals.push(q);break}return F},d4=function(b,x,O){var A=x,F=O.defaultSampleDuration||0,q=O.defaultSampleSize||0,se=O.trackId,ce=[];return b.forEach(function(fe){var be=o4(fe),Me=be.samples;Me.forEach(function(We){We.duration===void 0&&(We.duration=F),We.size===void 0&&(We.size=q),We.trackId=se,We.dts=A,We.compositionTimeOffset===void 0&&(We.compositionTimeOffset=0),typeof A=="bigint"?(We.pts=A+Aw.BigInt(We.compositionTimeOffset),A+=Aw.BigInt(We.duration)):(We.pts=A+We.compositionTimeOffset,A+=We.duration)}),ce=ce.concat(Me)}),ce},f4=function(b,x){var O=dc(b,["moof","traf"]),A=dc(b,["mdat"]),F={},q=[];return A.forEach(function(se,ce){var fe=O[ce];q.push({mdat:se,traf:fe})}),q.forEach(function(se){var ce=se.mdat,fe=se.traf,be=dc(fe,["tfhd"]),Me=l4(be[0]),We=Me.trackId,kt=dc(fe,["tfdt"]),it=kt.length>0?a4(kt[0]).baseMediaDecodeTime:0,Ht=dc(fe,["trun"]),Yt,Zn;x===We&&Ht.length>0&&(Yt=d4(Ht,it,Me),Zn=c4(ce,Yt,We),F[We]||(F[We]={seiNals:[],logs:[]}),F[We].seiNals=F[We].seiNals.concat(Zn.seiNals),F[We].logs=F[We].logs.concat(Zn.logs))}),F},h4=function(b,x,O){var A;if(x===null)return null;A=f4(b,x);var F=A[x]||{};return{seiNals:F.seiNals,logs:F.logs,timescale:O}},p4=function(){var b=!1,x,O,A,F,q,se;this.isInitialized=function(){return b},this.init=function(ce){x=new i4,b=!0,se=ce?ce.isPartial:!1,x.on("data",function(fe){fe.startTime=fe.startPts/F,fe.endTime=fe.endPts/F,q.captions.push(fe),q.captionStreams[fe.stream]=!0}),x.on("log",function(fe){q.logs.push(fe)})},this.isNewInit=function(ce,fe){return ce&&ce.length===0||fe&&typeof fe=="object"&&Object.keys(fe).length===0?!1:A!==ce[0]||F!==fe[A]},this.parse=function(ce,fe,be){var Me;if(this.isInitialized()){if(!fe||!be)return null;if(this.isNewInit(fe,be))A=fe[0],F=be[A];else if(A===null||!F)return O.push(ce),null}else return null;for(;O.length>0;){var We=O.shift();this.parse(We,fe,be)}return Me=h4(ce,A,F),Me&&Me.logs&&(q.logs=q.logs.concat(Me.logs)),Me===null||!Me.seiNals?q.logs.length?{logs:q.logs,captions:[],captionStreams:[]}:null:(this.pushNals(Me.seiNals),this.flushStream(),q)},this.pushNals=function(ce){if(!this.isInitialized()||!ce||ce.length===0)return null;ce.forEach(function(fe){x.push(fe)})},this.flushStream=function(){if(!this.isInitialized())return null;se?x.partialFlush():x.flush()},this.clearParsedCaptions=function(){q.captions=[],q.captionStreams={},q.logs=[]},this.resetCaptionStream=function(){if(!this.isInitialized())return null;x.reset()},this.clearAllCaptions=function(){this.clearParsedCaptions(),this.resetCaptionStream()},this.reset=function(){O=[],A=null,F=null,q?this.clearParsedCaptions():q={captions:[],captionStreams:{},logs:[]},this.resetCaptionStream()},this.reset()},m4=p4,oh=ah.toUnsigned,fc=ah.toHexString,Qn=Cw,ml=ww,g4=Iw,v4=kw,y4=Ew,b4=i.getUint64,Pw,$w,Nw,Mw,Rw,ov,lv=Ow;Pw=function(b){var x={},O=Qn(b,["moov","trak"]);return O.reduce(function(A,F){var q,se,ce,fe,be;return q=Qn(F,["tkhd"])[0],!q||(se=q[0],ce=se===0?12:20,fe=oh(q[ce]<<24|q[ce+1]<<16|q[ce+2]<<8|q[ce+3]),be=Qn(F,["mdia","mdhd"])[0],!be)?null:(se=be[0],ce=se===0?12:20,A[fe]=oh(be[ce]<<24|be[ce+1]<<16|be[ce+2]<<8|be[ce+3]),A)},x)},$w=function(b,x){var O;O=Qn(x,["moof","traf"]);var A=O.reduce(function(F,q){var se=Qn(q,["tfhd"])[0],ce=oh(se[4]<<24|se[5]<<16|se[6]<<8|se[7]),fe=b[ce]||9e4,be=Qn(q,["tfdt"])[0],Me=new DataView(be.buffer,be.byteOffset,be.byteLength),We;be[0]===1?We=b4(be.subarray(4,12)):We=Me.getUint32(4);let kt;return typeof We=="bigint"?kt=We/lv.BigInt(fe):typeof We=="number"&&!isNaN(We)&&(kt=We/fe),kt<Number.MAX_SAFE_INTEGER&&(kt=Number(kt)),kt<F&&(F=kt),F},1/0);return typeof A=="bigint"||isFinite(A)?A:0},Nw=function(b,x){var O=Qn(x,["moof","traf"]),A=0,F=0,q;if(O&&O.length){var se=Qn(O[0],["tfhd"])[0],ce=Qn(O[0],["trun"])[0],fe=Qn(O[0],["tfdt"])[0];if(se){var be=g4(se);q=be.trackId}if(fe){var Me=y4(fe);A=Me.baseMediaDecodeTime}if(ce){var We=v4(ce);We.samples&&We.samples.length&&(F=We.samples[0].compositionTimeOffset||0)}}var kt=b[q]||9e4;typeof A=="bigint"&&(F=lv.BigInt(F),kt=lv.BigInt(kt));var it=(A+F)/kt;return typeof it=="bigint"&&it<Number.MAX_SAFE_INTEGER&&(it=Number(it)),it},Mw=function(b){var x=Qn(b,["moov","trak"]),O=[];return x.forEach(function(A){var F=Qn(A,["mdia","hdlr"]),q=Qn(A,["tkhd"]);F.forEach(function(se,ce){var fe=ml(se.subarray(8,12)),be=q[ce],Me,We,kt;fe==="vide"&&(Me=new DataView(be.buffer,be.byteOffset,be.byteLength),We=Me.getUint8(0),kt=We===0?Me.getUint32(12):Me.getUint32(20),O.push(kt))})}),O},ov=function(b){var x=b[0],O=x===0?12:20;return oh(b[O]<<24|b[O+1]<<16|b[O+2]<<8|b[O+3])},Rw=function(b){var x=Qn(b,["moov","trak"]),O=[];return x.forEach(function(A){var F={},q=Qn(A,["tkhd"])[0],se,ce;q&&(se=new DataView(q.buffer,q.byteOffset,q.byteLength),ce=se.getUint8(0),F.id=ce===0?se.getUint32(12):se.getUint32(20));var fe=Qn(A,["mdia","hdlr"])[0];if(fe){var be=ml(fe.subarray(8,12));be==="vide"?F.type="video":be==="soun"?F.type="audio":F.type=be}var Me=Qn(A,["mdia","minf","stbl","stsd"])[0];if(Me){var We=Me.subarray(8);F.codec=ml(We.subarray(4,8));var kt=Qn(We,[F.codec])[0],it,Ht;kt&&(/^[asm]vc[1-9]$/i.test(F.codec)?(it=kt.subarray(78),Ht=ml(it.subarray(4,8)),Ht==="avcC"&&it.length>11?(F.codec+=".",F.codec+=fc(it[9]),F.codec+=fc(it[10]),F.codec+=fc(it[11])):F.codec="avc1.4d400d"):/^mp4[a,v]$/i.test(F.codec)?(it=kt.subarray(28),Ht=ml(it.subarray(4,8)),Ht==="esds"&&it.length>20&&it[19]!==0?(F.codec+="."+fc(it[19]),F.codec+="."+fc(it[20]>>>2&63).replace(/^0/,"")):F.codec="mp4a.40.2"):F.codec=F.codec.toLowerCase())}var Yt=Qn(A,["mdia","mdhd"])[0];Yt&&(F.timescale=ov(Yt)),O.push(F)}),O};var Lw={findBox:Qn,parseType:ml,timescale:Pw,startTime:$w,compositionStartTime:Nw,videoTrackIds:Mw,tracks:Rw,getTimescaleFromMediaHeader:ov},uv=Kf,Dw=function(b){var x=b[1]&31;return x<<=8,x|=b[2],x},lh=function(b){return!!(b[1]&64)},uh=function(b){var x=0;return(b[3]&48)>>>4>1&&(x+=b[4]+1),x},_4=function(b,x){var O=Dw(b);return O===0?"pat":O===x?"pmt":x?"pes":null},T4=function(b){var x=lh(b),O=4+uh(b);return x&&(O+=b[O]+1),(b[O+10]&31)<<8|b[O+11]},w4=function(b){var x={},O=lh(b),A=4+uh(b);if(O&&(A+=b[A]+1),!!(b[A+5]&1)){var F,q,se;F=(b[A+1]&15)<<8|b[A+2],q=3+F-4,se=(b[A+10]&15)<<8|b[A+11];for(var ce=12+se;ce<q;){var fe=A+ce;x[(b[fe+1]&31)<<8|b[fe+2]]=b[fe],ce+=((b[fe+3]&15)<<8|b[fe+4])+5}return x}},S4=function(b,x){var O=Dw(b),A=x[O];switch(A){case uv.H264_STREAM_TYPE:return"video";case uv.ADTS_STREAM_TYPE:return"audio";case uv.METADATA_STREAM_TYPE:return"timed-metadata";default:return null}},C4=function(b){var x=lh(b);if(!x)return null;var O=4+uh(b);if(O>=b.byteLength)return null;var A=null,F;return F=b[O+7],F&192&&(A={},A.pts=(b[O+9]&14)<<27|(b[O+10]&255)<<20|(b[O+11]&254)<<12|(b[O+12]&255)<<5|(b[O+13]&254)>>>3,A.pts*=4,A.pts+=(b[O+13]&6)>>>1,A.dts=A.pts,F&64&&(A.dts=(b[O+14]&14)<<27|(b[O+15]&255)<<20|(b[O+16]&254)<<12|(b[O+17]&255)<<5|(b[O+18]&254)>>>3,A.dts*=4,A.dts+=(b[O+18]&6)>>>1)),A},cv=function(b){switch(b){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}},E4=function(b){for(var x=4+uh(b),O=b.subarray(x),A=0,F=0,q=!1,se;F<O.byteLength-3;F++)if(O[F+2]===1){A=F+5;break}for(;A<O.byteLength;)switch(O[A]){case 0:if(O[A-1]!==0){A+=2;break}else if(O[A-2]!==0){A++;break}F+3!==A-2&&(se=cv(O[F+3]&31),se==="slice_layer_without_partitioning_rbsp_idr"&&(q=!0));do A++;while(O[A]!==1&&A<O.length);F=A-2,A+=3;break;case 1:if(O[A-1]!==0||O[A-2]!==0){A+=3;break}se=cv(O[F+3]&31),se==="slice_layer_without_partitioning_rbsp_idr"&&(q=!0),F=A-2,A+=3;break;default:A+=3;break}return O=O.subarray(F),A-=F,F=0,O&&O.byteLength>3&&(se=cv(O[F+3]&31),se==="slice_layer_without_partitioning_rbsp_idr"&&(q=!0)),q},x4={parseType:_4,parsePat:T4,parsePmt:w4,parsePayloadUnitStartIndicator:lh,parsePesType:S4,parsePesTime:C4,videoPacketContainsKeyFrame:E4},Fw=Kf,gl=lw.handleRollover,un={};un.ts=x4,un.aac=sv;var fo=pe.ONE_SECOND_IN_TS,Ss=188,oi=71,k4=function(b,x){for(var O=0,A=Ss,F,q;A<b.byteLength;){if(b[O]===oi&&b[A]===oi){switch(F=b.subarray(O,A),q=un.ts.parseType(F,x.pid),q){case"pat":x.pid=un.ts.parsePat(F);break;case"pmt":var se=un.ts.parsePmt(F);x.table=x.table||{},Object.keys(se).forEach(function(ce){x.table[ce]=se[ce]});break}O+=Ss,A+=Ss;continue}O++,A++}},Bw=function(b,x,O){for(var A=0,F=Ss,q,se,ce,fe,be,Me=!1;F<=b.byteLength;){if(b[A]===oi&&(b[F]===oi||F===b.byteLength)){switch(q=b.subarray(A,F),se=un.ts.parseType(q,x.pid),se){case"pes":ce=un.ts.parsePesType(q,x.table),fe=un.ts.parsePayloadUnitStartIndicator(q),ce==="audio"&&fe&&(be=un.ts.parsePesTime(q),be&&(be.type="audio",O.audio.push(be),Me=!0));break}if(Me)break;A+=Ss,F+=Ss;continue}A++,F++}for(F=b.byteLength,A=F-Ss,Me=!1;A>=0;){if(b[A]===oi&&(b[F]===oi||F===b.byteLength)){switch(q=b.subarray(A,F),se=un.ts.parseType(q,x.pid),se){case"pes":ce=un.ts.parsePesType(q,x.table),fe=un.ts.parsePayloadUnitStartIndicator(q),ce==="audio"&&fe&&(be=un.ts.parsePesTime(q),be&&(be.type="audio",O.audio.push(be),Me=!0));break}if(Me)break;A-=Ss,F-=Ss;continue}A--,F--}},I4=function(b,x,O){for(var A=0,F=Ss,q,se,ce,fe,be,Me,We,kt,it=!1,Ht={data:[],size:0};F<b.byteLength;){if(b[A]===oi&&b[F]===oi){switch(q=b.subarray(A,F),se=un.ts.parseType(q,x.pid),se){case"pes":if(ce=un.ts.parsePesType(q,x.table),fe=un.ts.parsePayloadUnitStartIndicator(q),ce==="video"&&(fe&&!it&&(be=un.ts.parsePesTime(q),be&&(be.type="video",O.video.push(be),it=!0)),!O.firstKeyFrame)){if(fe&&Ht.size!==0){for(Me=new Uint8Array(Ht.size),We=0;Ht.data.length;)kt=Ht.data.shift(),Me.set(kt,We),We+=kt.byteLength;if(un.ts.videoPacketContainsKeyFrame(Me)){var Yt=un.ts.parsePesTime(Me);Yt?(O.firstKeyFrame=Yt,O.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.")}Ht.size=0}Ht.data.push(q),Ht.size+=q.byteLength}break}if(it&&O.firstKeyFrame)break;A+=Ss,F+=Ss;continue}A++,F++}for(F=b.byteLength,A=F-Ss,it=!1;A>=0;){if(b[A]===oi&&b[F]===oi){switch(q=b.subarray(A,F),se=un.ts.parseType(q,x.pid),se){case"pes":ce=un.ts.parsePesType(q,x.table),fe=un.ts.parsePayloadUnitStartIndicator(q),ce==="video"&&fe&&(be=un.ts.parsePesTime(q),be&&(be.type="video",O.video.push(be),it=!0));break}if(it)break;A-=Ss,F-=Ss;continue}A--,F--}},O4=function(b,x){if(b.audio&&b.audio.length){var O=x;(typeof O>"u"||isNaN(O))&&(O=b.audio[0].dts),b.audio.forEach(function(q){q.dts=gl(q.dts,O),q.pts=gl(q.pts,O),q.dtsTime=q.dts/fo,q.ptsTime=q.pts/fo})}if(b.video&&b.video.length){var A=x;if((typeof A>"u"||isNaN(A))&&(A=b.video[0].dts),b.video.forEach(function(q){q.dts=gl(q.dts,A),q.pts=gl(q.pts,A),q.dtsTime=q.dts/fo,q.ptsTime=q.pts/fo}),b.firstKeyFrame){var F=b.firstKeyFrame;F.dts=gl(F.dts,A),F.pts=gl(F.pts,A),F.dtsTime=F.dts/fo,F.ptsTime=F.pts/fo}}},A4=function(b){for(var x=!1,O=0,A=null,F=null,q=0,se=0,ce;b.length-se>=3;){var fe=un.aac.parseType(b,se);switch(fe){case"timed-metadata":if(b.length-se<10){x=!0;break}if(q=un.aac.parseId3TagSize(b,se),q>b.length){x=!0;break}F===null&&(ce=b.subarray(se,se+q),F=un.aac.parseAacTimestamp(ce)),se+=q;break;case"audio":if(b.length-se<7){x=!0;break}if(q=un.aac.parseAdtsSize(b,se),q>b.length){x=!0;break}A===null&&(ce=b.subarray(se,se+q),A=un.aac.parseSampleRate(ce)),O++,se+=q;break;default:se++;break}if(x)return null}if(A===null||F===null)return null;var be=fo/A,Me={audio:[{type:"audio",dts:F,pts:F},{type:"audio",dts:F+O*1024*be,pts:F+O*1024*be}]};return Me},P4=function(b){var x={pid:null,table:null},O={};k4(b,x);for(var A in x.table)if(x.table.hasOwnProperty(A)){var F=x.table[A];switch(F){case Fw.H264_STREAM_TYPE:O.video=[],I4(b,x,O),O.video.length===0&&delete O.video;break;case Fw.ADTS_STREAM_TYPE:O.audio=[],Bw(b,x,O),O.audio.length===0&&delete O.audio;break}}return O},$4=function(b,x){var O=un.aac.isLikelyAacData(b),A;return O?A=A4(b):A=P4(b),!A||!A.audio&&!A.video?null:(O4(A,x),A)},N4={inspect:$4,parseAudioPes_:Bw};const M4=function(b,x){x.on("data",function(O){const A=O.initSegment;O.initSegment={data:A.buffer,byteOffset:A.byteOffset,byteLength:A.byteLength};const F=O.data;O.data=F.buffer,b.postMessage({action:"data",segment:O,byteOffset:F.byteOffset,byteLength:F.byteLength},[O.data])}),x.on("done",function(O){b.postMessage({action:"done"})}),x.on("gopInfo",function(O){b.postMessage({action:"gopInfo",gopInfo:O})}),x.on("videoSegmentTimingInfo",function(O){const A={start:{decode:pe.videoTsToSeconds(O.start.dts),presentation:pe.videoTsToSeconds(O.start.pts)},end:{decode:pe.videoTsToSeconds(O.end.dts),presentation:pe.videoTsToSeconds(O.end.pts)},baseMediaDecodeTime:pe.videoTsToSeconds(O.baseMediaDecodeTime)};O.prependedContentDuration&&(A.prependedContentDuration=pe.videoTsToSeconds(O.prependedContentDuration)),b.postMessage({action:"videoSegmentTimingInfo",videoSegmentTimingInfo:A})}),x.on("audioSegmentTimingInfo",function(O){const A={start:{decode:pe.videoTsToSeconds(O.start.dts),presentation:pe.videoTsToSeconds(O.start.pts)},end:{decode:pe.videoTsToSeconds(O.end.dts),presentation:pe.videoTsToSeconds(O.end.pts)},baseMediaDecodeTime:pe.videoTsToSeconds(O.baseMediaDecodeTime)};O.prependedContentDuration&&(A.prependedContentDuration=pe.videoTsToSeconds(O.prependedContentDuration)),b.postMessage({action:"audioSegmentTimingInfo",audioSegmentTimingInfo:A})}),x.on("id3Frame",function(O){b.postMessage({action:"id3Frame",id3Frame:O})}),x.on("caption",function(O){b.postMessage({action:"caption",caption:O})}),x.on("trackinfo",function(O){b.postMessage({action:"trackinfo",trackInfo:O})}),x.on("audioTimingInfo",function(O){b.postMessage({action:"audioTimingInfo",audioTimingInfo:{start:pe.videoTsToSeconds(O.start),end:pe.videoTsToSeconds(O.end)}})}),x.on("videoTimingInfo",function(O){b.postMessage({action:"videoTimingInfo",videoTimingInfo:{start:pe.videoTsToSeconds(O.start),end:pe.videoTsToSeconds(O.end)}})}),x.on("log",function(O){b.postMessage({action:"log",log:O})})};class Vw{constructor(x,O){this.options=O||{},this.self=x,this.init()}init(){this.transmuxer&&this.transmuxer.dispose(),this.transmuxer=new KD.Transmuxer(this.options),M4(this.self,this.transmuxer)}pushMp4Captions(x){this.captionParser||(this.captionParser=new m4,this.captionParser.init());const O=new Uint8Array(x.data,x.byteOffset,x.byteLength),A=this.captionParser.parse(O,x.trackIds,x.timescales);this.self.postMessage({action:"mp4Captions",captions:A&&A.captions||[],logs:A&&A.logs||[],data:O.buffer},[O.buffer])}probeMp4StartTime({timescales:x,data:O}){const A=Lw.startTime(x,O);this.self.postMessage({action:"probeMp4StartTime",startTime:A,data:O},[O.buffer])}probeMp4Tracks({data:x}){const O=Lw.tracks(x);this.self.postMessage({action:"probeMp4Tracks",tracks:O,data:x},[x.buffer])}probeTs({data:x,baseStartTime:O}){const A=typeof O=="number"&&!isNaN(O)?O*pe.ONE_SECOND_IN_TS:void 0,F=N4.inspect(x,A);let q=null;F&&(q={hasVideo:F.video&&F.video.length===2||!1,hasAudio:F.audio&&F.audio.length===2||!1},q.hasVideo&&(q.videoStart=F.video[0].ptsTime),q.hasAudio&&(q.audioStart=F.audio[0].ptsTime)),this.self.postMessage({action:"probeTs",result:q,data:x},[x.buffer])}clearAllMp4Captions(){this.captionParser&&this.captionParser.clearAllCaptions()}clearParsedMp4Captions(){this.captionParser&&this.captionParser.clearParsedCaptions()}push(x){const O=new Uint8Array(x.data,x.byteOffset,x.byteLength);this.transmuxer.push(O)}reset(){this.transmuxer.reset()}setTimestampOffset(x){const O=x.timestampOffset||0;this.transmuxer.setBaseMediaDecodeTime(Math.round(pe.secondsToVideoTs(O)))}setAudioAppendStart(x){this.transmuxer.setAudioAppendStart(Math.ceil(pe.secondsToVideoTs(x.appendStart)))}setRemux(x){this.transmuxer.setRemux(x.remux)}flush(x){this.transmuxer.flush(),self.postMessage({action:"done",type:"transmuxed"})}endTimeline(){this.transmuxer.endTimeline(),self.postMessage({action:"endedtimeline",type:"transmuxed"})}alignGopsWith(x){this.transmuxer.alignGopsWith(x.gopsToAlignWith.slice())}}self.onmessage=function(b){if(b.data.action==="init"&&b.data.options){this.messageHandlers=new Vw(self,b.data.options);return}this.messageHandlers||(this.messageHandlers=new Vw(self)),b.data&&b.data.action&&b.data.action!=="init"&&this.messageHandlers[b.data.action]&&this.messageHandlers[b.data.action](b.data)}}));var p1e=PL(h1e);const m1e=(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)},g1e=({transmuxedData:e,callback:t})=>{e.buffer=[],t(e)},v1e=(e,t)=>{t.gopInfo=e.data.gopInfo},ML=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:p,onDone:g,onEndedTimeline:m,onTransmuxerLog:y,isEndOfTimeline:v}=e,_={buffer:[]};let w=v;const T=S=>{t.currentTransmux===e&&(S.data.action==="data"&&m1e(S,_,a),S.data.action==="trackinfo"&&o(S.data.trackInfo),S.data.action==="gopInfo"&&v1e(S,_),S.data.action==="audioTimingInfo"&&l(S.data.audioTimingInfo),S.data.action==="videoTimingInfo"&&u(S.data.videoTimingInfo),S.data.action==="videoSegmentTimingInfo"&&c(S.data.videoSegmentTimingInfo),S.data.action==="audioSegmentTimingInfo"&&f(S.data.audioSegmentTimingInfo),S.data.action==="id3Frame"&&h([S.data.id3Frame],S.data.id3Frame.dispatchType),S.data.action==="caption"&&p(S.data.caption),S.data.action==="endedtimeline"&&(w=!1,m()),S.data.action==="log"&&y(S.data.log),S.data.type==="transmuxed"&&(w||(t.onmessage=null,g1e({transmuxedData:_,callback:g}),RL(t))))};if(t.onmessage=T,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 S=n instanceof ArrayBuffer?n:n.buffer,E=n instanceof ArrayBuffer?0:n.byteOffset;t.postMessage({action:"push",data:S,byteOffset:E,byteLength:n.byteLength},[S])}v&&t.postMessage({action:"endTimeline"}),t.postMessage({action:"flush"})},RL=e=>{e.currentTransmux=null,e.transmuxQueue.length&&(e.currentTransmux=e.transmuxQueue.shift(),typeof e.currentTransmux=="function"?e.currentTransmux():ML(e.currentTransmux))},X2=(e,t)=>{e.postMessage({action:t}),RL(e)},LL=(e,t)=>{if(!t.currentTransmux){t.currentTransmux=e,X2(t,e);return}t.transmuxQueue.push(X2.bind(null,t,e))},y1e=e=>{LL("reset",e)},b1e=e=>{LL("endTimeline",e)},DL=e=>{if(!e.transmuxer.currentTransmux){e.transmuxer.currentTransmux=e,ML(e);return}e.transmuxer.transmuxQueue.push(e)},_1e=e=>{const t=new p1e;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 b0={reset:y1e,endTimeline:b1e,transmux:DL,createTransmuxer:_1e};const xm=function(e){const t=e.transmuxer,n=e.endAction||e.action,s=e.callback,r=oa({},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)},bi={FAILURE:2,TIMEOUT:-101,ABORTED:-102},Pb=e=>{e.forEach(t=>{t.abort()})},T1e=e=>({bandwidth:e.bandwidth,bytesReceived:e.bytesReceived||0,roundTripTime:e.roundTripTime||0}),w1e=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},JT=(e,t)=>t.timedout?{status:t.status,message:"HLS request timed-out at URL: "+t.uri,code:bi.TIMEOUT,xhr:t}:t.aborted?{status:t.status,message:"HLS request aborted at URL: "+t.uri,code:bi.ABORTED,xhr:t}:e?{status:t.status,message:"HLS request errored at URL: "+t.uri,code:bi.FAILURE,xhr:t}:t.responseType==="arraybuffer"&&t.response.byteLength===0?{status:t.status,message:"Empty HLS response at URL: "+t.uri,code:bi.FAILURE,xhr:t}:null,Q2=(e,t,n)=>(s,r)=>{const i=r.response,a=JT(s,r);if(a)return n(a,e);if(i.byteLength!==16)return n({status:r.status,message:"Invalid HLS key at URL: "+r.uri,code:bi.FAILURE,xhr:r},e);const o=new DataView(i),l=new Uint32Array([o.getUint32(0),o.getUint32(4),o.getUint32(8),o.getUint32(12)]);for(let u=0;u<t.length;u++)t[u].bytes=l;return n(null,e)},FL=(e,t)=>{const n=gT(e.map.bytes);if(n!=="mp4"){const s=e.map.resolvedUri||e.map.uri;return t({internal:!0,message:`Found unsupported ${n||"unknown"} container for initialization segment at URL: ${s}`,code:bi.FAILURE})}xm({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))})},S1e=({segment:e,finishProcessingFn:t})=>(n,s)=>{const r=JT(n,s);if(r)return t(r,e);const i=new Uint8Array(s.response);if(e.map.key)return e.map.encryptedBytes=i,t(null,e);e.map.bytes=i,FL(e,function(a){if(a)return a.xhr=s,a.status=s.status,t(a,e);t(null,e)})},C1e=({segment:e,finishProcessingFn:t,responseType:n})=>(s,r)=>{const i=JT(s,r);if(i)return t(i,e);const a=n==="arraybuffer"||!r.responseText?r.response:d1e(r.responseText.substring(e.lastReachedChar||0));return e.stats=T1e(r),e.key?e.encryptedBytes=new Uint8Array(a):e.bytes=new Uint8Array(a),t(null,e)},E1e=({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})=>{const p=e.map&&e.map.tracks||{},g=!!(p.audio&&p.video);let m=s.bind(null,e,"audio","start");const y=s.bind(null,e,"audio","end");let v=s.bind(null,e,"video","start");const _=s.bind(null,e,"video","end"),w=()=>DL({bytes:t,transmuxer:e.transmuxer,audioAppendStart:e.audioAppendStart,gopsToAlignWith:e.gopsToAlignWith,remux:g,onData:T=>{T.type=T.type==="combined"?"video":T.type,c(e,T)},onTrackInfo:T=>{n&&(g&&(T.isMuxed=!0),n(e,T))},onAudioTimingInfo:T=>{m&&typeof T.start<"u"&&(m(T.start),m=null),y&&typeof T.end<"u"&&y(T.end)},onVideoTimingInfo:T=>{v&&typeof T.start<"u"&&(v(T.start),v=null),_&&typeof T.end<"u"&&_(T.end)},onVideoSegmentTimingInfo:T=>{r(T)},onAudioSegmentTimingInfo:T=>{i(T)},onId3:(T,S)=>{a(e,T,S)},onCaptions:T=>{o(e,[T])},isEndOfTimeline:l,onEndedTimeline:()=>{u()},onTransmuxerLog:h,onDone:T=>{f&&(T.type=T.type==="combined"?"video":T.type,f(null,e,T))}});xm({action:"probeTs",transmuxer:e.transmuxer,data:t,baseStartTime:e.baseStartTime,callback:T=>{e.bytes=t=T.data;const S=T.result;S&&(n(e,{hasAudio:S.hasAudio,hasVideo:S.hasVideo,isMuxed:g}),n=null,S.hasAudio&&!g&&m(S.audioStart),S.hasVideo&&v(S.videoStart),m=null,v=null),w()}})},BL=({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})=>{let p=new Uint8Array(t);if(nbe(p)){e.isFmp4=!0;const{tracks:g}=e.map,m={isFmp4:!0,hasVideo:!!g.video,hasAudio:!!g.audio};g.audio&&g.audio.codec&&g.audio.codec!=="enca"&&(m.audioCodec=g.audio.codec),g.video&&g.video.codec&&g.video.codec!=="encv"&&(m.videoCodec=g.video.codec),g.video&&g.audio&&(m.isMuxed=!0),n(e,m);const y=v=>{c(e,{data:p,type:m.hasAudio&&!m.isMuxed?"audio":"video"}),v&&v.length&&o(e,v),f(null,e,{})};xm({action:"probeMp4StartTime",timescales:e.map.timescales,data:p,transmuxer:e.transmuxer,callback:({data:v,startTime:_})=>{if(t=v.buffer,e.bytes=p=v,m.hasAudio&&!m.isMuxed&&s(e,"audio","start",_),m.hasVideo&&s(e,"video","start",_),!g.video||!v.byteLength||!e.transmuxer){y();return}xm({action:"pushMp4Captions",endAction:"mp4Captions",transmuxer:e.transmuxer,data:p,timescales:e.map.timescales,trackIds:[g.video.id],callback:w=>{t=w.data.buffer,e.bytes=p=w.data,w.logs.forEach(function(T){h(wn(T,{stream:"mp4CaptionParser"}))}),y(w.captions)}})}});return}if(!e.transmuxer){f(null,e,{});return}if(typeof e.container>"u"&&(e.container=gT(p)),e.container!=="ts"&&e.container!=="aac"){n(e,{hasAudio:!1,hasVideo:!1}),f(null,e,{});return}E1e({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})},VL=function({id:e,key:t,encryptedBytes:n,decryptionWorker:s},r){const i=o=>{if(o.data.source===e){s.removeEventListener("message",i);const l=o.data.decrypted;r(new Uint8Array(l.bytes,l.byteOffset,l.byteLength))}};s.addEventListener("message",i);let a;t.bytes.slice?a=t.bytes.slice():a=new Uint32Array(Array.prototype.slice.call(t.bytes)),s.postMessage(EL({source:e,encrypted:n,key:a,iv:t.iv}),[n.buffer,a.buffer])},x1e=({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})=>{VL({id:t.requestId,key:t.key,encryptedBytes:t.encryptedBytes,decryptionWorker:e},p=>{t.bytes=p,BL({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})})},k1e=({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})=>{let p=0,g=!1;return(m,y)=>{if(!g){if(m)return g=!0,Pb(e),f(m,y);if(p+=1,p===e.length){const v=function(){if(y.encryptedBytes)return x1e({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});BL({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})};if(y.endOfAllRequests=Date.now(),y.map&&y.map.encryptedBytes&&!y.map.bytes)return VL({decryptionWorker:t,id:y.requestId+"-init",encryptedBytes:y.map.encryptedBytes,key:y.map.key},_=>{y.map.bytes=_,FL(y,w=>{if(w)return Pb(e),f(w,y);v()})});v()}}}},I1e=({loadendState:e,abortFn:t})=>n=>{n.target.aborted&&t&&!e.calledAbortFn&&(t(),e.calledAbortFn=!0)},O1e=({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=wn(e.stats,w1e(f)),!e.stats.firstBytesReceivedAt&&e.stats.bytesReceived&&(e.stats.firstBytesReceivedAt=Date.now()),t(f,e)},A1e=({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:p,dataFn:g,doneFn:m,onTransmuxerLog:y})=>{const v=[],_=k1e({activeXhrs:v,decryptionWorker:n,trackInfoFn:a,timingInfoFn:o,videoSegmentTimingInfoFn:l,audioSegmentTimingInfoFn:u,id3Fn:c,captionsFn:f,isEndOfTimeline:h,endedTimelineFn:p,dataFn:g,doneFn:m,onTransmuxerLog:y});if(s.key&&!s.key.bytes){const $=[s.key];s.map&&!s.map.bytes&&s.map.key&&s.map.key.resolvedUri===s.key.resolvedUri&&$.push(s.map.key);const P=wn(t,{uri:s.key.resolvedUri,responseType:"arraybuffer"}),U=Q2(s,$,_),H=e(P,U);v.push(H)}if(s.map&&!s.map.bytes){if(s.map.key&&(!s.key||s.key.resolvedUri!==s.map.key.resolvedUri)){const z=wn(t,{uri:s.map.key.resolvedUri,responseType:"arraybuffer"}),W=Q2(s,[s.map.key],_),D=e(z,W);v.push(D)}const P=wn(t,{uri:s.map.resolvedUri,responseType:"arraybuffer",headers:Ob(s.map)}),U=S1e({segment:s,finishProcessingFn:_}),H=e(P,U);v.push(H)}const w=wn(t,{uri:s.part&&s.part.resolvedUri||s.resolvedUri,responseType:"arraybuffer",headers:Ob(s)}),T=C1e({segment:s,finishProcessingFn:_,responseType:w.responseType}),S=e(w,T);S.addEventListener("progress",O1e({segment:s,progressFn:i,trackInfoFn:a,timingInfoFn:o,videoSegmentTimingInfoFn:l,audioSegmentTimingInfoFn:u,id3Fn:c,captionsFn:f,isEndOfTimeline:h,endedTimelineFn:p,dataFn:g})),v.push(S);const E={};return v.forEach($=>{$.addEventListener("loadend",I1e({loadendState:E,abortFn:r}))}),()=>Pb(v)},P1e=ai("CodecUtils"),$1e=function(e){const t=e.attributes||{};if(t.CODECS)return ui(t.CODECS)},UL=(e,t)=>{const n=t.attributes||{};return e&&e.mediaGroups&&e.mediaGroups.AUDIO&&n.AUDIO&&e.mediaGroups.AUDIO[n.AUDIO]},N1e=(e,t)=>{if(!UL(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},km=function(e){const t={};return e.forEach(({mediaType:n,type:s,details:r})=>{t[n]=t[n]||[],t[n].push(iM(`${s}${r}`))}),Object.keys(t).forEach(function(n){if(t[n].length>1){P1e(`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},J2=function(e){let t=0;return e.audio&&t++,e.video&&t++,t},ld=function(e,t){const n=t.attributes||{},s=km($1e(t)||[]);if(UL(e,t)&&!s.audio&&!N1e(e,t)){const r=km(r0e(e,n.AUDIO)||[]);r.audio&&(s.audio=r.audio)}return s},Hh=ai("PlaylistSelector"),Z2=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||""})},Im=function(e,t){if(!e)return"";const n=ye.getComputedStyle(e);return n?n[t]:""},iu=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})},ZT=function(e,t){let n,s;return e.attributes.BANDWIDTH&&(n=e.attributes.BANDWIDTH),n=n||ye.Number.MAX_VALUE,t.attributes.BANDWIDTH&&(s=t.attributes.BANDWIDTH),s=s||ye.Number.MAX_VALUE,n-s},M1e=function(e,t){let n,s;return e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width&&(n=e.attributes.RESOLUTION.width),n=n||ye.Number.MAX_VALUE,t.attributes.RESOLUTION&&t.attributes.RESOLUTION.width&&(s=t.attributes.RESOLUTION.width),s=s||ye.Number.MAX_VALUE,n===s&&e.attributes.BANDWIDTH&&t.attributes.BANDWIDTH?e.attributes.BANDWIDTH-t.attributes.BANDWIDTH:n-s};let HL=function(e,t,n,s,r,i){if(!e)return;const a={bandwidth:t,width:n,height:s,limitRenditionByPlayerDimensions:r};let o=e.playlists;Ws.isAudioOnly(e)&&(o=i.getAudioTrackPlaylists_(),a.audioOnly=!0);let l=o.map(S=>{let E;const $=S.attributes&&S.attributes.RESOLUTION&&S.attributes.RESOLUTION.width,P=S.attributes&&S.attributes.RESOLUTION&&S.attributes.RESOLUTION.height;return E=S.attributes&&S.attributes.BANDWIDTH,E=E||ye.Number.MAX_VALUE,{bandwidth:E,width:$,height:P,playlist:S}});iu(l,(S,E)=>S.bandwidth-E.bandwidth),l=l.filter(S=>!Ws.isIncompatible(S.playlist));let u=l.filter(S=>Ws.isEnabled(S.playlist));u.length||(u=l.filter(S=>!Ws.isDisabled(S.playlist)));const c=u.filter(S=>S.bandwidth*is.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 E="sortedPlaylistReps";return h&&(E="bandwidthBestRep"),u[0]&&(E="enabledPlaylistReps"),Hh(`choosing ${Z2(S)} using ${E} with options`,a),S.playlist}return Hh("could not choose a playlist with options",a),null}const p=c.filter(S=>S.width&&S.height);iu(p,(S,E)=>S.width-E.width);const g=p.filter(S=>S.width===n&&S.height===s);f=g[g.length-1];const m=g.filter(S=>S.bandwidth===f.bandwidth)[0];let y,v,_;m||(y=p.filter(S=>S.width>n||S.height>s),v=y.filter(S=>S.width===y[0].width&&S.height===y[0].height),f=v[v.length-1],_=v.filter(S=>S.bandwidth===f.bandwidth)[0]);let w;if(i.leastPixelDiffSelector){const S=p.map(E=>(E.pixelDiff=Math.abs(E.width-n)+Math.abs(E.height-s),E));iu(S,(E,$)=>E.pixelDiff===$.pixelDiff?$.bandwidth-E.bandwidth:E.pixelDiff-$.pixelDiff),w=S[0]}const T=w||_||m||h||u[0]||l[0];if(T&&T.playlist){let S="sortedPlaylistReps";return w?S="leastPixelDiffRep":_?S="resolutionPlusOneRep":m?S="resolutionBestRep":h?S="bandwidthBestRep":u[0]&&(S="enabledPlaylistReps"),Hh(`choosing ${Z2(T)} using ${S} with options`,a),T.playlist}return Hh("could not choose a playlist with options",a),null};const ek=function(){const e=this.useDevicePixelRatio&&ye.devicePixelRatio||1;return HL(this.playlists.main,this.systemBandwidth,parseInt(Im(this.tech_.el(),"width"),10)*e,parseInt(Im(this.tech_.el(),"height"),10)*e,this.limitRenditionByPlayerDimensions,this.playlistController_)},R1e=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(){const s=this.useDevicePixelRatio&&ye.devicePixelRatio||1;return t<0&&(t=this.systemBandwidth,n=this.systemBandwidth),this.systemBandwidth>0&&this.systemBandwidth!==n&&(t=e*this.systemBandwidth+(1-e)*t,n=this.systemBandwidth),HL(this.playlists.main,t,parseInt(Im(this.tech_.el(),"width"),10)*s,parseInt(Im(this.tech_.el(),"height"),10)*s,this.limitRenditionByPlayerDimensions,this.playlistController_)}},L1e=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=>!Ws.isIncompatible(g));let c=u.filter(Ws.isEnabled);c.length||(c=u.filter(g=>!Ws.isDisabled(g)));const h=c.filter(Ws.hasAttribute.bind(null,"BANDWIDTH")).map(g=>{const y=l.getSyncPoint(g,r,o,n)?1:2,_=Ws.estimateSegmentRequestTime(i,s,g)*y-a;return{playlist:g,rebufferingImpact:_}}),p=h.filter(g=>g.rebufferingImpact<=0);return iu(p,(g,m)=>ZT(m.playlist,g.playlist)),p.length?p[0]:(iu(h,(g,m)=>g.rebufferingImpact-m.rebufferingImpact),h[0]||null)},D1e=function(){const e=this.playlists.main.playlists.filter(Ws.isEnabled);return iu(e,(n,s)=>ZT(n,s)),e.filter(n=>!!ld(this.playlists.main,n).video)[0]||null},F1e=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},B1e=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}}},V1e=function({inbandTextTracks:e,captionArray:t,timestampOffset:n}){if(!t)return;const s=ye.WebKitDataCue||ye.VTTCue;t.forEach(r=>{const i=r.stream;e[i].addCue(new s(r.startTime+n,r.endTime+n,r.text))})},U1e=function(e){Object.defineProperties(e.frame,{id:{get(){return je.log.warn("cue.frame.id is deprecated. Use cue.value.key instead."),e.value.key}},value:{get(){return je.log.warn("cue.frame.value is deprecated. Use cue.value.data instead."),e.value.data}},privateData:{get(){return je.log.warn("cue.frame.privateData is deprecated. Use cue.value.data instead."),e.value.data}}})},H1e=({inbandTextTracks:e,metadataArray:t,timestampOffset:n,videoDuration:s})=>{if(!t)return;const r=ye.WebKitDataCue||ye.VTTCue,i=e.metadataTrack_;if(!i||(t.forEach(c=>{const f=c.cueTime+n;typeof f!="number"||ye.isNaN(f)||f<0||!(f<1/0)||c.frames.forEach(h=>{const p=new r(f,f,h.value||h.url||h.data||"");p.frame=h,p.value=h,U1e(p),i.addCue(p)})}),!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],p=Number(u[f+1])||s;h.forEach(g=>{g.endTime=p})})},z1e=(e,t,n)=>{e.metadataTrack_||(e.metadataTrack_=n.addRemoteTextTrack({kind:"metadata",label:"Timed Metadata"},!1).track,e.metadataTrack_.inBandMetadataTrackDispatchType=t)},Vc=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)},j1e=function(e){const t=e.cues;if(t)for(let n=0;n<t.length;n++){const s=[];let r=0;for(let i=0;i<t.length;i++)t[n].startTime===t[i].startTime&&t[n].endTime===t[i].endTime&&t[n].text===t[i].text&&(r++,r>1&&s.push(t[i]));s.length&&s.forEach(i=>e.removeCue(i))}},K1e=(e,t,n)=>{if(typeof t>"u"||t===null||!e.length)return[];const s=Math.ceil((t-n+3)*dm.ONE_SECOND_IN_TS);let r;for(r=0;r<e.length&&!(e[r].pts>s);r++);return e.slice(r)},W1e=(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)},q1e=(e,t,n,s)=>{const r=Math.ceil((t-s)*dm.ONE_SECOND_IN_TS),i=Math.ceil((n-s)*dm.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},G1e=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},zL=22,Y1e=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]},Pc=1,X1e=500,tk=e=>typeof e=="number"&&isFinite(e),zh=1/60,Q1e=(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,J1e=(e,t,n)=>{let s=t-is.BACK_BUFFER_LENGTH;e.length&&(s=Math.max(s,e.start(0)));const r=t-n;return Math.min(r,s)},Ol=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 p=typeof u=="number",g=e.segment.uri?"segment":"pre-segment",m=p?dL({preloadSegment:s})-1:0;return`${g} [${i+l}/${i+f}]`+(p?` part [${u}/${m}]`:"")+` segment start/end [${s.start} => ${s.end}]`+(p?` part start/end [${r.start} => ${r.end}]`:"")+` startOfSegment [${t}] duration [${n}] timeline [${c}] selected by [${h}] playlist [${a}]`},nk=e=>`${e}TimingInfo`,Z1e=({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,sk=({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},eTe=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=ye.BigInt(i)-ye.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},rk=({segmentDuration:e,maxDuration:t})=>e?Math.round(e)>t+Ja:!1,tTe=(e,t)=>{if(t!=="hls")return null;const n=eTe({audioTimingInfo:e.audioTimingInfo,videoTimingInfo:e.videoTimingInfo});if(!n)return null;const s=e.playlist.targetDuration,r=rk({segmentDuration:n,maxDuration:s*2}),i=rk({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};class $b extends je.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.checkBufferTimeout_=null,this.error_=void 0,this.currentTimeline_=-1,this.pendingSegment_=null,this.xhrOptions_=null,this.pendingSegments_=[],this.audioDisabled_=!1,this.isPendingTimestampOffset_=!1,this.gopBuffer_=[],this.timeMapping_=0,this.safeAppend_=je.browser.IE_VERSION>=11,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_=ai(`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.loaderType_==="main"&&this.timelineChangeController_.on("pendingtimelinechange",()=>{this.hasEnoughInfoToAppend_()&&this.processCallQueue_()}),this.loaderType_==="audio"&&this.timelineChangeController_.on("timelinechange",()=>{this.hasEnoughInfoToLoad_()&&this.processLoadQueue_(),this.hasEnoughInfoToAppend_()&&this.processCallQueue_()})}createTransmuxer_(){return b0.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_&&ye.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,ye.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_&&b0.reset(this.transmuxer_),this.gopBuffer_.length=0,this.pause(),this.trigger("ended")}buffered_(){const t=this.getMediaInfo_();if(!this.sourceUpdater_||!t)return ys();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=Em(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=xL(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.trigger("syncinfoupdate"),this.state==="INIT"&&this.couldBeginLoading_())return this.init_();if(!s||s.uri!==t.uri){this.mediaIndex!==null&&(t.endList?this.resyncLoader():this.resetLoader()),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_&&(ye.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=null)}paused(){return this.checkBufferTimeout_===null}resetEverything(t){this.ended_=!1,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.resyncLoader()}resyncLoader(){this.transmuxer_&&b0.reset(this.transmuxer_),this.mediaIndex=null,this.partIndex=null,this.syncPoint_=null,this.isPendingTimestampOffset_=!1,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_=q1e(this.gopBuffer_,t,n,this.timeMapping_),i++,this.sourceUpdater_.removeVideo(t,n,a));for(const o in this.inbandTextTracks_)Vc(t,n,this.inbandTextTracks_[o]);Vc(t,n,this.segmentMetadataTrack_),a()}monitorBuffer_(){this.checkBufferTimeout_&&ye.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=ye.setTimeout(this.monitorBufferTick_.bind(this),1)}monitorBufferTick_(){this.state==="READY"&&this.fillBuffer_(),this.checkBufferTimeout_&&ye.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=ye.setTimeout(this.monitorBufferTick_.bind(this),X1e)}fillBuffer_(){if(this.sourceUpdater_.updating())return;const t=this.chooseNextRequest_();t&&(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=W2(t)||0,s=qT(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_());const o={partIndex:null,mediaIndex:null,startOfSegment:null,playlist:this.playlist_,isSyncRequest:!this.syncPoint_};if(o.isSyncRequest)o.mediaIndex=Y1e(this.currentTimeline_,a,n);else if(this.mediaIndex!==null){const f=a[this.mediaIndex],h=typeof this.partIndex=="number"?this.partIndex:-1;o.startOfSegment=f.end?f.end:n,f.parts&&f.parts[h+1]?(o.mediaIndex=this.mediaIndex,o.partIndex=h+1):o.mediaIndex=this.mediaIndex+1}else{const{segmentIndex:f,startTime:h,partIndex:p}=Ws.getMediaInfoForTime({exactManifestTimings:this.exactManifestTimings,playlist:this.playlist_,currentTime:this.fetchAtBuffer_?n:this.currentTime_(),startingPartIndex:this.syncPoint_.partIndex,startingSegmentIndex:this.syncPoint_.segmentIndex,startTime:this.syncPoint_.time});o.getMediaInfoForTime=this.fetchAtBuffer_?`bufferedEnd ${n}`:`currentTime ${this.currentTime_()}`,o.mediaIndex=f,o.startOfSegment=h,o.partIndex=p}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;if(typeof o.partIndex!="number"&&l.parts&&(o.partIndex=0,u=l.parts[0]),!s&&u&&!u.independent)if(o.partIndex===0){const f=a[o.mediaIndex-1],h=f.parts&&f.parts.length&&f.parts[f.parts.length-1];h&&h.independent&&(o.mediaIndex-=1,o.partIndex=f.parts.length-1,o.independent="previous segment")}else l.parts[o.partIndex-1].independent&&(o.partIndex-=1,o.independent="previous part");const c=this.mediaSource_&&this.mediaSource_.readyState==="ended";return o.mediaIndex>=a.length-1&&c&&!this.seeking_()?null:this.generateSegmentInfo_(o)}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},p=typeof l<"u"?l:this.isPendingTimestampOffset_;h.timestampOffset=this.timestampOffsetForSegment_({segmentTimeline:c.timeline,currentTimeline:this.currentTimeline_,startOfSegment:i,buffered:this.buffered_(),overrideCheck:p});const g=W2(this.sourceUpdater_.audioBuffered());return typeof g=="number"&&(h.audioAppendStart=g-this.sourceUpdater_.audioTimestampOffset()),this.sourceUpdater_.videoBuffered().length&&(h.gopsToAlignWith=K1e(this.gopBuffer_,this.currentTime_()-this.sourceUpdater_.videoTimestampOffset(),this.timeMapping_)),h}timestampOffsetForSegment_(t){return Z1e(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=Ws.estimateSegmentRequestTime(r,s,this.playlist_,t.bytesReceived),a=k_e(this.buffered_(),n,this.vhs_.tech_.playbackRate())-1;if(i<=a)return;const o=L1e({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<=Ja&&(c=1),!(!o.playlist||o.playlist.uri===this.playlist_.uri||u<c)&&(this.bandwidth=o.playlist.attributes.BANDWIDTH*is.BANDWIDTH_VARIANCE+1,this.trigger("earlyabort"))}handleAbort_(t){this.logger_(`Aborting ${Ol(t)}`),this.mediaRequestsAborted+=1}handleProgress_(t,n){this.earlyAbortWhenNeeded_(n.stats),!this.checkForAbort_(n.requestId)&&this.trigger("progress")}handleTrackInfo_(t,n){this.earlyAbortWhenNeeded_(t.stats),!this.checkForAbort_(t.requestId)&&(this.checkForIllegalMediaSwitch(n)||(n=n||{},G1e(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=nk(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}`),B1e(c,this.vhs_.tech_,a),Vc(o,l,c[a]),V1e({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}const i=this.sourceUpdater_.videoTimestampOffset()===null?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset();z1e(this.inbandTextTracks_,s,this.vhs_.tech_),H1e({inbandTextTracks:this.inbandTextTracks_,metadataArray:n,timestampOffset:i,videoDuration: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_()?!sk({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_}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||sk({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[nk(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=Em(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: "+Do(i).join(", ")),a.length>1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the video buffer: "+Do(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<=Pc&&c-u<=Pc){this.logger_(`On QUOTA_EXCEEDED_ERR, single segment too large to append to buffer, triggering an error. Appended byte length: ${s.byteLength}, audio buffer: ${Do(i).join(", ")}, video buffer: ${Do(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_()-Pc;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 ${Pc}s`),this.waitingOnRemove_=!1,this.quotaExceededErrorRetryTimeout_=ye.setTimeout(()=>{this.logger_("On QUOTA_EXCEEDED_ERR, re-processing call queue"),this.quotaExceededErrorRetryTimeout_=null,this.processCallQueue_()},Pc*1e3)},!0)}handleAppendError_({segmentInfo:t,type:n,bytes:s},r){if(r){if(r.code===zL){this.handleQuotaExceededError_({segmentInfo:t,type:n,bytes:s});return}this.logger_("Received non QUOTA_EXCEEDED_ERR on append",r),this.error(`${n} append of ${s.length}b failed for segment #${t.mediaIndex} in playlist ${t.playlist.id}`),this.trigger("appenderror")}}appendToSourceBuffer_({segmentInfo:t,type:n,initSegment:s,data:r,bytes:i}){if(!i){const a=[r];let o=r.byteLength;s&&(a.unshift(s),o+=s.byteLength),i=F1e({bytes:o,segments: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=oa({},t,{forceTimestampOffset:!0});oa(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 ${Ol(t)}`),n.map&&!n.map.bytes&&(this.logger_("going to request init segment."),this.appendInitSegment_={video:!0,audio:!0}),t.abortRequests=A1e({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_(`${Ol(t)} logged from transmuxer stream ${u} as a ${l}: ${o}`)}})}trimBackBuffer_(t){const n=J1e(this.seekable_(),this.currentTime_(),this.playlist_.targetDuration||10);n>0&&this.remove(0,n)}createSimplifiedSegmentObj_(t){const n=t.segment,s=t.part,r={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},i=t.playlist.segments[t.mediaIndex-1];if(i&&i.timeline===n.timeline&&(i.videoTimingInfo?r.baseStartTime=i.videoTimingInfo.transmuxedDecodeEnd:i.audioTimingInfo&&(r.baseStartTime=i.audioTimingInfo.transmuxedDecodeEnd)),n.key){const a=n.key.iv||new Uint32Array([0,0,0,t.mediaIndex+t.playlist.mediaSequence]);r.key=this.segmentKey(n.key),r.key.iv=a}return n.map&&(r.map=this.initSegmentForMap(n.map)),r}saveTransferStats_(t){this.mediaRequests+=1,t&&(this.mediaBytesTransferred+=t.bytesReceived,this.mediaTransferDuration+=t.roundTripTime)}saveBandwidthRelatedStats_(t,n){if(this.pendingSegment_.byteLength=n.bytesReceived,t<zh){this.logger_(`Ignoring segment's bandwidth because its duration of ${t} is less than the min to record ${zh}`);return}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===bi.ABORTED)return;if(this.pause(),t.code===bi.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_=W1e(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=Q1e(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_&&this.trigger("appendsdone"),!this.pendingSegment_){this.state="READY",this.paused()||this.monitorBuffer_();return}const t=this.pendingSegment_;this.updateTimingInfoEnd_(t),this.shouldSaveSegmentTimingInfo_&&this.syncController_.saveSegmentTimingInfo({segmentInfo:t,shouldSaveTimelineMapping:this.loaderType_==="main"});const n=tTe(t,this.sourceType_);if(n&&(n.severity==="warn"?je.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 ${Ol(t)}`);return}this.logger_(`Appended ${Ol(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"} ${Ol(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<zh){this.logger_(`Ignoring segment's throughput because its duration of ${t.duration} is less than the min to record ${zh}`);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(!tk(s)||!tk(r))return;Vc(s,r,this.segmentMetadataTrack_);const i=ye.WebKitDataCue||ye.VTTCue,a={custom:n.custom,dateTimeObject:n.dateTimeObject,dateTimeString:n.dateTimeString,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 Yi(){}const jL=function(e){return typeof e!="string"?e:e.replace(/./,t=>t.toUpperCase())},nTe=["video","audio"],Nb=(e,t)=>{const n=t[`${e}Buffer`];return n&&n.updating||t.queuePending[e]},sTe=(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},au=(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(),au("audio",t),au("video",t));return}if(e!=="mediaSource"&&!(!t.ready()||t.mediaSource.readyState==="closed"||Nb(e,t))){if(s.type!==e){if(n=sTe(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,au(e,t);return}}},KL=(e,t)=>{const n=t[`${e}Buffer`],s=jL(e);n&&(n.removeEventListener("updateend",t[`on${s}UpdateEnd_`]),n.removeEventListener("error",t[`on${s}Error_`]),t.codecs[e]=null,t[`${e}Buffer`]=null)},di=(e,t)=>e&&t&&Array.prototype.indexOf.call(e.sourceBuffers,t)!==-1,lr={appendBuffer:(e,t,n)=>(s,r)=>{const i=r[`${s}Buffer`];if(di(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===zL?"(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(di(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`];di(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){je.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){je.log.warn("Failed to set media source duration",n)}},abort:()=>(e,t)=>{if(t.mediaSource.readyState!=="open")return;const n=t[`${e}Buffer`];if(di(t.mediaSource,n)){t.logger_(`calling abort on ${e}Buffer`);try{n.abort()}catch(s){je.log.warn(`Failed to abort on ${e}Buffer`,s)}}},addSourceBuffer:(e,t)=>n=>{const s=jL(e),r=qd(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(KL(e,t),!!di(t.mediaSource,n)){t.logger_(`Removing ${e}Buffer with codec ${t.codecs[e]} from mediaSource`);try{t.mediaSource.removeSourceBuffer(n)}catch(s){je.log.warn(`Failed to removeSourceBuffer ${e}Buffer`,s)}}},changeType:e=>(t,n)=>{const s=n[`${t}Buffer`],r=qd(e);di(n.mediaSource,s)&&n.codecs[t]!==e&&(n.logger_(`changing ${t}Buffer codec from ${n.codecs[t]} to ${e}`),s.changeType(r),n.codecs[t]=e)}},ur=({type:e,sourceUpdater:t,action:n,doneFn:s,name:r})=>{t.queue.push({type:e,action:n,doneFn:s,name:r}),au(e,t)},ik=(e,t)=>n=>{if(t.queuePending[e]){const s=t.queuePending[e].doneFn;t.queuePending[e]=null,s&&s(t[`${e}Error_`])}au(e,t)};class WL extends je.EventTarget{constructor(t){super(),this.mediaSource=t,this.sourceopenListener_=()=>au("mediaSource",this),this.mediaSource.addEventListener("sourceopen",this.sourceopenListener_),this.logger_=ai("SourceUpdater"),this.audioTimestampOffset_=0,this.videoTimestampOffset_=0,this.queue=[],this.queuePending={audio:null,video:null},this.delayedAudioAppendQueue_=[],this.videoAppendQueued_=!1,this.codecs={},this.onVideoUpdateEnd_=ik("video",this),this.onAudioUpdateEnd_=ik("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){ur({type:"mediaSource",sourceUpdater:this,action:lr.addSourceBuffer(t,n),name:"addSourceBuffer"})}abort(t){ur({type:t,sourceUpdater:this,action:lr.abort(t),name:"abort"})}removeSourceBuffer(t){if(!this.canRemoveSourceBuffer()){je.log.error("removeSourceBuffer is not supported!");return}ur({type:"mediaSource",sourceUpdater:this,action:lr.removeSourceBuffer(t),name:"removeSourceBuffer"})}canRemoveSourceBuffer(){return!je.browser.IE_VERSION&&!je.browser.IS_FIREFOX&&ye.MediaSource&&ye.MediaSource.prototype&&typeof ye.MediaSource.prototype.removeSourceBuffer=="function"}static canChangeType(){return ye.SourceBuffer&&ye.SourceBuffer.prototype&&typeof ye.SourceBuffer.prototype.changeType=="function"}canChangeType(){return this.constructor.canChangeType()}changeType(t,n){if(!this.canChangeType()){je.log.error("changeType is not supported!");return}ur({type:t,sourceUpdater:this,action:lr.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(ur({type:r,sourceUpdater:this,action:lr.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 di(this.mediaSource,this.audioBuffer)&&this.audioBuffer.buffered?this.audioBuffer.buffered:ys()}videoBuffered(){return di(this.mediaSource,this.videoBuffer)&&this.videoBuffer.buffered?this.videoBuffer.buffered:ys()}buffered(){const t=di(this.mediaSource,this.videoBuffer)?this.videoBuffer:null,n=di(this.mediaSource,this.audioBuffer)?this.audioBuffer:null;return n&&!t?this.audioBuffered():t&&!n?this.videoBuffered():x_e(this.audioBuffered(),this.videoBuffered())}setDuration(t,n=Yi){ur({type:"mediaSource",sourceUpdater:this,action:lr.duration(t),name:"duration",doneFn:n})}endOfStream(t=null,n=Yi){typeof t!="string"&&(t=void 0),ur({type:"mediaSource",sourceUpdater:this,action:lr.endOfStream(t),name:"endOfStream",doneFn:n})}removeAudio(t,n,s=Yi){if(!this.audioBuffered().length||this.audioBuffered().end(0)===0){s();return}ur({type:"audio",sourceUpdater:this,action:lr.remove(t,n),doneFn:s,name:"remove"})}removeVideo(t,n,s=Yi){if(!this.videoBuffered().length||this.videoBuffered().end(0)===0){s();return}ur({type:"video",sourceUpdater:this,action:lr.remove(t,n),doneFn:s,name:"remove"})}updating(){return!!(Nb("audio",this)||Nb("video",this))}audioTimestampOffset(t){return typeof t<"u"&&this.audioBuffer&&this.audioTimestampOffset_!==t&&(ur({type:"audio",sourceUpdater:this,action:lr.timestampOffset(t),name:"timestampOffset"}),this.audioTimestampOffset_=t),this.audioTimestampOffset_}videoTimestampOffset(t){return typeof t<"u"&&this.videoBuffer&&this.videoTimestampOffset!==t&&(ur({type:"video",sourceUpdater:this,action:lr.timestampOffset(t),name:"timestampOffset"}),this.videoTimestampOffset_=t),this.videoTimestampOffset_}audioQueueCallback(t){this.audioBuffer&&ur({type:"audio",sourceUpdater:this,action:lr.callback(t),name:"callback"})}videoQueueCallback(t){this.videoBuffer&&ur({type:"video",sourceUpdater:this,action:lr.callback(t),name:"callback"})}dispose(){this.trigger("dispose"),nTe.forEach(t=>{this.abort(t),this.canRemoveSourceBuffer()?this.removeSourceBuffer(t):this[`${t}QueueCallback`](()=>KL(t,this))}),this.videoAppendQueued_=!1,this.delayedAudioAppendQueue_.length=0,this.sourceopenListener_&&this.mediaSource.removeEventListener("sourceopen",this.sourceopenListener_),this.off()}}const ak=e=>decodeURIComponent(escape(String.fromCharCode.apply(null,e))),ok=new Uint8Array(`
|
||
|
||
`.split("").map(e=>e.charCodeAt(0)));class rTe extends $b{constructor(t,n={}){super(t,n),this.mediaSource_=null,this.subtitlesTrack_=null,this.loaderType_="subtitle",this.featuresNativeTextTracks_=t.featuresNativeTextTracks,this.shouldSaveSegmentTimingInfo_=!1}createTransmuxer_(){return null}buffered_(){if(!this.subtitlesTrack_||!this.subtitlesTrack_.cues||!this.subtitlesTrack_.cues.length)return ys();const t=this.subtitlesTrack_.cues,n=t[0].startTime,s=t[t.length-1].startTime;return ys([[n,s]])}initSegmentForMap(t,n=!1){if(!t)return null;const s=Em(t);let r=this.initSegments_[s];if(n&&!r&&t.bytes){const i=ok.byteLength+t.bytes.byteLength,a=new Uint8Array(i);a.set(t.bytes),a.set(ok,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){Vc(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===bi.TIMEOUT&&this.handleTimeout_(),t.code===bi.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 ye.WebVTT!="function"&&this.subtitlesTrack_&&this.subtitlesTrack_.tech_){let a;const o=()=>{this.subtitlesTrack_.tech_.off("vttjsloaded",a),this.stopForError({message:"Error loading vtt.js"})};a=()=>{this.subtitlesTrack_.tech_.off("vttjserror",o),this.segmentRequestFinished_(t,n,s)},this.state="WAITING_ON_VTTJS",this.subtitlesTrack_.tech_.one("vttjsloaded",a),this.subtitlesTrack_.tech_.one("vttjserror",o);return}i.requested=!0;try{this.parseVTTCues_(r)}catch(a){this.stopForError({message:a.message});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 ye.VTTCue(a.startTime,a.endTime,a.text):a)}),j1e(this.subtitlesTrack_),this.handleAppendsDone_()}handleData_(){}updateTimingInfoEnd_(){}parseVTTCues_(t){let n,s=!1;typeof ye.TextDecoder=="function"?n=new ye.TextDecoder("utf8"):(n=ye.WebVTT.StringDecoder(),s=!0);const r=new ye.WebVTT.Parser(ye,ye.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=>{je.log.warn("Error encountered when parsing cues: "+a.message)},t.segment.map){let a=t.segment.map.bytes;s&&(a=ak(a)),r.parse(a)}let i=t.bytes;s&&(i=ak(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 i=t.timestampmap,a=i.MPEGTS/dm.ONE_SECOND_IN_TS-i.LOCAL+n.mapping;if(t.cues.forEach(o=>{o.startTime+=a,o.endTime+=a}),!s.syncInfo){const o=t.cues[0].startTime,l=t.cues[t.cues.length-1].startTime;s.syncInfo={mediaSequence:s.mediaSequence+t.mediaIndex,time:Math.min(o,l-r.duration)}}}}const iTe=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},aTe=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=iTe(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 ye.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 ye.VTTCue(s,s+a.duration,""),r.adStartTime=s-o,r.adEndTime=r.adStartTime+l,t.addCue(r)}s+=a.duration}},oTe=86400,lk=[{name:"VOD",run:(e,t,n,s,r)=>n!==1/0?{time:0,segmentIndex:0,partIndex:null}:null},{name:"ProgramDateTime",run:(e,t,n,s,r)=>{if(!Object.keys(e.timelineToDatetimeMappings).length)return null;let i=null,a=null;const o=Cb(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 y=0;y<c.partIndex;y++)g+=f.parts[y].duration;const m=Math.abs(r-g);if(a!==null&&(m===0||a<m))break;a=m,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=Cb(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 p=Math.abs(r-h);if(a!==null&&a<p)break;(!i||a===null||a>=p)&&(a=p,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 lTe extends je.EventTarget{constructor(t={}){super(),this.timelines=[],this.discontinuities=[],this.timelineToDatetimeMappings={},this.logger_=ai("SyncController")}getSyncPoint(t,n,s,r){const i=this.runStrategies_(t,n,s,r);return i.length?this.selectSyncPoint_(i,{key:"time",value:r}):null}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+od({defaultDuration:t.targetDuration,durationList:t.segments,startIndex:r.segmentIndex,endIndex:0}))}runStrategies_(t,n,s,r){const i=[];for(let a=0;a<lk.length;a++){const o=lk[a],l=o.run(this,t,n,s,r);l&&(l.strategy=o.name,i.push({strategy:o.name,syncPoint:l}))}return i}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>oTe){je.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-od({defaultDuration:n.targetDuration,durationList:n.segments,startIndex:t.mediaIndex,endIndex:i}):u=s.end+od({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 uTe extends je.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}){return typeof n=="number"&&typeof s=="number"&&(this.lastTimelineChanges_[t]={type:t,from:n,to:s},delete this.pendingTimelineChanges_[t],this.trigger("timelinechange")),this.lastTimelineChanges_[t]}dispose(){this.trigger("dispose"),this.pendingTimelineChanges_={},this.lastTimelineChanges_={},this.off()}}const cTe=$L(NL(function(){var e=function(){function m(){this.listeners={}}var y=m.prototype;return y.on=function(_,w){this.listeners[_]||(this.listeners[_]=[]),this.listeners[_].push(w)},y.off=function(_,w){if(!this.listeners[_])return!1;var T=this.listeners[_].indexOf(w);return this.listeners[_]=this.listeners[_].slice(0),this.listeners[_].splice(T,1),T>-1},y.trigger=function(_){var w=this.listeners[_];if(w)if(arguments.length===2)for(var T=w.length,S=0;S<T;++S)w[S].call(this,arguments[1]);else for(var E=Array.prototype.slice.call(arguments,1),$=w.length,P=0;P<$;++P)w[P].apply(this,E)},y.dispose=function(){this.listeners={}},y.pipe=function(_){this.on("data",function(w){_.push(w)})},m}();/*! @name pkcs7 @version 1.0.4 @license Apache-2.0 */function t(m){return m.subarray(0,m.byteLength-m[m.byteLength-1])}/*! @name aes-decrypter @version 4.0.1 @license Apache-2.0 */const n=function(){const m=[[[],[],[],[],[]],[[],[],[],[],[]]],y=m[0],v=m[1],_=y[4],w=v[4];let T,S,E;const $=[],P=[];let U,H,z,W,D,V;for(T=0;T<256;T++)P[($[T]=T<<1^(T>>7)*283)^T]=T;for(S=E=0;!_[S];S^=U||1,E=P[E]||1)for(W=E^E<<1^E<<2^E<<3^E<<4,W=W>>8^W&255^99,_[S]=W,w[W]=S,z=$[H=$[U=$[S]]],V=z*16843009^H*65537^U*257^S*16843008,D=$[W]*257^W*16843008,T=0;T<4;T++)y[T][S]=D=D<<24^D>>>8,v[T][W]=V=V<<24^V>>>8;for(T=0;T<5;T++)y[T]=y[T].slice(0),v[T]=v[T].slice(0);return m};let s=null;class r{constructor(y){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 v,_,w;const T=this._tables[0][4],S=this._tables[1],E=y.length;let $=1;if(E!==4&&E!==6&&E!==8)throw new Error("Invalid aes key size");const P=y.slice(0),U=[];for(this._key=[P,U],v=E;v<4*E+28;v++)w=P[v-1],(v%E===0||E===8&&v%E===4)&&(w=T[w>>>24]<<24^T[w>>16&255]<<16^T[w>>8&255]<<8^T[w&255],v%E===0&&(w=w<<8^w>>>24^$<<24,$=$<<1^($>>7)*283)),P[v]=P[v-E]^w;for(_=0;v;_++,v--)w=P[_&3?v:v-4],v<=4||_<4?U[_]=w:U[_]=S[0][T[w>>>24]]^S[1][T[w>>16&255]]^S[2][T[w>>8&255]]^S[3][T[w&255]]}decrypt(y,v,_,w,T,S){const E=this._key[1];let $=y^E[0],P=w^E[1],U=_^E[2],H=v^E[3],z,W,D;const V=E.length/4-2;let X,Y=4;const B=this._tables[1],K=B[0],L=B[1],Q=B[2],ee=B[3],te=B[4];for(X=0;X<V;X++)z=K[$>>>24]^L[P>>16&255]^Q[U>>8&255]^ee[H&255]^E[Y],W=K[P>>>24]^L[U>>16&255]^Q[H>>8&255]^ee[$&255]^E[Y+1],D=K[U>>>24]^L[H>>16&255]^Q[$>>8&255]^ee[P&255]^E[Y+2],H=K[H>>>24]^L[$>>16&255]^Q[P>>8&255]^ee[U&255]^E[Y+3],Y+=4,$=z,P=W,U=D;for(X=0;X<4;X++)T[(3&-X)+S]=te[$>>>24]<<24^te[P>>16&255]<<16^te[U>>8&255]<<8^te[H&255]^E[Y++],z=$,$=P,P=U,U=H,H=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(y){this.jobs.push(y),this.timeout_||(this.timeout_=setTimeout(this.processJob_.bind(this),this.delay))}}const a=function(m){return m<<24|(m&65280)<<8|(m&16711680)>>8|m>>>24},o=function(m,y,v){const _=new Int32Array(m.buffer,m.byteOffset,m.byteLength>>2),w=new r(Array.prototype.slice.call(y)),T=new Uint8Array(m.byteLength),S=new Int32Array(T.buffer);let E,$,P,U,H,z,W,D,V;for(E=v[0],$=v[1],P=v[2],U=v[3],V=0;V<_.length;V+=4)H=a(_[V]),z=a(_[V+1]),W=a(_[V+2]),D=a(_[V+3]),w.decrypt(H,z,W,D,S,V),S[V]=a(S[V]^E),S[V+1]=a(S[V+1]^$),S[V+2]=a(S[V+2]^P),S[V+3]=a(S[V+3]^U),E=H,$=z,P=W,U=D;return T};class l{constructor(y,v,_,w){const T=l.STEP,S=new Int32Array(y.buffer),E=new Uint8Array(y.byteLength);let $=0;for(this.asyncStream_=new i,this.asyncStream_.push(this.decryptChunk_(S.subarray($,$+T),v,_,E)),$=T;$<S.length;$+=T)_=new Uint32Array([a(S[$-4]),a(S[$-3]),a(S[$-2]),a(S[$-1])]),this.asyncStream_.push(this.decryptChunk_(S.subarray($,$+T),v,_,E));this.asyncStream_.push(function(){w(null,t(E))})}static get STEP(){return 32e3}decryptChunk_(y,v,_,w){return function(){const T=o(y,v,_);w.set(T,y.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(y){return ArrayBuffer.isView==="function"?ArrayBuffer.isView(y):y&&y.buffer instanceof ArrayBuffer},p=f.BigInt||Number;p("0x1"),p("0x100"),p("0x10000"),p("0x1000000"),p("0x100000000"),p("0x10000000000"),p("0x1000000000000"),p("0x100000000000000"),p("0x10000000000000000"),function(){var m=new Uint16Array([65484]),y=new Uint8Array(m.buffer,m.byteOffset,m.byteLength);return y[0]===255?"big":y[0]===204?"little":"unknown"}();const g=function(m){const y={};return Object.keys(m).forEach(v=>{const _=m[v];h(_)?y[v]={bytes:_.buffer,byteOffset:_.byteOffset,byteLength:_.byteLength}:y[v]=_}),y};self.onmessage=function(m){const y=m.data,v=new Uint8Array(y.encrypted.bytes,y.encrypted.byteOffset,y.encrypted.byteLength),_=new Uint32Array(y.key.bytes,y.key.byteOffset,y.key.byteLength/4),w=new Uint32Array(y.iv.bytes,y.iv.byteOffset,y.iv.byteLength/4);new l(v,_,w,function(T,S){self.postMessage(g({source:y.source,decrypted:S}),[S.buffer])})}}));var dTe=PL(cTe);const fTe=e=>{let t=e.default?"main":"alternative";return e.characteristics&&e.characteristics.indexOf("public.accessibility.describes-video")>=0&&(t="main-desc"),t},Om=(e,t)=>{e.abort(),e.pause(),t&&t.activePlaylistLoader&&(t.activePlaylistLoader.pause(),t.activePlaylistLoader=null)},Mb=(e,t)=>{t.activePlaylistLoader=e,e.load()},hTe=(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,Om(n,r),!(!a||a.isMainPlaylist))){if(!a.playlistLoader){o&&s.resetEverything();return}n.resyncLoader(),Mb(a.playlistLoader,r)}},pTe=(e,t)=>()=>{const{segmentLoaders:{[e]:n},mediaTypes:{[e]:s}}=t;s.lastGroup_=null,n.abort(),n.pause()},mTe=(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,Om(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){Mb(o.playlistLoader,i);return}s.track&&s.track(a),s.resetEverything(),Mb(o.playlistLoader,i)}},Am={AUDIO:(e,t)=>()=>{const{segmentLoaders:{[e]:n},mediaTypes:{[e]:s},excludePlaylist:r}=t;Om(n,s);const i=s.activeTrack(),a=s.activeGroup(),o=(a.filter(u=>u.default)[0]||a[0]).id,l=s.tracks[o];if(i===l){r({error:{message:"Problem encountered loading the default audio track."}});return}je.log.warn("Problem encountered loading the alternate audio track.Switching back to default.");for(const u in s.tracks)s.tracks[u].enabled=s.tracks[u]===l;s.onTrackChanged()},SUBTITLES:(e,t)=>()=>{const{segmentLoaders:{[e]:n},mediaTypes:{[e]:s}}=t;je.log.warn("Problem encountered loading the subtitle track.Disabling subtitle track."),Om(n,s);const r=s.activeTrack();r&&(r.mode="disabled"),s.onTrackChanged()}},uk={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",Am[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",Am[e](e,n))}},gTe={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=Ff(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 p in a[e][h]){let g=a[e][h][p],m;if(f?(u(`AUDIO group '${h}' label '${p}' is a main playlist`),g.isMainPlaylist=!0,m=null):s==="vhs-json"&&g.playlists?m=new Hl(g.playlists[0],n,i):g.resolvedUri?m=new Hl(g.resolvedUri,n,i):g.playlists&&s==="dash"?m=new Ab(g.playlists[0],n,i,c):m=null,g=wn({id:p,playlistLoader:m},g),uk[e](e,g.playlistLoader,t),o[h].push(g),typeof l[p]>"u"){const y=new je.AudioTrack({id:p,kind:fTe(g),enabled:!1,language:g.language,default:g.default,label:p});l[p]=y}}}r.on("error",Am[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(o[e][f][h].forced)continue;let p=o[e][f][h],g;if(r==="hls")g=new Hl(p.resolvedUri,s,a);else if(r==="dash"){if(!p.playlists.filter(y=>y.excludeUntil!==1/0).length)return;g=new Ab(p.playlists[0],s,a,c)}else r==="vhs-json"&&(g=new Hl(p.playlists?p.playlists[0]:p.resolvedUri,s,a));if(p=wn({id:h,playlistLoader:g},p),uk[e](e,p.playlistLoader,t),l[f].push(p),typeof u[h]>"u"){const m=n.addRemoteTextTrack({id:h,kind:"subtitles",default:p.default&&p.autoselect,language:p.language,label:h},!1).track;u[h]=m}}}i.on("error",Am[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=wn(c,u[c.instreamId])),c.default===void 0&&delete c.default,r[a].push(wn({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}}}}},qL=(e,t)=>{for(let n=0;n<e.length;n++)if(XT(t,e[n])||e[n].playlists&&qL(e[n].playlists,t))return!0;return!1},vTe=(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&&Ff(t.main))for(let l=0;l<o.length;l++){const u=r[o[l]];if(qL(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},yTe={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}},bTe=(e,{mediaTypes:t})=>()=>{const n=t[e].activeTrack();return n?t[e].activeGroup(n):null},_Te=e=>{["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(u=>{gTe[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=vTe(u,e),t[u].activeTrack=yTe[u](u,e),t[u].onGroupChanged=hTe(u,e),t[u].onGroupChanging=pTe(u,e),t[u].onTrackChanged=mTe(u,e),t[u].getActiveGroup=bTe(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])},TTe=()=>{const e={};return["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(t=>{e[t]={groups:{},tracks:{},activePlaylistLoader:null,activeGroup:Yi,activeTrack:Yi,getActiveGroup:Yi,onGroupChanged:Yi,onTrackChanged:Yi,lastTrack_:null,logger_:ai(`MediaGroups[${t}]`)}}),e},wTe=60*2;let Hi;const STe=["mediaRequests","mediaRequestsAborted","mediaRequestsTimedout","mediaRequestsErrored","mediaTransferDuration","mediaBytesTransferred","mediaAppends"],CTe=function(e){return this.audioSegmentLoader_[e]+this.mainSegmentLoader_[e]},ETe=function({currentPlaylist:e,buffered:t,currentTime:n,nextPlaylist:s,bufferLowWaterLine:r,bufferHighWaterLine:i,duration:a,bufferBasedABR:o,log:l}){if(!s)return je.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=!!Ul(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=qT(t,n),h=o?is.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:is.MAX_BUFFER_LOW_WATER_LINE;if(a<h)return l(`${u} as duration < max low water line (${a} < ${h})`),!0;const p=s.attributes.BANDWIDTH,g=e.attributes.BANDWIDTH;if(p<g&&(!o||f<i)){let m=`${u} as next bandwidth < current bandwidth (${p} < ${g})`;return o&&(m+=` and forwardBuffer < bufferHighWaterLine (${f} < ${i})`),l(m),!0}if((!o||p>g)&&f>=r){let m=`${u} as forwardBuffer >= bufferLowWaterLine (${f} >= ${r})`;return o&&(m+=` and next bandwidth > current bandwidth (${p} > ${g})`),l(m),!0}return l(`not ${u} as no switching criteria met`),!1};class xTe extends je.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:p,captionServices:g}=t;if(!n)throw new Error("A non-empty playlist URL or JSON manifest string is required");let{maxPlaylistRetries:m}=t;(m===null||typeof m>"u")&&(m=1/0),Hi=a,this.bufferBasedABR=!!h,this.leastPixelDiffSelector=!!p,this.withCredentials=s,this.tech_=r,this.vhs_=r.vhs,this.sourceType_=c,this.useCueTags_=o,this.playlistExclusionDuration=l,this.maxPlaylistRetries=m,this.enableLowInitialPlaylist=u,this.useCueTags_&&(this.cueTagsTrack_=this.tech_.addTextTrack("metadata","ad-cues"),this.cueTagsTrack_.inBandMetadataTrackDispatchType=""),this.requestOptions_={withCredentials:s,maxPlaylistRetries:m,timeout:null},this.on("error",this.pauseLoading),this.mediaTypes_=TTe(),this.mediaSource=new ye.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_=ys(),this.hasPlayed_=!1,this.syncController_=new lTe(t),this.segmentMetadataTrack_=r.addRemoteTextTrack({kind:"metadata",label:"segment-metadata"},!1).track,this.decrypter_=new dTe,this.sourceUpdater_=new WL(this.mediaSource),this.inbandTextTracks_={},this.timelineChangeController_=new uTe;const y={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};this.mainPlaylistLoader_=this.sourceType_==="dash"?new Ab(n,this.vhs_,this.requestOptions_):new Hl(n,this.vhs_,this.requestOptions_),this.setupMainPlaylistLoaderListeners_(),this.mainSegmentLoader_=new $b(wn(y,{segmentMetadataTrack:this.segmentMetadataTrack_,loaderType:"main"}),t),this.audioSegmentLoader_=new $b(wn(y,{loaderType:"audio"}),t),this.subtitleSegmentLoader_=new rTe(wn(y,{loaderType:"vtt",featuresNativeTextTracks:this.tech_.featuresNativeTextTracks}),t),this.setupSegmentLoaderListeners_(),this.bufferBasedABR&&(this.mainPlaylistLoader_.one("loadedplaylist",()=>this.startABRTimer_()),this.tech_.on("pause",()=>this.stopABRTimer_()),this.tech_.on("play",()=>this.startABRTimer_())),STe.forEach(_=>{this[_+"_"]=CTe.bind(this,_)}),this.logger_=ai("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 v=this.tech_.preload()==="none"?"play":"loadstart";this.tech_.one(v,()=>{const _=Date.now();this.tech_.one("loadeddata",()=>{this.timeToLoadedData__=Date.now()-_,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.id||t.uri;i&&i!==a&&(this.logger_(`switch media ${i} -> ${a} from ${n}`),this.tech_.trigger({type:"usage",name:`vhs-rendition-change-${n}`})),this.mainPlaylistLoader_.media(t,s)}startABRTimer_(){this.stopABRTimer_(),this.abrTimer_=ye.setInterval(()=>this.checkABR_(),250)}stopABRTimer_(){this.tech_.scrubbing&&this.tech_.scrubbing()||(ye.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 t=this.mainPlaylistLoader_.media(),n=t.targetDuration*1.5*1e3;Eb(this.mainPlaylistLoader_.main,this.mainPlaylistLoader_.media())?this.requestOptions_.timeout=0:this.requestOptions_.timeout=n,t.endList&&this.tech_.preload()!=="none"&&(this.mainSegmentLoader_.playlist(t,this.requestOptions_),this.mainSegmentLoader_.load()),_Te({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(),t),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 t=this.mainPlaylistLoader_.media();if(!t){this.excludeUnsupportedVariants_();let n;if(this.enableLowInitialPlaylist&&(n=this.selectInitialPlaylist()),n||(n=this.selectPlaylist()),!n||!this.shouldSwitchToMedia_(n)||(this.initialMedia_=n,this.switchMedia_(this.initialMedia_,"initial"),!(this.sourceType_==="vhs-json"&&this.initialMedia_.segments)))return;t=this.initialMedia_}this.handleUpdatedMediaPlaylist(t)}),this.mainPlaylistLoader_.on("error",()=>{const t=this.mainPlaylistLoader_.error;this.excludePlaylist({playlistToExclude:t.playlist,error:t})}),this.mainPlaylistLoader_.on("mediachanging",()=>{this.mainSegmentLoader_.abort(),this.mainSegmentLoader_.pause()}),this.mainPlaylistLoader_.on("mediachange",()=>{const t=this.mainPlaylistLoader_.media(),n=t.targetDuration*1.5*1e3;Eb(this.mainPlaylistLoader_.main,this.mainPlaylistLoader_.media())?this.requestOptions_.timeout=0:this.requestOptions_.timeout=n,this.mainPlaylistLoader_.load(),this.mainSegmentLoader_.playlist(t,this.requestOptions_),this.mainSegmentLoader_.load(),this.tech_.trigger({type:"mediachange",bubbles:!0})}),this.mainPlaylistLoader_.on("playlistunchanged",()=>{const t=this.mainPlaylistLoader_.media();if(t.lastExcludeReason_==="playlist-unchanged")return;this.stuckAtPlaylistEnd_(t)&&(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"})})}handleUpdatedMediaPlaylist(t){this.useCueTags_&&this.updateAdCues_(t),this.mainSegmentLoader_.playlist(t,this.requestOptions_),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"}),Hi.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 ETe({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 n=this.mainSegmentLoader_.error();this.excludePlaylist({playlistToExclude:n.playlist,error:n})}),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",n=>{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:wTe}))});const t=()=>{if(!this.sourceUpdater_.hasCreatedSourceBuffers())return this.tryToCreateSourceBuffers_();const n=this.getCodecsOrExclude_();n&&this.sourceUpdater_.addOrChangeSourceBuffers(n)};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()})}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===this.mainPlaylistLoader_.media()){this.logger_("skipping fastQualityChange because new media is same as old");return}this.switchMedia_(t,"fast-quality"),this.mainSegmentLoader_.resetEverything(()=>{je.browser.IE_VERSION||je.browser.IS_EDGE?this.tech_.setCurrentTime(this.tech_.currentTime()+.04):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){const n=this.seekable();if(!n.length)return!1;if(je.browser.IE_VERSION&&this.tech_.readyState()===0)return this.tech_.one("loadedmetadata",()=>{this.trigger("firstplay"),this.tech_.setCurrentTime(n.end(0)),this.hasPlayed_=!0}),!1;this.trigger("firstplay"),this.tech_.setCurrentTime(n.end(0))}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=Hi.Playlist.playlistEnd(t,s),i=this.tech_.currentTime(),a=this.tech_.buffered();if(!a.length)return r-i<=yi;const o=a.end(a.length-1);return o-i<=yi&&r-o<=yi}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(Gg),a=i.length===1&&i[0]===t;if(r.length===1&&s!==1/0)return je.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){let p=!1;r.forEach(g=>{if(g===t)return;const m=g.excludeUntil;typeof m<"u"&&m!==1/0&&(p=!0,delete g.excludeUntil)}),p&&(je.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_:je.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=Ul(this.tech_.buffered(),t);if(!(this.mainPlaylistLoader_&&this.mainPlaylistLoader_.media())||!this.mainPlaylistLoader_.media().segments)return 0;if(n&&n.length)return t;this.mainSegmentLoader_.resetEverything(),this.mainSegmentLoader_.abort(),this.mediaTypes_.AUDIO.activePlaylistLoader&&(this.audioSegmentLoader_.resetEverything(),this.audioSegmentLoader_.abort()),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&(this.subtitleSegmentLoader_.resetEverything(),this.subtitleSegmentLoader_.abort()),this.load()}duration(){if(!this.mainPlaylistLoader_)return 0;const t=this.mainPlaylistLoader_.media();return t?t.endList?this.mediaSource?this.mediaSource.duration:Hi.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=Hi.Playlist.seekable(n,s,Hi.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=Hi.Playlist.seekable(n,s,Hi.Playlist.liveEdgeDelay(r,n)),t.length===0)))return;let a,o;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_=ys([[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)&&(this.logger_(`seekable updated [${uL(this.seekable_)}]`),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=Hi.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.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_()||{}};t.video=t.main;const n=ld(this.main(),this.media()),s={},r=!!this.mediaTypes_.AUDIO.activePlaylistLoader;if(t.main.hasVideo&&(s.video=n.video||t.main.videoCodec||a0e),t.main.isMuxed&&(s.video+=`,${n.audio||t.main.audioCodec||Yx}`),(t.main.hasAudio&&!t.main.isMuxed||t.audio.hasAudio||r)&&(s.audio=n.audio||t.main.audioCodec||t.audio.audioCodec||Yx,t.audio.isFmp4=t.main.hasAudio&&!t.main.isMuxed?t.main.isFmp4:t.audio.isFmp4),!s.audio&&!s.video){this.excludePlaylist({playlistToExclude:this.media(),error:{message:"Could not determine codecs for playlist."},playlistExclusionDuration:1/0});return}const i=(l,u)=>l?xp(u):s0(u),a={};let o;if(["video","audio"].forEach(function(l){if(s.hasOwnProperty(l)&&!i(t[l].isFmp4,s[l])){const u=t[l].isFmp4?"browser":"muxer";a[u]=a[u]||[],a[u].push(s[l]),l==="audio"&&(o=u)}}),r&&o&&this.media().attributes.AUDIO){const l=this.media().attributes.AUDIO;this.main().playlists.forEach(u=>{(u.attributes&&u.attributes.AUDIO)===l&&u!==this.media()&&(u.excludeUntil=1/0)}),this.logger_(`excluding audio group ${l} as ${o} does not support codec(s): "${s.audio}"`)}if(Object.keys(a).length){const l=Object.keys(a).reduce((u,c)=>(u&&(u+=", "),u+=`${c} does not support codec(s): "${a[c].join(",")}"`,u),"")+".";this.excludePlaylist({playlistToExclude:this.media(),error:{internal:!0,message:l},playlistExclusionDuration:1/0});return}if(this.sourceUpdater_.hasCreatedSourceBuffers()&&!this.sourceUpdater_.canChangeType()){const l=[];if(["video","audio"].forEach(u=>{const c=(ui(this.sourceUpdater_.codecs[u]||"")[0]||{}).type,f=(ui(s[u]||"")[0]||{}).type;c&&f&&c.toLowerCase()!==f.toLowerCase()&&l.push(`"${this.sourceUpdater_.codecs[u]}" -> "${s[u]}"`)}),l.length){this.excludePlaylist({playlistToExclude:this.media(),error:{message:`Codec switching not supported: ${l.join(", ")}.`,internal:!0},playlistExclusionDuration:1/0});return}}return s}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=ld(this.main,r),a=[];i.audio&&!s0(i.audio)&&!xp(i.audio)&&a.push(`audio codec ${i.audio}`),i.video&&!s0(i.video)&&!xp(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=km(ui(t)),i=J2(r),a=r.video&&ui(r.video)[0]||null,o=r.audio&&ui(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=ld(this.mainPlaylistLoader_.main,u),h=J2(f);if(!(!f.audio&&!f.video)){if(h!==i&&c.push(`codec count "${h}" !== "${i}"`),!this.sourceUpdater_.canChangeType()){const p=f.video&&ui(f.video)[0]||null,g=f.audio&&ui(f.audio)[0]||null;p&&a&&p.type.toLowerCase()!==a.type.toLowerCase()&&c.push(`video codec "${p.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)),aTe(t,this.cueTagsTrack_,n)}goalBufferLength(){const t=this.tech_.currentTime(),n=is.GOAL_BUFFER_LENGTH,s=is.GOAL_BUFFER_LENGTH_RATE,r=Math.max(n,is.MAX_GOAL_BUFFER_LENGTH);return Math.min(n+t*s,r)}bufferLowWaterLine(){const t=this.tech_.currentTime(),n=is.BUFFER_LOW_WATER_LINE,s=is.BUFFER_LOW_WATER_LINE_RATE,r=Math.max(n,is.MAX_BUFFER_LOW_WATER_LINE),i=Math.max(n,is.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE);return Math.min(n+t*s,this.bufferBasedABR?i:r)}bufferHighWaterLine(){return is.BUFFER_HIGH_WATER_LINE}}const kTe=(e,t,n)=>s=>{const r=e.main.playlists[t],i=YT(r),a=Gg(r);return typeof s>"u"?a:(s?delete r.disabled:r.disabled=!0,s!==a&&!i&&(n(),s?e.trigger("renditionenabled"):e.trigger("renditiondisabled")),s)};class ITe{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=ld(r.main(),n),this.playlist=n,this.id=s,this.enabled=kTe(t.playlists,n.id,i)}}const OTe=function(e){e.representations=()=>{const t=e.playlistController_.main(),n=Ff(t)?e.playlistController_.getAudioTrackPlaylists_():t.playlists;return n?n.filter(s=>!YT(s)).map((s,r)=>new ITe(e,s,s.id)):[]}},ck=["seeking","seeked","pause","playing","error"];class ATe{constructor(t){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.consecutiveUpdates=0,this.lastRecordedTime=null,this.checkCurrentTimeTimeout_=null,this.logger_=ai("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(ck,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(ck,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_&&ye.clearTimeout(this.checkCurrentTimeTimeout_),this.resetTimeUpdate_()}}monitorCurrentTime_(){this.checkCurrentTime_(),this.checkCurrentTimeTimeout_&&ye.clearTimeout(this.checkCurrentTimeTimeout_),this.checkCurrentTimeTimeout_=ye.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=I_e(this[`${t}Buffered_`],r);if(this[`${t}Buffered_`]=r,i){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:Do(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+yi>=n.end(n.length-1)))return this.techWaiting_();this.consecutiveUpdates>=5&&t===this.lastRecordedTime?(this.consecutiveUpdates++,this.waiting_()):t===this.lastRecordedTime?this.consecutiveUpdates++:(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:yi)}if(typeof i<"u")return this.logger_(`Trying to seek outside of seekable at time ${s} with seekable range ${uL(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-Ja)*2,h=[l,u];for(let g=0;g<h.length;g++){if(!h[g])continue;if(qT(h[g],s)<f)return!1}const p=Uh(o,s);return p.length===0?!1:(i=p.start(0)+yi,this.logger_(`Buffered region starts (${p.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=Ul(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=Uh(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)+yi;return!s.endList&&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=Ul(t,s-3),a=Ul(t,s),o=Ul(n,s);o.length&&!a.length&&i.length&&(r={start:i.end(0),end:o.end(0)})}else Uh(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=Uh(n,s);this.resetTimeUpdate_(),!(r.length===0||s!==t)&&(this.logger_("skipTheGap_:","currentTime:",s,"scheduled currentTime:",t,"nextRange start:",r.start(0)),this.tech_.setCurrentTime(r.start(0)+Ja),this.tech_.trigger({type:"usage",name:"vhs-gap-skip"}))}gapFromVideoUnderflow_(t,n){const s=E_e(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 PTe={errorInterval:30,getSource(e){const n=this.tech({IWillNotUseThisInPlugins:!0}).currentSource_||this.currentSource();return e(n)}},GL=function(e,t){let n=0,s=0;const r=wn(PTe,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"){je.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(),GL(e,c)};e.on("error",o),e.on("dispose",l),e.reloadSourceOnError=u},$Te=function(e){GL(this,e)};var YL="3.0.0",NTe="6.2.0",MTe="1.0.1",RTe="6.0.0",LTe="4.0.1";const Ps={PlaylistLoader:Hl,Playlist:Ws,utils:Q_e,STANDARD_PLAYLIST_SELECTOR:ek,INITIAL_PLAYLIST_SELECTOR:D1e,lastBandwidthSelector:ek,movingAverageBandwidthSelector:R1e,comparePlaylistBandwidth:ZT,comparePlaylistResolution:M1e,xhr:CL()};Object.keys(is).forEach(e=>{Object.defineProperty(Ps,e,{get(){return je.log.warn(`using Vhs.${e} is UNSAFE be sure you know what you are doing`),is[e]},set(t){if(je.log.warn(`using Vhs.${e} is UNSAFE be sure you know what you are doing`),typeof t!="number"||t<0){je.log.warn(`value of Vhs.${e} must be greater than or equal to 0`);return}is[e]=t}})});const XL="videojs-vhs",QL=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"})},DTe=function(e,t){t.representations().forEach(n=>{e.addQualityLevel(n)}),QL(e,t.playlists)};Ps.canPlaySource=function(){return je.log.warn("VHS is no longer a tech. Please remove it from your player's techOrder.")};const FTe=(e,t,n)=>{if(!e)return e;let s={};t&&t.attributes&&t.attributes.CODECS&&(s=km(ui(t.attributes.CODECS))),n&&n.attributes&&n.attributes.CODECS&&(s.audio=n.attributes.CODECS);const r=qd(s.video),i=qd(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 wn(e,a)},BTe=(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},[]),VTe=({player:e,sourceKeySystems:t,audioMedia:n,mainPlaylists:s})=>{if(!e.eme.initializeMediaKeys)return Promise.resolve();const r=n?s.concat([n]):s,i=BTe(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)])},UTe=({player:e,sourceKeySystems:t,media:n,audioMedia:s})=>{const r=FTe(t,n,s);return r?(e.currentSource().keySystems=r,r&&!e.eme?(je.log.warn("DRM encrypted source cannot be decrypted without a DRM plugin"),!1):!0):!1},JL=()=>{if(!ye.localStorage)return null;const e=ye.localStorage.getItem(XL);if(!e)return null;try{return JSON.parse(e)}catch{return null}},HTe=e=>{if(!ye.localStorage)return!1;let t=JL();t=t?wn(t,e):e;try{ye.localStorage.setItem(XL,JSON.stringify(t))}catch{return!1}return t},zTe=e=>e.toLowerCase().indexOf("data:application/vnd.videojs.vhs+json,")===0?JSON.parse(e.substring(e.indexOf(",")+1)):e;Ps.supportsNativeHls=function(){if(!gt||!gt.createElement)return!1;const e=gt.createElement("video");return je.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}();Ps.supportsNativeDash=function(){return!gt||!gt.createElement||!je.getTech("Html5").isSupported()?!1:/maybe|probably/i.test(gt.createElement("video").canPlayType("application/dash+xml"))}();Ps.supportsTypeNatively=e=>e==="hls"?Ps.supportsNativeHls:e==="dash"?Ps.supportsNativeDash:!1;Ps.isSupported=function(){return je.log.warn("VHS is no longer a tech. Please remove it from your player's techOrder.")};const jTe=je.getComponent("Component");class ZL extends jTe{constructor(t,n,s){if(super(n,s.vhs),typeof s.initialBandwidth=="number"&&(this.options_.bandwidth=s.initialBandwidth),this.logger_=ai("VhsHandler"),n.options_&&n.options_.playerId){const r=je.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(gt,["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],r=>{const i=gt.fullscreenElement||gt.webkitFullscreenElement||gt.mozFullScreenElement||gt.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_(){if(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_.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=5*60),typeof this.options_.bandwidth!="number"&&this.options_.useBandwidthFromLocalStorage){const t=JL();t&&t.bandwidth&&(this.options_.bandwidth=t.bandwidth,this.tech_.trigger({type:"usage",name:"vhs-bandwidth-from-local-storage"})),t&&t.throughput&&(this.options_.throughput=t.throughput,this.tech_.trigger({type:"usage",name:"vhs-throughput-from-local-storage"}))}typeof this.options_.bandwidth!="number"&&(this.options_.bandwidth=is.INITIAL_BANDWIDTH),this.options_.enableLowInitialPlaylist=this.options_.enableLowInitialPlaylist&&this.options_.bandwidth===is.INITIAL_BANDWIDTH,["withCredentials","useDevicePixelRatio","limitRenditionByPlayerDimensions","bandwidth","customTagParsers","customTagMappers","cacheEncryptionKeys","playlistSelector","initialPlaylistSelector","bufferBasedABR","liveRangeSafeTimeDelta","llhls","useNetworkInformationApi","useDtsForTimestampOffset","exactManifestTimings","leastPixelDiffSelector"].forEach(t=>{typeof this.source_[t]<"u"&&(this.options_[t]=this.source_[t])}),this.limitRenditionByPlayerDimensions=this.options_.limitRenditionByPlayerDimensions,this.useDevicePixelRatio=this.options_.useDevicePixelRatio}src(t,n){if(!t)return;this.setOptions_(),this.options_.src=zTe(this.source_.src),this.options_.tech=this.tech_,this.options_.externVhs=Ps,this.options_.sourceType=oM(n),this.options_.seekTo=i=>{this.tech_.setCurrentTime(i)},this.playlistController_=new xTe(this.options_);const s=wn({liveRangeSafeTimeDelta:yi},this.options_,{seekable:()=>this.seekable(),media:()=>this.playlistController_.media(),playlistController:this.playlistController_});this.playbackWatcher_=new ATe(s),this.playlistController_.on("error",()=>{const i=je.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?Ps.movingAverageBandwidthSelector(.55):Ps.STANDARD_PLAYLIST_SELECTOR;this.playlistController_.selectPlaylist=this.selectPlaylist?this.selectPlaylist.bind(this):r.bind(this),this.playlistController_.selectInitialPlaylist=Ps.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=ye.navigator.connection||ye.navigator.mozConnection||ye.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(){je.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:()=>Do(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:()=>Do(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&&HTe({bandwidth:this.bandwidth,throughput:Math.round(this.throughput)})}),this.playlistController_.on("selectedinitialmedia",()=>{OTe(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_=ye.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"),VTe({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=UTe({player:this.player_,sourceKeySystems:this.source_.keySystems,media:this.playlists.media(),audioMedia:t&&t.media()});if(this.player_.tech_.on("keystatuschange",s=>{if(s.status!=="output-restricted")return;const r=this.playlistController_.main();if(!r||!r.playlists)return;const i=[];r.playlists.forEach(a=>{a&&a.attributes&&a.attributes.RESOLUTION&&a.attributes.RESOLUTION.height>=720&&(!a.excludeUntil||a.excludeUntil<1/0)&&(a.excludeUntil=1/0,i.push(a))}),i.length&&(je.log.warn('DRM keystatus changed to "output-restricted." Removing the following HD playlists that will most likely fail to play and clearing the buffer. This may be due to HDCP restrictions on the stream and the capabilities of the current device.',...i),this.playlistController_.fastQualityChange_())}),this.handleWaitingForKey_=this.handleWaitingForKey_.bind(this),this.player_.tech_.on("waitingforkey",this.handleWaitingForKey_),je.browser.IE_VERSION===11||!n){this.playlistController_.sourceUpdater_.initializedEme();return}this.createKeySessions_()}setupQualityLevels_(){const t=je.players[this.tech_.options_.playerId];!t||!t.qualityLevels||this.qualityLevels_||(this.qualityLevels_=t.qualityLevels(),this.playlistController_.on("selectedinitialmedia",()=>{DTe(this.qualityLevels_,this)}),this.playlists.on("mediachange",()=>{QL(this.qualityLevels_,this.playlists)}))}static version(){return{"@videojs/http-streaming":YL,"mux.js":NTe,"mpd-parser":MTe,"m3u8-parser":RTe,"aes-decrypter":LTe}}version(){return this.constructor.version()}canChangeType(){return WL.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_&&ye.URL.revokeObjectURL&&(ye.URL.revokeObjectURL(this.mediaSourceUrl_),this.mediaSourceUrl_=null),this.tech_&&this.tech_.off("waitingforkey",this.handleWaitingForKey_),super.dispose()}convertToProgramTime(t,n){return r1e({playlist:this.playlistController_.media(),time:t,callback:n})}seekToProgramTime(t,n,s=!0,r=2){return OL({programTime:t,playlist:this.playlistController_.media(),retryCount:r,pauseAfterSeek:s,seekTo:this.options_.seekTo,tech:this.options_.tech,callback:n})}}const ew={name:"videojs-http-streaming",VERSION:YL,canHandleSource(e,t={}){const n=wn(je.options,t);return ew.canPlayType(e.type,n)},handleSource(e,t,n={}){const s=wn(je.options,n);return t.vhs=new ZL(e,t,s),t.vhs.xhr=CL(),t.vhs.src(e.src,e.type),t.vhs},canPlayType(e,t={}){const{vhs:{overrideNative:n=!je.browser.IS_ANY_SAFARI}={}}=wn(je.options,t),s=oM(e);return s&&(!Ps.supportsTypeNatively(s)||n)?"maybe":""}},KTe=()=>xp("avc1.4d400d,mp4a.40.2");KTe()&&je.getTech("Html5").registerSourceHandler(ew,0);je.VhsHandler=ZL;je.VhsSourceHandler=ew;je.Vhs=Ps;je.use||je.registerComponent("Vhs",Ps);je.options.vhs=je.options.vhs||{};(!je.getPlugin||!je.getPlugin("reloadSourceOnError"))&&je.registerPlugin("reloadSourceOnError",$Te);function _0(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 WTe={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)}}},qTe={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}},GTe={children:{type:[Array,Object]},controlBar:{type:Object,onChange:function(e,t){return e.controlBar.options(t)}}},YTe={html5:{type:Object}},XTe={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}},tf=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},WTe),qTe),GTe),YTe),XTe),tw=Object.keys(tf),eD=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"}),tD=Object.keys(eD);Object.values(eD);var T0=function(e){var t,n=e==null?void 0:e.trim().replace(/\s+/g," ");return n&&(t=n.split(" "))!==null&&t!==void 0?t:[]},w0={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)}}},nD=tw.filter(function(e){return!!tf[e].onEvent}),sD=function(e){return"update:"+e},QTe=tD.concat(nD.map(sD)),JTe=tw.reduce(function(e,t){var n,s=tf[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))},{}),ZTe=Z({name:"VueVideoPlayer",props:Object.assign(Object.assign({},JTe),{class:[String,Object,Array]}),emits:QTe.concat(["mounted"],["unmounted"]),setup:function(e,t){var n=Qt(e),s=n.class,r=_0(n,["class"]),i=Jt(!1),a=Jt(null),o=Jt(null),l=k(function(){return o.value?o.value.player:null}),u=G(null),c=k(function(){return u.value?nl(u.value):null});return vt(function(){var f,h=function(p){var g,m=p.props,y=p.element,v=p.className,_=p.onEvent,w=m.options;w===void 0&&(w={});var T=_0(m,["options"]),S={};Object.keys(T).forEach(function(D){var V=T[D];V!==void 0&&(S[D]=V)});var E=Object.assign(Object.assign({},S),w),$=E.volume,P=E.playbackRate,U=_0(E,["volume","playbackRate"]),H=Object.assign(Object.assign({},U),{playsinline:(g=U.playsinline)!==null&&g!==void 0?g:U.playsInline}),z=je(y,H,function(){var D=this;tD.forEach(function(V){D.on(V,function(X){_(V,X)})}),U.src&&!U.sources&&this.src(U.src),$&&Number.isFinite($)&&this.volume($),P&&Number.isFinite(P)&&(this.defaultPlaybackRate(P),setTimeout(function(){D.playbackRate(P)},0))});v&&T0(v).map(function(D){return z.addClass(D)});var W=function(D){var V;(V=z.options)===null||V===void 0||V.call(z,D??{})};return{player:z,dispose:function(){return z.dispose()},updateClassNames:function(D,V){T0(D).map(function(X){return z.removeClass(X)}),T0(V).map(function(X){return z.addClass(X)})},updateOptions:W,updatePropOption:function(D,V){var X,Y,B;W(((X={})[D]=V,X)),(B=(Y=tf[D])===null||Y===void 0?void 0:Y.onChange)===null||B===void 0||B.call(Y,z,V)}}}({element:a.value,props:r,onEvent:t.emit});f={player:h.player,onEvent:t.emit},nD.forEach(function(p){var g,m;(m=(g=tf[p])===null||g===void 0?void 0:g.onEvent)===null||m===void 0||m.call(g,f.player,function(y){f.onEvent(sD(p),y)})}),Oe(function(){return e.class},function(p,g){var m=M(g),y=M(p);h.updateClassNames(m,y)},{immediate:!0}),Oe(function(){return e.options},function(p){return h.updateOptions(p??{})},{deep:!0}),tw.filter(function(p){return p!=="options"}).forEach(function(p){Oe(function(){return e[p]},function(g){return h.updatePropOption(p,g)},{deep:!0})}),function(p,g){var m=Object.keys(w0),y=m.reduce(function(_,w){var T;return Object.assign(Object.assign({},_),((T={})[w]=w0[w].getter(p),T))},{playing:!1,waiting:!1}),v=function(_,w){y[_]=w,g.onUpdate(_,w,Object.assign({},y))};p.on(["pause","ended"],function(){v("playing",!1)}),p.on(["play","playing"],function(){v("playing",!0)}),p.on("waiting",function(){v("waiting",!0);var _=p.currentTime(),w=function(){_!==p.currentTime()&&(v("waiting",!1),p.off("timeupdate",w))};p.on("timeupdate",w)}),m.forEach(function(_){var w,T=w0[_];p.on(["loadstart","loadedmetadata"].concat((w=T.events)!==null&&w!==void 0?w:[]),function(){v(_,T.getter(p))})}),g.onInit(Object.assign({},y))}(h.player,{onInit:function(p){u.value=p},onUpdate:function(p,g){u.value&&(u.value[p]=g)}}),o.value=h,i.value=!0,t.emit("mounted",{video:a.value,player:l.value,state:c.value})}),on(function(){o.value&&(o.value.dispose(),o.value=null,u.value=null,t.emit("unmounted"))}),function(){var f,h;return lt("div",{"data-vjs-player":"",class:M(s)},[lt("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}))])}}}),rD=ZTe;const ewe=e=>(sr("data-v-d83218a5"),e=e(),rr(),e),twe={class:"player_area"},nwe={class:"player_p"},swe={class:"current_play_info"},rwe={class:"play_info_left"},iwe={class:"current_play_title"},awe=["href"],owe={class:"tags"},lwe=["href"],uwe={class:"hidden-sm-and-down"},cwe={class:"hidden-sm-and-down"},dwe={class:"play_info_right"},fwe={class:"play-module"},hwe={class:"play-module-item"},pwe={class:"module-heading"},mwe=ewe(()=>R("p",{class:"play-module-title"},"播放列表",-1)),gwe={class:"play-tab-group"},vwe=["onClick"],ywe={class:"play-list"},bwe={class:"play-list-item"},_we=["onClick"],Twe={class:"correlation"},wwe=Z({__name:"Play",setup(e){const t=g=>{n.currentTabId=g},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:""},currentEpisode:0,relate:[],currentTabId:"",autoplay:!0,options:{title:"",src:"",volume:.6,currentTime:50}}),s=k(()=>{let g=!1;return n.detail.list.forEach(m=>{n.currentTabId==m.id&&(g=n.current.index!=m.linkList.length-1)}),g}),r=ya(),i=g=>{n.detail.list.forEach(m=>{if(m.id==g.sourceId){let y=m.linkList[g.episodeIndex];n.current={index:g.episodeIndex,episode:y.episode,link:y.link},n.currentEpisode=g.episodeIndex,n.options.src=y.link,n.options.title=n.detail.name+" "+y.episode,n.currentTabId=g.sourceId}})},a=g=>{switch(g.preventDefault(),g.keyCode){case 32:g.target.paused?g.target.play():g.target.pause();break;case 37:g.target.currentTime=g.target.currentTime-5<0?0:g.target.currentTime-5;break;case 39:g.target.currentTime=g.target.currentTime+5>g.target.duration?g.target.duration:g.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}},o=()=>{n.autoplay&&l()},l=()=>{s.value&&(i({sourceId:n.currentTabId,episodeIndex:n.current.index+1,target:""}),n.autoplay&&setTimeout(()=>{document.getElementsByTagName("video")[0].play()},1e3))},u=g=>{let m=document.getElementsByTagName("video")[0];m.focus();const y=document.createEvent("HTMLEvents");y.initEvent("keydown",!0,!1),y.keyCode=g,m.dispatchEvent(y)},c=g=>{let m=document.getElementsByClassName("vjs-button");for(let y of m)y.addEventListener("keydown",function(v){v.preventDefault(),u(v.keyCode)})},f=g=>{c()},h=g=>{let m=r.currentRoute.value.query.currentTime;m&&g.target.player.currentTime(m)},p=()=>{if(n.options.src.length>0){let g=document.getElementsByTagName("video")[0],m=Zl.getCookie(Jl.FILM_HISTORY)?JSON.parse(Zl.getCookie(Jl.FILM_HISTORY)):{},y=`/play?id=${n.detail.id}&source=${n.currentPlayFrom}&episode=${n.currentEpisode}¤tTime=${g.currentTime}`;m[n.detail.id]={name:n.detail.name,link:y,episode:n.current.episode,timeStamp:new Date().valueOf()},Zl.setCookie(Jl.FILM_HISTORY,JSON.stringify(m))}};return window.addEventListener("beforeunload",p),sl(()=>{let g=r.currentRoute.value.query;fn("/filmPlayInfo",{id:g.id,playFrom:g.source,episode:g.episode}).then(m=>{m.code===0?(n.detail=m.data.detail,n.current={index:m.data.currentEpisode,...m.data.current},n.currentEpisode=m.data.currentEpisode,n.relate=m.data.relate,n.options.src=n.current.link,n.currentTabId=m.data.currentPlayFrom,n.loading=!0):St.error({message:m.msg})})}),(g,m)=>{const y=tt;return pt((C(),j("div",twe,[R("div",nwe,[I(d(rD),{onMounted:f,src:n.options.src,poster:d(ZN),controls:"",onReady:h,onEnded:o,loop:!1,onKeydown:a,bufferedPercent:30,volume:n.options.volume,crossorigin:"anonymous",playsinline:"",class:"video-player","playback-rates":[.5,1,1.5,2]},null,8,["src","poster","volume","playback-rates"])]),R("div",swe,[R("div",rwe,[R("h3",iwe,[R("a",{href:`/filmDetail?link=${n.detail.id}`},ve(n.detail.name),9,awe),Fe(ve(n.current.episode),1)]),R("div",owe,[R("a",{href:`/filmClassifySearch?Pid=${n.detail.pid}&Category=${n.detail.cid}`},[I(y,null,{default:N(()=>[I(d(O_))]),_:1}),Fe(" "+ve(n.detail.descriptor.cName),1)],8,lwe),R("span",null,ve(n.detail.descriptor.classTag?n.detail.descriptor.classTag.replaceAll(",","/"):"未知"),1),R("span",uwe,ve(n.detail.descriptor.year),1),R("span",cwe,ve(n.detail.descriptor.area),1)])]),R("div",dwe,[R("a",{href:"javascript:;",class:M(`iconfont icon-play1 ${n.autoplay?"p_r_active":""}`),onClick:m[0]||(m[0]=()=>{n.autoplay=!n.autoplay})},null,2),pt(R("a",{href:"javascript:;",class:"iconfont icon-iov-next",onClick:l},null,512),[[Vt,d(s)]])])]),R("div",fwe,[R("div",hwe,[R("div",pwe,[mwe,R("div",gwe,[(C(!0),j(Ke,null,bt(n.detail.list,v=>(C(),j("a",{href:"javascript:;",class:M(`play-tab-item ${n.currentTabId==v.id?"tab-active":""}`),onClick:_=>t(v.id)},ve(v.name),11,vwe))),256))])]),R("div",ywe,[(C(!0),j(Ke,null,bt(n.detail.list,v=>pt((C(),j("div",bwe,[(C(!0),j(Ke,null,bt(v.linkList,(_,w)=>(C(),j("a",{class:M(`play-link ${_.link==n.current.link?"play-link-active":""}`),href:"javascript:;",onClick:T=>i({sourceId:v.id,episodeIndex:w,target:this})},ve(_.episode),11,_we))),256))],512)),[[Vt,n.currentTabId==v.id]])),256))])])]),R("div",Twe,[I(JN,{relateList:n.relate},null,8,["relateList"])])],512)),[[Vt,n.loading]])}}}),Swe=_n(wwe,[["__scopeId","data-v-d83218a5"]]),nw=e=>(sr("data-v-cd1f93df"),e=e(),rr(),e),Cwe={class:"container"},Ewe={class:"search_group"},xwe={key:0,class:"search_res"},kwe={class:"title"},Iwe={class:"content"},Owe={class:"film_item"},Awe=["href"],Pwe={class:"film_intro"},$we={class:"tags"},Nwe={class:"tag_c"},Mwe=nw(()=>R("em",null,"导演:",-1)),Rwe=nw(()=>R("em",null,"主演:",-1)),Lwe={class:"blurb"},Dwe=nw(()=>R("em",null,"剧情:",-1)),Fwe={class:"pagination_container"},Bwe=Z({__name:"SearchFilm",setup(e){const t=ya(),n=Mhe(),s=Ct({list:[],page:{current:0},oldSearch:"",search:""});Oe([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){St.error({message:"搜索信息不能为空",duration:1e3});return}location.href=location.href=`/search?search=${s.search}`},a=(l,u)=>{fn("/searchFilm",{keyword:l,current:u}).then(c=>{console.log(c),c.code==0?(s.list=c.data.list,s.page=c.data.page,s.oldSearch=l):St.warning({message:c.msg,duration:1e3})})};vt(()=>{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=bn,f=Tf,h=bf;return C(),j(Ke,null,[R("div",Cwe,[R("div",Ewe,[pt(R("input",{"onUpdate:modelValue":u[0]||(u[0]=p=>s.search=p),onKeydown:u[1]||(u[1]=p=>{p.keyCode==13&&i()}),placeholder:"输入关键字搜索 动漫,剧集,电影 ",class:"search"},null,544),[[sa,s.search]]),I(c,{onClick:i,icon:d(Id),style:{}},null,8,["icon"])]),s.list&&s.list.length>0?(C(),j("div",xwe,[R("div",kwe,[R("h2",null,ve(s.oldSearch),1),R("p",null,"共找到"+ve(s.page.total)+'部与"'+ve(s.oldSearch)+'"相关的影视作品',1)]),R("div",Iwe,[(C(!0),j(Ke,null,bt(s.list,p=>(C(),j("div",Owe,[R("a",{href:`/filmDetail?link=${p.id}`,style:rt({backgroundImage:`url('${p.picture}')`})},null,12,Awe),R("div",Pwe,[R("h3",null,ve(p.name),1),R("p",$we,[R("span",Nwe,ve(p.cName),1),R("span",null,ve(p.year),1),R("span",null,ve(p.area),1)]),R("p",null,[Mwe,Fe(ve(p.director),1)]),R("p",null,[Rwe,Fe(ve(p.actor),1)]),R("p",Lwe,[Dwe,Fe(ve(p.blurb.replaceAll(" ","")),1)]),I(c,{icon:d(Xm),onClick:g=>r(p.id)},{default:N(()=>[Fe("立即播放")]),_:2},1032,["icon","onClick"])])]))),256))]),R("div",Fwe,[I(f,{background:"",layout:"prev, pager, next","current-page":s.page.current,"onUpdate:currentPage":u[2]||(u[2]=p=>s.page.current=p),onCurrentChange:o,"pager-count":5,"page-size":s.page.pageSize,total:s.page.total,"prev-icon":d(pO),"next-icon":d(mO),"hide-on-single-page":"",class:"pagination"},null,8,["current-page","page-size","total","prev-icon","next-icon"])])])):le("",!0)]),s.oldSearch!=""&&(!s.list||s.list.length==0)?(C(),he(h,{key:0,description:"未查询到对应影片"})):le("",!0)],64)}}}),Vwe=_n(Bwe,[["__scopeId","data-v-cd1f93df"]]),Uwe="/assets/404-b813c94a.png",Hwe=e=>(sr("data-v-148e0a5e"),e=e(),rr(),e),zwe={class:"container"},jwe=["src"],Kwe=Hwe(()=>R("p",{class:"warning-txt"},"你好像走错地方了哦!!!",-1)),Wwe={class:"btn-group"},qwe=Z({__name:"Error404",setup(e){const t=ya(),n=s=>{switch(s){case"home":t.push("/");break;case"back":t.go(-1);break}};return(s,r)=>(C(),j("div",zwe,[le("",!0),R("img",{src:d(Uwe),alt:"404",class:"notfound-img"},null,8,jwe),Kwe,R("div",Wwe,[R("button",{onClick:r[2]||(r[2]=i=>n("home"))},"主页"),R("button",{onClick:r[3]||(r[3]=i=>n("back"))},"返回")])]))}}),Gwe=_n(qwe,[["__scopeId","data-v-148e0a5e"]]),iD=e=>(sr("data-v-92a5dec1"),e=e(),rr(),e),Ywe={key:0,class:"container"},Xwe={class:"title"},Qwe=["href"],Jwe=iD(()=>R("span",{class:"line"},null,-1)),Zwe=["href"],eSe={class:"t_container"},tSe={class:"t_item"},nSe={class:"t_title"},sSe=iD(()=>R("b",{class:"iconfont icon-triangle"},null,-1)),rSe={class:"tag_group"},iSe=["onClick"],aSe={class:"pagination_container"},oSe=Z({__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=ya(),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;fn("/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,console.log(t)):St.error({message:"影片搜索结果异常,请稍后刷新重试",duration:1e3})})};return vt(()=>{a()}),(o,l)=>{const u=Tf;return t.title.name?(C(),j("div",Ywe,[R("div",Xwe,[R("a",{href:`/filmClassify?Pid=${t.title.id}`},ve(t.title.name),9,Qwe),Jwe,R("a",{href:`/filmClassifySearch?Pid=${t.title.id}`,class:"h_active"},ve(`${t.title.name}库`),9,Zwe)]),R("div",eSe,[(C(!0),j(Ke,null,bt(t.search.sortList,c=>(C(),j("div",tSe,[R("div",nSe,[Fe(ve(t.search.titles[c])+" ",1),sSe]),R("div",rSe,[(C(!0),j(Ke,null,bt(t.search.tags[c],f=>(C(),j("a",{href:"javascript:void(false)",class:M(`tag ${f.Value===t.searchParams[c]?"t_active":""}`),onClick:h=>r(c,f.Value)},ve(f.Name),11,iSe))),256))])]))),256))]),I(eu,{col:7,list:t.list},null,8,["list"]),R("div",aSe,[I(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(pO),"next-icon":d(mO),"hide-on-single-page":"",class:"pagination"},null,8,["current-page","page-size","total","prev-icon","next-icon"])])])):le("",!0)}}}),lSe=_n(oSe,[["__scopeId","data-v-92a5dec1"]]),fl=e=>(sr("data-v-bcb171db"),e=e(),rr(),e),uSe={key:0,class:"container"},cSe={class:"title"},dSe=["href"],fSe=fl(()=>R("span",{class:"line"},null,-1)),hSe=["href"],pSe={class:"content"},mSe={class:"news"},gSe={class:"c_nav"},vSe=fl(()=>R("span",{class:"c_nav_text silver"},"最新上映",-1)),ySe=["href"],bSe=fl(()=>R("b",{class:"iconfont icon-more"},null,-1)),_Se={class:"news"},TSe={class:"c_nav"},wSe=fl(()=>R("span",{class:"c_nav_text silver"},"排行榜",-1)),SSe=["href"],CSe=fl(()=>R("b",{class:"iconfont icon-more"},null,-1)),ESe={class:"news"},xSe={class:"c_nav"},kSe=fl(()=>R("span",{class:"c_nav_text silver"},"最近更新",-1)),ISe=["href"],OSe=fl(()=>R("b",{class:"iconfont icon-more"},null,-1)),ASe=Z({__name:"FilmClassify",setup(e){const t=Ct({title:{},content:{news:[],top:[],recent:[]}}),n=ya(),s=()=>{let r=n.currentRoute.value.query;fn("/filmClassify",{Pid:r.Pid}).then(i=>{i.code===0?(t.title=i.data.title,t.content=i.data.content):St.error({message:i.msg,duration:1e3})})};return vt(()=>{s()}),(r,i)=>t.content.news.length>0?(C(),j("div",uSe,[R("div",cSe,[R("a",{href:`/filmClassify?Pid=${t.title.id}`,class:"h_active"},ve(t.title.name),9,dSe),fSe,R("a",{href:`/filmClassifySearch?Pid=${t.title.id}`},ve(`${t.title.name}库`),9,hSe)]),R("div",pSe,[R("div",mSe,[R("div",gSe,[vSe,R("a",{href:`/filmClassifySearch?Pid=${t.title.id}&Sort=release_stamp`,class:"c_nav_more"},[Fe("更多"),bSe],8,ySe)]),I(eu,{col:7,list:t.content.news},null,8,["list"])]),R("div",_Se,[R("div",TSe,[wSe,R("a",{href:`/filmClassifySearch?Pid=${t.title.id}&Sort=hits`,class:"c_nav_more"},[Fe("更多"),CSe],8,SSe)]),I(eu,{col:7,list:t.content.top},null,8,["list"])]),R("div",ESe,[R("div",xSe,[kSe,R("a",{href:`/filmClassifySearch?Pid=${t.title.id}&Sort=update_stamp`,class:"c_nav_more"},[Fe("更多"),OSe],8,ISe)]),I(eu,{col:7,list:t.content.recent},null,8,["list"])])])])):le("",!0)}}),PSe=_n(ASe,[["__scopeId","data-v-bcb171db"]]),$Se=e=>(sr("data-v-5d6b8cb4"),e=e(),rr(),e),NSe={class:"container"},MSe=$Se(()=>R("h3",null,"管理后台首页, 不知道放点啥, 先空着",-1)),RSe=[MSe],LSe=Z({__name:"Index",setup(e){return vt(()=>{fn("/manage/index").then(t=>{t.code==0?St.success({message:t.msg}):St.error({message:t.msg})})}),(t,n)=>(C(),j("div",NSe,RSe))}}),DSe=_n(LSe,[["__scopeId","data-v-5d6b8cb4"]]),sw=e=>(sr("data-v-2e64a78d"),e=e(),rr(),e),FSe={class:"container"},BSe={class:"container-form"},VSe={class:"cus-form"},USe=sw(()=>R("h2",{class:"form-title"},"GoFilm Manage",-1)),HSe={class:"cus-form-item"},zSe=sw(()=>R("i",{class:"cus-item-icon iconfont icon-account"},null,-1)),jSe={class:"cus-form-item"},KSe=sw(()=>R("i",{class:"cus-item-icon iconfont icon-password"},null,-1)),WSe=["type","onKeydown"],qSe=Z({__name:"Login",setup(e){const t=Ct({userName:"",password:"",pwdIsShow:!1}),n=ya(),s=()=>{ds("/login",{userName:t.userName,password:t.password}).then(r=>{r.code===0?n.push("/manage/index"):St.error({message:r.msg})})};return(r,i)=>{const a=bn;return C(),j("div",FSe,[le("",!0),R("div",BSe,[R("form",VSe,[USe,R("div",HSe,[pt(R("input",{type:"text","onUpdate:modelValue":i[0]||(i[0]=o=>t.userName=o),placeholder:"用户名 / 邮箱",class:"cus-input"},null,512),[[sa,t.userName]]),zSe]),R("div",jSe,[KSe,pt(R("input",{type:`${t.pwdIsShow?"text":"password"}`,"onUpdate:modelValue":i[1]||(i[1]=o=>t.password=o),placeholder:"密码",class:"cus-input",onKeydown:jt(s,["enter"])},null,40,WSe),[[sF,t.password]]),R("i",{class:M(`cus-pwd iconfont ${t.pwdIsShow?"icon-eye2":"icon-eye"}`),onClick:i[2]||(i[2]=o=>t.pwdIsShow=!t.pwdIsShow)},null,2)]),I(a,{"native-type":"button",type:"primary",size:"large",color:"#9b49e7",round:"",onClick:s},{default:N(()=>[Fe("登录")]),_:1}),I(a,{"native-type":"button",disabled:"",type:"primary",size:"large",color:"#9b49e7",round:""},{default:N(()=>[Fe("注册")]),_:1})])])])}}}),GSe=_n(qSe,[["__scopeId","data-v-2e64a78d"]]),Yg=e=>(sr("data-v-64b1c9fb"),e=e(),rr(),e),YSe={class:"header_container"},XSe={class:"left"},QSe=Yg(()=>R("h3",null,"后台管理中心",-1)),JSe={class:"right"},ZSe={class:"dropdown_user"},eCe=Yg(()=>R("em",{class:"iconfont icon-user-info"},null,-1)),tCe=Yg(()=>R("em",{class:"iconfont icon-change-pwd2"},null,-1)),nCe=Yg(()=>R("em",{class:"iconfont icon-logout"},null,-1)),sCe={class:"dialog-footer"},rCe=Z({__name:"ManageHeader",setup(e){const t=ya(),n=Ct({userInfo:{id:Number,userName:String,email:String,gender:Number,nickName:String,avatar:String,status:Number}}),s=Qe("collapse"),r=Ct({changePwd:!1}),i=Ct({changePwd:{password:"",newPassword:"",confirmPassword:""},type:{password:!1,newPassword:!1,confirmPassword:!1}}),a="^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d)(?=.*[$@$!%*?&])[A-Za-z\\d$@$!%*?&]{8,12}$",u=Ct({password:[{required:!0,message:"原始密码信息不能为空",trigger:"blur"}],newPassword:[{required:!0,validator:(g,m,y)=>{console.log(m),m===""?y(new Error("新密码不能为空")):m.match(a)||y(new Error("密码必须为8-12位且包含大小写字母数字和特殊字符")),y()},trigger:"blur"}],confirmPassword:[{required:!0,validator:(g,m,y)=>{m===""?y(new Error("确认密码不能为空")):i.changePwd.newPassword!==""&&i.changePwd.newPassword!=i.changePwd.confirmPassword&&y(new Error("新密码与确认密码不一致")),y()},trigger:"blur"}]}),c=()=>{ds("/changePassword",{password:i.changePwd.password,newPassword:i.changePwd.newPassword}).then(g=>{g.code===0?(i.changePwd={password:"",newPassword:"",confirmPassword:""},r.changePwd=!1,St.success({message:g.msg})):St.error({message:g.msg})})},f=()=>{r.changePwd=!1,i.changePwd={password:"",newPassword:"",confirmPassword:""}},h=()=>{fn("/logout").then(g=>{g.code===0?(ame(),t.push("/login")):St.error({message:g.msg})})},p=()=>{fn("/manage/user/info").then(g=>{g.code===0?(g.data.avatar=g.data.avatar=="empty"?"https://s2.loli.net/2023/12/05/O2SEiUcMx5aWlv4.jpg":g.data.avatar,n.userInfo=g.data):St.error({message:g.msg})})};return vt(()=>{p()}),(g,m)=>{const y=t1,v=tt,_=KP,w=WP,T=jP,S=Fn,E=ao,$=io,P=bn,U=yf;return C(),j("div",YSe,[R("div",XSe,[R("a",{href:"javascript:;",onClick:m[0]||(m[0]=(...H)=>d(s).changeCollapse&&d(s).changeCollapse(...H)),class:M(`iconfont ${d(s).collapse.value?"icon-unfold":"icon-fold"}`)},null,2),QSe]),R("div",JSe,[I(T,{placement:"bottom"},{dropdown:N(()=>[I(w,null,{default:N(()=>[I(_,{command:"a"},{default:N(()=>[eCe,Fe("个人信息")]),_:1}),I(_,{command:"a",onClick:m[1]||(m[1]=H=>r.changePwd=!0)},{default:N(()=>[tCe,Fe("修改密码 ")]),_:1}),I(_,{command:"e",divided:"",onClick:h},{default:N(()=>[nCe,Fe("退出登录 ")]),_:1})]),_:1})]),default:N(()=>[R("div",ZSe,[I(y,{class:"avatar",size:35,src:n.userInfo.avatar.toString(),alt:"admin"},null,8,["src"]),R("span",null,ve(n.userInfo.nickName),1),I(v,{class:"el-icon--right"},{default:N(()=>[I(d(ga))]),_:1})])]),_:1})]),I(U,{modelValue:r.changePwd,"onUpdate:modelValue":m[8]||(m[8]=H=>r.changePwd=H),width:"480px",title:"用户密码修改"},{footer:N(()=>[R("span",sCe,[I(P,{color:"#9b49e7",onClick:c},{default:N(()=>[Fe("确认")]),_:1}),I(P,{onClick:f},{default:N(()=>[Fe("取消")]),_:1})])]),default:N(()=>[I($,{model:i.changePwd,rules:u,"label-width":"80px"},{default:N(()=>[I(E,{label:"原始密码",prop:"password"},{default:N(()=>[I(S,{modelValue:i.changePwd.password,"onUpdate:modelValue":m[2]||(m[2]=H=>i.changePwd.password=H),type:i.type.password?"text":"password"},null,8,["modelValue","type"]),R("i",{class:M(`cus-pwd iconfont ${i.type.password?"icon-eye2":"icon-eye"}`),onClick:m[3]||(m[3]=H=>i.type.password=!i.type.password)},null,2)]),_:1}),I(E,{label:"新密码",prop:"newPassword"},{default:N(()=>[I(S,{modelValue:i.changePwd.newPassword,"onUpdate:modelValue":m[4]||(m[4]=H=>i.changePwd.newPassword=H),type:i.type.newPassword?"text":"password"},null,8,["modelValue","type"]),R("i",{class:M(`cus-pwd iconfont ${i.type.newPassword?"icon-eye2":"icon-eye"}`),onClick:m[5]||(m[5]=H=>i.type.newPassword=!i.type.newPassword)},null,2)]),_:1}),I(E,{label:"确认密码",prop:"confirmPassword"},{default:N(()=>[I(S,{modelValue:i.changePwd.confirmPassword,"onUpdate:modelValue":m[6]||(m[6]=H=>i.changePwd.confirmPassword=H),type:i.type.confirmPassword?"text":"password"},null,8,["modelValue","type"]),R("i",{class:M(`cus-pwd iconfont ${i.type.confirmPassword?"icon-eye2":"icon-eye"}`),onClick:m[7]||(m[7]=H=>i.type.confirmPassword=!i.type.confirmPassword)},null,2)]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["modelValue"])])}}}),iCe=_n(rCe,[["__scopeId","data-v-64b1c9fb"]]),Vf=e=>(sr("data-v-62de4680"),e=e(),rr(),e),aCe={class:"site_name"},oCe=Vf(()=>R("span",null,"网站管理",-1)),lCe=Vf(()=>R("span",null,"采集管理",-1)),uCe=Vf(()=>R("span",null,"定时任务",-1)),cCe=Vf(()=>R("span",null,"影片管理",-1)),dCe=Vf(()=>R("span",null,"文件管理",-1)),fCe=Z({__name:"Sidebar",setup(e){const t=Qe("collapse"),n=Ct({site:{siteName:String,logo:String}}),s=()=>{window.open("/index")},r=()=>{fn("/manage/config/basic").then(i=>{i.code==0?n.site=i.data:St.error({message:i.msg})})};return vt(()=>{r()}),(i,a)=>{const o=t1,l=e$,u=tt,c=t$,f=ZP;return C(),j("div",null,[I(f,{"default-active":"2",class:"side-nav",router:"",collapse:d(t).collapse.value},{default:N(()=>[I(l,{index:"",onClick:s},{title:N(()=>[R("b",aCe,ve(n.site.siteName),1)]),default:N(()=>[I(o,{class:"logo",size:30,src:n.site.logo.toString(),alt:"GoFilm"},null,8,["src"])]),_:1}),I(c,{index:"/manage/index"},{title:N(()=>[I(u,null,{default:N(()=>[I(d(Gz))]),_:1}),oCe]),default:N(()=>[I(l,{index:"/manage/system/webSite"},{default:N(()=>[Fe("站点管理")]),_:1})]),_:1}),I(c,{index:"/manage/collect"},{title:N(()=>[I(u,null,{default:N(()=>[I(d(Jz))]),_:1}),lCe]),default:N(()=>[I(l,{index:"/manage/collect/index"},{default:N(()=>[Fe("影视采集")]),_:1})]),_:1}),I(c,{index:"/manage/cron"},{title:N(()=>[I(u,null,{default:N(()=>[I(d(Pj))]),_:1}),uCe]),default:N(()=>[I(l,{index:"/manage/cron/index"},{default:N(()=>[Fe("任务管理")]),_:1})]),_:1}),I(c,{index:"/manage/film"},{title:N(()=>[I(u,null,{default:N(()=>[I(d(Vz))]),_:1}),cCe]),default:N(()=>[I(l,{index:"/manage/film/class"},{default:N(()=>[Fe("影视分类")]),_:1}),I(l,{index:"/manage/film"},{default:N(()=>[Fe("影视信息")]),_:1}),I(l,{index:"/manage/film/add"},{default:N(()=>[Fe("影片添加")]),_:1}),I(l,{index:"/manage/film/detail"},{default:N(()=>[Fe("视频详情")]),_:1})]),_:1}),I(c,{index:"/manage/file"},{title:N(()=>[I(u,null,{default:N(()=>[I(d(Hz))]),_:1}),dCe]),default:N(()=>[I(l,{index:"/manage/file/upload"},{default:N(()=>[Fe("文件上传")]),_:1}),I(l,{index:"/manage/file/gallery"},{default:N(()=>[Fe("图库管理")]),_:1})]),_:1})]),_:1},8,["collapse"])])}}}),hCe=_n(fCe,[["__scopeId","data-v-62de4680"]]),pCe={class:"container"},mCe=Z({__name:"ManageHome",setup(e){const t=G(!1);return Lt("collapse",{collapse:t,changeCollapse:()=>{t.value=!t.value}}),(s,r)=>{const i=_P,a=l1,o=Et("router-view"),l=u1,u=o1;return C(),j("div",pCe,[I(u,null,{default:N(()=>[I(i,{width:t.value?"auto":"190px",class:"side"},{default:N(()=>[I(hCe)]),_:1},8,["width"]),I(u,null,{default:N(()=>[I(a,{class:"header"},{default:N(()=>[I(iCe)]),_:1}),I(l,{class:"view"},{default:N(()=>[I(o)]),_:1})]),_:1})]),_:1})])}}}),gCe=_n(mCe,[["__scopeId","data-v-da813000"]]),vCe={class:"container"},yCe={class:"cus_util"},bCe={class:"dialog-footer"},_Ce={class:"dialog-footer"},TCe={class:"dialog-footer"},wCe=Z({__name:"CollectManage",setup(e){const t=Ct({siteList:[],collectDuration:[{time:24,label:"采集今日"},{time:168,label:"采集本周"},{time:-1,label:"采集全部"}]}),n=Ct({addV:!1,editV:!1,batchV:!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,fn("/manage/collect/options").then(y=>{y.code===0?s.options=y.data:St.error({message:y.msg})})},i=()=>{ds("/manage/spider/start",{ids:s.batch.ids,time:s.batch.time,batch:!0}).then(y=>{y.code===0?(St.success({message:y.msg}),g(),m()):St.error({message:y.msg})})},a=y=>{ds("/manage/spider/start",{id:y.id,time:y.cd,batch:!1}).then(v=>{v.code===0?(St.success({message:v.msg}),m()):St.error({message:v.msg})})},o=y=>{switch(y){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=()=>{ds("/manage/collect/add",s.add).then(y=>{y.code===0?(St.success({message:y.msg}),g(),m()):St.error({message:y.msg})})},u=y=>{ds("/manage/collect/test",y).then(v=>{v.code===0?St.success({message:v.msg}):St.error({message:v.msg})})},c=y=>{fn("/manage/collect/find",{id:y}).then(v=>{v.code===0?s.edit=v.data:St.error({message:v.msg})}),n.editV=!0},f=y=>{ds("/manage/collect/change",{id:y.id,state:y.state,syncPictures:y.syncPictures}).then(v=>{v.code===0?(St.success({message:v.msg}),m()):St.error({message:v.msg})})},h=y=>{ds("/manage/collect/update",y).then(v=>{v.code===0?(St.success({message:v.msg}),n.editV=!1,m()):St.error({message:v.msg})})},p=y=>{fn("/manage/collect/del",{id:y}).then(v=>{v.code===0?(St.success({message:v.msg}),m()):St.error({message:v.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}},m=()=>{fn("/manage/collect/list").then(y=>{y.code===0?t.siteList=y.data.map(v=>{switch(v.collectType){case 0:v.collectTypeText="视频";break;case 1:v.collectTypeText="文章";break;case 2:v.collectTypeText="演员";break;case 3:v.collectTypeText="角色";break;case 4:v.collectTypeText="网站";break}return v.cd=24,v}):St.error({message:y.msg})})};return vt(()=>{m()}),(y,v)=>{const _=Cf,w=aa,T=GP,S=wf,E=Ga,$=ei,P=bn,U=Sf,H=Fn,z=ao,W=pg,D=ms,V=dg,X=r1,Y=io,B=yf;return C(),j("div",vCe,[I(U,{data:t.siteList,style:{width:"100%"},border:"",size:"default","row-class-name":"cus-tr","table-layout":"auto"},{default:N(()=>[I(_,{prop:"name",label:"资源名称"}),I(_,{prop:"resultModel",align:"center",label:"数据类型"},{default:N(K=>[I(w,{"disable-transitions":""},{default:N(()=>[Fe(ve(K.row.resultModel==0?"JSON":"XML"),1)]),_:2},1024)]),_:1}),I(_,{prop:"collectType",align:"center",label:"资源类型"},{default:N(K=>[I(w,{"disable-transitions":""},{default:N(()=>[Fe(ve(K.row.collectTypeText),1)]),_:2},1024)]),_:1}),I(_,{prop:"uri",label:"资源站"},{default:N(K=>[I(T,{href:K.row.uri,target:"_blank"},{default:N(()=>[Fe(ve(K.row.uri),1)]),_:2},1032,["href"])]),_:1}),I(_,{prop:"syncPictures",align:"center",label:"同步图片"},{default:N(K=>[I(S,{onChange:L=>f(K.row),disabled:K.row.grade==1,modelValue:K.row.syncPictures,"onUpdate:modelValue":L=>K.row.syncPictures=L,"inline-prompt":"","active-text":"开启","inactive-text":"关闭"},null,8,["onChange","disabled","modelValue","onUpdate:modelValue"])]),_:1}),I(_,{prop:"state",align:"center",label:"是否启用"},{default:N(K=>[I(S,{onChange:L=>f(K.row),modelValue:K.row.state,"onUpdate:modelValue":L=>K.row.state=L,"inline-prompt":"","active-text":"启用","inactive-text":"禁用"},null,8,["onChange","modelValue","onUpdate:modelValue"])]),_:1}),I(_,{prop:"grade",align:"center",label:"站点权重"},{default:N(K=>[I(w,{"disable-transitions":"",type:`${K.row.grade==0?"success":"info"}`},{default:N(()=>[Fe(ve(K.row.grade==0?"采集主站":"附属站点"),1)]),_:2},1032,["type"])]),_:1}),I(_,{prop:"grade",align:"center",label:"采集间隔"},{default:N(K=>[I(w,{"disable-transitions":"",type:"success"},{default:N(()=>[Fe(ve(K.row.interval>0?`${K.row.interval} ms`:"无限制"),1)]),_:2},1024)]),_:1}),I(_,{label:"采集方式"},{default:N(K=>[I($,{modelValue:K.row.cd,"onUpdate:modelValue":L=>K.row.cd=L,class:"m-2",placeholder:"Select",size:"small"},{default:N(()=>[(C(!0),j(Ke,null,bt(t.collectDuration,L=>(C(),he(E,{key:L.time,label:L.label,value:L.time},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:1}),I(_,{label:"操作",align:"center"},{default:N(K=>[I(P,{type:"success",icon:d(Oj),plain:"",circle:"",onClick:L=>a(K.row)},null,8,["icon","onClick"]),I(P,{type:"primary",icon:d(Qm),plain:"",circle:"",onClick:L=>c(K.row.id)},null,8,["icon","onClick"]),I(P,{type:"danger",icon:d(Ku),plain:"",circle:"",onClick:L=>p(K.row.id)},null,8,["icon","onClick"])]),_:1})]),_:1},8,["data"]),R("div",yCe,[I(P,{color:"#9b49e7",icon:d(Az),onClick:v[0]||(v[0]=K=>n.addV=!0)},{default:N(()=>[Fe("添加采集站")]),_:1},8,["icon"]),I(P,{color:"#d942bf",onClick:r,icon:d(O_)},{default:N(()=>[Fe("一键采集")]),_:1},8,["icon"]),I(P,{type:"danger",icon:d(vz)},{default:N(()=>[Fe("ReZero")]),_:1},8,["icon"])]),I(B,{modelValue:n.addV,"onUpdate:modelValue":v[13]||(v[13]=K=>n.addV=K),title:"添加采集站点"},{footer:N(()=>[R("span",bCe,[I(P,{color:"#cf48be",onClick:v[11]||(v[11]=K=>u(s.add))},{default:N(()=>[Fe("测试")]),_:1}),I(P,{color:"#9b49e7",onClick:l},{default:N(()=>[Fe("添加")]),_:1}),I(P,{onClick:v[12]||(v[12]=K=>n.addV=!1)},{default:N(()=>[Fe("取消")]),_:1})])]),default:N(()=>[I(Y,{model:s.add},{default:N(()=>[I(z,{label:"资源名称"},{default:N(()=>[I(H,{modelValue:s.add.name,"onUpdate:modelValue":v[1]||(v[1]=K=>s.add.name=K),placeholder:"自定义资源名称(禁用汉字)"},null,8,["modelValue"])]),_:1}),I(z,{label:"接口地址"},{default:N(()=>[I(H,{modelValue:s.add.uri,"onUpdate:modelValue":v[2]||(v[2]=K=>s.add.uri=K),placeholder:"资源采集链接,本站只采集综合资源或m3u8资源"},null,8,["modelValue"])]),_:1}),I(z,{label:"间隔时长"},{default:N(()=>[I(D,{class:"box-item",effect:"dark",content:"单次采集请求的时间间隔, 单位/ms",placement:"top"},{default:N(()=>[I(W,{modelValue:s.add.interval,"onUpdate:modelValue":v[3]||(v[3]=K=>s.add.interval=K),min:0,step:100,"step-strictly":""},null,8,["modelValue"])]),_:1})]),_:1}),I(z,{label:"接口类型"},{default:N(()=>[I(X,{modelValue:s.add.resultModel,"onUpdate:modelValue":v[4]||(v[4]=K=>s.add.resultModel=K)},{default:N(()=>[I(V,{label:0},{default:N(()=>[Fe("JSON")]),_:1}),I(V,{disabled:"",label:1},{default:N(()=>[Fe("XML")]),_:1})]),_:1},8,["modelValue"])]),_:1}),I(z,{label:"资源类型"},{default:N(()=>[I(X,{fill:"#9b49e7",modelValue:s.add.collectType,"onUpdate:modelValue":v[5]||(v[5]=K=>s.add.collectType=K)},{default:N(()=>[I(V,{fill:"#9b49e7",label:0},{default:N(()=>[Fe("视频")]),_:1}),I(V,{disabled:"",label:1},{default:N(()=>[Fe("文章")]),_:1}),I(V,{disabled:"",label:2},{default:N(()=>[Fe("演员")]),_:1}),I(V,{disabled:"",label:3},{default:N(()=>[Fe("角色")]),_:1}),I(V,{disabled:"",label:4},{default:N(()=>[Fe("网站")]),_:1})]),_:1},8,["modelValue"])]),_:1}),I(z,{label:"站点权重"},{default:N(()=>[I(X,{onChange:v[6]||(v[6]=K=>o(0)),fill:"#9b49e7",modelValue:s.add.grade,"onUpdate:modelValue":v[7]||(v[7]=K=>s.add.grade=K)},{default:N(()=>[I(V,{label:0},{default:N(()=>[Fe("主站点")]),_:1}),I(V,{label:1},{default:N(()=>[Fe("附属站点")]),_:1})]),_:1},8,["modelValue"])]),_:1}),I(z,{label:"图片同步"},{default:N(()=>[I(S,{modelValue:s.add.syncPictures,"onUpdate:modelValue":v[8]||(v[8]=K=>s.add.syncPictures=K),onChange:v[9]||(v[9]=K=>o(0)),"inline-prompt":"","active-text":"开启","inactive-text":"关闭"},null,8,["modelValue"])]),_:1}),I(z,{label:"是否启用"},{default:N(()=>[I(S,{modelValue:s.add.state,"onUpdate:modelValue":v[10]||(v[10]=K=>s.add.state=K),"inline-prompt":"","active-text":"启用","inactive-text":"禁用"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),I(B,{modelValue:n.editV,"onUpdate:modelValue":v[27]||(v[27]=K=>n.editV=K),title:"修改资源站信息"},{footer:N(()=>[R("span",_Ce,[I(P,{color:"#cf48be",onClick:v[24]||(v[24]=K=>u(s.edit))},{default:N(()=>[Fe("测试")]),_:1}),I(P,{color:"#9b49e7",onClick:v[25]||(v[25]=K=>h(s.edit))},{default:N(()=>[Fe("更新")]),_:1}),I(P,{onClick:v[26]||(v[26]=K=>n.editV=!1)},{default:N(()=>[Fe("取消")]),_:1})])]),default:N(()=>[I(Y,{model:s.edit},{default:N(()=>[I(z,{label:"资源名称"},{default:N(()=>[I(H,{modelValue:s.edit.name,"onUpdate:modelValue":v[14]||(v[14]=K=>s.edit.name=K),placeholder:"自定义资源名称(禁用汉字)"},null,8,["modelValue"])]),_:1}),I(z,{label:"接口地址"},{default:N(()=>[I(H,{modelValue:s.edit.uri,"onUpdate:modelValue":v[15]||(v[15]=K=>s.edit.uri=K),placeholder:"资源采集链接,本站只采集综合资源或m3u8资源"},null,8,["modelValue"])]),_:1}),I(z,{label:"间隔时长"},{default:N(()=>[I(D,{class:"box-item",effect:"dark",content:"单次采集请求的时间间隔, 单位/ms",placement:"top"},{default:N(()=>[I(W,{modelValue:s.edit.interval,"onUpdate:modelValue":v[16]||(v[16]=K=>s.edit.interval=K),min:0,step:100,"step-strictly":""},null,8,["modelValue"])]),_:1})]),_:1}),I(z,{label:"接口类型"},{default:N(()=>[I(X,{modelValue:s.edit.resultModel,"onUpdate:modelValue":v[17]||(v[17]=K=>s.edit.resultModel=K)},{default:N(()=>[I(V,{label:0},{default:N(()=>[Fe("JSON")]),_:1}),I(V,{disabled:"",label:1},{default:N(()=>[Fe("XML")]),_:1})]),_:1},8,["modelValue"])]),_:1}),I(z,{label:"资源类型"},{default:N(()=>[I(X,{fill:"#9b49e7",modelValue:s.edit.collectType,"onUpdate:modelValue":v[18]||(v[18]=K=>s.edit.collectType=K)},{default:N(()=>[I(V,{fill:"#9b49e7",label:0},{default:N(()=>[Fe("视频")]),_:1}),I(V,{disabled:"",label:1},{default:N(()=>[Fe("文章")]),_:1}),I(V,{disabled:"",label:2},{default:N(()=>[Fe("演员")]),_:1}),I(V,{disabled:"",label:3},{default:N(()=>[Fe("角色")]),_:1}),I(V,{disabled:"",label:4},{default:N(()=>[Fe("网站")]),_:1})]),_:1},8,["modelValue"])]),_:1}),I(z,{label:"站点权重"},{default:N(()=>[I(X,{fill:"#9b49e7",onChange:v[19]||(v[19]=K=>o(1)),modelValue:s.edit.grade,"onUpdate:modelValue":v[20]||(v[20]=K=>s.edit.grade=K)},{default:N(()=>[I(V,{label:0},{default:N(()=>[Fe("主站点")]),_:1}),I(V,{label:1},{default:N(()=>[Fe("附属站点")]),_:1})]),_:1},8,["modelValue"])]),_:1}),I(z,{label:"图片同步"},{default:N(()=>[I(S,{modelValue:s.edit.syncPictures,"onUpdate:modelValue":v[21]||(v[21]=K=>s.edit.syncPictures=K),onChange:v[22]||(v[22]=K=>o(1)),"inline-prompt":"","active-text":"开启","inactive-text":"关闭"},null,8,["modelValue"])]),_:1}),I(z,{label:"是否启用"},{default:N(()=>[I(S,{modelValue:s.edit.state,"onUpdate:modelValue":v[23]||(v[23]=K=>s.edit.state=K),"inline-prompt":"","active-text":"启用","inactive-text":"禁用"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),I(B,{modelValue:n.batchV,"onUpdate:modelValue":v[30]||(v[30]=K=>n.batchV=K),width:"450px",title:"多资源站一键采集"},{footer:N(()=>[R("span",TCe,[I(P,{color:"#9b49e7",onClick:i},{default:N(()=>[Fe("确认执行")]),_:1}),I(P,{onClick:g},{default:N(()=>[Fe("取消")]),_:1})])]),default:N(()=>[I(Y,{model:s.batch},{default:N(()=>[I(z,{label:"执行站点"},{default:N(()=>[I($,{modelValue:s.batch.ids,"onUpdate:modelValue":v[28]||(v[28]=K=>s.batch.ids=K),multiple:"","collapse-tags":"","collapse-tags-tooltip":"",placeholder:"Select",style:{width:"240px"}},{default:N(()=>[(C(!0),j(Ke,null,bt(s.options,K=>(C(),he(E,{key:K.id,label:K.name,value:K.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),I(z,{label:"采集时长"},{default:N(()=>[I(D,{class:"box-item",effect:"dark",content:"采集最近x小时更新的影片,负数则默认采集所有资源",placement:"top"},{default:N(()=>[I(W,{modelValue:s.batch.time,"onUpdate:modelValue":v[29]||(v[29]=K=>s.batch.time=K),step:1,"step-strictly":""},null,8,["modelValue"])]),_:1})]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"])])}}}),SCe=_n(wCe,[["__scopeId","data-v-05c029f4"]]),CCe=e=>(sr("data-v-3c90743b"),e=e(),rr(),e),ECe={class:"container"},xCe=CCe(()=>R("h2",{class:"title"},"网站基础参数配置",-1)),kCe={class:"content"},ICe=Z({__name:"SiteConfig",setup(e){const t=Ct({site:{siteName:"",domain:"",logo:"",keyword:"",describe:"",state:!0,hint:""}}),n=()=>{ds("/manage/config/basic/update",t.site).then(r=>{r.code===0?(St.success({message:r.msg}),s()):St.error({message:r.msg})})},s=()=>{fn("/manage/config/basic").then(r=>{r.code===0?t.site=r.data:St.error({message:r.msg})})};return vt(()=>{s()}),(r,i)=>{const a=Fn,o=ao,l=wf,u=bn,c=io;return C(),j("div",ECe,[xCe,R("div",kCe,[I(c,{size:"large",model:t.site,"label-width":"120px"},{default:N(()=>[I(o,{label:"网站名称"},{default:N(()=>[I(a,{modelValue:t.site.siteName,"onUpdate:modelValue":i[0]||(i[0]=f=>t.site.siteName=f)},null,8,["modelValue"])]),_:1}),I(o,{label:"网站域名"},{default:N(()=>[I(a,{modelValue:t.site.domain,"onUpdate:modelValue":i[1]||(i[1]=f=>t.site.domain=f)},null,8,["modelValue"])]),_:1}),I(o,{label:"网站Logo"},{default:N(()=>[I(a,{modelValue:t.site.logo,"onUpdate:modelValue":i[2]||(i[2]=f=>t.site.logo=f)},null,8,["modelValue"])]),_:1}),I(o,{label:"搜索关键字"},{default:N(()=>[I(a,{modelValue:t.site.keyword,"onUpdate:modelValue":i[3]||(i[3]=f=>t.site.keyword=f)},null,8,["modelValue"])]),_:1}),I(o,{label:"网站描述"},{default:N(()=>[I(a,{modelValue:t.site.describe,"onUpdate:modelValue":i[4]||(i[4]=f=>t.site.describe=f)},null,8,["modelValue"])]),_:1}),I(o,{label:"网站状态"},{default:N(()=>[I(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}),I(o,{label:"维护提示"},{default:N(()=>[I(a,{modelValue:t.site.hint,"onUpdate:modelValue":i[6]||(i[6]=f=>t.site.hint=f)},null,8,["modelValue"])]),_:1}),I(o,null,{default:N(()=>[I(u,{color:"#9b49e7",onClick:n},{default:N(()=>[Fe("更新")]),_:1}),I(u,{onClick:s},{default:N(()=>[Fe("重置")]),_:1})]),_:1})]),_:1},8,["model"])])])}}}),OCe=_n(ICe,[["__scopeId","data-v-3c90743b"]]),ACe={class:"container"},PCe={class:"cus_util"},$Ce={class:"dialog-footer"},NCe={class:"dialog-footer"},MCe=Z({__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=()=>{ds("/manage/cron/add",s.add).then(p=>{p.code===0?(St.success({message:p.msg}),a(),h()):St.error({message:p.msg})})},i=()=>{console.log(s.edit),ds("/manage/cron/update",{id:s.edit.id,ids:s.edit.ids,time:s.edit.time,state:s.edit.state,remark:s.edit.remark}).then(p=>{p.code===0?(St.success({message:p.msg}),a(),h()):St.error({message:p.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=p=>{fn("/manage/cron/del",{id:p}).then(g=>{g.code===0?(St.success({message:g.msg}),h()):St.error({message:g.msg})})},u=(p,g)=>{ds("/manage/cron/change",{id:p,state:g}).then(m=>{m.code===0?(St.success({message:m.msg}),h()):St.error({message:m.msg})})},c=p=>{n.editV=!0,f(),fn("/manage/cron/find",{id:p}).then(g=>{g.code===0?s.edit=g.data:St.error({message:g.msg})})},f=()=>{fn("/manage/collect/options").then(p=>{p.code===0?s.options=p.data:St.error({message:p.msg})})},h=()=>{fn("/manage/cron/list").then(p=>{p.code===0?t.taskList=p.data:(t.taskList=[],St.warning({message:p.msg}))})};return vt(()=>{h()}),(p,g)=>{const m=aa,y=Cf,v=wf,_=bn,w=Sf,T=Fn,S=ao,E=dg,$=ms,P=r1,U=Ga,H=ei,z=pg,W=io,D=yf;return C(),j("div",ACe,[I(w,{data:t.taskList,style:{width:"100%"},border:"",size:"default","row-class-name":"cus-tr","table-layout":"auto"},{default:N(()=>[I(y,{prop:"id",label:"任务ID"},{default:N(V=>[I(m,{"disable-transitions":""},{default:N(()=>[Fe(ve(V.row.id),1)]),_:2},1024)]),_:1}),I(y,{prop:"remark",label:"任务描述"}),I(y,{prop:"model",align:"center",label:"任务类型"},{default:N(V=>[I(m,{"disable-transitions":""},{default:N(()=>[Fe(ve(V.row.model==0?"自动更新":"自定义任务"),1)]),_:2},1024)]),_:1}),I(y,{prop:"state",align:"center",label:"是否启用"},{default:N(V=>[I(v,{modelValue:V.row.state,"onUpdate:modelValue":X=>V.row.state=X,onChange:X=>u(V.row.id,V.row.state),"inline-prompt":"","active-text":"启用","inactive-text":"禁用"},null,8,["modelValue","onUpdate:modelValue","onChange"])]),_:1}),I(y,{prop:"preV",align:"center",label:"上次执行时间"},{default:N(V=>[I(m,{type:"success","disable-transitions":""},{default:N(()=>[Fe(ve(V.row.preV),1)]),_:2},1024)]),_:1}),I(y,{prop:"next",align:"center",label:"下次执行时间"},{default:N(V=>[I(m,{type:"warning","disable-transitions":""},{default:N(()=>[Fe(ve(V.row.next),1)]),_:2},1024)]),_:1}),I(y,{label:"操作",align:"center"},{default:N(V=>[I(_,{type:"primary",icon:d(Qm),plain:"",circle:"",onClick:X=>c(V.row.id)},null,8,["icon","onClick"]),I(_,{type:"danger",icon:d(Ku),plain:"",circle:"",onClick:X=>l(V.row.id)},null,8,["icon","onClick"])]),_:1})]),_:1},8,["data"]),R("div",PCe,[I(_,{color:"#9b49e7",icon:d(x_),onClick:o},{default:N(()=>[Fe("创建定时任务")]),_:1},8,["icon"])]),I(D,{modelValue:n.addV,"onUpdate:modelValue":g[6]||(g[6]=V=>n.addV=V),title:"创建定时任务"},{footer:N(()=>[R("span",$Ce,[I(_,{color:"#9b49e7",onClick:r},{default:N(()=>[Fe("添加")]),_:1}),I(_,{onClick:a},{default:N(()=>[Fe("取消")]),_:1})])]),default:N(()=>[I(W,{model:s.add},{default:N(()=>[I(S,{label:"任务周期"},{default:N(()=>[I(T,{modelValue:s.add.spec,"onUpdate:modelValue":g[0]||(g[0]=V=>s.add.spec=V),placeholder:"定时任务Cron表达式 (例: [0 */20 * * * ?] 每20分钟执行一次)"},null,8,["modelValue"])]),_:1}),I(S,{label:"任务描述"},{default:N(()=>[I(T,{modelValue:s.add.remark,"onUpdate:modelValue":g[1]||(g[1]=V=>s.add.remark=V),placeholder:"定时任务描述信息"},null,8,["modelValue"])]),_:1}),I(S,{label:"任务类型"},{default:N(()=>[I(P,{fill:"#9b49e7",modelValue:s.add.model,"onUpdate:modelValue":g[2]||(g[2]=V=>s.add.model=V)},{default:N(()=>[I($,{class:"box-item",effect:"dark",content:"执行所有已启用站点的采集任务",placement:"top"},{default:N(()=>[I(E,{label:0},{default:N(()=>[Fe("自动更新")]),_:1})]),_:1}),I($,{class:"box-item",effect:"dark",content:"只执行指定站点的采集任务",placement:"top"},{default:N(()=>[I(E,{label:1},{default:N(()=>[Fe("自定义更新")]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1}),s.add.model==1?(C(),he(S,{key:0,label:"资源绑定"},{default:N(()=>[I(H,{modelValue:s.add.ids,"onUpdate:modelValue":g[3]||(g[3]=V=>s.add.ids=V),multiple:"","collapse-tags":"","collapse-tags-tooltip":"",placeholder:"Select",style:{width:"240px"}},{default:N(()=>[(C(!0),j(Ke,null,bt(s.options,V=>(C(),he(U,{key:V.id,label:V.name,value:V.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):le("",!0),I(S,{label:"采集时长"},{default:N(()=>[I($,{class:"box-item",effect:"dark",content:"采集最近x小时更新的影片,负数则默认采集所有资源",placement:"top"},{default:N(()=>[I(z,{modelValue:s.add.time,"onUpdate:modelValue":g[4]||(g[4]=V=>s.add.time=V),step:1,"step-strictly":""},null,8,["modelValue"])]),_:1})]),_:1}),I(S,{label:"任务状态"},{default:N(()=>[I(v,{modelValue:s.add.state,"onUpdate:modelValue":g[5]||(g[5]=V=>s.add.state=V),"inline-prompt":"","active-text":"开启","inactive-text":"禁用"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),I(D,{modelValue:n.editV,"onUpdate:modelValue":g[11]||(g[11]=V=>n.editV=V),title:"创建定时任务"},{footer:N(()=>[R("span",NCe,[I(_,{color:"#9b49e7",onClick:i},{default:N(()=>[Fe("更新")]),_:1}),I(_,{onClick:a},{default:N(()=>[Fe("取消")]),_:1})])]),default:N(()=>[I(W,{model:s.edit},{default:N(()=>[I(S,{label:"任务标识"},{default:N(()=>[I(m,{type:"success","disable-transitions":""},{default:N(()=>[Fe(ve(s.edit.id),1)]),_:1})]),_:1}),I(S,{label:"任务描述"},{default:N(()=>[I(T,{modelValue:s.edit.remark,"onUpdate:modelValue":g[7]||(g[7]=V=>s.edit.remark=V),placeholder:"定时任务描述信息"},null,8,["modelValue"])]),_:1}),I(S,{label:"任务周期"},{default:N(()=>[I(m,{"disable-transitions":""},{default:N(()=>[Fe(ve(s.edit.spec),1)]),_:1})]),_:1}),I(S,{label:"任务类型"},{default:N(()=>[I(m,{"disable-transitions":""},{default:N(()=>[Fe(ve(s.edit.model==0?"自动更新":"自定义更新"),1)]),_:1})]),_:1}),s.edit.model==1?(C(),he(S,{key:0,label:"资源绑定"},{default:N(()=>[I(H,{modelValue:s.edit.ids,"onUpdate:modelValue":g[8]||(g[8]=V=>s.edit.ids=V),multiple:"","collapse-tags":"","collapse-tags-tooltip":"",placeholder:"Select",style:{width:"240px"}},{default:N(()=>[(C(!0),j(Ke,null,bt(s.options,V=>(C(),he(U,{key:V.id,label:V.name,value:V.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):le("",!0),I(S,{label:"采集时长"},{default:N(()=>[I($,{class:"box-item",effect:"dark",content:"采集最近x小时更新的影片,负数则默认采集所有资源",placement:"top"},{default:N(()=>[I(z,{modelValue:s.edit.time,"onUpdate:modelValue":g[9]||(g[9]=V=>s.edit.time=V),step:1,"step-strictly":""},null,8,["modelValue"])]),_:1})]),_:1}),I(S,{label:"任务状态"},{default:N(()=>[I(v,{modelValue:s.edit.state,"onUpdate:modelValue":g[10]||(g[10]=V=>s.edit.state=V),"inline-prompt":"","active-text":"开启","inactive-text":"禁用"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"])])}}}),RCe=_n(MCe,[["__scopeId","data-v-4952dbd4"]]),LCe={},DCe=R("h2",{style:{color:"#8e48b4"}},"功能开发中, 请关注后续更新",-1),FCe=[DCe];function BCe(e,t){return C(),j("div",null,FCe)}const dk=_n(LCe,[["render",BCe]]),VCe={class:"container"},UCe={class:"cus_util"},HCe={class:"dialog-footer"},zCe=Z({__name:"FilmClass",setup(e){const t=Ct({classTree:[]}),n=Ct({editV:!1,editForm:{id:-99,pid:-99,name:"",show:!0,children:[]}}),s=c=>{fn("/manage/film/class/del",{id:c}).then(f=>{f.code===0?(u(),St.success({message:f.msg})):St.error({message:f.msg})})},r=c=>{n.editV=!0,fn("/manage/film/class/find",{id:c}).then(f=>{f.code===0?n.editForm=f.data:St.error({message:f.msg})})},i=()=>{let{id:c,name:f,show:h}=n.editForm;ds("/manage/film/class/update",{id:c,name:f,show:h}).then(p=>{p.code===0?(n.editV=!1,u(),St.success({message:p.msg})):St.error({message:p.msg})})},a=(c,f)=>{ds("/manage/film/class/update",{id:c,show:f}).then(h=>{h.code===0?(n.editV=!1,u(),St.success({message:h.msg})):St.error({message:h.msg})})},o=()=>{n.editForm={id:-99,pid:-99,name:"",show:!0,children:[]}},l=()=>{fn("/manage/spider/class/cover").then(c=>{c.code===0?St.success({message:c.msg}):St.error({message:c.msg})})},u=()=>{fn("/manage/film/class/tree").then(c=>{c.code===0?t.classTree=c.data.children:St.error({message:c.msg})})};return vt(()=>{u()}),(c,f)=>{const h=aa,p=Cf,g=wf,m=bn,y=Sf,v=Fn,_=ao,w=io,T=yf;return C(),j("div",VCe,[I(y,{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:N(()=>[I(p,{prop:"name",label:"分类名称"},{default:N(S=>[I(h,{type:S.row.pid==0?"success":"warning","disable-transitions":""},{default:N(()=>[Fe(ve(S.row.name),1)]),_:2},1032,["type"])]),_:1}),I(p,{prop:"show",align:"center",label:"是否展示"},{default:N(S=>[I(g,{modelValue:S.row.show,"onUpdate:modelValue":E=>S.row.show=E,"inline-prompt":"","active-text":"展示",onChange:E=>a(S.row.id,S.row.show),"inactive-text":"隐藏"},null,8,["modelValue","onUpdate:modelValue","onChange"])]),_:1}),I(p,{label:"操作",align:"center"},{default:N(S=>[I(m,{type:"primary",icon:d(Qm),onClick:E=>r(S.row.id),plain:"",circle:""},null,8,["icon","onClick"]),I(m,{type:"danger",icon:d(Ku),onClick:E=>s(S.row.id),plain:"",circle:""},null,8,["icon","onClick"])]),_:1})]),_:1},8,["data"]),R("div",UCe,[I(m,{color:"#9b49e7",icon:d(gO),onClick:l},{default:N(()=>[Fe("重置分类信息")]),_:1},8,["icon"])]),I(T,{modelValue:n.editV,"onUpdate:modelValue":f[3]||(f[3]=S=>n.editV=S),onClose:o,width:"480px",title:"更新分类信息"},{footer:N(()=>[R("span",HCe,[I(m,{color:"#9b49e7",onClick:i},{default:N(()=>[Fe("更新")]),_:1}),I(m,{onClick:f[2]||(f[2]=S=>n.editV=!1)},{default:N(()=>[Fe("取消")]),_:1})])]),default:N(()=>[I(w,{model:n.editForm},{default:N(()=>[I(_,{label:"分类名称"},{default:N(()=>[I(v,{modelValue:n.editForm.name,"onUpdate:modelValue":f[0]||(f[0]=S=>n.editForm.name=S),placeholder:"分类名称,用于首页导航展示"},null,8,["modelValue"])]),_:1}),I(_,{label:"分类层级"},{default:N(()=>[I(h,{type:n.editForm.pid==0?"success":"warning","disable-transitions":""},{default:N(()=>[Fe(ve(n.editForm.pid==0?"一级分类":"二级分类"),1)]),_:1},8,["type"])]),_:1}),I(_,{label:"是否展示"},{default:N(()=>[I(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?(C(),he(_,{key:0,class:"class_sub",label:"拓展分类"},{default:N(()=>[(C(!0),j(Ke,null,bt(n.editForm.children,S=>(C(),he(h,{class:"class_sub_tag",type:"warning","disable-transitions":""},{default:N(()=>[Fe(ve(S.name),1)]),_:2},1024))),256))]),_:1})):le("",!0)]),_:1},8,["model"])]),_:1},8,["modelValue"])])}}}),jCe=_n(zCe,[["__scopeId","data-v-ff656629"]]),KCe={dateFormat(e,t="YYYY-mm-dd HH:MM:SS"){let n=new Date(e*1e3);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}},WCe={class:"container"},qCe={class:"params_form"},GCe={class:"content"},YCe={style:{color:"#8b40ff"}},XCe={class:"pagination"},QCe=Z({__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=o=>{for(let l=0;l<t.options.class.length;l++)if(t.options.class[l].id==o){let u=t.options.class[l];if(u.pid<=0){t.params.pid=u.id,t.params.cid=0;return}else if(u.pid==t.params.pid){t.params.pid=u.pid,t.params.cid=u.id;return}t.params.pid=u.pid,t.params.cid=u.id;let c=u.pid==0?n[u.id]:n[u.pid];c?(t.options.Plot=c.Plot,console.log(t.options.Plot),t.options.Area=c.Area,t.options.Language=c.Language):(t.options.Plot=[],t.options.Area=[],t.options.Language=[]),t.params.plot="",t.params.area="",t.params.language=""}},r=o=>(t.page.current-1)*t.page.pageSize+o+1,i=()=>{let o=t.params;t.dateGroup&&t.dateGroup.length==2?(o.beginTime=t.dateGroup[0],o.endTime=t.dateGroup[1]):(o.beginTime="",o.endTime=""),a()},a=()=>{let{current:o,pageSize:l}=t.page,u=t.params;fn("/manage/film/search/list",{...u,current:o,pageSize:l}).then(c=>{c.code===0?(t.list=c.data.list?c.data.list.map(f=>(f.year=f.year<=0?"未知":f.year,f.score=f.score==0?"暂无":f.score,f)):[],t.page=c.data.params.paging,t.options.class=c.data.options.class,t.options.remarks=c.data.options.remarks,t.options.year=c.data.options.year,n=c.data.options.tags):St.error({message:c.msg})})};return vt(()=>{a()}),(o,l)=>{const u=Fn,c=ao,f=Ga,h=ei,p=kP,g=bn,m=io,y=Cf,v=aa,_=Sf,w=Tf;return C(),j("div",WCe,[R("div",qCe,[I(m,{model:t.params,class:"cus_form"},{default:N(()=>[I(c,null,{default:N(()=>[I(u,{modelValue:t.params.name,"onUpdate:modelValue":l[0]||(l[0]=T=>t.params.name=T),style:{display:"inline-block","text-align":"left"},placeholder:"片名搜素","suffix-icon":d(Id)},null,8,["modelValue","suffix-icon"])]),_:1}),I(c,null,{default:N(()=>[I(h,{modelValue:t.classId,"onUpdate:modelValue":l[1]||(l[1]=T=>t.classId=T),onChange:s,placeholder:"影片分类"},{default:N(()=>[(C(!0),j(Ke,null,bt(t.options.class,T=>(C(),he(f,{key:T.id,label:T.name,value:T.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),I(c,null,{default:N(()=>[I(h,{modelValue:t.params.plot,"onUpdate:modelValue":l[2]||(l[2]=T=>t.params.plot=T),placeholder:"剧情筛选"},{default:N(()=>[(C(!0),j(Ke,null,bt(t.options.Plot,T=>(C(),he(f,{key:T.Value,label:T.Name,value:T.Value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),I(c,null,{default:N(()=>[I(h,{modelValue:t.params.area,"onUpdate:modelValue":l[3]||(l[3]=T=>t.params.area=T),placeholder:"地区筛选"},{default:N(()=>[(C(!0),j(Ke,null,bt(t.options.Area,T=>(C(),he(f,{key:T.Value,label:T.Name,value:T.Value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),I(c,null,{default:N(()=>[I(h,{modelValue:t.params.language,"onUpdate:modelValue":l[4]||(l[4]=T=>t.params.language=T),placeholder:"语言筛选"},{default:N(()=>[(C(!0),j(Ke,null,bt(t.options.Language,T=>(C(),he(f,{key:T.Value,label:T.Name,value:T.Value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),I(c,null,{default:N(()=>[I(h,{modelValue:t.params.year,"onUpdate:modelValue":l[5]||(l[5]=T=>t.params.year=T),placeholder:"上映年份"},{default:N(()=>[(C(!0),j(Ke,null,bt(t.options.year,T=>(C(),he(f,{key:T.Value,label:T.Name,value:T.Value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),I(c,null,{default:N(()=>[I(h,{modelValue:t.params.remarks,"onUpdate:modelValue":l[6]||(l[6]=T=>t.params.remarks=T),placeholder:"更新状态"},{default:N(()=>[(C(!0),j(Ke,null,bt(t.options.remarks,T=>(C(),he(f,{key:T.Value,label:T.Name,value:T.Value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),I(c,null,{default:N(()=>[I(p,{modelValue:t.dateGroup,"onUpdate:modelValue":l[7]||(l[7]=T=>t.dateGroup=T),"value-format":"YYYY-MM-DD HH:mm:ss",type:"datetimerange","start-placeholder":"起始时间","end-placeholder":"终止时间"},null,8,["modelValue"])]),_:1}),I(c,null,{default:N(()=>[I(g,{type:"primary",onClick:i},{default:N(()=>[Fe("查询")]),_:1})]),_:1})]),_:1},8,["model"])]),R("div",GCe,[I(_,{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:N(()=>[I(y,{type:"index","min-width":"50px",align:"left",label:"序号"},{default:N(T=>[R("span",YCe,ve(r(T.$index)),1)]),_:1}),I(y,{prop:"mid",align:"center",label:"影片ID"},{default:N(T=>[I(v,{type:"success","disable-transitions":""},{default:N(()=>[Fe(ve(T.row.mid),1)]),_:2},1024)]),_:1}),I(y,{prop:"name",align:"left",label:"影片名称","show-overflow-tooltip":"","class-name":"col_name"}),I(y,{prop:"cName",align:"center",label:"所属分类"},{default:N(T=>[I(v,{type:"warning","disable-transitions":""},{default:N(()=>[Fe(ve(T.row.cName),1)]),_:2},1024)]),_:1}),I(y,{prop:"year",align:"center",label:"年份"},{default:N(T=>[I(v,{type:"warning","disable-transitions":""},{default:N(()=>[Fe(ve(T.row.year),1)]),_:2},1024)]),_:1}),I(y,{sortable:"",prop:"score",align:"center",label:"评分"},{default:N(T=>[I(v,{type:"success","disable-transitions":""},{default:N(()=>[Fe(ve(T.row.score),1)]),_:2},1024)]),_:1}),I(y,{sortable:"",prop:"hits",align:"center",label:"热度"},{default:N(T=>[I(v,{type:"danger","disable-transitions":""},{default:N(()=>[Fe("🔥"+ve(T.row.hits),1)]),_:2},1024)]),_:1}),I(y,{prop:"remarks",align:"center",label:"更新状态"},{default:N(T=>[I(v,{type:T.row.remarks=="已完结"?"success":"","disable-transitions":""},{default:N(()=>[Fe(ve(T.row.remarks),1)]),_:2},1032,["type"])]),_:1}),I(y,{sortable:"",prop:"updateStamp",align:"center",label:"更新时间"},{default:N(T=>[I(v,{type:"success","disable-transitions":""},{default:N(()=>[Fe(ve(d(KCe).dateFormat(T.row.updateStamp)),1)]),_:2},1024)]),_:1}),I(y,{label:"操作",align:"center"},{default:N(T=>[I(g,{type:"success",icon:d(oz),onClick:l[8]||(l[8]=()=>{}),plain:"",circle:""},null,8,["icon"]),I(g,{type:"primary",icon:d(Qm),onClick:l[9]||(l[9]=()=>{}),plain:"",circle:""},null,8,["icon"]),I(g,{type:"danger",icon:d(Ku),onClick:l[10]||(l[10]=()=>{}),plain:"",circle:""},null,8,["icon"])]),_:1})]),_:1},8,["data"]),R("div",XCe,[I(w,{"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":l[11]||(l[11]=T=>t.page.pageSize=T),"current-page":t.page.current,"onUpdate:currentPage":l[12]||(l[12]=T=>t.page.current=T),onChange:a,"hide-on-single-page":""},null,8,["total","page-size","current-page"])])])])}}}),JCe=_n(QCe,[["__scopeId","data-v-89a9fbec"]]),ZCe=Z({__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 vt(()=>{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}),Oe([n],()=>{!n.show&&t.remove()}),(s,r)=>{const i=v1;return n.show?(C(),he(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"])):le("",!0)}}}),eEe=e=>{e.show=!0;const t=document.createElement("div");document.body.appendChild(t);const n=Hm(ZCe,{options:e,remove(){n.unmount(),document.body.removeChild(t)}});return n.mount(t)},tEe={class:"container"},nEe={class:"content"},sEe={class:"el-upload-list__item-actions"},rEe=["onClick"],iEe=["onClick"],aEe={class:"pagination"},oEe=Z({__name:"FileUpload",setup(e){const t=Ct({photoWall:[],page:{current:1,pageSize:39,pageNumber:0,total:0},imgList:[""]}),n=a=>{console.log(a),console.log(a.file);let o=a.file,l=new FormData;l.append("file",o),ds("/manage/file/upload",l).then(u=>{u.code===0?(St.success({message:u.msg}),s()):St.error({message:u.msg})})},s=()=>{fn("/manage/file/list",{current:t.page.current}).then(a=>{a.code===0?(t.photoWall=a.data.list,t.page=a.data.page):St.error({message:a.msg})})};vt(()=>{s()});const r=a=>{fn("/manage/file/del",{id:a.ID}).then(o=>{o.code===0?(s(),St.success({message:o.msg})):St.error({message:o.msg})})},i=a=>{let o=t.photoWall.map(l=>l.link);eEe({list:o,currentLink:a.link})};return(a,o)=>{const l=qP,u=tt,c=U1,f=Tf;return C(),j("div",tEe,[R("div",nEe,[I(c,{"file-list":t.photoWall,"onUpdate:fileList":o[0]||(o[0]=h=>t.photoWall=h),action:"#","list-type":"picture-card","on-remove":a.handleRemove,"http-request":n},{file:N(({file:h})=>[I(l,{class:"el-upload-list__item-thumbnail",style:{width:"100%",height:"100%"},src:h.link,fit:"cover"},null,8,["src"]),R("span",sEe,[R("span",{class:"el-upload-list__item-preview",onClick:p=>i(h)},[I(u,null,{default:N(()=>[I(d(A_))]),_:1})],8,rEe),le("",!0),R("span",{class:"el-upload-list__item-delete",onClick:p=>r(h)},[I(u,null,{default:N(()=>[I(d(Ku))]),_:1})],8,iEe)])]),default:N(()=>[I(u,null,{default:N(()=>[I(d(I_))]),_:1})]),_:1},8,["file-list","on-remove"]),R("div",aEe,[I(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"])])])])}}}),lEe=_n(oEe,[["__scopeId","data-v-49adce24"]]),Xg=e=>(sr("data-v-10354ec4"),e=e(),rr(),e),uEe={class:"container"},cEe=Xg(()=>R("h2",{style:{"text-align":"start"}},"添加影片",-1)),dEe=Xg(()=>R("div",{class:"el-input-group__prepend",style:{border:"1px solid #dcdfe6","border-right":"none","border-radius":"3px",height:"32px"}},"影片分类: ",-1)),fEe=Xg(()=>R("span",{class:"el-input-group__prepend cus_label"},"剧情简介: ",-1)),hEe=Xg(()=>R("span",{class:"el-input-group__prepend cus_label"},"播放地址: ",-1)),pEe=Z({__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=>{console.log(a),console.log(a.file);let o=a.file,l=new FormData;l.append("file",o),ds("/manage/file/upload",l).then(u=>{u.code===0?(St.success({message:u.msg}),n.form.picture=u.data):St.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,ds("/manage/film/add",{...n.form}).then(o=>{o.code===0?(St.success({message:o.msg}),n.form=t):St.error({message:o.msg})})};return vt(()=>{fn("/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 St.error({message:a.msg})})}),(a,o)=>{const l=Ga,u=ei,c=ao,f=Fn,h=bn,p=U1,g=io;return C(),j("div",uEe,[cEe,I(g,{model:n.form,class:"film_add_form"},{default:N(()=>[I(c,null,{default:N(()=>[dEe,I(u,{modelValue:n.currentClass,"onUpdate:modelValue":o[0]||(o[0]=m=>n.currentClass=m),style:{width:"calc(100% - 103px)"},onChange:r,placeholder:"影片分类选择"},{default:N(()=>[(C(!0),j(Ke,null,bt(n.options.category,m=>(C(),he(l,{key:m.id,label:m.name,value:m.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),I(c,null,{default:N(()=>[I(f,{modelValue:n.form.name,"onUpdate:modelValue":o[1]||(o[1]=m=>n.form.name=m),placeholder:"请输入影片名称",clearable:""},{prepend:N(()=>[Fe("影片名称: ")]),_:1},8,["modelValue"])]),_:1}),I(c,null,{default:N(()=>[I(f,{modelValue:n.form.subTitle,"onUpdate:modelValue":o[2]||(o[2]=m=>n.form.subTitle=m),placeholder:"影片别名, 可留空",clearable:""},{prepend:N(()=>[Fe("影片别名: ")]),_:1},8,["modelValue"])]),_:1}),I(c,null,{default:N(()=>[I(f,{modelValue:n.form.initial,"onUpdate:modelValue":o[3]||(o[3]=m=>n.form.initial=m),placeholder:"影片检索首字母, 大写",clearable:""},{prepend:N(()=>[Fe("首字母: ")]),_:1},8,["modelValue"])]),_:1}),I(c,null,{default:N(()=>[I(f,{modelValue:n.form.classTag,"onUpdate:modelValue":o[4]||(o[4]=m=>n.form.classTag=m),placeholder:"影片剧情标签(多标签以逗号分隔): 奇幻,校园,爱情",clearable:""},{prepend:N(()=>[Fe("剧情Tag: ")]),_:1},8,["modelValue"])]),_:1}),I(c,null,{default:N(()=>[I(f,{modelValue:n.form.director,"onUpdate:modelValue":o[5]||(o[5]=m=>n.form.director=m),placeholder:"导演名, 多个名称以逗号进行分隔",clearable:""},{prepend:N(()=>[Fe("导演: ")]),_:1},8,["modelValue"])]),_:1}),I(c,null,{default:N(()=>[I(f,{modelValue:n.form.actor,"onUpdate:modelValue":o[6]||(o[6]=m=>n.form.actor=m),placeholder:"主演名, 多个名称以逗号进行分隔",clearable:""},{prepend:N(()=>[Fe("主演: ")]),_:1},8,["modelValue"])]),_:1}),I(c,null,{default:N(()=>[I(f,{modelValue:n.form.writer,"onUpdate:modelValue":o[7]||(o[7]=m=>n.form.writer=m),placeholder:"作者名, 多个名称以逗号进行分隔",clearable:""},{prepend:N(()=>[Fe("作者: ")]),_:1},8,["modelValue"])]),_:1}),I(c,null,{default:N(()=>[I(f,{modelValue:n.form.remarks,"onUpdate:modelValue":o[8]||(o[8]=m=>n.form.remarks=m),placeholder:"影片更新进度信息, 完结, HD, 更新至xx集",clearable:""},{prepend:N(()=>[Fe("更新状态: ")]),_:1},8,["modelValue"])]),_:1}),I(c,null,{default:N(()=>[I(f,{modelValue:n.form.releaseDate,"onUpdate:modelValue":o[9]||(o[9]=m=>n.form.releaseDate=m),placeholder:"影片上映时间: YYYY-MM-DD",clearable:""},{prepend:N(()=>[Fe("上映时间: ")]),_:1},8,["modelValue"])]),_:1}),I(c,null,{default:N(()=>[I(f,{modelValue:n.form.area,"onUpdate:modelValue":o[10]||(o[10]=m=>n.form.area=m),placeholder:"影片来源地区信息",clearable:""},{prepend:N(()=>[Fe("地区: ")]),_:1},8,["modelValue"])]),_:1}),I(c,null,{default:N(()=>[I(f,{modelValue:n.form.lang,"onUpdate:modelValue":o[11]||(o[11]=m=>n.form.lang=m),placeholder:"影片语言信息",clearable:""},{prepend:N(()=>[Fe("语言: ")]),_:1},8,["modelValue"])]),_:1}),I(c,null,{default:N(()=>[I(f,{modelValue:n.form.year,"onUpdate:modelValue":o[12]||(o[12]=m=>n.form.year=m),placeholder:"影片上映年份信息: YYYY",clearable:""},{prepend:N(()=>[Fe("年份: ")]),_:1},8,["modelValue"])]),_:1}),I(c,null,{default:N(()=>[I(f,{modelValue:n.form.state,"onUpdate:modelValue":o[13]||(o[13]=m=>n.form.state=m),placeholder:" 影片状态: 正片 | 预告片",clearable:""},{prepend:N(()=>[Fe("影片状态: ")]),_:1},8,["modelValue"])]),_:1}),I(c,null,{default:N(()=>[I(f,{modelValue:n.form.dbId,"onUpdate:modelValue":o[14]||(o[14]=m=>n.form.dbId=m),placeholder:"豆瓣ID",clearable:""},{prepend:N(()=>[Fe("豆瓣Id: ")]),_:1},8,["modelValue"])]),_:1}),I(c,null,{default:N(()=>[I(f,{modelValue:n.form.dbScore,"onUpdate:modelValue":o[15]||(o[15]=m=>n.form.dbScore=m),placeholder:"豆瓣评分",clearable:""},{prepend:N(()=>[Fe("豆瓣评分: ")]),_:1},8,["modelValue"])]),_:1}),I(c,null,{default:N(()=>[I(f,{modelValue:n.form.hits,"onUpdate:modelValue":o[16]||(o[16]=m=>n.form.hits=m),placeholder:"影片热度(播放数)",clearable:""},{prepend:N(()=>[Fe("影片热度: ")]),_:1},8,["modelValue"])]),_:1}),I(c,null,{default:N(()=>[I(f,{modelValue:n.form.picture,"onUpdate:modelValue":o[17]||(o[17]=m=>n.form.picture=m),placeholder:"输入图片URL链接或点击上传到服务器并自动生成URL连接信息)",clearable:""},{prepend:N(()=>[Fe("影片海报: ")]),append:N(()=>[I(p,{class:"upload-demo","show-file-list":!1,action:"#","http-request":s},{default:N(()=>[I(h,{type:"primary"},{default:N(()=>[Fe("上传图片")]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1}),I(c,null,{default:N(()=>[I(f,{modelValue:n.form.playForm,"onUpdate:modelValue":o[18]||(o[18]=m=>n.form.playForm=m),placeholder:"影片播放资源来源: xxXm3u8",clearable:""},{prepend:N(()=>[Fe("播放来源: ")]),_:1},8,["modelValue"])]),_:1}),I(c,null,{label:N(()=>[fEe]),default:N(()=>[I(f,{modelValue:n.form.content,"onUpdate:modelValue":o[19]||(o[19]=m=>n.form.content=m),autosize:{minRows:2,maxRows:5},type:"textarea",placeholder:"影片剧情描述信息"},null,8,["modelValue"])]),_:1}),I(c,{label:"播放地址:"},{label:N(()=>[hEe]),default:N(()=>[I(f,{modelValue:n.form.playLink,"onUpdate:modelValue":o[20]||(o[20]=m=>n.form.playLink=m),autosize:{minRows:2,maxRows:5},type:"textarea",placeholder:`影片播放地址信息:
|
||
格式: 第01集$https://xxx/xxx/index.m3u8#第02集$https://xxx/xxx/index.m3u8`},null,8,["modelValue"])]),_:1}),I(c,{class:"form_btn"},{default:N(()=>[I(h,{type:"primary",onClick:i},{default:N(()=>[Fe("添加影片")]),_:1}),I(h,null,{default:N(()=>[Fe("清空信息")]),_:1})]),_:1})]),_:1},8,["model"])])}}}),mEe=_n(pEe,[["__scopeId","data-v-10354ec4"]]),gEe={class:"container"},vEe={class:"player_header"},yEe={class:"player_link"},bEe=["onKeyup"],_Ee={class:"player_area"},TEe=Z({__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)){St.error({message:"视频链接格式异常, 请输入正确的播放链接!!!"});return}t.options.src=t.link,document.getElementsByTagName("video")[0].play()};return(o,l)=>(C(),j("div",gEe,[R("div",vEe,[R("div",yEe,[pt(R("input",{type:"text","onUpdate:modelValue":l[0]||(l[0]=u=>t.link=u),onKeyup:jt(a,["enter"]),placeholder:"请输入视频播放地址, mp4 或 m3u8 格式",class:"cus-input"},null,40,bEe),[[sa,t.link]]),R("button",{class:"iconfont icon-play",onClick:a})])]),R("div",_Ee,[I(d(rD),{onMounted:i,src:t.options.src,poster:d(ZN),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","playback-rates"])])]))}}),wEe=_n(TEe,[["__scopeId","data-v-ec46972d"]]),SEe=[{path:"/",component:Mme,redirect:"/index",children:[{path:"index",component:age},{path:"filmDetail",component:Qge},{path:"play",component:Swe},{path:"search",component:Vwe},{path:"filmClassify",component:PSe},{path:"filmClassifySearch",component:lSe},{path:"/custom/player",component:wEe}]},{path:"/login",component:GSe},{path:"/manage",component:gCe,redirect:"/manage/index",children:[{path:"index",component:DSe},{path:"collect/index",component:SCe},{path:"system/webSite",component:OCe},{path:"cron/index",component:RCe},{path:"file/upload",component:lEe},{path:"file/gallery",component:dk},{path:"film",component:JCe},{path:"film/class",component:jCe},{path:"film/add",component:mEe},{path:"film/detail",component:dk}]},{path:"/:pathMatch(.*)*",component:Gwe}],rw=$he({history:Gfe(),routes:SEe});rw.beforeEach((e,t,n)=>{let s=new RegExp(/^\/manage\//).test(e.path),r=XN();s&&!r?n("/login"):n()});const iw=Hm(Afe);iw.use(Sfe);iw.use(rw);iw.mount("#app")});export default CEe();
|