var H8e=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Hqt=H8e((mf,Gl)=>{(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const a of o)if(a.type==="childList")for(const s of a.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const a={};return o.integrity&&(a.integrity=o.integrity),o.referrerPolicy&&(a.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?a.credentials="include":o.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(o){if(o.ep)return;o.ep=!0;const a=n(o);fetch(o.href,a)}})();/** * @vue/shared v3.5.22 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/function Ca(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Ti={},im=[],ka=()=>{},Xv=()=>!1,O0=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),t5=e=>e.startsWith("onUpdate:"),Ci=Object.assign,n5=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},W8e=Object.prototype.hasOwnProperty,qi=(e,t)=>W8e.call(e,t),qn=Array.isArray,om=e=>Gm(e)==="[object Map]",$0=e=>Gm(e)==="[object Set]",xj=e=>Gm(e)==="[object Date]",kde=e=>Gm(e)==="[object RegExp]",Ir=e=>typeof e=="function",Or=e=>typeof e=="string",Jl=e=>typeof e=="symbol",Zi=e=>e!==null&&typeof e=="object",r5=e=>(Zi(e)||Ir(e))&&Ir(e.then)&&Ir(e.catch),SU=Object.prototype.toString,Gm=e=>SU.call(e),xde=e=>Gm(e).slice(8,-1),F_=e=>Gm(e)==="[object Object]",i5=e=>Or(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Lh=Ca(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Cde=Ca("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),o5=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},G8e=/-\w/g,$o=o5(e=>e.replace(G8e,t=>t.slice(1).toUpperCase())),K8e=/\B([A-Z])/g,_l=o5(e=>e.replace(K8e,"-$1").toLowerCase()),B0=o5(e=>e.charAt(0).toUpperCase()+e.slice(1)),sm=o5(e=>e?`on${B0(e)}`:""),yl=(e,t)=>!Object.is(e,t),am=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Vb=e=>{const t=parseFloat(e);return isNaN(t)?e:t},zb=e=>{const t=Or(e)?Number(e):NaN;return isNaN(t)?e:t};let Ote;const j_=()=>Ote||(Ote=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),q8e=/^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/;function Y8e(e){return q8e.test(e)?`__props.${e}`:`__props[${JSON.stringify(e)}]`}function X8e(e,t){return e+JSON.stringify(t,(n,r)=>typeof r=="function"?r.toString():r)}const Z8e={TEXT:1,1:"TEXT",CLASS:2,2:"CLASS",STYLE:4,4:"STYLE",PROPS:8,8:"PROPS",FULL_PROPS:16,16:"FULL_PROPS",NEED_HYDRATION:32,32:"NEED_HYDRATION",STABLE_FRAGMENT:64,64:"STABLE_FRAGMENT",KEYED_FRAGMENT:128,128:"KEYED_FRAGMENT",UNKEYED_FRAGMENT:256,256:"UNKEYED_FRAGMENT",NEED_PATCH:512,512:"NEED_PATCH",DYNAMIC_SLOTS:1024,1024:"DYNAMIC_SLOTS",DEV_ROOT_FRAGMENT:2048,2048:"DEV_ROOT_FRAGMENT",CACHED:-1,"-1":"CACHED",BAIL:-2,"-2":"BAIL"},J8e={1:"TEXT",2:"CLASS",4:"STYLE",8:"PROPS",16:"FULL_PROPS",32:"NEED_HYDRATION",64:"STABLE_FRAGMENT",128:"KEYED_FRAGMENT",256:"UNKEYED_FRAGMENT",512:"NEED_PATCH",1024:"DYNAMIC_SLOTS",2048:"DEV_ROOT_FRAGMENT",[-1]:"CACHED",[-2]:"BAIL"},Q8e={ELEMENT:1,1:"ELEMENT",FUNCTIONAL_COMPONENT:2,2:"FUNCTIONAL_COMPONENT",STATEFUL_COMPONENT:4,4:"STATEFUL_COMPONENT",TEXT_CHILDREN:8,8:"TEXT_CHILDREN",ARRAY_CHILDREN:16,16:"ARRAY_CHILDREN",SLOTS_CHILDREN:32,32:"SLOTS_CHILDREN",TELEPORT:64,64:"TELEPORT",SUSPENSE:128,128:"SUSPENSE",COMPONENT_SHOULD_KEEP_ALIVE:256,256:"COMPONENT_SHOULD_KEEP_ALIVE",COMPONENT_KEPT_ALIVE:512,512:"COMPONENT_KEPT_ALIVE",COMPONENT:6,6:"COMPONENT"},eTe={STABLE:1,1:"STABLE",DYNAMIC:2,2:"DYNAMIC",FORWARDED:3,3:"FORWARDED"},tTe={1:"STABLE",2:"DYNAMIC",3:"FORWARDED"},nTe="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol",xU=Ca(nTe),rTe=xU,$te=2;function wde(e,t=0,n=e.length){if(t=Math.max(0,Math.min(t,e.length)),n=Math.max(0,Math.min(n,e.length)),t>n)return"";let r=e.split(/(\r?\n)/);const o=r.filter((l,c)=>c%2===1);r=r.filter((l,c)=>c%2===0);let a=0;const s=[];for(let l=0;l=t){for(let c=l-$te;c<=l+$te||n>a;c++){if(c<0||c>=r.length)continue;const d=c+1;s.push(`${d}${" ".repeat(Math.max(3-String(d).length,0))}| ${r[c]}`);const h=r[c].length,p=o[c]&&o[c].length||0;if(c===l){const v=t-(a-(h+p)),g=Math.max(1,n>a?h-v:n-t);s.push(" | "+" ".repeat(v)+"^".repeat(g))}else if(c>l){if(n>a){const v=Math.max(Math.min(n-a,h),1);s.push(" | "+"^".repeat(v))}a+=h+p}}break}return s.join(` `)}function Ke(e){if(qn(e)){const t={};for(let n=0;n{if(n){const r=n.split(oTe);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function aTe(e){if(!e)return"";if(Or(e))return e;let t="";for(const n in e){const r=e[n];if(Or(r)||typeof r=="number"){const o=n.startsWith("--")?n:_l(n);t+=`${o}:${r};`}}return t}function ue(e){let t="";if(Or(e))t=e;else if(qn(e))for(let n=0;n/="'\u0009\u000a\u000c\u0020]/,iP={};function pTe(e){if(iP.hasOwnProperty(e))return iP[e];const t=hTe.test(e);return t&&console.error(`unsafe attribute name: ${e}`),iP[e]=!t}const vTe={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},mTe=Ca("accept,accept-charset,accesskey,action,align,allow,alt,async,autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,border,buffered,capture,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,formaction,formenctype,formmethod,formnovalidate,formtarget,headers,height,hidden,high,href,hreflang,http-equiv,icon,id,importance,inert,integrity,ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,translate,type,usemap,value,width,wrap"),gTe=Ca("xmlns,accent-height,accumulate,additive,alignment-baseline,alphabetic,amplitude,arabic-form,ascent,attributeName,attributeType,azimuth,baseFrequency,baseline-shift,baseProfile,bbox,begin,bias,by,calcMode,cap-height,class,clip,clipPathUnits,clip-path,clip-rule,color,color-interpolation,color-interpolation-filters,color-profile,color-rendering,contentScriptType,contentStyleType,crossorigin,cursor,cx,cy,d,decelerate,descent,diffuseConstant,direction,display,divisor,dominant-baseline,dur,dx,dy,edgeMode,elevation,enable-background,end,exponent,fill,fill-opacity,fill-rule,filter,filterRes,filterUnits,flood-color,flood-opacity,font-family,font-size,font-size-adjust,font-stretch,font-style,font-variant,font-weight,format,from,fr,fx,fy,g1,g2,glyph-name,glyph-orientation-horizontal,glyph-orientation-vertical,glyphRef,gradientTransform,gradientUnits,hanging,height,href,hreflang,horiz-adv-x,horiz-origin-x,id,ideographic,image-rendering,in,in2,intercept,k,k1,k2,k3,k4,kernelMatrix,kernelUnitLength,kerning,keyPoints,keySplines,keyTimes,lang,lengthAdjust,letter-spacing,lighting-color,limitingConeAngle,local,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mask,maskContentUnits,maskUnits,mathematical,max,media,method,min,mode,name,numOctaves,offset,opacity,operator,order,orient,orientation,origin,overflow,overline-position,overline-thickness,panose-1,paint-order,path,pathLength,patternContentUnits,patternTransform,patternUnits,ping,pointer-events,points,pointsAtX,pointsAtY,pointsAtZ,preserveAlpha,preserveAspectRatio,primitiveUnits,r,radius,referrerPolicy,refX,refY,rel,rendering-intent,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,result,rotate,rx,ry,scale,seed,shape-rendering,slope,spacing,specularConstant,specularExponent,speed,spreadMethod,startOffset,stdDeviation,stemh,stemv,stitchTiles,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,string,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,style,surfaceScale,systemLanguage,tabindex,tableValues,target,targetX,targetY,text-anchor,text-decoration,text-rendering,textLength,to,transform,transform-origin,type,u1,u2,underline-position,underline-thickness,unicode,unicode-bidi,unicode-range,units-per-em,v-alphabetic,v-hanging,v-ideographic,v-mathematical,values,vector-effect,version,vert-adv-y,vert-origin-x,vert-origin-y,viewBox,viewTarget,visibility,width,widths,word-spacing,writing-mode,x,x-height,x1,x2,xChannelSelector,xlink:actuate,xlink:arcrole,xlink:href,xlink:role,xlink:show,xlink:title,xlink:type,xmlns:xlink,xml:base,xml:lang,xml:space,y,y1,y2,yChannelSelector,z,zoomAndPan"),yTe=Ca("accent,accentunder,actiontype,align,alignmentscope,altimg,altimg-height,altimg-valign,altimg-width,alttext,bevelled,close,columnsalign,columnlines,columnspan,denomalign,depth,dir,display,displaystyle,encoding,equalcolumns,equalrows,fence,fontstyle,fontweight,form,frame,framespacing,groupalign,height,href,id,indentalign,indentalignfirst,indentalignlast,indentshift,indentshiftfirst,indentshiftlast,indextype,justify,largetop,largeop,lquote,lspace,mathbackground,mathcolor,mathsize,mathvariant,maxsize,minlabelspacing,mode,other,overflow,position,rowalign,rowlines,rowspan,rquote,rspace,scriptlevel,scriptminsize,scriptsizemultiplier,selection,separator,separators,shift,side,src,stackalign,stretchy,subscriptshift,superscriptshift,symmetric,voffset,width,widths,xlink:href,xlink:show,xlink:type,xmlns");function bTe(e){if(e==null)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"}const _Te=/["'&<>]/;function STe(e){const t=""+e,n=_Te.exec(t);if(!n)return t;let r="",o,a,s=0;for(a=n.index;a||--!>|?@[\\\]^`{|}~]/g;function CTe(e,t){return e.replace(Pde,n=>t?n==='"'?'\\\\\\"':`\\\\${n}`:`\\${n}`)}function wTe(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&rFh(n,t))}const Rde=e=>!!(e&&e.__v_isRef===!0),ze=e=>Or(e)?e:e==null?"":qn(e)||Zi(e)&&(e.toString===SU||!Ir(e.toString))?Rde(e)?ze(e.value):JSON.stringify(e,Mde,2):String(e),Mde=(e,t)=>Rde(t)?Mde(e,t.value):om(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,o],a)=>(n[oP(r,a)+" =>"]=o,n),{})}:$0(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>oP(n))}:Jl(t)?oP(t):Zi(t)&&!qn(t)&&!F_(t)?String(t):t,oP=(e,t="")=>{var n;return Jl(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};function Ode(e){return e==null?"initial":typeof e=="string"?e===""?" ":e:String(e)}const ETe=Object.freeze(Object.defineProperty({__proto__:null,EMPTY_ARR:im,EMPTY_OBJ:Ti,NO:Xv,NOOP:ka,PatchFlagNames:J8e,PatchFlags:Z8e,ShapeFlags:Q8e,SlotFlags:eTe,camelize:$o,capitalize:B0,cssVarNameEscapeSymbolsRE:Pde,def:kU,escapeHtml:STe,escapeHtmlComment:xTe,extend:Ci,genCacheKey:X8e,genPropsAccessExp:Y8e,generateCodeFrame:wde,getEscapedCssVarName:CTe,getGlobalThis:j_,hasChanged:yl,hasOwn:qi,hyphenate:_l,includeBooleanAttr:wU,invokeArrayFns:am,isArray:qn,isBooleanAttr:fTe,isBuiltInDirective:Cde,isDate:xj,isFunction:Ir,isGloballyAllowed:xU,isGloballyWhitelisted:rTe,isHTMLTag:Ede,isIntegerKey:i5,isKnownHtmlAttr:mTe,isKnownMathMLAttr:yTe,isKnownSvgAttr:gTe,isMap:om,isMathMLTag:Ade,isModelListener:t5,isObject:Zi,isOn:O0,isPlainObject:F_,isPromise:r5,isRegExp:kde,isRenderableAttrValue:bTe,isReservedProp:Lh,isSSRSafeAttrName:pTe,isSVGTag:Tde,isSet:$0,isSpecialBooleanAttr:Dde,isString:Or,isSymbol:Jl,isVoidTag:Ide,looseEqual:Fh,looseIndexOf:V_,looseToNumber:Vb,makeMap:Ca,normalizeClass:ue,normalizeCssVarValue:Ode,normalizeProps:Yi,normalizeStyle:Ke,objectToString:SU,parseStringStyle:CU,propsToAttrMap:vTe,remove:n5,slotFlagsText:tTe,stringifyStyle:aTe,toDisplayString:ze,toHandlerKey:sm,toNumber:zb,toRawType:xde,toTypeString:Gm},Symbol.toStringTag,{value:"Module"}));/** * @vue/reactivity v3.5.22 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let hl;class EU{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=hl,!t&&hl&&(this.index=(hl.scopes||(hl.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t0&&--this._on===0&&(hl=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n0)return;if(W4){let t=W4;for(W4=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;H4;){let t=H4;for(H4=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function Nde(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Fde(e){let t,n=e.depsTail,r=n;for(;r;){const o=r.prevDep;r.version===-1?(r===n&&(n=o),DU(r),TTe(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=o}e.deps=t,e.depsTail=n}function Cj(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(jde(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function jde(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Hb)||(e.globalVersion=Hb,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Cj(e))))return;e.flags|=2;const t=e.dep,n=Ro,r=Id;Ro=e,Id=!0;try{Nde(e);const o=e.fn(e._value);(t.version===0||yl(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{Ro=n,Id=r,Fde(e),e.flags&=-3}}function DU(e,t=!1){const{dep:n,prevSub:r,nextSub:o}=e;if(r&&(r.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let a=n.computed.deps;a;a=a.nextDep)DU(a,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function TTe(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}function ATe(e,t){e.effect instanceof Ub&&(e=e.effect.fn);const n=new Ub(e);t&&Ci(n,t);try{n.run()}catch(o){throw n.stop(),o}const r=n.run.bind(n);return r.effect=n,r}function ITe(e){e.effect.stop()}let Id=!0;const Vde=[];function jh(){Vde.push(Id),Id=!1}function Vh(){const e=Vde.pop();Id=e===void 0?!0:e}function Bte(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Ro;Ro=void 0;try{t()}finally{Ro=n}}}let Hb=0,LTe=class{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}};class a5{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!Ro||!Id||Ro===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Ro)n=this.activeLink=new LTe(Ro,this),Ro.deps?(n.prevDep=Ro.depsTail,Ro.depsTail.nextDep=n,Ro.depsTail=n):Ro.deps=Ro.depsTail=n,zde(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=Ro.depsTail,n.nextDep=void 0,Ro.depsTail.nextDep=n,Ro.depsTail=n,Ro.deps===n&&(Ro.deps=r)}return n}trigger(t){this.version++,Hb++,this.notify(t)}notify(t){IU();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{LU()}}}function zde(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)zde(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const _8=new WeakMap,lm=Symbol(""),wj=Symbol(""),Wb=Symbol("");function bl(e,t,n){if(Id&&Ro){let r=_8.get(e);r||_8.set(e,r=new Map);let o=r.get(n);o||(r.set(n,o=new a5),o.map=r,o.key=n),o.track()}}function bh(e,t,n,r,o,a){const s=_8.get(e);if(!s){Hb++;return}const l=c=>{c&&c.trigger()};if(IU(),t==="clear")s.forEach(l);else{const c=qn(e),d=c&&i5(n);if(c&&n==="length"){const h=Number(r);s.forEach((p,v)=>{(v==="length"||v===Wb||!Jl(v)&&v>=h)&&l(p)})}else switch((n!==void 0||s.has(void 0))&&l(s.get(n)),d&&l(s.get(Wb)),t){case"add":c?d&&l(s.get("length")):(l(s.get(lm)),om(e)&&l(s.get(wj)));break;case"delete":c||(l(s.get(lm)),om(e)&&l(s.get(wj)));break;case"set":om(e)&&l(s.get(lm));break}}LU()}function DTe(e,t){const n=_8.get(e);return n&&n.get(t)}function o1(e){const t=Bi(e);return t===e?t:(bl(t,"iterate",Wb),lc(e)?t:t.map(Fa))}function l5(e){return bl(e=Bi(e),"iterate",Wb),e}const PTe={__proto__:null,[Symbol.iterator](){return aP(this,Symbol.iterator,Fa)},concat(...e){return o1(this).concat(...e.map(t=>qn(t)?o1(t):t))},entries(){return aP(this,"entries",e=>(e[1]=Fa(e[1]),e))},every(e,t){return sh(this,"every",e,t,void 0,arguments)},filter(e,t){return sh(this,"filter",e,t,n=>n.map(Fa),arguments)},find(e,t){return sh(this,"find",e,t,Fa,arguments)},findIndex(e,t){return sh(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return sh(this,"findLast",e,t,Fa,arguments)},findLastIndex(e,t){return sh(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return sh(this,"forEach",e,t,void 0,arguments)},includes(...e){return lP(this,"includes",e)},indexOf(...e){return lP(this,"indexOf",e)},join(e){return o1(this).join(e)},lastIndexOf(...e){return lP(this,"lastIndexOf",e)},map(e,t){return sh(this,"map",e,t,void 0,arguments)},pop(){return U2(this,"pop")},push(...e){return U2(this,"push",e)},reduce(e,...t){return Nte(this,"reduce",e,t)},reduceRight(e,...t){return Nte(this,"reduceRight",e,t)},shift(){return U2(this,"shift")},some(e,t){return sh(this,"some",e,t,void 0,arguments)},splice(...e){return U2(this,"splice",e)},toReversed(){return o1(this).toReversed()},toSorted(e){return o1(this).toSorted(e)},toSpliced(...e){return o1(this).toSpliced(...e)},unshift(...e){return U2(this,"unshift",e)},values(){return aP(this,"values",Fa)}};function aP(e,t,n){const r=l5(e),o=r[t]();return r!==e&&!lc(e)&&(o._next=o.next,o.next=()=>{const a=o._next();return a.done||(a.value=n(a.value)),a}),o}const RTe=Array.prototype;function sh(e,t,n,r,o,a){const s=l5(e),l=s!==e&&!lc(e),c=s[t];if(c!==RTe[t]){const p=c.apply(e,a);return l?Fa(p):p}let d=n;s!==e&&(l?d=function(p,v){return n.call(this,Fa(p),v,e)}:n.length>2&&(d=function(p,v){return n.call(this,p,v,e)}));const h=c.call(s,d,r);return l&&o?o(h):h}function Nte(e,t,n,r){const o=l5(e);let a=n;return o!==e&&(lc(e)?n.length>3&&(a=function(s,l,c){return n.call(this,s,l,c,e)}):a=function(s,l,c){return n.call(this,s,Fa(l),c,e)}),o[t](a,...r)}function lP(e,t,n){const r=Bi(e);bl(r,"iterate",Wb);const o=r[t](...n);return(o===-1||o===!1)&&d5(n[0])?(n[0]=Bi(n[0]),r[t](...n)):o}function U2(e,t,n=[]){jh(),IU();const r=Bi(e)[t].apply(e,n);return LU(),Vh(),r}const MTe=Ca("__proto__,__v_isRef,__isVue"),Ude=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Jl));function OTe(e){Jl(e)||(e=String(e));const t=Bi(this);return bl(t,"has",e),t.hasOwnProperty(e)}class Hde{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const o=this._isReadonly,a=this._isShallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return a;if(n==="__v_raw")return r===(o?a?Xde:Yde:a?qde:Kde).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const s=qn(t);if(!o){let c;if(s&&(c=PTe[n]))return c;if(n==="hasOwnProperty")return OTe}const l=Reflect.get(t,n,Bo(t)?t:r);if((Jl(n)?Ude.has(n):MTe(n))||(o||bl(t,"get",n),a))return l;if(Bo(l)){const c=s&&i5(n)?l:l.value;return o&&Zi(c)?Gb(c):c}return Zi(l)?o?Gb(l):Xt(l):l}}class Wde extends Hde{constructor(t=!1){super(!1,t)}set(t,n,r,o){let a=t[n];if(!this._isShallow){const c=zh(a);if(!lc(r)&&!zh(r)&&(a=Bi(a),r=Bi(r)),!qn(t)&&Bo(a)&&!Bo(r))return c||(a.value=r),!0}const s=qn(t)&&i5(n)?Number(n)e,rx=e=>Reflect.getPrototypeOf(e);function jTe(e,t,n){return function(...r){const o=this.__v_raw,a=Bi(o),s=om(a),l=e==="entries"||e===Symbol.iterator&&s,c=e==="keys"&&s,d=o[e](...r),h=n?Ej:t?S8:Fa;return!t&&bl(a,"iterate",c?wj:lm),{next(){const{value:p,done:v}=d.next();return v?{value:p,done:v}:{value:l?[h(p[0]),h(p[1])]:h(p),done:v}},[Symbol.iterator](){return this}}}}function ix(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function VTe(e,t){const n={get(o){const a=this.__v_raw,s=Bi(a),l=Bi(o);e||(yl(o,l)&&bl(s,"get",o),bl(s,"get",l));const{has:c}=rx(s),d=t?Ej:e?S8:Fa;if(c.call(s,o))return d(a.get(o));if(c.call(s,l))return d(a.get(l));a!==s&&a.get(o)},get size(){const o=this.__v_raw;return!e&&bl(Bi(o),"iterate",lm),o.size},has(o){const a=this.__v_raw,s=Bi(a),l=Bi(o);return e||(yl(o,l)&&bl(s,"has",o),bl(s,"has",l)),o===l?a.has(o):a.has(o)||a.has(l)},forEach(o,a){const s=this,l=s.__v_raw,c=Bi(l),d=t?Ej:e?S8:Fa;return!e&&bl(c,"iterate",lm),l.forEach((h,p)=>o.call(a,d(h),d(p),s))}};return Ci(n,e?{add:ix("add"),set:ix("set"),delete:ix("delete"),clear:ix("clear")}:{add(o){!t&&!lc(o)&&!zh(o)&&(o=Bi(o));const a=Bi(this);return rx(a).has.call(a,o)||(a.add(o),bh(a,"add",o,o)),this},set(o,a){!t&&!lc(a)&&!zh(a)&&(a=Bi(a));const s=Bi(this),{has:l,get:c}=rx(s);let d=l.call(s,o);d||(o=Bi(o),d=l.call(s,o));const h=c.call(s,o);return s.set(o,a),d?yl(a,h)&&bh(s,"set",o,a):bh(s,"add",o,a),this},delete(o){const a=Bi(this),{has:s,get:l}=rx(a);let c=s.call(a,o);c||(o=Bi(o),c=s.call(a,o)),l&&l.call(a,o);const d=a.delete(o);return c&&bh(a,"delete",o,void 0),d},clear(){const o=Bi(this),a=o.size!==0,s=o.clear();return a&&bh(o,"clear",void 0,void 0),s}}),["keys","values","entries",Symbol.iterator].forEach(o=>{n[o]=jTe(o,e,t)}),n}function u5(e,t){const n=VTe(e,t);return(r,o,a)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?r:Reflect.get(qi(n,o)&&o in r?n:r,o,a)}const zTe={get:u5(!1,!1)},UTe={get:u5(!1,!0)},HTe={get:u5(!0,!1)},WTe={get:u5(!0,!0)},Kde=new WeakMap,qde=new WeakMap,Yde=new WeakMap,Xde=new WeakMap;function GTe(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function KTe(e){return e.__v_skip||!Object.isExtensible(e)?0:GTe(xde(e))}function Xt(e){return zh(e)?e:c5(e,!1,$Te,zTe,Kde)}function PU(e){return c5(e,!1,NTe,UTe,qde)}function Gb(e){return c5(e,!0,BTe,HTe,Yde)}function qTe(e){return c5(e,!0,FTe,WTe,Xde)}function c5(e,t,n,r,o){if(!Zi(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const a=KTe(e);if(a===0)return e;const s=o.get(e);if(s)return s;const l=new Proxy(e,a===2?r:n);return o.set(e,l),l}function gf(e){return zh(e)?gf(e.__v_raw):!!(e&&e.__v_isReactive)}function zh(e){return!!(e&&e.__v_isReadonly)}function lc(e){return!!(e&&e.__v_isShallow)}function d5(e){return e?!!e.__v_raw:!1}function Bi(e){const t=e&&e.__v_raw;return t?Bi(t):e}function f5(e){return!qi(e,"__v_skip")&&Object.isExtensible(e)&&kU(e,"__v_skip",!0),e}const Fa=e=>Zi(e)?Xt(e):e,S8=e=>Zi(e)?Gb(e):e;function Bo(e){return e?e.__v_isRef===!0:!1}function fe(e){return Zde(e,!1)}function d0(e){return Zde(e,!0)}function Zde(e,t){return Bo(e)?e:new YTe(e,t)}class YTe{constructor(t,n){this.dep=new a5,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Bi(t),this._value=n?t:Fa(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||lc(t)||zh(t);t=r?t:Bi(t),yl(t,n)&&(this._rawValue=t,this._value=r?t:Fa(t),this.dep.trigger())}}function XTe(e){e.dep&&e.dep.trigger()}function et(e){return Bo(e)?e.value:e}function ZTe(e){return Ir(e)?e():et(e)}const JTe={get:(e,t,n)=>t==="__v_raw"?e:et(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return Bo(o)&&!Bo(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function RU(e){return gf(e)?e:new Proxy(e,JTe)}class QTe{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new a5,{get:r,set:o}=t(n.track.bind(n),n.trigger.bind(n));this._get=r,this._set=o}get value(){return this._value=this._get()}set value(t){this._set(t)}}function Jde(e){return new QTe(e)}function nn(e){const t=qn(e)?new Array(e.length):{};for(const n in e)t[n]=Qde(e,n);return t}class e5e{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return DTe(Bi(this._object),this._key)}}class t5e{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Lu(e,t,n){return Bo(e)?e:Ir(e)?new t5e(e):Zi(e)&&arguments.length>1?Qde(e,t,n):fe(e)}function Qde(e,t,n){const r=e[t];return Bo(r)?r:new e5e(e,t,n)}class n5e{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new a5(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Hb-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&Ro!==this)return Bde(this,!0),!0}get value(){const t=this.dep.track();return jde(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function r5e(e,t,n=!1){let r,o;return Ir(e)?r=e:(r=e.get,o=e.set),new n5e(r,o,n)}const i5e={GET:"get",HAS:"has",ITERATE:"iterate"},o5e={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},ox={},k8=new WeakMap;let Gp;function s5e(){return Gp}function efe(e,t=!1,n=Gp){if(n){let r=k8.get(n);r||k8.set(n,r=[]),r.push(e)}}function a5e(e,t,n=Ti){const{immediate:r,deep:o,once:a,scheduler:s,augmentJob:l,call:c}=n,d=_=>o?_:lc(_)||o===!1||o===0?_h(_,1):_h(_);let h,p,v,g,y=!1,S=!1;if(Bo(e)?(p=()=>e.value,y=lc(e)):gf(e)?(p=()=>d(e),y=!0):qn(e)?(S=!0,y=e.some(_=>gf(_)||lc(_)),p=()=>e.map(_=>{if(Bo(_))return _.value;if(gf(_))return d(_);if(Ir(_))return c?c(_,2):_()})):Ir(e)?t?p=c?()=>c(e,2):e:p=()=>{if(v){jh();try{v()}finally{Vh()}}const _=Gp;Gp=h;try{return c?c(e,3,[g]):e(g)}finally{Gp=_}}:p=ka,t&&o){const _=p,T=o===!0?1/0:o;p=()=>_h(_(),T)}const k=s5(),C=()=>{h.stop(),k&&k.active&&n5(k.effects,h)};if(a&&t){const _=t;t=(...T)=>{_(...T),C()}}let x=S?new Array(e.length).fill(ox):ox;const E=_=>{if(!(!(h.flags&1)||!h.dirty&&!_))if(t){const T=h.run();if(o||y||(S?T.some((D,P)=>yl(D,x[P])):yl(T,x))){v&&v();const D=Gp;Gp=h;try{const P=[T,x===ox?void 0:S&&x[0]===ox?[]:x,g];x=T,c?c(t,3,P):t(...P)}finally{Gp=D}}}else h.run()};return l&&l(E),h=new Ub(p),h.scheduler=s?()=>s(E,!1):E,g=_=>efe(_,!1,h),v=h.onStop=()=>{const _=k8.get(h);if(_){if(c)c(_,4);else for(const T of _)T();k8.delete(h)}},t?r?E(!0):x=h.run():s?s(E.bind(null,!0),!0):h.run(),C.pause=h.pause.bind(h),C.resume=h.resume.bind(h),C.stop=C,C}function _h(e,t=1/0,n){if(t<=0||!Zi(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Bo(e))_h(e.value,t,n);else if(qn(e))for(let r=0;r{_h(r,t,n)});else if(F_(e)){for(const r in e)_h(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&_h(e[r],t,n)}return e}/** * @vue/runtime-core v3.5.22 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/const tfe=[];function l5e(e){tfe.push(e)}function u5e(){tfe.pop()}function c5e(e,t){}const d5e={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER",COMPONENT_UPDATE:15,15:"COMPONENT_UPDATE",APP_UNMOUNT_CLEANUP:16,16:"APP_UNMOUNT_CLEANUP"},f5e={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update",16:"app unmount cleanup function"};function t3(e,t,n,r){try{return r?e(...r):e()}catch(o){Km(o,t,n)}}function Yc(e,t,n,r){if(Ir(e)){const o=t3(e,t,n,r);return o&&r5(o)&&o.catch(a=>{Km(a,t,n)}),o}if(qn(e)){const o=[];for(let a=0;a>>1,o=Ul[r],a=qb(o);a=qb(n)?Ul.push(e):Ul.splice(p5e(t),0,e),e.flags|=1,rfe()}}function rfe(){x8||(x8=nfe.then(ife))}function Kb(e){qn(e)?ey.push(...e):Kp&&e.id===-1?Kp.splice(M1+1,0,e):e.flags&1||(ey.push(e),e.flags|=1),rfe()}function Fte(e,t,n=nf+1){for(;nqb(n)-qb(r));if(ey.length=0,Kp){Kp.push(...t);return}for(Kp=t,M1=0;M1e.id==null?e.flags&2?-1:1/0:e.id;function ife(e){try{for(nf=0;nfO1.emit(o,...a)),sx=[]):typeof window<"u"&&window.HTMLElement&&!((r=(n=window.navigator)==null?void 0:n.userAgent)!=null&&r.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(a=>{ofe(a,t)}),setTimeout(()=>{O1||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,sx=[])},3e3)):sx=[]}let Ha=null,h5=null;function Yb(e){const t=Ha;return Ha=e,h5=e&&e.type.__scopeId||null,t}function v5e(e){h5=e}function m5e(){h5=null}const g5e=e=>de;function de(e,t=Ha,n){if(!t||e._n)return e;const r=(...o)=>{r._d&&Jb(-1);const a=Yb(t);let s;try{s=e(...o)}finally{Yb(a),r._d&&Jb(1)}return s};return r._n=!0,r._c=!0,r._d=!0,r}function Ai(e,t){if(Ha===null)return e;const n=H_(Ha),r=e.dirs||(e.dirs=[]);for(let o=0;oe.__isTeleport,G4=e=>e&&(e.disabled||e.disabled===""),jte=e=>e&&(e.defer||e.defer===""),Vte=e=>typeof SVGElement<"u"&&e instanceof SVGElement,zte=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Tj=(e,t)=>{const n=e&&e.to;return Or(n)?t?t(n):null:n},lfe={name:"Teleport",__isTeleport:!0,process(e,t,n,r,o,a,s,l,c,d){const{mc:h,pc:p,pbc:v,o:{insert:g,querySelector:y,createText:S,createComment:k}}=d,C=G4(t.props);let{shapeFlag:x,children:E,dynamicChildren:_}=t;if(e==null){const T=t.el=S(""),D=t.anchor=S("");g(T,n,r),g(D,n,r);const P=($,L)=>{x&16&&h(E,$,L,o,a,s,l,c)},M=()=>{const $=t.target=Tj(t.props,y),L=ufe($,t,S,g);$&&(s!=="svg"&&Vte($)?s="svg":s!=="mathml"&&zte($)&&(s="mathml"),o&&o.isCE&&(o.ce._teleportTargets||(o.ce._teleportTargets=new Set)).add($),C||(P($,L),HC(t,!1)))};C&&(P(n,D),HC(t,!0)),jte(t.props)?(t.el.__isMounted=!1,la(()=>{M(),delete t.el.__isMounted},a)):M()}else{if(jte(t.props)&&e.el.__isMounted===!1){la(()=>{lfe.process(e,t,n,r,o,a,s,l,c,d)},a);return}t.el=e.el,t.targetStart=e.targetStart;const T=t.anchor=e.anchor,D=t.target=e.target,P=t.targetAnchor=e.targetAnchor,M=G4(e.props),$=M?n:D,L=M?T:P;if(s==="svg"||Vte(D)?s="svg":(s==="mathml"||zte(D))&&(s="mathml"),_?(v(e.dynamicChildren,_,$,o,a,s,l),KU(e,t,!0)):c||p(e,t,$,L,o,a,s,l,!1),C)M?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):ax(t,n,T,d,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const B=t.target=Tj(t.props,y);B&&ax(t,B,null,d,0)}else M&&ax(t,D,P,d,1);HC(t,C)}},remove(e,t,n,{um:r,o:{remove:o}},a){const{shapeFlag:s,children:l,anchor:c,targetStart:d,targetAnchor:h,target:p,props:v}=e;if(p&&(o(d),o(h)),a&&o(c),s&16){const g=a||!G4(v);for(let y=0;y{e.isMounted=!0}),Io(()=>{e.isUnmounting=!0}),e}const Cc=[Function,Array],$U={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Cc,onEnter:Cc,onAfterEnter:Cc,onEnterCancelled:Cc,onBeforeLeave:Cc,onLeave:Cc,onAfterLeave:Cc,onLeaveCancelled:Cc,onBeforeAppear:Cc,onAppear:Cc,onAfterAppear:Cc,onAppearCancelled:Cc},cfe=e=>{const t=e.subTree;return t.component?cfe(t.component):t},b5e={name:"BaseTransition",props:$U,setup(e,{slots:t}){const n=_o(),r=OU();return()=>{const o=t.default&&p5(t.default(),!0);if(!o||!o.length)return;const a=dfe(o),s=Bi(e),{mode:l}=s;if(r.isLeaving)return uP(a);const c=Ute(a);if(!c)return uP(a);let d=wy(c,s,r,n,p=>d=p);c.type!==ks&&Uh(c,d);let h=n.subTree&&Ute(n.subTree);if(h&&h.type!==ks&&!Cd(h,c)&&cfe(n).type!==ks){let p=wy(h,s,r,n);if(Uh(h,p),l==="out-in"&&c.type!==ks)return r.isLeaving=!0,p.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete p.afterLeave,h=void 0},uP(a);l==="in-out"&&c.type!==ks?p.delayLeave=(v,g,y)=>{const S=hfe(r,h);S[String(h.key)]=h,v[yh]=()=>{g(),v[yh]=void 0,delete d.delayedLeave,h=void 0},d.delayedLeave=()=>{y(),delete d.delayedLeave,h=void 0}}:h=void 0}else h&&(h=void 0);return a}}};function dfe(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==ks){t=n;break}}return t}const ffe=b5e;function hfe(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function wy(e,t,n,r,o){const{appear:a,mode:s,persisted:l=!1,onBeforeEnter:c,onEnter:d,onAfterEnter:h,onEnterCancelled:p,onBeforeLeave:v,onLeave:g,onAfterLeave:y,onLeaveCancelled:S,onBeforeAppear:k,onAppear:C,onAfterAppear:x,onAppearCancelled:E}=t,_=String(e.key),T=hfe(n,e),D=($,L)=>{$&&Yc($,r,9,L)},P=($,L)=>{const B=L[1];D($,L),qn($)?$.every(F=>F.length<=1)&&B():$.length<=1&&B()},M={mode:s,persisted:l,beforeEnter($){let L=c;if(!n.isMounted)if(a)L=k||c;else return;$[yh]&&$[yh](!0);const B=T[_];B&&Cd(e,B)&&B.el[yh]&&B.el[yh](),D(L,[$])},enter($){let L=d,B=h,F=p;if(!n.isMounted)if(a)L=C||d,B=x||h,F=E||p;else return;let W=!1;const U=$[lx]=G=>{W||(W=!0,G?D(F,[$]):D(B,[$]),M.delayedLeave&&M.delayedLeave(),$[lx]=void 0)};L?P(L,[$,U]):U()},leave($,L){const B=String(e.key);if($[lx]&&$[lx](!0),n.isUnmounting)return L();D(v,[$]);let F=!1;const W=$[yh]=U=>{F||(F=!0,L(),U?D(S,[$]):D(y,[$]),$[yh]=void 0,T[B]===e&&delete T[B])};T[B]=e,g?P(g,[$,W]):W()},clone($){const L=wy($,t,n,r,o);return o&&o(L),L}};return M}function uP(e){if(z_(e))return e=wl(e),e.children=null,e}function Ute(e){if(!z_(e))return afe(e.type)&&e.children?dfe(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&Ir(n.default))return n.default()}}function Uh(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Uh(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 p5(e,t=!1,n){let r=[],o=0;for(let a=0;a1)for(let a=0;an.value,set:a=>n.value=a})}return n}const w8=new WeakMap;function ty(e,t,n,r,o=!1){if(qn(e)){e.forEach((y,S)=>ty(y,t&&(qn(t)?t[S]:t),n,r,o));return}if(f0(r)&&!o){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&ty(e,t,n,r.component.subTree);return}const a=r.shapeFlag&4?H_(r.component):r.el,s=o?null:a,{i:l,r:c}=e,d=t&&t.r,h=l.refs===Ti?l.refs={}:l.refs,p=l.setupState,v=Bi(p),g=p===Ti?Xv:y=>qi(v,y);if(d!=null&&d!==c){if(Hte(t),Or(d))h[d]=null,g(d)&&(p[d]=null);else if(Bo(d)){d.value=null;const y=t;y.k&&(h[y.k]=null)}}if(Ir(c))t3(c,l,12,[s,h]);else{const y=Or(c),S=Bo(c);if(y||S){const k=()=>{if(e.f){const C=y?g(c)?p[c]:h[c]:c.value;if(o)qn(C)&&n5(C,a);else if(qn(C))C.includes(a)||C.push(a);else if(y)h[c]=[a],g(c)&&(p[c]=h[c]);else{const x=[a];c.value=x,e.k&&(h[e.k]=x)}}else y?(h[c]=s,g(c)&&(p[c]=s)):S&&(c.value=s,e.k&&(h[e.k]=s))};if(s){const C=()=>{k(),w8.delete(e)};C.id=-1,w8.set(e,C),la(C,n)}else Hte(e),k()}}}function Hte(e){const t=w8.get(e);t&&(t.flags|=8,w8.delete(e))}let Wte=!1;const s1=()=>{Wte||(console.error("Hydration completed but contains mismatches."),Wte=!0)},k5e=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",x5e=e=>e.namespaceURI.includes("MathML"),ux=e=>{if(e.nodeType===1){if(k5e(e))return"svg";if(x5e(e))return"mathml"}},z1=e=>e.nodeType===8;function C5e(e){const{mt:t,p:n,o:{patchProp:r,createText:o,nextSibling:a,parentNode:s,remove:l,insert:c,createComment:d}}=e,h=(E,_)=>{if(!_.hasChildNodes()){n(null,E,_),C8(),_._vnode=E;return}p(_.firstChild,E,null,null,null),C8(),_._vnode=E},p=(E,_,T,D,P,M=!1)=>{M=M||!!_.dynamicChildren;const $=z1(E)&&E.data==="[",L=()=>S(E,_,T,D,P,$),{type:B,ref:F,shapeFlag:W,patchFlag:U}=_;let G=E.nodeType;_.el=E,U===-2&&(M=!1,_.dynamicChildren=null);let X=null;switch(B){case h0:G!==3?_.children===""?(c(_.el=o(""),s(E),E),X=E):X=L():(E.data!==_.children&&(s1(),E.data=_.children),X=a(E));break;case ks:x(E)?(X=a(E),C(_.el=E.content.firstChild,E,T)):G!==8||$?X=L():X=a(E);break;case cm:if($&&(E=a(E),G=E.nodeType),G===1||G===3){X=E;const oe=!_.children.length;for(let Z=0;Z<_.staticCount;Z++)oe&&(_.children+=X.nodeType===1?X.outerHTML:X.data),Z===_.staticCount-1&&(_.anchor=X),X=a(X);return $?a(X):X}else L();break;case Nt:$?X=y(E,_,T,D,P,M):X=L();break;default:if(W&1)(G!==1||_.type.toLowerCase()!==E.tagName.toLowerCase())&&!x(E)?X=L():X=v(E,_,T,D,P,M);else if(W&6){_.slotScopeIds=P;const oe=s(E);if($?X=k(E):z1(E)&&E.data==="teleport start"?X=k(E,E.data,"teleport end"):X=a(E),t(_,oe,null,T,D,ux(oe),M),f0(_)&&!_.type.__asyncResolved){let Z;$?(Z=O(Nt),Z.anchor=X?X.previousSibling:oe.lastChild):Z=E.nodeType===3?We(""):O("div"),Z.el=E,_.component.subTree=Z}}else W&64?G!==8?X=L():X=_.type.hydrate(E,_,T,D,P,M,e,g):W&128&&(X=_.type.hydrate(E,_,T,D,ux(s(E)),P,M,e,p))}return F!=null&&ty(F,null,D,_),X},v=(E,_,T,D,P,M)=>{M=M||!!_.dynamicChildren;const{type:$,props:L,patchFlag:B,shapeFlag:F,dirs:W,transition:U}=_,G=$==="input"||$==="option";if(G||B!==-1){W&&of(_,null,T,"created");let X=!1;if(x(E)){X=$fe(null,U)&&T&&T.vnode.props&&T.vnode.props.appear;const Z=E.content.firstChild;if(X){const H=Z.getAttribute("class");H&&(Z.$cls=H),U.beforeEnter(Z)}C(Z,E,T),_.el=E=Z}if(F&16&&!(L&&(L.innerHTML||L.textContent))){let Z=g(E.firstChild,_,E,T,D,P,M);for(;Z;){cx(E,1)||s1();const H=Z;Z=Z.nextSibling,l(H)}}else if(F&8){let Z=_.children;Z[0]===` `&&(E.tagName==="PRE"||E.tagName==="TEXTAREA")&&(Z=Z.slice(1)),E.textContent!==Z&&(cx(E,0)||s1(),E.textContent=_.children)}if(L){if(G||!M||B&48){const Z=E.tagName.includes("-");for(const H in L)(G&&(H.endsWith("value")||H==="indeterminate")||O0(H)&&!Lh(H)||H[0]==="."||Z)&&r(E,H,null,L[H],void 0,T)}else if(L.onClick)r(E,"onClick",null,L.onClick,void 0,T);else if(B&4&&gf(L.style))for(const Z in L.style)L.style[Z]}let oe;(oe=L&&L.onVnodeBeforeMount)&&mu(oe,T,_),W&&of(_,null,T,"beforeMount"),((oe=L&&L.onVnodeMounted)||W||X)&&Wfe(()=>{oe&&mu(oe,T,_),X&&U.enter(E),W&&of(_,null,T,"mounted")},D)}return E.nextSibling},g=(E,_,T,D,P,M,$)=>{$=$||!!_.dynamicChildren;const L=_.children,B=L.length;for(let F=0;F{const{slotScopeIds:$}=_;$&&(P=P?P.concat($):$);const L=s(E),B=g(a(E),_,L,T,D,P,M);return B&&z1(B)&&B.data==="]"?a(_.anchor=B):(s1(),c(_.anchor=d("]"),L,B),B)},S=(E,_,T,D,P,M)=>{if(cx(E.parentElement,1)||s1(),_.el=null,M){const B=k(E);for(;;){const F=a(E);if(F&&F!==B)l(F);else break}}const $=a(E),L=s(E);return l(E),n(null,_,L,$,T,D,ux(L),P),T&&(T.vnode.el=_.el,g5(T,_.el)),$},k=(E,_="[",T="]")=>{let D=0;for(;E;)if(E=a(E),E&&z1(E)&&(E.data===_&&D++,E.data===T)){if(D===0)return a(E);D--}return E},C=(E,_,T)=>{const D=_.parentNode;D&&D.replaceChild(E,_);let P=T;for(;P;)P.vnode.el===_&&(P.vnode.el=P.subTree.el=E),P=P.parent},x=E=>E.nodeType===1&&E.tagName==="TEMPLATE";return[h,p]}const Gte="data-allow-mismatch",w5e={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function cx(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(Gte);)e=e.parentElement;const n=e&&e.getAttribute(Gte);if(n==null)return!1;if(n==="")return!0;{const r=n.split(",");return t===0&&r.includes("children")?!0:r.includes(w5e[t])}}const E5e=j_().requestIdleCallback||(e=>setTimeout(e,1)),T5e=j_().cancelIdleCallback||(e=>clearTimeout(e)),A5e=(e=1e4)=>t=>{const n=E5e(t,{timeout:e});return()=>T5e(n)};function I5e(e){const{top:t,left:n,bottom:r,right:o}=e.getBoundingClientRect(),{innerHeight:a,innerWidth:s}=window;return(t>0&&t0&&r0&&n0&&o(t,n)=>{const r=new IntersectionObserver(o=>{for(const a of o)if(a.isIntersecting){r.disconnect(),t();break}},e);return n(o=>{if(o instanceof Element){if(I5e(o))return t(),r.disconnect(),!1;r.observe(o)}}),()=>r.disconnect()},D5e=e=>t=>{if(e){const n=matchMedia(e);if(n.matches)t();else return n.addEventListener("change",t,{once:!0}),()=>n.removeEventListener("change",t)}},P5e=(e=[])=>(t,n)=>{Or(e)&&(e=[e]);let r=!1;const o=s=>{r||(r=!0,a(),t(),s.target.dispatchEvent(new s.constructor(s.type,s)))},a=()=>{n(s=>{for(const l of e)s.removeEventListener(l,o)})};return n(s=>{for(const l of e)s.addEventListener(l,o,{once:!0})}),a};function R5e(e,t){if(z1(e)&&e.data==="["){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(z1(r))if(r.data==="]"){if(--n===0)break}else r.data==="["&&n++;r=r.nextSibling}}else t(e)}const f0=e=>!!e.type.__asyncLoader;function Ym(e){Ir(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:o=200,hydrate:a,timeout:s,suspensible:l=!0,onError:c}=e;let d=null,h,p=0;const v=()=>(p++,d=null,g()),g=()=>{let y;return d||(y=d=t().catch(S=>{if(S=S instanceof Error?S:new Error(String(S)),c)return new Promise((k,C)=>{c(S,()=>k(v()),()=>C(S),p+1)});throw S}).then(S=>y!==d&&d?d:(S&&(S.__esModule||S[Symbol.toStringTag]==="Module")&&(S=S.default),h=S,S)))};return Se({name:"AsyncComponentWrapper",__asyncLoader:g,__asyncHydrate(y,S,k){let C=!1;(S.bu||(S.bu=[])).push(()=>C=!0);const x=()=>{C||k()},E=a?()=>{const _=a(x,T=>R5e(y,T));_&&(S.bum||(S.bum=[])).push(_)}:x;h?E():g().then(()=>!S.isUnmounted&&E())},get __asyncResolved(){return h},setup(){const y=Ua;if(BU(y),h)return()=>cP(h,y);const S=E=>{d=null,Km(E,y,13,!r)};if(l&&y.suspense||Ey)return g().then(E=>()=>cP(E,y)).catch(E=>(S(E),()=>r?O(r,{error:E}):null));const k=fe(!1),C=fe(),x=fe(!!o);return o&&setTimeout(()=>{x.value=!1},o),s!=null&&setTimeout(()=>{if(!k.value&&!C.value){const E=new Error(`Async component timed out after ${s}ms.`);S(E),C.value=E}},s),g().then(()=>{k.value=!0,y.parent&&z_(y.parent.vnode)&&y.parent.update()}).catch(E=>{S(E),C.value=E}),()=>{if(k.value&&h)return cP(h,y);if(C.value&&r)return O(r,{error:C.value});if(n&&!x.value)return O(n)}}})}function cP(e,t){const{ref:n,props:r,children:o,ce:a}=t.vnode,s=O(e,r,o);return s.ref=n,s.ce=a,delete t.vnode.ce,s}const z_=e=>e.type.__isKeepAlive,M5e={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=_o(),r=n.ctx;if(!r.renderer)return()=>{const x=t.default&&t.default();return x&&x.length===1?x[0]:x};const o=new Map,a=new Set;let s=null;const l=n.suspense,{renderer:{p:c,m:d,um:h,o:{createElement:p}}}=r,v=p("div");r.activate=(x,E,_,T,D)=>{const P=x.component;d(x,E,_,0,l),c(P.vnode,x,E,_,P,l,T,x.slotScopeIds,D),la(()=>{P.isDeactivated=!1,P.a&&am(P.a);const M=x.props&&x.props.onVnodeMounted;M&&mu(M,P.parent,x)},l)},r.deactivate=x=>{const E=x.component;T8(E.m),T8(E.a),d(x,v,null,1,l),la(()=>{E.da&&am(E.da);const _=x.props&&x.props.onVnodeUnmounted;_&&mu(_,E.parent,x),E.isDeactivated=!0},l)};function g(x){dP(x),h(x,n,l,!0)}function y(x){o.forEach((E,_)=>{const T=Nj(E.type);T&&!x(T)&&S(_)})}function S(x){const E=o.get(x);E&&(!s||!Cd(E,s))?g(E):s&&dP(s),o.delete(x),a.delete(x)}Rt(()=>[e.include,e.exclude],([x,E])=>{x&&y(_=>C4(x,_)),E&&y(_=>!C4(E,_))},{flush:"post",deep:!0});let k=null;const C=()=>{k!=null&&(A8(n.subTree.type)?la(()=>{o.set(k,dx(n.subTree))},n.subTree.suspense):o.set(k,dx(n.subTree)))};return bn(C),Qa(C),Io(()=>{o.forEach(x=>{const{subTree:E,suspense:_}=n,T=dx(E);if(x.type===T.type&&x.key===T.key){dP(T);const D=T.component.da;D&&la(D,_);return}g(x)})}),()=>{if(k=null,!t.default)return s=null;const x=t.default(),E=x[0];if(x.length>1)return s=null,x;if(!Wi(E)||!(E.shapeFlag&4)&&!(E.shapeFlag&128))return s=null,E;let _=dx(E);if(_.type===ks)return s=null,_;const T=_.type,D=Nj(f0(_)?_.type.__asyncResolved||{}:T),{include:P,exclude:M,max:$}=e;if(P&&(!D||!C4(P,D))||M&&D&&C4(M,D))return _.shapeFlag&=-257,s=_,E;const L=_.key==null?T:_.key,B=o.get(L);return _.el&&(_=wl(_),E.shapeFlag&128&&(E.ssContent=_)),k=L,B?(_.el=B.el,_.component=B.component,_.transition&&Uh(_,_.transition),_.shapeFlag|=512,a.delete(L),a.add(L)):(a.add(L),$&&a.size>parseInt($,10)&&S(a.values().next().value)),_.shapeFlag|=256,s=_,A8(E.type)?E:_}}},O5e=M5e;function C4(e,t){return qn(e)?e.some(n=>C4(n,t)):Or(e)?e.split(",").includes(t):kde(e)?(e.lastIndex=0,e.test(t)):!1}function NU(e,t){pfe(e,"a",t)}function FU(e,t){pfe(e,"da",t)}function pfe(e,t,n=Ua){const r=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(v5(t,r,n),n){let o=n.parent;for(;o&&o.parent;)z_(o.parent.vnode)&&$5e(r,t,n,o),o=o.parent}}function $5e(e,t,n,r){const o=v5(t,e,r,!0);gi(()=>{n5(r[t],o)},n)}function dP(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function dx(e){return e.shapeFlag&128?e.ssContent:e}function v5(e,t,n=Ua,r=!1){if(n){const o=n[e]||(n[e]=[]),a=t.__weh||(t.__weh=(...s)=>{jh();const l=Tm(n),c=Yc(t,n,e,s);return l(),Vh(),c});return r?o.unshift(a):o.push(a),a}}const qh=e=>(t,n=Ua)=>{(!Ey||e==="sp")&&v5(e,(...r)=>t(...r),n)},vfe=qh("bm"),bn=qh("m"),jU=qh("bu"),Qa=qh("u"),Io=qh("bum"),gi=qh("um"),mfe=qh("sp"),gfe=qh("rtg"),yfe=qh("rtc");function bfe(e,t=Ua){v5("ec",e,t)}const VU="components",B5e="directives";function Ie(e,t){return zU(VU,e,!0,t)||e}const _fe=Symbol.for("v-ndc");function Wa(e){return Or(e)?zU(VU,e,!1)||e:e||_fe}function n3(e){return zU(B5e,e)}function zU(e,t,n=!0,r=!1){const o=Ha||Ua;if(o){const a=o.type;if(e===VU){const l=Nj(a,!1);if(l&&(l===t||l===$o(t)||l===B0($o(t))))return a}const s=Kte(o[e]||a[e],t)||Kte(o.appContext[e],t);return!s&&r?a:s}}function Kte(e,t){return e&&(e[t]||e[$o(t)]||e[B0($o(t))])}function gn(e,t,n,r){let o;const a=n&&n[r],s=qn(e);if(s||Or(e)){const l=s&&gf(e);let c=!1,d=!1;l&&(c=!lc(e),d=zh(e),e=l5(e)),o=new Array(e.length);for(let h=0,p=e.length;ht(l,c,void 0,a&&a[c]));else{const l=Object.keys(e);o=new Array(l.length);for(let c=0,d=l.length;c{const a=r.fn(...o);return a&&(a.key=r.key),a}:r.fn)}return e}function vt(e,t,n={},r,o){if(Ha.ce||Ha.parent&&f0(Ha.parent)&&Ha.parent.ce){const d=Object.keys(n).length>0;return t!=="default"&&(n.name=t),z(),Ye(Nt,null,[O("slot",n,r&&r())],d?-2:64)}let a=e[t];a&&a._c&&(a._d=!1),z();const s=a&&UU(a(n)),l=n.key||s&&s.key,c=Ye(Nt,{key:(l&&!Jl(l)?l:`_${t}`)+(!s&&r?"_fb":"")},s||(r?r():[]),s&&e._===1?64:-2);return!o&&c.scopeId&&(c.slotScopeIds=[c.scopeId+"-s"]),a&&a._c&&(a._d=!0),c}function UU(e){return e.some(t=>Wi(t)?!(t.type===ks||t.type===Nt&&!UU(t.children)):!0)?e:null}function N5e(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:sm(r)]=e[r];return n}const Aj=e=>e?Xfe(e)?H_(e):Aj(e.parent):null,K4=Ci(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=>Aj(e.parent),$root:e=>Aj(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>HU(e),$forceUpdate:e=>e.f||(e.f=()=>{MU(e.update)}),$nextTick:e=>e.n||(e.n=Cn.bind(e.proxy)),$watch:e=>pAe.bind(e)}),fP=(e,t)=>e!==Ti&&!e.__isScriptSetup&&qi(e,t),Ij={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:o,props:a,accessCache:s,type:l,appContext:c}=e;let d;if(t[0]!=="$"){const g=s[t];if(g!==void 0)switch(g){case 1:return r[t];case 2:return o[t];case 4:return n[t];case 3:return a[t]}else{if(fP(r,t))return s[t]=1,r[t];if(o!==Ti&&qi(o,t))return s[t]=2,o[t];if((d=e.propsOptions[0])&&qi(d,t))return s[t]=3,a[t];if(n!==Ti&&qi(n,t))return s[t]=4,n[t];Lj&&(s[t]=0)}}const h=K4[t];let p,v;if(h)return t==="$attrs"&&bl(e.attrs,"get",""),h(e);if((p=l.__cssModules)&&(p=p[t]))return p;if(n!==Ti&&qi(n,t))return s[t]=4,n[t];if(v=c.config.globalProperties,qi(v,t))return v[t]},set({_:e},t,n){const{data:r,setupState:o,ctx:a}=e;return fP(o,t)?(o[t]=n,!0):r!==Ti&&qi(r,t)?(r[t]=n,!0):qi(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(a[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:o,propsOptions:a,type:s}},l){let c,d;return!!(n[l]||e!==Ti&&l[0]!=="$"&&qi(e,l)||fP(t,l)||(c=a[0])&&qi(c,l)||qi(r,l)||qi(K4,l)||qi(o.config.globalProperties,l)||(d=s.__cssModules)&&d[l])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:qi(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},F5e=Ci({},Ij,{get(e,t){if(t!==Symbol.unscopables)return Ij.get(e,t,e)},has(e,t){return t[0]!=="_"&&!xU(t)}});function j5e(){return null}function V5e(){return null}function z5e(e){}function U5e(e){}function H5e(){return null}function W5e(){}function G5e(e,t){return null}function K5e(){return Sfe().slots}function q5e(){return Sfe().attrs}function Sfe(e){const t=_o();return t.setupContext||(t.setupContext=Qfe(t))}function Xb(e){return qn(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function Y5e(e,t){const n=Xb(e);for(const r in t){if(r.startsWith("__skip"))continue;let o=n[r];o?qn(o)||Ir(o)?o=n[r]={type:o,default:t[r]}:o.default=t[r]:o===null&&(o=n[r]={default:t[r]}),o&&t[`__skip_${r}`]&&(o.skipFactory=!0)}return n}function X5e(e,t){return!e||!t?e||t:qn(e)&&qn(t)?e.concat(t):Ci({},Xb(e),Xb(t))}function Z5e(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function J5e(e){const t=_o();let n=e();return Oj(),r5(n)&&(n=n.catch(r=>{throw Tm(t),r})),[n,()=>Tm(t)]}let Lj=!0;function Q5e(e){const t=HU(e),n=e.proxy,r=e.ctx;Lj=!1,t.beforeCreate&&qte(t.beforeCreate,e,"bc");const{data:o,computed:a,methods:s,watch:l,provide:c,inject:d,created:h,beforeMount:p,mounted:v,beforeUpdate:g,updated:y,activated:S,deactivated:k,beforeDestroy:C,beforeUnmount:x,destroyed:E,unmounted:_,render:T,renderTracked:D,renderTriggered:P,errorCaptured:M,serverPrefetch:$,expose:L,inheritAttrs:B,components:F,directives:W,filters:U}=t;if(d&&eAe(d,r,null),s)for(const oe in s){const Z=s[oe];Ir(Z)&&(r[oe]=Z.bind(n))}if(o){const oe=o.call(n,n);Zi(oe)&&(e.data=Xt(oe))}if(Lj=!0,a)for(const oe in a){const Z=a[oe],H=Ir(Z)?Z.bind(n,n):Ir(Z.get)?Z.get.bind(n,n):ka,q=!Ir(Z)&&Ir(Z.set)?Z.set.bind(n):ka,ee=j({get:H,set:q});Object.defineProperty(r,oe,{enumerable:!0,configurable:!0,get:()=>ee.value,set:ne=>ee.value=ne})}if(l)for(const oe in l)kfe(l[oe],r,n,oe);if(c){const oe=Ir(c)?c.call(n):c;Reflect.ownKeys(oe).forEach(Z=>{ri(Z,oe[Z])})}h&&qte(h,e,"c");function X(oe,Z){qn(Z)?Z.forEach(H=>oe(H.bind(n))):Z&&oe(Z.bind(n))}if(X(vfe,p),X(bn,v),X(jU,g),X(Qa,y),X(NU,S),X(FU,k),X(bfe,M),X(yfe,D),X(gfe,P),X(Io,x),X(gi,_),X(mfe,$),qn(L))if(L.length){const oe=e.exposed||(e.exposed={});L.forEach(Z=>{Object.defineProperty(oe,Z,{get:()=>n[Z],set:H=>n[Z]=H,enumerable:!0})})}else e.exposed||(e.exposed={});T&&e.render===ka&&(e.render=T),B!=null&&(e.inheritAttrs=B),F&&(e.components=F),W&&(e.directives=W),$&&BU(e)}function eAe(e,t,n=ka){qn(e)&&(e=Dj(e));for(const r in e){const o=e[r];let a;Zi(o)?"default"in o?a=On(o.from||r,o.default,!0):a=On(o.from||r):a=On(o),Bo(a)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>a.value,set:s=>a.value=s}):t[r]=a}}function qte(e,t,n){Yc(qn(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function kfe(e,t,n,r){let o=r.includes(".")?Vfe(n,r):()=>n[r];if(Or(e)){const a=t[e];Ir(a)&&Rt(o,a)}else if(Ir(e))Rt(o,e.bind(n));else if(Zi(e))if(qn(e))e.forEach(a=>kfe(a,t,n,r));else{const a=Ir(e.handler)?e.handler.bind(n):t[e.handler];Ir(a)&&Rt(o,a,e)}}function HU(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:a,config:{optionMergeStrategies:s}}=e.appContext,l=a.get(t);let c;return l?c=l:!o.length&&!n&&!r?c=t:(c={},o.length&&o.forEach(d=>E8(c,d,s,!0)),E8(c,t,s)),Zi(t)&&a.set(t,c),c}function E8(e,t,n,r=!1){const{mixins:o,extends:a}=t;a&&E8(e,a,n,!0),o&&o.forEach(s=>E8(e,s,n,!0));for(const s in t)if(!(r&&s==="expose")){const l=tAe[s]||n&&n[s];e[s]=l?l(e[s],t[s]):t[s]}return e}const tAe={data:Yte,props:Xte,emits:Xte,methods:w4,computed:w4,beforeCreate:Nl,created:Nl,beforeMount:Nl,mounted:Nl,beforeUpdate:Nl,updated:Nl,beforeDestroy:Nl,beforeUnmount:Nl,destroyed:Nl,unmounted:Nl,activated:Nl,deactivated:Nl,errorCaptured:Nl,serverPrefetch:Nl,components:w4,directives:w4,watch:rAe,provide:Yte,inject:nAe};function Yte(e,t){return t?e?function(){return Ci(Ir(e)?e.call(this,this):e,Ir(t)?t.call(this,this):t)}:t:e}function nAe(e,t){return w4(Dj(e),Dj(t))}function Dj(e){if(qn(e)){const t={};for(let n=0;n1)return n&&Ir(t)?t.call(r&&r.proxy):t}}function Cfe(){return!!(_o()||um)}const wfe={},Efe=()=>Object.create(wfe),Tfe=e=>Object.getPrototypeOf(e)===wfe;function sAe(e,t,n,r=!1){const o={},a=Efe();e.propsDefaults=Object.create(null),Afe(e,t,o,a);for(const s in e.propsOptions[0])s in o||(o[s]=void 0);n?e.props=r?o:PU(o):e.type.props?e.props=o:e.props=a,e.attrs=a}function aAe(e,t,n,r){const{props:o,attrs:a,vnode:{patchFlag:s}}=e,l=Bi(o),[c]=e.propsOptions;let d=!1;if((r||s>0)&&!(s&16)){if(s&8){const h=e.vnode.dynamicProps;for(let p=0;p{c=!0;const[v,g]=Ife(p,t,!0);Ci(s,v),g&&l.push(...g)};!n&&t.mixins.length&&t.mixins.forEach(h),e.extends&&h(e.extends),e.mixins&&e.mixins.forEach(h)}if(!a&&!c)return Zi(e)&&r.set(e,im),im;if(qn(a))for(let h=0;he==="_"||e==="_ctx"||e==="$stable",GU=e=>qn(e)?e.map(gu):[gu(e)],uAe=(e,t,n)=>{if(t._n)return t;const r=de((...o)=>GU(t(...o)),n);return r._c=!1,r},Lfe=(e,t,n)=>{const r=e._ctx;for(const o in e){if(WU(o))continue;const a=e[o];if(Ir(a))t[o]=uAe(o,a,r);else if(a!=null){const s=GU(a);t[o]=()=>s}}},Dfe=(e,t)=>{const n=GU(t);e.slots.default=()=>n},Pfe=(e,t,n)=>{for(const r in t)(n||!WU(r))&&(e[r]=t[r])},cAe=(e,t,n)=>{const r=e.slots=Efe();if(e.vnode.shapeFlag&32){const o=t._;o?(Pfe(r,t,n),n&&kU(r,"_",o,!0)):Lfe(t,r)}else t&&Dfe(e,t)},dAe=(e,t,n)=>{const{vnode:r,slots:o}=e;let a=!0,s=Ti;if(r.shapeFlag&32){const l=t._;l?n&&l===1?a=!1:Pfe(o,t,n):(a=!t.$stable,Lfe(t,o)),s=t}else t&&(Dfe(e,t),s={default:1});if(a)for(const l in o)!WU(l)&&s[l]==null&&delete o[l]},la=Wfe;function Rfe(e){return Ofe(e)}function Mfe(e){return Ofe(e,C5e)}function Ofe(e,t){const n=j_();n.__VUE__=!0;const{insert:r,remove:o,patchProp:a,createElement:s,createText:l,createComment:c,setText:d,setElementText:h,parentNode:p,nextSibling:v,setScopeId:g=ka,insertStaticContent:y}=e,S=(ge,be,Fe,He=null,Je=null,rt=null,ht=void 0,ut=null,Ct=!!be.dynamicChildren)=>{if(ge===be)return;ge&&!Cd(ge,be)&&(He=me(ge),ne(ge,Je,rt,!0),ge=null),be.patchFlag===-2&&(Ct=!1,be.dynamicChildren=null);const{type:St,ref:Gt,shapeFlag:Tt}=be;switch(St){case h0:k(ge,be,Fe,He);break;case ks:C(ge,be,Fe,He);break;case cm:ge==null&&x(be,Fe,He,ht);break;case Nt:F(ge,be,Fe,He,Je,rt,ht,ut,Ct);break;default:Tt&1?T(ge,be,Fe,He,Je,rt,ht,ut,Ct):Tt&6?W(ge,be,Fe,He,Je,rt,ht,ut,Ct):(Tt&64||Tt&128)&&St.process(ge,be,Fe,He,Je,rt,ht,ut,Ct,Qe)}Gt!=null&&Je?ty(Gt,ge&&ge.ref,rt,be||ge,!be):Gt==null&&ge&&ge.ref!=null&&ty(ge.ref,null,rt,ge,!0)},k=(ge,be,Fe,He)=>{if(ge==null)r(be.el=l(be.children),Fe,He);else{const Je=be.el=ge.el;be.children!==ge.children&&d(Je,be.children)}},C=(ge,be,Fe,He)=>{ge==null?r(be.el=c(be.children||""),Fe,He):be.el=ge.el},x=(ge,be,Fe,He)=>{[ge.el,ge.anchor]=y(ge.children,be,Fe,He,ge.el,ge.anchor)},E=({el:ge,anchor:be},Fe,He)=>{let Je;for(;ge&&ge!==be;)Je=v(ge),r(ge,Fe,He),ge=Je;r(be,Fe,He)},_=({el:ge,anchor:be})=>{let Fe;for(;ge&&ge!==be;)Fe=v(ge),o(ge),ge=Fe;o(be)},T=(ge,be,Fe,He,Je,rt,ht,ut,Ct)=>{be.type==="svg"?ht="svg":be.type==="math"&&(ht="mathml"),ge==null?D(be,Fe,He,Je,rt,ht,ut,Ct):$(ge,be,Je,rt,ht,ut,Ct)},D=(ge,be,Fe,He,Je,rt,ht,ut)=>{let Ct,St;const{props:Gt,shapeFlag:Tt,transition:Mt,dirs:sn}=ge;if(Ct=ge.el=s(ge.type,rt,Gt&&Gt.is,Gt),Tt&8?h(Ct,ge.children):Tt&16&&M(ge.children,Ct,null,He,Je,hP(ge,rt),ht,ut),sn&&of(ge,null,He,"created"),P(Ct,ge,ge.scopeId,ht,He),Gt){for(const Be in Gt)Be!=="value"&&!Lh(Be)&&a(Ct,Be,null,Gt[Be],rt,He);"value"in Gt&&a(Ct,"value",null,Gt.value,rt),(St=Gt.onVnodeBeforeMount)&&mu(St,He,ge)}sn&&of(ge,null,He,"beforeMount");const ct=$fe(Je,Mt);ct&&Mt.beforeEnter(Ct),r(Ct,be,Fe),((St=Gt&&Gt.onVnodeMounted)||ct||sn)&&la(()=>{St&&mu(St,He,ge),ct&&Mt.enter(Ct),sn&&of(ge,null,He,"mounted")},Je)},P=(ge,be,Fe,He,Je)=>{if(Fe&&g(ge,Fe),He)for(let rt=0;rt{for(let St=Ct;St{const ut=be.el=ge.el;let{patchFlag:Ct,dynamicChildren:St,dirs:Gt}=be;Ct|=ge.patchFlag&16;const Tt=ge.props||Ti,Mt=be.props||Ti;let sn;if(Fe&&pv(Fe,!1),(sn=Mt.onVnodeBeforeUpdate)&&mu(sn,Fe,be,ge),Gt&&of(be,ge,Fe,"beforeUpdate"),Fe&&pv(Fe,!0),(Tt.innerHTML&&Mt.innerHTML==null||Tt.textContent&&Mt.textContent==null)&&h(ut,""),St?L(ge.dynamicChildren,St,ut,Fe,He,hP(be,Je),rt):ht||Z(ge,be,ut,null,Fe,He,hP(be,Je),rt,!1),Ct>0){if(Ct&16)B(ut,Tt,Mt,Fe,Je);else if(Ct&2&&Tt.class!==Mt.class&&a(ut,"class",null,Mt.class,Je),Ct&4&&a(ut,"style",Tt.style,Mt.style,Je),Ct&8){const ct=be.dynamicProps;for(let Be=0;Be{sn&&mu(sn,Fe,be,ge),Gt&&of(be,ge,Fe,"updated")},He)},L=(ge,be,Fe,He,Je,rt,ht)=>{for(let ut=0;ut{if(be!==Fe){if(be!==Ti)for(const rt in be)!Lh(rt)&&!(rt in Fe)&&a(ge,rt,be[rt],null,Je,He);for(const rt in Fe){if(Lh(rt))continue;const ht=Fe[rt],ut=be[rt];ht!==ut&&rt!=="value"&&a(ge,rt,ut,ht,Je,He)}"value"in Fe&&a(ge,"value",be.value,Fe.value,Je)}},F=(ge,be,Fe,He,Je,rt,ht,ut,Ct)=>{const St=be.el=ge?ge.el:l(""),Gt=be.anchor=ge?ge.anchor:l("");let{patchFlag:Tt,dynamicChildren:Mt,slotScopeIds:sn}=be;sn&&(ut=ut?ut.concat(sn):sn),ge==null?(r(St,Fe,He),r(Gt,Fe,He),M(be.children||[],Fe,Gt,Je,rt,ht,ut,Ct)):Tt>0&&Tt&64&&Mt&&ge.dynamicChildren?(L(ge.dynamicChildren,Mt,Fe,Je,rt,ht,ut),(be.key!=null||Je&&be===Je.subTree)&&KU(ge,be,!0)):Z(ge,be,Fe,Gt,Je,rt,ht,ut,Ct)},W=(ge,be,Fe,He,Je,rt,ht,ut,Ct)=>{be.slotScopeIds=ut,ge==null?be.shapeFlag&512?Je.ctx.activate(be,Fe,He,ht,Ct):U(be,Fe,He,Je,rt,ht,Ct):G(ge,be,Ct)},U=(ge,be,Fe,He,Je,rt,ht)=>{const ut=ge.component=Yfe(ge,He,Je);if(z_(ge)&&(ut.ctx.renderer=Qe),Zfe(ut,!1,ht),ut.asyncDep){if(Je&&Je.registerDep(ut,X,ht),!ge.el){const Ct=ut.subTree=O(ks);C(null,Ct,be,Fe),ge.placeholder=Ct.el}}else X(ut,ge,be,Fe,Je,rt,ht)},G=(ge,be,Fe)=>{const He=be.component=ge.component;if(SAe(ge,be,Fe))if(He.asyncDep&&!He.asyncResolved){oe(He,be,Fe);return}else He.next=be,He.update();else be.el=ge.el,He.vnode=be},X=(ge,be,Fe,He,Je,rt,ht)=>{const ut=()=>{if(ge.isMounted){let{next:Tt,bu:Mt,u:sn,parent:ct,vnode:Be}=ge;{const Dt=Bfe(ge);if(Dt){Tt&&(Tt.el=Be.el,oe(ge,Tt,ht)),Dt.asyncDep.then(()=>{ge.isUnmounted||ut()});return}}let Ae=Tt,Re;pv(ge,!1),Tt?(Tt.el=Be.el,oe(ge,Tt,ht)):Tt=Be,Mt&&am(Mt),(Re=Tt.props&&Tt.props.onVnodeBeforeUpdate)&&mu(Re,ct,Tt,Be),pv(ge,!0);const Xe=WC(ge),dt=ge.subTree;ge.subTree=Xe,S(dt,Xe,p(dt.el),me(dt),ge,Je,rt),Tt.el=Xe.el,Ae===null&&g5(ge,Xe.el),sn&&la(sn,Je),(Re=Tt.props&&Tt.props.onVnodeUpdated)&&la(()=>mu(Re,ct,Tt,Be),Je)}else{let Tt;const{el:Mt,props:sn}=be,{bm:ct,m:Be,parent:Ae,root:Re,type:Xe}=ge,dt=f0(be);if(pv(ge,!1),ct&&am(ct),!dt&&(Tt=sn&&sn.onVnodeBeforeMount)&&mu(Tt,Ae,be),pv(ge,!0),Mt&&je){const Dt=()=>{ge.subTree=WC(ge),je(Mt,ge.subTree,ge,Je,null)};dt&&Xe.__asyncHydrate?Xe.__asyncHydrate(Mt,ge,Dt):Dt()}else{Re.ce&&Re.ce._def.shadowRoot!==!1&&Re.ce._injectChildStyle(Xe);const Dt=ge.subTree=WC(ge);S(null,Dt,Fe,He,ge,Je,rt),be.el=Dt.el}if(Be&&la(Be,Je),!dt&&(Tt=sn&&sn.onVnodeMounted)){const Dt=be;la(()=>mu(Tt,Ae,Dt),Je)}(be.shapeFlag&256||Ae&&f0(Ae.vnode)&&Ae.vnode.shapeFlag&256)&&ge.a&&la(ge.a,Je),ge.isMounted=!0,be=Fe=He=null}};ge.scope.on();const Ct=ge.effect=new Ub(ut);ge.scope.off();const St=ge.update=Ct.run.bind(Ct),Gt=ge.job=Ct.runIfDirty.bind(Ct);Gt.i=ge,Gt.id=ge.uid,Ct.scheduler=()=>MU(Gt),pv(ge,!0),St()},oe=(ge,be,Fe)=>{be.component=ge;const He=ge.vnode.props;ge.vnode=be,ge.next=null,aAe(ge,be.props,He,Fe),dAe(ge,be.children,Fe),jh(),Fte(ge),Vh()},Z=(ge,be,Fe,He,Je,rt,ht,ut,Ct=!1)=>{const St=ge&&ge.children,Gt=ge?ge.shapeFlag:0,Tt=be.children,{patchFlag:Mt,shapeFlag:sn}=be;if(Mt>0){if(Mt&128){q(St,Tt,Fe,He,Je,rt,ht,ut,Ct);return}else if(Mt&256){H(St,Tt,Fe,He,Je,rt,ht,ut,Ct);return}}sn&8?(Gt&16&&Ne(St,Je,rt),Tt!==St&&h(Fe,Tt)):Gt&16?sn&16?q(St,Tt,Fe,He,Je,rt,ht,ut,Ct):Ne(St,Je,rt,!0):(Gt&8&&h(Fe,""),sn&16&&M(Tt,Fe,He,Je,rt,ht,ut,Ct))},H=(ge,be,Fe,He,Je,rt,ht,ut,Ct)=>{ge=ge||im,be=be||im;const St=ge.length,Gt=be.length,Tt=Math.min(St,Gt);let Mt;for(Mt=0;MtGt?Ne(ge,Je,rt,!0,!1,Tt):M(be,Fe,He,Je,rt,ht,ut,Ct,Tt)},q=(ge,be,Fe,He,Je,rt,ht,ut,Ct)=>{let St=0;const Gt=be.length;let Tt=ge.length-1,Mt=Gt-1;for(;St<=Tt&&St<=Mt;){const sn=ge[St],ct=be[St]=Ct?qp(be[St]):gu(be[St]);if(Cd(sn,ct))S(sn,ct,Fe,null,Je,rt,ht,ut,Ct);else break;St++}for(;St<=Tt&&St<=Mt;){const sn=ge[Tt],ct=be[Mt]=Ct?qp(be[Mt]):gu(be[Mt]);if(Cd(sn,ct))S(sn,ct,Fe,null,Je,rt,ht,ut,Ct);else break;Tt--,Mt--}if(St>Tt){if(St<=Mt){const sn=Mt+1,ct=snMt)for(;St<=Tt;)ne(ge[St],Je,rt,!0),St++;else{const sn=St,ct=St,Be=new Map;for(St=ct;St<=Mt;St++){const xt=be[St]=Ct?qp(be[St]):gu(be[St]);xt.key!=null&&Be.set(xt.key,St)}let Ae,Re=0;const Xe=Mt-ct+1;let dt=!1,Dt=0;const pt=new Array(Xe);for(St=0;St=Xe){ne(xt,Je,rt,!0);continue}let Zt;if(xt.key!=null)Zt=Be.get(xt.key);else for(Ae=ct;Ae<=Mt;Ae++)if(pt[Ae-ct]===0&&Cd(xt,be[Ae])){Zt=Ae;break}Zt===void 0?ne(xt,Je,rt,!0):(pt[Zt-ct]=St+1,Zt>=Dt?Dt=Zt:dt=!0,S(xt,be[Zt],Fe,null,Je,rt,ht,ut,Ct),Re++)}const Oe=dt?fAe(pt):im;for(Ae=Oe.length-1,St=Xe-1;St>=0;St--){const xt=ct+St,Zt=be[xt],tn=be[xt+1],Ft=xt+1{const{el:rt,type:ht,transition:ut,children:Ct,shapeFlag:St}=ge;if(St&6){ee(ge.component.subTree,be,Fe,He);return}if(St&128){ge.suspense.move(be,Fe,He);return}if(St&64){ht.move(ge,be,Fe,Qe);return}if(ht===Nt){r(rt,be,Fe);for(let Tt=0;Ttut.enter(rt),Je);else{const{leave:Tt,delayLeave:Mt,afterLeave:sn}=ut,ct=()=>{ge.ctx.isUnmounted?o(rt):r(rt,be,Fe)},Be=()=>{rt._isLeaving&&rt[yh](!0),Tt(rt,()=>{ct(),sn&&sn()})};Mt?Mt(rt,ct,Be):Be()}else r(rt,be,Fe)},ne=(ge,be,Fe,He=!1,Je=!1)=>{const{type:rt,props:ht,ref:ut,children:Ct,dynamicChildren:St,shapeFlag:Gt,patchFlag:Tt,dirs:Mt,cacheIndex:sn}=ge;if(Tt===-2&&(Je=!1),ut!=null&&(jh(),ty(ut,null,Fe,ge,!0),Vh()),sn!=null&&(be.renderCache[sn]=void 0),Gt&256){be.ctx.deactivate(ge);return}const ct=Gt&1&&Mt,Be=!f0(ge);let Ae;if(Be&&(Ae=ht&&ht.onVnodeBeforeUnmount)&&mu(Ae,be,ge),Gt&6)ke(ge.component,Fe,He);else{if(Gt&128){ge.suspense.unmount(Fe,He);return}ct&&of(ge,null,be,"beforeUnmount"),Gt&64?ge.type.remove(ge,be,Fe,Qe,He):St&&!St.hasOnce&&(rt!==Nt||Tt>0&&Tt&64)?Ne(St,be,Fe,!1,!0):(rt===Nt&&Tt&384||!Je&&Gt&16)&&Ne(Ct,be,Fe),He&&ae(ge)}(Be&&(Ae=ht&&ht.onVnodeUnmounted)||ct)&&la(()=>{Ae&&mu(Ae,be,ge),ct&&of(ge,null,be,"unmounted")},Fe)},ae=ge=>{const{type:be,el:Fe,anchor:He,transition:Je}=ge;if(be===Nt){re(Fe,He);return}if(be===cm){_(ge);return}const rt=()=>{o(Fe),Je&&!Je.persisted&&Je.afterLeave&&Je.afterLeave()};if(ge.shapeFlag&1&&Je&&!Je.persisted){const{leave:ht,delayLeave:ut}=Je,Ct=()=>ht(Fe,rt);ut?ut(ge.el,rt,Ct):Ct()}else rt()},re=(ge,be)=>{let Fe;for(;ge!==be;)Fe=v(ge),o(ge),ge=Fe;o(be)},ke=(ge,be,Fe)=>{const{bum:He,scope:Je,job:rt,subTree:ht,um:ut,m:Ct,a:St}=ge;T8(Ct),T8(St),He&&am(He),Je.stop(),rt&&(rt.flags|=8,ne(ht,ge,be,Fe)),ut&&la(ut,be),la(()=>{ge.isUnmounted=!0},be)},Ne=(ge,be,Fe,He=!1,Je=!1,rt=0)=>{for(let ht=rt;ht{if(ge.shapeFlag&6)return me(ge.component.subTree);if(ge.shapeFlag&128)return ge.suspense.next();const be=v(ge.anchor||ge.el),Fe=be&&be[sfe];return Fe?v(Fe):be};let _e=!1;const Ue=(ge,be,Fe)=>{ge==null?be._vnode&&ne(be._vnode,null,null,!0):S(be._vnode||null,ge,be,null,null,null,Fe),be._vnode=ge,_e||(_e=!0,Fte(),C8(),_e=!1)},Qe={p:S,um:ne,m:ee,r:ae,mt:U,mc:M,pc:Z,pbc:L,n:me,o:e};let Me,je;return t&&([Me,je]=t(Qe)),{render:Ue,hydrate:Me,createApp:oAe(Ue,Me)}}function hP({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function pv({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function $fe(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function KU(e,t,n=!1){const r=e.children,o=t.children;if(qn(r)&&qn(o))for(let a=0;a>1,e[n[l]]0&&(t[r]=n[a-1]),n[a]=r)}}for(a=n.length,s=n[a-1];a-- >0;)n[a]=s,s=t[s];return n}function Bfe(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Bfe(t)}function T8(e){if(e)for(let t=0;tOn(Nfe);function Os(e,t){return U_(e,null,t)}function hAe(e,t){return U_(e,null,{flush:"post"})}function jfe(e,t){return U_(e,null,{flush:"sync"})}function Rt(e,t,n){return U_(e,t,n)}function U_(e,t,n=Ti){const{immediate:r,deep:o,flush:a,once:s}=n,l=Ci({},n),c=t&&r||!t&&a!=="post";let d;if(Ey){if(a==="sync"){const g=Ffe();d=g.__watcherHandles||(g.__watcherHandles=[])}else if(!c){const g=()=>{};return g.stop=ka,g.resume=ka,g.pause=ka,g}}const h=Ua;l.call=(g,y,S)=>Yc(g,h,y,S);let p=!1;a==="post"?l.scheduler=g=>{la(g,h&&h.suspense)}:a!=="sync"&&(p=!0,l.scheduler=(g,y)=>{y?g():MU(g)}),l.augmentJob=g=>{t&&(g.flags|=4),p&&(g.flags|=2,h&&(g.id=h.uid,g.i=h))};const v=a5e(e,t,l);return Ey&&(d?d.push(v):c&&v()),v}function pAe(e,t,n){const r=this.proxy,o=Or(e)?e.includes(".")?Vfe(r,e):()=>r[e]:e.bind(r,r);let a;Ir(t)?a=t:(a=t.handler,n=t);const s=Tm(this),l=U_(o,a.bind(r),n);return s(),l}function Vfe(e,t){const n=t.split(".");return()=>{let r=e;for(let o=0;o{let h,p=Ti,v;return jfe(()=>{const g=e[o];yl(h,g)&&(h=g,d())}),{get(){return c(),n.get?n.get(h):h},set(g){const y=n.set?n.set(g):g;if(!yl(y,h)&&!(p!==Ti&&yl(g,p)))return;const S=r.vnode.props;S&&(t in S||o in S||a in S)&&(`onUpdate:${t}`in S||`onUpdate:${o}`in S||`onUpdate:${a}`in S)||(h=g,d()),r.emit(`update:${t}`,y),yl(g,y)&&yl(g,p)&&!yl(y,v)&&d(),p=g,v=y}}});return l[Symbol.iterator]=()=>{let c=0;return{next(){return c<2?{value:c++?s||Ti:l,done:!1}:{done:!0}}}},l}const zfe=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${$o(t)}Modifiers`]||e[`${_l(t)}Modifiers`];function mAe(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||Ti;let o=n;const a=t.startsWith("update:"),s=a&&zfe(r,t.slice(7));s&&(s.trim&&(o=n.map(h=>Or(h)?h.trim():h)),s.number&&(o=n.map(Vb)));let l,c=r[l=sm(t)]||r[l=sm($o(t))];!c&&a&&(c=r[l=sm(_l(t))]),c&&Yc(c,e,6,o);const d=r[l+"Once"];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Yc(d,e,6,o)}}const gAe=new WeakMap;function Ufe(e,t,n=!1){const r=n?gAe:t.emitsCache,o=r.get(e);if(o!==void 0)return o;const a=e.emits;let s={},l=!1;if(!Ir(e)){const c=d=>{const h=Ufe(d,t,!0);h&&(l=!0,Ci(s,h))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!a&&!l?(Zi(e)&&r.set(e,null),null):(qn(a)?a.forEach(c=>s[c]=null):Ci(s,a),Zi(e)&&r.set(e,s),s)}function m5(e,t){return!e||!O0(t)?!1:(t=t.slice(2).replace(/Once$/,""),qi(e,t[0].toLowerCase()+t.slice(1))||qi(e,_l(t))||qi(e,t))}function WC(e){const{type:t,vnode:n,proxy:r,withProxy:o,propsOptions:[a],slots:s,attrs:l,emit:c,render:d,renderCache:h,props:p,data:v,setupState:g,ctx:y,inheritAttrs:S}=e,k=Yb(e);let C,x;try{if(n.shapeFlag&4){const _=o||r,T=_;C=gu(d.call(T,_,h,p,g,v,y)),x=l}else{const _=t;C=gu(_.length>1?_(p,{attrs:l,slots:s,emit:c}):_(p,null)),x=t.props?l:bAe(l)}}catch(_){q4.length=0,Km(_,e,1),C=O(ks)}let E=C;if(x&&S!==!1){const _=Object.keys(x),{shapeFlag:T}=E;_.length&&T&7&&(a&&_.some(t5)&&(x=_Ae(x,a)),E=wl(E,x,!1,!0))}return n.dirs&&(E=wl(E,null,!1,!0),E.dirs=E.dirs?E.dirs.concat(n.dirs):n.dirs),n.transition&&Uh(E,n.transition),C=E,Yb(k),C}function yAe(e,t=!0){let n;for(let r=0;r{let t;for(const n in e)(n==="class"||n==="style"||O0(n))&&((t||(t={}))[n]=e[n]);return t},_Ae=(e,t)=>{const n={};for(const r in e)(!t5(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function SAe(e,t,n){const{props:r,children:o,component:a}=e,{props:s,children:l,patchFlag:c}=t,d=a.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?Jte(r,s,d):!!s;if(c&8){const h=t.dynamicProps;for(let p=0;pe.__isSuspense;let Rj=0;const kAe={name:"Suspense",__isSuspense:!0,process(e,t,n,r,o,a,s,l,c,d){if(e==null)CAe(t,n,r,o,a,s,l,c,d);else{if(a&&a.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}wAe(e,t,n,r,o,s,l,c,d)}},hydrate:EAe,normalize:TAe},xAe=kAe;function Zb(e,t){const n=e.props&&e.props[t];Ir(n)&&n()}function CAe(e,t,n,r,o,a,s,l,c){const{p:d,o:{createElement:h}}=c,p=h("div"),v=e.suspense=Hfe(e,o,r,t,p,n,a,s,l,c);d(null,v.pendingBranch=e.ssContent,p,null,r,v,a,s),v.deps>0?(Zb(e,"onPending"),Zb(e,"onFallback"),d(null,e.ssFallback,t,n,r,null,a,s),ny(v,e.ssFallback)):v.resolve(!1,!0)}function wAe(e,t,n,r,o,a,s,l,{p:c,um:d,o:{createElement:h}}){const p=t.suspense=e.suspense;p.vnode=t,t.el=e.el;const v=t.ssContent,g=t.ssFallback,{activeBranch:y,pendingBranch:S,isInFallback:k,isHydrating:C}=p;if(S)p.pendingBranch=v,Cd(S,v)?(c(S,v,p.hiddenContainer,null,o,p,a,s,l),p.deps<=0?p.resolve():k&&(C||(c(y,g,n,r,o,null,a,s,l),ny(p,g)))):(p.pendingId=Rj++,C?(p.isHydrating=!1,p.activeBranch=S):d(S,o,p),p.deps=0,p.effects.length=0,p.hiddenContainer=h("div"),k?(c(null,v,p.hiddenContainer,null,o,p,a,s,l),p.deps<=0?p.resolve():(c(y,g,n,r,o,null,a,s,l),ny(p,g))):y&&Cd(y,v)?(c(y,v,n,r,o,p,a,s,l),p.resolve(!0)):(c(null,v,p.hiddenContainer,null,o,p,a,s,l),p.deps<=0&&p.resolve()));else if(y&&Cd(y,v))c(y,v,n,r,o,p,a,s,l),ny(p,v);else if(Zb(t,"onPending"),p.pendingBranch=v,v.shapeFlag&512?p.pendingId=v.component.suspenseId:p.pendingId=Rj++,c(null,v,p.hiddenContainer,null,o,p,a,s,l),p.deps<=0)p.resolve();else{const{timeout:x,pendingId:E}=p;x>0?setTimeout(()=>{p.pendingId===E&&p.fallback(g)},x):x===0&&p.fallback(g)}}function Hfe(e,t,n,r,o,a,s,l,c,d,h=!1){const{p,m:v,um:g,n:y,o:{parentNode:S,remove:k}}=d;let C;const x=AAe(e);x&&t&&t.pendingBranch&&(C=t.pendingId,t.deps++);const E=e.props?zb(e.props.timeout):void 0,_=a,T={vnode:e,parent:t,parentComponent:n,namespace:s,container:r,hiddenContainer:o,deps:0,pendingId:Rj++,timeout:typeof E=="number"?E:-1,activeBranch:null,pendingBranch:null,isInFallback:!h,isHydrating:h,isUnmounted:!1,effects:[],resolve(D=!1,P=!1){const{vnode:M,activeBranch:$,pendingBranch:L,pendingId:B,effects:F,parentComponent:W,container:U}=T;let G=!1;T.isHydrating?T.isHydrating=!1:D||(G=$&&L.transition&&L.transition.mode==="out-in",G&&($.transition.afterLeave=()=>{B===T.pendingId&&(v(L,U,a===_?y($):a,0),Kb(F))}),$&&(S($.el)===U&&(a=y($)),g($,W,T,!0)),G||v(L,U,a,0)),ny(T,L),T.pendingBranch=null,T.isInFallback=!1;let X=T.parent,oe=!1;for(;X;){if(X.pendingBranch){X.effects.push(...F),oe=!0;break}X=X.parent}!oe&&!G&&Kb(F),T.effects=[],x&&t&&t.pendingBranch&&C===t.pendingId&&(t.deps--,t.deps===0&&!P&&t.resolve()),Zb(M,"onResolve")},fallback(D){if(!T.pendingBranch)return;const{vnode:P,activeBranch:M,parentComponent:$,container:L,namespace:B}=T;Zb(P,"onFallback");const F=y(M),W=()=>{T.isInFallback&&(p(null,D,L,F,$,null,B,l,c),ny(T,D))},U=D.transition&&D.transition.mode==="out-in";U&&(M.transition.afterLeave=W),T.isInFallback=!0,g(M,$,null,!0),U||W()},move(D,P,M){T.activeBranch&&v(T.activeBranch,D,P,M),T.container=D},next(){return T.activeBranch&&y(T.activeBranch)},registerDep(D,P,M){const $=!!T.pendingBranch;$&&T.deps++;const L=D.vnode.el;D.asyncDep.catch(B=>{Km(B,D,0)}).then(B=>{if(D.isUnmounted||T.isUnmounted||T.pendingId!==D.suspenseId)return;D.asyncResolved=!0;const{vnode:F}=D;$j(D,B,!1),L&&(F.el=L);const W=!L&&D.subTree.el;P(D,F,S(L||D.subTree.el),L?null:y(D.subTree),T,s,M),W&&k(W),g5(D,F.el),$&&--T.deps===0&&T.resolve()})},unmount(D,P){T.isUnmounted=!0,T.activeBranch&&g(T.activeBranch,n,D,P),T.pendingBranch&&g(T.pendingBranch,n,D,P)}};return T}function EAe(e,t,n,r,o,a,s,l,c){const d=t.suspense=Hfe(t,r,n,e.parentNode,document.createElement("div"),null,o,a,s,l,!0),h=c(e,d.pendingBranch=t.ssContent,n,d,a,s);return d.deps===0&&d.resolve(!1,!0),h}function TAe(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=Qte(r?n.default:n),e.ssFallback=r?Qte(n.fallback):O(ks)}function Qte(e){let t;if(Ir(e)){const n=Em&&e._c;n&&(e._d=!1,z()),e=e(),n&&(e._d=!0,t=xl,Gfe())}return qn(e)&&(e=yAe(e)),e=gu(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function Wfe(e,t){t&&t.pendingBranch?qn(e)?t.effects.push(...e):t.effects.push(e):Kb(e)}function ny(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e;let o=t.el;for(;!o&&t.component;)t=t.component.subTree,o=t.el;n.el=o,r&&r.subTree===n&&(r.vnode.el=o,g5(r,o))}function AAe(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const Nt=Symbol.for("v-fgt"),h0=Symbol.for("v-txt"),ks=Symbol.for("v-cmt"),cm=Symbol.for("v-stc"),q4=[];let xl=null;function z(e=!1){q4.push(xl=e?null:[])}function Gfe(){q4.pop(),xl=q4[q4.length-1]||null}let Em=1;function Jb(e,t=!1){Em+=e,e<0&&xl&&t&&(xl.hasOnce=!0)}function Kfe(e){return e.dynamicChildren=Em>0?xl||im:null,Gfe(),Em>0&&xl&&xl.push(e),e}function Q(e,t,n,r,o,a){return Kfe(I(e,t,n,r,o,a,!0))}function Ye(e,t,n,r,o){return Kfe(O(e,t,n,r,o,!0))}function Wi(e){return e?e.__v_isVNode===!0:!1}function Cd(e,t){return e.type===t.type&&e.key===t.key}function IAe(e){}const qfe=({key:e})=>e??null,GC=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Or(e)||Bo(e)||Ir(e)?{i:Ha,r:e,k:t,f:!!n}:e:null);function I(e,t=null,n=null,r=0,o=null,a=e===Nt?0:1,s=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&qfe(t),ref:t&&GC(t),scopeId:h5,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Ha};return l?(qU(c,n),a&128&&e.normalize(c)):n&&(c.shapeFlag|=Or(n)?8:16),Em>0&&!s&&xl&&(c.patchFlag>0||a&6)&&c.patchFlag!==32&&xl.push(c),c}const O=LAe;function LAe(e,t=null,n=null,r=0,o=null,a=!1){if((!e||e===_fe)&&(e=ks),Wi(e)){const l=wl(e,t,!0);return n&&qU(l,n),Em>0&&!a&&xl&&(l.shapeFlag&6?xl[xl.indexOf(e)]=l:xl.push(l)),l.patchFlag=-2,l}if(BAe(e)&&(e=e.__vccOpts),t){t=Sa(t);let{class:l,style:c}=t;l&&!Or(l)&&(t.class=ue(l)),Zi(c)&&(d5(c)&&!qn(c)&&(c=Ci({},c)),t.style=Ke(c))}const s=Or(e)?1:A8(e)?128:afe(e)?64:Zi(e)?4:Ir(e)?2:0;return I(e,t,n,r,o,s,a,!0)}function Sa(e){return e?d5(e)||Tfe(e)?Ci({},e):e:null}function wl(e,t,n=!1,r=!1){const{props:o,ref:a,patchFlag:s,children:l,transition:c}=e,d=t?Vt(o||{},t):o,h={__v_isVNode:!0,__v_skip:!0,type:e.type,props:d,key:d&&qfe(d),ref:t&&t.ref?n&&a?qn(a)?a.concat(GC(t)):[a,GC(t)]:GC(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Nt?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&wl(e.ssContent),ssFallback:e.ssFallback&&wl(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&r&&Uh(h,c.clone(h)),h}function We(e=" ",t=0){return O(h0,null,e,t)}function xh(e,t){const n=O(cm,null,e);return n.staticCount=t,n}function Le(e="",t=!1){return t?(z(),Ye(ks,null,e)):O(ks,null,e)}function gu(e){return e==null||typeof e=="boolean"?O(ks):qn(e)?O(Nt,null,e.slice()):Wi(e)?qp(e):O(h0,null,String(e))}function qp(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:wl(e)}function qU(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(qn(t))n=16;else if(typeof t=="object")if(r&65){const o=t.default;o&&(o._c&&(o._d=!1),qU(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!Tfe(t)?t._ctx=Ha:o===3&&Ha&&(Ha.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Ir(t)?(t={default:t,_ctx:Ha},n=32):(t=String(t),r&64?(n=16,t=[We(t)]):n=8);e.children=t,e.shapeFlag|=n}function Vt(...e){const t={};for(let n=0;nUa||Ha;let I8,Mj;{const e=j_(),t=(n,r)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(r),a=>{o.length>1?o.forEach(s=>s(a)):o[0](a)}};I8=t("__VUE_INSTANCE_SETTERS__",n=>Ua=n),Mj=t("__VUE_SSR_SETTERS__",n=>Ey=n)}const Tm=e=>{const t=Ua;return I8(e),e.scope.on(),()=>{e.scope.off(),I8(t)}},Oj=()=>{Ua&&Ua.scope.off(),I8(null)};function Xfe(e){return e.vnode.shapeFlag&4}let Ey=!1;function Zfe(e,t=!1,n=!1){t&&Mj(t);const{props:r,children:o}=e.vnode,a=Xfe(e);sAe(e,r,a,t),cAe(e,o,n||t);const s=a?RAe(e,t):void 0;return t&&Mj(!1),s}function RAe(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Ij);const{setup:r}=n;if(r){jh();const o=e.setupContext=r.length>1?Qfe(e):null,a=Tm(e),s=t3(r,e,0,[e.props,o]),l=r5(s);if(Vh(),a(),(l||e.sp)&&!f0(e)&&BU(e),l){if(s.then(Oj,Oj),t)return s.then(c=>{$j(e,c,t)}).catch(c=>{Km(c,e,0)});e.asyncDep=s}else $j(e,s,t)}else Jfe(e,t)}function $j(e,t,n){Ir(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Zi(t)&&(e.setupState=RU(t)),Jfe(e,n)}let L8,Bj;function MAe(e){L8=e,Bj=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,F5e))}}const OAe=()=>!L8;function Jfe(e,t,n){const r=e.type;if(!e.render){if(!t&&L8&&!r.render){const o=r.template||HU(e).template;if(o){const{isCustomElement:a,compilerOptions:s}=e.appContext.config,{delimiters:l,compilerOptions:c}=r,d=Ci(Ci({isCustomElement:a,delimiters:l},s),c);r.render=L8(o,d)}}e.render=r.render||ka,Bj&&Bj(e)}{const o=Tm(e);jh();try{Q5e(e)}finally{Vh(),o()}}}const $Ae={get(e,t){return bl(e,"get",""),e[t]}};function Qfe(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,$Ae),slots:e.slots,emit:e.emit,expose:t}}function H_(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(RU(f5(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in K4)return K4[n](e)},has(t,n){return n in t||n in K4}})):e.proxy}function Nj(e,t=!0){return Ir(e)?e.displayName||e.name:e.name||t&&e.__name}function BAe(e){return Ir(e)&&"__vccOpts"in e}const j=(e,t)=>r5e(e,t,Ey);function da(e,t,n){try{Jb(-1);const r=arguments.length;return r===2?Zi(t)&&!qn(t)?Wi(t)?O(e,null,[t]):O(e,t):O(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Wi(n)&&(n=[n]),O(e,t,n))}finally{Jb(1)}}function NAe(){}function FAe(e,t,n,r){const o=n[r];if(o&&ehe(o,e))return o;const a=t();return a.memo=e.slice(),a.cacheIndex=r,n[r]=a}function ehe(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let r=0;r0&&xl&&xl.push(e),!0}const the="3.5.22",jAe=ka,VAe=f5e,zAe=O1,UAe=ofe,HAe={createComponentInstance:Yfe,setupComponent:Zfe,renderComponentRoot:WC,setCurrentRenderingInstance:Yb,isVNode:Wi,normalizeVNode:gu,getComponentPublicInstance:H_,ensureValidVNode:UU,pushWarningContext:l5e,popWarningContext:u5e},WAe=HAe,GAe=null,KAe=null,qAe=null;/** * @vue/runtime-dom v3.5.22 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let Fj;const ene=typeof window<"u"&&window.trustedTypes;if(ene)try{Fj=ene.createPolicy("vue",{createHTML:e=>e})}catch{}const nhe=Fj?e=>Fj.createHTML(e):e=>e,YAe="http://www.w3.org/2000/svg",XAe="http://www.w3.org/1998/Math/MathML",ph=typeof document<"u"?document:null,tne=ph&&ph.createElement("template"),ZAe={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o=t==="svg"?ph.createElementNS(YAe,e):t==="mathml"?ph.createElementNS(XAe,e):n?ph.createElement(e,{is:n}):ph.createElement(e);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>ph.createTextNode(e),createComment:e=>ph.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ph.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,a){const s=n?n.previousSibling:t.lastChild;if(o&&(o===a||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===a||!(o=o.nextSibling)););else{tne.innerHTML=nhe(r==="svg"?`${e}`:r==="mathml"?`${e}`:e);const l=tne.content;if(r==="svg"||r==="mathml"){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}t.insertBefore(l,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Cp="transition",H2="animation",Ty=Symbol("_vtc"),rhe={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},ihe=Ci({},$U,rhe),JAe=e=>(e.displayName="Transition",e.props=ihe,e),Cs=JAe((e,{slots:t})=>da(ffe,ohe(e),t)),vv=(e,t=[])=>{qn(e)?e.forEach(n=>n(...t)):e&&e(...t)},nne=e=>e?qn(e)?e.some(t=>t.length>1):e.length>1:!1;function ohe(e){const t={};for(const F in e)F in rhe||(t[F]=e[F]);if(e.css===!1)return t;const{name:n="v",type:r,duration:o,enterFromClass:a=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:c=a,appearActiveClass:d=s,appearToClass:h=l,leaveFromClass:p=`${n}-leave-from`,leaveActiveClass:v=`${n}-leave-active`,leaveToClass:g=`${n}-leave-to`}=e,y=QAe(o),S=y&&y[0],k=y&&y[1],{onBeforeEnter:C,onEnter:x,onEnterCancelled:E,onLeave:_,onLeaveCancelled:T,onBeforeAppear:D=C,onAppear:P=x,onAppearCancelled:M=E}=t,$=(F,W,U,G)=>{F._enterCancelled=G,jp(F,W?h:l),jp(F,W?d:s),U&&U()},L=(F,W)=>{F._isLeaving=!1,jp(F,p),jp(F,g),jp(F,v),W&&W()},B=F=>(W,U)=>{const G=F?P:x,X=()=>$(W,F,U);vv(G,[W,X]),rne(()=>{jp(W,F?c:a),tf(W,F?h:l),nne(G)||ine(W,r,S,X)})};return Ci(t,{onBeforeEnter(F){vv(C,[F]),tf(F,a),tf(F,s)},onBeforeAppear(F){vv(D,[F]),tf(F,c),tf(F,d)},onEnter:B(!1),onAppear:B(!0),onLeave(F,W){F._isLeaving=!0;const U=()=>L(F,W);tf(F,p),F._enterCancelled?(tf(F,v),jj(F)):(jj(F),tf(F,v)),rne(()=>{F._isLeaving&&(jp(F,p),tf(F,g),nne(_)||ine(F,r,k,U))}),vv(_,[F,U])},onEnterCancelled(F){$(F,!1,void 0,!0),vv(E,[F])},onAppearCancelled(F){$(F,!0,void 0,!0),vv(M,[F])},onLeaveCancelled(F){L(F),vv(T,[F])}})}function QAe(e){if(e==null)return null;if(Zi(e))return[pP(e.enter),pP(e.leave)];{const t=pP(e);return[t,t]}}function pP(e){return zb(e)}function tf(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Ty]||(e[Ty]=new Set)).add(t)}function jp(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[Ty];n&&(n.delete(t),n.size||(e[Ty]=void 0))}function rne(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let eIe=0;function ine(e,t,n,r){const o=e._endId=++eIe,a=()=>{o===e._endId&&r()};if(n!=null)return setTimeout(a,n);const{type:s,timeout:l,propCount:c}=she(e,t);if(!s)return r();const d=s+"end";let h=0;const p=()=>{e.removeEventListener(d,v),a()},v=g=>{g.target===e&&++h>=c&&p()};setTimeout(()=>{h(n[y]||"").split(", "),o=r(`${Cp}Delay`),a=r(`${Cp}Duration`),s=one(o,a),l=r(`${H2}Delay`),c=r(`${H2}Duration`),d=one(l,c);let h=null,p=0,v=0;t===Cp?s>0&&(h=Cp,p=s,v=a.length):t===H2?d>0&&(h=H2,p=d,v=c.length):(p=Math.max(s,d),h=p>0?s>d?Cp:H2:null,v=h?h===Cp?a.length:c.length:0);const g=h===Cp&&/\b(?:transform|all)(?:,|$)/.test(r(`${Cp}Property`).toString());return{type:h,timeout:p,propCount:v,hasTransform:g}}function one(e,t){for(;e.lengthsne(n)+sne(e[r])))}function sne(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function jj(e){return(e?e.ownerDocument:document).body.offsetHeight}function tIe(e,t,n){const r=e[Ty];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const D8=Symbol("_vod"),ahe=Symbol("_vsh"),Qo={name:"show",beforeMount(e,{value:t},{transition:n}){e[D8]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):W2(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),W2(e,!0),r.enter(e)):r.leave(e,()=>{W2(e,!1)}):W2(e,t))},beforeUnmount(e,{value:t}){W2(e,t)}};function W2(e,t){e.style.display=t?e[D8]:"none",e[ahe]=!t}function nIe(){Qo.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const lhe=Symbol("");function uhe(e){const t=_o();if(!t)return;const n=t.ut=(o=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(a=>P8(a,o))},r=()=>{const o=e(t.proxy);t.ce?P8(t.ce,o):Vj(t.subTree,o),n(o)};jU(()=>{Kb(r)}),bn(()=>{Rt(r,ka,{flush:"post"});const o=new MutationObserver(r);o.observe(t.subTree.el.parentNode,{childList:!0}),gi(()=>o.disconnect())})}function Vj(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{Vj(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)P8(e.el,t);else if(e.type===Nt)e.children.forEach(n=>Vj(n,t));else if(e.type===cm){let{el:n,anchor:r}=e;for(;n&&(P8(n,t),n!==r);)n=n.nextSibling}}function P8(e,t){if(e.nodeType===1){const n=e.style;let r="";for(const o in t){const a=Ode(t[o]);n.setProperty(`--${o}`,a),r+=`--${o}: ${a};`}n[lhe]=r}}const rIe=/(?:^|;)\s*display\s*:/;function iIe(e,t,n){const r=e.style,o=Or(n);let a=!1;if(n&&!o){if(t)if(Or(t))for(const s of t.split(";")){const l=s.slice(0,s.indexOf(":")).trim();n[l]==null&&KC(r,l,"")}else for(const s in t)n[s]==null&&KC(r,s,"");for(const s in n)s==="display"&&(a=!0),KC(r,s,n[s])}else if(o){if(t!==n){const s=r[lhe];s&&(n+=";"+s),r.cssText=n,a=rIe.test(n)}}else t&&e.removeAttribute("style");D8 in e&&(e[D8]=a?r.display:"",e[ahe]&&(r.display="none"))}const ane=/\s*!important$/;function KC(e,t,n){if(qn(n))n.forEach(r=>KC(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=oIe(e,t);ane.test(n)?e.setProperty(_l(r),n.replace(ane,""),"important"):e[r]=n}}const lne=["Webkit","Moz","ms"],vP={};function oIe(e,t){const n=vP[t];if(n)return n;let r=$o(t);if(r!=="filter"&&r in e)return vP[t]=r;r=B0(r);for(let o=0;omP||(uIe.then(()=>mP=0),mP=Date.now());function dIe(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Yc(fIe(r,n.value),t,5,[r])};return n.value=e,n.attached=cIe(),n}function fIe(e,t){if(qn(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>o=>!o._stopped&&r&&r(o))}else return t}const pne=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,hIe=(e,t,n,r,o,a)=>{const s=o==="svg";t==="class"?tIe(e,r,s):t==="style"?iIe(e,n,r):O0(t)?t5(t)||aIe(e,t,n,r,a):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):pIe(e,t,r,s))?(dne(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&cne(e,t,r,s,a,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Or(r))?dne(e,$o(t),r,a,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),cne(e,t,r,s))};function pIe(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&pne(t)&&Ir(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return pne(t)&&Or(n)?!1:t in e}const vne={};function che(e,t,n){let r=Se(e,t);F_(r)&&(r=Ci({},r,t));class o extends y5{constructor(s){super(r,s,n)}}return o.def=r,o}const vIe=((e,t)=>che(e,t,bhe)),mIe=typeof HTMLElement<"u"?HTMLElement:class{};class y5 extends mIe{constructor(t,n={},r=Iy){super(),this._def=t,this._props=n,this._createApp=r,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._ob=null,this.shadowRoot&&r!==Iy?this._root=this.shadowRoot:t.shadowRoot!==!1?(this.attachShadow(Ci({},t.shadowRootOptions,{mode:"open"})),this._root=this.shadowRoot):this._root=this}connectedCallback(){if(!this.isConnected)return;!this.shadowRoot&&!this._resolved&&this._parseSlots(),this._connected=!0;let t=this;for(;t=t&&(t.parentNode||t.host);)if(t instanceof y5){this._parent=t;break}this._instance||(this._resolved?this._mount(this._def):t&&t._pendingResolve?this._pendingResolve=t._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(t=this._parent){t&&(this._instance.parent=t._instance,this._inheritParentContext(t))}_inheritParentContext(t=this._parent){t&&this._app&&Object.setPrototypeOf(this._app._context.provides,t._instance.provides)}disconnectedCallback(){this._connected=!1,Cn(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null,this._teleportTargets&&(this._teleportTargets.clear(),this._teleportTargets=void 0))})}_processMutations(t){for(const n of t)this._setAttr(n.attributeName)}_resolveDef(){if(this._pendingResolve)return;for(let r=0;r{this._resolved=!0,this._pendingResolve=void 0;const{props:a,styles:s}=r;let l;if(a&&!qn(a))for(const c in a){const d=a[c];(d===Number||d&&d.type===Number)&&(c in this._props&&(this._props[c]=zb(this._props[c])),(l||(l=Object.create(null)))[$o(c)]=!0)}this._numberProps=l,this._resolveProps(r),this.shadowRoot&&this._applyStyles(s),this._mount(r)},n=this._def.__asyncLoader;n?this._pendingResolve=n().then(r=>{r.configureApp=this._def.configureApp,t(this._def=r,!0)}):t(this._def)}_mount(t){this._app=this._createApp(t),this._inheritParentContext(),t.configureApp&&t.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const n=this._instance&&this._instance.exposed;if(n)for(const r in n)qi(this,r)||Object.defineProperty(this,r,{get:()=>et(n[r])})}_resolveProps(t){const{props:n}=t,r=qn(n)?n:Object.keys(n||{});for(const o of Object.keys(this))o[0]!=="_"&&r.includes(o)&&this._setProp(o,this[o]);for(const o of r.map($o))Object.defineProperty(this,o,{get(){return this._getProp(o)},set(a){this._setProp(o,a,!0,!0)}})}_setAttr(t){if(t.startsWith("data-v-"))return;const n=this.hasAttribute(t);let r=n?this.getAttribute(t):vne;const o=$o(t);n&&this._numberProps&&this._numberProps[o]&&(r=zb(r)),this._setProp(o,r,!1,!0)}_getProp(t){return this._props[t]}_setProp(t,n,r=!0,o=!1){if(n!==this._props[t]&&(n===vne?delete this._props[t]:(this._props[t]=n,t==="key"&&this._app&&(this._app._ceVNode.key=n)),o&&this._instance&&this._update(),r)){const a=this._ob;a&&(this._processMutations(a.takeRecords()),a.disconnect()),n===!0?this.setAttribute(_l(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(_l(t),n+""):n||this.removeAttribute(_l(t)),a&&a.observe(this,{attributes:!0})}}_update(){const t=this._createVNode();this._app&&(t.appContext=this._app._context),Xc(t,this._root)}_createVNode(){const t={};this.shadowRoot||(t.onVnodeMounted=t.onVnodeUpdated=this._renderSlots.bind(this));const n=O(this._def,Ci(t,this._props));return this._instance||(n.ce=r=>{this._instance=r,r.ce=this,r.isCE=!0;const o=(a,s)=>{this.dispatchEvent(new CustomEvent(a,F_(s[0])?Ci({detail:s},s[0]):{detail:s}))};r.emit=(a,...s)=>{o(a,s),_l(a)!==a&&o(_l(a),s)},this._setParent()}),n}_applyStyles(t,n){if(!t)return;if(n){if(n===this._def||this._styleChildren.has(n))return;this._styleChildren.add(n)}const r=this._nonce;for(let o=t.length-1;o>=0;o--){const a=document.createElement("style");r&&a.setAttribute("nonce",r),a.textContent=t[o],this.shadowRoot.prepend(a)}}_parseSlots(){const t=this._slots={};let n;for(;n=this.firstChild;){const r=n.nodeType===1&&n.getAttribute("slot")||"default";(t[r]||(t[r]=[])).push(n),this.removeChild(n)}}_renderSlots(){const t=this._getSlots(),n=this._instance.type.__scopeId;for(let r=0;r(n.push(...Array.from(r.querySelectorAll("slot"))),n),[])}_injectChildStyle(t){this._applyStyles(t.styles,t)}_removeChildStyle(t){}}function dhe(e){const t=_o(),n=t&&t.ce;return n||null}function gIe(){const e=dhe();return e&&e.shadowRoot}function yIe(e="$style"){{const t=_o();if(!t)return Ti;const n=t.type.__cssModules;if(!n)return Ti;const r=n[e];return r||Ti}}const fhe=new WeakMap,hhe=new WeakMap,R8=Symbol("_moveCb"),mne=Symbol("_enterCb"),bIe=e=>(delete e.props.mode,e),_Ie=bIe({name:"TransitionGroup",props:Ci({},ihe,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=_o(),r=OU();let o,a;return Qa(()=>{if(!o.length)return;const s=e.moveClass||`${e.name||"v"}-move`;if(!CIe(o[0].el,n.vnode.el,s)){o=[];return}o.forEach(SIe),o.forEach(kIe);const l=o.filter(xIe);jj(n.vnode.el),l.forEach(c=>{const d=c.el,h=d.style;tf(d,s),h.transform=h.webkitTransform=h.transitionDuration="";const p=d[R8]=v=>{v&&v.target!==d||(!v||v.propertyName.endsWith("transform"))&&(d.removeEventListener("transitionend",p),d[R8]=null,jp(d,s))};d.addEventListener("transitionend",p)}),o=[]}),()=>{const s=Bi(e),l=ohe(s);let c=s.tag||Nt;if(o=[],a)for(let d=0;d{l.split(/\s+/).forEach(c=>c&&r.classList.remove(c))}),n.split(/\s+/).forEach(l=>l&&r.classList.add(l)),r.style.display="none";const a=t.nodeType===1?t:t.parentNode;a.appendChild(r);const{hasTransform:s}=she(r);return a.removeChild(r),s}const _0=e=>{const t=e.props["onUpdate:modelValue"]||!1;return qn(t)?n=>am(t,n):t};function wIe(e){e.target.composing=!0}function gne(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Vc=Symbol("_assign"),Ql={created(e,{modifiers:{lazy:t,trim:n,number:r}},o){e[Vc]=_0(o);const a=r||o.props&&o.props.type==="number";Sh(e,t?"change":"input",s=>{if(s.target.composing)return;let l=e.value;n&&(l=l.trim()),a&&(l=Vb(l)),e[Vc](l)}),n&&Sh(e,"change",()=>{e.value=e.value.trim()}),t||(Sh(e,"compositionstart",wIe),Sh(e,"compositionend",gne),Sh(e,"change",gne))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:o,number:a}},s){if(e[Vc]=_0(s),e.composing)return;const l=(a||e.type==="number")&&!/^0\d/.test(e.value)?Vb(e.value):e.value,c=t??"";l!==c&&(document.activeElement===e&&e.type!=="range"&&(r&&t===n||o&&e.value.trim()===c)||(e.value=c))}},YU={deep:!0,created(e,t,n){e[Vc]=_0(n),Sh(e,"change",()=>{const r=e._modelValue,o=Ay(e),a=e.checked,s=e[Vc];if(qn(r)){const l=V_(r,o),c=l!==-1;if(a&&!c)s(r.concat(o));else if(!a&&c){const d=[...r];d.splice(l,1),s(d)}}else if($0(r)){const l=new Set(r);a?l.add(o):l.delete(o),s(l)}else s(phe(e,a))})},mounted:yne,beforeUpdate(e,t,n){e[Vc]=_0(n),yne(e,t,n)}};function yne(e,{value:t,oldValue:n},r){e._modelValue=t;let o;if(qn(t))o=V_(t,r.props.value)>-1;else if($0(t))o=t.has(r.props.value);else{if(t===n)return;o=Fh(t,phe(e,!0))}e.checked!==o&&(e.checked=o)}const XU={created(e,{value:t},n){e.checked=Fh(t,n.props.value),e[Vc]=_0(n),Sh(e,"change",()=>{e[Vc](Ay(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[Vc]=_0(r),t!==n&&(e.checked=Fh(t,r.props.value))}},ZU={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const o=$0(t);Sh(e,"change",()=>{const a=Array.prototype.filter.call(e.options,s=>s.selected).map(s=>n?Vb(Ay(s)):Ay(s));e[Vc](e.multiple?o?new Set(a):a:a[0]),e._assigning=!0,Cn(()=>{e._assigning=!1})}),e[Vc]=_0(r)},mounted(e,{value:t}){bne(e,t)},beforeUpdate(e,t,n){e[Vc]=_0(n)},updated(e,{value:t}){e._assigning||bne(e,t)}};function bne(e,t){const n=e.multiple,r=qn(t);if(!(n&&!r&&!$0(t))){for(let o=0,a=e.options.length;oString(d)===String(l)):s.selected=V_(t,l)>-1}else s.selected=t.has(l);else if(Fh(Ay(s),t)){e.selectedIndex!==o&&(e.selectedIndex=o);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Ay(e){return"_value"in e?e._value:e.value}function phe(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const b5={created(e,t,n){fx(e,t,n,null,"created")},mounted(e,t,n){fx(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){fx(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){fx(e,t,n,r,"updated")}};function vhe(e,t){switch(e){case"SELECT":return ZU;case"TEXTAREA":return Ql;default:switch(t){case"checkbox":return YU;case"radio":return XU;default:return Ql}}}function fx(e,t,n,r,o){const s=vhe(e.tagName,n.props&&n.props.type)[o];s&&s(e,t,n,r)}function EIe(){Ql.getSSRProps=({value:e})=>({value:e}),XU.getSSRProps=({value:e},t)=>{if(t.props&&Fh(t.props.value,e))return{checked:!0}},YU.getSSRProps=({value:e},t)=>{if(qn(e)){if(t.props&&V_(e,t.props.value)>-1)return{checked:!0}}else if($0(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},b5.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const n=vhe(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}const TIe=["ctrl","shift","alt","meta"],AIe={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)=>TIe.some(n=>e[`${n}Key`]&&!t.includes(n))},us=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=((o,...a)=>{for(let s=0;s{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=(o=>{if(!("key"in o))return;const a=_l(o.key);if(t.some(s=>s===a||IIe[s]===a))return e(o)}))},mhe=Ci({patchProp:hIe},ZAe);let Y4,_ne=!1;function ghe(){return Y4||(Y4=Rfe(mhe))}function yhe(){return Y4=_ne?Y4:Mfe(mhe),_ne=!0,Y4}const Xc=((...e)=>{ghe().render(...e)}),LIe=((...e)=>{yhe().hydrate(...e)}),Iy=((...e)=>{const t=ghe().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=She(r);if(!o)return;const a=t._component;!Ir(a)&&!a.render&&!a.template&&(a.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const s=n(o,!1,_he(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),s},t}),bhe=((...e)=>{const t=yhe().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=She(r);if(o)return n(o,!0,_he(o))},t});function _he(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function She(e){return Or(e)?document.querySelector(e):e}let Sne=!1;const DIe=()=>{Sne||(Sne=!0,EIe(),nIe())},PIe=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:ffe,BaseTransitionPropsValidators:$U,Comment:ks,DeprecationTypes:qAe,EffectScope:EU,ErrorCodes:d5e,ErrorTypeStrings:VAe,Fragment:Nt,KeepAlive:O5e,ReactiveEffect:Ub,Static:cm,Suspense:xAe,Teleport:qm,Text:h0,TrackOpTypes:i5e,Transition:Cs,TransitionGroup:r3,TriggerOpTypes:o5e,VueElement:y5,assertNumber:c5e,callWithAsyncErrorHandling:Yc,callWithErrorHandling:t3,camelize:$o,capitalize:B0,cloneVNode:wl,compatUtils:KAe,computed:j,createApp:Iy,createBlock:Ye,createCommentVNode:Le,createElementBlock:Q,createElementVNode:I,createHydrationRenderer:Mfe,createPropsRestProxy:Z5e,createRenderer:Rfe,createSSRApp:bhe,createSlots:yo,createStaticVNode:xh,createTextVNode:We,createVNode:O,customRef:Jde,defineAsyncComponent:Ym,defineComponent:Se,defineCustomElement:che,defineEmits:V5e,defineExpose:z5e,defineModel:W5e,defineOptions:U5e,defineProps:j5e,defineSSRCustomElement:vIe,defineSlots:H5e,devtools:zAe,effect:ATe,effectScope:TU,getCurrentInstance:_o,getCurrentScope:s5,getCurrentWatcher:s5e,getTransitionRawChildren:p5,guardReactiveProps:Sa,h:da,handleError:Km,hasInjectionContext:Cfe,hydrate:LIe,hydrateOnIdle:A5e,hydrateOnInteraction:P5e,hydrateOnMediaQuery:D5e,hydrateOnVisible:L5e,initCustomFormatter:NAe,initDirectivesForSSR:DIe,inject:On,isMemoSame:ehe,isProxy:d5,isReactive:gf,isReadonly:zh,isRef:Bo,isRuntimeOnly:OAe,isShallow:lc,isVNode:Wi,markRaw:f5,mergeDefaults:Y5e,mergeModels:X5e,mergeProps:Vt,nextTick:Cn,normalizeClass:ue,normalizeProps:Yi,normalizeStyle:Ke,onActivated:NU,onBeforeMount:vfe,onBeforeUnmount:Io,onBeforeUpdate:jU,onDeactivated:FU,onErrorCaptured:bfe,onMounted:bn,onRenderTracked:yfe,onRenderTriggered:gfe,onScopeDispose:AU,onServerPrefetch:mfe,onUnmounted:gi,onUpdated:Qa,onWatcherCleanup:efe,openBlock:z,popScopeId:m5e,provide:ri,proxyRefs:RU,pushScopeId:v5e,queuePostFlushCb:Kb,reactive:Xt,readonly:Gb,ref:fe,registerRuntimeCompiler:MAe,render:Xc,renderList:gn,renderSlot:vt,resolveComponent:Ie,resolveDirective:n3,resolveDynamicComponent:Wa,resolveFilter:GAe,resolveTransitionHooks:wy,setBlockTracking:Jb,setDevtoolsHook:UAe,setTransitionHooks:Uh,shallowReactive:PU,shallowReadonly:qTe,shallowRef:d0,ssrContextKey:Nfe,ssrUtils:WAe,stop:ITe,toDisplayString:ze,toHandlerKey:sm,toHandlers:N5e,toRaw:Bi,toRef:Lu,toRefs:nn,toValue:ZTe,transformVNodeArgs:IAe,triggerRef:XTe,unref:et,useAttrs:q5e,useCssModule:yIe,useCssVars:uhe,useHost:dhe,useId:_5e,useModel:vAe,useSSRContext:Ffe,useShadowRoot:gIe,useSlots:K5e,useTemplateRef:S5e,useTransitionState:OU,vModelCheckbox:YU,vModelDynamic:b5,vModelRadio:XU,vModelSelect:ZU,vModelText:Ql,vShow:Qo,version:the,warn:jAe,watch:Rt,watchEffect:Os,watchPostEffect:hAe,watchSyncEffect:jfe,withAsyncContext:J5e,withCtx:de,withDefaults:G5e,withDirectives:Ai,withKeys:Ch,withMemo:FAe,withModifiers:us,withScopeId:g5e},Symbol.toStringTag,{value:"Module"}));/*! * vue-router v4.5.1 * (c) 2025 Eduardo San Martin Morote * @license MIT */const $1=typeof document<"u";function khe(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function RIe(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&khe(e.default)}const so=Object.assign;function gP(e,t){const n={};for(const r in t){const o=t[r];n[r]=Ld(o)?o.map(e):e(o)}return n}const X4=()=>{},Ld=Array.isArray,xhe=/#/g,MIe=/&/g,OIe=/\//g,$Ie=/=/g,BIe=/\?/g,Che=/\+/g,NIe=/%5B/g,FIe=/%5D/g,whe=/%5E/g,jIe=/%60/g,Ehe=/%7B/g,VIe=/%7C/g,The=/%7D/g,zIe=/%20/g;function JU(e){return encodeURI(""+e).replace(VIe,"|").replace(NIe,"[").replace(FIe,"]")}function UIe(e){return JU(e).replace(Ehe,"{").replace(The,"}").replace(whe,"^")}function zj(e){return JU(e).replace(Che,"%2B").replace(zIe,"+").replace(xhe,"%23").replace(MIe,"%26").replace(jIe,"`").replace(Ehe,"{").replace(The,"}").replace(whe,"^")}function HIe(e){return zj(e).replace($Ie,"%3D")}function WIe(e){return JU(e).replace(xhe,"%23").replace(BIe,"%3F")}function GIe(e){return e==null?"":WIe(e).replace(OIe,"%2F")}function Qb(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const KIe=/\/$/,qIe=e=>e.replace(KIe,"");function yP(e,t,n="/"){let r,o={},a="",s="";const l=t.indexOf("#");let c=t.indexOf("?");return l=0&&(c=-1),c>-1&&(r=t.slice(0,c),a=t.slice(c+1,l>-1?l:t.length),o=e(a)),l>-1&&(r=r||t.slice(0,l),s=t.slice(l,t.length)),r=JIe(r??t,n),{fullPath:r+(a&&"?")+a+s,path:r,query:o,hash:Qb(s)}}function YIe(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function kne(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function XIe(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&Ly(t.matched[r],n.matched[o])&&Ahe(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Ly(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Ahe(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!ZIe(e[n],t[n]))return!1;return!0}function ZIe(e,t){return Ld(e)?xne(e,t):Ld(t)?xne(t,e):e===t}function xne(e,t){return Ld(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function JIe(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),o=r[r.length-1];(o===".."||o===".")&&r.push("");let a=n.length-1,s,l;for(s=0;s1&&a--;else break;return n.slice(0,a).join("/")+"/"+r.slice(s).join("/")}const wp={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var e_;(function(e){e.pop="pop",e.push="push"})(e_||(e_={}));var Z4;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Z4||(Z4={}));function QIe(e){if(!e)if($1){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),qIe(e)}const eLe=/^[^#]+#/;function tLe(e,t){return e.replace(eLe,"#")+t}function nLe(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const _5=()=>({left:window.scrollX,top:window.scrollY});function rLe(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=nLe(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Cne(e,t){return(history.state?history.state.position-t:-1)+e}const Uj=new Map;function iLe(e,t){Uj.set(e,t)}function oLe(e){const t=Uj.get(e);return Uj.delete(e),t}let sLe=()=>location.protocol+"//"+location.host;function Ihe(e,t){const{pathname:n,search:r,hash:o}=t,a=e.indexOf("#");if(a>-1){let l=o.includes(e.slice(a))?e.slice(a).length:1,c=o.slice(l);return c[0]!=="/"&&(c="/"+c),kne(c,"")}return kne(n,e)+r+o}function aLe(e,t,n,r){let o=[],a=[],s=null;const l=({state:v})=>{const g=Ihe(e,location),y=n.value,S=t.value;let k=0;if(v){if(n.value=g,t.value=v,s&&s===y){s=null;return}k=S?v.position-S.position:0}else r(g);o.forEach(C=>{C(n.value,y,{delta:k,type:e_.pop,direction:k?k>0?Z4.forward:Z4.back:Z4.unknown})})};function c(){s=n.value}function d(v){o.push(v);const g=()=>{const y=o.indexOf(v);y>-1&&o.splice(y,1)};return a.push(g),g}function h(){const{history:v}=window;v.state&&v.replaceState(so({},v.state,{scroll:_5()}),"")}function p(){for(const v of a)v();a=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",h)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",h,{passive:!0}),{pauseListeners:c,listen:d,destroy:p}}function wne(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?_5():null}}function lLe(e){const{history:t,location:n}=window,r={value:Ihe(e,n)},o={value:t.state};o.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(c,d,h){const p=e.indexOf("#"),v=p>-1?(n.host&&document.querySelector("base")?e:e.slice(p))+c:sLe()+e+c;try{t[h?"replaceState":"pushState"](d,"",v),o.value=d}catch(g){console.error(g),n[h?"replace":"assign"](v)}}function s(c,d){const h=so({},t.state,wne(o.value.back,c,o.value.forward,!0),d,{position:o.value.position});a(c,h,!0),r.value=c}function l(c,d){const h=so({},o.value,t.state,{forward:c,scroll:_5()});a(h.current,h,!0);const p=so({},wne(r.value,c,null),{position:h.position+1},d);a(c,p,!1),r.value=c}return{location:r,state:o,push:l,replace:s}}function uLe(e){e=QIe(e);const t=lLe(e),n=aLe(e,t.state,t.location,t.replace);function r(a,s=!0){s||n.pauseListeners(),history.go(a)}const o=so({location:"",base:e,go:r,createHref:tLe.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function cLe(e){return typeof e=="string"||e&&typeof e=="object"}function Lhe(e){return typeof e=="string"||typeof e=="symbol"}const Dhe=Symbol("");var Ene;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Ene||(Ene={}));function Dy(e,t){return so(new Error,{type:e,[Dhe]:!0},t)}function ah(e,t){return e instanceof Error&&Dhe in e&&(t==null||!!(e.type&t))}const Tne="[^/]+?",dLe={sensitive:!1,strict:!1,start:!0,end:!0},fLe=/[.+*?^${}()[\]/\\]/g;function hLe(e,t){const n=so({},dLe,t),r=[];let o=n.start?"^":"";const a=[];for(const d of e){const h=d.length?[]:[90];n.strict&&!d.length&&(o+="/");for(let p=0;pt.length?t.length===1&&t[0]===80?1:-1:0}function Phe(e,t){let n=0;const r=e.score,o=t.score;for(;n0&&t[t.length-1]<0}const vLe={type:0,value:""},mLe=/[a-zA-Z0-9_]/;function gLe(e){if(!e)return[[]];if(e==="/")return[[vLe]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(g){throw new Error(`ERR (${n})/"${d}": ${g}`)}let n=0,r=n;const o=[];let a;function s(){a&&o.push(a),a=[]}let l=0,c,d="",h="";function p(){d&&(n===0?a.push({type:0,value:d}):n===1||n===2||n===3?(a.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${d}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:d,regexp:h,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),d="")}function v(){d+=c}for(;l{s(E)}:X4}function s(p){if(Lhe(p)){const v=r.get(p);v&&(r.delete(p),n.splice(n.indexOf(v),1),v.children.forEach(s),v.alias.forEach(s))}else{const v=n.indexOf(p);v>-1&&(n.splice(v,1),p.record.name&&r.delete(p.record.name),p.children.forEach(s),p.alias.forEach(s))}}function l(){return n}function c(p){const v=kLe(p,n);n.splice(v,0,p),p.record.name&&!Dne(p)&&r.set(p.record.name,p)}function d(p,v){let g,y={},S,k;if("name"in p&&p.name){if(g=r.get(p.name),!g)throw Dy(1,{location:p});k=g.record.name,y=so(Ine(v.params,g.keys.filter(E=>!E.optional).concat(g.parent?g.parent.keys.filter(E=>E.optional):[]).map(E=>E.name)),p.params&&Ine(p.params,g.keys.map(E=>E.name))),S=g.stringify(y)}else if(p.path!=null)S=p.path,g=n.find(E=>E.re.test(S)),g&&(y=g.parse(S),k=g.record.name);else{if(g=v.name?r.get(v.name):n.find(E=>E.re.test(v.path)),!g)throw Dy(1,{location:p,currentLocation:v});k=g.record.name,y=so({},v.params,p.params),S=g.stringify(y)}const C=[];let x=g;for(;x;)C.unshift(x.record),x=x.parent;return{name:k,path:S,params:y,matched:C,meta:SLe(C)}}e.forEach(p=>a(p));function h(){n.length=0,r.clear()}return{addRoute:a,resolve:d,removeRoute:s,clearRoutes:h,getRoutes:l,getRecordMatcher:o}}function Ine(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Lne(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:_Le(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function _Le(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function Dne(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function SLe(e){return e.reduce((t,n)=>so(t,n.meta),{})}function Pne(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function kLe(e,t){let n=0,r=t.length;for(;n!==r;){const a=n+r>>1;Phe(e,t[a])<0?r=a:n=a+1}const o=xLe(e);return o&&(r=t.lastIndexOf(o,r-1)),r}function xLe(e){let t=e;for(;t=t.parent;)if(Rhe(t)&&Phe(e,t)===0)return t}function Rhe({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function CLe(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;oa&&zj(a)):[r&&zj(r)]).forEach(a=>{a!==void 0&&(t+=(t.length?"&":"")+n,a!=null&&(t+="="+a))})}return t}function wLe(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=Ld(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return t}const ELe=Symbol(""),Mne=Symbol(""),S5=Symbol(""),QU=Symbol(""),Hj=Symbol("");function G2(){let e=[];function t(r){return e.push(r),()=>{const o=e.indexOf(r);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Yp(e,t,n,r,o,a=s=>s()){const s=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise((l,c)=>{const d=v=>{v===!1?c(Dy(4,{from:n,to:t})):v instanceof Error?c(v):cLe(v)?c(Dy(2,{from:t,to:v})):(s&&r.enterCallbacks[o]===s&&typeof v=="function"&&s.push(v),l())},h=a(()=>e.call(r&&r.instances[o],t,n,d));let p=Promise.resolve(h);e.length<3&&(p=p.then(d)),p.catch(v=>c(v))})}function bP(e,t,n,r,o=a=>a()){const a=[];for(const s of e)for(const l in s.components){let c=s.components[l];if(!(t!=="beforeRouteEnter"&&!s.instances[l]))if(khe(c)){const h=(c.__vccOpts||c)[t];h&&a.push(Yp(h,n,r,s,l,o))}else{let d=c();a.push(()=>d.then(h=>{if(!h)throw new Error(`Couldn't resolve component "${l}" at "${s.path}"`);const p=RIe(h)?h.default:h;s.mods[l]=h,s.components[l]=p;const g=(p.__vccOpts||p)[t];return g&&Yp(g,n,r,s,l,o)()}))}}return a}function One(e){const t=On(S5),n=On(QU),r=j(()=>{const c=et(e.to);return t.resolve(c)}),o=j(()=>{const{matched:c}=r.value,{length:d}=c,h=c[d-1],p=n.matched;if(!h||!p.length)return-1;const v=p.findIndex(Ly.bind(null,h));if(v>-1)return v;const g=$ne(c[d-2]);return d>1&&$ne(h)===g&&p[p.length-1].path!==g?p.findIndex(Ly.bind(null,c[d-2])):v}),a=j(()=>o.value>-1&&DLe(n.params,r.value.params)),s=j(()=>o.value>-1&&o.value===n.matched.length-1&&Ahe(n.params,r.value.params));function l(c={}){if(LLe(c)){const d=t[et(e.replace)?"replace":"push"](et(e.to)).catch(X4);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>d),d}return Promise.resolve()}return{route:r,href:j(()=>r.value.href),isActive:a,isExactActive:s,navigate:l}}function TLe(e){return e.length===1?e[0]:e}const ALe=Se({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"},viewTransition:Boolean},useLink:One,setup(e,{slots:t}){const n=Xt(One(e)),{options:r}=On(S5),o=j(()=>({[Bne(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Bne(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const a=t.default&&TLe(t.default(n));return e.custom?a:da("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},a)}}}),ILe=ALe;function LLe(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 DLe(e,t){for(const n in t){const r=t[n],o=e[n];if(typeof r=="string"){if(r!==o)return!1}else if(!Ld(o)||o.length!==r.length||r.some((a,s)=>a!==o[s]))return!1}return!0}function $ne(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Bne=(e,t,n)=>e??t??n,PLe=Se({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=On(Hj),o=j(()=>e.route||r.value),a=On(Mne,0),s=j(()=>{let d=et(a);const{matched:h}=o.value;let p;for(;(p=h[d])&&!p.components;)d++;return d}),l=j(()=>o.value.matched[s.value]);ri(Mne,j(()=>s.value+1)),ri(ELe,l),ri(Hj,o);const c=fe();return Rt(()=>[c.value,l.value,e.name],([d,h,p],[v,g,y])=>{h&&(h.instances[p]=d,g&&g!==h&&d&&d===v&&(h.leaveGuards.size||(h.leaveGuards=g.leaveGuards),h.updateGuards.size||(h.updateGuards=g.updateGuards))),d&&h&&(!g||!Ly(h,g)||!v)&&(h.enterCallbacks[p]||[]).forEach(S=>S(d))},{flush:"post"}),()=>{const d=o.value,h=e.name,p=l.value,v=p&&p.components[h];if(!v)return Nne(n.default,{Component:v,route:d});const g=p.props[h],y=g?g===!0?d.params:typeof g=="function"?g(d):g:null,k=da(v,so({},y,t,{onVnodeUnmounted:C=>{C.component.isUnmounted&&(p.instances[h]=null)},ref:c}));return Nne(n.default,{Component:k,route:d})||k}}});function Nne(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const RLe=PLe;function MLe(e){const t=bLe(e.routes,e),n=e.parseQuery||CLe,r=e.stringifyQuery||Rne,o=e.history,a=G2(),s=G2(),l=G2(),c=d0(wp);let d=wp;$1&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const h=gP.bind(null,me=>""+me),p=gP.bind(null,GIe),v=gP.bind(null,Qb);function g(me,_e){let Ue,Qe;return Lhe(me)?(Ue=t.getRecordMatcher(me),Qe=_e):Qe=me,t.addRoute(Qe,Ue)}function y(me){const _e=t.getRecordMatcher(me);_e&&t.removeRoute(_e)}function S(){return t.getRoutes().map(me=>me.record)}function k(me){return!!t.getRecordMatcher(me)}function C(me,_e){if(_e=so({},_e||c.value),typeof me=="string"){const be=yP(n,me,_e.path),Fe=t.resolve({path:be.path},_e),He=o.createHref(be.fullPath);return so(be,Fe,{params:v(Fe.params),hash:Qb(be.hash),redirectedFrom:void 0,href:He})}let Ue;if(me.path!=null)Ue=so({},me,{path:yP(n,me.path,_e.path).path});else{const be=so({},me.params);for(const Fe in be)be[Fe]==null&&delete be[Fe];Ue=so({},me,{params:p(be)}),_e.params=p(_e.params)}const Qe=t.resolve(Ue,_e),Me=me.hash||"";Qe.params=h(v(Qe.params));const je=YIe(r,so({},me,{hash:UIe(Me),path:Qe.path})),ge=o.createHref(je);return so({fullPath:je,hash:Me,query:r===Rne?wLe(me.query):me.query||{}},Qe,{redirectedFrom:void 0,href:ge})}function x(me){return typeof me=="string"?yP(n,me,c.value.path):so({},me)}function E(me,_e){if(d!==me)return Dy(8,{from:_e,to:me})}function _(me){return P(me)}function T(me){return _(so(x(me),{replace:!0}))}function D(me){const _e=me.matched[me.matched.length-1];if(_e&&_e.redirect){const{redirect:Ue}=_e;let Qe=typeof Ue=="function"?Ue(me):Ue;return typeof Qe=="string"&&(Qe=Qe.includes("?")||Qe.includes("#")?Qe=x(Qe):{path:Qe},Qe.params={}),so({query:me.query,hash:me.hash,params:Qe.path!=null?{}:me.params},Qe)}}function P(me,_e){const Ue=d=C(me),Qe=c.value,Me=me.state,je=me.force,ge=me.replace===!0,be=D(Ue);if(be)return P(so(x(be),{state:typeof be=="object"?so({},Me,be.state):Me,force:je,replace:ge}),_e||Ue);const Fe=Ue;Fe.redirectedFrom=_e;let He;return!je&&XIe(r,Qe,Ue)&&(He=Dy(16,{to:Fe,from:Qe}),ee(Qe,Qe,!0,!1)),(He?Promise.resolve(He):L(Fe,Qe)).catch(Je=>ah(Je)?ah(Je,2)?Je:q(Je):Z(Je,Fe,Qe)).then(Je=>{if(Je){if(ah(Je,2))return P(so({replace:ge},x(Je.to),{state:typeof Je.to=="object"?so({},Me,Je.to.state):Me,force:je}),_e||Fe)}else Je=F(Fe,Qe,!0,ge,Me);return B(Fe,Qe,Je),Je})}function M(me,_e){const Ue=E(me,_e);return Ue?Promise.reject(Ue):Promise.resolve()}function $(me){const _e=re.values().next().value;return _e&&typeof _e.runWithContext=="function"?_e.runWithContext(me):me()}function L(me,_e){let Ue;const[Qe,Me,je]=OLe(me,_e);Ue=bP(Qe.reverse(),"beforeRouteLeave",me,_e);for(const be of Qe)be.leaveGuards.forEach(Fe=>{Ue.push(Yp(Fe,me,_e))});const ge=M.bind(null,me,_e);return Ue.push(ge),Ne(Ue).then(()=>{Ue=[];for(const be of a.list())Ue.push(Yp(be,me,_e));return Ue.push(ge),Ne(Ue)}).then(()=>{Ue=bP(Me,"beforeRouteUpdate",me,_e);for(const be of Me)be.updateGuards.forEach(Fe=>{Ue.push(Yp(Fe,me,_e))});return Ue.push(ge),Ne(Ue)}).then(()=>{Ue=[];for(const be of je)if(be.beforeEnter)if(Ld(be.beforeEnter))for(const Fe of be.beforeEnter)Ue.push(Yp(Fe,me,_e));else Ue.push(Yp(be.beforeEnter,me,_e));return Ue.push(ge),Ne(Ue)}).then(()=>(me.matched.forEach(be=>be.enterCallbacks={}),Ue=bP(je,"beforeRouteEnter",me,_e,$),Ue.push(ge),Ne(Ue))).then(()=>{Ue=[];for(const be of s.list())Ue.push(Yp(be,me,_e));return Ue.push(ge),Ne(Ue)}).catch(be=>ah(be,8)?be:Promise.reject(be))}function B(me,_e,Ue){l.list().forEach(Qe=>$(()=>Qe(me,_e,Ue)))}function F(me,_e,Ue,Qe,Me){const je=E(me,_e);if(je)return je;const ge=_e===wp,be=$1?history.state:{};Ue&&(Qe||ge?o.replace(me.fullPath,so({scroll:ge&&be&&be.scroll},Me)):o.push(me.fullPath,Me)),c.value=me,ee(me,_e,Ue,ge),q()}let W;function U(){W||(W=o.listen((me,_e,Ue)=>{if(!ke.listening)return;const Qe=C(me),Me=D(Qe);if(Me){P(so(Me,{replace:!0,force:!0}),Qe).catch(X4);return}d=Qe;const je=c.value;$1&&iLe(Cne(je.fullPath,Ue.delta),_5()),L(Qe,je).catch(ge=>ah(ge,12)?ge:ah(ge,2)?(P(so(x(ge.to),{force:!0}),Qe).then(be=>{ah(be,20)&&!Ue.delta&&Ue.type===e_.pop&&o.go(-1,!1)}).catch(X4),Promise.reject()):(Ue.delta&&o.go(-Ue.delta,!1),Z(ge,Qe,je))).then(ge=>{ge=ge||F(Qe,je,!1),ge&&(Ue.delta&&!ah(ge,8)?o.go(-Ue.delta,!1):Ue.type===e_.pop&&ah(ge,20)&&o.go(-1,!1)),B(Qe,je,ge)}).catch(X4)}))}let G=G2(),X=G2(),oe;function Z(me,_e,Ue){q(me);const Qe=X.list();return Qe.length?Qe.forEach(Me=>Me(me,_e,Ue)):console.error(me),Promise.reject(me)}function H(){return oe&&c.value!==wp?Promise.resolve():new Promise((me,_e)=>{G.add([me,_e])})}function q(me){return oe||(oe=!me,U(),G.list().forEach(([_e,Ue])=>me?Ue(me):_e()),G.reset()),me}function ee(me,_e,Ue,Qe){const{scrollBehavior:Me}=e;if(!$1||!Me)return Promise.resolve();const je=!Ue&&oLe(Cne(me.fullPath,0))||(Qe||!Ue)&&history.state&&history.state.scroll||null;return Cn().then(()=>Me(me,_e,je)).then(ge=>ge&&rLe(ge)).catch(ge=>Z(ge,me,_e))}const ne=me=>o.go(me);let ae;const re=new Set,ke={currentRoute:c,listening:!0,addRoute:g,removeRoute:y,clearRoutes:t.clearRoutes,hasRoute:k,getRoutes:S,resolve:C,options:e,push:_,replace:T,go:ne,back:()=>ne(-1),forward:()=>ne(1),beforeEach:a.add,beforeResolve:s.add,afterEach:l.add,onError:X.add,isReady:H,install(me){const _e=this;me.component("RouterLink",ILe),me.component("RouterView",RLe),me.config.globalProperties.$router=_e,Object.defineProperty(me.config.globalProperties,"$route",{enumerable:!0,get:()=>et(c)}),$1&&!ae&&c.value===wp&&(ae=!0,_(o.location).catch(Me=>{}));const Ue={};for(const Me in wp)Object.defineProperty(Ue,Me,{get:()=>c.value[Me],enumerable:!0});me.provide(S5,_e),me.provide(QU,PU(Ue)),me.provide(Hj,c);const Qe=me.unmount;re.add(me),me.unmount=function(){re.delete(me),re.size<1&&(d=wp,W&&W(),W=null,c.value=wp,ae=!1,oe=!1),Qe()}}};function Ne(me){return me.reduce((_e,Ue)=>_e.then(()=>$(Ue)),Promise.resolve())}return ke}function OLe(e,t){const n=[],r=[],o=[],a=Math.max(t.matched.length,e.matched.length);for(let s=0;sLy(d,l))?r.push(l):n.push(l));const c=e.matched[s];c&&(t.matched.find(d=>Ly(d,c))||o.push(c))}return[n,r,o]}function el(){return On(S5)}function k5(e){return On(QU)}const Xm=Object.prototype.toString;function or(e){return Xm.call(e)==="[object Array]"}function Tl(e){return Xm.call(e)==="[object Null]"}function El(e){return Xm.call(e)==="[object Boolean]"}function br(e){return Xm.call(e)==="[object Object]"}const Am=e=>Xm.call(e)==="[object Promise]";function cs(e){return Xm.call(e)==="[object String]"}function Ze(e){return Xm.call(e)==="[object Number]"&&e===e}function An(e){return e===void 0}function En(e){return typeof e=="function"}function $Le(e){return br(e)&&Object.keys(e).length===0}function Fne(e){return e||e===0}function qC(e){return e===window}const Mhe=e=>e?.$!==void 0,BLe=e=>/\[Q]Q/.test(e);function zc(e){return br(e)&&"$y"in e&&"$M"in e&&"$D"in e&&"$d"in e&&"$H"in e&&"$m"in e&&"$s"in e}const Ya=Symbol("ArcoConfigProvider"),hx={formatYear:"YYYY 年",formatMonth:"YYYY 年 MM 月",today:"今天",view:{month:"月",year:"年",week:"周",day:"日"},month:{long:{January:"一月",February:"二月",March:"三月",April:"四月",May:"五月",June:"六月",July:"七月",August:"八月",September:"九月",October:"十月",November:"十一月",December:"十二月"},short:{January:"一月",February:"二月",March:"三月",April:"四月",May:"五月",June:"六月",July:"七月",August:"八月",September:"九月",October:"十月",November:"十一月",December:"十二月"}},week:{long:{self:"周",monday:"周一",tuesday:"周二",wednesday:"周三",thursday:"周四",friday:"周五",saturday:"周六",sunday:"周日"},short:{self:"周",monday:"一",tuesday:"二",wednesday:"三",thursday:"四",friday:"五",saturday:"六",sunday:"日"}}},NLe={locale:"zh-CN",empty:{description:"暂无数据"},drawer:{okText:"确定",cancelText:"取消"},popconfirm:{okText:"确定",cancelText:"取消"},modal:{okText:"确定",cancelText:"取消"},pagination:{goto:"前往",page:"页",countPerPage:"条/页",total:"共 {0} 条"},table:{okText:"确定",resetText:"重置"},upload:{start:"开始",cancel:"取消",delete:"删除",retry:"点击重试",buttonText:"点击上传",preview:"预览",drag:"点击或拖拽文件到此处上传",dragHover:"释放文件并开始上传",error:"上传失败"},calendar:hx,datePicker:{view:hx.view,month:hx.month,week:hx.week,placeholder:{date:"请选择日期",week:"请选择周",month:"请选择月份",year:"请选择年份",quarter:"请选择季度",time:"请选择时间"},rangePlaceholder:{date:["开始日期","结束日期"],week:["开始周","结束周"],month:["开始月份","结束月份"],year:["开始年份","结束年份"],quarter:["开始季度","结束季度"],time:["开始时间","结束时间"]},selectTime:"选择时间",today:"今天",now:"此刻",ok:"确定"},image:{loading:"加载中"},imagePreview:{fullScreen:"全屏",rotateRight:"向右旋转",rotateLeft:"向左旋转",zoomIn:"放大",zoomOut:"缩小",originalSize:"原始尺寸"},typography:{copied:"已复制",copy:"复制",expand:"展开",collapse:"折叠",edit:"编辑"},form:{validateMessages:{required:"#{field} 是必填项",type:{string:"#{field} 不是合法的文本类型",number:"#{field} 不是合法的数字类型",boolean:"#{field} 不是合法的布尔类型",array:"#{field} 不是合法的数组类型",object:"#{field} 不是合法的对象类型",url:"#{field} 不是合法的 url 地址",email:"#{field} 不是合法的邮箱地址",ip:"#{field} 不是合法的 IP 地址"},number:{min:"`#{value}` 小于最小值 `#{min}`",max:"`#{value}` 大于最大值 `#{max}`",equal:"`#{value}` 不等于 `#{equal}`",range:"`#{value}` 不在 `#{min} ~ #{max}` 范围内",positive:"`#{value}` 不是正数",negative:"`#{value}` 不是负数"},array:{length:"`#{field}` 个数不等于 #{length}",minLength:"`#{field}` 个数最少为 #{minLength}",maxLength:"`#{field}` 个数最多为 #{maxLength}",includes:"#{field} 不包含 #{includes}",deepEqual:"#{field} 不等于 #{deepEqual}",empty:"`#{field}` 不是空数组"},string:{minLength:"字符数最少为 #{minLength}",maxLength:"字符数最多为 #{maxLength}",length:"字符数必须是 #{length}",match:"`#{value}` 不符合模式 #{pattern}",uppercase:"`#{value}` 必须全大写",lowercase:"`#{value}` 必须全小写"},object:{deepEqual:"`#{field}` 不等于期望值",hasKeys:"`#{field}` 不包含必须字段",empty:"`#{field}` 不是对象"},boolean:{true:"期望是 `true`",false:"期望是 `false`"}}},colorPicker:{history:"最近使用颜色",preset:"系统预设颜色",empty:"暂无"}},eH=fe("zh-CN"),M8=Xt({"zh-CN":NLe}),FLe=(e,t)=>{for(const n of Object.keys(e))(!M8[n]||t?.overwrite)&&(M8[n]=e[n])},jLe=e=>{if(!M8[e]){console.warn(`use ${e} failed! Please add ${e} first`);return}eH.value=e},VLe=()=>eH.value,No=()=>{const e=On(Ya,void 0),t=j(()=>{var o;return(o=e?.locale)!=null?o:M8[eH.value]}),n=j(()=>t.value.locale);return{i18nMessage:t,locale:n,t:(o,...a)=>{const s=o.split(".");let l=t.value;for(const c of s){if(!l[c])return o;l=l[c]}return cs(l)&&a.length>0?l.replace(/{(\d+)}/g,(c,d)=>{var h;return(h=a[d])!=null?h:c}):l}}},zLe="A",ULe="arco",Wj="$arco",Yn=e=>{var t;return(t=e?.componentPrefix)!=null?t:zLe},Xn=(e,t)=>{var n;t&&t.classPrefix&&(e.config.globalProperties[Wj]={...(n=e.config.globalProperties[Wj])!=null?n:{},classPrefix:t.classPrefix})},Te=e=>{var t,n,r;const o=_o(),a=On(Ya,void 0),s=(r=(n=a?.prefixCls)!=null?n:(t=o?.appContext.config.globalProperties[Wj])==null?void 0:t.classPrefix)!=null?r:ULe;return e?`${s}-${e}`:s};var Ohe=(function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(o,a){return o[0]===n?(r=a,!0):!1}),r}return(function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var r=e(this.__entries__,n),o=this.__entries__[r];return o&&o[1]},t.prototype.set=function(n,r){var o=e(this.__entries__,n);~o?this.__entries__[o][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,o=e(r,n);~o&&r.splice(o,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var o=0,a=this.__entries__;o0},e.prototype.connect_=function(){!Gj||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),YLe?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!Gj||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,o=qLe.some(function(a){return!!~r.indexOf(a)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e})(),$he=(function(e,t){for(var n=0,r=Object.keys(t);n"u"||!(Element instanceof Object))){if(!(t instanceof Py(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new i7e(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Py(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new o7e(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e})(),Nhe=typeof WeakMap<"u"?new WeakMap:new Ohe,Fhe=(function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=XLe.getInstance(),r=new s7e(t,n,this);Nhe.set(this,r)}return e})();["observe","unobserve","disconnect"].forEach(function(e){Fhe.prototype[e]=function(){var t;return(t=Nhe.get(this))[e].apply(t,arguments)}});var C5=(function(){return typeof O8.ResizeObserver<"u"?O8.ResizeObserver:Fhe})();const w5=e=>!!(e&&e.shapeFlag&1),W_=(e,t)=>!!(e&&e.shapeFlag&6),a7e=(e,t)=>!!(e&&e.shapeFlag&8),E5=(e,t)=>!!(e&&e.shapeFlag&16),T5=(e,t)=>!!(e&&e.shapeFlag&32),ry=e=>{var t,n;if(e)for(const r of e){if(w5(r)||W_(r))return r;if(E5(r,r.children)){const o=ry(r.children);if(o)return o}else if(T5(r,r.children)){const o=(n=(t=r.children).default)==null?void 0:n.call(t);if(o){const a=ry(o);if(a)return a}}else if(or(r)){const o=ry(r);if(o)return o}}},l7e=e=>{if(!e)return!0;for(const t of e)if(t.children)return!1;return!0},jhe=(e,t)=>{if(e&&e.length>0)for(let n=0;n0&&jhe(o,t))return!0}return!1},tH=e=>{if(E5(e,e.children))return e.children;if(or(e))return e},Vhe=e=>{var t,n;if(w5(e))return e.el;if(W_(e)){if(((t=e.el)==null?void 0:t.nodeType)===1)return e.el;if((n=e.component)!=null&&n.subTree){const r=Vhe(e.component.subTree);if(r)return r}}else{const r=tH(e);return zhe(r)}},zhe=e=>{if(e&&e.length>0)for(const t of e){const n=Vhe(t);if(n)return n}},yf=(e,t=!1)=>{var n,r;const o=[];for(const a of e??[])w5(a)||W_(a)||t&&a7e(a,a.children)?o.push(a):E5(a,a.children)?o.push(...yf(a.children,t)):T5(a,a.children)?o.push(...yf((r=(n=a.children).default)==null?void 0:r.call(n),t)):or(a)&&o.push(...yf(a,t));return o};function u7e(e){function t(n){const r=[];return n.forEach(o=>{var a,s;Wi(o)&&o.type===Nt?T5(o,o.children)?r.push(...t(((s=(a=o.children).default)==null?void 0:s.call(a))||[])):E5(o,o.children)?r.push(...t(o.children)):cs(o.children)&&r.push(o.children):r.push(o)}),r}return t(e)}const Hl=e=>{if(e)return En(e)?e:()=>e},Uhe=(e,t)=>{var n;const r=[];if(W_(e,e.type))e.type.name===t?e.component&&r.push(e.component.uid):(n=e.component)!=null&&n.subTree&&r.push(...Uhe(e.component.subTree,t));else{const o=tH(e);o&&r.push(...Hhe(o,t))}return r},Hhe=(e,t)=>{const n=[];if(e&&e.length>0)for(const r of e)n.push(...Uhe(r,t));return n};var Dd=Se({name:"ResizeObserver",emits:["resize"],setup(e,{emit:t,slots:n}){let r;const o=fe(),a=j(()=>Mhe(o.value)?o.value.$el:o.value),s=c=>{c&&(r=new C5(d=>{const h=d[0];t("resize",h)}),r.observe(c))},l=()=>{r&&(r.disconnect(),r=null)};return Rt(a,c=>{r&&l(),c&&s(c)}),bn(()=>{a.value&&s(a.value)}),gi(()=>{l()}),()=>{var c,d;const h=ry((d=(c=n.default)==null?void 0:c.call(n))!=null?d:[]);return h?wl(h,{ref:o},!0):null}}});const Whe=typeof window>"u"?global:window,Ghe=Whe.requestAnimationFrame,B8=Whe.cancelAnimationFrame;function Im(e){let t=0;const n=(...r)=>{t&&B8(t),t=Ghe(()=>{e(...r),t=0})};return n.cancel=()=>{B8(t),t=0},n}const iy=()=>{},Khe=()=>{const{body:e}=document,t=document.documentElement;let n;try{n=(window.top||window.self||window).document.body}catch{}return{height:Math.max(e.scrollHeight,e.offsetHeight,t.clientHeight,t.scrollHeight,t.offsetHeight,n?.scrollHeight||0,n?.clientHeight||0),width:Math.max(e.scrollWidth,e.offsetWidth,t.clientWidth,t.scrollWidth,t.offsetWidth,n?.scrollWidth||0,n?.clientWidth||0)}},G_=(()=>{try{return!(typeof window<"u"&&document!==void 0)}catch{return!0}})(),Mi=G_?iy:(e,t,n,r=!1)=>{e.addEventListener(t,n,r)},ro=G_?iy:(e,t,n,r=!1)=>{e.removeEventListener(t,n,r)},c7e=(e,t)=>{if(!e||!t)return!1;let n=t;for(;n;){if(n===e)return!0;n=n.parentNode}return!1},A5=e=>{const t=document.createElement("div");return t.setAttribute("class",`arco-overlay arco-overlay-${e}`),t},qhe=(e,t)=>{var n;return G_?iy():(n=(t??document).querySelector(e))!=null?n:void 0},af=(e,t)=>{if(cs(e)){const n=e[0]==="#"?`[id='${e.slice(1)}']`:e;return qhe(n,t)}return e},d7e=(e,t)=>{const n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return{top:n.top-r.top,bottom:r.bottom-n.bottom,left:n.left-r.left,right:r.right-n.right,width:n.width,height:n.height}},f7e=e=>e.tagName==="BODY"?document.documentElement.scrollHeight>window.innerHeight:e.scrollHeight>e.offsetHeight,h7e=e=>e.tagName==="BODY"?window.innerWidth-Khe().width:e.offsetWidth-e.clientWidth;var Ve=(e,t)=>{for(const[n,r]of t)e[n]=r;return e};function p7e(e){return qC(e)?{top:0,bottom:window.innerHeight}:e.getBoundingClientRect()}const v7e=Se({name:"Affix",components:{ResizeObserver:Dd},props:{offsetTop:{type:Number,default:0},offsetBottom:{type:Number},target:{type:[String,Object,Function]},targetContainer:{type:[String,Object,Function]}},emits:{change:e=>!0},setup(e,{emit:t}){const n=Te("affix"),{target:r,targetContainer:o}=nn(e),a=fe(),s=fe(),l=fe(!1),c=fe({}),d=fe({}),h=j(()=>({[n]:l.value})),p=Im(()=>{if(!a.value||!s.value)return;const{offsetTop:v,offsetBottom:g}=e,y=An(g)?"top":"bottom",S=a.value.getBoundingClientRect(),k=p7e(s.value);let C=!1,x={};const E={width:`${a.value.offsetWidth}px`,height:`${a.value.offsetHeight}px`};y==="top"?(C=S.top-k.top<(v||0),x=C?{position:"fixed",top:`${k.top+(v||0)}px`}:{}):(C=k.bottom-S.bottom<(g||0),x=C?{position:"fixed",bottom:`${window.innerHeight-k.bottom+(g||0)}px`}:{}),C!==l.value&&(l.value=C,t("change",C)),c.value=E,d.value={...x,...C?E:{}}});return bn(()=>{Os(v=>{const g=r&&r.value!==window&&af(r.value)||window;s.value=g,g&&(Mi(g,"scroll",p),Mi(g,"resize",p),v(()=>{ro(g,"scroll",p),ro(g,"resize",p)}))}),Os(v=>{if(!s.value)return;const g=o&&o.value!==window&&af(o.value)||window;g&&(Mi(g,"scroll",p),Mi(g,"resize",p),v(()=>{ro(g,"scroll",p),ro(g,"resize",p)}))})}),{wrapperRef:a,isFixed:l,classNames:h,placeholderStyles:c,fixedStyles:d,updatePositionThrottle:p}},methods:{updatePosition(){this.updatePositionThrottle()}}}),m7e={ref:"wrapperRef"};function g7e(e,t,n,r,o,a){const s=Ie("ResizeObserver");return z(),Ye(s,{onResize:e.updatePositionThrottle},{default:de(()=>[I("div",m7e,[e.isFixed?(z(),Q("div",{key:0,style:Ke(e.placeholderStyles)},null,4)):Le("v-if",!0),I("div",{class:ue(e.classNames),style:Ke(e.fixedStyles)},[O(s,{onResize:e.updatePositionThrottle},{default:de(()=>[vt(e.$slots,"default")]),_:3},8,["onResize"])],6)],512)]),_:3},8,["onResize"])}var _P=Ve(v7e,[["render",g7e]]);const y7e=Object.assign(_P,{install:(e,t)=>{Xn(e,t);const n=Yn(t);e.component(n+_P.name,_P)}}),b7e=Se({name:"IconHover",props:{prefix:{type:String},size:{type:String,default:"medium"},disabled:{type:Boolean,default:!1}},setup(){return{prefixCls:Te("icon-hover")}}});function _7e(e,t,n,r,o,a){return z(),Q("span",{class:ue([e.prefixCls,{[`${e.prefix}-icon-hover`]:e.prefix,[`${e.prefixCls}-size-${e.size}`]:e.size!=="medium",[`${e.prefixCls}-disabled`]:e.disabled}])},[vt(e.$slots,"default")],2)}var Lo=Ve(b7e,[["render",_7e]]);const S7e=Se({name:"IconClose",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-close`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),k7e=["stroke-width","stroke-linecap","stroke-linejoin"];function x7e(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M9.857 9.858 24 24m0 0 14.142 14.142M24 24 38.142 9.858M24 24 9.857 38.142"},null,-1)]),14,k7e)}var SP=Ve(S7e,[["render",x7e]]);const ds=Object.assign(SP,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+SP.name,SP)}}),C7e=Se({name:"IconInfoCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-info-circle-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),w7e=["stroke-width","stroke-linecap","stroke-linejoin"];function E7e(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm2-30a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-2Zm0 17h1a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1h-6a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1h1v-8a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1h3a1 1 0 0 1 1 1v11Z",fill:"currentColor",stroke:"none"},null,-1)]),14,w7e)}var kP=Ve(C7e,[["render",E7e]]);const i3=Object.assign(kP,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+kP.name,kP)}}),T7e=Se({name:"IconCheckCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-check-circle-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),A7e=["stroke-width","stroke-linecap","stroke-linejoin"];function I7e(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm10.207-24.379a1 1 0 0 0 0-1.414l-1.414-1.414a1 1 0 0 0-1.414 0L22 26.172l-4.878-4.88a1 1 0 0 0-1.415 0l-1.414 1.415a1 1 0 0 0 0 1.414l7 7a1 1 0 0 0 1.414 0l11.5-11.5Z",fill:"currentColor",stroke:"none"},null,-1)]),14,A7e)}var xP=Ve(T7e,[["render",I7e]]);const Yh=Object.assign(xP,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+xP.name,xP)}}),L7e=Se({name:"IconExclamationCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-exclamation-circle-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),D7e=["stroke-width","stroke-linecap","stroke-linejoin"];function P7e(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm-2-11a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v2Zm4-18a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1V15Z",fill:"currentColor",stroke:"none"},null,-1)]),14,D7e)}var CP=Ve(L7e,[["render",P7e]]);const If=Object.assign(CP,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+CP.name,CP)}}),R7e=Se({name:"IconCloseCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-close-circle-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),M7e=["stroke-width","stroke-linecap","stroke-linejoin"];function O7e(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm4.955-27.771-4.95 4.95-4.95-4.95a1 1 0 0 0-1.414 0l-1.414 1.414a1 1 0 0 0 0 1.414l4.95 4.95-4.95 4.95a1 1 0 0 0 0 1.414l1.414 1.414a1 1 0 0 0 1.414 0l4.95-4.95 4.95 4.95a1 1 0 0 0 1.414 0l1.414-1.414a1 1 0 0 0 0-1.414l-4.95-4.95 4.95-4.95a1 1 0 0 0 0-1.414l-1.414-1.414a1 1 0 0 0-1.414 0Z",fill:"currentColor",stroke:"none"},null,-1)]),14,M7e)}var wP=Ve(R7e,[["render",O7e]]);const Zm=Object.assign(wP,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+wP.name,wP)}}),$7e=Se({name:"Alert",components:{IconHover:Lo,IconClose:ds,IconInfoCircleFill:i3,IconCheckCircleFill:Yh,IconExclamationCircleFill:If,IconCloseCircleFill:Zm},props:{type:{type:String,default:"info"},showIcon:{type:Boolean,default:!0},closable:{type:Boolean,default:!1},title:String,banner:{type:Boolean,default:!1},center:{type:Boolean,default:!1}},emits:{close:e=>!0,afterClose:()=>!0},setup(e,{slots:t,emit:n}){const r=Te("alert"),o=fe(!0),a=c=>{o.value=!1,n("close",c)},s=()=>{n("afterClose")},l=j(()=>[r,`${r}-${e.type}`,{[`${r}-with-title`]:!!(e.title||t.title),[`${r}-banner`]:e.banner,[`${r}-center`]:e.center}]);return{prefixCls:r,cls:l,visible:o,handleClose:a,handleAfterLeave:s}}});function B7e(e,t,n,r,o,a){const s=Ie("icon-info-circle-fill"),l=Ie("icon-check-circle-fill"),c=Ie("icon-exclamation-circle-fill"),d=Ie("icon-close-circle-fill"),h=Ie("icon-close"),p=Ie("icon-hover");return z(),Ye(Cs,{name:"zoom-in-top",onAfterLeave:e.handleAfterLeave},{default:de(()=>[e.visible?(z(),Q("div",{key:0,role:"alert",class:ue(e.cls)},[e.showIcon&&!(e.type==="normal"&&!e.$slots.icon)?(z(),Q("div",{key:0,class:ue(`${e.prefixCls}-icon`)},[vt(e.$slots,"icon",{},()=>[e.type==="info"?(z(),Ye(s,{key:0})):e.type==="success"?(z(),Ye(l,{key:1})):e.type==="warning"?(z(),Ye(c,{key:2})):e.type==="error"?(z(),Ye(d,{key:3})):Le("v-if",!0)])],2)):Le("v-if",!0),I("div",{class:ue(`${e.prefixCls}-body`)},[e.title||e.$slots.title?(z(),Q("div",{key:0,class:ue(`${e.prefixCls}-title`)},[vt(e.$slots,"title",{},()=>[We(ze(e.title),1)])],2)):Le("v-if",!0),I("div",{class:ue(`${e.prefixCls}-content`)},[vt(e.$slots,"default")],2)],2),e.$slots.action?(z(),Q("div",{key:1,class:ue(`${e.prefixCls}-action`)},[vt(e.$slots,"action")],2)):Le("v-if",!0),e.closable?(z(),Q("div",{key:2,tabindex:"-1",role:"button","aria-label":"Close",class:ue(`${e.prefixCls}-close-btn`),onClick:t[0]||(t[0]=(...v)=>e.handleClose&&e.handleClose(...v))},[vt(e.$slots,"close-element",{},()=>[O(p,null,{default:de(()=>[O(h)]),_:1})])],2)):Le("v-if",!0)],2)):Le("v-if",!0)]),_:3},8,["onAfterLeave"])}var EP=Ve($7e,[["render",B7e]]);const Yhe=Object.assign(EP,{install:(e,t)=>{Xn(e,t);const n=Yn(t);e.component(n+EP.name,EP)}});function Vne(e){return typeof e=="object"&&e!=null&&e.nodeType===1}function zne(e,t){return(!t||e!=="hidden")&&e!=="visible"&&e!=="clip"}function TP(e,t){if(e.clientHeightt||a>e&&s=t&&l>=n?a-e-r:s>t&&ln?s-t+o:0}var Kj=function(e,t){var n=window,r=t.scrollMode,o=t.block,a=t.inline,s=t.boundary,l=t.skipOverflowHiddenElements,c=typeof s=="function"?s:function(be){return be!==s};if(!Vne(e))throw new TypeError("Invalid target");for(var d,h,p=document.scrollingElement||document.documentElement,v=[],g=e;Vne(g)&&c(g);){if((g=(h=(d=g).parentElement)==null?d.getRootNode().host||null:h)===p){v.push(g);break}g!=null&&g===document.body&&TP(g)&&!TP(document.documentElement)||g!=null&&TP(g,l)&&v.push(g)}for(var y=n.visualViewport?n.visualViewport.width:innerWidth,S=n.visualViewport?n.visualViewport.height:innerHeight,k=window.scrollX||pageXOffset,C=window.scrollY||pageYOffset,x=e.getBoundingClientRect(),E=x.height,_=x.width,T=x.top,D=x.right,P=x.bottom,M=x.left,$=o==="start"||o==="nearest"?T:o==="end"?P:T+E/2,L=a==="center"?M+_/2:a==="end"?D:M,B=[],F=0;F=0&&M>=0&&P<=S&&D<=y&&T>=oe&&P<=H&&M>=q&&D<=Z)return B;var ee=getComputedStyle(W),ne=parseInt(ee.borderLeftWidth,10),ae=parseInt(ee.borderTopWidth,10),re=parseInt(ee.borderRightWidth,10),ke=parseInt(ee.borderBottomWidth,10),Ne=0,me=0,_e="offsetWidth"in W?W.offsetWidth-W.clientWidth-ne-re:0,Ue="offsetHeight"in W?W.offsetHeight-W.clientHeight-ae-ke:0,Qe="offsetWidth"in W?W.offsetWidth===0?0:X/W.offsetWidth:0,Me="offsetHeight"in W?W.offsetHeight===0?0:G/W.offsetHeight:0;if(p===W)Ne=o==="start"?$:o==="end"?$-S:o==="nearest"?px(C,C+S,S,ae,ke,C+$,C+$+E,E):$-S/2,me=a==="start"?L:a==="center"?L-y/2:a==="end"?L-y:px(k,k+y,y,ne,re,k+L,k+L+_,_),Ne=Math.max(0,Ne+C),me=Math.max(0,me+k);else{Ne=o==="start"?$-oe-ae:o==="end"?$-H+ke+Ue:o==="nearest"?px(oe,H,G,ae,ke+Ue,$,$+E,E):$-(oe+G/2)+Ue/2,me=a==="start"?L-q-ne:a==="center"?L-(q+X/2)+_e/2:a==="end"?L-Z+re+_e:px(q,Z,X,ne,re+_e,L,L+_,_);var je=W.scrollLeft,ge=W.scrollTop;$+=ge-(Ne=Math.max(0,Math.min(ge+Ne/Me,W.scrollHeight-G/Me+Ue))),L+=je-(me=Math.max(0,Math.min(je+me/Qe,W.scrollWidth-X/Qe+_e)))}B.push({el:W,top:Ne,left:me})}return B},K_=function(e){return function(t){return Math.pow(t,e)}},q_=function(e){return function(t){return 1-Math.abs(Math.pow(t-1,e))}},I5=function(e){return function(t){return t<.5?K_(e)(t*2)/2:q_(e)(t*2-1)/2+.5}},N7e=function(e){return e},F7e=K_(2),j7e=q_(2),V7e=I5(2),z7e=K_(3),U7e=q_(3),H7e=I5(3),W7e=K_(4),G7e=q_(4),K7e=I5(4),q7e=K_(5),Y7e=q_(5),X7e=I5(5),Z7e=function(e){return 1+Math.sin(Math.PI/2*e-Math.PI/2)},J7e=function(e){return Math.sin(Math.PI/2*e)},Q7e=function(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2},nH=function(e){var t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?(e-=1.5/n,t*e*e+.75):e<2.5/n?(e-=2.25/n,t*e*e+.9375):(e-=2.625/n,t*e*e+.984375)},Xhe=function(e){return 1-nH(1-e)},eDe=function(e){return e<.5?Xhe(e*2)*.5:nH(e*2-1)*.5+.5},tDe=Object.freeze({linear:N7e,quadIn:F7e,quadOut:j7e,quadInOut:V7e,cubicIn:z7e,cubicOut:U7e,cubicInOut:H7e,quartIn:W7e,quartOut:G7e,quartInOut:K7e,quintIn:q7e,quintOut:Y7e,quintInOut:X7e,sineIn:Z7e,sineOut:J7e,sineInOut:Q7e,bounceOut:nH,bounceIn:Xhe,bounceInOut:eDe}),Jm=function(t){var n=t.from,r=t.to,o=t.duration,a=t.delay,s=t.easing,l=t.onStart,c=t.onUpdate,d=t.onFinish;for(var h in n)r[h]===void 0&&(r[h]=n[h]);for(var p in r)n[p]===void 0&&(n[p]=r[p]);this.from=n,this.to=r,this.duration=o||500,this.delay=a||0,this.easing=s||"linear",this.onStart=l,this.onUpdate=c||function(){},this.onFinish=d,this.startTime=Date.now()+this.delay,this.started=!1,this.finished=!1,this.timer=null,this.keys={}};Jm.prototype.update=function(){if(this.time=Date.now(),!(this.timethis.duration?this.duration:this.elapsed;for(var t in this.to)this.keys[t]=this.from[t]+(this.to[t]-this.from[t])*tDe[this.easing](this.elapsed/this.duration);this.started||(this.onStart&&this.onStart(this.keys),this.started=!0),this.onUpdate(this.keys)}};Jm.prototype.start=function(){var t=this;this.startTime=Date.now()+this.delay;var n=function(){t.update(),t.timer=requestAnimationFrame(n),t.finished&&(cancelAnimationFrame(t.timer),t.timer=null)};n()};Jm.prototype.stop=function(){cancelAnimationFrame(this.timer),this.timer=null};function nDe(e,t,n){new Jm({from:{scrollTop:e.scrollTop},to:{scrollTop:t},easing:"quartOut",duration:300,onUpdate:o=>{e.scrollTop=o.scrollTop},onFinish:()=>{En(n)&&n()}}).start()}const Zhe=Symbol("ArcoAnchor"),rDe=["start","end","center","nearest"],iDe=Se({name:"Anchor",props:{boundary:{type:[Number,String],default:"start",validator:e=>Ze(e)||rDe.includes(e)},lineLess:{type:Boolean,default:!1},scrollContainer:{type:[String,Object]},changeHash:{type:Boolean,default:!0},smooth:{type:Boolean,default:!0}},emits:{select:(e,t)=>!0,change:e=>!0},setup(e,{emit:t}){const n=Te("anchor"),r=fe(),o=fe(),a=Xt({}),s=fe(""),l=fe(!1),c=fe(),d=fe(),h=(T,D)=>{T&&(a[T]=D)},p=T=>{delete a[T]},v=(T,D)=>{e.changeHash||T.preventDefault(),D&&(g(D),S(D)),t("select",D,s.value)},g=T=>{try{const D=af(T);if(!D)return;let P,M=0;Ze(e.boundary)?(P="start",M=e.boundary):P=e.boundary;const $=Kj(D,{block:P});if(!$.length)return;const{el:L,top:B}=$[0],F=B-M;nDe(L,F,()=>{l.value=!1}),l.value=!0}catch(D){console.error(D)}},y=Im(()=>{if(l.value)return;const T=k();if(T&&T.id){const D=`#${T.id}`;S(D)}}),S=T=>{if(!a[T]&&r.value){const D=af(`a[data-href='${T}']`,r.value);if(!D)return;a[T]=D}T!==s.value&&(s.value=T,Cn(()=>{t("change",T)}))},k=()=>{if(!c.value||!d.value)return;const T=Ze(e.boundary)?e.boundary:0,D=d.value.getBoundingClientRect();for(const P of Object.keys(a)){const M=af(P);if(M){const{top:$}=M.getBoundingClientRect(),L=qC(c.value)?$-T:$-D.top-T;if(L>=0&&L<=D.height/2)return M}}};Rt(s,()=>{const T=a[s.value];!e.lineLess&&T&&o.value&&(o.value.style.top=`${T.offsetTop}px`)});const C=()=>{c.value&&Mi(c.value,"scroll",y)},x=()=>{c.value&&ro(c.value,"scroll",y)},E=()=>{e.scrollContainer?(c.value=qC(e.scrollContainer)?window:af(e.scrollContainer),d.value=qC(e.scrollContainer)?document.documentElement:af(e.scrollContainer)):(c.value=window,d.value=document.documentElement)};bn(()=>{E();const T=decodeURIComponent(window.location.hash);T?(g(T),S(T)):y(),C()}),Io(()=>{x()}),ri(Zhe,Xt({currentLink:s,addLink:h,removeLink:p,handleClick:v}));const _=j(()=>[n,{[`${n}-line-less`]:e.lineLess}]);return{prefixCls:n,cls:_,anchorRef:r,lineSliderRef:o}}});function oDe(e,t,n,r,o,a){return z(),Q("div",{ref:"anchorRef",class:ue(e.cls)},[e.lineLess?Le("v-if",!0):(z(),Q("div",{key:0,ref:"lineSliderRef",class:ue(`${e.prefixCls}-line-slider`)},null,2)),I("ul",{class:ue(`${e.prefixCls}-list`)},[vt(e.$slots,"default")],2)],2)}var AP=Ve(iDe,[["render",oDe]]);const sDe=Se({name:"AnchorLink",props:{title:String,href:String},setup(e){const t=Te("anchor"),n=`${t}-link`,r=fe(),o=On(Zhe,void 0);bn(()=>{e.href&&r.value&&o?.addLink(e.href,r.value)});const a=j(()=>[`${n}-item`,{[`${n}-active`]:o?.currentLink===e.href}]);return{prefixCls:t,linkCls:n,cls:a,linkRef:r,handleClick:l=>o?.handleClick(l,e.href)}}}),aDe=["href"];function lDe(e,t,n,r,o,a){return z(),Q("li",{ref:"linkRef",class:ue(e.cls)},[I("a",{class:ue(e.linkCls),href:e.href,onClick:t[0]||(t[0]=(...s)=>e.handleClick&&e.handleClick(...s))},[vt(e.$slots,"default",{},()=>[We(ze(e.title),1)])],10,aDe),e.$slots.sublist?(z(),Q("ul",{key:0,class:ue(`${e.prefixCls}-sublist`)},[vt(e.$slots,"sublist")],2)):Le("v-if",!0)],2)}var YC=Ve(sDe,[["render",lDe]]);const uDe=Object.assign(AP,{Link:YC,install:(e,t)=>{Xn(e,t);const n=Yn(t);e.component(n+AP.name,AP),e.component(n+YC.name,YC)}}),L5=["info","success","warning","error"],S0=["onFocus","onFocusin","onFocusout","onBlur","onChange","onBeforeinput","onInput","onReset","onSubmit","onInvalid","onKeydown","onKeypress","onKeyup","onCopy","onCut","onPaste","onCompositionstart","onCompositionupdate","onCompositionend","onSelect","autocomplete","autofocus","maxlength","minlength","name","pattern","readonly","required"],cDe=Se({name:"IconLoading",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-loading`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),dDe=["stroke-width","stroke-linecap","stroke-linejoin"];function fDe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6"},null,-1)]),14,dDe)}var IP=Ve(cDe,[["render",fDe]]);const Xa=Object.assign(IP,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+IP.name,IP)}}),hDe=Se({name:"FeedbackIcon",components:{IconLoading:Xa,IconCheckCircleFill:Yh,IconExclamationCircleFill:If,IconCloseCircleFill:Zm},props:{type:{type:String}},setup(e){const t=Te("feedback-icon");return{cls:j(()=>[t,`${t}-status-${e.type}`])}}});function pDe(e,t,n,r,o,a){const s=Ie("icon-loading"),l=Ie("icon-check-circle-fill"),c=Ie("icon-exclamation-circle-fill"),d=Ie("icon-close-circle-fill");return z(),Q("span",{class:ue(e.cls)},[e.type==="validating"?(z(),Ye(s,{key:0})):e.type==="success"?(z(),Ye(l,{key:1})):e.type==="warning"?(z(),Ye(c,{key:2})):e.type==="error"?(z(),Ye(d,{key:3})):Le("v-if",!0)],2)}var Y_=Ve(hDe,[["render",pDe]]);const rH={key:"Enter"},Jhe={key:"Backspace",code:"Backspace"},vDe={code:"ArrowLeft"},mDe={code:"ArrowRight"},xa=(e,t)=>{const n={...e};for(const r of t)r in n&&delete n[r];return n};function kf(e,t){const n={};return t.forEach(r=>{const o=r;r in e&&(n[o]=e[o])}),n}const qj=Symbol("ArcoFormItemContext"),iH=Symbol("ArcoFormContext"),Do=({size:e,disabled:t,error:n,uninject:r}={})=>{const o=r?{}:On(qj,{}),a=j(()=>{var h;return(h=e?.value)!=null?h:o.size}),s=j(()=>t?.value||o.disabled),l=j(()=>n?.value||o.error),c=Lu(o,"feedback"),d=Lu(o,"eventHandlers");return{formItemCtx:o,mergedSize:a,mergedDisabled:s,mergedError:l,feedback:c,eventHandlers:d}},wa=(e,{defaultValue:t="medium"}={})=>{const n=On(Ya,void 0);return{mergedSize:j(()=>{var o,a;return(a=(o=e?.value)!=null?o:n?.size)!=null?a:t})}};function Qhe(e){const t=fe();function n(){if(!e.value)return;const{selectionStart:o,selectionEnd:a,value:s}=e.value;if(o==null||a==null)return;const l=s.slice(0,Math.max(0,o)),c=s.slice(Math.max(0,a));t.value={selectionStart:o,selectionEnd:a,value:s,beforeTxt:l,afterTxt:c}}function r(){if(!e.value||!t.value)return;const{value:o}=e.value,{beforeTxt:a,afterTxt:s,selectionStart:l}=t.value;if(!a||!s||!l)return;let c=o.length;if(o.endsWith(s))c=o.length-s.length;else if(o.startsWith(a))c=a.length;else{const d=a[l-1],h=o.indexOf(d,l-1);h!==-1&&(c=h+1)}e.value.setSelectionRange(c,c)}return[n,r]}var J4=Se({name:"Input",inheritAttrs:!1,props:{modelValue:String,defaultValue:{type:String,default:""},size:{type:String},allowClear:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},error:{type:Boolean,default:!1},placeholder:String,maxLength:{type:[Number,Object],default:0},showWordLimit:{type:Boolean,default:!1},wordLength:{type:Function},wordSlice:{type:Function},inputAttrs:{type:Object},type:{type:String,default:"text"},prepend:String,append:String},emits:{"update:modelValue":e=>!0,input:(e,t)=>!0,change:(e,t)=>!0,pressEnter:e=>!0,clear:e=>!0,focus:e=>!0,blur:e=>!0},setup(e,{emit:t,slots:n,attrs:r}){const{size:o,disabled:a,error:s,modelValue:l}=nn(e),c=Te("input"),d=fe(),{mergedSize:h,mergedDisabled:p,mergedError:v,feedback:g,eventHandlers:y}=Do({size:o,disabled:a,error:s}),{mergedSize:S}=wa(h),[k,C]=Qhe(d),x=fe(e.defaultValue),E=j(()=>{var ge;return(ge=e.modelValue)!=null?ge:x.value});let _=E.value;Rt(l,ge=>{(An(ge)||Tl(ge))&&(x.value="")}),Rt(E,(ge,be)=>{_=be});const T=fe(!1),D=j(()=>e.allowClear&&!e.readonly&&!p.value&&!!E.value),P=fe(!1),M=fe(""),$=ge=>{var be;return En(e.wordLength)?e.wordLength(ge):(be=ge.length)!=null?be:0},L=j(()=>$(E.value)),B=j(()=>v.value||!!(br(e.maxLength)&&e.maxLength.errorOnly&&L.value>W.value)),F=j(()=>br(e.maxLength)&&!!e.maxLength.errorOnly),W=j(()=>br(e.maxLength)?e.maxLength.length:e.maxLength),U=j(()=>{const ge=$("a");return Math.floor(W.value/ge)}),G=ge=>{var be,Fe;W.value&&!F.value&&$(ge)>W.value&&(ge=(Fe=(be=e.wordSlice)==null?void 0:be.call(e,ge,W.value))!=null?Fe:ge.slice(0,U.value)),x.value=ge,t("update:modelValue",ge)},X=ge=>{d.value&&ge.target!==d.value&&(ge.preventDefault(),d.value.focus())},oe=(ge,be)=>{var Fe,He;ge!==_&&(_=ge,t("change",ge,be),(He=(Fe=y.value)==null?void 0:Fe.onChange)==null||He.call(Fe,be))},Z=ge=>{var be,Fe;T.value=!0,t("focus",ge),(Fe=(be=y.value)==null?void 0:be.onFocus)==null||Fe.call(be,ge)},H=ge=>{var be,Fe;T.value=!1,oe(E.value,ge),t("blur",ge),(Fe=(be=y.value)==null?void 0:be.onBlur)==null||Fe.call(be,ge)},q=ge=>{var be,Fe,He;const{value:Je,selectionStart:rt,selectionEnd:ht}=ge.target;if(ge.type==="compositionend"){if(P.value=!1,M.value="",W.value&&!F.value&&L.value>=W.value&&$(Je)>W.value&&rt===ht){ee();return}G(Je),t("input",Je,ge),(Fe=(be=y.value)==null?void 0:be.onInput)==null||Fe.call(be,ge),ee()}else P.value=!0,M.value=E.value+((He=ge.data)!=null?He:"")},ee=()=>{k(),Cn(()=>{d.value&&E.value!==d.value.value&&(d.value.value=E.value,C())})},ne=ge=>{var be,Fe;const{value:He}=ge.target;if(!P.value){if(W.value&&!F.value&&L.value>=W.value&&$(He)>W.value&&ge.inputType==="insertText"){ee();return}G(He),t("input",He,ge),(Fe=(be=y.value)==null?void 0:be.onInput)==null||Fe.call(be,ge),ee()}},ae=ge=>{G(""),oe("",ge),t("clear",ge)},re=ge=>{const be=ge.key||ge.code;!P.value&&be===rH.key&&(oe(E.value,ge),t("pressEnter",ge))},ke=j(()=>[`${c}-outer`,`${c}-outer-size-${S.value}`,{[`${c}-outer-has-suffix`]:!!n.suffix,[`${c}-outer-disabled`]:p.value}]),Ne=j(()=>[`${c}-wrapper`,{[`${c}-error`]:B.value,[`${c}-disabled`]:p.value,[`${c}-focus`]:T.value}]),me=j(()=>[c,`${c}-size-${S.value}`]),_e=j(()=>xa(r,S0)),Ue=j(()=>kf(r,S0)),Qe=j(()=>{const ge={...Ue.value,...e.inputAttrs};return B.value&&(ge["aria-invalid"]=!0),ge}),Me=ge=>{var be;return O("span",Vt({class:Ne.value,onMousedown:X},ge?void 0:_e.value),[n.prefix&&O("span",{class:`${c}-prefix`},[n.prefix()]),O("input",Vt({ref:d,class:me.value,value:E.value,type:e.type,placeholder:e.placeholder,readonly:e.readonly,disabled:p.value,onInput:ne,onKeydown:re,onFocus:Z,onBlur:H,onCompositionstart:q,onCompositionupdate:q,onCompositionend:q},Qe.value),null),D.value&&O(Lo,{prefix:c,class:`${c}-clear-btn`,onClick:ae},{default:()=>[O(ds,null,null)]}),(n.suffix||!!e.maxLength&&e.showWordLimit||!!g.value)&&O("span",{class:[`${c}-suffix`,{[`${c}-suffix-has-feedback`]:g.value}]},[!!e.maxLength&&e.showWordLimit&&O("span",{class:`${c}-word-limit`},[L.value,We("/"),W.value]),(be=n.suffix)==null?void 0:be.call(n),!!g.value&&O(Y_,{type:g.value},null)])])};return{inputRef:d,render:()=>n.prepend||n.append||e.prepend||e.append?O("span",Vt({class:ke.value},_e.value),[(n.prepend||e.prepend)&&O("span",{class:`${c}-prepend`},[n.prepend?n.prepend():e.prepend]),Me(!0),(n.append||e.append)&&O("span",{class:`${c}-append`},[n.append?n.append():e.append])]):Me()}},methods:{focus(){var e;(e=this.inputRef)==null||e.focus()},blur(){var e;(e=this.inputRef)==null||e.blur()}},render(){return this.render()}});const gDe=Se({name:"IconSearch",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-search`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),yDe=["stroke-width","stroke-linecap","stroke-linejoin"];function bDe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M33.072 33.071c6.248-6.248 6.248-16.379 0-22.627-6.249-6.249-16.38-6.249-22.628 0-6.248 6.248-6.248 16.379 0 22.627 6.248 6.248 16.38 6.248 22.628 0Zm0 0 8.485 8.485"},null,-1)]),14,yDe)}var LP=Ve(gDe,[["render",bDe]]);const Lm=Object.assign(LP,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+LP.name,LP)}}),epe=Symbol("ArcoButtonGroup"),_De=Se({name:"Button",components:{IconLoading:Xa},props:{type:{type:String},shape:{type:String},status:{type:String},size:{type:String},long:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},disabled:{type:Boolean},htmlType:{type:String,default:"button"},autofocus:{type:Boolean,default:!1},href:String},emits:{click:e=>!0},setup(e,{emit:t}){const{size:n,disabled:r}=nn(e),o=Te("btn"),a=On(epe,void 0),s=j(()=>{var g;return(g=n.value)!=null?g:a?.size}),l=j(()=>!!(r.value||a?.disabled)),{mergedSize:c,mergedDisabled:d}=Do({size:s,disabled:l}),{mergedSize:h}=wa(c),p=j(()=>{var g,y,S,k,C,x;return[o,`${o}-${(y=(g=e.type)!=null?g:a?.type)!=null?y:"secondary"}`,`${o}-shape-${(k=(S=e.shape)!=null?S:a?.shape)!=null?k:"square"}`,`${o}-size-${h.value}`,`${o}-status-${(x=(C=e.status)!=null?C:a?.status)!=null?x:"normal"}`,{[`${o}-long`]:e.long,[`${o}-loading`]:e.loading,[`${o}-disabled`]:d.value,[`${o}-link`]:cs(e.href)}]});return{prefixCls:o,cls:p,mergedDisabled:d,handleClick:g=>{if(e.disabled||e.loading){g.preventDefault();return}t("click",g)}}}}),SDe=["href"],kDe=["type","disabled","autofocus"];function xDe(e,t,n,r,o,a){const s=Ie("icon-loading");return e.href?(z(),Q("a",{key:0,class:ue([e.cls,{[`${e.prefixCls}-only-icon`]:e.$slots.icon&&!e.$slots.default}]),href:e.mergedDisabled||e.loading?void 0:e.href,onClick:t[0]||(t[0]=(...l)=>e.handleClick&&e.handleClick(...l))},[e.loading||e.$slots.icon?(z(),Q("span",{key:0,class:ue(`${e.prefixCls}-icon`)},[e.loading?(z(),Ye(s,{key:0,spin:"true"})):vt(e.$slots,"icon",{key:1})],2)):Le("v-if",!0),vt(e.$slots,"default")],10,SDe)):(z(),Q("button",{key:1,class:ue([e.cls,{[`${e.prefixCls}-only-icon`]:e.$slots.icon&&!e.$slots.default}]),type:e.htmlType,disabled:e.mergedDisabled,autofocus:e.autofocus,onClick:t[1]||(t[1]=(...l)=>e.handleClick&&e.handleClick(...l))},[e.loading||e.$slots.icon?(z(),Q("span",{key:0,class:ue(`${e.prefixCls}-icon`)},[e.loading?(z(),Ye(s,{key:0,spin:!0})):vt(e.$slots,"icon",{key:1})],2)):Le("v-if",!0),vt(e.$slots,"default")],10,kDe))}var DP=Ve(_De,[["render",xDe]]);const CDe=Se({name:"ButtonGroup",props:{type:{type:String},status:{type:String},shape:{type:String},size:{type:String},disabled:{type:Boolean}},setup(e){const{type:t,size:n,status:r,disabled:o,shape:a}=nn(e),s=Te("btn-group");return ri(epe,Xt({type:t,size:n,shape:a,status:r,disabled:o})),{prefixCls:s}}});function wDe(e,t,n,r,o,a){return z(),Q("div",{class:ue(e.prefixCls)},[vt(e.$slots,"default")],2)}var Q4=Ve(CDe,[["render",wDe]]);const Xo=Object.assign(DP,{Group:Q4,install:(e,t)=>{Xn(e,t);const n=Yn(t);e.component(n+DP.name,DP),e.component(n+Q4.name,Q4)}});var XC=Se({name:"InputSearch",props:{searchButton:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},size:{type:String},buttonText:{type:String},buttonProps:{type:Object}},emits:{search:(e,t)=>!0},setup(e,{emit:t,slots:n}){const{size:r}=nn(e),o=Te("input-search"),{mergedSize:a}=wa(r),s=fe(),l=p=>{s.value.inputRef&&t("search",s.value.inputRef.value,p)},c=()=>{var p;return O(Nt,null,[e.loading?O(Xa,null,null):O(Lo,{onClick:l},{default:()=>[O(Lm,null,null)]}),(p=n.suffix)==null?void 0:p.call(n)])},d=()=>{var p;let v={};return e.buttonText||n["button-default"]||n["button-icon"]?v={default:(p=n["button-default"])!=null?p:e.buttonText?()=>e.buttonText:void 0,icon:n["button-icon"]}:v={icon:()=>O(Lm,null,null)},O(Xo,Vt({type:"primary",class:`${o}-btn`,disabled:e.disabled,size:a.value,loading:e.loading},e.buttonProps,{onClick:l}),v)};return{inputRef:s,render:()=>O(J4,{ref:s,class:o,size:a.value,disabled:e.disabled},{prepend:n.prepend,prefix:n.prefix,suffix:e.searchButton?n.suffix:c,append:e.searchButton?d:n.append})}},methods:{focus(){var e;(e=this.inputRef)==null||e.focus()},blur(){var e;(e=this.inputRef)==null||e.blur()}},render(){return this.render()}});const EDe=Se({name:"IconEye",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-eye`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),TDe=["stroke-width","stroke-linecap","stroke-linejoin"];function ADe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{"clip-rule":"evenodd",d:"M24 37c6.627 0 12.627-4.333 18-13-5.373-8.667-11.373-13-18-13-6.627 0-12.627 4.333-18 13 5.373 8.667 11.373 13 18 13Z"},null,-1),I("path",{d:"M29 24a5 5 0 1 1-10 0 5 5 0 0 1 10 0Z"},null,-1)]),14,TDe)}var PP=Ve(EDe,[["render",ADe]]);const k0=Object.assign(PP,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+PP.name,PP)}}),IDe=Se({name:"IconEyeInvisible",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-eye-invisible`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),LDe=["stroke-width","stroke-linecap","stroke-linejoin"];function DDe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M14 14.5c-2.69 2-5.415 5.33-8 9.5 5.373 8.667 11.373 13 18 13 3.325 0 6.491-1.09 9.5-3.271M17.463 12.5C19 11 21.75 11 24 11c6.627 0 12.627 4.333 18 13-1.766 2.848-3.599 5.228-5.5 7.14"},null,-1),I("path",{d:"M29 24a5 5 0 1 1-10 0 5 5 0 0 1 10 0ZM6.852 7.103l34.294 34.294"},null,-1)]),14,LDe)}var RP=Ve(IDe,[["render",DDe]]);const tpe=Object.assign(RP,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+RP.name,RP)}});function Ga(e){const t=fe(e);return[t,r=>{t.value=r}]}function fa(e,t){const{value:n}=nn(t),[r,o]=Ga(An(n.value)?e:n.value);return Rt(n,s=>{An(s)&&o(void 0)}),[j(()=>An(n.value)?r.value:n.value),o,r]}const PDe=Se({name:"InputPassword",components:{IconEye:k0,IconEyeInvisible:tpe,AIconHover:Lo,AInput:J4},props:{visibility:{type:Boolean,default:void 0},defaultVisibility:{type:Boolean,default:!0},invisibleButton:{type:Boolean,default:!0}},emits:["visibility-change","update:visibility"],setup(e,{emit:t}){const{visibility:n,defaultVisibility:r}=nn(e),o=fe(),a=()=>{c(!s.value)},[s,l]=fa(r.value,Xt({value:n})),c=d=>{d!==s.value&&(t("visibility-change",d),t("update:visibility",d),l(d))};return{inputRef:o,mergedVisible:s,handleInvisible:a}},methods:{focus(){var e;(e=this.inputRef)==null||e.focus()},blur(){var e;(e=this.inputRef)==null||e.blur()}}});function RDe(e,t,n,r,o,a){const s=Ie("icon-eye"),l=Ie("icon-eye-invisible"),c=Ie("a-icon-hover"),d=Ie("a-input");return z(),Ye(d,{ref:"inputRef",type:e.mergedVisible?"password":"text"},yo({_:2},[e.$slots.prepend?{name:"prepend",fn:de(()=>[vt(e.$slots,"prepend")]),key:"0"}:void 0,e.$slots.prefix?{name:"prefix",fn:de(()=>[vt(e.$slots,"prefix")]),key:"1"}:void 0,e.invisibleButton||e.$slots.suffix?{name:"suffix",fn:de(()=>[e.invisibleButton?(z(),Ye(c,{key:0,onClick:e.handleInvisible,onMousedown:t[0]||(t[0]=us(()=>{},["prevent"])),onMouseup:t[1]||(t[1]=us(()=>{},["prevent"]))},{default:de(()=>[e.mergedVisible?(z(),Ye(l,{key:1})):(z(),Ye(s,{key:0}))]),_:1},8,["onClick"])):Le("v-if",!0),vt(e.$slots,"suffix")]),key:"2"}:void 0,e.$slots.append?{name:"append",fn:de(()=>[vt(e.$slots,"append")]),key:"3"}:void 0]),1032,["type"])}var ZC=Ve(PDe,[["render",RDe]]);const MDe=Se({name:"InputGroup",setup(){return{prefixCls:Te("input-group")}}});function ODe(e,t,n,r,o,a){return z(),Q("div",{class:ue(e.prefixCls)},[vt(e.$slots,"default")],2)}var oy=Ve(MDe,[["render",ODe]]);const N0=Object.assign(J4,{Search:XC,Password:ZC,Group:oy,install:(e,t)=>{Xn(e,t);const n=Yn(t);e.component(n+J4.name,J4),e.component(n+oy.name,oy),e.component(n+XC.name,XC),e.component(n+ZC.name,ZC)}}),$De=()=>{const{height:e,width:t}=Khe();return{width:Math.min(t,window.innerWidth),height:Math.min(e,window.innerHeight)}},Une=(e,t)=>{var n,r;const o=e.getBoundingClientRect();return{top:o.top,bottom:o.bottom,left:o.left,right:o.right,scrollTop:o.top-t.top,scrollBottom:o.bottom-t.top,scrollLeft:o.left-t.left,scrollRight:o.right-t.left,width:(n=e.offsetWidth)!=null?n:e.clientWidth,height:(r=e.offsetHeight)!=null?r:e.clientHeight}},BDe=e=>{switch(e){case"top":case"tl":case"tr":return"top";case"bottom":case"bl":case"br":return"bottom";case"left":case"lt":case"lb":return"left";case"right":case"rt":case"rb":return"right";default:return"top"}},vx=(e,t)=>{switch(t){case"top":switch(e){case"bottom":return"top";case"bl":return"tl";case"br":return"tr";default:return e}case"bottom":switch(e){case"top":return"bottom";case"tl":return"bl";case"tr":return"br";default:return e}case"left":switch(e){case"right":return"left";case"rt":return"lt";case"rb":return"lb";default:return e}case"right":switch(e){case"left":return"right";case"lt":return"rt";case"lb":return"rb";default:return e}default:return e}},NDe=(e,t,{containerRect:n,triggerRect:r,popupRect:o,offset:a,translate:s})=>{const l=BDe(e),c=$De(),d={top:n.top+t.top,bottom:c.height-(n.top+t.top+o.height),left:n.left+t.left,right:c.width-(n.left+t.left+o.width)};let h=e;if(l==="top"&&d.top<0)if(r.top>o.height)t.top=-n.top;else{const p=E4("bottom",r,o,{offset:a,translate:s});c.height-(n.top+p.top+o.height)>0&&(h=vx(e,"bottom"),t.top=p.top)}if(l==="bottom"&&d.bottom<0)if(c.height-r.bottom>o.height)t.top=-n.top+(c.height-o.height);else{const p=E4("top",r,o,{offset:a,translate:s});n.top+p.top>0&&(h=vx(e,"top"),t.top=p.top)}if(l==="left"&&d.left<0)if(r.left>o.width)t.left=-n.left;else{const p=E4("right",r,o,{offset:a,translate:s});c.width-(n.left+p.left+o.width)>0&&(h=vx(e,"right"),t.left=p.left)}if(l==="right"&&d.right<0)if(c.width-r.right>o.width)t.left=-n.left+(c.width-o.width);else{const p=E4("left",r,o,{offset:a,translate:s});n.left+p.left>0&&(h=vx(e,"left"),t.left=p.left)}return(l==="top"||l==="bottom")&&(d.left<0?t.left=-n.left:d.right<0&&(t.left=-n.left+(c.width-o.width))),(l==="left"||l==="right")&&(d.top<0?t.top=-n.top:d.bottom<0&&(t.top=-n.top+(c.height-o.height))),{popupPosition:t,position:h}},E4=(e,t,n,{offset:r=0,translate:o=[0,0]}={})=>{var a;const s=(a=or(o)?o:o[e])!=null?a:[0,0];switch(e){case"top":return{left:t.scrollLeft+Math.round(t.width/2)-Math.round(n.width/2)+s[0],top:t.scrollTop-n.height-r+s[1]};case"tl":return{left:t.scrollLeft+s[0],top:t.scrollTop-n.height-r+s[1]};case"tr":return{left:t.scrollRight-n.width+s[0],top:t.scrollTop-n.height-r+s[1]};case"bottom":return{left:t.scrollLeft+Math.round(t.width/2)-Math.round(n.width/2)+s[0],top:t.scrollBottom+r+s[1]};case"bl":return{left:t.scrollLeft+s[0],top:t.scrollBottom+r+s[1]};case"br":return{left:t.scrollRight-n.width+s[0],top:t.scrollBottom+r+s[1]};case"left":return{left:t.scrollLeft-n.width-r+s[0],top:t.scrollTop+Math.round(t.height/2)-Math.round(n.height/2)+s[1]};case"lt":return{left:t.scrollLeft-n.width-r+s[0],top:t.scrollTop+s[1]};case"lb":return{left:t.scrollLeft-n.width-r+s[0],top:t.scrollBottom-n.height+s[1]};case"right":return{left:t.scrollRight+r+s[0],top:t.scrollTop+Math.round(t.height/2)-Math.round(n.height/2)+s[1]};case"rt":return{left:t.scrollRight+r+s[0],top:t.scrollTop+s[1]};case"rb":return{left:t.scrollRight+r+s[0],top:t.scrollBottom-n.height+s[1]};default:return{left:0,top:0}}},FDe=e=>{let t="0";["top","bottom"].includes(e)?t="50%":["left","lt","lb","tr","br"].includes(e)&&(t="100%");let n="0";return["left","right"].includes(e)?n="50%":["top","tl","tr","lb","rb"].includes(e)&&(n="100%"),`${t} ${n}`},jDe=(e,t,n,r,{offset:o=0,translate:a=[0,0],customStyle:s={},autoFitPosition:l=!1}={})=>{let c=e,d=E4(e,n,r,{offset:o,translate:a});if(l){const p=NDe(e,d,{containerRect:t,popupRect:r,triggerRect:n,offset:o,translate:a});d=p.popupPosition,c=p.position}return{style:{left:`${d.left}px`,top:`${d.top}px`,...s},position:c}},VDe=(e,t,n,{customStyle:r={}})=>{if(["top","tl","tr","bottom","bl","br"].includes(e)){let a=Math.abs(t.scrollLeft+t.width/2-n.scrollLeft);return a>n.width-8&&(t.width>n.width?a=n.width/2:a=n.width-8),["top","tl","tr"].includes(e)?{left:`${a}px`,bottom:"0",transform:"translate(-50%,50%) rotate(45deg)",...r}:{left:`${a}px`,top:"0",transform:"translate(-50%,-50%) rotate(45deg)",...r}}let o=Math.abs(t.scrollTop+t.height/2-n.scrollTop);return o>n.height-8&&(t.height>n.height?o=n.height/2:o=n.height-8),["left","lt","lb"].includes(e)?{top:`${o}px`,right:"0",transform:"translate(50%,-50%) rotate(45deg)",...r}:{top:`${o}px`,left:"0",transform:"translate(-50%,-50%) rotate(45deg)",...r}},zDe=e=>e.scrollHeight>e.offsetHeight||e.scrollWidth>e.offsetWidth,Hne=e=>{var t;const n=[];let r=e;for(;r&&r!==document.documentElement;)zDe(r)&&n.push(r),r=(t=r.parentElement)!=null?t:void 0;return n},npe=()=>{const e={},t=fe(),n=()=>{const r=zhe(e.value);r!==t.value&&(t.value=r)};return bn(()=>n()),Qa(()=>n()),{children:e,firstElement:t}};var x0=Se({name:"ResizeObserver",props:{watchOnUpdated:Boolean},emits:["resize"],setup(e,{emit:t,slots:n}){const{children:r,firstElement:o}=npe();let a;const s=c=>{c&&(a=new C5(d=>{const h=d[0];t("resize",h)}),a.observe(c))},l=()=>{a&&(a.disconnect(),a=null)};return Rt(o,c=>{a&&l(),c&&s(c)}),Io(()=>{a&&l()}),()=>{var c;return r.value=(c=n.default)==null?void 0:c.call(n),r.value}}});function xd(e,t){const n=fe(e[t]);return Qa(()=>{const r=e[t];n.value!==r&&(n.value=r)}),n}const Wne=Symbol("ArcoTrigger"),UDe=1e3,HDe=5e3,WDe=1;class GDe{constructor(){this.popupStack={popup:new Set,dialog:new Set,message:new Set},this.getNextZIndex=t=>(t==="message"?Array.from(this.popupStack.message).pop()||HDe:Array.from(this.popupStack.popup).pop()||UDe)+WDe,this.add=t=>{const n=this.getNextZIndex(t);return this.popupStack[t].add(n),t==="dialog"&&this.popupStack.popup.add(n),n},this.delete=(t,n)=>{this.popupStack[n].delete(t),n==="dialog"&&this.popupStack.popup.delete(t)},this.isLastDialog=t=>this.popupStack.dialog.size>1?t===Array.from(this.popupStack.dialog).pop():!0}}const MP=new GDe;function o3(e,{visible:t,runOnMounted:n}={}){const r=fe(0),o=()=>{r.value=MP.add(e)},a=()=>{MP.delete(r.value,e)},s=()=>e==="dialog"?MP.isLastDialog(r.value):!1;return Rt(()=>t?.value,l=>{l?o():a()},{immediate:!0}),n&&(bn(()=>{o()}),Io(()=>{a()})),{zIndex:Gb(r),open:o,close:a,isLastDialog:s}}const KDe=({elementRef:e,onResize:t})=>{let n;return{createResizeObserver:()=>{e.value&&(n=new C5(a=>{const s=a[0];En(t)&&t(s)}),n.observe(e.value))},destroyResizeObserver:()=>{n&&(n.disconnect(),n=null)}}};var oH=Se({name:"ClientOnly",setup(e,{slots:t}){const n=fe(!1);return bn(()=>n.value=!0),()=>{var r;return n.value?(r=t.default)==null?void 0:r.call(t):null}}});const sH=({popupContainer:e,visible:t,defaultContainer:n="body",documentContainer:r})=>{const o=fe(e.value),a=fe(),s=()=>{const l=af(e.value),c=l?e.value:n,d=l??(r?document.documentElement:af(n));c!==o.value&&(o.value=c),d!==a.value&&(a.value=d)};return bn(()=>s()),Rt(t,l=>{o.value!==e.value&&l&&s()}),{teleportContainer:o,containerRef:a}},qDe=["onClick","onMouseenter","onMouseleave","onFocusin","onFocusout","onContextmenu"];var OP=Se({name:"Trigger",inheritAttrs:!1,props:{popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},trigger:{type:[String,Array],default:"hover"},position:{type:String,default:"bottom"},disabled:{type:Boolean,default:!1},popupOffset:{type:Number,default:0},popupTranslate:{type:[Array,Object]},showArrow:{type:Boolean,default:!1},alignPoint:{type:Boolean,default:!1},popupHoverStay:{type:Boolean,default:!0},blurToClose:{type:Boolean,default:!0},clickToClose:{type:Boolean,default:!0},clickOutsideToClose:{type:Boolean,default:!0},unmountOnClose:{type:Boolean,default:!0},contentClass:{type:[String,Array,Object]},contentStyle:{type:Object},arrowClass:{type:[String,Array,Object]},arrowStyle:{type:Object},popupStyle:{type:Object},animationName:{type:String,default:"fade-in"},duration:{type:[Number,Object]},mouseEnterDelay:{type:Number,default:100},mouseLeaveDelay:{type:Number,default:100},focusDelay:{type:Number,default:0},autoFitPopupWidth:{type:Boolean,default:!1},autoFitPopupMinWidth:{type:Boolean,default:!1},autoFixPosition:{type:Boolean,default:!0},popupContainer:{type:[String,Object]},updateAtScroll:{type:Boolean,default:!1},autoFitTransformOrigin:{type:Boolean,default:!1},hideEmpty:{type:Boolean,default:!1},openedClass:{type:[String,Array,Object]},autoFitPosition:{type:Boolean,default:!0},renderToBody:{type:Boolean,default:!0},preventFocus:{type:Boolean,default:!1},scrollToClose:{type:Boolean,default:!1},scrollToCloseDistance:{type:Number,default:0}},emits:{"update:popupVisible":e=>!0,popupVisibleChange:e=>!0,show:()=>!0,hide:()=>!0,resize:()=>!0},setup(e,{emit:t,slots:n,attrs:r}){const{popupContainer:o}=nn(e),a=Te("trigger"),s=j(()=>xa(r,qDe)),l=On(Ya,void 0),c=j(()=>[].concat(e.trigger)),d=new Set,h=On(Wne,void 0),{children:p,firstElement:v}=npe(),g=fe(),y=fe(e.defaultPopupVisible),S=fe(e.position),k=fe({}),C=fe({}),x=fe({}),E=fe(),_=fe({top:0,left:0});let T=null,D=null;const P=j(()=>{var Be;return(Be=e.popupVisible)!=null?Be:y.value}),{teleportContainer:M,containerRef:$}=sH({popupContainer:o,visible:P,documentContainer:!0}),{zIndex:L}=o3("popup",{visible:P});let B=0,F=!1,W=!1;const U=()=>{B&&(window.clearTimeout(B),B=0)},G=Be=>{if(e.alignPoint){const{pageX:Ae,pageY:Re}=Be;_.value={top:Re,left:Ae}}},X=()=>{if(!v.value||!g.value||!$.value)return;const Be=$.value.getBoundingClientRect(),Ae=e.alignPoint?{top:_.value.top,bottom:_.value.top,left:_.value.left,right:_.value.left,scrollTop:_.value.top,scrollBottom:_.value.top,scrollLeft:_.value.left,scrollRight:_.value.left,width:0,height:0}:Une(v.value,Be),Re=()=>Une(g.value,Be),Xe=Re(),{style:dt,position:Dt}=jDe(e.position,Be,Ae,Xe,{offset:e.popupOffset,translate:e.popupTranslate,customStyle:e.popupStyle,autoFitPosition:e.autoFitPosition});e.autoFitTransformOrigin&&(C.value={transformOrigin:FDe(Dt)}),e.autoFitPopupMinWidth?dt.minWidth=`${Ae.width}px`:e.autoFitPopupWidth&&(dt.width=`${Ae.width}px`),S.value!==Dt&&(S.value=Dt),k.value=dt,e.showArrow&&Cn(()=>{x.value=VDe(Dt,Ae,Re(),{customStyle:e.arrowStyle})})},oe=(Be,Ae)=>{if(Be===P.value&&B===0)return;const Re=()=>{y.value=Be,t("update:popupVisible",Be),t("popupVisibleChange",Be),Be&&Cn(()=>{X()})};Be||(T=null,D=null),Ae?(U(),Be!==P.value&&(B=window.setTimeout(Re,Ae))):Re()},Z=Be=>{var Ae;(Ae=r.onClick)==null||Ae.call(r,Be),!(e.disabled||P.value&&!e.clickToClose)&&(c.value.includes("click")?(G(Be),oe(!P.value)):c.value.includes("contextMenu")&&P.value&&oe(!1))},H=Be=>{var Ae;(Ae=r.onMouseenter)==null||Ae.call(r,Be),!(e.disabled||!c.value.includes("hover"))&&(G(Be),oe(!0,e.mouseEnterDelay))},q=Be=>{h?.onMouseenter(Be),H(Be)},ee=Be=>{var Ae;(Ae=r.onMouseleave)==null||Ae.call(r,Be),!(e.disabled||!c.value.includes("hover"))&&oe(!1,e.mouseLeaveDelay)},ne=Be=>{h?.onMouseleave(Be),ee(Be)},ae=Be=>{var Ae;(Ae=r.onFocusin)==null||Ae.call(r,Be),!(e.disabled||!c.value.includes("focus"))&&oe(!0,e.focusDelay)},re=Be=>{var Ae;(Ae=r.onFocusout)==null||Ae.call(r,Be),!(e.disabled||!c.value.includes("focus"))&&e.blurToClose&&oe(!1)},ke=Be=>{var Ae;(Ae=r.onContextmenu)==null||Ae.call(r,Be),!(e.disabled||!c.value.includes("contextMenu")||P.value&&!e.clickToClose)&&(G(Be),oe(!P.value),Be.preventDefault())};ri(Wne,Xt({onMouseenter:q,onMouseleave:ne,addChildRef:Be=>{d.add(Be),h?.addChildRef(Be)},removeChildRef:Be=>{d.delete(Be),h?.removeChildRef(Be)}}));const _e=()=>{ro(document.documentElement,"mousedown",Me),F=!1},Ue=xd(n,"content"),Qe=j(()=>{var Be;return e.hideEmpty&&l7e((Be=Ue.value)==null?void 0:Be.call(Ue))}),Me=Be=>{var Ae,Re,Xe;if(!((Ae=v.value)!=null&&Ae.contains(Be.target)||(Re=g.value)!=null&&Re.contains(Be.target))){for(const dt of d)if((Xe=dt.value)!=null&&Xe.contains(Be.target))return;_e(),oe(!1)}},je=(Be,Ae)=>{const[Re,Xe]=Be,{scrollTop:dt,scrollLeft:Dt}=Ae;return Math.abs(dt-Re)>=e.scrollToCloseDistance||Math.abs(Dt-Xe)>=e.scrollToCloseDistance},ge=Im(Be=>{if(P.value)if(e.scrollToClose||l?.scrollToClose){const Ae=Be.target;T||(T=[Ae.scrollTop,Ae.scrollLeft]),je(T,Ae)?oe(!1):X()}else X()}),be=()=>{ro(window,"scroll",Fe),W=!1},Fe=Im(Be=>{const Ae=Be.target.documentElement;D||(D=[Ae.scrollTop,Ae.scrollLeft]),je(D,Ae)&&(oe(!1),be())}),He=()=>{P.value&&X()},Je=()=>{He(),t("resize")},rt=Be=>{e.preventFocus&&Be.preventDefault()};h?.addChildRef(g);const ht=j(()=>P.value?e.openedClass:void 0);let ut;Rt(P,Be=>{if(e.clickOutsideToClose&&(!Be&&F?_e():Be&&!F&&(Mi(document.documentElement,"mousedown",Me),F=!0)),(e.scrollToClose||l?.scrollToClose)&&(Mi(window,"scroll",Fe),W=!0),e.updateAtScroll||l?.updateAtScroll){if(Be){ut=Hne(v.value);for(const Ae of ut)Ae.addEventListener("scroll",ge)}else if(ut){for(const Ae of ut)Ae.removeEventListener("scroll",ge);ut=void 0}}Be&&(Gt.value=!0)}),Rt(()=>[e.autoFitPopupWidth,e.autoFitPopupMinWidth],()=>{P.value&&X()});const{createResizeObserver:Ct,destroyResizeObserver:St}=KDe({elementRef:$,onResize:He});bn(()=>{if(Ct(),P.value&&(X(),e.clickOutsideToClose&&!F&&(Mi(document.documentElement,"mousedown",Me),F=!0),e.updateAtScroll||l?.updateAtScroll)){ut=Hne(v.value);for(const Be of ut)Be.addEventListener("scroll",ge)}}),Qa(()=>{P.value&&X()}),FU(()=>{oe(!1)}),Io(()=>{if(h?.removeChildRef(g),St(),F&&_e(),W&&be(),ut){for(const Be of ut)Be.removeEventListener("scroll",ge);ut=void 0}});const Gt=fe(P.value),Tt=fe(!1),Mt=()=>{Tt.value=!0},sn=()=>{Tt.value=!1,P.value&&t("show")},ct=()=>{Tt.value=!1,P.value||(Gt.value=!1,t("hide"))};return()=>{var Be,Ae;return p.value=(Ae=(Be=n.default)==null?void 0:Be.call(n))!=null?Ae:[],jhe(p.value,{class:ht.value,onClick:Z,onMouseenter:H,onMouseleave:ee,onFocusin:ae,onFocusout:re,onContextmenu:ke}),O(Nt,null,[e.autoFixPosition?O(x0,{onResize:Je},{default:()=>[p.value]}):p.value,O(oH,null,{default:()=>[O(qm,{to:M.value,disabled:!e.renderToBody},{default:()=>[(!e.unmountOnClose||P.value||Gt.value)&&!Qe.value&&O(x0,{onResize:He},{default:()=>[O("div",Vt({ref:g,class:[`${a}-popup`,`${a}-position-${S.value}`],style:{...k.value,zIndex:L.value,pointerEvents:Tt.value?"none":"auto"},"trigger-placement":S.value,onMouseenter:q,onMouseleave:ne,onMousedown:rt},s.value),[O(Cs,{name:e.animationName,duration:e.duration,appear:!0,onBeforeEnter:Mt,onAfterEnter:sn,onBeforeLeave:Mt,onAfterLeave:ct},{default:()=>{var Re;return[Ai(O("div",{class:`${a}-popup-wrapper`,style:C.value},[O("div",{class:[`${a}-content`,e.contentClass],style:e.contentStyle},[(Re=n.content)==null?void 0:Re.call(n)]),e.showArrow&&O("div",{ref:E,class:[`${a}-arrow`,e.arrowClass],style:x.value},null)]),[[Qo,P.value]])]}})])]})]})]})])}}});const ha=Object.assign(OP,{install:(e,t)=>{Xn(e,t);const n=Yn(t);e.component(n+OP.name,OP)}}),YDe=Se({name:"IconEmpty",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-empty`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),XDe=["stroke-width","stroke-linecap","stroke-linejoin"];function ZDe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24 5v6m7 1 4-4m-18 4-4-4m28.5 22H28s-1 3-4 3-4-3-4-3H6.5M40 41H8a2 2 0 0 1-2-2v-8.46a2 2 0 0 1 .272-1.007l6.15-10.54A2 2 0 0 1 14.148 18H33.85a2 2 0 0 1 1.728.992l6.149 10.541A2 2 0 0 1 42 30.541V39a2 2 0 0 1-2 2Z"},null,-1)]),14,XDe)}var $P=Ve(YDe,[["render",ZDe]]);const aH=Object.assign($P,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+$P.name,$P)}});var JC=Se({name:"Empty",inheritAttrs:!1,props:{description:String,imgSrc:String,inConfigProvider:{type:Boolean,default:!1}},setup(e,{slots:t,attrs:n}){const r=Te("empty"),{t:o}=No(),a=On(Ya,void 0);return()=>{var s,l,c,d;return!e.inConfigProvider&&a?.slots.empty&&!(t.image||e.imgSrc||e.description)?a.slots.empty({component:"empty"}):O("div",Vt({class:r},n),[O("div",{class:`${r}-image`},[(l=(s=t.image)==null?void 0:s.call(t))!=null?l:e.imgSrc?O("img",{src:e.imgSrc,alt:e.description||"empty"},null):O(aH,null,null)]),O("div",{class:`${r}-description`},[(d=(c=t.default)==null?void 0:c.call(t))!=null?d:e.description||o("empty.description")])])}}});const Xh=Object.assign(JC,{install:(e,t)=>{Xn(e,t);const n=Yn(t);e.component(n+JC.name,JC)}}),JDe=5;var QDe=Se({name:"DotLoading",props:{size:{type:Number}},setup(e){const t=Te("dot-loading");return()=>{const n=e.size?{width:`${e.size}px`,height:`${e.size}px`}:{};return O("div",{class:t,style:{width:e.size?`${e.size*7}px`:void 0,height:e.size?`${e.size}px`:void 0}},[Array(JDe).fill(1).map((r,o)=>O("div",{class:`${t}-item`,key:o,style:n},null))])}}}),BP=Se({name:"Spin",props:{size:{type:Number},loading:Boolean,dot:Boolean,tip:String,hideIcon:{type:Boolean,default:!1}},setup(e,{slots:t}){const n=Te("spin"),r=On(Ya,void 0),o=j(()=>[n,{[`${n}-loading`]:e.loading,[`${n}-with-tip`]:e.tip&&!t.default}]),a=()=>{if(t.icon){const l=ry(t.icon());if(l)return wl(l,{spin:!0})}return t.element?t.element():e.dot?O(QDe,{size:e.size},null):r?.slots.loading?r.slots.loading():O(Xa,{spin:!0,size:e.size},null)},s=()=>{var l,c,d;const h=e.size?{fontSize:`${e.size}px`}:void 0,p=!!((l=t.tip)!=null?l:e.tip);return O(Nt,null,[!e.hideIcon&&O("div",{class:`${n}-icon`,style:h},[a()]),p&&O("div",{class:`${n}-tip`},[(d=(c=t.tip)==null?void 0:c.call(t))!=null?d:e.tip])])};return()=>O("div",{class:o.value},[t.default?O(Nt,null,[t.default(),e.loading&&O("div",{class:`${n}-mask`},[O("div",{class:`${n}-mask-icon`},[s()])])]):s()])}});const Pd=Object.assign(BP,{install:(e,t)=>{Xn(e,t);const n=Yn(t);e.component(n+BP.name,BP)}}),ePe=Se({name:"Thumb",props:{data:{type:Object},direction:{type:String,default:"horizontal"},alwaysShow:{type:Boolean,default:!1},both:{type:Boolean,default:!1}},emits:["scroll"],setup(e,{emit:t}){const n=Te("scrollbar"),r=fe(!1),o=fe(),a=fe(),s=j(()=>e.direction==="horizontal"?{size:"width",direction:"left",offset:"offsetWidth",client:"clientX"}:{size:"height",direction:"top",offset:"offsetHeight",client:"clientY"}),l=fe(0),c=fe(!1),d=fe(0),h=j(()=>{var x,E;return{[s.value.size]:`${(E=(x=e.data)==null?void 0:x.thumbSize)!=null?E:0}px`,[s.value.direction]:`${l.value}px`}}),p=x=>{x.preventDefault(),a.value&&(d.value=x[s.value.client]-a.value.getBoundingClientRect()[s.value.direction],c.value=!0,Mi(window,"mousemove",y),Mi(window,"mouseup",S),Mi(window,"contextmenu",S))},v=x=>{var E,_,T,D;if(x.preventDefault(),a.value){const P=g(x[s.value.client]>a.value.getBoundingClientRect()[s.value.direction]?l.value+((_=(E=e.data)==null?void 0:E.thumbSize)!=null?_:0):l.value-((D=(T=e.data)==null?void 0:T.thumbSize)!=null?D:0));P!==l.value&&(l.value=P,t("scroll",P))}},g=x=>x<0?0:e.data&&x>e.data.max?e.data.max:x,y=x=>{if(o.value&&a.value){const E=g(x[s.value.client]-o.value.getBoundingClientRect()[s.value.direction]-d.value);E!==l.value&&(l.value=E,t("scroll",E))}},S=()=>{c.value=!1,ro(window,"mousemove",y),ro(window,"mouseup",S)},k=x=>{c.value||(x=g(x),x!==l.value&&(l.value=x))},C=j(()=>[`${n}-thumb`,`${n}-thumb-direction-${e.direction}`,{[`${n}-thumb-dragging`]:c.value}]);return{visible:r,trackRef:o,thumbRef:a,prefixCls:n,thumbCls:C,thumbStyle:h,handleThumbMouseDown:p,handleTrackClick:v,setOffset:k}}});function tPe(e,t,n,r,o,a){return z(),Ye(Cs,null,{default:de(()=>[I("div",{ref:"trackRef",class:ue([`${e.prefixCls}-track`,`${e.prefixCls}-track-direction-${e.direction}`]),onMousedown:t[1]||(t[1]=us((...s)=>e.handleTrackClick&&e.handleTrackClick(...s),["self"]))},[I("div",{ref:"thumbRef",class:ue(e.thumbCls),style:Ke(e.thumbStyle),onMousedown:t[0]||(t[0]=(...s)=>e.handleThumbMouseDown&&e.handleThumbMouseDown(...s))},[I("div",{class:ue(`${e.prefixCls}-thumb-bar`)},null,2)],38)],34)]),_:1})}var nPe=Ve(ePe,[["render",tPe]]);const Gne=20,mx=15,rPe=Se({name:"Scrollbar",components:{ResizeObserver:x0,Thumb:nPe},inheritAttrs:!1,props:{type:{type:String,default:"embed"},outerClass:[String,Object,Array],outerStyle:{type:[String,Object,Array]},hide:{type:Boolean,default:!1},disableHorizontal:{type:Boolean,default:!1},disableVertical:{type:Boolean,default:!1}},emits:{scroll:e=>!0},setup(e,{emit:t}){const n=Te("scrollbar"),r=fe(),o=fe(),a=fe(),s=fe(),l=fe(),c=fe(!1),d=fe(!1),h=j(()=>c.value&&!e.disableHorizontal),p=j(()=>d.value&&!e.disableVertical),v=fe(!1),g=()=>{var _,T,D,P,M,$;if(r.value){const{clientWidth:L,clientHeight:B,offsetWidth:F,offsetHeight:W,scrollWidth:U,scrollHeight:G,scrollTop:X,scrollLeft:oe}=r.value;c.value=U>L,d.value=G>B,v.value=h.value&&p.value;const Z=e.type==="embed"&&v.value?F-mx:F,H=e.type==="embed"&&v.value?W-mx:W,q=Math.round(Z/Math.min(U/L,Z/Gne)),ee=Z-q,ne=(U-L)/ee,ae=Math.round(H/Math.min(G/B,H/Gne)),re=H-ae,ke=(G-B)/re;if(o.value={ratio:ne,thumbSize:q,max:ee},a.value={ratio:ke,thumbSize:ae,max:re},X>0){const Ne=Math.round(X/((T=(_=a.value)==null?void 0:_.ratio)!=null?T:1));(D=l.value)==null||D.setOffset(Ne)}if(oe>0){const Ne=Math.round(oe/((M=(P=a.value)==null?void 0:P.ratio)!=null?M:1));($=s.value)==null||$.setOffset(Ne)}}};bn(()=>{g()});const y=()=>{g()},S=_=>{var T,D,P,M,$,L;if(r.value){if(h.value&&!e.disableHorizontal){const B=Math.round(r.value.scrollLeft/((D=(T=o.value)==null?void 0:T.ratio)!=null?D:1));(P=s.value)==null||P.setOffset(B)}if(p.value&&!e.disableVertical){const B=Math.round(r.value.scrollTop/(($=(M=a.value)==null?void 0:M.ratio)!=null?$:1));(L=l.value)==null||L.setOffset(B)}}t("scroll",_)},k=_=>{var T,D;r.value&&r.value.scrollTo({left:_*((D=(T=o.value)==null?void 0:T.ratio)!=null?D:1)})},C=_=>{var T,D;r.value&&r.value.scrollTo({top:_*((D=(T=a.value)==null?void 0:T.ratio)!=null?D:1)})},x=j(()=>{const _={};return e.type==="track"&&(h.value&&(_.paddingBottom=`${mx}px`),p.value&&(_.paddingRight=`${mx}px`)),[_,e.outerStyle]}),E=j(()=>[`${n}`,`${n}-type-${e.type}`,{[`${n}-both`]:v.value},e.outerClass]);return{prefixCls:n,cls:E,style:x,containerRef:r,horizontalThumbRef:s,verticalThumbRef:l,horizontalData:o,verticalData:a,isBoth:v,hasHorizontalScrollbar:h,hasVerticalScrollbar:p,handleResize:y,handleScroll:S,handleHorizontalScroll:k,handleVerticalScroll:C}},methods:{scrollTo(e,t){var n,r;br(e)?(n=this.$refs.containerRef)==null||n.scrollTo(e):(e||t)&&((r=this.$refs.containerRef)==null||r.scrollTo(e,t))},scrollTop(e){var t;(t=this.$refs.containerRef)==null||t.scrollTo({top:e})},scrollLeft(e){var t;(t=this.$refs.containerRef)==null||t.scrollTo({left:e})}}});function iPe(e,t,n,r,o,a){const s=Ie("ResizeObserver"),l=Ie("thumb");return z(),Q("div",{class:ue(e.cls),style:Ke(e.style)},[O(s,{onResize:e.handleResize},{default:de(()=>[I("div",Vt({ref:"containerRef",class:`${e.prefixCls}-container`},e.$attrs,{onScroll:t[0]||(t[0]=(...c)=>e.handleScroll&&e.handleScroll(...c))}),[O(s,{onResize:e.handleResize},{default:de(()=>[vt(e.$slots,"default")]),_:3},8,["onResize"])],16)]),_:3},8,["onResize"]),!e.hide&&e.hasHorizontalScrollbar?(z(),Ye(l,{key:0,ref:"horizontalThumbRef",data:e.horizontalData,direction:"horizontal",both:e.isBoth,onScroll:e.handleHorizontalScroll},null,8,["data","both","onScroll"])):Le("v-if",!0),!e.hide&&e.hasVerticalScrollbar?(z(),Ye(l,{key:1,ref:"verticalThumbRef",data:e.verticalData,direction:"vertical",both:e.isBoth,onScroll:e.handleVerticalScroll},null,8,["data","both","onScroll"])):Le("v-if",!0)],6)}var NP=Ve(rPe,[["render",iPe]]);const Rd=Object.assign(NP,{install:(e,t)=>{Xn(e,t);const n=Yn(t);e.component(n+NP.name,NP)}}),U1=e=>{const t=fe(),n=()=>Mhe(t.value)?t.value.$refs[e]:t.value,r=fe();return bn(()=>{r.value=n()}),Rt([t],()=>{r.value=n()}),{componentRef:t,elementRef:r}},D5=e=>{const t=j(()=>!!e.value),n=j(()=>{if(e.value)return{type:"embed",...El(e.value)?void 0:e.value}});return{displayScrollbar:t,scrollbarProps:n}},oPe=Se({name:"SelectDropdown",components:{ScrollbarComponent:Rd,Empty:Xh,Spin:Pd},props:{loading:Boolean,empty:Boolean,virtualList:Boolean,bottomOffset:{type:Number,default:0},scrollbar:{type:[Boolean,Object],default:!0},onScroll:{type:[Function,Array]},onReachBottom:{type:[Function,Array]},showHeaderOnEmpty:{type:Boolean,default:!1},showFooterOnEmpty:{type:Boolean,default:!1}},emits:["scroll","reachBottom"],setup(e,{emit:t,slots:n}){var r,o,a;const{scrollbar:s}=nn(e),l=Te("select-dropdown"),c=On(Ya,void 0),d=(a=(o=c==null?void 0:(r=c.slots).empty)==null?void 0:o.call(r,{component:"select"}))==null?void 0:a[0],{componentRef:h,elementRef:p}=U1("containerRef"),{displayScrollbar:v,scrollbarProps:g}=D5(s),y=k=>{const{scrollTop:C,scrollHeight:x,offsetHeight:E}=k.target;x-(C+E)<=e.bottomOffset&&t("reachBottom",k),t("scroll",k)},S=j(()=>[l,{[`${l}-has-header`]:!!n.header,[`${l}-has-footer`]:!!n.footer}]);return{prefixCls:l,SelectEmpty:d,cls:S,wrapperRef:p,wrapperComRef:h,handleScroll:y,displayScrollbar:v,scrollbarProps:g}}});function sPe(e,t,n,r,o,a){const s=Ie("spin");return z(),Q("div",{class:ue(e.cls)},[e.$slots.header&&(!e.empty||e.showHeaderOnEmpty)?(z(),Q("div",{key:0,class:ue(`${e.prefixCls}-header`)},[vt(e.$slots,"header")],2)):Le("v-if",!0),e.loading?(z(),Ye(s,{key:1,class:ue(`${e.prefixCls}-loading`)},null,8,["class"])):e.empty?(z(),Q("div",{key:2,class:ue(`${e.prefixCls}-empty`)},[vt(e.$slots,"empty",{},()=>[(z(),Ye(Wa(e.SelectEmpty?e.SelectEmpty:"Empty")))])],2)):Le("v-if",!0),e.virtualList&&!e.loading&&!e.empty?vt(e.$slots,"virtual-list",{key:3}):Le("v-if",!0),e.virtualList?Le("v-if",!0):Ai((z(),Ye(Wa(e.displayScrollbar?"ScrollbarComponent":"div"),Vt({key:4,ref:"wrapperComRef",class:`${e.prefixCls}-list-wrapper`},e.scrollbarProps,{onScroll:e.handleScroll}),{default:de(()=>[I("ul",{class:ue(`${e.prefixCls}-list`)},[vt(e.$slots,"default")],2)]),_:3},16,["class","onScroll"])),[[Qo,!e.loading&&!e.empty]]),e.$slots.footer&&(!e.empty||e.showFooterOnEmpty)?(z(),Q("div",{key:5,class:ue(`${e.prefixCls}-footer`)},[vt(e.$slots,"footer")],2)):Le("v-if",!0)],2)}var lH=Ve(oPe,[["render",sPe]]),Kne=Se({name:"IconCheck",render(){return O("svg",{"aria-hidden":"true",focusable:"false",viewBox:"0 0 1024 1024",width:"200",height:"200",fill:"currentColor"},[O("path",{d:"M877.44815445 206.10060629a64.72691371 64.72691371 0 0 0-95.14856334 4.01306852L380.73381888 685.46812814 235.22771741 533.48933518a64.72691371 64.72691371 0 0 0-92.43003222-1.03563036l-45.82665557 45.82665443a64.72691371 64.72691371 0 0 0-0.90617629 90.61767965l239.61903446 250.10479331a64.72691371 64.72691371 0 0 0 71.19960405 15.14609778 64.33855261 64.33855261 0 0 0 35.08198741-21.23042702l36.24707186-42.71976334 40.5190474-40.77795556-3.36579926-3.49525333 411.40426297-486.74638962a64.72691371 64.72691371 0 0 0-3.88361443-87.64024149l-45.3088404-45.43829334z","p-id":"840"},null)])}});const rpe=Symbol("ArcoCheckboxGroup");var QC=Se({name:"Checkbox",components:{IconCheck:Kne,IconHover:Lo},props:{modelValue:{type:[Boolean,Array],default:void 0},defaultChecked:{type:Boolean,default:!1},value:{type:[String,Number,Boolean]},disabled:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},uninjectGroupContext:{type:Boolean,default:!1}},emits:{"update:modelValue":e=>!0,change:(e,t)=>!0},setup(e,{emit:t,slots:n}){const{disabled:r,modelValue:o}=nn(e),a=Te("checkbox"),s=fe(),l=e.uninjectGroupContext?void 0:On(rpe,void 0),c=l?.name==="ArcoCheckboxGroup",{mergedDisabled:d,eventHandlers:h}=Do({disabled:r}),p=fe(e.defaultChecked),v=j(()=>{var _;return c?l?.computedValue:(_=e.modelValue)!=null?_:p.value}),g=j(()=>{var _;return or(v.value)?v.value.includes((_=e.value)!=null?_:!0):v.value}),y=j(()=>l?.disabled||d?.value||!g.value&&l?.isMaxed),S=_=>{_.stopPropagation()},k=_=>{var T,D,P,M;const{checked:$}=_.target;let L=$;if(or(v.value)){const B=new Set(v.value);$?B.add((T=e.value)!=null?T:!0):B.delete((D=e.value)!=null?D:!0),L=Array.from(B)}p.value=$,c&&or(L)?l?.handleChange(L,_):(t("update:modelValue",L),t("change",L,_),(M=(P=h.value)==null?void 0:P.onChange)==null||M.call(P,_)),Cn(()=>{s.value&&s.value.checked!==g.value&&(s.value.checked=g.value)})},C=j(()=>[a,{[`${a}-checked`]:g.value,[`${a}-indeterminate`]:e.indeterminate,[`${a}-disabled`]:y.value}]),x=_=>{var T,D;(D=(T=h.value)==null?void 0:T.onFocus)==null||D.call(T,_)},E=_=>{var T,D;(D=(T=h.value)==null?void 0:T.onBlur)==null||D.call(T,_)};return Rt(o,_=>{(An(_)||Tl(_))&&(p.value=!1)}),Rt(v,_=>{var T;let D;or(_)?D=_.includes((T=e.value)!=null?T:!0):D=_,p.value!==D&&(p.value=D),s.value&&s.value.checked!==D&&(s.value.checked=D)}),()=>{var _,T,D,P;return O("label",{"aria-disabled":y.value,class:C.value},[O("input",{ref:s,type:"checkbox",checked:g.value,value:e.value,class:`${a}-target`,disabled:y.value,onClick:S,onChange:k,onFocus:x,onBlur:E},null),(P=(D=(T=n.checkbox)!=null?T:(_=l?.slots)==null?void 0:_.checkbox)==null?void 0:D({checked:g.value,disabled:y.value}))!=null?P:O(Lo,{class:`${a}-icon-hover`,disabled:y.value||g.value},{default:()=>[O("div",{class:`${a}-icon`},[g.value&&O(Kne,{class:`${a}-icon-check`},null)])]}),n.default&&O("span",{class:`${a}-label`},[n.default()])])}}}),eb=Se({name:"CheckboxGroup",props:{modelValue:{type:Array,default:void 0},defaultValue:{type:Array,default:()=>[]},max:{type:Number},options:{type:Array},direction:{type:String,default:"horizontal"},disabled:{type:Boolean,default:!1}},emits:{"update:modelValue":e=>!0,change:(e,t)=>!0},setup(e,{emit:t,slots:n}){const{disabled:r}=nn(e),o=Te("checkbox-group"),{mergedDisabled:a,eventHandlers:s}=Do({disabled:r}),l=fe(e.defaultValue),c=j(()=>or(e.modelValue)?e.modelValue:l.value),d=j(()=>e.max===void 0?!1:c.value.length>=e.max),h=j(()=>{var y;return((y=e.options)!=null?y:[]).map(S=>cs(S)||Ze(S)?{label:S,value:S}:S)});ri(rpe,Xt({name:"ArcoCheckboxGroup",computedValue:c,disabled:a,isMaxed:d,slots:n,handleChange:(y,S)=>{var k,C;l.value=y,t("update:modelValue",y),t("change",y,S),(C=(k=s.value)==null?void 0:k.onChange)==null||C.call(k,S)}}));const v=j(()=>[o,`${o}-direction-${e.direction}`]);Rt(()=>e.modelValue,y=>{or(y)?l.value=[...y]:l.value=[]});const g=()=>h.value.map(y=>{const S=c.value.includes(y.value);return O(QC,{key:y.value,value:y.value,disabled:y.disabled||!S&&d.value,indeterminate:y.indeterminate,modelValue:S},{default:()=>[n.label?n.label({data:y}):En(y.label)?y.label():y.label]})});return()=>{var y;return O("span",{class:v.value},[h.value.length>0?g():(y=n.default)==null?void 0:y.call(n)])}}});const Uc=Object.assign(QC,{Group:eb,install:(e,t)=>{Xn(e,t);const n=Yn(t);e.component(n+QC.name,QC),e.component(n+eb.name,eb)}}),ipe=Symbol("ArcoSelectContext"),aPe=e=>br(e)&&"isGroup"in e,ope=e=>br(e)&&"isGroup"in e,lPe=(e,t="value")=>String(br(e)?e[t]:e),Dm=(e,t="value")=>br(e)?`__arco__option__object__${e[t]}`:e||Ze(e)||cs(e)||El(e)?`__arco__option__${typeof e}-${e}`:"",uPe=e=>e.has("__arco__option__string-"),cPe=(e,{valueKey:t,fieldNames:n,origin:r,index:o=-1})=>{var a;if(br(e)){const l=e[n.value];return{raw:e,index:o,key:Dm(l,t),origin:r,value:l,label:(a=e[n.label])!=null?a:lPe(l,t),render:e[n.render],disabled:!!e[n.disabled],tagProps:e[n.tagProps]}}const s={value:e,label:String(e),disabled:!1};return{raw:s,index:o,key:Dm(e,t),origin:r,...s}},Yj=(e,{valueKey:t,fieldNames:n,origin:r,optionInfoMap:o})=>{var a;const s=[];for(const l of e)if(aPe(l)){const c=Yj((a=l.options)!=null?a:[],{valueKey:t,fieldNames:n,origin:r,optionInfoMap:o});c.length>0&&s.push({...l,key:`__arco__group__${l.label}`,options:c})}else{const c=cPe(l,{valueKey:t,fieldNames:n,origin:r});s.push(c),o.get(c.key)||o.set(c.key,c)}return s},qne=(e,{inputValue:t,filterOption:n})=>{const r=o=>{var a;const s=[];for(const l of o)if(ope(l)){const c=r((a=l.options)!=null?a:[]);c.length>0&&s.push({...l,options:c})}else P5(l,{inputValue:t,filterOption:n})&&s.push(l);return s};return r(e)},P5=(e,{inputValue:t,filterOption:n})=>En(n)?!t||n(t,e.raw):n?e.label.toLowerCase().includes((t??"").toLowerCase()):!0,dPe=(e,t)=>{if(!e||!t||e.length!==t.length)return!1;for(const n of Object.keys(e))if(!s3(e[n],t[n]))return!1;return!0},fPe=(e,t)=>{if(!e||!t)return!1;const{length:n}=e;if(n!==t.length)return!1;for(let r=0;r{const n=Object.prototype.toString.call(e);return n!==Object.prototype.toString.call(t)?!1:n==="[object Object]"?dPe(e,t):n==="[object Array]"?fPe(e,t):n==="[object Function]"?e===t?!0:e.toString()===t.toString():e===t},hPe=Se({name:"Option",components:{Checkbox:Uc},props:{value:{type:[String,Number,Boolean,Object],default:void 0},label:String,disabled:Boolean,tagProps:{type:Object},extra:{type:Object},index:{type:Number},internal:Boolean},setup(e){const{disabled:t,tagProps:n,index:r}=nn(e),o=Te("select-option"),a=On(ipe,void 0),s=_o(),l=fe(),c=fe(n.value);Rt(n,(D,P)=>{s3(D,P)||(c.value=D)});const d=fe(""),h=j(()=>{var D,P;return(P=(D=e.value)!=null?D:e.label)!=null?P:d.value}),p=j(()=>{var D;return(D=e.label)!=null?D:d.value}),v=j(()=>Dm(h.value,a?.valueKey)),g=j(()=>{var D;return(D=a?.component)!=null?D:"li"}),y=()=>{var D;if(!e.label&&l.value){const P=(D=l.value.textContent)!=null?D:"";d.value!==P&&(d.value=P)}};bn(()=>y()),Qa(()=>y());const S=j(()=>{var D;return(D=a?.valueKeys.includes(v.value))!=null?D:!1}),k=j(()=>a?.activeKey===v.value);let C=fe(!0);if(!e.internal){const D=Xt({raw:{value:h,label:p,disabled:t,tagProps:c},ref:l,index:r,key:v,origin:"slot",value:h,label:p,disabled:t,tagProps:c});C=j(()=>P5(D,{inputValue:a?.inputValue,filterOption:a?.filterOption})),s&&a?.addSlotOptionInfo(s.uid,D),Io(()=>{s&&a?.removeSlotOptionInfo(s.uid)})}const x=D=>{e.disabled||a?.onSelect(v.value,D)},E=()=>{e.disabled||a?.setActiveKey(v.value)},_=()=>{e.disabled||a?.setActiveKey()},T=j(()=>[o,{[`${o}-disabled`]:e.disabled,[`${o}-selected`]:S.value,[`${o}-active`]:k.value,[`${o}-multiple`]:a?.multiple}]);return{prefixCls:o,cls:T,selectCtx:a,itemRef:l,component:g,isSelected:S,isValid:C,handleClick:x,handleMouseEnter:E,handleMouseLeave:_}}});function pPe(e,t,n,r,o,a){const s=Ie("checkbox");return Ai((z(),Ye(Wa(e.component),{ref:"itemRef",class:ue([e.cls,{[`${e.prefixCls}-has-suffix`]:!!e.$slots.suffix}]),onClick:e.handleClick,onMouseenter:e.handleMouseEnter,onMouseleave:e.handleMouseLeave},{default:de(()=>[e.$slots.icon?(z(),Q("span",{key:0,class:ue(`${e.prefixCls}-icon`)},[vt(e.$slots,"icon")],2)):Le("v-if",!0),e.selectCtx&&e.selectCtx.multiple?(z(),Ye(s,{key:1,class:ue(`${e.prefixCls}-checkbox`),"model-value":e.isSelected,disabled:e.disabled,"uninject-group-context":""},{default:de(()=>[vt(e.$slots,"default",{},()=>[We(ze(e.label),1)])]),_:3},8,["class","model-value","disabled"])):(z(),Q("span",{key:2,class:ue(`${e.prefixCls}-content`)},[vt(e.$slots,"default",{},()=>[We(ze(e.label),1)])],2)),e.$slots.suffix?(z(),Q("span",{key:3,class:ue(`${e.prefixCls}-suffix`)},[vt(e.$slots,"suffix")],2)):Le("v-if",!0)]),_:3},40,["class","onClick","onMouseenter","onMouseleave"])),[[Qo,e.isValid]])}var dm=Ve(hPe,[["render",pPe]]);const vPe={value:"value",label:"label",disabled:"disabled",tagProps:"tagProps",render:"render"},mPe=({options:e,extraOptions:t,inputValue:n,filterOption:r,showExtraOptions:o,valueKey:a,fieldNames:s})=>{const l=j(()=>({...vPe,...s?.value})),c=Xt(new Map),d=j(()=>Array.from(c.values()).sort((E,_)=>Ze(E.index)&&Ze(_.index)?E.index-_.index:0)),h=j(()=>{var E,_;const T=new Map;return{optionInfos:Yj((E=e?.value)!=null?E:[],{valueKey:(_=a?.value)!=null?_:"value",fieldNames:l.value,origin:"options",optionInfoMap:T}),optionInfoMap:T}}),p=j(()=>{var E,_;const T=new Map;return{optionInfos:Yj((E=t?.value)!=null?E:[],{valueKey:(_=a?.value)!=null?_:"value",fieldNames:l.value,origin:"extraOptions",optionInfoMap:T}),optionInfoMap:T}}),v=Xt(new Map);Rt([d,e??fe([]),t??fe([]),a??fe("value")],()=>{v.clear(),d.value.forEach((E,_)=>{v.set(E.key,{...E,index:_})}),h.value.optionInfoMap.forEach(E=>{v.has(E.key)||(E.index=v.size,v.set(E.key,E))}),p.value.optionInfoMap.forEach(E=>{v.has(E.key)||(E.index=v.size,v.set(E.key,E))})},{immediate:!0,deep:!0});const g=j(()=>{var E;const _=qne(h.value.optionInfos,{inputValue:n?.value,filterOption:r?.value});return((E=o?.value)==null||E)&&_.push(...qne(p.value.optionInfos,{inputValue:n?.value,filterOption:r?.value})),_}),y=j(()=>Array.from(v.values()).filter(E=>E.origin==="extraOptions"&&o?.value===!1?!1:P5(E,{inputValue:n?.value,filterOption:r?.value}))),S=j(()=>y.value.filter(E=>!E.disabled).map(E=>E.key));return{validOptions:g,optionInfoMap:v,validOptionInfos:y,enabledOptionKeys:S,getNextSlotOptionIndex:()=>c.size,addSlotOptionInfo:(E,_)=>{c.set(E,_)},removeSlotOptionInfo:E=>{c.delete(E)}}},Ho={ENTER:"Enter",ESC:"Escape",SPACE:" ",ARROW_UP:"ArrowUp",ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight"},Yne=e=>JSON.stringify({key:e.key,ctrl:!!e.ctrl,shift:!!e.shift,alt:!!e.alt,meta:!!e.meta}),R5=e=>{const t={};return e.forEach((n,r)=>{const o=cs(r)?{key:r}:r;t[Yne(o)]=n}),n=>{const r=Yne({key:n.key,ctrl:n.ctrlKey,shift:n.shiftKey,alt:n.altKey,meta:n.metaKey}),o=t[r];o&&(n.stopPropagation(),o(n))}},uH=({multiple:e,options:t,extraOptions:n,inputValue:r,filterOption:o,showExtraOptions:a,component:s,valueKey:l,fieldNames:c,loading:d,popupVisible:h,valueKeys:p,dropdownRef:v,optionRefs:g,virtualListRef:y,onSelect:S,onPopupVisibleChange:k,enterToOpen:C=!0,defaultActiveFirstOption:x})=>{const{validOptions:E,optionInfoMap:_,validOptionInfos:T,enabledOptionKeys:D,getNextSlotOptionIndex:P,addSlotOptionInfo:M,removeSlotOptionInfo:$}=mPe({options:t,extraOptions:n,inputValue:r,filterOption:o,showExtraOptions:a,valueKey:l,fieldNames:c}),L=fe();Rt(D,G=>{(!L.value||!G.includes(L.value))&&(L.value=G[0])});const B=G=>{L.value=G},F=G=>{const X=D.value.length;if(X===0)return;if(!L.value)return G==="down"?D.value[0]:D.value[X-1];const oe=D.value.indexOf(L.value),Z=(X+oe+(G==="up"?-1:1))%X;return D.value[Z]},W=G=>{var X,oe;y?.value&&y.value.scrollTo({key:G});const Z=_.get(G),H=(X=v?.value)==null?void 0:X.wrapperRef,q=(oe=g?.value[G])!=null?oe:Z?.ref;if(!H||!q||H.scrollHeight===H.offsetHeight)return;const ee=d7e(q,H),ne=H.scrollTop;ee.top<0?H.scrollTo(0,ne+ee.top):ee.bottom<0&&H.scrollTo(0,ne-ee.bottom)};Rt(h,G=>{var X;if(G){const oe=p.value[p.value.length-1];let Z=(X=x?.value)==null||X?D.value[0]:void 0;D.value.includes(oe)&&(Z=oe),Z!==L.value&&(L.value=Z),Cn(()=>{L.value&&W(L.value)})}});const U=R5(new Map([[Ho.ENTER,G=>{!d?.value&&!G.isComposing&&(h.value?L.value&&(S(L.value,G),G.preventDefault()):C&&(k(!0),G.preventDefault()))}],[Ho.ESC,G=>{h.value&&(k(!1),G.preventDefault())}],[Ho.ARROW_DOWN,G=>{if(h.value){const X=F("down");X&&(L.value=X,W(X)),G.preventDefault()}}],[Ho.ARROW_UP,G=>{if(h.value){const X=F("up");X&&(L.value=X,W(X)),G.preventDefault()}}]]));return ri(ipe,Xt({multiple:e,valueKey:l,inputValue:r,filterOption:o,component:s,valueKeys:p,activeKey:L,setActiveKey:B,onSelect:S,getNextSlotOptionIndex:P,addSlotOptionInfo:M,removeSlotOptionInfo:$})),{validOptions:E,optionInfoMap:_,validOptionInfos:T,enabledOptionKeys:D,activeKey:L,setActiveKey:B,addSlotOptionInfo:M,removeSlotOptionInfo:$,getNextActiveKey:F,scrollIntoView:W,handleKeyDown:U}},gPe=({dataKeys:e,contentRef:t,fixedSize:n,estimatedSize:r,buffer:o})=>{const a=fe(0),s=new Map,l=j(()=>e.value.length),c=fe(0),d=j(()=>{const P=c.value+o.value*3;return P>l.value?l.value:P}),h=j(()=>{const P=l.value-o.value*3;return P<0?0:P}),p=P=>{P<0?c.value=0:P>h.value?c.value=h.value:c.value=P},v=fe(n.value),g=j(()=>r.value!==30?r.value:a.value||r.value),y=(P,M)=>{s.set(P,M)},S=P=>{var M;if(v.value)return g.value;const $=e.value[P];return(M=s.get($))!=null?M:g.value},k=P=>s.has(P);bn(()=>{const P=Array.from(s.values()).reduce((M,$)=>M+$,0);P>0&&(a.value=P/s.size)});const C=P=>v.value?g.value*P:x(0,P),x=(P,M)=>{let $=0;for(let L=P;Lv.value?g.value*c.value:x(0,c.value)),_=P=>{const M=P>=E.value;let $=Math.abs(P-E.value);const L=M?c.value:c.value-1;let B=0;for(;$>0;)$-=S(L+B),M?B++:B--;return B},T=P=>{const M=_(P),$=c.value+M-o.value;return $<0?0:$>h.value?h.value:$},D=j(()=>v.value?g.value*(l.value-d.value):x(d.value,l.value));return{frontPadding:E,behindPadding:D,start:c,end:d,getStartByScroll:T,setItemSize:y,hasItemSize:k,setStart:p,getScrollOffset:C}};var yPe=Se({name:"VirtualListItem",props:{hasItemSize:{type:Function,required:!0},setItemSize:{type:Function,required:!0}},setup(e,{slots:t}){var n;const r=(n=_o())==null?void 0:n.vnode.key,o=fe(),a=()=>{var s,l,c,d;const h=(l=(s=o.value)==null?void 0:s.$el)!=null?l:o.value,p=(d=(c=h?.getBoundingClientRect)==null?void 0:c.call(h).height)!=null?d:h?.offsetHeight;p&&e.setItemSize(r,p)};return bn(()=>a()),Io(()=>a()),()=>{var s;const l=ry((s=t.default)==null?void 0:s.call(t));return l?wl(l,{ref:o},!0):null}}});const bPe=Se({name:"VirtualList",components:{VirtualListItem:yPe},props:{height:{type:[Number,String],default:200},data:{type:Array,default:()=>[]},threshold:{type:Number,default:0},itemKey:{type:String,default:"key"},fixedSize:{type:Boolean,default:!1},estimatedSize:{type:Number,default:30},buffer:{type:Number,default:10},component:{type:[String,Object],default:"div"},listAttrs:{type:Object},contentAttrs:{type:Object},paddingPosition:{type:String,default:"content"}},emits:{scroll:e=>!0,reachBottom:e=>!0},setup(e,{emit:t}){const{data:n,itemKey:r,fixedSize:o,estimatedSize:a,buffer:s,height:l}=nn(e),c=Te("virtual-list"),d=j(()=>br(e.component)?{container:"div",list:"div",content:"div",...e.component}:{container:e.component,list:"div",content:"div"}),h=fe(),p=fe(),v=j(()=>({height:Ze(l.value)?`${l.value}px`:l.value,overflow:"auto"})),g=j(()=>n.value.map((L,B)=>{var F;return(F=L[r.value])!=null?F:B})),{frontPadding:y,behindPadding:S,start:k,end:C,getStartByScroll:x,setItemSize:E,hasItemSize:_,setStart:T,getScrollOffset:D}=gPe({dataKeys:g,contentRef:p,fixedSize:o,estimatedSize:a,buffer:s}),P=j(()=>e.threshold&&n.value.length<=e.threshold?n.value:n.value.slice(k.value,C.value)),M=L=>{const{scrollTop:B,scrollHeight:F,offsetHeight:W}=L.target,U=x(B);U!==k.value&&(T(U),Cn(()=>{$(B)})),t("scroll",L),Math.floor(F-(B+W))<=0&&t("reachBottom",L)},$=L=>{var B,F;if(h.value)if(Ze(L))h.value.scrollTop=L;else{const W=(F=L.index)!=null?F:g.value.indexOf((B=L.key)!=null?B:"");T(W-s.value),h.value.scrollTop=D(W),Cn(()=>{if(h.value){const U=D(W);U!==h.value.scrollTop&&(h.value.scrollTop=U)}})}};return{prefixCls:c,containerRef:h,contentRef:p,frontPadding:y,currentList:P,behindPadding:S,onScroll:M,setItemSize:E,hasItemSize:_,start:k,scrollTo:$,style:v,mergedComponent:d}}});function _Pe(e,t,n,r,o,a){const s=Ie("VirtualListItem");return z(),Ye(Wa(e.mergedComponent.container),{ref:"containerRef",class:ue(e.prefixCls),style:Ke(e.style),onScroll:e.onScroll},{default:de(()=>[(z(),Ye(Wa(e.mergedComponent.list),Vt(e.listAttrs,{style:e.paddingPosition==="list"?{paddingTop:`${e.frontPadding}px`,paddingBottom:`${e.behindPadding}px`}:{}}),{default:de(()=>[(z(),Ye(Wa(e.mergedComponent.content),Vt({ref:"contentRef"},e.contentAttrs,{style:e.paddingPosition==="content"?{paddingTop:`${e.frontPadding}px`,paddingBottom:`${e.behindPadding}px`}:{}}),{default:de(()=>[(z(!0),Q(Nt,null,gn(e.currentList,(l,c)=>{var d;return z(),Ye(s,{key:(d=l[e.itemKey])!=null?d:e.start+c,"has-item-size":e.hasItemSize,"set-item-size":e.setItemSize},{default:de(()=>[vt(e.$slots,"item",{item:l,index:e.start+c})]),_:2},1032,["has-item-size","set-item-size"])}),128))]),_:3},16,["style"]))]),_:3},16,["style"]))]),_:3},40,["class","style","onScroll"])}var a3=Ve(bPe,[["render",_Pe]]),FP=Se({name:"AutoComplete",inheritAttrs:!1,props:{modelValue:{type:String,default:void 0},defaultValue:{type:String,default:""},disabled:{type:Boolean,default:!1},data:{type:Array,default:()=>[]},popupContainer:{type:[String,Object]},strict:{type:Boolean,default:!1},filterOption:{type:[Boolean,Function],default:!0},triggerProps:{type:Object},allowClear:{type:Boolean,default:!1},virtualListProps:{type:Object}},emits:{"update:modelValue":e=>!0,change:e=>!0,search:e=>!0,select:e=>!0,clear:e=>!0,dropdownScroll:e=>!0,dropdownReachBottom:e=>!0},setup(e,{emit:t,attrs:n,slots:r}){const{modelValue:o}=nn(e),a=Te("auto-complete"),{mergedDisabled:s,eventHandlers:l}=Do({disabled:Lu(e,"disabled")}),c=fe(e.defaultValue),d=fe(),h=j(()=>{var q;return(q=e.modelValue)!=null?q:c.value});Rt(o,q=>{(An(q)||Tl(q))&&(c.value="")});const p=j(()=>h.value?[Dm(h.value)]:[]),{data:v}=nn(e),g=fe(),y=fe({}),S=fe(!1),k=j(()=>S.value&&U.value.length>0),C=fe(),x=j(()=>e.virtualListProps?"div":"li"),E=q=>{S.value=q},_=(q,ee)=>{var ne;return!!((ne=ee.label)!=null&&ne.includes(q))},T=j(()=>En(e.filterOption)?e.filterOption:e.filterOption&&e.strict?_:e.filterOption),D=q=>{var ee,ne;c.value=q,t("update:modelValue",q),t("change",q),(ne=(ee=l.value)==null?void 0:ee.onChange)==null||ne.call(ee)},P=q=>{var ee,ne;c.value="",t("update:modelValue",""),t("change",""),(ne=(ee=l.value)==null?void 0:ee.onChange)==null||ne.call(ee),t("clear",q)},M=(q,ee)=>{var ne,ae;const re=(ne=W.get(q))==null?void 0:ne.value;t("select",re),D(re),(ae=d.value)==null||ae.blur()},$=q=>{t("search",q),D(q)},L=q=>{t("dropdownScroll",q)},B=q=>{t("dropdownReachBottom",q)},{validOptions:F,optionInfoMap:W,validOptionInfos:U,handleKeyDown:G}=uH({options:v,inputValue:h,filterOption:T,popupVisible:k,valueKeys:p,component:x,dropdownRef:g,optionRefs:y,onSelect:M,onPopupVisibleChange:E}),X=q=>{if(En(r.option)&&q.value){const ee=W.get(q.key),ne=r.option;return()=>ne({data:ee})}return()=>q.label},oe=q=>O(dm,{ref:ee=>{ee?.$el&&(y.value[q.key]=ee.$el)},key:q.key,value:q.value,disabled:q.disabled,internal:!0},{default:X(q)}),Z=()=>O(lH,{ref:g,class:`${a}-dropdown`,virtualList:!!e.virtualListProps,onScroll:L,onReachBottom:B},{default:()=>[...F.value.map(q=>oe(q))],"virtual-list":()=>O(a3,Vt(e.virtualListProps,{ref:C,data:F.value}),{item:({item:q})=>oe(q)}),footer:r.footer});return{inputRef:d,render:()=>O(ha,Vt({trigger:"focus",position:"bl",animationName:"slide-dynamic-origin",autoFitTransformOrigin:!0,popupVisible:k.value,clickToClose:!1,preventFocus:!0,popupOffset:4,disabled:s.value,autoFitPopupWidth:!0},e.triggerProps,{onPopupVisibleChange:E}),{default:()=>[O(N0,Vt({ref:d},n,{allowClear:e.allowClear,modelValue:h.value,disabled:s.value,onInput:$,onClear:P,onKeydown:G}),r)],content:Z})}},methods:{focus(){var e;(e=this.inputRef)==null||e.focus()},blur(){var e;(e=this.inputRef)==null||e.blur()}},render(){return this.render()}});const SPe=Object.assign(FP,{install:(e,t)=>{Xn(e,t);const n=Yn(t);e.component(n+FP.name,FP)}}),cH=({itemRef:e,selector:t,index:n,parentClassName:r})=>{const o=fe(-1),a=j(()=>{var d;return(d=n?.value)!=null?d:o.value}),s=fe(),l=()=>{var d,h,p;let v=(h=(d=e.value)==null?void 0:d.parentElement)!=null?h:void 0;if(r)for(;v&&!v.className.includes(r);)v=(p=v.parentElement)!=null?p:void 0;return v},c=()=>{if(An(n?.value)&&s.value&&e.value){const d=Array.from(s.value.querySelectorAll(t)).indexOf(e.value);d!==o.value&&(o.value=d)}};return Rt(e,()=>{e.value&&!s.value&&(s.value=l())}),bn(()=>{e.value&&(s.value=l()),c()}),Qa(()=>c()),{computedIndex:a}},spe=Symbol("ArcoAvatarGroup"),kPe=Se({name:"IconImageClose",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-image-close`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),xPe=["stroke-width","stroke-linecap","stroke-linejoin"];function CPe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[xh('',5)]),14,xPe)}var jP=Ve(kPe,[["render",CPe]]);const M5=Object.assign(jP,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+jP.name,jP)}}),wPe=Se({name:"Avatar",components:{ResizeObserver:x0,IconImageClose:M5,IconLoading:Xa},props:{shape:{type:String,default:"circle"},imageUrl:String,size:Number,autoFixFontSize:{type:Boolean,default:!0},triggerType:{type:String,default:"button"},triggerIconStyle:{type:Object},objectFit:{type:String}},emits:{click:e=>!0,error:()=>!0,load:()=>!0},setup(e,{slots:t,emit:n,attrs:r}){const{shape:o,size:a,autoFixFontSize:s,triggerType:l,triggerIconStyle:c}=nn(e),d=Te("avatar"),h=On(spe,void 0),p=fe(),v=fe(),g=j(()=>{var U;return(U=h?.shape)!=null?U:o.value}),y=j(()=>{var U;return(U=h?.size)!=null?U:a.value}),S=j(()=>{var U;return(U=h?.autoFixFontSize)!=null?U:s.value}),k=fe(!1),C=fe(!1),x=fe(!0),E=fe(!1),_=h?cH({itemRef:p,selector:`.${d}`}).computedIndex:fe(-1),T=j(()=>{var U;const G=Ze(y.value)?{width:`${y.value}px`,height:`${y.value}px`,fontSize:`${y.value/2}px`}:{};return h&&(G.zIndex=h.zIndexAscend?_.value+1:h.total-_.value,G.marginLeft=_.value!==0?`-${((U=y.value)!=null?U:40)/4}px`:"0"),G}),D=EPe({triggerIconStyle:c?.value,inlineStyle:r.style,triggerType:l.value}),P=()=>{!k.value&&!e.imageUrl&&Cn(()=>{var U;if(!v.value||!p.value)return;const G=v.value.clientWidth,X=(U=y.value)!=null?U:p.value.offsetWidth,oe=X/(G+8);X&&oe<1&&(v.value.style.transform=`scale(${oe}) translateX(-50%)`),x.value=!0})};bn(()=>{var U;(U=v.value)!=null&&U.firstElementChild&&["IMG","PICTURE"].includes(v.value.firstElementChild.tagName)&&(k.value=!0),S.value&&P()}),Rt(a,()=>{S.value&&P()});const M=j(()=>[d,`${d}-${g.value}`]),$=j(()=>k.value||e.imageUrl?`${d}-image`:`${d}-text`);return{prefixCls:d,itemRef:p,cls:M,outerStyle:T,wrapperRef:v,wrapperCls:$,computedTriggerIconStyle:D,isImage:k,shouldLoad:x,isLoaded:E,hasError:C,onClick:U=>{n("click",U)},handleResize:()=>{S.value&&P()},handleImgLoad:()=>{E.value=!0,n("load")},handleImgError:()=>{C.value=!0,n("error")}}}}),EPe=({triggerType:e,inlineStyle:t={},triggerIconStyle:n={}})=>{let r={};return e==="button"&&(!n||n&&!n.color)&&t&&t.backgroundColor&&(r={color:t.backgroundColor}),{...n,...r}},TPe=["src"];function APe(e,t,n,r,o,a){const s=Ie("IconImageClose"),l=Ie("IconLoading"),c=Ie("resize-observer");return z(),Q("div",{ref:"itemRef",style:Ke(e.outerStyle),class:ue([e.cls,{[`${e.prefixCls}-with-trigger-icon`]:!!e.$slots["trigger-icon"]}]),onClick:t[2]||(t[2]=(...d)=>e.onClick&&e.onClick(...d))},[O(c,{onResize:e.handleResize},{default:de(()=>[I("span",{ref:"wrapperRef",class:ue(e.wrapperCls)},[e.imageUrl?(z(),Q(Nt,{key:0},[e.hasError?vt(e.$slots,"error",{key:0},()=>[I("div",{class:ue(`${e.prefixCls}-image-icon`)},[O(s)],2)]):Le("v-if",!0),!(e.hasError||!e.shouldLoad)&&!e.isLoaded?vt(e.$slots,"default",{key:1},()=>[I("div",{class:ue(`${e.prefixCls}-image-icon`)},[O(l)],2)]):Le("v-if",!0),e.hasError||!e.shouldLoad?Le("v-if",!0):(z(),Q("img",{key:2,src:e.imageUrl,style:Ke({width:e.size+"px",height:e.size+"px",objectFit:e.objectFit}),alt:"avatar",onLoad:t[0]||(t[0]=(...d)=>e.handleImgLoad&&e.handleImgLoad(...d)),onError:t[1]||(t[1]=(...d)=>e.handleImgError&&e.handleImgError(...d))},null,44,TPe))],64)):vt(e.$slots,"default",{key:1})],2)]),_:3},8,["onResize"]),e.$slots["trigger-icon"]?(z(),Q("div",{key:0,class:ue(`${e.prefixCls}-trigger-icon-${e.triggerType}`),style:Ke(e.computedTriggerIconStyle)},[vt(e.$slots,"trigger-icon")],6)):Le("v-if",!0)],6)}var ew=Ve(wPe,[["render",APe]]);const IPe=Se({name:"Popover",components:{Trigger:ha},props:{popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},title:String,content:String,trigger:{type:[String,Array],default:"hover"},position:{type:String,default:"top"},contentClass:{type:[String,Array,Object]},contentStyle:{type:Object},arrowClass:{type:[String,Array,Object]},arrowStyle:{type:Object},popupContainer:{type:[String,Object]}},emits:{"update:popupVisible":e=>!0,popupVisibleChange:e=>!0},setup(e,{emit:t}){const n=Te("popover"),r=fe(e.defaultPopupVisible),o=j(()=>{var c;return(c=e.popupVisible)!=null?c:r.value}),a=c=>{r.value=c,t("update:popupVisible",c),t("popupVisibleChange",c)},s=j(()=>[`${n}-popup-content`,e.contentClass]),l=j(()=>[`${n}-popup-arrow`,e.arrowClass]);return{prefixCls:n,computedPopupVisible:o,contentCls:s,arrowCls:l,handlePopupVisibleChange:a}}});function LPe(e,t,n,r,o,a){const s=Ie("trigger");return z(),Ye(s,{class:ue(e.prefixCls),trigger:e.trigger,position:e.position,"popup-visible":e.computedPopupVisible,"popup-offset":10,"content-class":e.contentCls,"content-style":e.contentStyle,"arrow-class":e.arrowCls,"arrow-style":e.arrowStyle,"show-arrow":"","popup-container":e.popupContainer,"animation-name":"zoom-in-fade-out","auto-fit-transform-origin":"",onPopupVisibleChange:e.handlePopupVisibleChange},{content:de(()=>[I("div",{class:ue(`${e.prefixCls}-title`)},[vt(e.$slots,"title",{},()=>[We(ze(e.title),1)])],2),I("div",{class:ue(`${e.prefixCls}-content`)},[vt(e.$slots,"content",{},()=>[We(ze(e.content),1)])],2)]),default:de(()=>[vt(e.$slots,"default")]),_:3},8,["class","trigger","position","popup-visible","content-class","content-style","arrow-class","arrow-style","popup-container","onPopupVisibleChange"])}var VP=Ve(IPe,[["render",LPe]]);const dH=Object.assign(VP,{install:(e,t)=>{Xn(e,t);const n=Yn(t);e.component(n+VP.name,VP)}}),tw=Se({name:"AvatarGroup",props:{shape:{type:String,default:"circle"},size:Number,autoFixFontSize:{type:Boolean,default:!0},maxCount:{type:Number,default:0},zIndexAscend:{type:Boolean,default:!1},maxStyle:{type:Object},maxPopoverTriggerProps:{type:Object}},setup(e,{slots:t}){const{shape:n,size:r,autoFixFontSize:o,zIndexAscend:a}=nn(e),s=Te("avatar-group"),l=fe(0);return ri(spe,Xt({shape:n,size:r,autoFixFontSize:o,zIndexAscend:a,total:l})),()=>{var c,d;const h=yf((d=(c=t.default)==null?void 0:c.call(t))!=null?d:[]),p=e.maxCount>0?h.slice(0,e.maxCount):h,v=e.maxCount>0?h.slice(e.maxCount):[];return l.value!==h.length&&(l.value=h.length),O("div",{class:s},[p,v.length>0&&O(dH,e.maxPopoverTriggerProps,{default:()=>[O(ew,{class:`${s}-max-count-avatar`,style:e.maxStyle},{default:()=>[We("+"),v.length]})],content:()=>O("div",null,[v])})])}}}),DPe=Object.assign(ew,{Group:tw,install:(e,t)=>{Xn(e,t);const n=Yn(t);e.component(n+ew.name,ew),e.component(n+tw.name,tw)}}),PPe=Se({name:"IconToTop",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-to-top`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),RPe=["stroke-width","stroke-linecap","stroke-linejoin"];function MPe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M43 7H5M24 20v23M24 13.96 30.453 21H17.546L24 13.96Zm.736-.804Z"},null,-1),I("path",{d:"m24 14-6 7h12l-6-7Z",fill:"currentColor",stroke:"none"},null,-1)]),14,RPe)}var zP=Ve(PPe,[["render",MPe]]);const ape=Object.assign(zP,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+zP.name,zP)}}),OPe=Se({name:"BackTop",components:{IconToTop:ape},props:{visibleHeight:{type:Number,default:200},targetContainer:{type:[String,Object]},easing:{type:String,default:"quartOut"},duration:{type:Number,default:200}},setup(e){const t=Te("back-top"),n=fe(!1),r=fe(),o=!e.targetContainer,a=Im(()=>{if(r.value){const{visibleHeight:c}=e,{scrollTop:d}=r.value;n.value=d>=c}}),s=c=>cs(c)?document.querySelector(c):c;return bn(()=>{r.value=o?document?.documentElement:s(e.targetContainer),r.value&&(Mi(o?window:r.value,"scroll",a),a())}),gi(()=>{a.cancel(),r.value&&ro(o?window:r.value,"scroll",a)}),{prefixCls:t,visible:n,scrollToTop:()=>{if(r.value){const{scrollTop:c}=r.value;new Jm({from:{scrollTop:c},to:{scrollTop:0},easing:e.easing,duration:e.duration,onUpdate:h=>{r.value&&(r.value.scrollTop=h.scrollTop)}}).start()}}}}});function $Pe(e,t,n,r,o,a){const s=Ie("icon-to-top");return z(),Ye(Cs,{name:"fade-in"},{default:de(()=>[e.visible?(z(),Q("div",{key:0,class:ue(e.prefixCls),onClick:t[0]||(t[0]=(...l)=>e.scrollToTop&&e.scrollToTop(...l))},[vt(e.$slots,"default",{},()=>[I("button",{class:ue(`${e.prefixCls}-btn`)},[O(s)],2)])],2)):Le("v-if",!0)]),_:3})}var UP=Ve(OPe,[["render",$Pe]]);const BPe=Object.assign(UP,{install:(e,t)=>{Xn(e,t);const n=Yn(t);e.component(n+UP.name,UP)}}),NPe=["red","orangered","orange","gold","lime","green","cyan","arcoblue","purple","pinkpurple","magenta","gray"],FPe=["normal","processing","success","warning","danger"];var HP=Se({name:"Badge",props:{text:{type:String},dot:{type:Boolean},dotStyle:{type:Object},maxCount:{type:Number,default:99},offset:{type:Array,default:()=>[]},color:{type:String},status:{type:String,validator:e=>FPe.includes(e)},count:{type:Number}},setup(e,{slots:t}){const{status:n,color:r,dotStyle:o,offset:a,text:s,dot:l,maxCount:c,count:d}=nn(e),h=Te("badge"),p=jPe(h,n?.value,t?.default),v=j(()=>{const y={...o?.value||{}},[S,k]=a?.value||[];S&&(y.marginRight=`${-S}px`),k&&(y.marginTop=`${k}px`);const C=!r?.value||NPe.includes(r?.value)?{}:{backgroundColor:r.value};return{mergedStyle:{...C,...y},computedDotStyle:y,computedColorStyle:C}}),g=()=>{const y=s?.value,S=r?.value,k=n?.value,C=l?.value,x=Number(d?.value),E=d?.value!=null,{computedDotStyle:_,mergedStyle:T}=v.value;return t.content?O("span",{class:`${h}-custom-dot`,style:_},[t.content()]):y&&!S&&!k?O("span",{class:`${h}-text`,style:_},[y]):k||S&&!E?O("span",{class:`${h}-status-wrapper`},[O("span",{class:[`${h}-status-dot`,{[`${h}-status-${k}`]:k,[`${h}-color-${S}`]:S}],style:T},null),y&&O("span",{class:`${h}-status-text`},[y])]):(C||S)&&x>0?O("span",{class:[`${h}-dot`,{[`${h}-color-${S}`]:S}],style:T},null):x===0?null:O("span",{class:`${h}-number`,style:T},[O("span",null,[c.value&&x>c.value?`${c.value}+`:x])])};return()=>O("span",{class:p.value},[t.default&&t.default(),g()])}});const jPe=(e,t,n)=>j(()=>[e,{[`${e}-status`]:t,[`${e}-no-children`]:!n}]),VPe=Object.assign(HP,{install:(e,t)=>{Xn(e,t);const n=Yn(t);e.component(n+HP.name,HP)}}),lpe=Symbol("ArcoBreadcrumb"),zPe=Se({name:"IconMore",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-more`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),UPe=["stroke-width","stroke-linecap","stroke-linejoin"];function HPe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M38 25v-2h2v2h-2ZM23 25v-2h2v2h-2ZM8 25v-2h2v2H8Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{d:"M38 25v-2h2v2h-2ZM23 25v-2h2v2h-2ZM8 25v-2h2v2H8Z"},null,-1)]),14,UPe)}var WP=Ve(zPe,[["render",HPe]]);const F0=Object.assign(WP,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+WP.name,WP)}}),WPe=Se({name:"IconDown",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-down`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),GPe=["stroke-width","stroke-linecap","stroke-linejoin"];function KPe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M39.6 17.443 24.043 33 8.487 17.443"},null,-1)]),14,GPe)}var GP=Ve(WPe,[["render",KPe]]);const Zh=Object.assign(GP,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+GP.name,GP)}}),qPe=Se({name:"IconObliqueLine",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-oblique-line`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),YPe=["stroke-width","stroke-linecap","stroke-linejoin"];function XPe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M29.506 6.502 18.493 41.498"},null,-1)]),14,YPe)}var KP=Ve(qPe,[["render",XPe]]);const upe=Object.assign(KP,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+KP.name,KP)}}),fH=Symbol("ArcoDropdown"),ZPe=Se({name:"DropdownPanel",components:{Scrollbar:Rd,Empty:Xh},props:{loading:{type:Boolean,default:!1},isEmpty:{type:Boolean,default:!1},bottomOffset:{type:Number,default:0},onScroll:{type:[Function,Array]},onReachBottom:{type:[Function,Array]}},emits:["scroll","reachBottom"],setup(e,{emit:t,slots:n}){const r=Te("dropdown"),o=On(fH,{}),a=fe(),s=d=>{const{scrollTop:h,scrollHeight:p,offsetHeight:v}=d.target;p-(h+v)<=e.bottomOffset&&t("reachBottom",d),t("scroll",d)},l=j(()=>{if(Ze(o.popupMaxHeight))return{maxHeight:`${o.popupMaxHeight}px`};if(!o.popupMaxHeight)return{maxHeight:"none",overflowY:"hidden"}}),c=j(()=>[r,{[`${r}-has-footer`]:!!n.footer}]);return{prefixCls:r,cls:c,style:l,wrapperRef:a,handleScroll:s}}});function JPe(e,t,n,r,o,a){const s=Ie("empty"),l=Ie("Scrollbar");return z(),Q("div",{class:ue(e.cls)},[e.isEmpty?(z(),Q("div",{key:0,class:ue(`${e.prefixCls}-empty`)},[vt(e.$slots,"empty",{},()=>[O(s)])],2)):Le("v-if",!0),O(l,{ref:"wrapperRef",class:ue(`${e.prefixCls}-list-wrapper`),style:Ke(e.style),onScroll:e.handleScroll},{default:de(()=>[I("ul",{class:ue(`${e.prefixCls}-list`)},[vt(e.$slots,"default")],2)]),_:3},8,["class","style","onScroll"]),e.$slots.footer&&!e.isEmpty?(z(),Q("div",{key:1,class:ue(`${e.prefixCls}-footer`)},[vt(e.$slots,"footer")],2)):Le("v-if",!0)],2)}var cpe=Ve(ZPe,[["render",JPe]]);const O5=({popupVisible:e,defaultPopupVisible:t,emit:n})=>{var r;const o=fe((r=t?.value)!=null?r:!1),a=j(()=>{var l;return(l=e?.value)!=null?l:o.value}),s=l=>{l!==a.value&&(o.value=l,n("update:popupVisible",l),n("popupVisibleChange",l))};return Rt(a,l=>{o.value!==l&&(o.value=l)}),{computedPopupVisible:a,handlePopupVisibleChange:s}},QPe=Se({name:"Dropdown",components:{Trigger:ha,DropdownPanel:cpe},props:{popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},trigger:{type:[String,Array],default:"click"},position:{type:String,default:"bottom"},popupContainer:{type:[String,Object]},popupMaxHeight:{type:[Boolean,Number],default:!0},hideOnSelect:{type:Boolean,default:!0}},emits:{"update:popupVisible":e=>!0,popupVisibleChange:e=>!0,select:(e,t)=>!0},setup(e,{emit:t}){const{defaultPopupVisible:n,popupVisible:r,popupMaxHeight:o}=nn(e),a=Te("dropdown"),{computedPopupVisible:s,handlePopupVisibleChange:l}=O5({defaultPopupVisible:n,popupVisible:r,emit:t});return ri(fH,Xt({popupMaxHeight:o,onOptionClick:(d,h)=>{t("select",d,h),e.hideOnSelect&&l(!1)}})),{prefixCls:a,computedPopupVisible:s,handlePopupVisibleChange:l}}});function eRe(e,t,n,r,o,a){const s=Ie("DropdownPanel"),l=Ie("Trigger");return z(),Ye(l,{"popup-visible":e.computedPopupVisible,"animation-name":"slide-dynamic-origin","auto-fit-transform-origin":"",trigger:e.trigger,position:e.position,"popup-offset":4,"popup-container":e.popupContainer,"opened-class":`${e.prefixCls}-open`,onPopupVisibleChange:e.handlePopupVisibleChange},{content:de(()=>[O(s,null,yo({default:de(()=>[vt(e.$slots,"content")]),_:2},[e.$slots.footer?{name:"footer",fn:de(()=>[vt(e.$slots,"footer")]),key:"0"}:void 0]),1024)]),default:de(()=>[vt(e.$slots,"default")]),_:3},8,["popup-visible","trigger","position","popup-container","opened-class","onPopupVisibleChange"])}var nw=Ve(QPe,[["render",eRe]]);const tRe=Se({name:"Doption",props:{value:{type:[String,Number,Object]},disabled:{type:Boolean,default:!1},active:Boolean,uninjectContext:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("dropdown-option"),r=fe(),o=j(()=>{var c,d,h;return(h=(d=e.value)!=null?d:(c=r.value)==null?void 0:c.textContent)!=null?h:void 0}),a=e.uninjectContext?void 0:On(fH,void 0),s=c=>{e.disabled||(t("click",c),a?.onOptionClick(o.value,c))},l=j(()=>[n,{[`${n}-disabled`]:e.disabled,[`${n}-active`]:e.active}]);return{prefixCls:n,cls:l,liRef:r,handleClick:s}}});function nRe(e,t,n,r,o,a){return z(),Q("li",{ref:"liRef",class:ue([e.cls,{[`${e.prefixCls}-has-suffix`]:!!e.$slots.suffix}]),onClick:t[0]||(t[0]=(...s)=>e.handleClick&&e.handleClick(...s))},[e.$slots.icon?(z(),Q("span",{key:0,class:ue(`${e.prefixCls}-icon`)},[vt(e.$slots,"icon")],2)):Le("v-if",!0),I("span",{class:ue(`${e.prefixCls}-content`)},[vt(e.$slots,"default")],2),e.$slots.suffix?(z(),Q("span",{key:1,class:ue(`${e.prefixCls}-suffix`)},[vt(e.$slots,"suffix")],2)):Le("v-if",!0)],2)}var sy=Ve(tRe,[["render",nRe]]);const rRe=Se({name:"Dgroup",props:{title:String},setup(){return{prefixCls:Te("dropdown-group")}}});function iRe(e,t,n,r,o,a){return z(),Q(Nt,null,[I("li",{class:ue(`${e.prefixCls}-title`)},[vt(e.$slots,"title",{},()=>[We(ze(e.title),1)])],2),vt(e.$slots,"default")],64)}var rw=Ve(rRe,[["render",iRe]]);const oRe=Se({name:"IconRight",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-right`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),sRe=["stroke-width","stroke-linecap","stroke-linejoin"];function aRe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m16 39.513 15.556-15.557L16 8.4"},null,-1)]),14,sRe)}var qP=Ve(oRe,[["render",aRe]]);const Hi=Object.assign(qP,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+qP.name,qP)}}),lRe=Se({name:"Dsubmenu",components:{Trigger:ha,DropdownPanel:cpe,DropdownOption:sy,IconRight:Hi},props:{value:{type:[String,Number]},disabled:{type:Boolean,default:!1},trigger:{type:[String,Array],default:"click"},position:{type:String,default:"rt"},popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},optionProps:{type:Object}},emits:{"update:popupVisible":e=>!0,popupVisibleChange:e=>!0},setup(e,{emit:t}){const{defaultPopupVisible:n,popupVisible:r}=nn(e),o=Te("dropdown"),{computedPopupVisible:a,handlePopupVisibleChange:s}=O5({defaultPopupVisible:n,popupVisible:r,emit:t});return{prefixCls:o,computedPopupVisible:a,handlePopupVisibleChange:s}}});function uRe(e,t,n,r,o,a){const s=Ie("IconRight"),l=Ie("dropdown-option"),c=Ie("dropdown-panel"),d=Ie("Trigger");return z(),Ye(d,{"popup-visible":e.computedPopupVisible,trigger:e.trigger,position:e.position,disabled:e.disabled,"popup-offset":4,onPopupVisibleChange:e.handlePopupVisibleChange},{content:de(()=>[O(c,{class:ue(`${e.prefixCls}-submenu`)},yo({default:de(()=>[vt(e.$slots,"content")]),_:2},[e.$slots.footer?{name:"footer",fn:de(()=>[vt(e.$slots,"footer")]),key:"0"}:void 0]),1032,["class"])]),default:de(()=>[O(l,Vt(e.optionProps,{active:e.computedPopupVisible,"uninject-context":""}),yo({suffix:de(()=>[vt(e.$slots,"suffix",{},()=>[O(s)])]),default:de(()=>[vt(e.$slots,"default")]),_:2},[e.$slots.icon?{name:"icon",fn:de(()=>[vt(e.$slots,"icon")]),key:"0"}:void 0]),1040,["active"])]),_:3},8,["popup-visible","trigger","position","disabled","onPopupVisibleChange"])}var iw=Ve(lRe,[["render",uRe]]);const cRe=Se({name:"DropdownButton",components:{IconMore:F0,Button:Xo,ButtonGroup:Q4,Dropdown:nw},props:{popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},trigger:{type:[String,Array],default:"click"},position:{type:String,default:"br"},popupContainer:{type:[String,Object]},disabled:{type:Boolean,default:!1},type:{type:String},size:{type:String},buttonProps:{type:Object},hideOnSelect:{type:Boolean,default:!0}},emits:{"update:popupVisible":e=>!0,popupVisibleChange:e=>!0,click:e=>!0,select:(e,t)=>!0},setup(e,{emit:t}){const{defaultPopupVisible:n,popupVisible:r}=nn(e),o=Te("dropdown"),{computedPopupVisible:a,handlePopupVisibleChange:s}=O5({defaultPopupVisible:n,popupVisible:r,emit:t});return{prefixCls:o,computedPopupVisible:a,handleClick:d=>{t("click",d)},handleSelect:(d,h)=>{t("select",d,h)},handlePopupVisibleChange:s}}});function dRe(e,t,n,r,o,a){const s=Ie("Button"),l=Ie("IconMore"),c=Ie("Dropdown"),d=Ie("ButtonGroup");return z(),Ye(d,null,{default:de(()=>[O(s,Vt({size:e.size,type:e.type,disabled:e.disabled},e.buttonProps,{onClick:e.handleClick}),{default:de(()=>[vt(e.$slots,"default")]),_:3},16,["size","type","disabled","onClick"]),O(c,{"popup-visible":e.computedPopupVisible,trigger:e.trigger,position:e.position,"popup-container":e.popupContainer,"hide-on-select":e.hideOnSelect,onSelect:e.handleSelect,onPopupVisibleChange:e.handlePopupVisibleChange},{content:de(()=>[vt(e.$slots,"content")]),default:de(()=>[O(s,{size:e.size,type:e.type,disabled:e.disabled},{icon:de(()=>[vt(e.$slots,"icon",{popupVisible:e.computedPopupVisible},()=>[O(l)])]),_:3},8,["size","type","disabled"])]),_:3},8,["popup-visible","trigger","position","popup-container","hide-on-select","onSelect","onPopupVisibleChange"])]),_:3})}var ow=Ve(cRe,[["render",dRe]]);const dpe=Object.assign(nw,{Option:sy,Group:rw,Submenu:iw,Button:ow,install:(e,t)=>{Xn(e,t);const n=Yn(t);e.component(n+nw.name,nw),e.component(n+sy.name,sy),e.component(n+rw.name,rw),e.component(n+iw.name,iw),e.component(n+ow.name,ow)}});var tb=Se({name:"BreadcrumbItem",inheritAttrs:!1,props:{separator:{type:[String,Number]},droplist:{type:Array},dropdownProps:{type:Object},index:{type:Number,default:0}},setup(e,{slots:t,attrs:n}){const r=Te("breadcrumb-item"),o=On(lpe,void 0),a=fe(!1),s=j(()=>!(o&&o.needHide&&e.index>1&&e.index<=o.total-o.maxCount)),l=j(()=>o&&o.needHide?e.index===1:!1),c=j(()=>o?e.index{a.value=y},h=()=>{var y,S,k,C,x,E,_;if(!c.value)return null;const T=(_=(E=(x=(S=(y=t.separator)==null?void 0:y.call(t))!=null?S:e.separator)!=null?x:(C=o==null?void 0:(k=o.slots).separator)==null?void 0:C.call(k))!=null?E:o?.separator)!=null?_:O(upe,null,null);return O("div",{"aria-hidden":"true",class:`${r}-separator`},[T])},p=()=>{var y,S,k,C;return O("div",Vt({role:"listitem",class:[r,{[`${r}-with-dropdown`]:e.droplist||t.droplist}]},l.value?{"aria-label":"ellipses of breadcrumb items"}:void 0,n),[l.value?(k=(S=o==null?void 0:(y=o.slots)["more-icon"])==null?void 0:S.call(y))!=null?k:O(F0,null,null):(C=t.default)==null?void 0:C.call(t),(e.droplist||t.droplist)&&O("span",{"aria-hidden":!0,class:[`${r}-dropdown-icon`,{[`${r}-dropdown-icon-active`]:a.value}]},[O(Zh,null,null)])])},v=()=>{var y,S,k;return(k=(y=t.droplist)==null?void 0:y.call(t))!=null?k:(S=e.droplist)==null?void 0:S.map(C=>O(sy,{value:C.path},{default:()=>[C.label]}))},g=()=>O(dpe,Vt({popupVisible:a.value,onPopupVisibleChange:d},e.dropdownProps),{default:()=>[p()],content:v});return()=>s.value?O(Nt,null,[t.droplist||e.droplist?g():p(),h()]):null}}),YP=Se({name:"Breadcrumb",props:{maxCount:{type:Number,default:0},routes:{type:Array},separator:{type:[String,Number]},customUrl:{type:Function}},setup(e,{slots:t}){const{maxCount:n,separator:r,routes:o}=nn(e),a=Te("breadcrumb"),s=fe(0),l=j(()=>n.value>0&&s.value>n.value+1);ri(lpe,Xt({total:s,maxCount:n,separator:r,needHide:l,slots:t}));const c=(p,v,g)=>{var y,S;if(v.indexOf(p)===v.length-1)return O("span",null,[p.label]);const k=(S=(y=e.customUrl)==null?void 0:y.call(e,g))!=null?S:`#/${g.join("/").replace(/^\//,"")}`;return O("a",{href:k},[p.label])},d=()=>{var p;if(!((p=o.value)!=null&&p.length))return null;s.value!==o.value.length&&(s.value=o.value.length);const v=[];return o.value.map((g,y,S)=>{v.push((g.path||"").replace(/^\//,""));const k=[...v];return O(tb,{key:g.path||g.label,index:y,droplist:g.children},{default:()=>{var C,x;return[(x=(C=t["item-render"])==null?void 0:C.call(t,{route:g,routes:S,paths:k}))!=null?x:c(g,S,k)]}})})},h=()=>{var p,v;const g=yf((v=(p=t.default)==null?void 0:p.call(t))!=null?v:[]);return s.value!==g.length&&(s.value=g.length),g.map((y,S)=>{var k;return y.props=Vt((k=y.props)!=null?k:{},{index:S}),y})};return()=>O("div",{role:"list",class:a},[t.default?h():d()])}});const fRe=Object.assign(YP,{Item:tb,install:(e,t)=>{Xn(e,t);const n=Yn(t);e.component(n+YP.name,YP),e.component(n+tb.name,tb)}});var sw=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function td(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function X_(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){var o=!1;try{o=this instanceof r}catch{}return o?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var aw={exports:{}},hRe=aw.exports,Xne;function fpe(){return Xne||(Xne=1,(function(e,t){(function(n,r){e.exports=r()})(hRe,(function(){var n=1e3,r=6e4,o=36e5,a="millisecond",s="second",l="minute",c="hour",d="day",h="week",p="month",v="quarter",g="year",y="date",S="Invalid Date",k=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,C=/\[([^\]]+)]|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,x={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(U){var G=["th","st","nd","rd"],X=U%100;return"["+U+(G[(X-20)%10]||G[X]||G[0])+"]"}},E=function(U,G,X){var oe=String(U);return!oe||oe.length>=G?U:""+Array(G+1-oe.length).join(X)+U},_={s:E,z:function(U){var G=-U.utcOffset(),X=Math.abs(G),oe=Math.floor(X/60),Z=X%60;return(G<=0?"+":"-")+E(oe,2,"0")+":"+E(Z,2,"0")},m:function U(G,X){if(G.date()1)return U(q[0])}else{var ee=G.name;D[ee]=G,Z=ee}return!oe&&Z&&(T=Z),Z||!oe&&T},L=function(U,G){if(M(U))return U.clone();var X=typeof G=="object"?G:{};return X.date=U,X.args=arguments,new F(X)},B=_;B.l=$,B.i=M,B.w=function(U,G){return L(U,{locale:G.$L,utc:G.$u,x:G.$x,$offset:G.$offset})};var F=(function(){function U(X){this.$L=$(X.locale,null,!0),this.parse(X),this.$x=this.$x||X.x||{},this[P]=!0}var G=U.prototype;return G.parse=function(X){this.$d=(function(oe){var Z=oe.date,H=oe.utc;if(Z===null)return new Date(NaN);if(B.u(Z))return new Date;if(Z instanceof Date)return new Date(Z);if(typeof Z=="string"&&!/Z$/i.test(Z)){var q=Z.match(k);if(q){var ee=q[2]-1||0,ne=(q[7]||"0").substring(0,3);return H?new Date(Date.UTC(q[1],ee,q[3]||1,q[4]||0,q[5]||0,q[6]||0,ne)):new Date(q[1],ee,q[3]||1,q[4]||0,q[5]||0,q[6]||0,ne)}}return new Date(Z)})(X),this.init()},G.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()},G.$utils=function(){return B},G.isValid=function(){return this.$d.toString()!==S},G.isSame=function(X,oe){var Z=L(X);return this.startOf(oe)<=Z&&Z<=this.endOf(oe)},G.isAfter=function(X,oe){return L(X)68?1900:2e3)},h=function(k){return function(C){this[k]=+C}},p=[/[+-]\d\d:?(\d\d)?|Z/,function(k){(this.zone||(this.zone={})).offset=(function(C){if(!C||C==="Z")return 0;var x=C.match(/([+-]|\d\d)/g),E=60*x[1]+(+x[2]||0);return E===0?0:x[0]==="+"?-E:E})(k)}],v=function(k){var C=c[k];return C&&(C.indexOf?C:C.s.concat(C.f))},g=function(k,C){var x,E=c.meridiem;if(E){for(var _=1;_<=24;_+=1)if(k.indexOf(E(_,0,C))>-1){x=_>12;break}}else x=k===(C?"pm":"PM");return x},y={A:[l,function(k){this.afternoon=g(k,!1)}],a:[l,function(k){this.afternoon=g(k,!0)}],Q:[o,function(k){this.month=3*(k-1)+1}],S:[o,function(k){this.milliseconds=100*+k}],SS:[a,function(k){this.milliseconds=10*+k}],SSS:[/\d{3}/,function(k){this.milliseconds=+k}],s:[s,h("seconds")],ss:[s,h("seconds")],m:[s,h("minutes")],mm:[s,h("minutes")],H:[s,h("hours")],h:[s,h("hours")],HH:[s,h("hours")],hh:[s,h("hours")],D:[s,h("day")],DD:[a,h("day")],Do:[l,function(k){var C=c.ordinal,x=k.match(/\d+/);if(this.day=x[0],C)for(var E=1;E<=31;E+=1)C(E).replace(/\[|\]/g,"")===k&&(this.day=E)}],w:[s,h("week")],ww:[a,h("week")],M:[s,h("month")],MM:[a,h("month")],MMM:[l,function(k){var C=v("months"),x=(v("monthsShort")||C.map((function(E){return E.slice(0,3)}))).indexOf(k)+1;if(x<1)throw new Error;this.month=x%12||x}],MMMM:[l,function(k){var C=v("months").indexOf(k)+1;if(C<1)throw new Error;this.month=C%12||C}],Y:[/[+-]?\d+/,h("year")],YY:[a,function(k){this.year=d(k)}],YYYY:[/\d{4}/,h("year")],Z:p,ZZ:p};function S(k){var C,x;C=k,x=c&&c.formats;for(var E=(k=C.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(L,B,F){var W=F&&F.toUpperCase();return B||x[F]||n[F]||x[W].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(U,G,X){return G||X.slice(1)}))}))).match(r),_=E.length,T=0;T<_;T+=1){var D=E[T],P=y[D],M=P&&P[0],$=P&&P[1];E[T]=$?{regex:M,parser:$}:D.replace(/^\[|\]$/g,"")}return function(L){for(var B={},F=0,W=0;F<_;F+=1){var U=E[F];if(typeof U=="string")W+=U.length;else{var G=U.regex,X=U.parser,oe=L.slice(W),Z=G.exec(oe)[0];X.call(B,Z),L=L.replace(Z,"")}}return(function(H){var q=H.afternoon;if(q!==void 0){var ee=H.hours;q?ee<12&&(H.hours+=12):ee===12&&(H.hours=0),delete H.afternoon}})(B),B}}return function(k,C,x){x.p.customParseFormat=!0,k&&k.parseTwoDigitYear&&(d=k.parseTwoDigitYear);var E=C.prototype,_=E.parse;E.parse=function(T){var D=T.date,P=T.utc,M=T.args;this.$u=P;var $=M[1];if(typeof $=="string"){var L=M[2]===!0,B=M[3]===!0,F=L||B,W=M[2];B&&(W=M[2]),c=this.$locale(),!L&&W&&(c=x.Ls[W]),this.$d=(function(oe,Z,H,q){try{if(["x","X"].indexOf(Z)>-1)return new Date((Z==="X"?1e3:1)*oe);var ee=S(Z)(oe),ne=ee.year,ae=ee.month,re=ee.day,ke=ee.hours,Ne=ee.minutes,me=ee.seconds,_e=ee.milliseconds,Ue=ee.zone,Qe=ee.week,Me=new Date,je=re||(ne||ae?1:Me.getDate()),ge=ne||Me.getFullYear(),be=0;ne&&!ae||(be=ae>0?ae-1:Me.getMonth());var Fe,He=ke||0,Je=Ne||0,rt=me||0,ht=_e||0;return Ue?new Date(Date.UTC(ge,be,je,He,Je,rt,ht+60*Ue.offset*1e3)):H?new Date(Date.UTC(ge,be,je,He,Je,rt,ht)):(Fe=new Date(ge,be,je,He,Je,rt,ht),Qe&&(Fe=q(Fe).week(Qe).toDate()),Fe)}catch{return new Date("")}})(D,$,P,x),this.init(),W&&W!==!0&&(this.$L=this.locale(W).$L),F&&D!=this.format($)&&(this.$d=new Date("")),c={}}else if($ instanceof Array)for(var U=$.length,G=1;G<=U;G+=1){M[1]=$[G-1];var X=x.apply(this,M);if(X.isValid()){this.$d=X.$d,this.$L=X.$L,this.init();break}G===U&&(this.$d=new Date(""))}else _.call(this,T)}}}))})(lw)),lw.exports}var gRe=mRe();const yRe=td(gRe);var uw={exports:{}},bRe=uw.exports,Jne;function _Re(){return Jne||(Jne=1,(function(e,t){(function(n,r){e.exports=r()})(bRe,(function(){return function(n,r,o){r.prototype.isBetween=function(a,s,l,c){var d=o(a),h=o(s),p=(c=c||"()")[0]==="(",v=c[1]===")";return(p?this.isAfter(d,l):!this.isBefore(d,l))&&(v?this.isBefore(h,l):!this.isAfter(h,l))||(p?this.isBefore(d,l):!this.isAfter(d,l))&&(v?this.isAfter(h,l):!this.isBefore(h,l))}}}))})(uw)),uw.exports}var SRe=_Re();const kRe=td(SRe);var cw={exports:{}},xRe=cw.exports,Qne;function CRe(){return Qne||(Qne=1,(function(e,t){(function(n,r){e.exports=r()})(xRe,(function(){var n="week",r="year";return function(o,a,s){var l=a.prototype;l.week=function(c){if(c===void 0&&(c=null),c!==null)return this.add(7*(c-this.week()),"day");var d=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var h=s(this).startOf(r).add(1,r).date(d),p=s(this).endOf(n);if(h.isBefore(p))return 1}var v=s(this).startOf(r).date(d).startOf(n).subtract(1,"millisecond"),g=this.diff(v,n,!0);return g<0?s(this).startOf("week").week():Math.ceil(g)},l.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}}))})(cw)),cw.exports}var wRe=CRe();const ERe=td(wRe);var dw={exports:{}},TRe=dw.exports,ere;function ARe(){return ere||(ere=1,(function(e,t){(function(n,r){e.exports=r()})(TRe,(function(){return function(n,r){var o=r.prototype,a=o.format;o.format=function(s){var l=this,c=this.$locale();if(!this.isValid())return a.bind(this)(s);var d=this.$utils(),h=(s||"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(p){switch(p){case"Q":return Math.ceil((l.$M+1)/3);case"Do":return c.ordinal(l.$D);case"gggg":return l.weekYear();case"GGGG":return l.isoWeekYear();case"wo":return c.ordinal(l.week(),"W");case"w":case"ww":return d.s(l.week(),p==="w"?1:2,"0");case"W":case"WW":return d.s(l.isoWeek(),p==="W"?1:2,"0");case"k":case"kk":return d.s(String(l.$H===0?24:l.$H),p==="k"?1:2,"0");case"X":return Math.floor(l.$d.getTime()/1e3);case"x":return l.$d.getTime();case"z":return"["+l.offsetName()+"]";case"zzz":return"["+l.offsetName("long")+"]";default:return p}}));return a.bind(this)(h)}}}))})(dw)),dw.exports}var IRe=ARe();const LRe=td(IRe);var fw={exports:{}},DRe=fw.exports,tre;function PRe(){return tre||(tre=1,(function(e,t){(function(n,r){e.exports=r()})(DRe,(function(){return function(n,r){r.prototype.weekYear=function(){var o=this.month(),a=this.week(),s=this.year();return a===1&&o===11?s+1:o===0&&a>=52?s-1:s}}}))})(fw)),fw.exports}var RRe=PRe();const MRe=td(RRe);var hw={exports:{}},ORe=hw.exports,nre;function $Re(){return nre||(nre=1,(function(e,t){(function(n,r){e.exports=r()})(ORe,(function(){var n="month",r="quarter";return function(o,a){var s=a.prototype;s.quarter=function(d){return this.$utils().u(d)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(d-1))};var l=s.add;s.add=function(d,h){return d=Number(d),this.$utils().p(h)===r?this.add(3*d,n):l.bind(this)(d,h)};var c=s.startOf;s.startOf=function(d,h){var p=this.$utils(),v=!!p.u(h)||h;if(p.p(d)===r){var g=this.quarter()-1;return v?this.month(3*g).startOf(n).startOf("day"):this.month(3*g+2).endOf(n).endOf("day")}return c.bind(this)(d,h)}}}))})(hw)),hw.exports}var BRe=$Re();const NRe=td(BRe);var pw={exports:{}},FRe=pw.exports,rre;function jRe(){return rre||(rre=1,(function(e,t){(function(n,r){e.exports=r(fpe())})(FRe,(function(n){function r(s){return s&&typeof s=="object"&&"default"in s?s:{default:s}}var o=r(n),a={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(s,l){return l==="W"?s+"周":s+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(s,l){var c=100*s+l;return c<600?"凌晨":c<900?"早上":c<1100?"上午":c<1300?"中午":c<1800?"下午":"晚上"}};return o.default.locale(a,null,!0),a}))})(pw)),pw.exports}jRe();const VRe=(e,t,n)=>{n=function(a,s){if(zc(a))return a.clone();const l=typeof s=="object"?s:{};return l.date=a,l.args=arguments,new t(l)};const r=t.prototype,o=r.$utils;r.$utils=()=>{const a=o();return a.i=zc,a},n.isDayjs=zc};ml.extend(VRe);ml.extend(yRe);ml.extend(kRe);ml.extend(ERe);ml.extend(LRe);ml.extend(MRe);ml.extend(NRe);const Rs=ml,Ys={add(e,t,n){return e.add(t,n)},subtract(e,t,n){return e.subtract(t,n)},startOf(e,t){return e.startOf(t)},startOfWeek(e,t){const n=e.day();let r=e.subtract(n-t,"day");return r.isAfter(e)&&(r=r.subtract(7,"day")),r},endOf(e,t){return e.endOf(t)},set(e,t,n){return e.set(t,n)},isSameWeek(e,t,n){const r=o=>{const a=o.day(),s=a-n+(at.valueOf()-n.valueOf())}function hH(e,t){const n=(r,o)=>r===void 0&&o===void 0?!1:r&&!o||!r&&o?!0:r?.valueOf()!==o?.valueOf();return t===void 0&&e===void 0?!1:or(t)&&or(e)?n(t[0],e[0])||n(t[1],e[1]):!or(t)&&!or(e)?n(t,e):!0}function dc(e,t){const n=o=>{const a=/(Q1)|(Q2)|(Q3)|(Q4)/,s={Q1:"01",Q2:"04",Q3:"07",Q4:"10"},[l]=a.exec(o);return o.replace(a,s[l])},r=o=>{if(o){if(typeof o=="string"){if(BLe(t))return Rs(n(o),t.replace(/\[Q]Q/,"MM"));if(Rs(o,t).isValid())return Rs(o,t)}return Rs(o)}};return or(e)?e.map(r):r(e)}function xu(e){const t=n=>n?n.toDate():void 0;return or(e)?e.map(t):t(e)}function hpe(e,t){Rs.locale({...Rs.Ls[e.toLocaleLowerCase()],weekStart:t})}function zRe(e){const t={};return e&&Object.keys(e).forEach(n=>{const r=String(n);r.indexOf("data-")===0&&(t[r]=e[r]),r.indexOf("aria-")===0&&(t[r]=e[r])}),t}function fm(e,t,n=" "){const r=String(e),o=r.lengthO("div",{class:a},[l.map(c=>O("div",{class:`${a}-item`,key:c},[s(`calendar.week.${r.value||o.value==="year"?"short":"long"}.${c}`)]))])}});function gx(e,t){if(e&&or(e))return e[t]}function ppe({prefixCls:e,mergedValue:t,rangeValues:n,hoverRangeValues:r,panel:o,isSameTime:a,innerMode:s}){return function(c,d){const h=gx(n,0),p=gx(n,1),v=gx(r,0),g=gx(r,1),y=!c.isPrev&&!c.isNext,S=y&&o,k=S,C=S;v&&h&&v.isBefore(h);const E=p&&g&&g.isAfter(p)&&C;let _=a(c.time,Ka());return s==="year"&&(_=Ka().isSame(c.time,"date")),[`${e}-cell`,{[`${e}-cell-in-view`]:y,[`${e}-cell-today`]:_,[`${e}-cell-selected`]:t&&a(c.time,t),[`${e}-cell-range-start`]:k,[`${e}-cell-range-end`]:C,[`${e}-cell-in-range`]:S,[`${e}-cell-in-range-near-hover`]:E,[`${e}-cell-hover-range-start`]:S,[`${e}-cell-hover-range-end`]:S,[`${e}-cell-hover-in-range`]:S,[`${e}-cell-disabled`]:d}]}}const ire=42,N8=e=>({year:e.year(),month:e.month()+1,date:e.date(),day:e.day(),time:e}),HRe=e=>({start:N8(Ys.startOf(e,"month")),end:N8(Ys.endOf(e,"month")),days:e.daysInMonth()});function vpe(e,{dayStartOfWeek:t=0,isWeek:n}){const r=HRe(e),o=Array(ire).fill(null).map(()=>({})),a=t===0?r.start.day:(r.start.day||7)-1;o[a]={...r.start,isCurrent:!0};for(let l=0;l=r.days-1};const s=Array(6).fill(null).map(()=>[]);for(let l=0;l<6;l++)if(s[l]=o.slice(l*7,7*(l+1)),n){const c=s[l][0].time,d=[...s[l]];s[l].unshift({weekRows:d,weekOfYear:c.week()})}return s}var mpe=Se({name:"Month",props:{cell:{type:Boolean},pageData:{type:Array},current:{type:Number},value:{type:Object,required:!0},selectHandler:{type:Function,required:!0},mode:{type:String},pageShowDate:{type:Object,required:!0},panel:{type:Boolean},dayStartOfWeek:{type:Number,required:!0},isWeek:{type:Boolean,required:!0}},setup(e,{slots:t}){const{pageData:n}=nn(e),r=Te("calendar"),o=e.pageShowDate.year(),a=j(()=>ppe({prefixCls:r,mergedValue:e.value,panel:!1,innerMode:e.mode,rangeValues:[],hoverRangeValues:[],isSameTime:(c,d)=>c.isSame(d,"day")}));function s(c){return c.map((d,h)=>{var p;if(d.time){const v=()=>e.selectHandler(d.time,!1),g=e.isWeek?{onClick:v}:{},y=e.isWeek?{}:{onClick:v};return O("div",Vt({key:h,class:a.value(d,!1)},g),[t.default?(p=t.default)==null?void 0:p.call(t,{year:d.year,month:d.month,date:d.date}):O("div",Vt({class:`${r}-date`},y),[O("div",{class:`${r}-date-value`},[e.panel?d.date:O("div",{class:`${r}-date-circle`},[d.date])])])])}if("weekOfYear"in d){const v=e.value.year(),g=e.value.month()+1,y=e.value.week(),S=e.value&&d.weekRows.find(k=>k.year===v&&k.month===g)&&y===d.weekOfYear;return O("div",{key:h,class:[`${r}-cell`,`${r}-cell-week`,{[`${r}-cell-selected-week`]:S,[`${r}-cell-in-range`]:S}]},[O("div",{class:`${r}-date`},[O("div",{class:`${r}-date-value`},[d.weekOfYear])])])}return null})}let l=n.value;return typeof e.current=="number"&&(l=vpe(Rs(`${o}-${fm(e.current+1,2,"0")}-01`),{dayStartOfWeek:e.dayStartOfWeek,isWeek:e.isWeek})),()=>O("div",{class:e.cell?`${r}-month-cell`:`${r}-month`},[O(URe,{value:e.value,selectHandler:e.selectHandler,dayStartOfWeek:e.dayStartOfWeek,isWeek:e.isWeek,panel:e.panel,mode:e.mode,pageShowData:e.pageShowDate,pageData:e.pageData},null),O("div",{class:`${r}-month-cell-body`},[l?.map((c,d)=>O("div",{key:d,class:[`${r}-month-row`,{[`${r}-row-week`]:e.isWeek}]},[s(c)]))])])}});const gpe=["January","February","March","April","May","June","July","August","September","October","November","December"].map((e,t)=>({name:e,value:t})),ype=Array(3);for(let e=0;e<3;e++)ype[e]=gpe.slice(e*4,4*(e+1));const bpe=Array(4);for(let e=0;e<4;e++)bpe[e]=gpe.slice(e*3,3*(e+1));var WRe=Se({name:"Year",props:{mode:{type:String,required:!0},dayStartOfWeek:{type:Number,required:!0},value:{type:Object,required:!0},isWeek:{type:Boolean},panel:{type:Boolean,default:!1},pageShowData:{type:Object,required:!0},pageData:{type:Array},selectHandler:{type:Function,required:!0}},setup(e){const t=Te("calendar"),n=j(()=>ppe({prefixCls:t,mergedValue:e.value,panel:!1,innerMode:e.mode,rangeValues:[],hoverRangeValues:[],isSameTime:(s,l)=>s.isSame(l,"month")})),{t:r}=No(),o=j(()=>e.pageShowData.year()),a=e.panel?bpe:ype;return()=>O("div",{class:`${t}-year`},[a.map((s,l)=>O("div",{class:`${t}-year-row`,key:l},[s.map(c=>{const d=Rs(`${o.value}-${fm(c.value+1,2,"0")}-01`),h=e.panel?{onClick:()=>e.selectHandler(d,!1)}:{};return O("div",{key:c.value,class:n.value({...c,time:d},!1)},[e.panel?O("div",Vt({class:`${t}-date`},h),[O("div",{class:`${t}-date-value`},[r(`calendar.month.short.${c.name}`)])]):O("div",{class:`${t}-month-with-days`},[O("div",{class:`${t}-month-title`},[r(`calendar.month.long.${c.name}`)]),O(mpe,{pageShowDate:e.pageShowData,pageData:e.pageData,dayStartOfWeek:e.dayStartOfWeek,selectHandler:e.selectHandler,isWeek:e.isWeek,cell:!0,current:c.value,value:e.value,mode:e.mode},null)])])})]))])}});const GRe=({defaultValue:e,modelValue:t,emit:n,eventName:r="input",updateEventName:o="update:modelValue",eventHandlers:a})=>{var s;const l=fe(),c=fe((s=e?.value)!=null?s:""),d=fe(!1),h=fe(!1),p=fe("");let v;const g=j(()=>{var D;return(D=t?.value)!=null?D:c.value}),y=(D,P)=>{c.value=D,n(o,D),n(r,D,P)},S=D=>{const{value:P}=D.target;h.value||(y(P,D),Cn(()=>{l.value&&g.value!==l.value.value&&(l.value.value=g.value)}))},k=D=>{r==="input"&&g.value!==v&&(v=g.value,n("change",g.value,D))},C=D=>{var P;const{value:M}=D.target;D.type==="compositionend"?(h.value=!1,p.value="",y(M,D),Cn(()=>{l.value&&g.value!==l.value.value&&(l.value.value=g.value)})):(h.value=!0,p.value=g.value+((P=D.data)!=null?P:""))},x=D=>{var P,M;d.value=!0,v=g.value,n("focus",D),(M=(P=a?.value)==null?void 0:P.onFocus)==null||M.call(P,D)},E=D=>{var P,M;d.value=!1,n("blur",D),(M=(P=a?.value)==null?void 0:P.onBlur)==null||M.call(P,D),k(D)},_=D=>{const P=D.key||D.code;!h.value&&P===rH.key&&(n("pressEnter",D),k(D))},T=D=>{l.value&&D.target!==l.value&&(D.preventDefault(),l.value.focus())};return Rt(g,D=>{l.value&&D!==l.value.value&&(l.value.value=D)}),{inputRef:l,_value:c,_focused:d,isComposition:h,compositionValue:p,computedValue:g,handleInput:S,handleComposition:C,handleFocus:x,handleBlur:E,handleKeyDown:_,handleMousedown:T}};var KRe=Se({name:"InputLabel",inheritAttrs:!1,props:{modelValue:Object,inputValue:{type:String,default:""},enabledInput:Boolean,formatLabel:Function,placeholder:String,retainInputValue:Boolean,disabled:Boolean,baseCls:String,size:String,error:Boolean,focused:Boolean,uninjectFormItemContext:Boolean},emits:["update:inputValue","inputValueChange","focus","blur"],setup(e,{attrs:t,emit:n,slots:r}){var o;const{size:a,disabled:s,error:l,inputValue:c,uninjectFormItemContext:d}=nn(e),h=(o=e.baseCls)!=null?o:Te("input-label"),{mergedSize:p,mergedDisabled:v,mergedError:g,eventHandlers:y}=Do({size:a,disabled:s,error:l,uninject:d?.value}),{mergedSize:S}=wa(p),{inputRef:k,_focused:C,computedValue:x,handleInput:E,handleComposition:_,handleFocus:T,handleBlur:D,handleMousedown:P}=GRe({modelValue:c,emit:n,eventName:"inputValueChange",updateEventName:"update:inputValue",eventHandlers:y}),M=j(()=>{var oe;return(oe=e.focused)!=null?oe:C.value}),$=j(()=>e.enabledInput&&C.value||!e.modelValue),L=()=>{var oe,Z;return e.modelValue?(Z=(oe=e.formatLabel)==null?void 0:oe.call(e,e.modelValue))!=null?Z:e.modelValue.label:""},B=j(()=>e.enabledInput&&e.modelValue?L():e.placeholder),F=()=>{var oe,Z;return e.modelValue?(Z=(oe=r.default)==null?void 0:oe.call(r,{data:e.modelValue}))!=null?Z:L():null},W=j(()=>[h,`${h}-size-${S.value}`,{[`${h}-search`]:e.enabledInput,[`${h}-focus`]:M.value,[`${h}-disabled`]:v.value,[`${h}-error`]:g.value}]),U=j(()=>xa(t,S0)),G=j(()=>kf(t,S0));return{inputRef:k,render:()=>O("span",Vt(U.value,{class:W.value,title:L(),onMousedown:P}),[r.prefix&&O("span",{class:`${h}-prefix`},[r.prefix()]),O("input",Vt(G.value,{ref:k,class:[`${h}-input`,{[`${h}-input-hidden`]:!$.value}],value:x.value,readonly:!e.enabledInput,placeholder:B.value,disabled:v.value,onInput:E,onFocus:T,onBlur:D,onCompositionstart:_,onCompositionupdate:_,onCompositionend:_}),null),O("span",{class:[`${h}-value`,{[`${h}-value-hidden`]:$.value}]},[F()]),r.suffix&&O("span",{class:`${h}-suffix`},[r.suffix()])])}},methods:{focus(){var e;(e=this.inputRef)==null||e.focus()},blur(){var e;(e=this.inputRef)==null||e.blur()}},render(){return this.render()}});const qRe=(e,t)=>{const n=[];for(const r of e)if(br(r))n.push({raw:r,value:r[t.value],label:r[t.label],closable:r[t.closable],tagProps:r[t.tagProps]});else if(e||Ze(e)){const o={value:r,label:String(r),closable:!0};n.push({raw:o,...o})}return n},ore=["red","orangered","orange","gold","lime","green","cyan","blue","arcoblue","purple","pinkpurple","magenta","gray"],YRe=Se({name:"Tag",components:{IconHover:Lo,IconClose:ds,IconLoading:Xa},props:{color:{type:String},size:{type:String},bordered:{type:Boolean,default:!1},visible:{type:Boolean,default:void 0},defaultVisible:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},closable:{type:Boolean,default:!1},checkable:{type:Boolean,default:!1},checked:{type:Boolean,default:void 0},defaultChecked:{type:Boolean,default:!0},nowrap:{type:Boolean,default:!1}},emits:{"update:visible":e=>!0,"update:checked":e=>!0,close:e=>!0,check:(e,t)=>!0},setup(e,{emit:t}){const{size:n}=nn(e),r=Te("tag"),o=j(()=>e.color&&ore.includes(e.color)),a=j(()=>e.color&&!ore.includes(e.color)),s=fe(e.defaultVisible),l=fe(e.defaultChecked),c=j(()=>{var k;return(k=e.visible)!=null?k:s.value}),d=j(()=>{var k;return e.checkable?(k=e.checked)!=null?k:l.value:!0}),{mergedSize:h}=wa(n),p=j(()=>h.value==="mini"?"small":h.value),v=k=>{s.value=!1,t("update:visible",!1),t("close",k)},g=k=>{if(e.checkable){const C=!d.value;l.value=C,t("update:checked",C),t("check",C,k)}},y=j(()=>[r,`${r}-size-${p.value}`,{[`${r}-loading`]:e.loading,[`${r}-hide`]:!c.value,[`${r}-${e.color}`]:o.value,[`${r}-bordered`]:e.bordered,[`${r}-checkable`]:e.checkable,[`${r}-checked`]:d.value,[`${r}-custom-color`]:a.value}]),S=j(()=>{if(a.value)return{backgroundColor:e.color}});return{prefixCls:r,cls:y,style:S,computedVisible:c,computedChecked:d,handleClick:g,handleClose:v}}});function XRe(e,t,n,r,o,a){const s=Ie("icon-close"),l=Ie("icon-hover"),c=Ie("icon-loading");return e.computedVisible?(z(),Q("span",{key:0,class:ue(e.cls),style:Ke(e.style),onClick:t[0]||(t[0]=(...d)=>e.handleClick&&e.handleClick(...d))},[e.$slots.icon?(z(),Q("span",{key:0,class:ue(`${e.prefixCls}-icon`)},[vt(e.$slots,"icon")],2)):Le("v-if",!0),e.nowrap?(z(),Q("span",{key:1,class:ue(`${e.prefixCls}-text`)},[vt(e.$slots,"default")],2)):vt(e.$slots,"default",{key:2}),e.closable?(z(),Ye(l,{key:3,role:"button","aria-label":"Close",prefix:e.prefixCls,class:ue(`${e.prefixCls}-close-btn`),onClick:us(e.handleClose,["stop"])},{default:de(()=>[vt(e.$slots,"close-icon",{},()=>[O(s)])]),_:3},8,["prefix","class","onClick"])):Le("v-if",!0),e.loading?(z(),Q("span",{key:4,class:ue(`${e.prefixCls}-loading-icon`)},[O(c)],2)):Le("v-if",!0)],6)):Le("v-if",!0)}var XP=Ve(YRe,[["render",XRe]]);const pH=Object.assign(XP,{install:(e,t)=>{Xn(e,t);const n=Yn(t);e.component(n+XP.name,XP)}}),ZRe={value:"value",label:"label",closable:"closable",tagProps:"tagProps"};var ZP=Se({name:"InputTag",inheritAttrs:!1,props:{modelValue:{type:Array},defaultValue:{type:Array,default:()=>[]},inputValue:String,defaultInputValue:{type:String,default:""},placeholder:String,disabled:{type:Boolean,default:!1},error:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},allowClear:{type:Boolean,default:!1},size:{type:String},maxTagCount:{type:Number,default:0},retainInputValue:{type:[Boolean,Object],default:!1},formatTag:{type:Function},uniqueValue:{type:Boolean,default:!1},fieldNames:{type:Object},tagNowrap:{type:Boolean,default:!1},baseCls:String,focused:Boolean,disabledInput:Boolean,uninjectFormItemContext:Boolean},emits:{"update:modelValue":e=>!0,"update:inputValue":e=>!0,change:(e,t)=>!0,inputValueChange:(e,t)=>!0,pressEnter:(e,t)=>!0,remove:(e,t)=>!0,clear:e=>!0,focus:e=>!0,blur:e=>!0},setup(e,{emit:t,slots:n,attrs:r}){const{size:o,disabled:a,error:s,uninjectFormItemContext:l,modelValue:c}=nn(e),d=e.baseCls||Te("input-tag"),h=fe(),p=fe(),{mergedSize:v,mergedDisabled:g,mergedError:y,feedback:S,eventHandlers:k}=Do({size:o,disabled:a,error:s,uninject:l?.value}),{mergedSize:C}=wa(v),x=j(()=>({...ZRe,...e.fieldNames})),E=fe(!1),_=fe(e.defaultValue),T=fe(e.defaultInputValue),D=fe(!1),P=fe(""),M=j(()=>br(e.retainInputValue)?{create:!1,blur:!1,...e.retainInputValue}:{create:e.retainInputValue,blur:e.retainInputValue}),$=Xt({width:"12px"}),L=j(()=>e.focused||E.value),B=(be,Fe)=>{T.value=be,t("update:inputValue",be),t("inputValueChange",be,Fe)},F=be=>{var Fe;const{value:He}=be.target;be.type==="compositionend"?(D.value=!1,P.value="",B(He,be),Cn(()=>{h.value&&U.value!==h.value.value&&(h.value.value=U.value)})):(D.value=!0,P.value=U.value+((Fe=be.data)!=null?Fe:""))},W=j(()=>{var be;return(be=e.modelValue)!=null?be:_.value}),U=j(()=>{var be;return(be=e.inputValue)!=null?be:T.value});Rt(c,be=>{(An(be)||Tl(be))&&(_.value=[])});const G=be=>{h.value&&be.target!==h.value&&(be.preventDefault(),h.value.focus())},X=be=>{const{value:Fe}=be.target;D.value||(B(Fe,be),Cn(()=>{h.value&&U.value!==h.value.value&&(h.value.value=U.value)}))},oe=j(()=>qRe(W.value,x.value)),Z=j(()=>{if(e.maxTagCount>0){const be=oe.value.length-e.maxTagCount;if(be>0){const Fe=oe.value.slice(0,e.maxTagCount),He={value:"__arco__more",label:`+${be}...`,closable:!1};return Fe.push({raw:He,...He}),Fe}}return oe.value}),H=(be,Fe)=>{var He,Je;_.value=be,t("update:modelValue",be),t("change",be,Fe),(Je=(He=k.value)==null?void 0:He.onChange)==null||Je.call(He,Fe)},q=(be,Fe,He)=>{var Je;const rt=(Je=W.value)==null?void 0:Je.filter((ht,ut)=>ut!==Fe);H(rt,He),t("remove",be,He)},ee=be=>{H([],be),t("clear",be)},ne=j(()=>!g.value&&!e.readonly&&e.allowClear&&!!W.value.length),ae=be=>{var Fe;if(U.value){if(be.preventDefault(),e.uniqueValue&&((Fe=W.value)!=null&&Fe.includes(U.value))){t("pressEnter",U.value,be);return}const He=W.value.concat(U.value);H(He,be),t("pressEnter",U.value,be),M.value.create||B("",be)}},re=be=>{var Fe,He;E.value=!0,t("focus",be),(He=(Fe=k.value)==null?void 0:Fe.onFocus)==null||He.call(Fe,be)},ke=be=>{var Fe,He;E.value=!1,!M.value.blur&&U.value&&B("",be),t("blur",be),(He=(Fe=k.value)==null?void 0:Fe.onBlur)==null||He.call(Fe,be)},Ne=()=>{for(let be=oe.value.length-1;be>=0;be--)if(oe.value[be].closable)return be;return-1},me=be=>{if(g.value||e.readonly)return;const Fe=be.key||be.code;if(!D.value&&U.value&&Fe===rH.key&&ae(be),!D.value&&Z.value.length>0&&!U.value&&Fe===Jhe.key){const He=Ne();He>=0&&q(oe.value[He].value,He,be)}},_e=be=>{be>12?$.width=`${be}px`:$.width="12px"};bn(()=>{p.value&&_e(p.value.offsetWidth)});const Ue=()=>{p.value&&_e(p.value.offsetWidth)};Rt(U,be=>{h.value&&!D.value&&be!==h.value.value&&(h.value.value=be)});const Qe=j(()=>[d,`${d}-size-${C.value}`,{[`${d}-disabled`]:g.value,[`${d}-disabled-input`]:e.disabledInput,[`${d}-error`]:y.value,[`${d}-focus`]:L.value,[`${d}-readonly`]:e.readonly,[`${d}-has-tag`]:Z.value.length>0,[`${d}-has-prefix`]:!!n.prefix,[`${d}-has-suffix`]:!!n.suffix||ne.value||S.value,[`${d}-has-placeholder`]:!W.value.length}]),Me=j(()=>xa(r,S0)),je=j(()=>kf(r,S0));return{inputRef:h,render:()=>{var be;return O("span",Vt({class:Qe.value,onMousedown:G},Me.value),[O(Dd,{onResize:Ue},{default:()=>[O("span",{ref:p,class:`${d}-mirror`},[Z.value.length>0?P.value||U.value:P.value||U.value||e.placeholder])]}),n.prefix&&O("span",{class:`${d}-prefix`},[n.prefix()]),O(r3,{tag:"span",name:"input-tag-zoom",class:[`${d}-inner`,{[`${d}-nowrap`]:e.tagNowrap}]},{default:()=>[Z.value.map((Fe,He)=>O(pH,Vt({key:`tag-${Fe.value}`,class:`${d}-tag`,closable:!g.value&&!e.readonly&&Fe.closable,visible:!0,nowrap:e.tagNowrap},Fe.tagProps,{onClose:Je=>q(Fe.value,He,Je)}),{default:()=>{var Je,rt,ht,ut;return[(ut=(ht=(Je=n.tag)==null?void 0:Je.call(n,{data:Fe.raw}))!=null?ht:(rt=e.formatTag)==null?void 0:rt.call(e,Fe.raw))!=null?ut:Fe.label]}})),O("input",Vt(je.value,{ref:h,key:"input-tag-input",class:`${d}-input`,style:$,placeholder:Z.value.length===0?e.placeholder:void 0,disabled:g.value,readonly:e.readonly||e.disabledInput,onInput:X,onKeydown:me,onFocus:re,onBlur:ke,onCompositionstart:F,onCompositionupdate:F,onCompositionend:F}),null)]}),ne.value&&O(Lo,{class:`${d}-clear-btn`,onClick:ee,onMousedown:Fe=>Fe.stopPropagation()},{default:()=>[O(ds,null,null)]}),(n.suffix||!!S.value)&&O("span",{class:`${d}-suffix`},[(be=n.suffix)==null?void 0:be.call(n),!!S.value&&O(Y_,{type:S.value},null)])])}}},methods:{focus(){var e;(e=this.inputRef)==null||e.focus()},blur(){var e;(e=this.inputRef)==null||e.blur()}},render(){return this.render()}});const _pe=Object.assign(ZP,{install:(e,t)=>{Xn(e,t);const n=Yn(t);e.component(n+ZP.name,ZP)}});var F8=Se({name:"SelectView",props:{modelValue:{type:Array,required:!0},inputValue:String,placeholder:String,disabled:{type:Boolean,default:!1},error:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},opened:{type:Boolean,default:!1},size:{type:String},bordered:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},allowClear:{type:Boolean,default:!1},allowCreate:{type:Boolean,default:!1},allowSearch:{type:Boolean,default:e=>or(e.modelValue)},maxTagCount:{type:Number,default:0},tagNowrap:{type:Boolean,default:!1},retainInputValue:{type:Boolean,default:!1}},emits:["remove","clear","focus","blur"],setup(e,{emit:t,slots:n}){const{size:r,disabled:o,error:a}=nn(e),s=Te("select-view"),{feedback:l,eventHandlers:c,mergedDisabled:d,mergedSize:h,mergedError:p}=Do({size:r,disabled:o,error:a}),{mergedSize:v}=wa(h),{opened:g}=nn(e),y=fe(),S=j(()=>{var B;return(B=y.value)==null?void 0:B.inputRef}),k=j(()=>e.modelValue.length===0),C=j(()=>e.allowSearch||e.allowCreate),x=j(()=>e.allowClear&&!e.disabled&&!k.value),E=B=>{var F,W;t("focus",B),(W=(F=c.value)==null?void 0:F.onFocus)==null||W.call(F,B)},_=B=>{var F,W;t("blur",B),(W=(F=c.value)==null?void 0:F.onBlur)==null||W.call(F,B)},T=B=>{t("remove",B)},D=B=>{t("clear",B)},P=()=>{var B,F,W,U;return e.loading?(F=(B=n["loading-icon"])==null?void 0:B.call(n))!=null?F:O(Xa,null,null):e.allowSearch&&e.opened?(U=(W=n["search-icon"])==null?void 0:W.call(n))!=null?U:O(Lm,null,null):n["arrow-icon"]?n["arrow-icon"]():O(Zh,{class:`${s}-arrow-icon`},null)},M=()=>O(Nt,null,[x.value&&O(Lo,{class:`${s}-clear-btn`,onClick:D,onMousedown:B=>B.stopPropagation()},{default:()=>[O(ds,null,null)]}),O("span",{class:`${s}-icon`},[P()]),!!l.value&&O(Y_,{type:l.value},null)]);Rt(g,B=>{!B&&S.value&&S.value.isSameNode(document.activeElement)&&S.value.blur()});const $=j(()=>[`${s}-${e.multiple?"multiple":"single"}`,{[`${s}-opened`]:e.opened,[`${s}-borderless`]:!e.bordered}]);return{inputRef:S,handleFocus:E,handleBlur:_,render:()=>e.multiple?O(_pe,{ref:y,baseCls:s,class:$.value,modelValue:e.modelValue,inputValue:e.inputValue,focused:e.opened,placeholder:e.placeholder,disabled:d.value,size:v.value,error:p.value,maxTagCount:e.maxTagCount,disabledInput:!e.allowSearch&&!e.allowCreate,tagNowrap:e.tagNowrap,retainInputValue:!0,uninjectFormItemContext:!0,onRemove:T,onFocus:E,onBlur:_},{prefix:n.prefix,suffix:M,tag:n.label}):O(KRe,{ref:y,baseCls:s,class:$.value,modelValue:e.modelValue[0],inputValue:e.inputValue,focused:e.opened,placeholder:e.placeholder,disabled:d.value,size:v.value,error:p.value,enabledInput:C.value,uninjectFormItemContext:!0,onFocus:E,onBlur:_},{default:n.label,prefix:n.prefix,suffix:M})}},methods:{focus(){this.inputRef&&this.inputRef.focus()},blur(){this.inputRef&&this.inputRef.blur()}},render(){return this.render()}});const JRe=Se({name:"Optgroup",props:{label:{type:String}},setup(){return{prefixCls:Te("select-group")}}});function QRe(e,t,n,r,o,a){return z(),Q(Nt,null,[I("li",{class:ue(`${e.prefixCls}-title`)},[vt(e.$slots,"label",{},()=>[We(ze(e.label),1)])],2),vt(e.$slots,"default")],64)}var nb=Ve(JRe,[["render",QRe]]);const sre=typeof window>"u"?global:window;function n_(e,t){let n=0;return(...r)=>{n&&sre.clearTimeout(n),n=sre.setTimeout(()=>{n=0,e(...r)},t)}}function eMe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wi(e)}const tMe={value:"value",label:"label",disabled:"disabled",tagProps:"tagProps",render:"render"};var JP=Se({name:"Select",components:{Trigger:ha,SelectView:F8},inheritAttrs:!1,props:{multiple:{type:Boolean,default:!1},modelValue:{type:[String,Number,Boolean,Object,Array],default:void 0},defaultValue:{type:[String,Number,Boolean,Object,Array],default:e=>An(e.multiple)?"":[]},inputValue:{type:String},defaultInputValue:{type:String,default:""},size:{type:String},placeholder:String,loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},error:{type:Boolean,default:!1},allowClear:{type:Boolean,default:!1},allowSearch:{type:[Boolean,Object],default:e=>!!e.multiple},allowCreate:{type:Boolean,default:!1},maxTagCount:{type:Number,default:0},popupContainer:{type:[String,Object]},bordered:{type:Boolean,default:!0},defaultActiveFirstOption:{type:Boolean,default:!0},popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},unmountOnClose:{type:Boolean,default:!1},filterOption:{type:[Boolean,Function],default:!0},options:{type:Array,default:()=>[]},virtualListProps:{type:Object},triggerProps:{type:Object},formatLabel:{type:Function},fallbackOption:{type:[Boolean,Function],default:!0},showExtraOptions:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},searchDelay:{type:Number,default:500},limit:{type:Number,default:0},fieldNames:{type:Object},scrollbar:{type:[Boolean,Object],default:!0},showHeaderOnEmpty:{type:Boolean,default:!1},showFooterOnEmpty:{type:Boolean,default:!1},tagNowrap:{type:Boolean,default:!1}},emits:{"update:modelValue":e=>!0,"update:inputValue":e=>!0,"update:popupVisible":e=>!0,change:e=>!0,inputValueChange:e=>!0,popupVisibleChange:e=>!0,clear:e=>!0,remove:e=>!0,search:e=>!0,dropdownScroll:e=>!0,dropdownReachBottom:e=>!0,exceedLimit:(e,t)=>!0},setup(e,{slots:t,emit:n,attrs:r}){const{size:o,disabled:a,error:s,options:l,filterOption:c,valueKey:d,multiple:h,popupVisible:p,defaultPopupVisible:v,showExtraOptions:g,modelValue:y,fieldNames:S,loading:k,defaultActiveFirstOption:C}=nn(e),x=Te("select"),{mergedSize:E,mergedDisabled:_,mergedError:T,eventHandlers:D}=Do({size:o,disabled:a,error:s}),P=j(()=>e.virtualListProps?"div":"li"),M=j(()=>br(e.allowSearch)&&!!e.allowSearch.retainInputValue);j(()=>{if(En(e.formatLabel))return ct=>{const Be=rt.get(ct.value);return e.formatLabel(Be)}});const $=fe(),L=fe({}),B=fe(),{computedPopupVisible:F,handlePopupVisibleChange:W}=O5({popupVisible:p,defaultPopupVisible:v,emit:n}),U=fe(e.defaultValue),G=j(()=>{var ct;const Be=(ct=e.modelValue)!=null?ct:U.value;return(or(Be)?Be:Be||Ze(Be)||cs(Be)||El(Be)?[Be]:[]).map(Re=>({value:Re,key:Dm(Re,e.valueKey)}))});Rt(y,ct=>{(An(ct)||Tl(ct))&&(U.value=h.value?[]:ct)});const X=j(()=>G.value.map(ct=>ct.key)),oe=j(()=>({...tMe,...S?.value})),Z=fe(),H=ct=>{const Be={};return ct.forEach(Ae=>{Be[Ae]=rt.get(Ae)}),Be},q=ct=>{Z.value=H(ct)},ee=ct=>En(e.fallbackOption)?e.fallbackOption(ct):{[oe.value.value]:ct,[oe.value.label]:String(br(ct)?ct[d?.value]:ct)},ne=()=>{const ct=[],Be=[];if(e.allowCreate||e.fallbackOption){for(const Ae of G.value)if(!Be.includes(Ae.key)&&Ae.value!==""){const Re=rt.get(Ae.key);(!Re||Re.origin==="extraOptions")&&(ct.push(Ae),Be.push(Ae.key))}}if(e.allowCreate&&Ne.value){const Ae=Dm(Ne.value);if(!Be.includes(Ae)){const Re=rt.get(Ae);(!Re||Re.origin==="extraOptions")&&ct.push({value:Ne.value,key:Ae})}}return ct},ae=fe([]),re=j(()=>ae.value.map(ct=>{var Be;let Ae=ee(ct.value);const Re=(Be=Z.value)==null?void 0:Be[ct.key];return!An(Re)&&!$Le(Re)&&(Ae={...Ae,...Re}),Ae}));Cn(()=>{Os(()=>{var ct;const Be=ne();if(Be.length!==ae.value.length)ae.value=Be;else if(Be.length>0){for(let Ae=0;Ae{var ct;return(ct=e.inputValue)!=null?ct:ke.value});Rt(F,ct=>{!ct&&!M.value&&Ne.value&&Ue("")});const me=ct=>{var Be,Ae;return e.multiple?ct.map(Re=>{var Xe,dt;return(dt=(Xe=rt.get(Re))==null?void 0:Xe.value)!=null?dt:""}):(Ae=(Be=rt.get(ct[0]))==null?void 0:Be.value)!=null?Ae:uPe(rt)?void 0:""},_e=ct=>{var Be,Ae;const Re=me(ct);U.value=Re,n("update:modelValue",Re),n("change",Re),(Ae=(Be=D.value)==null?void 0:Be.onChange)==null||Ae.call(Be),q(ct)},Ue=ct=>{ke.value=ct,n("update:inputValue",ct),n("inputValueChange",ct)},Qe=(ct,Be)=>{if(e.multiple){if(X.value.includes(ct)){const Ae=X.value.filter(Re=>Re!==ct);_e(Ae)}else if(ut.value.includes(ct))if(e.limit>0&&X.value.length>=e.limit){const Ae=rt.get(ct);n("exceedLimit",Ae?.value,Be)}else{const Ae=X.value.concat(ct);_e(Ae)}M.value||Ue("")}else{if(ct!==X.value[0]&&_e([ct]),M.value){const Ae=rt.get(ct);Ae&&Ue(Ae.label)}W(!1)}},Me=n_(ct=>{n("search",ct)},e.searchDelay),je=ct=>{ct!==Ne.value&&(F.value||W(!0),Ue(ct),e.allowSearch&&Me(ct))},ge=ct=>{const Be=rt.get(ct),Ae=X.value.filter(Re=>Re!==ct);_e(Ae),n("remove",Be?.value)},be=ct=>{ct?.stopPropagation();const Be=X.value.filter(Ae=>{var Re;return(Re=rt.get(Ae))==null?void 0:Re.disabled});_e(Be),Ue(""),n("clear",ct)},Fe=ct=>{n("dropdownScroll",ct)},He=ct=>{n("dropdownReachBottom",ct)},{validOptions:Je,optionInfoMap:rt,validOptionInfos:ht,enabledOptionKeys:ut,handleKeyDown:Ct}=uH({multiple:h,options:l,extraOptions:re,inputValue:Ne,filterOption:c,showExtraOptions:g,component:P,valueKey:d,fieldNames:S,loading:k,popupVisible:F,valueKeys:X,dropdownRef:$,optionRefs:L,virtualListRef:B,defaultActiveFirstOption:C,onSelect:Qe,onPopupVisibleChange:W}),St=j(()=>{var ct;const Be=[];for(const Ae of G.value){const Re=rt.get(Ae.key);Re&&Be.push({...Re,value:Ae.key,label:(ct=Re?.label)!=null?ct:String(br(Ae.value)?Ae.value[d?.value]:Ae.value),closable:!Re?.disabled,tagProps:Re?.tagProps})}return Be}),Gt=ct=>{if(En(t.option)){const Be=t.option;return()=>Be({data:ct.raw})}return En(ct.render)?ct.render:()=>ct.label},Tt=ct=>{if(ope(ct)){let Be;return O(nb,{key:ct.key,label:ct.label},eMe(Be=ct.options.map(Ae=>Tt(Ae)))?Be:{default:()=>[Be]})}return P5(ct,{inputValue:Ne.value,filterOption:c?.value})?O(dm,{ref:Be=>{Be?.$el&&(L.value[ct.key]=Be.$el)},key:ct.key,value:ct.value,label:ct.label,disabled:ct.disabled,internal:!0},{default:Gt(ct)}):null},Mt=()=>O(lH,{ref:$,loading:e.loading,empty:ht.value.length===0,virtualList:!!e.virtualListProps,scrollbar:e.scrollbar,showHeaderOnEmpty:e.showHeaderOnEmpty,showFooterOnEmpty:e.showFooterOnEmpty,onScroll:Fe,onReachBottom:He},{default:()=>{var ct,Be;return[...(Be=(ct=t.default)==null?void 0:ct.call(t))!=null?Be:[],...Je.value.map(Tt)]},"virtual-list":()=>O(a3,Vt(e.virtualListProps,{ref:B,data:Je.value}),{item:({item:ct})=>Tt(ct)}),empty:t.empty,header:t.header,footer:t.footer}),sn=({data:ct})=>{var Be,Ae,Re,Xe;if((t.label||En(e.formatLabel))&&ct){const dt=rt.get(ct.value);if(dt?.raw)return(Re=(Be=t.label)==null?void 0:Be.call(t,{data:dt.raw}))!=null?Re:(Ae=e.formatLabel)==null?void 0:Ae.call(e,dt.raw)}return(Xe=ct?.label)!=null?Xe:""};return()=>O(ha,Vt({trigger:"click",position:"bl",popupOffset:4,animationName:"slide-dynamic-origin",hideEmpty:!0,preventFocus:!0,autoFitPopupWidth:!0,autoFitTransformOrigin:!0,disabled:_.value,popupVisible:F.value,unmountOnClose:e.unmountOnClose,clickToClose:!(e.allowSearch||e.allowCreate),popupContainer:e.popupContainer,onPopupVisibleChange:W},e.triggerProps),{default:()=>{var ct,Be;return[(Be=(ct=t.trigger)==null?void 0:ct.call(t))!=null?Be:O(F8,Vt({class:x,modelValue:St.value,inputValue:Ne.value,multiple:e.multiple,disabled:_.value,error:T.value,loading:e.loading,allowClear:e.allowClear,allowCreate:e.allowCreate,allowSearch:!!e.allowSearch,opened:F.value,maxTagCount:e.maxTagCount,placeholder:e.placeholder,bordered:e.bordered,size:E.value,tagNowrap:e.tagNowrap,onInputValueChange:je,onRemove:ge,onClear:be,onKeydown:Ct},r),{label:sn,prefix:t.prefix,"arrow-icon":t["arrow-icon"],"loading-icon":t["loading-icon"],"search-icon":t["search-icon"]})]},content:Mt})}});const r_=Object.assign(JP,{Option:dm,OptGroup:nb,install:(e,t)=>{Xn(e,t);const n=Yn(t);e.component(n+JP.name,JP),e.component(n+dm.name,dm),e.component(n+nb.name,nb)}}),Spe=Symbol("RadioGroup");var vw=Se({name:"Radio",components:{IconHover:Lo},props:{modelValue:{type:[String,Number,Boolean],default:void 0},defaultChecked:{type:Boolean,default:!1},value:{type:[String,Number,Boolean],default:!0},type:{type:String,default:"radio"},disabled:{type:Boolean,default:!1},uninjectGroupContext:{type:Boolean,default:!1}},emits:{"update:modelValue":e=>!0,change:(e,t)=>!0},setup(e,{emit:t,slots:n}){const r=Te("radio"),{modelValue:o}=nn(e),a=e.uninjectGroupContext?void 0:On(Spe,void 0),{mergedDisabled:s,eventHandlers:l}=Do({disabled:Lu(e,"disabled")}),c=fe(null),d=fe(e.defaultChecked),h=j(()=>a?.name==="ArcoRadioGroup"),p=j(()=>{var _;return(_=a?.type)!=null?_:e.type}),v=j(()=>a?.disabled||s.value),g=j(()=>{var _,T;return h.value?a?.value===((_=e.value)!=null?_:!0):An(e.modelValue)?d.value:e.modelValue===((T=e.value)!=null?T:!0)});Rt(o,_=>{(An(_)||Tl(_))&&(d.value=!1)}),Rt(g,(_,T)=>{_!==T&&(d.value=_,c.value&&(c.value.checked=_))});const y=_=>{var T,D;(D=(T=l.value)==null?void 0:T.onFocus)==null||D.call(T,_)},S=_=>{var T,D;(D=(T=l.value)==null?void 0:T.onBlur)==null||D.call(T,_)},k=_=>{_.stopPropagation()},C=_=>{var T,D,P,M,$;d.value=!0,h.value?a?.handleChange((T=e.value)!=null?T:!0,_):(t("update:modelValue",(D=e.value)!=null?D:!0),t("change",(P=e.value)!=null?P:!0,_),($=(M=l.value)==null?void 0:M.onChange)==null||$.call(M,_)),Cn(()=>{c.value&&c.value.checked!==g.value&&(c.value.checked=g.value)})},x=j(()=>[`${p.value==="button"?`${r}-button`:r}`,{[`${r}-checked`]:g.value,[`${r}-disabled`]:v.value}]),E=()=>O(Nt,null,[O(Ie("icon-hover"),{class:`${r}-icon-hover`,disabled:v.value||g.value},{default:()=>[O("span",{class:`${r}-icon`},null)]}),n.default&&O("span",{class:`${r}-label`},[n.default()])]);return()=>{var _,T,D,P;return O("label",{class:x.value},[O("input",{ref:c,type:"radio",checked:g.value,value:e.value,class:`${r}-target`,disabled:v.value,onClick:k,onChange:C,onFocus:y,onBlur:S},null),p.value==="radio"?(P=(D=(T=n.radio)!=null?T:(_=a?.slots)==null?void 0:_.radio)==null?void 0:D({checked:g.value,disabled:v.value}))!=null?P:E():O("span",{class:`${r}-button-content`},[n.default&&n.default()])])}}}),rb=Se({name:"RadioGroup",props:{modelValue:{type:[String,Number,Boolean],default:void 0},defaultValue:{type:[String,Number,Boolean],default:""},type:{type:String,default:"radio"},size:{type:String},options:{type:Array},direction:{type:String,default:"horizontal"},disabled:{type:Boolean,default:!1}},emits:{"update:modelValue":e=>!0,change:(e,t)=>!0},setup(e,{emit:t,slots:n}){const r=Te("radio-group"),{size:o,type:a,disabled:s,modelValue:l}=nn(e),{mergedDisabled:c,mergedSize:d,eventHandlers:h}=Do({size:o,disabled:s}),{mergedSize:p}=wa(d),v=fe(e.defaultValue),g=j(()=>{var x;return(x=e.modelValue)!=null?x:v.value}),y=j(()=>{var x;return((x=e.options)!=null?x:[]).map(E=>cs(E)||Ze(E)?{label:E,value:E}:E)});ri(Spe,Xt({name:"ArcoRadioGroup",value:g,size:p,type:a,disabled:c,slots:n,handleChange:(x,E)=>{var _,T;v.value=x,t("update:modelValue",x),t("change",x,E),(T=(_=h.value)==null?void 0:_.onChange)==null||T.call(_,E)}})),Rt(g,x=>{v.value!==x&&(v.value=x)}),Rt(l,x=>{(An(x)||Tl(x))&&(v.value="")});const k=j(()=>[`${r}${e.type==="button"?"-button":""}`,`${r}-size-${p.value}`,`${r}-direction-${e.direction}`,{[`${r}-disabled`]:c.value}]),C=()=>y.value.map(x=>O(vw,{key:x.value,value:x.value,disabled:x.disabled,modelValue:g.value===x.value},{default:()=>[n.label?n.label({data:x}):En(x.label)?x.label():x.label]}));return()=>{var x;return O("span",{class:k.value},[y.value.length>0?C():(x=n.default)==null?void 0:x.call(n)])}}});const Pm=Object.assign(vw,{Group:rb,install:(e,t)=>{Xn(e,t);const n=Yn(t);e.component(n+vw.name,vw),e.component(n+rb.name,rb)}}),nMe=Se({name:"IconLeft",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-left`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),rMe=["stroke-width","stroke-linecap","stroke-linejoin"];function iMe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M32 8.4 16.444 23.956 32 39.513"},null,-1)]),14,rMe)}var QP=Ve(nMe,[["render",iMe]]);const Al=Object.assign(QP,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+QP.name,QP)}});function oMe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wi(e)}function are(e){return e.parentElement}var sMe=Se({name:"Header",props:{mode:{type:String},dayStartOfWeek:{type:Number},isWeek:{type:Boolean},panel:{type:Boolean},modes:{type:Array},headerType:{type:String},pageShowData:{type:Object,required:!0},move:{type:Function,required:!0},onYearChange:{type:Function,required:!0},onMonthChange:{type:Function,required:!0},changePageShowDate:{type:Function,required:!0},onModeChange:{type:Function,required:!0},headerValueFormat:{type:String,required:!0}},emits:["yearChange","monthChange"],setup(e,{slots:t}){const n=Te("calendar"),{t:r}=No(),o=or(e.modes)?e.modes.map(h=>({label:r(`datePicker.view.${h}`),value:h})):[],a=e.headerType==="select",s=j(()=>e.pageShowData.year()),l=j(()=>e.pageShowData.month()+1),c=j(()=>{const h=[s.value];for(let p=1;p<=10;p++)h.unshift(s.value-p);for(let p=1;p<10;p++)h.push(s.value+p);return h}),d=[1,2,3,4,5,6,7,8,9,10,11,12];return()=>{let h;return O("div",{class:`${n}-header`},[O("div",{class:`${n}-header-left`},[a?O(Nt,null,[O(r_,{size:"small",class:`${n}-header-value-year`,value:s,options:c.value,onChange:e.onYearChange,getPopupContainer:are},null),e.mode==="month"&&O(r_,{size:"small",class:`${n}-header-value-month`,value:l,options:d,onChange:e.onMonthChange,getPopupContainer:are},null)]):O(Nt,null,[O("div",{class:`${n}-header-icon`,role:"button",tabIndex:0,onClick:()=>e.changePageShowDate("prev",e.mode)},[O(Al,null,null)]),O("div",{class:`${n}-header-value`},[t.default?t.default({year:s,month:l}):e.pageShowData.format(e.headerValueFormat)]),O("div",{role:"button",tabIndex:0,class:`${n}-header-icon`,onClick:()=>e.changePageShowDate("next",e.mode)},[O(Hi,null,null)])]),O(Xo,{size:"small",onClick:()=>e.move(Ka())},oMe(h=r("datePicker.today"))?h:{default:()=>[h]})]),O("div",{class:`${n}-header-right`},[O(Pm.Group,{size:"small",type:"button",options:o,onChange:e.onModeChange,modelValue:e.mode},null)])])}}});function aMe(e,t){return e==="month"||e==="year"&&!t?"YYYY-MM-DD":"YYYY-MM"}var eR=Se({name:"Calendar",props:{modelValue:{type:Date,default:void 0},defaultValue:{type:Date},mode:{type:String},defaultMode:{type:String,default:"month"},modes:{type:Array,default:()=>["month","year"]},allowSelect:{type:Boolean,default:!0},panel:{type:Boolean,default:!1},panelWidth:{type:Number},panelTodayBtn:{type:Boolean,default:!1},dayStartOfWeek:{type:Number,default:0},isWeek:{type:Boolean,default:!1}},emits:{"update:modelValue":e=>!0,change:e=>!0,panelChange:e=>!0},setup(e,{emit:t,slots:n}){const{dayStartOfWeek:r,isWeek:o}=nn(e),a=Te("calendar"),s=fe(e.defaultMode),{t:l}=No(),c=j(()=>e.mode?e.mode:s.value),d=aMe(c.value,e.panel),h=fe(dc(e.defaultValue||Date.now(),d)),p=j(()=>e.modelValue?dc(e.modelValue,d):h.value),v=fe(p.value||Ka()),g=j(()=>vpe(v.value,{dayStartOfWeek:r.value,isWeek:o.value}));function y(M){v.value=M,t("panelChange",M.toDate())}function S(M){h.value=M,t("change",M.toDate()),t("update:modelValue",M.toDate()),y(M)}function k(M,$=!1){$||S(M)}let C="";c.value==="month"?C=l("calendar.formatMonth"):c.value==="year"&&(C=l("calendar.formatYear"));function x(M,$){M==="prev"&&(v.value=Ys.subtract(v.value,1,$)),M==="next"&&(v.value=Ys.add(v.value,1,$)),t("panelChange",v.value.toDate())}function E(M){const $=Ys.set(v.value,"year",M);v.value=$,t("panelChange",$.toDate())}function _(M){const $=Ys.set(v.value,"month",M-1);v.value=$,t("panelChange",$.toDate())}function T(M){s.value=M}const D=j(()=>[a,c.value==="month"?`${a}-mode-month`:`${a}-mode-year`,{[`${a}-panel`]:e.panel&&(c.value==="month"||c.value==="year")}]),P=e.panel?{width:e.panelWidth}:{};return()=>O("div",Vt({class:D.value,style:P},zRe(e)),[O(sMe,{move:S,headerValueFormat:C,modes:e.modes,mode:c.value,pageShowData:v.value,dayStartOfWeek:e.dayStartOfWeek,isWeek:e.isWeek,onModeChange:T,onYearChange:E,onMonthChange:_,changePageShowDate:x},{default:n.header}),c.value==="month"&&O("div",{class:`${a}-body`},[O(mpe,{key:v.value.month(),pageData:g.value,value:p.value,mode:c.value,selectHandler:k,isWeek:e.isWeek,dayStartOfWeek:e.dayStartOfWeek,pageShowDate:v.value},{default:n.default})]),c.value==="year"&&O("div",{class:`${a}-body`},[O(WRe,{key:v.value.year(),pageData:g.value,pageShowData:v.value,mode:c.value,isWeek:e.isWeek,value:p.value,dayStartOfWeek:e.dayStartOfWeek,selectHandler:k},null)]),e.panel&&e.panelTodayBtn&&O("div",{class:`${a}-footer-btn-wrapper`},[l("today")])])}});const kpe=Object.assign(eR,{install:(e,t)=>{Xn(e,t);const n=Yn(t);e.component(n+eR.name,eR)}}),vH=Symbol("ArcoCard");var tR=Se({name:"Card",components:{Spin:Pd},props:{bordered:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},hoverable:{type:Boolean,default:!1},size:{type:String},headerStyle:{type:Object,default:()=>({})},bodyStyle:{type:Object,default:()=>({})},title:{type:String},extra:{type:String}},setup(e,{slots:t}){const n=Te("card"),{size:r}=nn(e),{mergedSize:o}=wa(r),a=j(()=>o.value==="small"||o.value==="mini"?"small":"medium"),s=d=>{const h=yf(d);return O("div",{class:`${n}-actions`},[O("div",{class:`${n}-actions-right`},[h.map((p,v)=>O("span",{key:`action-${v}`,class:`${n}-actions-item`},[p]))])])},l=Xt({hasMeta:!1,hasGrid:!1,slots:t,renderActions:s});ri(vH,l);const c=j(()=>[n,`${n}-size-${a.value}`,{[`${n}-loading`]:e.loading,[`${n}-bordered`]:e.bordered,[`${n}-hoverable`]:e.hoverable,[`${n}-contain-grid`]:l.hasGrid}]);return()=>{var d,h,p,v,g,y,S;const k=!!((d=t.title)!=null?d:e.title),C=!!((h=t.extra)!=null?h:e.extra);return O("div",{class:c.value},[(k||C)&&O("div",{class:[`${n}-header`,{[`${n}-header-no-title`]:!k}],style:e.headerStyle},[k&&O("div",{class:`${n}-header-title`},[(v=(p=t.title)==null?void 0:p.call(t))!=null?v:e.title]),C&&O("div",{class:`${n}-header-extra`},[(y=(g=t.extra)==null?void 0:g.call(t))!=null?y:e.extra])]),t.cover&&O("div",{class:`${n}-cover`},[t.cover()]),O("div",{class:`${n}-body`,style:e.bodyStyle},[e.loading?O(Pd,null,null):(S=t.default)==null?void 0:S.call(t),t.actions&&!l.hasMeta&&s(t.actions())])])}}}),mw=Se({name:"CardMeta",props:{title:{type:String},description:{type:String}},setup(e,{slots:t}){const n=Te("card-meta"),r=On(vH);return bn(()=>{r&&(r.hasMeta=!0)}),()=>{var o,a,s,l,c,d;const h=!!((o=t.title)!=null?o:e.title),p=!!((a=t.description)!=null?a:e.description);return O("div",{class:n},[(h||p)&&O("div",{class:`${n}-content`},[h&&O("div",{class:`${n}-title`},[(l=(s=t.title)==null?void 0:s.call(t))!=null?l:e.title]),p&&O("div",{class:`${n}-description`},[(d=(c=t.description)==null?void 0:c.call(t))!=null?d:e.description])]),(t.avatar||r?.slots.actions)&&O("div",{class:[`${n}-footer `,{[`${n}-footer-only-actions`]:!t.avatar}]},[t.avatar&&O("div",{class:`${n}-avatar`},[t.avatar()]),r&&r.slots.actions&&r.renderActions(r.slots.actions())])])}}});const lMe=Se({name:"CardGrid",props:{hoverable:{type:Boolean,default:!1}},setup(e){const t=Te("card-grid"),n=On(vH);return bn(()=>{n&&(n.hasGrid=!0)}),{cls:j(()=>[t,{[`${t}-hoverable`]:e.hoverable}])}}});function uMe(e,t,n,r,o,a){return z(),Q("div",{class:ue(e.cls)},[vt(e.$slots,"default")],2)}var gw=Ve(lMe,[["render",uMe]]);const cMe=Object.assign(tR,{Meta:mw,Grid:gw,install:(e,t)=>{Xn(e,t);const n=Yn(t);e.component(n+tR.name,tR),e.component(n+mw.name,mw),e.component(n+gw.name,gw)}}),dMe=Se({name:"Indicator",props:{count:{type:Number,default:2},activeIndex:{type:Number,default:0},type:{type:String,default:"line"},position:{type:String,default:"bottom"},trigger:{type:String,default:"click"}},emits:["select"],setup(e,{emit:t}){const n=Te("carousel-indicator"),r=l=>{var c;if(l.preventDefault(),e.type==="slider"){const d=l.offsetX,h=l.currentTarget.clientWidth;if(l.target===l.currentTarget){const p=Math.floor(d/h*e.count);p!==e.activeIndex&&t("select",p)}}else{const d=Number.parseInt((c=l.target.getAttribute("data-index"))!=null?c:"",10);!Number.isNaN(d)&&d!==e.activeIndex&&t("select",d)}},o=j(()=>e.trigger==="click"?{onClick:r}:{onMouseover:r}),a=j(()=>[`${n}`,`${n}-${e.type}`,`${n}-${e.position}`]),s=j(()=>{const l=100/e.count;return{width:`${l}%`,left:`${e.activeIndex*l}%`}});return{prefixCls:n,eventHandlers:o,cls:a,sliderStyle:s}}}),fMe=["data-index"];function hMe(e,t,n,r,o,a){return z(),Q("div",Vt({class:e.cls},e.eventHandlers),[e.type==="slider"?(z(),Q("span",{key:0,style:Ke(e.sliderStyle),class:ue([`${e.prefixCls}-item`,`${e.prefixCls}-item-active`])},null,6)):(z(!0),Q(Nt,{key:1},gn(Array(e.count),(s,l)=>(z(),Q("span",{key:l,"data-index":l,class:ue([`${e.prefixCls}-item`,{[`${e.prefixCls}-item-active`]:l===e.activeIndex}])},null,10,fMe))),128))],16)}var pMe=Ve(dMe,[["render",hMe]]);const vMe=Se({name:"IconUp",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-up`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),mMe=["stroke-width","stroke-linecap","stroke-linejoin"];function gMe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M39.6 30.557 24.043 15 8.487 30.557"},null,-1)]),14,mMe)}var nR=Ve(vMe,[["render",gMe]]);const Z_=Object.assign(nR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+nR.name,nR)}}),yMe=Se({name:"Arrow",components:{IconUp:Z_,IconDown:Zh,IconLeft:Al,IconRight:Hi},props:{direction:{type:String,default:"horizontal"},showArrow:{type:String,default:"always"}},emits:["previousClick","nextClick"],setup(e,{emit:t}){const n=Te("carousel"),r=s=>{t("previousClick",s)},o=s=>{t("nextClick",s)},a=j(()=>[`${n}-arrow`,{[`${n}-arrow-hover`]:e.showArrow==="hover"}]);return{prefixCls:n,cls:a,onPreviousClick:r,onNextClick:o}}});function bMe(e,t,n,r,o,a){const s=Ie("IconLeft"),l=Ie("IconUp"),c=Ie("IconRight"),d=Ie("IconDown");return z(),Q("div",{class:ue(e.cls)},[I("div",{class:ue(`${e.prefixCls}-arrow-${e.direction==="vertical"?"top":"left"}`),onClick:t[0]||(t[0]=(...h)=>e.onPreviousClick&&e.onPreviousClick(...h))},[e.direction==="horizontal"?(z(),Ye(s,{key:0})):(z(),Ye(l,{key:1}))],2),I("div",{class:ue(`${e.prefixCls}-arrow-${e.direction==="vertical"?"bottom":"right"}`),onClick:t[1]||(t[1]=(...h)=>e.onNextClick&&e.onNextClick(...h))},[e.direction==="horizontal"?(z(),Ye(c,{key:0})):(z(),Ye(d,{key:1}))],2)],2)}var _Me=Ve(yMe,[["render",bMe]]);const xpe=Symbol("ArcoCarousel"),J_=e=>{const t={},n=fe([]),r=()=>{if(t.value){const o=Hhe(t.value,e);(o.length!==n.value.length||o.toString()!==n.value.toString())&&(n.value=o)}};return bn(()=>r()),Qa(()=>r()),{children:t,components:n}},lre={interval:3e3,hoverToPause:!0};function rR(e,t){const n=+e;return typeof n=="number"&&!Number.isNaN(n)?(n+t)%t:e}var iR=Se({name:"Carousel",props:{current:{type:Number},defaultCurrent:{type:Number,default:1},autoPlay:{type:[Boolean,Object],default:!1},moveSpeed:{type:Number,default:500},animationName:{type:String,default:"slide"},trigger:{type:String,default:"click"},direction:{type:String,default:"horizontal"},showArrow:{type:String,default:"always"},arrowClass:{type:String,default:""},indicatorType:{type:String,default:"dot"},indicatorPosition:{type:String,default:"bottom"},indicatorClass:{type:String,default:""},transitionTimingFunction:{type:String,default:"cubic-bezier(0.34, 0.69, 0.1, 1)"}},emits:{"update:current":e=>!0,change:(e,t,n)=>!0},setup(e,{emit:t,slots:n}){const{current:r,animationName:o,moveSpeed:a,transitionTimingFunction:s}=nn(e),l=Te("carousel"),c=fe(!1),d=fe(),h=fe(),p=j(()=>br(e.autoPlay)?{...lre,...e.autoPlay}:e.autoPlay?lre:{});let v=0,g=0;const{children:y,components:S}=J_("CarouselItem"),k=fe(e.defaultCurrent-1),C=j(()=>{const U=S.value.length,G=Ze(r.value)?rR(r.value-1,U):k.value,X=rR(G-1,U),oe=rR(G+1,U);return{mergedIndex:G,mergedPrevIndex:X,mergedNextIndex:oe}}),x=Xt({items:S,slideTo:_,mergedIndexes:C,previousIndex:d,animationName:o,slideDirection:h,transitionTimingFunction:s,moveSpeed:a});ri(xpe,x);const E=()=>{v&&window.clearInterval(v)};Os(()=>{var U;const{interval:G}=p.value||{},{mergedNextIndex:X}=C.value,oe=((U=S.value)==null?void 0:U.length)>1&&!c.value&&!!G;E(),oe&&(v=window.setInterval(()=>{_({targetIndex:X})},G))}),Io(()=>{E()});function _({targetIndex:U,isNegative:G=!1,isManual:X=!1}){!g&&U!==C.value.mergedIndex&&(d.value=k.value,k.value=U,h.value=G?"negative":"positive",g=window.setTimeout(()=>{g=0},a.value),t("update:current",k.value+1),t("change",k.value+1,d.value+1,X))}const T=()=>_({targetIndex:C.value.mergedPrevIndex,isNegative:!0,isManual:!0}),D=()=>_({targetIndex:C.value.mergedNextIndex,isManual:!0}),P=U=>_({targetIndex:U,isNegative:Up.value.hoverToPause?{onMouseenter:()=>{c.value=!0},onMouseleave:()=>{c.value=!1}}:{}),$=j(()=>e.indicatorType!=="never"&&S.value.length>1),L=j(()=>e.showArrow!=="never"&&S.value.length>1),B=j(()=>[l,`${l}-indicator-position-${e.indicatorPosition}`]),F=j(()=>[`${l}-${e.animationName}`,`${l}-${e.direction}`,{[`${l}-negative`]:h.value==="negative"}]),W=j(()=>[`${l}-indicator-wrapper`,`${l}-indicator-wrapper-${e.indicatorPosition}`]);return()=>{var U;return y.value=(U=n.default)==null?void 0:U.call(n),O("div",Vt({class:B.value},M.value),[O("div",{class:F.value},[y.value]),$.value&&O("div",{class:W.value},[O(pMe,{class:e.indicatorClass,type:e.indicatorType,count:S.value.length,activeIndex:C.value.mergedIndex,position:e.indicatorPosition,trigger:e.trigger,onSelect:P},null)]),L.value&&O(_Me,{class:e.arrowClass,direction:e.direction,showArrow:e.showArrow,onPreviousClick:T,onNextClick:D},null)])}}});const SMe=Se({name:"CarouselItem",setup(){const e=Te("carousel-item"),t=_o(),n=On(xpe,{}),r=j(()=>{var l,c,d;return(d=(c=n.items)==null?void 0:c.indexOf((l=t?.uid)!=null?l:-1))!=null?d:-1}),o=j(()=>{var l;return((l=n.mergedIndexes)==null?void 0:l.mergedIndex)===r.value}),a=j(()=>{const{previousIndex:l,animationName:c,slideDirection:d,mergedIndexes:h}=n;return{[`${e}-prev`]:r.value===h?.mergedPrevIndex,[`${e}-next`]:r.value===h?.mergedNextIndex,[`${e}-current`]:o.value,[`${e}-slide-in`]:c==="slide"&&d&&o.value,[`${e}-slide-out`]:c==="slide"&&d&&r.value===l}}),s=j(()=>{const{transitionTimingFunction:l,moveSpeed:c}=n;return{transitionTimingFunction:l,transitionDuration:`${c}ms`,animationTimingFunction:l,animationDuration:`${c}ms`}});return{cls:a,animationStyle:s,isCurrent:o}}}),kMe=["aria-hidden"];function xMe(e,t,n,r,o,a){return z(),Q("div",{"aria-hidden":!e.isCurrent,class:ue(e.cls),style:Ke(e.animationStyle)},[vt(e.$slots,"default")],14,kMe)}var yw=Ve(SMe,[["render",xMe]]);const CMe=Object.assign(iR,{Item:yw,install:(e,t)=>{Xn(e,t);const n=Yn(t);e.component(n+iR.name,iR),e.component(n+yw.name,yw)}}),Cpe=(e,{optionMap:t,leafOptionMap:n,leafOptionSet:r,leafOptionValueMap:o,totalLevel:a,checkStrictly:s,enabledLazyLoad:l,lazyLoadOptions:c,valueKey:d,fieldNames:h})=>{let p=0;const v=(y,S,k)=>{var C;const x=(C=S?.path)!=null?C:[];return p=Math.max(p,k??1),y.map((E,_)=>{var T;const D=E[h.value],P={raw:E,value:D,label:(T=E[h.label])!=null?T:String(D),disabled:!!E[h.disabled],selectionDisabled:!1,render:E[h.render],tagProps:E[h.tagProps],isLeaf:E[h.isLeaf],level:x.length,index:_,key:"",valueKey:String(br(D)?D[d.value]:D),parent:S,path:[],pathValue:[]},M=x.concat(P),$=[],L=M.map(B=>($.push(B.value),B.valueKey)).join("-");return P.path=M,P.pathValue=$,P.key=L,E[h.children]?(P.isLeaf=!1,P.children=v(E[h.children],P,(k??1)+1)):l&&!P.isLeaf?(P.isLeaf=!1,c[L]&&(P.children=v(c[L],P,(k??1)+1))):P.isLeaf=!0,P.children&&!P.disabled&&(P.totalLeafOptions=P.children.reduce((B,F)=>Ze(F.totalLeafOptions)?B+F.totalLeafOptions:F.disabled||F.selectionDisabled?B:B+(F.isLeaf?1:0),0),P.totalLeafOptions===0&&!s.value&&(P.selectionDisabled=!0)),t.set(P.key,P),(P.isLeaf||s.value)&&(r.add(P),n.set(P.key,P),o.has(P.valueKey)||o.set(P.valueKey,P.key)),P})},g=v(e);return a.value=p,g},mH=(e,t)=>{var n,r;let o=!1,a=!1;if(e.isLeaf)t?.has(e.key)&&(o=!0);else{const s=new RegExp(`^${e.key}(-|$)`),l=Array.from((n=t?.keys())!=null?n:[]).reduce((c,d)=>s.test(d)?c+1:c,0);l>0&&l>=((r=e.totalLeafOptions)!=null?r:1)?o=!0:l>0&&(a=!0)}return{checked:o,indeterminate:a}},gH=e=>{const t=[];if(e.isLeaf)t.push(e.key);else if(e.children)for(const n of e.children)t.push(...gH(n));return t},yH=e=>{const t=[];if(e.disabled||e.selectionDisabled)return t;if(e.isLeaf)t.push(e);else if(e.children)for(const n of e.children)t.push(...yH(n));return t},wpe=(e,{valueKey:t,leafOptionValueMap:n})=>{var r;if(or(e))return e.map(a=>br(a)?a[t]:a).join("-");const o=br(e)?e[t]:e;return(r=n.get(String(o)))!=null?r:String(o)},Epe=(e,{multiple:t,pathMode:n})=>or(e)?n&&!t&&e.length>0&&!or(e[0])?[e]:e:An(e)||Tl(e)||e===""?[]:[e],Tpe=e=>e.path.map(t=>t.label).join(" / "),bH=Symbol("ArcoCascader");var Xj=Se({name:"CascaderOption",props:{option:{type:Object,required:!0},active:Boolean,multiple:Boolean,checkStrictly:Boolean,searchOption:Boolean,pathLabel:Boolean},setup(e){const t=Te("cascader-option"),n=On(bH,{}),r=fe(!1),o={},a=h=>{var p;if(En(n.loadMore)&&!e.option.isLeaf){const{isLeaf:v,children:g,key:y}=e.option;!v&&!g&&(r.value=!0,new Promise(S=>{var k;(k=n.loadMore)==null||k.call(n,e.option.raw,S)}).then(S=>{var k;r.value=!1,S&&((k=n.addLazyLoadOptions)==null||k.call(n,S,y))}))}(p=n.setSelectedPath)==null||p.call(n,e.option.key)};e.option.disabled||(o.onMouseenter=[()=>{var h;return(h=n.setActiveKey)==null?void 0:h.call(n,e.option.key)}],o.onMouseleave=()=>{var h;return(h=n.setActiveKey)==null?void 0:h.call(n)},o.onClick=[],n.expandTrigger==="hover"?o.onMouseenter.push(h=>a()):o.onClick.push(h=>a()),e.option.isLeaf&&!e.multiple&&o.onClick.push(h=>{var p;a(),(p=n.onClickOption)==null||p.call(n,e.option)}));const s=j(()=>[t,{[`${t}-active`]:e.active,[`${t}-disabled`]:e.option.disabled}]),l=j(()=>{var h;return e.checkStrictly?{checked:(h=n.valueMap)==null?void 0:h.has(e.option.key),indeterminate:!1}:mH(e.option,n.valueMap)}),c=()=>{var h,p,v;return e.pathLabel?(p=(h=n?.formatLabel)==null?void 0:h.call(n,e.option.path.map(g=>g.raw)))!=null?p:Tpe(e.option):(v=n.slots)!=null&&v.option?n.slots.option({data:e.option}):En(e.option.render)?e.option.render():e.option.label},d=()=>r.value?O(Xa,null,null):!e.searchOption&&!e.option.isLeaf?O(Hi,null,null):null;return()=>{var h;return O("li",Vt({tabindex:"0",role:"menuitem","aria-disabled":e.option.disabled,"aria-haspopup":!e.option.isLeaf,"aria-expanded":!e.option.isLeaf&&e.active,title:e.option.label,class:s.value},o),[e.multiple&&O(Uc,{modelValue:l.value.checked,indeterminate:l.value.indeterminate,disabled:e.option.disabled||e.option.selectionDisabled,uninjectGroupContext:!0,onChange:(p,v)=>{var g;v.stopPropagation(),a(),(g=n.onClickOption)==null||g.call(n,e.option,!l.value.checked)},onClick:p=>p.stopPropagation()},null),e.checkStrictly&&!e.multiple&&O(Pm,{modelValue:(h=n.valueMap)==null?void 0:h.has(e.option.key),disabled:e.option.disabled,uninjectGroupContext:!0,onChange:(p,v)=>{var g;v.stopPropagation(),a(),(g=n.onClickOption)==null||g.call(n,e.option,!0)},onClick:p=>p.stopPropagation()},null),O("div",{class:`${t}-label`},[c(),d()])])}}}),wMe=Se({name:"CascaderColumn",props:{column:{type:Array,required:!0},level:{type:Number,default:0},selectedPath:{type:Array,required:!0},activeKey:String,totalLevel:{type:Number,required:!0},multiple:Boolean,checkStrictly:Boolean,virtualListProps:{type:Object}},setup(e,{slots:t}){const n=Te("cascader"),r=On(Ya,void 0),o=fe(),a=fe(!!e.virtualListProps),s=()=>{var l,c,d,h,p;return(p=(h=(l=t.empty)==null?void 0:l.call(t))!=null?h:(d=r==null?void 0:(c=r.slots).empty)==null?void 0:d.call(c,{component:"cascader"}))!=null?p:O(Xh,null,null)};return()=>{var l;return O("div",{class:`${n}-panel-column`,style:{zIndex:e.totalLevel-e.level}},[e.column.length===0?O(Rd,{class:`${n}-column-content`},{default:()=>[O("div",{class:`${n}-list-empty`},[s()])]}):a.value?O(a3,Vt({key:(l=e.column)==null?void 0:l.length},e.virtualListProps,{ref:o,data:e.column}),{item:({item:c})=>O(Xj,{key:c.key,option:c,active:e.selectedPath.includes(c.key)||c.key===e.activeKey,multiple:e.multiple,checkStrictly:e.checkStrictly},null)}):O(Rd,{class:`${n}-column-content`},{default:()=>[O("ul",{role:"menu",class:[`${n}-list`,{[`${n}-list-multiple`]:!!e?.multiple,[`${n}-list-strictly`]:!!e?.checkStrictly}]},[e.column.map(c=>O(Xj,{key:c.key,option:c,active:e.selectedPath.includes(c.key)||c.key===e.activeKey,multiple:e.multiple,checkStrictly:e.checkStrictly},null))])]})])}}});function EMe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wi(e)}var Ape=Se({name:"BaseCascaderPanel",props:{displayColumns:{type:Array,required:!0},selectedPath:{type:Array,required:!0},activeKey:String,totalLevel:{type:Number,required:!0},multiple:Boolean,checkStrictly:Boolean,loading:Boolean,dropdown:Boolean,virtualListProps:{type:Object}},setup(e,{slots:t}){const n=Te("cascader"),r=On(Ya,void 0),o=()=>{var s,l,c,d,h;return(h=(d=(s=t.empty)==null?void 0:s.call(t))!=null?d:(c=r==null?void 0:(l=r.slots).empty)==null?void 0:c.call(l,{component:"cascader"}))!=null?h:O(Xh,null,null)},a=()=>e.loading?O("div",{key:"panel-column-loading",class:[`${n}-panel-column`,`${n}-panel-column-loading`]},[O(Pd,null,null)]):e.displayColumns.length===0?O("div",{key:"panel-column-empty",class:`${n}-panel-column`},[O("div",{class:`${n}-list-empty`},[o()])]):e.displayColumns.map((s,l)=>O(wMe,{key:`column-${l}`,column:s,level:l,selectedPath:e.selectedPath,activeKey:e.activeKey,totalLevel:e.totalLevel,multiple:e.multiple,checkStrictly:e.checkStrictly,virtualListProps:e.virtualListProps},{empty:t.empty}));return()=>{let s;return O(r3,{tag:"div",name:"cascader-slide",class:[`${n}-panel`,{[`${n}-dropdown-panel`]:e.dropdown}]},EMe(s=a())?s:{default:()=>[s]})}}});function TMe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wi(e)}var AMe=Se({name:"CascaderSearchPanel",props:{options:{type:Array,required:!0},loading:Boolean,activeKey:String,multiple:Boolean,checkStrictly:Boolean,pathLabel:Boolean},setup(e,{slots:t}){const n=Te("cascader"),r=On(Ya,void 0),o=()=>{var a,s,l,c,d;return e.loading?O(Pd,null,null):e.options.length===0?O("div",{class:`${n}-list-empty`},[(d=(c=(a=t.empty)==null?void 0:a.call(t))!=null?c:(l=r==null?void 0:(s=r.slots).empty)==null?void 0:l.call(s,{component:"cascader"}))!=null?d:O(Xh,null,null)]):O("ul",{role:"menu",class:[`${n}-list`,`${n}-search-list`,{[`${n}-list-multiple`]:e.multiple}]},[e.options.map(h=>O(Xj,{key:h.key,class:`${n}-search-option`,option:h,active:h.key===e.activeKey,multiple:e.multiple,checkStrictly:e.checkStrictly,pathLabel:e.pathLabel,searchOption:!0},null))])};return()=>{let a;return O(Rd,{class:[`${n}-panel`,`${n}-search-panel`]},TMe(a=o())?a:{default:()=>[a]})}}});const Ipe=(e,{optionMap:t,filteredLeafOptions:n,showSearchPanel:r,expandChild:o})=>{const a=fe(),s=j(()=>{if(a.value)return t.get(a.value)}),l=fe([]),c=j(()=>{const y=[e.value];for(const S of l.value){const k=t.get(S);k?.children&&y.push(k.children)}return y}),d=y=>{var S;const k=v(y);l.value=(S=k?.path.map(C=>C.key))!=null?S:[]},h=y=>{a.value=y},p=j(()=>{var y;return r?.value?n.value.filter(S=>!S.disabled):s.value&&s.value.parent?(y=s.value.parent.children)==null?void 0:y.filter(S=>!S.disabled):e.value.filter(S=>!S.disabled)}),v=y=>{let S=y?t.get(y):void 0;if(o.value)for(;S&&S.children&&S.children.length>0;)S=S.children[0];return S};return{activeKey:a,activeOption:s,selectedPath:l,displayColumns:c,setActiveKey:h,setSelectedPath:d,getNextActiveNode:y=>{var S,k,C,x,E,_,T;const D=(k=(S=p.value)==null?void 0:S.length)!=null?k:0;if(a.value){const P=(x=(C=p.value)==null?void 0:C.findIndex(M=>M.key===a.value))!=null?x:0;return y==="next"?(E=p.value)==null?void 0:E[(D+P+1)%D]:(_=p.value)==null?void 0:_[(D+P-1)%D]}return(T=p.value)==null?void 0:T[0]}}},IMe=Se({name:"Cascader",components:{Trigger:ha,SelectView:F8,BaseCascaderPanel:Ape,CascaderSearchPanel:AMe},inheritAttrs:!1,props:{pathMode:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},modelValue:{type:[String,Number,Object,Array]},defaultValue:{type:[String,Number,Object,Array],default:e=>e.multiple?[]:e.pathMode?void 0:""},options:{type:Array,default:()=>[]},disabled:{type:Boolean,default:!1},error:{type:Boolean,default:!1},size:{type:String},allowSearch:{type:Boolean,default:e=>!!e.multiple},allowClear:{type:Boolean,default:!1},inputValue:{type:String,default:void 0},defaultInputValue:{type:String,default:""},popupVisible:{type:Boolean,default:void 0},expandTrigger:{type:String,default:"click"},defaultPopupVisible:{type:Boolean,default:!1},placeholder:String,filterOption:{type:Function},popupContainer:{type:[String,Object]},maxTagCount:{type:Number,default:0},formatLabel:{type:Function},triggerProps:{type:Object},checkStrictly:{type:Boolean,default:!1},loadMore:{type:Function},loading:{type:Boolean,default:!1},searchOptionOnlyLabel:{type:Boolean,default:!1},searchDelay:{type:Number,default:500},fieldNames:{type:Object},valueKey:{type:String,default:"value"},fallback:{type:[Boolean,Function],default:!0},expandChild:{type:Boolean,default:!1},virtualListProps:{type:Object},tagNowrap:{type:Boolean,default:!1}},emits:{"update:modelValue":e=>!0,"update:popupVisible":e=>!0,change:e=>!0,inputValueChange:e=>!0,clear:()=>!0,search:e=>!0,popupVisibleChange:e=>!0,focus:e=>!0,blur:e=>!0},setup(e,{emit:t,slots:n}){const{options:r,checkStrictly:o,loadMore:a,formatLabel:s,modelValue:l,disabled:c,valueKey:d,expandTrigger:h,expandChild:p,pathMode:v,multiple:g}=nn(e),y=fe(e.defaultValue),S=fe(e.defaultInputValue),k=fe(e.defaultPopupVisible),{mergedDisabled:C,eventHandlers:x}=Do({disabled:c});Rt(l,ht=>{(An(ht)||Tl(ht))&&(y.value=e.multiple?[]:void 0)});const E=fe([]),_=fe(1),T=Xt(new Map),D=Xt(new Map),P=Xt(new Map),M=Xt(new Set),$=Xt({}),L=(ht,ut)=>{$[ut]=ht},B={value:"value",label:"label",disabled:"disabled",children:"children",tagProps:"tagProps",render:"render",isLeaf:"isLeaf"},F=j(()=>({...B,...e.fieldNames}));Rt([r,$,F],([ht,ut,Ct])=>{T.clear(),D.clear(),P.clear(),M.clear(),E.value=Cpe(ht??[],{enabledLazyLoad:!!e.loadMore,lazyLoadOptions:$,optionMap:T,leafOptionSet:M,leafOptionMap:D,leafOptionValueMap:P,totalLevel:_,checkStrictly:o,valueKey:d,fieldNames:Ct})},{immediate:!0,deep:!0});const W=j(()=>{var ht;const ut=Epe((ht=e.modelValue)!=null?ht:y.value,{multiple:e.multiple,pathMode:e.pathMode});return new Map(ut.map(Ct=>[wpe(Ct,{valueKey:e.valueKey,leafOptionValueMap:P}),Ct]))}),U=j(()=>{var ht;return(ht=e.inputValue)!=null?ht:S.value}),G=j(()=>{var ht;return(ht=e.popupVisible)!=null?ht:k.value}),X=ht=>{var ut;return ht?.toLocaleLowerCase().includes((ut=U.value)==null?void 0:ut.toLocaleLowerCase())},oe=j(()=>(e.checkStrictly?Array.from(T.values()):Array.from(M)).filter(ut=>{var Ct;return En(e.filterOption)?e.filterOption(U.value,ut.raw):e.checkStrictly?X(ut.label):(Ct=ut.path)==null?void 0:Ct.find(St=>X(St.label))})),Z=ht=>{var ut,Ct,St;const Gt=e.multiple?ht:(ut=ht[0])!=null?ut:"";ht.length===0&&(Fe(),be()),y.value=Gt,t("update:modelValue",Gt),t("change",Gt),(St=(Ct=x.value)==null?void 0:Ct.onChange)==null||St.call(Ct)};Rt([g,v],()=>{const ht=[];W.value.forEach((ut,Ct)=>{const St=D.get(Ct);St&&ht.push(v.value?St.pathValue:St.value)}),Z(ht)});const H=ht=>{G.value!==ht&&(k.value=ht,t("popupVisibleChange",ht))},q=ht=>{if(e.multiple){const ut=D.get(ht);if(ut)ne(ut,!1);else{const Ct=[];W.value.forEach((St,Gt)=>{Gt!==ht&&Ct.push(St)}),Z(Ct)}}},ee=ht=>{Z([e.pathMode?ht.pathValue:ht.value]),H(!1)},ne=(ht,ut)=>{if(ut){const Ct=e.checkStrictly?[ht]:yH(ht);Z([...W.value.values(),...Ct.filter(St=>!W.value.has(St.key)).map(St=>e.pathMode?St.pathValue:St.value)])}else{const Ct=e.checkStrictly?[ht.key]:gH(ht),St=[];W.value.forEach((Gt,Tt)=>{Ct.includes(Tt)||St.push(Gt)}),Z(St)}ke("","optionChecked")},ae=(ht,ut)=>{e.multiple?ne(ht,ut??!0):ee(ht)},re=n_(ht=>{t("search",ht)},e.searchDelay),ke=(ht,ut)=>{ht!==U.value&&(ut==="manual"&&!G.value&&(k.value=!0,t("popupVisibleChange",!0)),S.value=ht,t("inputValueChange",ht),e.allowSearch&&re(ht))};Rt(G,ht=>{if(ht){if(W.value.size>0){const ut=Array.from(W.value.keys()),Ct=ut[ut.length-1],St=D.get(Ct);St&&St.key!==Qe.value&&(Fe(St.key),be(St.key))}}else W.value.size===0&&(Fe(),be()),ke("","optionListHide")});const Ne=ht=>{if(ht.stopPropagation(),e.multiple){const ut=[];W.value.forEach((Ct,St)=>{const Gt=D.get(St);Gt?.disabled&&ut.push(e.pathMode?Gt.pathValue:Gt.value)}),Z(ut)}else Z([]);ke("","manual"),t("clear")},me=j(()=>e.allowSearch&&U.value.length>0),_e=ht=>{t("focus",ht)},Ue=ht=>{t("blur",ht)},{activeKey:Qe,activeOption:Me,selectedPath:je,displayColumns:ge,setActiveKey:be,setSelectedPath:Fe,getNextActiveNode:He}=Ipe(E,{optionMap:T,filteredLeafOptions:oe,showSearchPanel:me,expandChild:p});ri(bH,Xt({onClickOption:ae,setActiveKey:be,setSelectedPath:Fe,loadMore:a,expandTrigger:h,addLazyLoadOptions:L,formatLabel:s,slots:n,valueMap:W}));const Je=R5(new Map([[Ho.ENTER,ht=>{if(G.value){if(Me.value){let ut;e.checkStrictly||Me.value.isLeaf?ut=!W.value.has(Me.value.key):ut=!mH(Me.value,W.value).checked,Fe(Me.value.key),ae(Me.value,ut)}}else H(!0)}],[Ho.ESC,ht=>{H(!1)}],[Ho.ARROW_DOWN,ht=>{ht.preventDefault();const ut=He("next");be(ut?.key)}],[Ho.ARROW_UP,ht=>{ht.preventDefault();const ut=He("preview");be(ut?.key)}],[Ho.ARROW_RIGHT,ht=>{var ut,Ct;me.value||(ht.preventDefault(),(ut=Me.value)!=null&&ut.children&&(Fe(Me.value.key),be((Ct=Me.value.children[0])==null?void 0:Ct.key)))}],[Ho.ARROW_LEFT,ht=>{var ut;me.value||(ht.preventDefault(),(ut=Me.value)!=null&&ut.parent&&(Fe(Me.value.parent.key),be(Me.value.parent.key)))}]])),rt=j(()=>{const ht=[];return W.value.forEach((ut,Ct)=>{var St,Gt;const Tt=D.get(Ct);if(Tt)ht.push({value:Ct,label:(Gt=(St=e.formatLabel)==null?void 0:St.call(e,Tt.path.map(Mt=>Mt.raw)))!=null?Gt:Tpe(Tt),closable:!Tt.disabled,tagProps:Tt.tagProps});else if(e.fallback){const Mt=En(e.fallback)?e.fallback(ut):or(ut)?ut.join(" / "):String(ut);ht.push({value:Ct,label:Mt,closable:!0})}}),ht});return{optionInfos:E,filteredLeafOptions:oe,selectedPath:je,activeKey:Qe,displayColumns:ge,computedInputValue:U,computedPopupVisible:G,handleClear:Ne,selectViewValue:rt,handleInputValueChange:ke,showSearchPanel:me,handlePopupVisibleChange:H,handleFocus:_e,handleBlur:Ue,handleRemove:q,mergedDisabled:C,handleKeyDown:Je,totalLevel:_}}});function LMe(e,t,n,r,o,a){const s=Ie("select-view"),l=Ie("cascader-search-panel"),c=Ie("base-cascader-panel"),d=Ie("trigger");return z(),Ye(d,Vt(e.triggerProps,{trigger:"click","animation-name":"slide-dynamic-origin","auto-fit-transform-origin":"","popup-visible":e.computedPopupVisible,position:"bl",disabled:e.mergedDisabled,"popup-offset":4,"auto-fit-popup-width":e.showSearchPanel,"popup-container":e.popupContainer,"prevent-focus":!0,"click-to-close":!e.allowSearch,onPopupVisibleChange:e.handlePopupVisibleChange}),{content:de(()=>[e.showSearchPanel?(z(),Ye(l,{key:0,options:e.filteredLeafOptions,"active-key":e.activeKey,multiple:e.multiple,"check-strictly":e.checkStrictly,loading:e.loading,"path-label":!e.searchOptionOnlyLabel},yo({_:2},[e.$slots.empty?{name:"empty",fn:de(()=>[vt(e.$slots,"empty")]),key:"0"}:void 0]),1032,["options","active-key","multiple","check-strictly","loading","path-label"])):(z(),Ye(c,{key:1,"display-columns":e.displayColumns,"selected-path":e.selectedPath,"active-key":e.activeKey,multiple:e.multiple,"total-level":e.totalLevel,"check-strictly":e.checkStrictly,loading:e.loading,"virtual-list-props":e.virtualListProps,dropdown:""},yo({_:2},[e.$slots.empty?{name:"empty",fn:de(()=>[vt(e.$slots,"empty")]),key:"0"}:void 0]),1032,["display-columns","selected-path","active-key","multiple","total-level","check-strictly","loading","virtual-list-props"]))]),default:de(()=>[O(s,Vt({"model-value":e.selectViewValue,"input-value":e.computedInputValue,disabled:e.mergedDisabled,error:e.error,multiple:e.multiple,"allow-clear":e.allowClear,"allow-search":e.allowSearch,size:e.size,opened:e.computedPopupVisible,placeholder:e.placeholder,loading:e.loading,"max-tag-count":e.maxTagCount,"tag-nowrap":e.tagNowrap},e.$attrs,{onInputValueChange:e.handleInputValueChange,onClear:e.handleClear,onFocus:e.handleFocus,onBlur:e.handleBlur,onRemove:e.handleRemove,onKeydown:e.handleKeyDown}),yo({_:2},[e.$slots.label?{name:"label",fn:de(h=>[vt(e.$slots,"label",Yi(Sa(h)))]),key:"0"}:void 0,e.$slots.prefix?{name:"prefix",fn:de(()=>[vt(e.$slots,"prefix")]),key:"1"}:void 0,e.$slots["arrow-icon"]?{name:"arrow-icon",fn:de(()=>[vt(e.$slots,"arrow-icon")]),key:"2"}:void 0,e.$slots["loading-icon"]?{name:"loading-icon",fn:de(()=>[vt(e.$slots,"loading-icon")]),key:"3"}:void 0,e.$slots["search-icon"]?{name:"search-icon",fn:de(()=>[vt(e.$slots,"search-icon")]),key:"4"}:void 0]),1040,["model-value","input-value","disabled","error","multiple","allow-clear","allow-search","size","opened","placeholder","loading","max-tag-count","tag-nowrap","onInputValueChange","onClear","onFocus","onBlur","onRemove","onKeydown"])]),_:3},16,["popup-visible","disabled","auto-fit-popup-width","popup-container","click-to-close","onPopupVisibleChange"])}var oR=Ve(IMe,[["render",LMe]]);const DMe=Se({name:"CascaderPanel",components:{BaseCascaderPanel:Ape},props:{pathMode:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},modelValue:{type:[String,Number,Array]},defaultValue:{type:[String,Number,Array],default:e=>e.multiple?[]:e.pathMode?void 0:""},options:{type:Array,default:()=>[]},expandTrigger:{type:String,default:"click"},checkStrictly:{type:Boolean,default:!1},loadMore:{type:Function},fieldNames:{type:Object},valueKey:{type:String,default:"value"},expandChild:{type:Boolean,default:!1}},emits:{"update:modelValue":e=>!0,change:e=>!0},setup(e,{emit:t,slots:n}){const{options:r,checkStrictly:o,loadMore:a,modelValue:s,valueKey:l,expandChild:c,expandTrigger:d}=nn(e),h=fe(e.defaultValue);Rt(s,H=>{(An(H)||Tl(H))&&(h.value=e.multiple?[]:void 0)});const p=fe([]),v=fe(1),g=Xt(new Map),y=Xt(new Map),S=Xt(new Map),k=Xt(new Set),C=Xt({}),x=(H,q)=>{C[q]=H},E={value:"value",label:"label",disabled:"disabled",children:"children",tagProps:"tagProps",render:"render",isLeaf:"isLeaf"},_=j(()=>({...E,...e.fieldNames}));Rt([r,C,_],([H,q,ee])=>{g.clear(),y.clear(),S.clear(),k.clear(),p.value=Cpe(H??[],{enabledLazyLoad:!!e.loadMore,lazyLoadOptions:q,optionMap:g,leafOptionSet:k,leafOptionMap:y,leafOptionValueMap:S,totalLevel:v,checkStrictly:o,fieldNames:ee,valueKey:l})},{immediate:!0});const T=j(()=>{var H;const q=Epe((H=e.modelValue)!=null?H:h.value,{multiple:e.multiple,pathMode:e.pathMode});return new Map(q.map(ee=>[wpe(ee,{valueKey:e.valueKey,leafOptionValueMap:S}),ee]))}),D=j(()=>e.checkStrictly?Array.from(g.values()):Array.from(k)),P=H=>{var q;const ee=e.multiple?H:(q=H[0])!=null?q:"";H.length===0&&(X(),G()),h.value=ee,t("update:modelValue",ee),t("change",ee)},M=H=>{P([e.pathMode?H.pathValue:H.value])},$=(H,q)=>{if(q){const ee=e.checkStrictly?[H]:yH(H);P([...T.value.values(),...ee.filter(ne=>!T.value.has(ne.key)).map(ne=>e.pathMode?ne.pathValue:ne.value)])}else{const ee=e.checkStrictly?[H.key]:gH(H),ne=[];T.value.forEach((ae,re)=>{ee.includes(re)||ne.push(ae)}),P(ne)}},L=(H,q)=>{e.multiple?$(H,q??!0):M(H)},{activeKey:B,activeOption:F,selectedPath:W,displayColumns:U,setActiveKey:G,setSelectedPath:X,getNextActiveNode:oe}=Ipe(p,{optionMap:g,filteredLeafOptions:D,expandChild:c});ri(bH,Xt({onClickOption:L,setActiveKey:G,setSelectedPath:X,loadMore:a,addLazyLoadOptions:x,slots:n,valueMap:T,expandTrigger:d}));const Z=R5(new Map([[Ho.ENTER,H=>{if(F.value){let q;e.checkStrictly||F.value.isLeaf?q=!T.value.has(F.value.key):q=!mH(F.value,T.value).checked,X(F.value.key),L(F.value,q)}}],[Ho.ARROW_DOWN,H=>{H.preventDefault();const q=oe("next");G(q?.key)}],[Ho.ARROW_UP,H=>{H.preventDefault();const q=oe("preview");G(q?.key)}],[Ho.ARROW_RIGHT,H=>{var q,ee;H.preventDefault(),(q=F.value)!=null&&q.children&&(X(F.value.key),G((ee=F.value.children[0])==null?void 0:ee.key))}],[Ho.ARROW_LEFT,H=>{var q;H.preventDefault(),(q=F.value)!=null&&q.parent&&(X(F.value.parent.key),G(F.value.parent.key))}]]));return{optionInfos:p,filteredLeafOptions:D,selectedPath:W,activeKey:B,displayColumns:U,handleKeyDown:Z,totalLevel:v}}});function PMe(e,t,n,r,o,a){const s=Ie("base-cascader-panel");return z(),Ye(s,{"display-columns":e.displayColumns,"selected-path":e.selectedPath,"active-key":e.activeKey,multiple:e.multiple,"total-level":e.totalLevel,"check-strictly":e.checkStrictly,onKeydown:e.handleKeyDown},yo({_:2},[e.$slots.empty?{name:"empty",fn:de(()=>[vt(e.$slots,"empty")]),key:"0"}:void 0]),1032,["display-columns","selected-path","active-key","multiple","total-level","check-strictly","onKeydown"])}var bw=Ve(DMe,[["render",PMe]]);const RMe=Object.assign(oR,{CascaderPanel:bw,install:(e,t)=>{Xn(e,t);const n=Yn(t);e.component(n+oR.name,oR),e.component(n+bw.name,bw)}}),Lpe=Symbol("collapseCtx"),MMe=Se({name:"Collapse",props:{activeKey:{type:Array,default:void 0},defaultActiveKey:{type:Array,default:()=>[]},accordion:{type:Boolean,default:!1},showExpandIcon:{type:Boolean,default:void 0},expandIconPosition:{type:String,default:"left"},bordered:{type:Boolean,default:!0},destroyOnHide:{type:Boolean,default:!1}},emits:{"update:activeKey":e=>!0,change:(e,t)=>!0},setup(e,{emit:t,slots:n}){const{expandIconPosition:r,destroyOnHide:o,showExpandIcon:a}=nn(e),s=Te("collapse"),l=fe(e.defaultActiveKey),c=j(()=>{var p;const v=(p=e.activeKey)!=null?p:l.value;return or(v)?v:[v]});ri(Lpe,Xt({activeKeys:c,slots:n,showExpandIcon:a,expandIconPosition:r,destroyOnHide:o,handleClick:(p,v)=>{let g=[];if(e.accordion)c.value.includes(p)||(g=[p]),l.value=g;else{g=[...c.value];const y=g.indexOf(p);y>-1?g.splice(y,1):e.accordion?g=[p]:g.push(p),l.value=g}t("update:activeKey",g),t("change",g,v)}}));const h=j(()=>[s,{[`${s}-borderless`]:!e.bordered}]);return{prefixCls:s,cls:h}}});function OMe(e,t,n,r,o,a){return z(),Q("div",{class:ue(e.cls)},[vt(e.$slots,"default")],2)}var sR=Ve(MMe,[["render",OMe]]);const $Me=Se({name:"IconCaretRight",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-caret-right`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),BMe=["stroke-width","stroke-linecap","stroke-linejoin"];function NMe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M34.829 23.063c.6.48.6 1.394 0 1.874L17.949 38.44c-.785.629-1.949.07-1.949-.937V10.497c0-1.007 1.164-1.566 1.95-.937l16.879 13.503Z",fill:"currentColor",stroke:"none"},null,-1)]),14,BMe)}var aR=Ve($Me,[["render",NMe]]);const _H=Object.assign(aR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+aR.name,aR)}}),FMe=Se({name:"IconCaretLeft",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-caret-left`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),jMe=["stroke-width","stroke-linecap","stroke-linejoin"];function VMe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M13.171 24.937a1.2 1.2 0 0 1 0-1.874L30.051 9.56c.785-.629 1.949-.07 1.949.937v27.006c0 1.006-1.164 1.566-1.95.937L13.171 24.937Z",fill:"currentColor",stroke:"none"},null,-1)]),14,jMe)}var lR=Ve(FMe,[["render",VMe]]);const SH=Object.assign(lR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+lR.name,lR)}});var _w=Se({name:"CollapseItem",components:{IconHover:Lo,IconCaretRight:_H,IconCaretLeft:SH},props:{header:String,disabled:{type:Boolean,default:!1},showExpandIcon:{type:Boolean,default:!0},destroyOnHide:{type:Boolean,default:!1}},setup(e,{slots:t}){var n;const r=_o(),o=Te("collapse-item"),a=On(Lpe,{}),s=r&&Ze(r?.vnode.key)?r.vnode.key:String((n=r?.vnode.key)!=null?n:""),l=j(()=>{var _;return(_=a.activeKeys)==null?void 0:_.includes(s)}),c=j(()=>a.destroyOnHide||e.destroyOnHide),d=j(()=>{var _;return(_=a?.showExpandIcon)!=null?_:e.showExpandIcon}),h=fe(c.value?l.value:!0),p=j(()=>{var _;return(_=a?.expandIconPosition)!=null?_:"left"}),v=_=>{var T;e.disabled||(T=a.handleClick)==null||T.call(a,s,_)};Rt(l,_=>{_&&!h.value&&(h.value=!0)});const g={onEnter:_=>{_.style.height=`${_.scrollHeight}px`},onAfterEnter:_=>{_.style.height="auto"},onBeforeLeave:_=>{_.style.height=`${_.scrollHeight}px`},onLeave:_=>{_.style.height="0"},onAfterLeave:()=>{c.value&&(h.value=!1)}},y=j(()=>[o,{[`${o}-active`]:l.value}]),S=j(()=>[`${o}-header`,`${o}-header-${a?.expandIconPosition}`,{[`${o}-header-disabled`]:e.disabled}]),k=j(()=>[{[`${o}-icon-right`]:a?.expandIconPosition==="right"}]),C=j(()=>[`${o}-content`,{[`${o}-content-expend`]:l.value}]),x=()=>p.value==="right"?O(Ie("icon-caret-left"),{class:`${o}-expand-icon`},null):O(Ie("icon-caret-right"),{class:`${o}-expand-icon`},null),E=()=>d.value&&O(Ie("icon-hover"),{prefix:o,class:k.value,disabled:e.disabled},{default:()=>{var _,T,D,P;return[(P=(D=(T=t["expand-icon"])!=null?T:(_=a?.slots)==null?void 0:_["expand-icon"])==null?void 0:D({active:l.value,disabled:e.disabled,position:p.value}))!=null?P:x()]}});return()=>{var _,T,D;return O("div",{class:y.value},[O("div",{role:"button","aria-disabled":e.disabled,"aria-expanded":l.value,tabindex:"0",class:S.value,onClick:v},[E(),O("div",{class:`${o}-header-title`},[(T=(_=t.header)==null?void 0:_.call(t))!=null?T:e.header]),t.extra&&O("div",{class:`${o}-header-extra`},[(D=t.extra)==null?void 0:D.call(t)])]),O(Cs,Vt({name:"collapse-slider"},g),{default:()=>{var P;return[Ai(O("div",{role:"region",class:C.value},[h.value&&O("div",{ref:"contentBoxRef",class:`${o}-content-box`},[(P=t.default)==null?void 0:P.call(t)])]),[[Qo,l.value]])]}})])}}});const zMe=Object.assign(sR,{Item:_w,install:(e,t)=>{Xn(e,t);const n=Yn(t);e.component(n+sR.name,sR),e.component(n+_w.name,_w)}}),UMe=["#00B42A","#3C7EFF","#FF7D00","#F76965","#F7BA1E","#F5319D","#D91AD9","#9FDB1D","#FADC19","#722ED1","#3491FA","#7BE188","#93BEFF","#FFCF8B","#FBB0A7","#FCE996","#FB9DC7","#F08EE6","#DCF190","#FDFA94","#C396ED","#9FD4FD"],Dpe=(e,t,n)=>{const r=Math.floor(e*6),o=e*6-r,a=n*(1-t),s=n*(1-o*t),l=n*(1-(1-o)*t),c=r%6,d=[n,s,a,a,l,n][c],h=[l,n,n,s,a,a][c],p=[a,a,l,n,n,s][c];return{r:Math.round(d*255),g:Math.round(h*255),b:Math.round(p*255)}},$5=(e,t,n)=>{e/=255,t/=255,n/=255;const r=Math.max(e,t,n),o=Math.min(e,t,n);let a=0;const s=r,l=r-o,c=r===0?0:l/r;if(r===o)a=0;else{switch(r){case e:a=(t-n)/l+(tparseInt(e,16),ure=e=>sa(e)/255,qMe=e=>{let t=Xp.rgb.exec(e);return t?{r:parseInt(t[1],10),g:parseInt(t[2],10),b:parseInt(t[3],10)}:(t=Xp.rgba.exec(e),t?{r:parseInt(t[1],10),g:parseInt(t[2],10),b:parseInt(t[3],10),a:parseFloat(t[4])}:(t=Xp.hex8.exec(e),t?{r:sa(t[1]),g:sa(t[2]),b:sa(t[3]),a:ure(t[4])}:(t=Xp.hex6.exec(e),t?{r:sa(t[1]),g:sa(t[2]),b:sa(t[3])}:(t=Xp.hex4.exec(e),t?{r:sa(t[1]+t[1]),g:sa(t[2]+t[2]),b:sa(t[3]+t[3]),a:ure(t[4]+t[4])}:(t=Xp.hex3.exec(e),t?{r:sa(t[1]+t[1]),g:sa(t[2]+t[2]),b:sa(t[3]+t[3])}:!1)))))},YMe=e=>{var t;const n=qMe(e);return n?{...$5(n.r,n.g,n.b),a:(t=n.a)!=null?t:1}:{h:0,s:1,v:1,a:1}},Ppe=e=>{if(e=e.trim().toLowerCase(),e.length===0)return!1;let t=Xp.hex6.exec(e);return t?{r:sa(t[1]),g:sa(t[2]),b:sa(t[3])}:(t=Xp.hex3.exec(e),t?{r:sa(t[1]+t[1]),g:sa(t[2]+t[2]),b:sa(t[3]+t[3])}:!1)},cre=(e,t,n)=>[Math.round(e).toString(16).padStart(2,"0"),Math.round(t).toString(16).padStart(2,"0"),Math.round(n).toString(16).padStart(2,"0")].join("").toUpperCase(),XMe=(e,t,n,r)=>[Math.round(e).toString(16).padStart(2,"0"),Math.round(t).toString(16).padStart(2,"0"),Math.round(n).toString(16).padStart(2,"0"),Math.round(r*255).toString(16).padStart(2,"0")].join("").toUpperCase(),Rpe=({value:e,onChange:t})=>{const n=fe(!1),r=fe(),o=fe(),a=(h,p)=>h<0?0:h>p?1:h/p,s=h=>{if(!r.value)return;const{clientX:p,clientY:v}=h,g=r.value.getBoundingClientRect(),y=[a(p-g.x,g.width),a(v-g.y,g.height)];(y[0]!==e[0]||y[1]!==e[1])&&t?.(y)},l=()=>{n.value=!1,window.removeEventListener("mousemove",d),window.removeEventListener("mouseup",l),window.removeEventListener("contextmenu",l)},c=h=>{n.value=!0,s(h),window.addEventListener("mousemove",d),window.addEventListener("mouseup",l),window.addEventListener("contextmenu",l)};function d(h){h.preventDefault(),h.buttons>0?s(h):l()}return{active:n,blockRef:r,handlerRef:o,onMouseDown:c}};var dre=Se({name:"ControlBar",props:{x:{type:Number,required:!0},color:{type:Object,required:!0},colorString:String,type:String,onChange:Function},setup(e){const t=Te("color-picker"),n=j(()=>e.color.rgb),{blockRef:r,handlerRef:o,onMouseDown:a}=Rpe({value:[e.x,0],onChange:l=>{var c;return(c=e.onChange)==null?void 0:c.call(e,l[0])}}),s=()=>O("div",{ref:o,class:`${t}-handler`,style:{left:`${e.x*100}%`,color:e.colorString}},null);return()=>e.type==="alpha"?O("div",{class:`${t}-control-bar-bg`},[O("div",{ref:r,class:[`${t}-control-bar`,`${t}-control-bar-alpha`],style:{background:`linear-gradient(to right, rgba(0, 0, 0, 0), rgb(${n.value.r}, ${n.value.g}, ${n.value.b}))`},onMousedown:a},[s()])]):O("div",{ref:r,class:[`${t}-control-bar`,`${t}-control-bar-hue`],onMousedown:a},[s()])}}),ZMe=Se({name:"Palette",props:{color:{type:Object,required:!0},onChange:Function},setup(e){const t=Te("color-picker"),n=j(()=>e.color.hsv),{blockRef:r,handlerRef:o,onMouseDown:a}=Rpe({value:[n.value.s,1-n.value.v],onChange:l=>{var c;return(c=e.onChange)==null?void 0:c.call(e,l[0],1-l[1])}}),s=j(()=>{const l=Dpe(n.value.h,1,1);return`rgb(${l.r}, ${l.g}, ${l.b})`});return()=>O("div",{ref:r,class:`${t}-palette`,style:{backgroundColor:s.value},onMousedown:a},[O("div",{ref:o,class:`${t}-handler`,style:{top:`${(1-n.value.v)*100}%`,left:`${n.value.s*100}%`}},null)])}});function kH(e,t){return t===void 0&&(t=15),+parseFloat(Number(e).toPrecision(t))}function xf(e){var t=e.toString().split(/[eE]/),n=(t[0].split(".")[1]||"").length-+(t[1]||0);return n>0?n:0}function i_(e){if(e.toString().indexOf("e")===-1)return Number(e.toString().replace(".",""));var t=xf(e);return t>0?kH(Number(e)*Math.pow(10,t)):Number(e)}function Zj(e){Ope&&(e>Number.MAX_SAFE_INTEGER||e["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-plus`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),r9e=["stroke-width","stroke-linecap","stroke-linejoin"];function i9e(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M5 24h38M24 5v38"},null,-1)]),14,r9e)}var uR=Ve(n9e,[["render",i9e]]);const Cf=Object.assign(uR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+uR.name,uR)}}),o9e=Se({name:"IconMinus",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-minus`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),s9e=["stroke-width","stroke-linecap","stroke-linejoin"];function a9e(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M5 24h38"},null,-1)]),14,s9e)}var cR=Ve(o9e,[["render",a9e]]);const Rm=Object.assign(cR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+cR.name,cR)}}),l9e=800,u9e=150;Xl.enableBoundaryChecking(!1);var dR=Se({name:"InputNumber",props:{modelValue:Number,defaultValue:Number,mode:{type:String,default:"embed"},precision:Number,step:{type:Number,default:1},disabled:{type:Boolean,default:!1},error:{type:Boolean,default:!1},max:{type:Number,default:1/0},min:{type:Number,default:-1/0},formatter:{type:Function},parser:{type:Function},placeholder:String,hideButton:{type:Boolean,default:!1},size:{type:String},allowClear:{type:Boolean,default:!1},modelEvent:{type:String,default:"change"},readOnly:{type:Boolean,default:!1},inputAttrs:{type:Object}},emits:{"update:modelValue":e=>!0,change:(e,t)=>!0,focus:e=>!0,blur:e=>!0,clear:e=>!0,input:(e,t,n)=>!0,keydown:e=>!0},setup(e,{emit:t,slots:n}){var r;const{size:o,disabled:a}=nn(e),s=Te("input-number"),l=fe(),{mergedSize:c,mergedDisabled:d,eventHandlers:h}=Do({size:o,disabled:a}),{mergedSize:p}=wa(c),v=j(()=>{if(Ze(e.precision)){const ee=`${e.step}`.split(".")[1],ne=ee&&ee.length||0;return Math.max(ne,e.precision)}}),g=ee=>{var ne,ae;if(!Ze(ee))return"";const re=v.value?ee.toFixed(v.value):String(ee);return(ae=(ne=e.formatter)==null?void 0:ne.call(e,re))!=null?ae:re},y=fe(g((r=e.modelValue)!=null?r:e.defaultValue)),S=j(()=>{var ee,ne;if(!y.value)return;const ae=Number((ne=(ee=e.parser)==null?void 0:ee.call(e,y.value))!=null?ne:y.value);return Number.isNaN(ae)?void 0:ae}),k=fe(Ze(S.value)&&S.value<=e.min),C=fe(Ze(S.value)&&S.value>=e.max);let x=0;const E=()=>{x&&(window.clearTimeout(x),x=0)},_=ee=>{if(!An(ee))return Ze(e.min)&&eee.max&&(ee=e.max),Ze(v.value)?Xl.round(ee,v.value):ee},T=ee=>{let ne=!1,ae=!1;Ze(ee)&&(ee<=e.min&&(ne=!0),ee>=e.max&&(ae=!0)),C.value!==ae&&(C.value=ae),k.value!==ne&&(k.value=ne)},D=()=>{const ee=_(S.value),ne=g(ee);(ee!==S.value||y.value!==ne)&&(y.value=ne),t("update:modelValue",ee)};Rt(()=>[e.max,e.min],()=>{D(),T(S.value)});const P=(ee,ne)=>{if(d.value||ee==="plus"&&C.value||ee==="minus"&&k.value)return;let ae;Ze(S.value)?ae=_(Xl[ee](S.value,e.step)):ae=e.min===-1/0?0:e.min,y.value=g(ae),T(ae),t("update:modelValue",ae),t("change",ae,ne)},M=(ee,ne,ae=!1)=>{var re;ee.preventDefault(),!e.readOnly&&((re=l.value)==null||re.focus(),P(ne,ee),ae&&(x=window.setTimeout(()=>ee.target.dispatchEvent(ee),x?u9e:l9e)))},$=(ee,ne)=>{var ae,re,ke,Ne;ee=ee.trim().replace(/。/g,"."),ee=(re=(ae=e.parser)==null?void 0:ae.call(e,ee))!=null?re:ee,(Ze(Number(ee))||/^(\.|-)$/.test(ee))&&(y.value=(Ne=(ke=e.formatter)==null?void 0:ke.call(e,ee))!=null?Ne:ee,T(S.value),t("input",S.value,y.value,ne),e.modelEvent==="input"&&(t("update:modelValue",S.value),t("change",S.value,ne)))},L=ee=>{t("focus",ee)},B=(ee,ne)=>{ne instanceof MouseEvent&&!ee||(D(),t("change",S.value,ne))},F=ee=>{t("blur",ee)},W=ee=>{var ne,ae;y.value="",t("update:modelValue",void 0),t("change",void 0,ee),(ae=(ne=h.value)==null?void 0:ne.onChange)==null||ae.call(ne,ee),t("clear",ee)},U=R5(new Map([[Ho.ARROW_UP,ee=>{ee.preventDefault(),!e.readOnly&&P("plus",ee)}],[Ho.ARROW_DOWN,ee=>{ee.preventDefault(),!e.readOnly&&P("minus",ee)}]])),G=ee=>{t("keydown",ee),ee.defaultPrevented||U(ee)};Rt(()=>e.modelValue,ee=>{ee!==S.value&&(y.value=g(ee),T(ee))});const X=()=>{var ee,ne,ae;return e.readOnly?null:O(Nt,null,[n.suffix&&O("div",{class:`${s}-suffix`},[(ee=n.suffix)==null?void 0:ee.call(n)]),O("div",{class:`${s}-step`},[O("button",{class:[`${s}-step-button`,{[`${s}-step-button-disabled`]:d.value||C.value}],type:"button",tabindex:"-1",disabled:d.value||C.value,onMousedown:re=>M(re,"plus",!0),onMouseup:E,onMouseleave:E},[n.plus?(ne=n.plus)==null?void 0:ne.call(n):O(Z_,null,null)]),O("button",{class:[`${s}-step-button`,{[`${s}-step-button-disabled`]:d.value||k.value}],type:"button",tabindex:"-1",disabled:d.value||k.value,onMousedown:re=>M(re,"minus",!0),onMouseup:E,onMouseleave:E},[n.minus?(ae=n.minus)==null?void 0:ae.call(n):O(Zh,null,null)])])])},oe=j(()=>[s,`${s}-mode-${e.mode}`,`${s}-size-${p.value}`,{[`${s}-readonly`]:e.readOnly}]),Z=()=>O(Xo,{size:p.value,tabindex:"-1",class:`${s}-step-button`,disabled:d.value||k.value,onMousedown:ee=>M(ee,"minus",!0),onMouseup:E,onMouseleave:E},{icon:()=>O(Rm,null,null)}),H=()=>O(Xo,{size:p.value,tabindex:"-1",class:`${s}-step-button`,disabled:d.value||C.value,onMousedown:ee=>M(ee,"plus",!0),onMouseup:E,onMouseleave:E},{icon:()=>O(Cf,null,null)});return{inputRef:l,render:()=>{const ee=e.mode==="embed"?{prepend:n.prepend,prefix:n.prefix,suffix:e.hideButton?n.suffix:X,append:n.append}:{prepend:e.hideButton?n.prepend:Z,prefix:n.prefix,suffix:n.suffix,append:e.hideButton?n.append:H};return O(N0,{key:`__arco__${e.mode}`,ref:l,class:oe.value,type:"text",allowClear:e.allowClear,size:p.value,modelValue:y.value,placeholder:e.placeholder,disabled:d.value,readonly:e.readOnly,error:e.error,inputAttrs:{role:"spinbutton","aria-valuemax":e.max,"aria-valuemin":e.min,"aria-valuenow":y.value,...e.inputAttrs},onInput:$,onFocus:L,onBlur:F,onClear:W,onChange:B,onKeydown:G},ee)}}},methods:{focus(){var e;(e=this.inputRef)==null||e.focus()},blur(){var e;(e=this.inputRef)==null||e.blur()}},render(){return this.render()}});const Q_=Object.assign(dR,{install:(e,t)=>{Xn(e,t);const n=Yn(t);e.component(n+dR.name,dR)}});var $pe=Se({name:"InputAlpha",props:{value:{type:Number,required:!0},disabled:Boolean,onChange:Function},setup(e){const t=Te("color-picker");return()=>O(Q_,{class:`${t}-input-alpha`,size:"mini",min:0,max:100,disabled:e.disabled,modelValue:Math.round(e.value*100),onChange:(n=100)=>{var r;return(r=e.onChange)==null?void 0:r.call(e,n/100)}},{suffix:()=>"%"})}}),c9e=Se({name:"InputRgb",props:{color:{type:Object,required:!0},alpha:{type:Number,required:!0},disabled:Boolean,disabledAlpha:Boolean,onHsvChange:Function,onAlphaChange:Function},setup(e){const t=Te("color-picker"),{color:n}=nn(e),r=o=>{var a;const s={...n.value.rgb,...o},l=$5(s.r,s.g,s.b);(a=e.onHsvChange)==null||a.call(e,l)};return()=>O(oy,{class:`${t}-input-group`},{default:()=>[["r","g","b"].map(o=>O(Q_,{key:o,size:"mini",min:0,max:255,disabled:e.disabled,modelValue:n.value.rgb[o],hideButton:!0,onChange:(a=0)=>r({[o]:a})},null)),!e.disabledAlpha&&O($pe,{disabled:e.disabled,value:e.alpha,onChange:e.onAlphaChange},null)]})}}),d9e=Se({name:"InputHex",props:{color:{type:Object,required:!0},alpha:{type:Number,required:!0},disabled:Boolean,disabledAlpha:Boolean,onHsvChange:Function,onAlphaChange:Function},setup(e){const t=Te("color-picker"),{color:n}=nn(e),[r,o]=Ga(n.value.hex),a=c=>{var d;const h=Ppe(c)||{r:255,g:0,b:0},p=$5(h.r,h.g,h.b);(d=e.onHsvChange)==null||d.call(e,p)},s=c=>{var d,h;const p=(h=(d=c.match(/[a-fA-F0-9]*/g))==null?void 0:d.join(""))!=null?h:"";p!==n.value.hex&&a(p.toUpperCase())},l=c=>{if(!c.clipboardData)return;let d=c.clipboardData.getData("Text");d.startsWith("#")&&(d=d.slice(1)),s(d),c.preventDefault()};return Rt(n,()=>{n.value.hex!==r.value&&o(n.value.hex)}),()=>O(oy,{class:`${t}-input-group`},{default:()=>[O(N0,{class:`${t}-input-hex`,size:"mini",maxLength:6,disabled:e.disabled,modelValue:r.value,onInput:o,onChange:s,onBlur:()=>a,onPressEnter:()=>a,onPaste:l},{prefix:()=>"#"}),!e.disabledAlpha&&O($pe,{disabled:e.disabled,value:e.alpha,onChange:e.onAlphaChange},null)]})}}),f9e=Se({name:"Panel",props:{color:{type:Object,required:!0},alpha:{type:Number,required:!0},colorString:String,disabled:Boolean,disabledAlpha:Boolean,showHistory:Boolean,showPreset:Boolean,format:String,historyColors:Array,presetColors:Array,onAlphaChange:Function,onHsvChange:Function},setup(e){const{t}=No(),n=Te("color-picker"),r=j(()=>e.color.hsv),[o,a]=Ga(e.format||"hex"),s=v=>{a(v)};fe(!1);const l=v=>{var g;const y=Ppe(v)||{r:255,g:0,b:0},S=$5(y.r,y.g,y.b);(g=e.onHsvChange)==null||g.call(e,S)},c=()=>{const v={color:e.color,alpha:e.alpha,disabled:e.disabled,disabledAlpha:e.disabledAlpha,onHsvChange:e.onHsvChange,onAlphaChange:e.onAlphaChange};return o.value==="rgb"?O(c9e,v,null):O(d9e,v,null)},d=v=>O("div",{key:v,class:`${n}-color-block`,style:{backgroundColor:v},onClick:()=>l(v)},[O("div",{class:`${n}-block`,style:{backgroundColor:v}},null)]),h=(v,g)=>O("div",{class:`${n}-colors-section`},[O("div",{class:`${n}-colors-text`},[v]),O("div",{class:`${n}-colors-wrapper`},[g?.length?O("div",{class:`${n}-colors-list`},[g.map(d)]):O("span",{class:`${n}-colors-empty`},[t("colorPicker.empty")])])]),p=()=>e.showHistory||e.showPreset?O("div",{class:`${n}-panel-colors`},[e.showHistory&&h(t("colorPicker.history"),e.historyColors),e.showPreset&&h(t("colorPicker.preset"),e.presetColors)]):null;return()=>O("div",{class:{[`${n}-panel`]:!0,[`${n}-panel-disabled`]:e.disabled}},[O(ZMe,{color:e.color,onChange:(v,g)=>{var y;return(y=e.onHsvChange)==null?void 0:y.call(e,{h:r.value.h,s:v,v:g})}},null),O("div",{class:`${n}-panel-control`},[O("div",{class:`${n}-control-wrapper`},[O("div",null,[O(dre,{type:"hue",x:r.value.h,color:e.color,colorString:e.colorString,onChange:v=>{var g;return(g=e.onHsvChange)==null?void 0:g.call(e,{h:v,s:r.value.s,v:r.value.v})}},null),!e.disabledAlpha&&O(dre,{type:"alpha",x:e.alpha,color:e.color,colorString:e.colorString,onChange:e.onAlphaChange},null)]),O("div",{class:`${n}-preview`,style:{backgroundColor:e.colorString}},null)]),O("div",{class:`${n}-input-wrapper`},[O(r_,{class:`${n}-select`,size:"mini","trigger-props":{class:`${n}-select-popup`},options:[{value:"hex",label:"Hex"},{value:"rgb",label:"RGB"}],modelValue:o.value,onChange:s},null),O("div",{class:`${n}-group-wrapper`},[c()])])]),p()])}}),fR=Se({name:"ColorPicker",props:{modelValue:String,defaultValue:{type:String},format:{type:String},size:{type:String,default:"medium"},showText:{type:Boolean,default:!1},showHistory:{type:Boolean,default:!1},showPreset:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},disabledAlpha:{type:Boolean,default:!1},hideTrigger:{type:Boolean},triggerProps:{type:Object},historyColors:{type:Array},presetColors:{type:Array,default:()=>UMe}},emits:{"update:modelValue":e=>!0,change:e=>!0,"popup-visible-change":(e,t)=>!0},setup(e,{emit:t,slots:n}){const r=Te("color-picker"),o=j(()=>{var x;return(x=e.modelValue)!=null?x:e.defaultValue}),a=j(()=>YMe(o.value||"")),[s,l]=Ga(a.value.a),[c,d]=Ga({h:a.value.h,s:a.value.s,v:a.value.v});Rt(()=>a.value,x=>{o.value!==v.value&&(l(x.a),d({h:x.h,s:x.s,v:x.v}))});const h=j(()=>{const x=Dpe(c.value.h,c.value.s,c.value.v),E=cre(x.r,x.g,x.b);return{hsv:c.value,rgb:x,hex:E}}),p=j(()=>{const{r:x,g:E,b:_}=h.value.rgb;return`rgba(${x}, ${E}, ${_}, ${s.value.toFixed(2)})`}),v=j(()=>{const{r:x,g:E,b:_}=h.value.rgb;return e.format==="rgb"?s.value<1&&!e.disabledAlpha?`rgba(${x}, ${E}, ${_}, ${s.value.toFixed(2)})`:`rgb(${x}, ${E}, ${_})`:s.value<1&&!e.disabledAlpha?`#${XMe(x,E,_,s.value)}`:`#${cre(x,E,_)}`});Rt(v,x=>{t("update:modelValue",x),t("change",x)});const g=x=>{!e.disabled&&d(x)},y=x=>{!e.disabled&&l(x)},S=x=>{t("popup-visible-change",x,v.value)},k=()=>O("div",{class:{[r]:!0,[`${r}-size-${e.size}`]:e.size,[`${r}-disabled`]:e.disabled}},[O("div",{class:`${r}-preview`,style:{backgroundColor:v.value}},null),e.showText&&O("div",{class:`${r}-value`},[v.value]),O("input",{class:`${r}-input`,value:v.value,disabled:e.disabled},null)]),C=()=>O(f9e,{color:h.value,alpha:s.value,colorString:p.value,historyColors:e.historyColors,presetColors:e.presetColors,showHistory:e.showHistory,showPreset:e.showPreset,disabled:e.disabled,disabledAlpha:e.disabledAlpha,format:e.format,onHsvChange:g,onAlphaChange:y},null);return()=>e.hideTrigger?C():O(ha,Vt({trigger:"click",position:"bl",animationName:"slide-dynamic-origin",popupOffset:4,disabled:e.disabled,onPopupVisibleChange:S},e.triggerProps),{default:()=>[n.default?n.default():k()],content:C})}});const h9e=Object.assign(fR,{install:(e,t)=>{Xn(e,t);const n=Yn(t);e.component(n+fR.name,fR)}});function Bpe(e,t,n){return j(()=>!!(e[n]||t[n]))}const p9e=Se({name:"Comment",props:{author:{type:String},avatar:{type:String},content:{type:String},datetime:{type:String},align:{type:[String,Object],default:"left"}},setup(e,{slots:t}){const n=Te("comment"),[r,o,a,s]=["author","avatar","content","datetime"].map(c=>Bpe(e,t,c)),l=j(()=>{const{align:c}=e;return{...cs(c)?{datetime:c,actions:c}:c}});return{prefixCls:n,hasAuthor:r,hasAvatar:o,hasContent:a,hasDatetime:s,computedAlign:l}}}),v9e=["src"],m9e={key:0},g9e={key:0},y9e={key:0};function b9e(e,t,n,r,o,a){return z(),Q("div",{class:ue(e.prefixCls)},[e.hasAvatar?(z(),Q("div",{key:0,class:ue(`${e.prefixCls}-avatar`)},[e.avatar?(z(),Q("img",{key:0,src:e.avatar,alt:"comment-avatar"},null,8,v9e)):vt(e.$slots,"avatar",{key:1})],2)):Le("v-if",!0),I("div",{class:ue(`${e.prefixCls}-inner`)},[I("div",{class:ue(`${e.prefixCls}-inner-content`)},[e.hasAuthor||e.hasDatetime?(z(),Q("div",{key:0,class:ue(`${e.prefixCls}-title ${e.prefixCls}-title-align-${e.computedAlign.datetime}`)},[e.hasAuthor?(z(),Q("span",{key:0,class:ue(`${e.prefixCls}-author`)},[e.author?(z(),Q("span",m9e,ze(e.author),1)):vt(e.$slots,"author",{key:1})],2)):Le("v-if",!0),e.hasDatetime?(z(),Q("span",{key:1,class:ue(`${e.prefixCls}-datetime`)},[e.datetime?(z(),Q("span",g9e,ze(e.datetime),1)):vt(e.$slots,"datetime",{key:1})],2)):Le("v-if",!0)],2)):Le("v-if",!0),e.hasContent?(z(),Q("div",{key:1,class:ue(`${e.prefixCls}-content`)},[e.content?(z(),Q("span",y9e,ze(e.content),1)):vt(e.$slots,"content",{key:1})],2)):Le("v-if",!0),e.$slots.actions?(z(),Q("div",{key:2,class:ue(`${e.prefixCls}-actions ${e.prefixCls}-actions-align-${e.computedAlign.actions}`)},[vt(e.$slots,"actions")],2)):Le("v-if",!0)],2),e.$slots.default?(z(),Q("div",{key:0,class:ue(`${e.prefixCls}-inner-comment`)},[vt(e.$slots,"default")],2)):Le("v-if",!0)],2)],2)}var hR=Ve(p9e,[["render",b9e]]);const _9e=Object.assign(hR,{install:(e,t)=>{Xn(e,t);const n=Yn(t);e.component(n+hR.name,hR)}}),S9e=Se({name:"ConfigProvider",props:{prefixCls:{type:String,default:"arco"},locale:{type:Object},size:{type:String},global:{type:Boolean,default:!1},updateAtScroll:{type:Boolean,default:!1},scrollToClose:{type:Boolean,default:!1},exchangeTime:{type:Boolean,default:!0}},setup(e,{slots:t}){const{prefixCls:n,locale:r,size:o,updateAtScroll:a,scrollToClose:s,exchangeTime:l}=nn(e),c=Xt({slots:t,prefixCls:n,locale:r,size:o,updateAtScroll:a,scrollToClose:s,exchangeTime:l});if(e.global){const d=_o();d&&d.appContext.app.provide(Ya,c)}else ri(Ya,c)}});function k9e(e,t,n,r,o,a){return vt(e.$slots,"default")}var pR=Ve(S9e,[["render",k9e]]);const x9e=Object.assign(pR,{install:(e,t)=>{Xn(e,t);const n=Yn(t);e.component(n+pR.name,pR)}});function C9e(e){const{modelValue:t,defaultValue:n,format:r}=nn(e),o=j(()=>dc(t.value,r.value)),a=j(()=>dc(n.value,r.value)),[s,l]=Ga(An(o.value)?An(a.value)?void 0:a.value:o.value);return Rt(o,()=>{An(o.value)&&l(void 0)}),{value:j(()=>o.value||s.value),setValue:l}}const w9e=Se({name:"DateInput",components:{IconHover:Lo,IconClose:ds,FeedbackIcon:Y_},props:{size:{type:String},focused:{type:Boolean},disabled:{type:Boolean},readonly:{type:Boolean},error:{type:Boolean},allowClear:{type:Boolean},placeholder:{type:String},inputValue:{type:String},value:{type:Object},format:{type:[String,Function],required:!0}},emits:["clear","press-enter","change","blur"],setup(e,{emit:t,slots:n}){const{error:r,focused:o,disabled:a,size:s,value:l,format:c,inputValue:d}=nn(e),{mergedSize:h,mergedDisabled:p,mergedError:v,feedback:g}=Do({size:s,disabled:a,error:r}),{mergedSize:y}=wa(h),S=Te("picker"),k=j(()=>[S,`${S}-size-${y.value}`,{[`${S}-focused`]:o.value,[`${S}-disabled`]:p.value,[`${S}-error`]:v.value,[`${S}-has-prefix`]:n.prefix}]),C=j(()=>{if(d?.value)return d?.value;if(l?.value&&zc(l.value))return En(c.value)?c.value(l.value):l.value.format(c.value)}),x=fe();return{feedback:g,prefixCls:S,classNames:k,displayValue:C,mergedDisabled:p,refInput:x,onPressEnter(){t("press-enter")},onChange(E){t("change",E)},onClear(E){t("clear",E)},onBlur(E){t("blur",E)}}},methods:{focus(){this.refInput&&this.refInput.focus&&this.refInput.focus()},blur(){this.refInput&&this.refInput.blur&&this.refInput.blur()}}}),E9e=["disabled","placeholder","value"];function T9e(e,t,n,r,o,a){const s=Ie("IconClose"),l=Ie("IconHover"),c=Ie("FeedbackIcon");return z(),Q("div",{class:ue(e.classNames)},[e.$slots.prefix?(z(),Q("div",{key:0,class:ue(`${e.prefixCls}-prefix`)},[vt(e.$slots,"prefix")],2)):Le("v-if",!0),I("div",{class:ue(`${e.prefixCls}-input`)},[I("input",Vt({ref:"refInput",disabled:e.mergedDisabled,placeholder:e.placeholder,class:`${e.prefixCls}-start-time`,value:e.displayValue},e.readonly?{readonly:!0}:{},{onKeydown:t[0]||(t[0]=Ch((...d)=>e.onPressEnter&&e.onPressEnter(...d),["enter"])),onInput:t[1]||(t[1]=(...d)=>e.onChange&&e.onChange(...d)),onBlur:t[2]||(t[2]=(...d)=>e.onBlur&&e.onBlur(...d))}),null,16,E9e)],2),I("div",{class:ue(`${e.prefixCls}-suffix`)},[e.allowClear&&!e.mergedDisabled&&e.displayValue?(z(),Ye(l,{key:0,prefix:e.prefixCls,class:ue(`${e.prefixCls}-clear-icon`),onClick:e.onClear},{default:de(()=>[O(s)]),_:1},8,["prefix","class","onClick"])):Le("v-if",!0),I("span",{class:ue(`${e.prefixCls}-suffix-icon`)},[vt(e.$slots,"suffix-icon")],2),e.feedback?(z(),Ye(c,{key:1,type:e.feedback},null,8,["type"])):Le("v-if",!0)],2)],2)}var Npe=Ve(w9e,[["render",T9e]]);function Jj(e){const t=["H","h","m","s","a","A"],n=[];let r=!1;return t.forEach(o=>{e.indexOf(o)!==-1&&(n.push(o),(o==="a"||o==="A")&&(r=!0))}),{list:n,use12Hours:r}}const fre=new Map;function A9e(e,t,n){const r=fre.get(e);An(r)||cancelAnimationFrame(r),n<=0&&(e.scrollTop=t),fre.set(e,requestAnimationFrame(()=>{new Jm({from:{scrollTop:e.scrollTop},to:{scrollTop:t},duration:n,onUpdate:a=>{e.scrollTop=a.scrollTop}}).start()}))}function df(e,t){const n=r=>{if(or(r))return r.map(o=>n(o));if(!An(r))return r.format(t)};return n(e)}function T4(e){return An(e)?!0:or(e)?e.length===0||e.length===2&&zc(e[0])&&zc(e[1]):!1}function j8(e,t){return e?typeof e=="string"&&Rs(e,t).format(t)===e:!1}function I9e(e,{disabledHours:t,disabledMinutes:n,disabledSeconds:r}){if(!e)return!1;const o=e.hour(),a=e.minute(),s=e.second(),l=t?.()||[],c=n?.(o)||[],d=r?.(o,a)||[],h=(p,v)=>!An(p)&&v.includes(p);return h(o,l)||h(a,c)||h(s,d)}var Jh=Se({name:"RenderFunction",props:{renderFunc:{type:Function,required:!0}},render(){return this.renderFunc(this.$attrs)}});const Fpe=Symbol("PickerInjectionKey");function eS(){const{datePickerT:e}=On(Fpe)||{};return e||((t,...n)=>t)}const L9e=Se({name:"PanelShortcuts",components:{Button:Xo,RenderFunction:Jh},props:{prefixCls:{type:String,required:!0},shortcuts:{type:Array,default:()=>[]},showNowBtn:{type:Boolean}},emits:["item-click","item-mouse-enter","item-mouse-leave","now-click"],setup(e,{emit:t}){return{datePickerT:eS(),onItemClick:r=>{t("item-click",r)},onItemMouseEnter:r=>{t("item-mouse-enter",r)},onItemMouseLeave:r=>{t("item-mouse-leave",r)},onNowClick:()=>{t("now-click")},isFunction:En}}});function D9e(e,t,n,r,o,a){const s=Ie("Button"),l=Ie("RenderFunction");return z(),Q("div",{class:ue(`${e.prefixCls}-shortcuts`)},[e.showNowBtn?(z(),Ye(s,{key:0,size:"mini",onClick:t[0]||(t[0]=()=>e.onNowClick())},{default:de(()=>[We(ze(e.datePickerT("datePicker.now")),1)]),_:1})):Le("v-if",!0),(z(!0),Q(Nt,null,gn(e.shortcuts,(c,d)=>(z(),Ye(s,{key:d,size:"mini",onClick:()=>e.onItemClick(c),onMouseenter:()=>e.onItemMouseEnter(c),onMouseleave:()=>e.onItemMouseLeave(c)},{default:de(()=>[e.isFunction(c.label)?(z(),Ye(l,{key:0,"render-func":c.label},null,8,["render-func"])):(z(),Q(Nt,{key:1},[We(ze(c.label),1)],64))]),_:2},1032,["onClick","onMouseenter","onMouseleave"]))),128))],2)}var jpe=Ve(L9e,[["render",D9e]]);function Ry(e){return[...Array(e)]}function Qj(e){if(!An(e))return or(e)?e:[e,void 0]}function Vp(e){return!!e&&zc(e[0])&&zc(e[1])}function P9e(e){return An(e)||e.length===0||Vp(e)}function Vpe(e,t,n){const r=t||e;return(n||e).set("year",r.year()).set("month",r.month()).set("date",r.date())}const R9e=Se({name:"IconDoubleLeft",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-double-left`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),M9e=["stroke-width","stroke-linecap","stroke-linejoin"];function O9e(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M36.857 9.9 22.715 24.042l14.142 14.142M25.544 9.9 11.402 24.042l14.142 14.142"},null,-1)]),14,M9e)}var vR=Ve(R9e,[["render",O9e]]);const zpe=Object.assign(vR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+vR.name,vR)}}),$9e=Se({name:"IconDoubleRight",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-double-right`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),B9e=["stroke-width","stroke-linecap","stroke-linejoin"];function N9e(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m11.143 38.1 14.142-14.142L11.143 9.816M22.456 38.1l14.142-14.142L22.456 9.816"},null,-1)]),14,B9e)}var mR=Ve($9e,[["render",N9e]]);const Upe=Object.assign(mR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+mR.name,mR)}}),F9e=Se({name:"PanelHeader",components:{IconLeft:Al,IconRight:Hi,IconDoubleLeft:zpe,IconDoubleRight:Upe,RenderFunction:Jh},props:{prefixCls:{type:String,required:!0},title:{type:String,required:!0},mode:{type:String,default:"date"},value:{type:Object},icons:{type:Object},onPrev:{type:Function},onSuperPrev:{type:Function},onNext:{type:Function},onSuperNext:{type:Function},onLabelClick:{type:Function}},emits:["label-click"],setup(e){return{showPrev:j(()=>En(e.onPrev)),showSuperPrev:j(()=>En(e.onSuperPrev)),showNext:j(()=>En(e.onNext)),showSuperNext:j(()=>En(e.onSuperNext)),year:j(()=>["date","quarter","month","week"].includes(e.mode)&&e.value?e.value.format("YYYY"):""),month:j(()=>["date","week"].includes(e.mode)&&e.value?e.value.format("MM"):""),getIconClassName:t=>[`${e.prefixCls}-header-icon`,{[`${e.prefixCls}-header-icon-hidden`]:!t}]}}}),j9e={key:1};function V9e(e,t,n,r,o,a){const s=Ie("RenderFunction"),l=Ie("IconDoubleLeft"),c=Ie("IconLeft"),d=Ie("IconRight"),h=Ie("IconDoubleRight");return z(),Q("div",{class:ue(`${e.prefixCls}-header`)},[I("div",{class:ue(e.getIconClassName(e.showSuperPrev)),onClick:t[0]||(t[0]=(...p)=>e.onSuperPrev&&e.onSuperPrev(...p))},[e.showSuperPrev?(z(),Q(Nt,{key:0},[e.icons&&e.icons.prevDouble?(z(),Ye(s,{key:0,"render-func":e.icons&&e.icons.prevDouble},null,8,["render-func"])):(z(),Ye(l,{key:1}))],64)):Le("v-if",!0)],2),I("div",{class:ue(e.getIconClassName(e.showPrev)),onClick:t[1]||(t[1]=(...p)=>e.onPrev&&e.onPrev(...p))},[e.showPrev?(z(),Q(Nt,{key:0},[e.icons&&e.icons.prev?(z(),Ye(s,{key:0,"render-func":e.icons&&e.icons.prev},null,8,["render-func"])):(z(),Ye(c,{key:1}))],64)):Le("v-if",!0)],2),I("div",{class:ue(`${e.prefixCls}-header-title`)},[e.onLabelClick&&(e.year||e.month)?(z(),Q(Nt,{key:0},[e.year?(z(),Q("span",{key:0,class:ue(`${e.prefixCls}-header-label`),onClick:t[2]||(t[2]=()=>e.onLabelClick&&e.onLabelClick("year"))},ze(e.year),3)):Le("v-if",!0),e.year&&e.month?(z(),Q("span",j9e,"-")):Le("v-if",!0),e.month?(z(),Q("span",{key:2,class:ue(`${e.prefixCls}-header-label`),onClick:t[3]||(t[3]=()=>e.onLabelClick&&e.onLabelClick("month"))},ze(e.month),3)):Le("v-if",!0)],64)):(z(),Q(Nt,{key:1},[We(ze(e.title),1)],64))],2),I("div",{class:ue(e.getIconClassName(e.showNext)),onClick:t[4]||(t[4]=(...p)=>e.onNext&&e.onNext(...p))},[e.showNext?(z(),Q(Nt,{key:0},[e.icons&&e.icons.next?(z(),Ye(s,{key:0,"render-func":e.icons&&e.icons.next},null,8,["render-func"])):(z(),Ye(d,{key:1}))],64)):Le("v-if",!0)],2),I("div",{class:ue(e.getIconClassName(e.showSuperNext)),onClick:t[5]||(t[5]=(...p)=>e.onSuperNext&&e.onSuperNext(...p))},[e.showSuperNext?(z(),Q(Nt,{key:0},[e.icons&&e.icons.nextDouble?(z(),Ye(s,{key:0,"render-func":e.icons&&e.icons.nextDouble},null,8,["render-func"])):(z(),Ye(h,{key:1}))],64)):Le("v-if",!0)],2)],2)}var N5=Ve(F9e,[["render",V9e]]);function z9e(e){const{rangeValues:t}=nn(e),n=j(()=>t?.value&&t.value.every(zc)?t_(t.value):t?.value),r=j(()=>{var a;return(a=n.value)==null?void 0:a[0]}),o=j(()=>{var a;return(a=n.value)==null?void 0:a[1]});return{getCellClassName:(a,s)=>{const{value:l,isSameTime:c,mode:d,prefixCls:h}=e,p=!a.isPrev&&!a.isNext,v=l&&c(a.value,l);let g=c(a.value,Ka());d==="week"&&(g=Ka().isSame(a.value,"date"));const y=p&&r.value&&c(a.value,r.value),S=p&&o.value&&c(a.value,o.value),k=p&&r.value&&o.value&&(y||S||a.value.isBetween(r.value,o.value,null,"[]"));return[`${h}-cell`,{[`${h}-cell-in-view`]:p,[`${h}-cell-today`]:g,[`${h}-cell-selected`]:v,[`${h}-cell-range-start`]:y,[`${h}-cell-range-end`]:S,[`${h}-cell-in-range`]:k,[`${h}-cell-disabled`]:s},a.classNames]}}}const U9e=Se({name:"PanelBody",components:{RenderFunction:Jh},props:{prefixCls:{type:String,required:!0},rows:{type:Array,default:()=>[]},value:{type:Object},disabledDate:{type:Function},isSameTime:{type:Function,required:!0},mode:{type:String},rangeValues:{type:Array},dateRender:{type:Function}},emits:["cell-click","cell-mouse-enter"],setup(e,{emit:t}){const{prefixCls:n,value:r,disabledDate:o,isSameTime:a,mode:s,rangeValues:l}=nn(e),{getCellClassName:c}=z9e(Xt({prefixCls:n,value:r,isSameTime:a,mode:s,rangeValues:l})),d=h=>!!(En(o?.value)&&o?.value(xu(h.value)));return{isWeek:j(()=>s?.value==="week"),getCellClassName:h=>{const p=d(h);return c(h,p)},onCellClick:h=>{d(h)||t("cell-click",h)},onCellMouseEnter:h=>{d(h)||t("cell-mouse-enter",h)},onCellMouseLeave:h=>{d(h)||t("cell-mouse-enter",h)},getDateValue:xu}}}),H9e=["onMouseenter","onMouseleave","onClick"];function W9e(e,t,n,r,o,a){const s=Ie("RenderFunction");return z(),Q("div",{class:ue(`${e.prefixCls}-body`)},[(z(!0),Q(Nt,null,gn(e.rows,(l,c)=>(z(),Q("div",{key:c,class:ue([`${e.prefixCls}-row`,{[`${e.prefixCls}-row-week`]:e.isWeek}])},[(z(!0),Q(Nt,null,gn(l,(d,h)=>(z(),Q(Nt,null,[Le(" 一年中的第几周,只在 week 模式下显示 "),e.isWeek&&h===0?(z(),Q("div",{key:h,class:ue([`${e.prefixCls}-cell`,`${e.prefixCls}-cell-week`])},[I("div",{class:ue(`${e.prefixCls}-date`)},[I("div",{class:ue(`${e.prefixCls}-date-value`)},ze(d.label),3)],2)],2)):(z(),Q("div",{key:h,class:ue(e.getCellClassName(d)),onMouseenter:()=>{e.onCellMouseEnter(d)},onMouseleave:()=>{e.onCellMouseLeave(d)},onClick:()=>{e.onCellClick(d)}},[e.dateRender?(z(),Ye(s,{key:0,"render-func":e.dateRender,date:e.getDateValue(d.value)},null,8,["render-func","date"])):(z(),Q("div",{key:1,class:ue(`${e.prefixCls}-date`)},[I("div",{class:ue(`${e.prefixCls}-date-value`)},ze(d.label),3)],2))],42,H9e))],64))),256))],2))),128))],2)}var F5=Ve(U9e,[["render",W9e]]);const G9e=Se({name:"PanelWeekList",props:{prefixCls:{type:String,required:!0},weekList:{type:Array,required:!0}},setup(){const e=eS();return{labelList:j(()=>["sunday","monday","tuesday","wednesday","thursday","friday","saturday"].map(n=>e(`datePicker.week.short.${n}`)))}}});function K9e(e,t,n,r,o,a){return z(),Q("div",{class:ue(`${e.prefixCls}-week-list`)},[(z(!0),Q(Nt,null,gn(e.weekList,s=>(z(),Q("div",{key:s,class:ue(`${e.prefixCls}-week-list-item`)},ze(e.labelList[s]||""),3))),128))],2)}var q9e=Ve(G9e,[["render",K9e]]);const Y9e=Se({name:"TimePickerColumn",props:{prefixCls:{type:String,required:!0},list:{type:Array,required:!0},value:{type:[Number,String]},visible:{type:Boolean}},emits:["select"],setup(e,{emit:t}){const{visible:n,value:r}=nn(e),o=fe(new Map),a=fe();function s(l=!1){if(!a.value||An(r?.value)||!n?.value)return;const c=o.value.get(r.value);c&&A9e(a.value,c.offsetTop,l?100:0)}return Rt([r,n],(l,[,c])=>{n.value!==c?Cn(()=>{s()}):s(!0)}),bn(()=>{s()}),{refWrapper:a,refMap:o,onItemRef(l,c){o.value.set(c.value,l)},onItemClick(l){l.disabled||t("select",l.value)}}}}),X9e=["onClick"];function Z9e(e,t,n,r,o,a){return z(),Q("div",{ref:"refWrapper",class:ue(`${e.prefixCls}-column`)},[I("ul",null,[(z(!0),Q(Nt,null,gn(e.list,s=>(z(),Q("li",{key:s.value,ref_for:!0,ref:l=>{e.onItemRef(l,s)},class:ue([`${e.prefixCls}-cell`,{[`${e.prefixCls}-cell-disabled`]:s.disabled,[`${e.prefixCls}-cell-selected`]:s.selected}]),onClick:()=>{e.onItemClick(s)}},[I("div",{class:ue(`${e.prefixCls}-cell-inner`)},ze(s.label),3)],10,X9e))),128))])],2)}var J9e=Ve(Y9e,[["render",Z9e]]);function Q9e(e){const{format:t,step:n,use12Hours:r,hideDisabledOptions:o,disabledHours:a,disabledMinutes:s,disabledSeconds:l,selectedHour:c,selectedMinute:d,selectedSecond:h,selectedAmpm:p,disabled:v}=nn(e),g=j(()=>{var x;const{hour:E=1}=n?.value||{},_=((x=a?.value)==null?void 0:x.call(a))||[];let T=[];for(let D=0;D<(r.value?12:24);D+=E)T.push(D);return r.value&&(T[0]=12),o.value&&_.length&&(T=T.filter(D=>_.indexOf(D)<0)),T.map(D=>({label:fm(D,2,"0"),value:D,selected:c.value===D,disabled:v?.value||_.includes(D)}))}),y=j(()=>{var x;const{minute:E=1}=n?.value||{},_=((x=s?.value)==null?void 0:x.call(s,c.value))||[];let T=[];for(let D=0;D<60;D+=E)T.push(D);return o.value&&_.length&&(T=T.filter(D=>_.indexOf(D)<0)),T.map(D=>({label:fm(D,2,"0"),value:D,selected:d.value===D,disabled:v?.value||_.includes(D)}))}),S=j(()=>{var x;const{second:E=1}=n?.value||{},_=((x=l?.value)==null?void 0:x.call(l,c.value,d.value))||[];let T=[];for(let D=0;D<60;D+=E)T.push(D);return o.value&&_.length&&(T=T.filter(D=>_.indexOf(D)<0)),T.map(D=>({label:fm(D,2,"0"),value:D,selected:h.value===D,disabled:v?.value||_.includes(D)}))}),k=["am","pm"],C=j(()=>{const x=Jj(t.value).list.includes("A");return k.map(E=>({label:x?E.toUpperCase():E,value:E,selected:p.value===E,disabled:v?.value}))});return{hours:g,minutes:y,seconds:S,ampmList:C}}function xH(e){const{format:t,use12Hours:n,defaultFormat:r}=nn(e),o=j(()=>{let d=t?.value||r?.value;return(!d||!Jj(d).list.length)&&(d=n?.value?"hh:mm:ss a":"HH:mm:ss"),d}),a=j(()=>Jj(o.value)),s=j(()=>a.value.list),l=j(()=>a.value.use12Hours),c=j(()=>!!(n?.value||l.value));return{columns:s,use12Hours:c,format:o}}function Hpe(e){const t=n=>I9e(n,{disabledHours:e.disabledHours,disabledMinutes:e.disabledMinutes,disabledSeconds:e.disabledSeconds});return n=>or(n)?n.some(r=>t(r)):t(n)}const eOe=Se({name:"TimePickerPanel",components:{TimeColumn:J9e,Button:Xo},props:{value:{type:Object},visible:{type:Boolean},format:{type:String,default:"HH:mm:ss"},use12Hours:{type:Boolean},step:{type:Object},disabledHours:{type:Function},disabledMinutes:{type:Function},disabledSeconds:{type:Function},hideDisabledOptions:{type:Boolean},hideFooter:{type:Boolean},isRange:{type:Boolean},disabled:{type:Boolean}},emits:{select:e=>zc(e),confirm:e=>zc(e)},setup(e,{emit:t}){const{value:n,visible:r,format:o,step:a,use12Hours:s,hideDisabledOptions:l,disabledHours:c,disabledMinutes:d,disabledSeconds:h,disabled:p}=nn(e),v=Te("timepicker"),{t:g}=No(),{columns:y,use12Hours:S,format:k}=xH(Xt({format:o,use12Hours:s})),C=fe(n?.value),x=X=>{C.value=X};Rt([r,n],()=>{r.value&&x(n?.value)});const E=j(()=>{var X;const oe=(X=C.value)==null?void 0:X.hour();return An(oe)||!S.value?oe:oe>12?oe-12:oe===0?12:oe}),_=j(()=>{var X;return(X=C.value)==null?void 0:X.minute()}),T=j(()=>{var X;return(X=C.value)==null?void 0:X.second()}),D=j(()=>{var X;const oe=(X=C.value)==null?void 0:X.hour();return!An(oe)&&oe>=12?"pm":"am"}),{hours:P,minutes:M,seconds:$,ampmList:L}=Q9e(Xt({format:k,step:a,use12Hours:S,hideDisabledOptions:l,disabledHours:c,disabledMinutes:d,disabledSeconds:h,selectedHour:E,selectedMinute:_,selectedSecond:T,selectedAmpm:D,disabled:p})),B=Hpe(Xt({disabledHours:c,disabledMinutes:d,disabledSeconds:h})),F=j(()=>B(C.value));function W(X){An(X)||t("confirm",X)}function U(X){x(X),t("select",X)}function G(X,oe="hour"){let Z;const H=E.value||"00",q=_.value||"00",ee=T.value||"00",ne=D.value||"am";switch(oe){case"hour":Z=`${X}:${q}:${ee}`;break;case"minute":Z=`${H}:${X}:${ee}`;break;case"second":Z=`${H}:${q}:${X}`;break;case"ampm":Z=`${H}:${q}:${ee} ${X}`;break;default:Z="00:00:00"}let ae="HH:mm:ss";S.value&&(ae="HH:mm:ss a",oe!=="ampm"&&(Z=`${Z} ${ne}`)),Z=Rs(Z,ae),U(Z)}return{prefixCls:v,t:g,hours:P,minutes:M,seconds:$,ampmList:L,selectedValue:C,selectedHour:E,selectedMinute:_,selectedSecond:T,selectedAmpm:D,computedUse12Hours:S,confirmBtnDisabled:F,columns:y,onSelect:G,onSelectNow(){const X=Rs(new Date);U(X)},onConfirm(){W(C.value)}}}});function tOe(e,t,n,r,o,a){const s=Ie("TimeColumn"),l=Ie("Button");return z(),Q(Nt,null,[I("div",{class:ue(e.prefixCls)},[e.columns.includes("H")||e.columns.includes("h")?(z(),Ye(s,{key:0,value:e.selectedHour,list:e.hours,"prefix-cls":e.prefixCls,visible:e.visible,onSelect:t[0]||(t[0]=c=>{e.onSelect(c,"hour")})},null,8,["value","list","prefix-cls","visible"])):Le("v-if",!0),e.columns.includes("m")?(z(),Ye(s,{key:1,value:e.selectedMinute,list:e.minutes,"prefix-cls":e.prefixCls,visible:e.visible,onSelect:t[1]||(t[1]=c=>{e.onSelect(c,"minute")})},null,8,["value","list","prefix-cls","visible"])):Le("v-if",!0),e.columns.includes("s")?(z(),Ye(s,{key:2,value:e.selectedSecond,list:e.seconds,"prefix-cls":e.prefixCls,visible:e.visible,onSelect:t[2]||(t[2]=c=>{e.onSelect(c,"second")})},null,8,["value","list","prefix-cls","visible"])):Le("v-if",!0),e.computedUse12Hours?(z(),Ye(s,{key:3,value:e.selectedAmpm,list:e.ampmList,"prefix-cls":e.prefixCls,visible:e.visible,onSelect:t[3]||(t[3]=c=>{e.onSelect(c,"ampm")})},null,8,["value","list","prefix-cls","visible"])):Le("v-if",!0)],2),e.$slots["extra-footer"]?(z(),Q("div",{key:0,class:ue(`${e.prefixCls}-footer-extra-wrapper`)},[vt(e.$slots,"extra-footer")],2)):Le("v-if",!0),e.hideFooter?Le("v-if",!0):(z(),Q("div",{key:1,class:ue(`${e.prefixCls}-footer-btn-wrapper`)},[e.isRange?Le("v-if",!0):(z(),Ye(l,{key:0,size:"mini",onClick:e.onSelectNow},{default:de(()=>[We(ze(e.t("datePicker.now")),1)]),_:1},8,["onClick"])),O(l,{type:"primary",size:"mini",disabled:e.confirmBtnDisabled||!e.selectedValue,onClick:e.onConfirm},{default:de(()=>[We(ze(e.t("datePicker.ok")),1)]),_:1},8,["disabled","onClick"])],2))],64)}var V8=Ve(eOe,[["render",tOe]]);const nOe=Se({name:"IconCalendar",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-calendar`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),rOe=["stroke-width","stroke-linecap","stroke-linejoin"];function iOe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M7 22h34M14 5v8m20-8v8M8 41h32a1 1 0 0 0 1-1V10a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v30a1 1 0 0 0 1 1Z"},null,-1)]),14,rOe)}var gR=Ve(nOe,[["render",iOe]]);const tS=Object.assign(gR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+gR.name,gR)}}),oOe=Se({name:"IconClockCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-clock-circle`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),sOe=["stroke-width","stroke-linecap","stroke-linejoin"];function aOe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24 14v10h9.5m8.5 0c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z"},null,-1)]),14,sOe)}var yR=Ve(oOe,[["render",aOe]]);const o_=Object.assign(yR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+yR.name,yR)}}),Wpe=6,eV=7,lOe=Wpe*eV;function uOe(e){return{label:e.date(),value:e}}const cOe=Se({name:"DatePanel",components:{PanelHeader:N5,PanelBody:F5,PanelWeekList:q9e,TimePanel:V8,IconCalendar:tS,IconClockCircle:o_},props:{isRange:{type:Boolean},value:{type:Object},rangeValues:{type:Array},headerValue:{type:Object,required:!0},footerValue:{type:Object},timePickerValue:{type:Object},headerOperations:{type:Object,default:()=>({})},headerIcons:{type:Object,default:()=>({})},dayStartOfWeek:{type:Number,default:0},disabledDate:{type:Function},disabledTime:{type:Function},isSameTime:{type:Function},mode:{type:String,default:"date"},showTime:{type:Boolean},timePickerProps:{type:Object},currentView:{type:String},dateRender:{type:Function},disabled:{type:Boolean},onHeaderLabelClick:{type:Function}},emits:["select","time-picker-select","cell-mouse-enter","current-view-change","update:currentView"],setup(e,{emit:t}){const{isRange:n,headerValue:r,footerValue:o,dayStartOfWeek:a,isSameTime:s,mode:l,showTime:c,currentView:d,disabledTime:h}=nn(e),p=eS(),v=j(()=>l?.value==="week"),g=j(()=>Te(v.value?"panel-week":"panel-date")),y=Te("picker"),[S,k]=fa("date",Xt({value:d})),C=j(()=>c.value&&n.value),x=j(()=>!c.value||!C.value||S.value==="date"),E=j(()=>c.value&&(!C.value||S.value==="time")),_=j(()=>[g.value,{[`${g.value}-with-view-tabs`]:C.value}]),T=j(()=>r.value.format("YYYY-MM")),D=j(()=>{var W;return c.value&&((W=h?.value)==null?void 0:W.call(h,xu(o?.value||Ka())))||{}}),P=j(()=>{const W=[0,1,2,3,4,5,6],U=Math.max(a.value%7,0);return[...W.slice(U),...W.slice(0,U)]}),M=j(()=>{const W=Ys.startOf(r.value,"month"),U=W.day(),G=W.daysInMonth(),X=P.value.indexOf(U),oe=Ry(lOe);for(let H=0;HX+G-1};return Ry(Wpe).map((H,q)=>{const ee=oe.slice(q*eV,(q+1)*eV);if(v.value){const ne=ee[0].value;ee.unshift({label:ne.week(),value:ne})}return ee})}),$=j(()=>s?.value||((W,U)=>W.isSame(U,"day")));function L(W){t("select",W.value)}function B(W){t("time-picker-select",W)}function F(W){t("cell-mouse-enter",W.value)}return{prefixCls:g,classNames:_,pickerPrefixCls:y,headerTitle:T,rows:M,weekList:j(()=>v.value?[-1,...P.value]:P.value),mergedIsSameTime:$,disabledTimeProps:D,onCellClick:L,onCellMouseEnter:F,onTimePanelSelect:B,showViewTabs:C,showDateView:x,showTimeView:E,changeViewTo:W=>{t("current-view-change",W),t("update:currentView",W),k(W)},datePickerT:p}}});function dOe(e,t,n,r,o,a){const s=Ie("PanelHeader"),l=Ie("PanelWeekList"),c=Ie("PanelBody"),d=Ie("TimePanel"),h=Ie("IconCalendar"),p=Ie("IconClockCircle");return z(),Q("div",{class:ue(e.classNames)},[e.showDateView?(z(),Q("div",{key:0,class:ue(`${e.prefixCls}-inner`)},[O(s,Vt({...e.headerOperations,icons:e.headerIcons},{"prefix-cls":e.pickerPrefixCls,title:e.headerTitle,mode:e.mode,value:e.headerValue,"on-label-click":e.onHeaderLabelClick}),null,16,["prefix-cls","title","mode","value","on-label-click"]),O(l,{"prefix-cls":e.pickerPrefixCls,"week-list":e.weekList},null,8,["prefix-cls","week-list"]),O(c,{mode:e.mode,"prefix-cls":e.pickerPrefixCls,rows:e.rows,value:e.isRange?void 0:e.value,"range-values":e.rangeValues,"disabled-date":e.disabledDate,"is-same-time":e.mergedIsSameTime,"date-render":e.dateRender,onCellClick:e.onCellClick,onCellMouseEnter:e.onCellMouseEnter},null,8,["mode","prefix-cls","rows","value","range-values","disabled-date","is-same-time","date-render","onCellClick","onCellMouseEnter"])],2)):Le("v-if",!0),e.showTimeView?(z(),Q("div",{key:1,class:ue(`${e.prefixCls}-timepicker`)},[I("header",{class:ue(`${e.prefixCls}-timepicker-title`)},ze(e.datePickerT("datePicker.selectTime")),3),O(d,Vt({...e.timePickerProps,...e.disabledTimeProps},{"hide-footer":"",value:e.value||e.isRange?e.timePickerValue:void 0,disabled:e.disabled,onSelect:e.onTimePanelSelect}),null,16,["value","disabled","onSelect"])],2)):Le("v-if",!0),e.showViewTabs?(z(),Q("div",{key:2,class:ue(`${e.prefixCls}-footer`)},[I("div",{class:ue(`${e.prefixCls}-view-tabs`)},[I("div",{class:ue([`${e.prefixCls}-view-tab-pane`,{[`${e.prefixCls}-view-tab-pane-active`]:e.showDateView}]),onClick:t[0]||(t[0]=()=>e.changeViewTo("date"))},[O(h),I("span",{class:ue(`${e.prefixCls}-view-tab-pane-text`)},ze(e.footerValue&&e.footerValue.format("YYYY-MM-DD")),3)],2),I("div",{class:ue([`${e.prefixCls}-view-tab-pane`,{[`${e.prefixCls}-view-tab-pane-active`]:e.showTimeView}]),onClick:t[1]||(t[1]=()=>e.changeViewTo("time"))},[O(p),I("span",{class:ue(`${e.prefixCls}-view-tab-pane-text`)},ze(e.timePickerValue&&e.timePickerValue.format("HH:mm:ss")),3)],2)],2)],2)):Le("v-if",!0)],2)}var CH=Ve(cOe,[["render",dOe]]);const fOe=Se({name:"WeekPanel",components:{DatePanel:CH},props:{dayStartOfWeek:{type:Number,default:0}},emits:["select","cell-mouse-enter"],setup(e,{emit:t}){return No(),{isSameTime:(r,o)=>Ys.isSameWeek(r,o,e.dayStartOfWeek),onSelect:r=>{const o=Ys.startOfWeek(r,e.dayStartOfWeek);t("select",o)},onCellMouseEnter:r=>{const o=Ys.startOfWeek(r,e.dayStartOfWeek);t("cell-mouse-enter",o)}}}});function hOe(e,t,n,r,o,a){const s=Ie("DatePanel");return z(),Ye(s,Vt(e.$attrs,{mode:"week","is-week":"","day-start-of-week":e.dayStartOfWeek,"is-same-time":e.isSameTime,onSelect:e.onSelect,onCellMouseEnter:e.onCellMouseEnter}),null,16,["day-start-of-week","is-same-time","onSelect","onCellMouseEnter"])}var Gpe=Ve(fOe,[["render",hOe]]);const pOe=["January","February","March","April","May","June","July","August","September","October","November","December"],vOe=12,mOe=4,hre=3,gOe=Se({name:"MonthPanel",components:{PanelHeader:N5,PanelBody:F5},props:{headerValue:{type:Object,required:!0},headerOperations:{type:Object,default:()=>({})},headerIcons:{type:Object,default:()=>({})},value:{type:Object},disabledDate:{type:Function},rangeValues:{type:Array},dateRender:{type:Function},onHeaderLabelClick:{type:Function},abbreviation:{type:Boolean,default:!0}},emits:["select","cell-mouse-enter"],setup(e,{emit:t}){const n=eS(),{headerValue:r}=nn(e),o=j(()=>Te("panel-month")),a=Te("picker"),s=j(()=>r.value.format("YYYY")),l=j(()=>{const p=r.value.year(),v=e.abbreviation?"short":"long",g=Ry(vOe).map((S,k)=>({label:n(`datePicker.month.${v}.${pOe[k]}`),value:Rs(`${p}-${k+1}`,"YYYY-M")}));return Ry(mOe).map((S,k)=>g.slice(k*hre,(k+1)*hre))}),c=(p,v)=>p.isSame(v,"month");function d(p){t("select",p.value)}function h(p){t("cell-mouse-enter",p.value)}return{prefixCls:o,pickerPrefixCls:a,headerTitle:s,rows:l,isSameTime:c,onCellClick:d,onCellMouseEnter:h}}});function yOe(e,t,n,r,o,a){const s=Ie("PanelHeader"),l=Ie("PanelBody");return z(),Q("div",{class:ue(e.prefixCls)},[I("div",{class:ue(`${e.prefixCls}-inner`)},[O(s,Vt({...e.headerOperations,icons:e.headerIcons},{"prefix-cls":e.pickerPrefixCls,title:e.headerTitle,mode:"month",value:e.headerValue,"on-label-click":e.onHeaderLabelClick}),null,16,["prefix-cls","title","value","on-label-click"]),O(l,{mode:"month","prefix-cls":e.pickerPrefixCls,rows:e.rows,value:e.value,"range-values":e.rangeValues,"disabled-date":e.disabledDate,"is-same-time":e.isSameTime,"date-render":e.dateRender,onCellClick:e.onCellClick,onCellMouseEnter:e.onCellMouseEnter},null,8,["prefix-cls","rows","value","range-values","disabled-date","is-same-time","date-render","onCellClick","onCellMouseEnter"])],2)],2)}var Kpe=Ve(gOe,[["render",yOe]]);const tV=4,Sw=3,bOe=tV*Sw,bR=10,_Oe=Se({name:"YearPanel",components:{PanelHeader:N5,PanelBody:F5},props:{headerValue:{type:Object,required:!0},headerOperations:{type:Object,default:()=>({})},headerIcons:{type:Object,default:()=>({})},value:{type:Object},disabledDate:{type:Function},rangeValues:{type:Array},dateRender:{type:Function}},emits:["select","cell-mouse-enter"],setup(e,{emit:t}){const{headerValue:n}=nn(e),r=j(()=>Te("panel-year")),o=Te("picker"),a=j(()=>{const h=Math.floor(n.value.year()/bR)*bR-1,p=Ry(bOe).map((g,y)=>({label:h+y,value:Rs(`${h+y}`,"YYYY"),isPrev:y<1,isNext:y>bR}));return Ry(tV).map((g,y)=>p.slice(y*Sw,(y+1)*Sw))}),s=j(()=>`${a.value[0][1].label}-${a.value[tV-1][Sw-1].label}`),l=(h,p)=>h.isSame(p,"year");function c(h){t("select",h.value)}function d(h){t("cell-mouse-enter",h.value)}return{prefixCls:r,pickerPrefixCls:o,headerTitle:s,rows:a,isSameTime:l,onCellClick:c,onCellMouseEnter:d}}});function SOe(e,t,n,r,o,a){const s=Ie("PanelHeader"),l=Ie("PanelBody");return z(),Q("div",{class:ue(e.prefixCls)},[I("div",{class:ue(`${e.prefixCls}-inner`)},[O(s,Vt({...e.headerOperations,icons:e.headerIcons},{"prefix-cls":e.pickerPrefixCls,title:e.headerTitle}),null,16,["prefix-cls","title"]),O(l,{mode:"year","prefix-cls":e.pickerPrefixCls,rows:e.rows,value:e.value,"range-values":e.rangeValues,"disabled-date":e.disabledDate,"is-same-time":e.isSameTime,"date-render":e.dateRender,onCellClick:e.onCellClick,onCellMouseEnter:e.onCellMouseEnter},null,8,["prefix-cls","rows","value","range-values","disabled-date","is-same-time","date-render","onCellClick","onCellMouseEnter"])],2)],2)}var qpe=Ve(_Oe,[["render",SOe]]);const kOe=Se({name:"QuarterPanel",components:{PanelHeader:N5,PanelBody:F5},props:{headerValue:{type:Object,required:!0},headerOperations:{type:Object,default:()=>({})},headerIcons:{type:Object,default:()=>({})},value:{type:Object},disabledDate:{type:Function},rangeValues:{type:Array},dateRender:{type:Function},onHeaderLabelClick:{type:Function}},emits:["select","cell-mouse-enter"],setup(e,{emit:t}){const{headerValue:n}=nn(e),r=j(()=>Te("panel-quarter")),o=Te("picker"),a=j(()=>n.value.format("YYYY")),s=j(()=>{const h=n.value.year();return[[1,2,3,4].map(p=>({label:`Q${p}`,value:Rs(`${h}-${fm((p-1)*3+1,2,"0")}-01`)}))]}),l=(h,p)=>h.isSame(p,"month")||h.isSame(p,"year")&&Math.floor(h.month()/3)===Math.floor(p.month()/3);function c(h){t("select",h.value)}function d(h){t("cell-mouse-enter",h.value)}return{prefixCls:r,pickerPrefixCls:o,headerTitle:a,rows:s,isSameTime:l,onCellClick:c,onCellMouseEnter:d}}});function xOe(e,t,n,r,o,a){const s=Ie("PanelHeader"),l=Ie("PanelBody");return z(),Q("div",{class:ue(e.prefixCls)},[I("div",{class:ue(`${e.prefixCls}-inner`)},[O(s,Vt({...e.headerOperations,icons:e.headerIcons},{"prefix-cls":e.pickerPrefixCls,title:e.headerTitle,mode:"quarter",value:e.headerValue,"on-label-click":e.onHeaderLabelClick}),null,16,["prefix-cls","title","value","on-label-click"]),O(l,{mode:"quarter","prefix-cls":e.pickerPrefixCls,rows:e.rows,value:e.value,"range-values":e.rangeValues,"disabled-date":e.disabledDate,"is-same-time":e.isSameTime,"date-render":e.dateRender,onCellClick:e.onCellClick,onCellMouseEnter:e.onCellMouseEnter},null,8,["prefix-cls","rows","value","range-values","disabled-date","is-same-time","date-render","onCellClick","onCellMouseEnter"])],2)],2)}var Ype=Ve(kOe,[["render",xOe]]);const COe=Se({name:"IconLink",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-link`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),wOe=["stroke-width","stroke-linecap","stroke-linejoin"];function EOe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m14.1 25.414-4.95 4.95a6 6 0 0 0 8.486 8.485l8.485-8.485a6 6 0 0 0 0-8.485m7.779.707 4.95-4.95a6 6 0 1 0-8.486-8.485l-8.485 8.485a6 6 0 0 0 0 8.485"},null,-1)]),14,wOe)}var _R=Ve(COe,[["render",EOe]]);const Mc=Object.assign(_R,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+_R.name,_R)}}),TOe=Se({name:"Link",components:{IconLink:Mc,IconLoading:Xa},props:{href:String,status:{type:String,default:"normal"},hoverable:{type:Boolean,default:!0},icon:Boolean,loading:Boolean,disabled:Boolean},emits:{click:e=>!0},setup(e,{slots:t,emit:n}){const r=Te("link"),o=Bpe(e,t,"icon"),a=l=>{if(e.disabled||e.loading){l.preventDefault();return}n("click",l)};return{cls:j(()=>[r,`${r}-status-${e.status}`,{[`${r}-disabled`]:e.disabled,[`${r}-loading`]:e.loading,[`${r}-hoverless`]:!e.hoverable,[`${r}-with-icon`]:e.loading||o.value}]),prefixCls:r,showIcon:o,handleClick:a}}}),AOe=["href"];function IOe(e,t,n,r,o,a){const s=Ie("icon-loading"),l=Ie("icon-link");return z(),Q("a",{href:e.disabled?void 0:e.href,class:ue(e.cls),onClick:t[0]||(t[0]=(...c)=>e.handleClick&&e.handleClick(...c))},[e.loading||e.showIcon?(z(),Q("span",{key:0,class:ue(`${e.prefixCls}-icon`)},[e.loading?(z(),Ye(s,{key:0})):vt(e.$slots,"icon",{key:1},()=>[O(l)])],2)):Le("v-if",!0),vt(e.$slots,"default")],10,AOe)}var SR=Ve(TOe,[["render",IOe]]);const Xpe=Object.assign(SR,{install:(e,t)=>{Xn(e,t);const n=Yn(t);e.component(n+SR.name,SR)}}),LOe=Se({name:"PanelFooter",components:{Link:Xpe,Button:Xo},props:{prefixCls:{type:String,required:!0},showTodayBtn:{type:Boolean},showConfirmBtn:{type:Boolean},confirmBtnDisabled:{type:Boolean}},emits:["today-btn-click","confirm-btn-click"],setup(e,{emit:t}){return{datePickerT:eS(),onTodayClick:()=>{t("today-btn-click")},onConfirmBtnClick:()=>{t("confirm-btn-click")}}}});function DOe(e,t,n,r,o,a){const s=Ie("Link"),l=Ie("Button");return z(),Q("div",{class:ue(`${e.prefixCls}-footer`)},[e.$slots.extra?(z(),Q("div",{key:0,class:ue(`${e.prefixCls}-footer-extra-wrapper`)},[vt(e.$slots,"extra")],2)):Le("v-if",!0),e.showTodayBtn?(z(),Q("div",{key:1,class:ue(`${e.prefixCls}-footer-now-wrapper`)},[O(s,{onClick:e.onTodayClick},{default:de(()=>[We(ze(e.datePickerT("datePicker.today")),1)]),_:1},8,["onClick"])],2)):Le("v-if",!0),e.$slots.btn||e.showConfirmBtn?(z(),Q("div",{key:2,class:ue(`${e.prefixCls}-footer-btn-wrapper`)},[vt(e.$slots,"btn"),e.showConfirmBtn?(z(),Ye(l,{key:0,class:ue(`${e.prefixCls}-btn-confirm`),type:"primary",size:"mini",disabled:e.confirmBtnDisabled,onClick:e.onConfirmBtnClick},{default:de(()=>[We(ze(e.datePickerT("datePicker.ok")),1)]),_:1},8,["class","disabled","onClick"])):Le("v-if",!0)],2)):Le("v-if",!0)],2)}var Zpe=Ve(LOe,[["render",DOe]]);function Jpe(e){const{mode:t}=nn(e),n=j(()=>({date:1,week:1,year:120,quarter:12,month:12})[t.value]),r=j(()=>["year"].includes(t.value)?120:12);return{span:n,superSpan:r}}function z8(e){const{mode:t,value:n,defaultValue:r,selectedValue:o,format:a,onChange:s}=nn(e),l=j(()=>t?.value||"date"),{span:c,superSpan:d}=Jpe(Xt({mode:l})),h=(T,D)=>{const P=l.value==="date"||l.value==="week"?"M":"y";return T.isSame(D,P)},p=j(()=>dc(n?.value,a.value)),v=j(()=>dc(r?.value,a.value)),g=fe(v.value||Ka()),y=j(()=>p.value||g.value),S=T=>{T&&(g.value=T)},k=(T,D=!0)=>{var P;T&&(D&&!h(y.value,T)&&((P=s?.value)==null||P.call(s,T)),S(T))};o?.value&&S(o.value),Rt(()=>o?.value,T=>{k(T)});function C(){return o?.value||v.value||Ka()}function x(T=!0){const D=C();T?k(D):S(D)}const E=j(()=>c.value!==d.value),_=j(()=>({onSuperPrev:()=>{k(Ys.subtract(y.value,d.value,"M"))},onPrev:E.value?()=>{k(Ys.subtract(y.value,c.value,"M"))}:void 0,onNext:E.value?()=>{k(Ys.add(y.value,c.value,"M"))}:void 0,onSuperNext:()=>{k(Ys.add(y.value,d.value,"M"))}}));return{headerValue:y,setHeaderValue:k,headerOperations:_,resetHeaderValue:x,getDefaultLocalValue:C}}const POe=Se({name:"DatePikerPanel",components:{DatePanel:CH,PanelShortcuts:jpe,PanelFooter:Zpe,WeekPanel:Gpe,MonthPanel:Kpe,YearPanel:qpe,QuarterPanel:Ype,RenderFunction:Jh},props:{mode:{type:String},headerMode:{type:String},prefixCls:{type:String,required:!0},value:{type:Object},headerValue:{type:Object,required:!0},timePickerValue:{type:Object},showTime:{type:Boolean},showConfirmBtn:{type:Boolean},shortcuts:{type:Array,default:()=>[]},shortcutsPosition:{type:String,default:"bottom"},format:{type:String,required:!0},dayStartOfWeek:{type:Number,default:0},disabledDate:{type:Function},disabledTime:{type:Function},timePickerProps:{type:Object},extra:{type:Function},dateRender:{type:Function},hideTrigger:{type:Boolean},confirmBtnDisabled:{type:Boolean},showNowBtn:{type:Boolean},headerIcons:{type:Object,default:()=>({})},headerOperations:{type:Object},abbreviation:{type:Boolean}},emits:["cell-click","time-picker-select","shortcut-click","shortcut-mouse-enter","shortcut-mouse-leave","confirm","today-btn-click","header-label-click","header-select","month-header-click"],setup(e,{emit:t}){const{prefixCls:n,shortcuts:r,shortcutsPosition:o,format:a,value:s,disabledDate:l,hideTrigger:c,showNowBtn:d,dateRender:h,showConfirmBtn:p,headerValue:v,headerIcons:g,headerOperations:y,headerMode:S}=nn(e),k=j(()=>!!(r.value&&r.value.length)),C=j(()=>d.value&&p.value&&!k.value),x=j(()=>C.value||k.value),E=j(()=>x.value&&o.value==="left"),_=j(()=>x.value&&o.value==="right"),T=j(()=>x.value&&o.value==="bottom"),D=j(()=>[`${n.value}-container`,{[`${n.value}-container-panel-only`]:c.value,[`${n.value}-container-shortcuts-placement-left`]:E.value,[`${n.value}-container-shortcuts-placement-right`]:_.value}]),P=j(()=>s?.value||Ka()),{headerValue:M,setHeaderValue:$,headerOperations:L}=z8(Xt({mode:S,format:a}));Rt(v,re=>{$(re)});function B(re){const{value:ke}=re;return dc(En(ke)?ke():ke,re.format||a.value)}function F(re){t("shortcut-click",B(re),re)}function W(re){t("shortcut-mouse-enter",B(re))}function U(re){t("shortcut-mouse-leave",B(re))}function G(re){t("cell-click",re)}function X(re){t("time-picker-select",re)}function oe(){t("today-btn-click",Ka())}function Z(){t("confirm")}function H(re){t("header-label-click",re)}function q(re){t("header-select",re)}function ee(){t("month-header-click")}const ne=Xt({prefixCls:n,shortcuts:r,showNowBtn:C,onItemClick:F,onItemMouseEnter:W,onItemMouseLeave:U,onNowClick:oe}),ae=Xt({value:s,headerValue:v,headerIcons:g,headerOperations:y,disabledDate:l,dateRender:h,onSelect:G,onHeaderLabelClick:H});return{classNames:D,showShortcutsInLeft:E,showShortcutsInRight:_,showShortcutsInBottom:T,shortcutsProps:ne,commonPanelProps:ae,footerValue:P,onTodayBtnClick:oe,onConfirmBtnClick:Z,onTimePickerSelect:X,onHeaderPanelSelect:q,headerPanelHeaderValue:M,headerPanelHeaderOperations:L,onMonthHeaderLabelClick:ee}}});function ROe(e,t,n,r,o,a){const s=Ie("PanelShortcuts"),l=Ie("YearPanel"),c=Ie("MonthPanel"),d=Ie("WeekPanel"),h=Ie("QuarterPanel"),p=Ie("DatePanel"),v=Ie("RenderFunction"),g=Ie("PanelFooter");return z(),Q("div",{class:ue(e.classNames)},[e.showShortcutsInLeft?(z(),Ye(s,Yi(Vt({key:0},e.shortcutsProps)),null,16)):Le("v-if",!0),I("div",{class:ue(`${e.prefixCls}-panel-wrapper`)},[e.headerMode?(z(),Q(Nt,{key:0},[e.headerMode==="year"?(z(),Ye(l,{key:0,"header-value":e.headerPanelHeaderValue,"header-icons":e.headerIcons,"header-operations":e.headerPanelHeaderOperations,onSelect:e.onHeaderPanelSelect},null,8,["header-value","header-icons","header-operations","onSelect"])):e.headerMode==="month"?(z(),Ye(c,{key:1,"header-value":e.headerPanelHeaderValue,"header-icons":e.headerIcons,"header-operations":e.headerPanelHeaderOperations,abbreviation:e.abbreviation,onSelect:e.onHeaderPanelSelect,onHeaderLabelClick:e.onMonthHeaderLabelClick},null,8,["header-value","header-icons","header-operations","abbreviation","onSelect","onHeaderLabelClick"])):Le("v-if",!0)],64)):(z(),Q(Nt,{key:1},[e.mode==="week"?(z(),Ye(d,Vt({key:0},e.commonPanelProps,{"day-start-of-week":e.dayStartOfWeek}),null,16,["day-start-of-week"])):e.mode==="month"?(z(),Ye(c,Vt({key:1,abbreviation:e.abbreviation},e.commonPanelProps),null,16,["abbreviation"])):e.mode==="year"?(z(),Ye(l,Yi(Vt({key:2},e.commonPanelProps)),null,16)):e.mode==="quarter"?(z(),Ye(h,Yi(Vt({key:3},e.commonPanelProps)),null,16)):(z(),Ye(p,Vt({key:4},e.commonPanelProps,{mode:"date","show-time":e.showTime,"time-picker-props":e.timePickerProps,"day-start-of-week":e.dayStartOfWeek,"footer-value":e.footerValue,"time-picker-value":e.timePickerValue,"disabled-time":e.disabledTime,onTimePickerSelect:e.onTimePickerSelect}),null,16,["show-time","time-picker-props","day-start-of-week","footer-value","time-picker-value","disabled-time","onTimePickerSelect"])),O(g,{"prefix-cls":e.prefixCls,"show-today-btn":e.showNowBtn&&!(e.showConfirmBtn||e.showShortcutsInBottom),"show-confirm-btn":e.showConfirmBtn,"confirm-btn-disabled":e.confirmBtnDisabled,onTodayBtnClick:e.onTodayBtnClick,onConfirmBtnClick:e.onConfirmBtnClick},yo({_:2},[e.extra?{name:"extra",fn:de(()=>[e.extra?(z(),Ye(v,{key:0,"render-func":e.extra},null,8,["render-func"])):Le("v-if",!0)]),key:"0"}:void 0,e.showShortcutsInBottom?{name:"btn",fn:de(()=>[O(s,Yi(Sa(e.shortcutsProps)),null,16)]),key:"1"}:void 0]),1032,["prefix-cls","show-today-btn","show-confirm-btn","confirm-btn-disabled","onTodayBtnClick","onConfirmBtnClick"])],64))],2),e.showShortcutsInRight?(z(),Ye(s,Yi(Vt({key:1},e.shortcutsProps)),null,16)):Le("v-if",!0)],2)}var MOe=Ve(POe,[["render",ROe]]);function OOe(e="date",t=!1){switch(e){case"date":return t?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD";case"month":return"YYYY-MM";case"year":return"YYYY";case"week":return"gggg-wo";case"quarter":return"YYYY-[Q]Q";default:return"YYYY-MM-DD"}}function $Oe(e="date",t=!1){switch(e){case"date":return t?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD";case"month":return"YYYY-MM";case"year":return"YYYY";case"week":return"YYYY-MM-DD";case"quarter":return"YYYY-MM";default:return"YYYY-MM-DD"}}function Qpe(e){const{format:t,mode:n,showTime:r,valueFormat:o}=nn(e),a=j(()=>!En(t?.value)&&t?.value||OOe(n?.value,r?.value)),s=j(()=>o?.value||$Oe(n?.value,r?.value)),l=j(()=>["timestamp","Date"].includes(s.value)?a.value:s.value);return{format:a,valueFormat:s,parseValueFormat:l}}function e0e(e){const{mode:t,showTime:n,disabledDate:r,disabledTime:o,isRange:a}=nn(e),s=j(()=>t?.value==="date"&&n?.value),l=j(()=>(h,p)=>{if(!r?.value)return!1;const v=xu(h);return a?.value?r.value(v,p):r.value(v)}),c=(h,p)=>(p?.()||[]).includes(h),d=j(()=>(h,p)=>{if(!s.value||!o?.value)return!1;const v=xu(h),g=a?.value?o.value(v,p):o.value(v);return c(h.hour(),g.disabledHours)||c(h.minute(),g.disabledMinutes)||c(h.second(),g.disabledSeconds)});return function(p,v){return p&&(l.value(p,v||"start")||d.value(p,v||"start"))}}const hm=(e,t)=>{if(!e||!t)return;t=t.replace(/\[(\w+)\]/g,".$1");const n=t.split(".");if(n.length===0)return;let r=e;for(let o=0;o{if(!e||!t)return;t=t.replace(/\[(\w+)\]/g,".$1");const o=t.split(".");if(o.length===0)return;let a=e;for(let s=0;s{const l=a.startsWith("datePicker.")?a.split(".").slice(1).join("."):a;return hm(t?.value||{},l)||r(a,...s)};return ri(Fpe,{datePickerT:o}),o}function nV(e){const{timePickerProps:t,selectedValue:n}=nn(e),r=j(()=>{var p;return(p=t?.value)==null?void 0:p.format}),o=j(()=>{var p;return!!((p=t?.value)!=null&&p.use12Hours)}),{format:a}=xH(Xt({format:r,use12Hours:o})),s=j(()=>{var p;return dc((p=t?.value)==null?void 0:p.defaultValue,a.value)}),l=()=>n?.value||s.value||Ka(),c=fe(l());function d(p){p&&(c.value=p)}function h(){c.value=l()}return Rt(n,p=>{d(p)}),[c,d,h]}function n0e(e,t){return t==="timestamp"?e.toDate().getTime():t==="Date"?e.toDate():e.format(t)}function BOe(e){const{format:t}=nn(e);return n=>n0e(n,t.value)}function kR(e,t){return e.map(n=>n?n0e(n,t):void 0)}const NOe=Se({name:"Picker",components:{DateInput:Npe,Trigger:ha,PickerPanel:MOe,IconCalendar:tS},inheritAttrs:!1,props:{locale:{type:Object},hideTrigger:{type:Boolean},allowClear:{type:Boolean,default:!0},readonly:{type:Boolean},error:{type:Boolean},size:{type:String},shortcuts:{type:Array,default:()=>[]},shortcutsPosition:{type:String,default:"bottom"},position:{type:String,default:"bl"},popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},triggerProps:{type:Object},unmountOnClose:{type:Boolean},placeholder:{type:String},disabled:{type:Boolean},disabledDate:{type:Function},disabledTime:{type:Function},pickerValue:{type:[Object,String,Number]},defaultPickerValue:{type:[Object,String,Number]},popupContainer:{type:[String,Object]},mode:{type:String,default:"date"},format:{type:[String,Function]},valueFormat:{type:String},previewShortcut:{type:Boolean,default:!0},showConfirmBtn:{type:Boolean},showTime:{type:Boolean},timePickerProps:{type:Object},showNowBtn:{type:Boolean,default:!0},dayStartOfWeek:{type:Number,default:0},modelValue:{type:[Object,String,Number]},defaultValue:{type:[Object,String,Number]},disabledInput:{type:Boolean,default:!1},abbreviation:{type:Boolean,default:!0}},emits:{change:(e,t,n)=>!0,"update:modelValue":e=>!0,select:(e,t,n)=>!0,"popup-visible-change":e=>!0,"update:popupVisible":e=>!0,ok:(e,t,n)=>!0,clear:()=>!0,"select-shortcut":e=>!0,"picker-value-change":(e,t,n)=>!0,"update:pickerValue":e=>!0},setup(e,{emit:t,slots:n}){const{mode:r,modelValue:o,defaultValue:a,format:s,valueFormat:l,placeholder:c,popupVisible:d,defaultPopupVisible:h,disabled:p,showTime:v,timePickerProps:g,disabledDate:y,disabledTime:S,readonly:k,locale:C,pickerValue:x,defaultPickerValue:E,dayStartOfWeek:_,previewShortcut:T,showConfirmBtn:D}=nn(e),{locale:P}=No();Os(()=>{hpe(P.value,_.value)});const{mergedDisabled:M,eventHandlers:$}=Do({disabled:p}),L=t0e(Xt({locale:C})),B=Te("picker"),F=fe(),W=j(()=>c?.value||{date:L("datePicker.placeholder.date"),month:L("datePicker.placeholder.month"),year:L("datePicker.placeholder.year"),week:L("datePicker.placeholder.week"),quarter:L("datePicker.placeholder.quarter")}[r.value]||L("datePicker.placeholder.date")),{format:U,valueFormat:G,parseValueFormat:X}=Qpe(Xt({format:s,mode:r,showTime:v,valueFormat:l})),oe=j(()=>s&&En(s.value)?on=>{var pn;return(pn=s.value)==null?void 0:pn.call(s,xu(on))}:U.value),Z=BOe(Xt({format:G})),H=e0e(Xt({mode:r,disabledDate:y,disabledTime:S,showTime:v})),q=j(()=>v.value||D.value),ee=j(()=>q.value&&(!Ue.value||H(Ue.value))),ne=j(()=>r.value==="date"&&v.value),{value:ae,setValue:re}=C9e(Xt({modelValue:o,defaultValue:a,format:X})),[ke,Ne]=Ga(),[me,_e]=Ga(),Ue=j(()=>{var on;return(on=ke.value)!=null?on:ae.value}),Qe=j(()=>{var on,pn;return(pn=(on=me.value)!=null?on:ke.value)!=null?pn:ae.value}),[Me,je]=Ga(),[ge,be]=fa(h.value,Xt({value:d})),Fe=on=>{ge.value!==on&&(be(on),t("popup-visible-change",on),t("update:popupVisible",on))},{headerValue:He,setHeaderValue:Je,headerOperations:rt,resetHeaderValue:ht}=z8(Xt({mode:r,value:x,defaultValue:E,selectedValue:Qe,format:X,onChange:on=>{const pn=Z(on),Qn=df(on,X.value),Kr=xu(on);t("picker-value-change",pn,Kr,Qn),t("update:pickerValue",pn)}})),[ut,,Ct]=nV(Xt({timePickerProps:g,selectedValue:Qe})),St=j(()=>!k.value&&!En(oe.value)),Gt=fe();Rt(ge,on=>{Ne(void 0),_e(void 0),Gt.value=void 0,on&&(ht(),Ct()),on||je(void 0)});function Tt(on,pn){var Qn,Kr;const wt=on?Z(on):void 0,Wt=df(on,X.value),hn=xu(on);hH(on,ae.value)&&(t("update:modelValue",wt),t("change",wt,hn,Wt),(Kr=(Qn=$.value)==null?void 0:Qn.onChange)==null||Kr.call(Qn)),pn&&t("ok",wt,hn,Wt)}function Mt(on,pn,Qn){H(on)||(Tt(on,Qn),re(on),Ne(void 0),_e(void 0),je(void 0),Gt.value=void 0,El(pn)&&Fe(pn))}function sn(on,pn){if(Ne(on),_e(void 0),je(void 0),Gt.value=void 0,pn){const Qn=on?Z(on):void 0,Kr=df(on,X.value),wt=xu(on);t("select",Qn,wt,Kr)}}function ct(on){F.value&&F.value.focus&&F.value.focus(on)}function Be(on,pn){return!ne.value&&!g.value?on:Vpe(Ka(),on,pn)}function Ae(on){M.value||Fe(on)}function Re(on){on.stopPropagation(),Mt(void 0),t("clear")}function Xe(){var on,pn;(pn=(on=$.value)==null?void 0:on.onBlur)==null||pn.call(on)}function dt(on){Fe(!0);const pn=on.target.value;if(je(pn),!j8(pn,U.value))return;const Qn=Rs(pn,U.value);H(Qn)||(q.value?sn(Qn):Mt(Qn,!0))}function Dt(){Mt(Qe.value,!1)}function pt(on){q.value?sn(on,!0):Mt(on,!1)}function Oe(on){const pn=Be(on,ut.value);pt(pn)}function xt(on){const pn=Be(Qe.value||Ka(),on);pt(pn)}function Zt(){Mt(Qe.value,!1,!0)}function tn(){e.disabledInput&&ct()}let Ft;gi(()=>{clearTimeout(Ft)});function rn(on){clearTimeout(Ft),_e(on),je(void 0)}function Jn(){clearTimeout(Ft),Ft=setTimeout(()=>{_e(void 0)},100)}function mr(on,pn){t("select-shortcut",pn),Mt(on,!1)}function yi(on){Gt.value=on}function Kt(){Gt.value="year"}function st(on){let pn=He.value;if(pn=pn.set("year",on.year()),Gt.value==="month"&&(pn=pn.set("month",on.month())),Je(pn),r.value==="quarter"||r.value==="month"){Gt.value=void 0;return}Gt.value=Gt.value==="year"?"month":void 0}const zt=j(()=>({format:U.value,...xa(g?.value||{},["defaultValue"]),visible:ge.value})),fn=j(()=>({...kf(e,["mode","shortcuts","shortcutsPosition","dayStartOfWeek","disabledDate","disabledTime","showTime","hideTrigger","abbreviation"]),showNowBtn:e.showNowBtn&&r.value==="date",prefixCls:B,format:X.value,value:Qe.value,visible:ge.value,showConfirmBtn:q.value,confirmBtnDisabled:ee.value,timePickerProps:zt.value,extra:n.extra,dateRender:n.cell,headerValue:He.value,headerIcons:{prev:n["icon-prev"],prevDouble:n["icon-prev-double"],next:n["icon-next"],nextDouble:n["icon-next-double"]},headerOperations:rt.value,timePickerValue:ut.value,headerMode:Gt.value,onCellClick:Oe,onTimePickerSelect:xt,onConfirm:Zt,onShortcutClick:mr,onShortcutMouseEnter:T.value?rn:void 0,onShortcutMouseLeave:T.value?Jn:void 0,onTodayBtnClick:pt,onHeaderLabelClick:yi,onHeaderSelect:st,onMonthHeaderClick:Kt}));return{prefixCls:B,refInput:F,panelProps:fn,panelValue:Qe,inputValue:Me,selectedValue:ae,inputFormat:oe,computedPlaceholder:W,panelVisible:ge,inputEditable:St,needConfirm:q,mergedDisabled:M,onPanelVisibleChange:Ae,onInputClear:Re,onInputChange:dt,onInputPressEnter:Dt,onInputBlur:Xe,onPanelClick:tn}}});function FOe(e,t,n,r,o,a){const s=Ie("IconCalendar"),l=Ie("DateInput"),c=Ie("PickerPanel"),d=Ie("Trigger");return e.hideTrigger?(z(),Ye(c,Yi(Vt({key:1},{...e.$attrs,...e.panelProps})),null,16)):(z(),Ye(d,Vt({key:0,trigger:"click","animation-name":"slide-dynamic-origin","auto-fit-transform-origin":"","click-to-close":!1,"popup-offset":4},e.triggerProps,{position:e.position,disabled:e.mergedDisabled||e.readonly,"prevent-focus":!0,"popup-visible":e.panelVisible,"unmount-on-close":e.unmountOnClose,"popup-container":e.popupContainer,onPopupVisibleChange:e.onPanelVisibleChange}),{content:de(()=>[O(c,Vt(e.panelProps,{onClick:e.onPanelClick}),null,16,["onClick"])]),default:de(()=>[vt(e.$slots,"default",{},()=>[O(l,Vt(e.$attrs,{ref:"refInput",size:e.size,focused:e.panelVisible,visible:e.panelVisible,error:e.error,disabled:e.mergedDisabled,readonly:!e.inputEditable||e.disabledInput,"allow-clear":e.allowClear&&!e.readonly,placeholder:e.computedPlaceholder,"input-value":e.inputValue,value:e.needConfirm?e.panelValue:e.selectedValue,format:e.inputFormat,onClear:e.onInputClear,onChange:e.onInputChange,onPressEnter:e.onInputPressEnter,onBlur:e.onInputBlur}),yo({"suffix-icon":de(()=>[vt(e.$slots,"suffix-icon",{},()=>[O(s)])]),_:2},[e.$slots.prefix?{name:"prefix",fn:de(()=>[vt(e.$slots,"prefix")]),key:"0"}:void 0]),1040,["size","focused","visible","error","disabled","readonly","allow-clear","placeholder","input-value","value","format","onClear","onChange","onPressEnter","onBlur"])])]),_:3},16,["position","disabled","popup-visible","unmount-on-close","popup-container","onPopupVisibleChange"]))}var nS=Ve(NOe,[["render",FOe]]),xR=Se({name:"DatePicker",props:{modelValue:{type:[Object,String,Number]},defaultValue:{type:[Object,String,Number]},format:{type:[String,Function]},dayStartOfWeek:{type:Number,default:0},showTime:{type:Boolean},timePickerProps:{type:Object},disabled:{type:Boolean},disabledDate:{type:Function},disabledTime:{type:Function},showNowBtn:{type:Boolean,default:!0}},setup(e,{attrs:t,slots:n}){return()=>O(nS,Vt(e,t,{mode:"date"}),n)}}),kw=Se({name:"WeekPicker",props:{modelValue:{type:[Object,String,Number]},defaultValue:{type:[Object,String,Number]},format:{type:String,default:"gggg-wo"},valueFormat:{type:String,default:"YYYY-MM-DD"},dayStartOfWeek:{type:Number,default:0}},setup(e,{attrs:t,slots:n}){return()=>O(nS,Vt(e,t,{mode:"week"}),n)}}),xw=Se({name:"MonthPicker",props:{modelValue:{type:[Object,String,Number]},defaultValue:{type:[Object,String,Number]},format:{type:String,default:"YYYY-MM"}},setup(e,{attrs:t,slots:n}){return()=>O(nS,Vt(e,t,{mode:"month"}),n)}}),Cw=Se({name:"YearPicker",props:{modelValue:{type:[Object,String,Number]},defaultValue:{type:[Object,String,Number]},format:{type:String,default:"YYYY"}},setup(e,{attrs:t,slots:n}){return()=>O(nS,Vt(e,t,{mode:"year"}),n)}}),ww=Se({name:"QuarterPicker",props:{modelValue:{type:[Object,String,Number]},defaultValue:{type:[Object,String,Number]},format:{type:String,default:"YYYY-[Q]Q"},valueFormat:{type:String,default:"YYYY-MM"}},setup(e,{attrs:t,slots:n}){return()=>O(nS,Vt(e,t,{mode:"quarter"}),n)}});function jOe(e){const{modelValue:t,defaultValue:n,format:r}=nn(e),o=j(()=>dc(Qj(t.value),r.value)),a=j(()=>dc(Qj(n.value),r.value)),[s,l]=Ga(An(o.value)?An(a.value)?[]:a.value:o.value);return Rt(o,()=>{An(o.value)&&l([])}),{value:j(()=>o.value||s.value),setValue:l}}function VOe(e){const{startHeaderMode:t,endHeaderMode:n,mode:r,value:o,defaultValue:a,selectedValue:s,format:l,onChange:c}=nn(e),d=j(()=>["date","week"].includes(r.value)),h=j(()=>d.value?"M":"y"),p=(ke,Ne)=>ke.isSame(Ne,h.value),{span:v,superSpan:g}=Jpe(Xt({mode:r})),y=j(()=>t?.value||r.value),S=j(()=>n?.value||r.value),k=j(()=>{var ke;return(ke=o.value)==null?void 0:ke[0]}),C=j(()=>{var ke;return(ke=o.value)==null?void 0:ke[1]}),x=j(()=>{var ke;return(ke=a.value)==null?void 0:ke[0]}),E=j(()=>{var ke;return(ke=a.value)==null?void 0:ke[1]}),_=ke=>{c?.value&&c.value(ke)},{headerValue:T,setHeaderValue:D,headerOperations:P,getDefaultLocalValue:M}=z8(Xt({mode:y,value:k,defaultValue:x,selectedValue:void 0,format:l,onChange:ke=>{_([ke,$.value])}})),{headerValue:$,setHeaderValue:L,headerOperations:B,getDefaultLocalValue:F}=z8(Xt({mode:S,value:C,defaultValue:E,selectedValue:void 0,format:l,onChange:ke=>{_([T.value,ke])}})),W=ke=>{const Ne=p(T.value,ke[0]),me=p($.value,ke[1]);D(ke[0],!1),L(ke[1],!1),(!Ne||!me)&&c?.value&&c?.value(ke)};function U(ke){let[Ne,me]=t_(ke);const _e=Ys.add(Ne,v.value,"M");return me.isBefore(_e,h.value)&&(me=_e),[Ne,me]}function G(){var ke,Ne;let me=(ke=s.value)==null?void 0:ke[0],_e=(Ne=s.value)==null?void 0:Ne[1];return me&&_e&&([me,_e]=t_([me,_e])),[me,_e]}const[X,oe]=G(),[Z,H]=U([X||T.value,oe||$.value]);D(Z,!1),L(H,!1);const q=()=>{const ke=M(),Ne=F();Cn(()=>{const[me,_e]=G(),[Ue,Qe]=U([me||ke,_e||Ne]);W([Ue,Qe])})},ee=j(()=>Ys.add(T.value,v.value,"M").isBefore($.value,h.value)),ne=j(()=>Ys.add(T.value,g.value,"M").isBefore($.value,h.value)),ae=j(()=>{const ke=["onSuperPrev"];return d.value&&ke.push("onPrev"),ee.value&&d&&ke.push("onNext"),ne.value&&ke.push("onSuperNext"),kf(P.value,ke)}),re=j(()=>{const ke=["onSuperNext"];return d.value&&ke.push("onNext"),ee.value&&d.value&&ke.push("onPrev"),ne.value&&ke.push("onSuperPrev"),kf(B.value,ke)});return{startHeaderValue:T,endHeaderValue:$,startHeaderOperations:ae,endHeaderOperations:re,setHeaderValue:W,resetHeaderValue:q}}const zOe=Se({name:"DateInputRange",components:{IconHover:Lo,IconClose:ds,FeedbackIcon:Y_},props:{size:{type:String},focused:{type:Boolean},focusedIndex:{type:Number},error:{type:Boolean},disabled:{type:[Boolean,Array],default:!1},readonly:{type:Boolean},allowClear:{type:Boolean},placeholder:{type:Array,default:()=>[]},inputValue:{type:Array},value:{type:Array,default:()=>[]},format:{type:[String,Function],required:!0}},emits:["focused-index-change","update:focusedIndex","change","clear","press-enter"],setup(e,{emit:t,slots:n}){const{error:r,focused:o,disabled:a,size:s,value:l,format:c,focusedIndex:d,inputValue:h}=nn(e),{mergedSize:p,mergedDisabled:v,mergedError:g,feedback:y}=Do({size:s,error:r}),{mergedSize:S}=wa(p),k=fe(),C=fe(),x=X=>v.value?v.value:or(a.value)?a.value[X]:a.value,E=j(()=>x(0)),_=j(()=>x(1)),T=Te("picker"),D=j(()=>[T,`${T}-range`,`${T}-size-${S.value}`,{[`${T}-focused`]:o.value,[`${T}-disabled`]:E.value&&_.value,[`${T}-error`]:g.value,[`${T}-has-prefix`]:n.prefix}]);function P(X){return[`${T}-input`,{[`${T}-input-active`]:X===d?.value}]}function M(X){var oe,Z;if(h?.value)return(oe=h?.value)==null?void 0:oe[X];const H=(Z=l?.value)==null?void 0:Z[X];if(H&&zc(H))return En(c.value)?c.value(H):H.format(c.value)}const $=j(()=>M(0)),L=j(()=>M(1));function B(X){t("focused-index-change",X),t("update:focusedIndex",X)}function F(X){X.stopPropagation(),t("change",X)}function W(){t("press-enter")}function U(X){X.preventDefault()}function G(X){t("clear",X)}return{prefixCls:T,classNames:D,refInput0:k,refInput1:C,disabled0:E,disabled1:_,mergedDisabled:v,getDisabled:x,getInputWrapClassName:P,displayValue0:$,displayValue1:L,changeFocusedInput:B,onChange:F,onPressEnter:W,onPressTab:U,onClear:G,feedback:y}},methods:{focus(e){const t=Ze(e)?e:this.focusedIndex,n=t===0?this.refInput0:this.refInput1;!An(t)&&!this.getDisabled(t)&&n&&n.focus&&n.focus()},blur(){const e=this.focusedIndex===0?this.refInput0:this.refInput1;e&&e.blur&&e.blur()}}}),UOe=["disabled","placeholder","value"],HOe=["disabled","placeholder","value"];function WOe(e,t,n,r,o,a){const s=Ie("IconClose"),l=Ie("IconHover"),c=Ie("FeedbackIcon");return z(),Q("div",{class:ue(e.classNames)},[e.$slots.prefix?(z(),Q("div",{key:0,class:ue(`${e.prefixCls}-prefix`)},[vt(e.$slots,"prefix")],2)):Le("v-if",!0),I("div",{class:ue(e.getInputWrapClassName(0))},[I("input",Vt({ref:"refInput0",disabled:e.disabled0,placeholder:e.placeholder[0],value:e.displayValue0},e.readonly?{readonly:!0}:{},{onInput:t[0]||(t[0]=(...d)=>e.onChange&&e.onChange(...d)),onKeydown:[t[1]||(t[1]=Ch((...d)=>e.onPressEnter&&e.onPressEnter(...d),["enter"])),t[2]||(t[2]=Ch((...d)=>e.onPressTab&&e.onPressTab(...d),["tab"]))],onClick:t[3]||(t[3]=()=>e.changeFocusedInput(0))}),null,16,UOe)],2),I("span",{class:ue(`${e.prefixCls}-separator`)},[vt(e.$slots,"separator",{},()=>[t[8]||(t[8]=We(" - "))])],2),I("div",{class:ue(e.getInputWrapClassName(1))},[I("input",Vt({ref:"refInput1",disabled:e.disabled1,placeholder:e.placeholder[1],value:e.displayValue1},e.readonly?{readonly:!0}:{},{onInput:t[4]||(t[4]=(...d)=>e.onChange&&e.onChange(...d)),onKeydown:[t[5]||(t[5]=Ch((...d)=>e.onPressEnter&&e.onPressEnter(...d),["enter"])),t[6]||(t[6]=Ch((...d)=>e.onPressTab&&e.onPressTab(...d),["tab"]))],onClick:t[7]||(t[7]=()=>e.changeFocusedInput(1))}),null,16,HOe)],2),I("div",{class:ue(`${e.prefixCls}-suffix`)},[e.allowClear&&!e.mergedDisabled&&e.value.length===2?(z(),Ye(l,{key:0,prefix:e.prefixCls,class:ue(`${e.prefixCls}-clear-icon`),onClick:e.onClear},{default:de(()=>[O(s)]),_:1},8,["prefix","class","onClick"])):Le("v-if",!0),I("span",{class:ue(`${e.prefixCls}-suffix-icon`)},[vt(e.$slots,"suffix-icon")],2),e.feedback?(z(),Ye(c,{key:1,type:e.feedback},null,8,["type"])):Le("v-if",!0)],2)],2)}var r0e=Ve(zOe,[["render",WOe]]);const GOe=Se({name:"DateRangePikerPanel",components:{PanelShortcuts:jpe,PanelFooter:Zpe,RenderFunction:Jh,DatePanel:CH,WeekPanel:Gpe,MonthPanel:Kpe,YearPanel:qpe,QuarterPanel:Ype},props:{mode:{type:String,default:"date"},value:{type:Array,default:()=>[]},footerValue:{type:Array},timePickerValue:{type:Array},showTime:{type:Boolean},showConfirmBtn:{type:Boolean},prefixCls:{type:String,required:!0},shortcuts:{type:Array,default:()=>[]},shortcutsPosition:{type:String,default:"bottom"},format:{type:String,required:!0},dayStartOfWeek:{type:Number,default:0},disabledDate:{type:Function},disabledTime:{type:Function},timePickerProps:{type:Object},extra:{type:Function},dateRender:{type:Function},hideTrigger:{type:Boolean},startHeaderProps:{type:Object,default:()=>({})},endHeaderProps:{type:Object,default:()=>({})},confirmBtnDisabled:{type:Boolean},disabled:{type:Array,default:()=>[!1,!1]},visible:{type:Boolean},startHeaderMode:{type:String},endHeaderMode:{type:String},abbreviation:{type:Boolean}},emits:["cell-click","cell-mouse-enter","time-picker-select","shortcut-click","shortcut-mouse-enter","shortcut-mouse-leave","confirm","start-header-label-click","end-header-label-click","start-header-select","end-header-select"],setup(e,{emit:t}){const{prefixCls:n,shortcuts:r,shortcutsPosition:o,format:a,hideTrigger:s,value:l,disabledDate:c,disabledTime:d,startHeaderProps:h,endHeaderProps:p,dateRender:v,visible:g,startHeaderMode:y,endHeaderMode:S}=nn(e),k=j(()=>or(r.value)&&r.value.length),C=j(()=>[`${n.value}-range-container`,{[`${n.value}-range-container-panel-only`]:s.value,[`${n.value}-range-container-shortcuts-placement-left`]:k.value&&o.value==="left",[`${n.value}-range-container-shortcuts-placement-right`]:k.value&&o.value==="right"}]),x=fe("date");Rt(g,(ne,ae)=>{ne&&!ae&&(x.value="date")});function E(ne){return dc(Qj(En(ne.value)?ne.value():ne.value),ne.format||a.value)}function _(ne){t("shortcut-click",E(ne),ne)}function T(ne){t("shortcut-mouse-enter",E(ne))}function D(ne){t("shortcut-mouse-leave",E(ne))}function P(ne){t("cell-click",ne)}function M(ne){t("cell-mouse-enter",ne)}function $(){t("confirm")}function L(ne){t("time-picker-select",ne,"start")}function B(ne){t("time-picker-select",ne,"end")}function F(ne){t("start-header-label-click",ne)}function W(ne){t("end-header-label-click",ne)}function U(ne){t("start-header-select",ne)}function G(ne){t("end-header-select",ne)}function X(ne){return En(c?.value)?ae=>{var re;return((re=c?.value)==null?void 0:re.call(c,ae,ne===0?"start":"end"))||!1}:void 0}function oe(ne){return En(d?.value)?ae=>{var re;return((re=d?.value)==null?void 0:re.call(d,ae,ne===0?"start":"end"))||!1}:void 0}function Z(ne){return En(v?.value)?ae=>{var re;const ke={...ae,type:ne===0?"start":"end"};return(re=v?.value)==null?void 0:re.call(v,ke)}:void 0}const H=Xt({prefixCls:n,shortcuts:r,onItemClick:_,onItemMouseEnter:T,onItemMouseLeave:D}),q=j(()=>({...h.value,rangeValues:l.value,disabledDate:X(0),dateRender:Z(0),onSelect:y.value?U:P,onCellMouseEnter:M,onHeaderLabelClick:F})),ee=j(()=>({...p.value,rangeValues:l.value,disabledDate:X(1),dateRender:Z(1),onSelect:S.value?G:P,onCellMouseEnter:M,onHeaderLabelClick:W}));return{pick:kf,classNames:C,showShortcuts:k,shortcutsProps:H,startPanelProps:q,endPanelProps:ee,getDisabledTimeFunc:oe,onConfirmBtnClick:$,currentDateView:x,onStartTimePickerSelect:L,onEndTimePickerSelect:B,onStartHeaderPanelSelect:U,onEndHeaderPanelSelect:G}}});function KOe(e,t,n,r,o,a){const s=Ie("PanelShortcuts"),l=Ie("YearPanel"),c=Ie("MonthPanel"),d=Ie("WeekPanel"),h=Ie("QuarterPanel"),p=Ie("DatePanel"),v=Ie("RenderFunction"),g=Ie("PanelFooter");return z(),Q("div",{class:ue(e.classNames)},[e.showShortcuts&&e.shortcutsPosition==="left"?(z(),Ye(s,Yi(Vt({key:0},e.shortcutsProps)),null,16)):Le("v-if",!0),I("div",{class:ue(`${e.prefixCls}-range-panel-wrapper`)},[Le(" panel "),I("div",{class:ue(`${e.prefixCls}-range`)},[I("div",{class:ue(`${e.prefixCls}-range-wrapper`)},[e.startHeaderMode||e.endHeaderMode?(z(),Q(Nt,{key:0},[e.startHeaderMode==="year"?(z(),Ye(l,Yi(Vt({key:0},e.startPanelProps)),null,16)):Le("v-if",!0),e.endHeaderMode==="year"?(z(),Ye(l,Yi(Vt({key:1},e.endPanelProps)),null,16)):e.startHeaderMode==="month"?(z(),Ye(c,Vt({key:2},e.startPanelProps,{abbreviation:e.abbreviation}),null,16,["abbreviation"])):e.endHeaderMode==="month"?(z(),Ye(c,Vt({key:3},e.endPanelProps,{abbreviation:e.abbreviation}),null,16,["abbreviation"])):Le("v-if",!0)],64)):(z(),Q(Nt,{key:1},[Le(" week "),e.mode==="week"?(z(),Q(Nt,{key:0},[O(d,Vt(e.startPanelProps,{"day-start-of-week":e.dayStartOfWeek}),null,16,["day-start-of-week"]),O(d,Vt(e.endPanelProps,{"day-start-of-week":e.dayStartOfWeek}),null,16,["day-start-of-week"])],64)):e.mode==="month"?(z(),Q(Nt,{key:1},[Le(" month "),O(c,Vt(e.startPanelProps,{abbreviation:e.abbreviation}),null,16,["abbreviation"]),O(c,Vt(e.endPanelProps,{abbreviation:e.abbreviation}),null,16,["abbreviation"])],64)):e.mode==="year"?(z(),Q(Nt,{key:2},[Le(" year "),O(l,Yi(Sa(e.startPanelProps)),null,16),O(l,Yi(Sa(e.endPanelProps)),null,16)],64)):e.mode==="quarter"?(z(),Q(Nt,{key:3},[Le(" quarter "),O(h,Yi(Sa(e.startPanelProps)),null,16),O(h,Yi(Sa(e.endPanelProps)),null,16)],64)):(z(),Q(Nt,{key:4},[Le(" date "),O(p,Vt({currentView:e.currentDateView,"onUpdate:currentView":t[0]||(t[0]=y=>e.currentDateView=y)},e.startPanelProps,{"is-range":"",value:e.value&&e.value[0],"footer-value":e.footerValue&&e.footerValue[0],"time-picker-value":e.timePickerValue&&e.timePickerValue[0],"day-start-of-week":e.dayStartOfWeek,"show-time":e.showTime,"time-picker-props":e.timePickerProps,"disabled-time":e.getDisabledTimeFunc(0),disabled:e.disabled[0],onTimePickerSelect:e.onStartTimePickerSelect}),null,16,["currentView","value","footer-value","time-picker-value","day-start-of-week","show-time","time-picker-props","disabled-time","disabled","onTimePickerSelect"]),O(p,Vt({currentView:e.currentDateView,"onUpdate:currentView":t[1]||(t[1]=y=>e.currentDateView=y)},e.endPanelProps,{"is-range":"",value:e.value&&e.value[1],"footer-value":e.footerValue&&e.footerValue[1],"time-picker-value":e.timePickerValue&&e.timePickerValue[1],"day-start-of-week":e.dayStartOfWeek,"show-time":e.showTime,"time-picker-props":e.timePickerProps,"disabled-time":e.getDisabledTimeFunc(1),disabled:e.disabled[1],onTimePickerSelect:e.onEndTimePickerSelect}),null,16,["currentView","value","footer-value","time-picker-value","day-start-of-week","show-time","time-picker-props","disabled-time","disabled","onTimePickerSelect"])],64))],64))],2)],2),Le(" footer "),O(g,{"prefix-cls":e.prefixCls,"show-today-btn":!1,"show-confirm-btn":e.showConfirmBtn,"confirm-btn-disabled":e.confirmBtnDisabled,onConfirmBtnClick:e.onConfirmBtnClick},yo({_:2},[e.extra||e.$slots.extra?{name:"extra",fn:de(()=>[e.$slots.extra?vt(e.$slots,"extra",{key:0}):(z(),Ye(v,{key:1,"render-func":e.extra},null,8,["render-func"]))]),key:"0"}:void 0,e.showShortcuts&&e.shortcutsPosition==="bottom"?{name:"btn",fn:de(()=>[O(s,Yi(Sa(e.shortcutsProps)),null,16)]),key:"1"}:void 0]),1032,["prefix-cls","show-confirm-btn","confirm-btn-disabled","onConfirmBtnClick"])],2),e.showShortcuts&&e.shortcutsPosition==="right"?(z(),Ye(s,Yi(Vt({key:1},e.shortcutsProps)),null,16)):Le("v-if",!0)],2)}var qOe=Ve(GOe,[["render",KOe]]);function YOe(e){const{timePickerProps:t,selectedValue:n}=nn(e),r=j(()=>{var C;return(C=n?.value)==null?void 0:C[0]}),o=j(()=>{var C;return(C=n?.value)==null?void 0:C[1]}),a=j(()=>{var C;return(C=t?.value)==null?void 0:C.defaultValue}),s=j(()=>or(a.value)?{...t?.value,defaultValue:a.value[0]}:t?.value),l=j(()=>or(a.value)?{...t?.value,defaultValue:a.value[1]}:t?.value),[c,d,h]=nV(Xt({timePickerProps:s,selectedValue:r})),[p,v,g]=nV(Xt({timePickerProps:l,selectedValue:o})),y=j(()=>[c.value,p.value]);function S(C){C&&(d(C[0]),v(C[1]))}function k(){h(),g()}return[y,S,k]}const XOe=Se({name:"RangePicker",components:{RangePickerPanel:qOe,DateRangeInput:r0e,Trigger:ha,IconCalendar:tS},inheritAttrs:!1,props:{mode:{type:String,default:"date"},modelValue:{type:Array},defaultValue:{type:Array},pickerValue:{type:Array},defaultPickerValue:{type:Array},disabled:{type:[Boolean,Array],default:!1},dayStartOfWeek:{type:Number,default:0},format:{type:String},valueFormat:{type:String},showTime:{type:Boolean},timePickerProps:{type:Object},placeholder:{type:Array},disabledDate:{type:Function},disabledTime:{type:Function},separator:{type:String},exchangeTime:{type:Boolean,default:!0},popupContainer:{type:[String,Object]},locale:{type:Object},hideTrigger:{type:Boolean},allowClear:{type:Boolean,default:!0},readonly:{type:Boolean},error:{type:Boolean},size:{type:String},shortcuts:{type:Array,default:()=>[]},shortcutsPosition:{type:String,default:"bottom"},position:{type:String,default:"bl"},popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean},triggerProps:{type:Object},unmountOnClose:{type:Boolean},previewShortcut:{type:Boolean,default:!0},showConfirmBtn:{type:Boolean},disabledInput:{type:Boolean,default:!1},abbreviation:{type:Boolean,default:!0}},emits:{change:(e,t,n)=>!0,"update:modelValue":e=>!0,select:(e,t,n)=>!0,"popup-visible-change":e=>!0,"update:popupVisible":e=>!0,ok:(e,t,n)=>!0,clear:()=>!0,"select-shortcut":e=>!0,"picker-value-change":(e,t,n)=>!0,"update:pickerValue":e=>!0},setup(e,{emit:t,slots:n}){const{mode:r,showTime:o,format:a,modelValue:s,defaultValue:l,popupVisible:c,defaultPopupVisible:d,placeholder:h,timePickerProps:p,disabled:v,disabledDate:g,disabledTime:y,locale:S,pickerValue:k,defaultPickerValue:C,valueFormat:x,size:E,error:_,dayStartOfWeek:T,exchangeTime:D,previewShortcut:P,showConfirmBtn:M}=nn(e),{locale:$}=No(),L=On(Ya,void 0);Os(()=>{hpe($.value,T.value)});const B=j(()=>{var nt;return!(!D.value||!((nt=L?.exchangeTime)==null||nt))}),{mergedSize:F,mergedDisabled:W,mergedError:U,eventHandlers:G}=Do({size:E,error:_}),X=t0e(Xt({locale:S})),oe=Te("picker"),Z=j(()=>h?.value||{date:X("datePicker.rangePlaceholder.date"),month:X("datePicker.rangePlaceholder.month"),year:X("datePicker.rangePlaceholder.year"),week:X("datePicker.rangePlaceholder.week"),quarter:X("datePicker.rangePlaceholder.quarter")}[r.value]||X("datePicker.rangePlaceholder.date")),{format:H,valueFormat:q,parseValueFormat:ee}=Qpe(Xt({mode:r,format:a,showTime:o,valueFormat:x})),ne=j(()=>{const nt=v.value===!0||W.value||or(v.value)&&v.value[0]===!0,at=v.value===!0||W.value||or(v.value)&&v.value[1]===!0;return[nt,at]}),ae=j(()=>ne.value[0]&&ne.value[1]);function re(nt=0){return ne.value[nt]?nt^1:nt}const ke=fe(),Ne=fe(re()),me=j(()=>{const nt=Ne.value,at=nt^1;return ne.value[at]?nt:at}),_e=j(()=>ne.value[Ne.value^1]),{value:Ue,setValue:Qe}=jOe(Xt({modelValue:s,defaultValue:l,format:ee})),[Me,je]=Ga(),[ge,be]=Ga(),Fe=j(()=>{var nt;return(nt=Me.value)!=null?nt:Ue.value}),He=j(()=>{var nt,at;return(at=(nt=ge.value)!=null?nt:Me.value)!=null?at:Ue.value}),[Je,rt]=Ga(),ht=fe(),ut=fe(),[Ct,St]=fa(d.value,Xt({value:c})),Gt=nt=>{Ct.value!==nt&&(St(nt),t("popup-visible-change",nt),t("update:popupVisible",nt))},{startHeaderValue:Tt,endHeaderValue:Mt,startHeaderOperations:sn,endHeaderOperations:ct,resetHeaderValue:Be,setHeaderValue:Ae}=VOe(Xt({mode:r,startHeaderMode:ht,endHeaderMode:ut,value:k,defaultValue:C,selectedValue:He,format:ee,onChange:nt=>{const at=kR(nt,q.value),Ot=df(nt,ee.value),Qt=xu(nt);t("picker-value-change",at,Qt,Ot),t("update:pickerValue",at)}}));function Re(nt){ht.value=nt}function Xe(nt){ut.value=nt}function dt(nt){let at=Tt.value;at=at.set("year",nt.year()),ht.value==="month"&&(at=at.set("month",nt.month())),Ae([at,Mt.value]),ht.value=void 0}function Dt(nt){let at=Mt.value;at=at.set("year",nt.year()),ut.value==="month"&&(at=at.set("month",nt.month())),Ae([Tt.value,at]),ut.value=void 0}const pt=fe([He.value[0]||Ka(),He.value[1]||Ka()]);Rt(He,()=>{const[nt,at]=He.value;pt.value[0]=nt||pt.value[0],pt.value[1]=at||pt.value[1]});const[Oe,xt,Zt]=YOe(Xt({timePickerProps:p,selectedValue:He})),tn=j(()=>r.value==="date"&&o.value),Ft=j(()=>tn.value||p.value),rn=e0e(Xt({mode:r,isRange:!0,showTime:o,disabledDate:g,disabledTime:y})),Jn=j(()=>tn.value||M.value),mr=j(()=>Jn.value&&(!Vp(Fe.value)||rn(Fe.value[0],"start")||rn(Fe.value[1],"end")));Rt(Ct,nt=>{ht.value=void 0,ut.value=void 0,je(void 0),be(void 0),nt&&(Be(),Zt(),Ne.value=re(Ne.value),Cn(()=>pn(Ne.value))),nt||rt(void 0)}),Rt(Ne,()=>{e.disabledInput&&(pn(Ne.value),rt(void 0))});function yi(nt,at){var Ot,Qt;const qt=nt?kR(nt,q.value):void 0,yn=df(nt,ee.value),Sn=xu(nt);hH(nt,Ue.value)&&(t("update:modelValue",qt),t("change",qt,Sn,yn),(Qt=(Ot=G.value)==null?void 0:Ot.onChange)==null||Qt.call(Ot)),at&&t("ok",qt,Sn,yn)}function Kt(nt){let at=t_(nt);return Ft.value&&!B.value&&(at=[Qn(at[0],nt[0]),Qn(at[1],nt[1])]),at}function st(nt,at,Ot){if(rn(nt?.[0],"start")||rn(nt?.[1],"end"))return;let Qt=nt?[...nt]:void 0;Vp(Qt)&&(Qt=Kt(Qt)),yi(Qt,Ot),Qe(Qt||[]),je(void 0),be(void 0),rt(void 0),ht.value=void 0,ut.value=void 0,El(at)&&Gt(at)}function zt(nt){const at=kR(nt,q.value),Ot=df(nt,ee.value),Qt=xu(nt);t("select",at,Qt,Ot)}function fn(nt,at){const{emitSelect:Ot=!1,updateHeader:Qt=!1}=at||{};let qt=[...nt];Vp(qt)&&(qt=Kt(qt)),je(qt),be(void 0),rt(void 0),ht.value=void 0,ut.value=void 0,Ot&&zt(qt),Qt&&Be()}function on(nt,at){const{updateHeader:Ot=!1}=at||{};be(nt),rt(void 0),Ot&&Be()}function pn(nt){ke.value&&ke.value.focus&&ke.value.focus(nt)}function Qn(nt,at){return Ft.value?Vpe(Ka(),nt,at):nt}function Kr(nt){Gt(nt)}function wt(nt){if(Me.value&&He.value[me.value]&&(!Jn.value||!Vp(Me.value))){const at=[...He.value],Ot=Qn(nt,Oe.value[Ne.value]);at[Ne.value]=Ot,on(at)}}function Wt(nt=!1){return _e.value?[...Ue.value]:Me.value?nt||!Vp(Me.value)?[...Me.value]:[]:nt?[...Ue.value]:[]}function hn(nt){const at=Wt(),Ot=Qn(nt,Oe.value[Ne.value]);at[Ne.value]=Ot,zt(at),!Jn.value&&Vp(at)?st(at,!1):(fn(at),Vp(at)?Ne.value=0:Ne.value=me.value)}function mn(nt,at){const Ot=at==="start"?0:1,Qt=Qn(Oe.value[Ot],nt),qt=[...Oe.value];qt[Ot]=Qt,xt(qt);const yn=Wt(!0);yn[Ot]&&(yn[Ot]=Qt,fn(yn,{emitSelect:!0}))}let ln;gi(()=>{clearTimeout(ln)});function le(nt){clearTimeout(ln),on(nt,{updateHeader:!0})}function ie(){clearTimeout(ln),ln=setTimeout(()=>{be(void 0),rt(void 0),Be()},100)}function te(nt,at){t("select-shortcut",at),st(nt,!1)}function J(){st(He.value,!1,!0)}function he(nt){nt.stopPropagation(),st(void 0),t("clear")}function xe(nt){Gt(!0);const at=nt.target.value;if(!at){rt(void 0);return}const Ot=df(He.value,H.value),Qt=or(Je.value)?[...Je.value]:Ot||[];if(Qt[Ne.value]=at,rt(Qt),!j8(at,H.value))return;const qt=Rs(at,H.value);if(rn(qt,Ne.value===0?"start":"end"))return;const yn=or(He.value)?[...He.value]:[];yn[Ne.value]=qt,fn(yn,{updateHeader:!0})}function Ce(){P9e(He.value)?st(He.value,!1):Ne.value=me.value}const Pe=j(()=>({format:H.value,...xa(p?.value||{},["defaultValue"]),visible:Ct.value})),lt=j(()=>({prev:n["icon-prev"],prevDouble:n["icon-prev-double"],next:n["icon-next"],nextDouble:n["icon-next-double"]})),it=Xt({headerValue:Tt,headerOperations:sn,headerIcons:lt}),gt=Xt({headerValue:Mt,headerOperations:ct,headerIcons:lt}),we=j(()=>({...kf(e,["mode","showTime","shortcuts","shortcutsPosition","dayStartOfWeek","disabledDate","disabledTime","hideTrigger","abbreviation"]),prefixCls:oe,format:ee.value,value:He.value,showConfirmBtn:Jn.value,confirmBtnDisabled:mr.value,timePickerValue:Oe.value,timePickerProps:Pe.value,extra:n.extra,dateRender:n.cell,startHeaderProps:it,endHeaderProps:gt,footerValue:pt.value,disabled:ne.value,visible:Ct.value,onCellClick:hn,onCellMouseEnter:wt,onShortcutClick:te,onShortcutMouseEnter:P.value?le:void 0,onShortcutMouseLeave:P.value?ie:void 0,onConfirm:J,onTimePickerSelect:mn,startHeaderMode:ht.value,endHeaderMode:ut.value,onStartHeaderLabelClick:Re,onEndHeaderLabelClick:Xe,onStartHeaderSelect:dt,onEndHeaderSelect:Dt}));return{prefixCls:oe,refInput:ke,computedFormat:H,computedPlaceholder:Z,panelVisible:Ct,panelValue:He,inputValue:Je,focusedIndex:Ne,triggerDisabled:ae,mergedSize:F,mergedError:U,onPanelVisibleChange:Kr,onInputClear:he,onInputChange:xe,onInputPressEnter:Ce,rangePanelProps:we}}});function ZOe(e,t,n,r,o,a){const s=Ie("IconCalendar"),l=Ie("DateRangeInput"),c=Ie("RangePickerPanel"),d=Ie("Trigger");return e.hideTrigger?(z(),Ye(c,Yi(Vt({key:1},{...e.$attrs,...e.rangePanelProps})),null,16)):(z(),Ye(d,Vt({key:0,trigger:"click","animation-name":"slide-dynamic-origin","auto-fit-transform-origin":"","click-to-close":!1,"popup-offset":4},e.triggerProps,{"unmount-on-close":e.unmountOnClose,position:e.position,disabled:e.triggerDisabled||e.readonly,"popup-visible":e.panelVisible,"popup-container":e.popupContainer,onPopupVisibleChange:e.onPanelVisibleChange}),{content:de(()=>[O(c,Yi(Sa(e.rangePanelProps)),null,16)]),default:de(()=>[vt(e.$slots,"default",{},()=>[O(l,Vt({ref:"refInput"},e.$attrs,{focusedIndex:e.focusedIndex,"onUpdate:focusedIndex":t[0]||(t[0]=h=>e.focusedIndex=h),size:e.size,focused:e.panelVisible,visible:e.panelVisible,error:e.error,disabled:e.disabled,readonly:e.readonly||e.disabledInput,"allow-clear":e.allowClear&&!e.readonly,placeholder:e.computedPlaceholder,"input-value":e.inputValue,value:e.panelValue,format:e.computedFormat,onClear:e.onInputClear,onChange:e.onInputChange,onPressEnter:e.onInputPressEnter}),yo({"suffix-icon":de(()=>[vt(e.$slots,"suffix-icon",{},()=>[O(s)])]),separator:de(()=>[vt(e.$slots,"separator",{},()=>[We(ze(e.separator||"-"),1)])]),_:2},[e.$slots.prefix?{name:"prefix",fn:de(()=>[vt(e.$slots,"prefix")]),key:"0"}:void 0]),1040,["focusedIndex","size","focused","visible","error","disabled","readonly","allow-clear","placeholder","input-value","value","format","onClear","onChange","onPressEnter"])])]),_:3},16,["unmount-on-close","position","disabled","popup-visible","popup-container","onPopupVisibleChange"]))}var Ew=Ve(XOe,[["render",ZOe]]);const i0e=Object.assign(xR,{WeekPicker:kw,MonthPicker:xw,YearPicker:Cw,QuarterPicker:ww,RangePicker:Ew,install:(e,t)=>{Xn(e,t);const n=Yn(t);e.component(n+xR.name,xR),e.component(n+Cw.name,Cw),e.component(n+ww.name,ww),e.component(n+xw.name,xw),e.component(n+kw.name,kw),e.component(n+Ew.name,Ew)}}),H8=["xxl","xl","lg","md","sm","xs"],yx={xs:"(max-width: 575px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)",xxl:"(min-width: 1600px)"};let mv=[],JOe=-1,bx={};const W8={matchHandlers:{},dispatch(e,t){return bx=e,mv.length<1?!1:(mv.forEach(n=>{n.func(bx,t)}),!0)},subscribe(e){mv.length===0&&this.register();const t=(++JOe).toString();return mv.push({token:t,func:e}),e(bx,null),t},unsubscribe(e){mv=mv.filter(t=>t.token!==e),mv.length===0&&this.unregister()},unregister(){Object.keys(yx).forEach(e=>{const t=yx[e];if(!t)return;const n=this.matchHandlers[t];n&&n.mql&&n.listener&&(n.mql.removeEventListener?n.mql.removeEventListener("change",n.listener):n.mql.removeListener(n.listener))})},register(){Object.keys(yx).forEach(e=>{const t=yx[e];if(!t)return;const n=({matches:o})=>{this.dispatch({...bx,[e]:o},e)},r=window.matchMedia(t);r.addEventListener?r.addEventListener("change",n):r.addListener(n),this.matchHandlers[t]={mql:r,listener:n},n(r)})}};function pre(e){return br(e)}function Dh(e,t,n=!1){const r=fe({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),o=j(()=>{let s=t;if(pre(e.value))for(let l=0;l{a=W8.subscribe(s=>{pre(e.value)&&(r.value=s)})}),gi(()=>{a&&W8.unsubscribe(a)}),o}var CR=Se({name:"Descriptions",props:{data:{type:Array,default:()=>[]},column:{type:[Number,Object],default:3},title:String,layout:{type:String,default:"horizontal"},align:{type:[String,Object],default:"left"},size:{type:String},bordered:{type:Boolean,default:!1},labelStyle:{type:Object},valueStyle:{type:Object},tableLayout:{type:String,default:"auto"}},setup(e,{slots:t}){const{column:n,size:r}=nn(e),o=Te("descriptions"),{mergedSize:a}=wa(r),s=Dh(n,3,!0),l=j(()=>{var T;return(T=br(e.align)?e.align.label:e.align)!=null?T:"left"}),c=j(()=>{var T;return(T=br(e.align)?e.align.value:e.align)!=null?T:"left"}),d=j(()=>({textAlign:l.value,...e.labelStyle})),h=j(()=>({textAlign:c.value,...e.valueStyle})),p=T=>{const D=[];let P=[],M=0;const $=()=>{if(P.length){const L=s.value-M;P[P.length-1].span+=L,D.push(P)}};return T.forEach(L=>{var B,F;const W=Math.min((F=Wi(L)?(B=L.props)==null?void 0:B.span:L.span)!=null?F:1,s.value);M+W>s.value&&($(),P=[],M=0),P.push({data:L,span:W}),M+=W}),$(),D},v=j(()=>{var T;return p((T=e.data)!=null?T:[])}),g=(T,D)=>{var P,M,$,L,B;return Wi(T)?T5(T,T.children)&&((M=(P=T.children).label)==null?void 0:M.call(P))||(($=T.props)==null?void 0:$.label):(B=(L=t.label)==null?void 0:L.call(t,{label:T.label,index:D,data:T}))!=null?B:En(T.label)?T.label():T.label},y=(T,D)=>{var P,M;return Wi(T)?T:(M=(P=t.value)==null?void 0:P.call(t,{value:T.value,index:D,data:T}))!=null?M:En(T.value)?T.value():T.value},S=T=>O(Nt,null,[O("tr",{class:`${o}-row`},[T.map((D,P)=>O("td",{key:`label-${P}`,class:[`${o}-item-label`,`${o}-item-label-block`],style:d.value,colspan:D.span},[g(D.data,P)]))]),O("tr",{class:`${o}-row`},[T.map((D,P)=>O("td",{key:`value-${P}`,class:[`${o}-item-value`,`${o}-item-value-block`],style:h.value,colspan:D.span},[y(D.data,P)]))])]),k=(T,D)=>O("tr",{class:`${o}-row`,key:`tr-${D}`},[T.map(P=>O(Nt,null,[O("td",{class:[`${o}-item-label`,`${o}-item-label-block`],style:d.value},[g(P.data,D)]),O("td",{class:[`${o}-item-value`,`${o}-item-value-block`],style:h.value,colspan:P.span*2-1},[y(P.data,D)])]))]),C=(T,D)=>O("tr",{class:`${o}-row`,key:`inline-${D}`},[T.map((P,M)=>O("td",{key:`item-${M}`,class:`${o}-item`,colspan:P.span},[O("div",{class:[`${o}-item-label`,`${o}-item-label-inline`],style:d.value},[g(P.data,M)]),O("div",{class:[`${o}-item-value`,`${o}-item-value-inline`],style:h.value},[y(P.data,M)])]))]),x=(T,D)=>["inline-horizontal","inline-vertical"].includes(e.layout)?C(T,D):e.layout==="vertical"?S(T):k(T,D),E=j(()=>[o,`${o}-layout-${e.layout}`,`${o}-size-${a.value}`,{[`${o}-border`]:e.bordered},{[`${o}-table-layout-fixed`]:e.tableLayout==="fixed"}]),_=()=>{var T,D;const P=(D=(T=t.title)==null?void 0:T.call(t))!=null?D:e.title;return P?O("div",{class:`${o}-title`},[P]):null};return()=>{const T=t.default?p(yf(t.default())):v.value;return O("div",{class:E.value},[_(),O("div",{class:`${o}-body`},[O("table",{class:`${o}-table`},[O("tbody",null,[T.map((D,P)=>x(D,P))])])])])}}});const QOe=Se({name:"DescriptionsItem",props:{span:{type:Number,default:1},label:String},setup(){return{prefixCls:Te("descriptions")}}});function e$e(e,t,n,r,o,a){return vt(e.$slots,"default")}var Tw=Ve(QOe,[["render",e$e]]);const t$e=Object.assign(CR,{DescriptionsItem:Tw,install:(e,t)=>{Xn(e,t);const n=Yn(t);e.component(n+CR.name,CR),e.component(n+Tw.name,Tw)}});var wR=Se({name:"Divider",props:{direction:{type:String,default:"horizontal"},orientation:{type:String,default:"center"},type:{type:String},size:{type:Number},margin:{type:[Number,String]}},setup(e,{slots:t}){const n=Te("divider"),r=j(()=>e.direction==="horizontal"),o=j(()=>{const a={};if(e.size&&(a[r.value?"border-bottom-width":"border-left-width"]=Ze(e.size)?`${e.size}px`:e.size),e.type&&(a[r.value?"border-bottom-style":"border-left-style"]=e.type),!An(e.margin)){const s=Ze(e.margin)?`${e.margin}px`:e.margin;a.margin=r.value?`${s} 0`:`0 ${s}`}return a});return()=>{var a;const s=(a=t.default)==null?void 0:a.call(t),l=[n,`${n}-${e.direction}`,{[`${n}-with-text`]:s}];return O("div",{role:"separator",class:l,style:o.value},[s&&e.direction==="horizontal"&&O("span",{class:[`${n}-text`,`${n}-text-${e.orientation}`]},[s])])}}});const n$e=Object.assign(wR,{install:(e,t)=>{Xn(e,t);const n=Yn(t);e.component(n+wR.name,wR)}}),o0e=e=>{const t=fe(!1),n={overflow:"",width:"",boxSizing:""};return{setOverflowHidden:()=>{if(e.value){const a=e.value;if(!t.value&&a.style.overflow!=="hidden"){const s=h7e(a);(s>0||f7e(a))&&(n.overflow=a.style.overflow,n.width=a.style.width,n.boxSizing=a.style.boxSizing,a.style.overflow="hidden",a.style.width=`${a.offsetWidth-s}px`,a.style.boxSizing="border-box",t.value=!0)}}},resetOverflow:()=>{if(e.value&&t.value){const a=e.value;a.style.overflow=n.overflow,a.style.width=n.width,a.style.boxSizing=n.boxSizing,t.value=!1}}}},r$e=["top","right","bottom","left"],i$e=Se({name:"Drawer",components:{ClientOnly:oH,ArcoButton:Xo,IconHover:Lo,IconClose:ds},inheritAttrs:!1,props:{visible:{type:Boolean,default:!1},defaultVisible:{type:Boolean,default:!1},placement:{type:String,default:"right",validator:e=>r$e.includes(e)},title:String,mask:{type:Boolean,default:!0},maskClosable:{type:Boolean,default:!0},closable:{type:Boolean,default:!0},okText:String,cancelText:String,okLoading:{type:Boolean,default:!1},okButtonProps:{type:Object},cancelButtonProps:{type:Object},unmountOnClose:Boolean,width:{type:[Number,String],default:250},height:{type:[Number,String],default:250},popupContainer:{type:[String,Object],default:"body"},drawerStyle:{type:Object},bodyClass:{type:[String,Array]},bodyStyle:{type:[String,Object,Array]},onBeforeOk:{type:Function},onBeforeCancel:{type:Function},escToClose:{type:Boolean,default:!0},renderToBody:{type:Boolean,default:!0},header:{type:Boolean,default:!0},footer:{type:Boolean,default:!0},hideCancel:{type:Boolean,default:!1}},emits:{"update:visible":e=>!0,ok:e=>!0,cancel:e=>!0,open:()=>!0,close:()=>!0,beforeOpen:()=>!0,beforeClose:()=>!0},setup(e,{emit:t}){const{popupContainer:n}=nn(e),r=Te("drawer"),{t:o}=No(),a=fe(e.defaultVisible),s=j(()=>{var W;return(W=e.visible)!=null?W:a.value}),l=fe(!1),c=j(()=>e.okLoading||l.value),{teleportContainer:d,containerRef:h}=sH({popupContainer:n,visible:s}),p=fe(s.value);let v=!1;const g=W=>{e.escToClose&&W.key===Ho.ESC&&C()&&D(W)},y=()=>{e.escToClose&&!v&&(v=!0,Mi(document.documentElement,"keydown",g))},S=()=>{v&&(v=!1,ro(document.documentElement,"keydown",g))},{zIndex:k,isLastDialog:C}=o3("dialog",{visible:s}),x=j(()=>h?.value===document.body);let E=0;const _=()=>{E++,l.value&&(l.value=!1),a.value=!1,t("update:visible",!1)},T=async W=>{const U=E,G=await new Promise(async X=>{var oe;if(En(e.onBeforeOk)){let Z=e.onBeforeOk((H=!0)=>X(H));if((Am(Z)||!El(Z))&&(l.value=!0),Am(Z))try{Z=(oe=await Z)!=null?oe:!0}catch(H){throw Z=!1,H}El(Z)&&X(Z)}else X(!0)});U===E&&(G?(t("ok",W),_()):l.value&&(l.value=!1))},D=W=>{var U;let G=!0;En(e.onBeforeCancel)&&(G=(U=e.onBeforeCancel())!=null?U:!1),G&&(t("cancel",W),_())},P=W=>{e.maskClosable&&D(W)},M=()=>{s.value&&t("open")},$=()=>{s.value||(p.value=!1,B(),t("close"))},{setOverflowHidden:L,resetOverflow:B}=o0e(h);bn(()=>{s.value&&(p.value=!0,L(),y())}),Io(()=>{B(),S()}),Rt(s,W=>{a.value!==W&&(a.value=W),W?(t("beforeOpen"),p.value=!0,L(),y()):(t("beforeClose"),S())});const F=j(()=>{var W;const U={[e.placement]:0,...(W=e.drawerStyle)!=null?W:{}};return["right","left"].includes(e.placement)?U.width=Ze(e.width)?`${e.width}px`:e.width:U.height=Ze(e.height)?`${e.height}px`:e.height,U});return{prefixCls:r,style:F,t:o,mounted:p,computedVisible:s,mergedOkLoading:c,zIndex:k,handleOk:T,handleCancel:D,handleOpen:M,handleClose:$,handleMask:P,isFixed:x,teleportContainer:d}}});function o$e(e,t,n,r,o,a){const s=Ie("icon-close"),l=Ie("icon-hover"),c=Ie("arco-button"),d=Ie("client-only");return z(),Ye(d,null,{default:de(()=>[(z(),Ye(qm,{to:e.teleportContainer,disabled:!e.renderToBody},[!e.unmountOnClose||e.computedVisible||e.mounted?Ai((z(),Q("div",Vt({key:0,class:`${e.prefixCls}-container`,style:e.isFixed?{zIndex:e.zIndex}:{zIndex:"inherit",position:"absolute"}},e.$attrs),[O(Cs,{name:"fade-drawer",appear:""},{default:de(()=>[e.mask?Ai((z(),Q("div",{key:0,class:ue(`${e.prefixCls}-mask`),onClick:t[0]||(t[0]=(...h)=>e.handleMask&&e.handleMask(...h))},null,2)),[[Qo,e.computedVisible]]):Le("v-if",!0)]),_:1}),O(Cs,{name:`slide-${e.placement}-drawer`,appear:"",onAfterEnter:e.handleOpen,onAfterLeave:e.handleClose,persisted:""},{default:de(()=>[Ai(I("div",{class:ue(e.prefixCls),style:Ke(e.style)},[e.header?(z(),Q("div",{key:0,class:ue(`${e.prefixCls}-header`)},[vt(e.$slots,"header",{},()=>[e.$slots.title||e.title?(z(),Q("div",{key:0,class:ue(`${e.prefixCls}-title`)},[vt(e.$slots,"title",{},()=>[We(ze(e.title),1)])],2)):Le("v-if",!0),e.closable?(z(),Q("div",{key:1,tabindex:"-1",role:"button","aria-label":"Close",class:ue(`${e.prefixCls}-close-btn`),onClick:t[1]||(t[1]=(...h)=>e.handleCancel&&e.handleCancel(...h))},[O(l,null,{default:de(()=>[O(s)]),_:1})],2)):Le("v-if",!0)])],2)):Le("v-if",!0),I("div",{class:ue([`${e.prefixCls}-body`,e.bodyClass]),style:Ke(e.bodyStyle)},[vt(e.$slots,"default")],6),e.footer?(z(),Q("div",{key:1,class:ue(`${e.prefixCls}-footer`)},[vt(e.$slots,"footer",{},()=>[e.hideCancel?Le("v-if",!0):(z(),Ye(c,Vt({key:0},e.cancelButtonProps,{onClick:e.handleCancel}),{default:de(()=>[We(ze(e.cancelText||e.t("drawer.cancelText")),1)]),_:1},16,["onClick"])),O(c,Vt({type:"primary",loading:e.mergedOkLoading},e.okButtonProps,{onClick:e.handleOk}),{default:de(()=>[We(ze(e.okText||e.t("drawer.okText")),1)]),_:1},16,["loading","onClick"])])],2)):Le("v-if",!0)],6),[[Qo,e.computedVisible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],16)),[[Qo,e.computedVisible||e.mounted]]):Le("v-if",!0)],8,["to","disabled"]))]),_:3})}var Aw=Ve(i$e,[["render",o$e]]);const vre=(e,t)=>{let n=A5("drawer");const r=()=>{d.component&&(d.component.props.visible=!1),En(e.onOk)&&e.onOk()},o=()=>{d.component&&(d.component.props.visible=!1),En(e.onCancel)&&e.onCancel()},a=async()=>{await Cn(),n&&(Xc(null,n),document.body.removeChild(n)),n=null,En(e.onClose)&&e.onClose()},s=()=>{d.component&&(d.component.props.visible=!1)},l=h=>{d.component&&Object.entries(h).forEach(([p,v])=>{d.component.props[p]=v})},d=O(Aw,{...{visible:!0,renderToBody:!1,unmountOnClose:!0,onOk:r,onCancel:o,onClose:a},...xa(e,["content","title","footer","visible","unmountOnClose","onOk","onCancel","onClose"]),header:typeof e.header=="boolean"?e.header:void 0,footer:typeof e.footer=="boolean"?e.footer:void 0},{default:Hl(e.content),header:typeof e.header!="boolean"?Hl(e.header):void 0,title:Hl(e.title),footer:typeof e.footer!="boolean"?Hl(e.footer):void 0});return(t??rV._context)&&(d.appContext=t??rV._context),Xc(d,n),document.body.appendChild(n),{close:s,update:l}},rV=Object.assign(Aw,{open:vre,install:(e,t)=>{Xn(e,t);const n=Yn(t);e.component(n+Aw.name,Aw);const r={open:(o,a=e._context)=>vre(o,a)};e.config.globalProperties.$drawer=r},_context:null});function s0e(e){return e===Object(e)&&Object.keys(e).length!==0}function s$e(e,t){t===void 0&&(t="auto");var n="scrollBehavior"in document.body.style;e.forEach(function(r){var o=r.el,a=r.top,s=r.left;o.scroll&&n?o.scroll({top:a,left:s,behavior:t}):(o.scrollTop=a,o.scrollLeft=s)})}function a$e(e){return e===!1?{block:"end",inline:"nearest"}:s0e(e)?e:{block:"start",inline:"nearest"}}function a0e(e,t){var n=e.isConnected||e.ownerDocument.documentElement.contains(e);if(s0e(t)&&typeof t.behavior=="function")return t.behavior(n?Kj(e,t):[]);if(n){var r=a$e(t);return s$e(Kj(e,r),r.behavior)}}const mre=["success","warning","error","validating"],l$e=e=>{let t="";for(const n of Object.keys(e)){const r=e[n];r&&(!t||mre.indexOf(r)>mre.indexOf(t))&&(t=e[n])}return t},u$e=e=>{const t=[];for(const n of Object.keys(e)){const r=e[n];r&&t.push(r)}return t},l0e=(e,t)=>{const n=t.replace(/[[.]/g,"_").replace(/\]/g,"");return e?`${e}-${n}`:`${n}`},c$e=Se({name:"Form",props:{model:{type:Object,required:!0},layout:{type:String,default:"horizontal"},size:{type:String},labelColProps:{type:Object,default:()=>({span:5,offset:0})},wrapperColProps:{type:Object,default:()=>({span:19,offset:0})},labelColStyle:Object,wrapperColStyle:Object,labelAlign:{type:String,default:"right"},disabled:{type:Boolean,default:void 0},rules:{type:Object},autoLabelWidth:{type:Boolean,default:!1},id:{type:String},scrollToFirstError:{type:Boolean,default:!1}},emits:{submit:(e,t)=>!0,submitSuccess:(e,t)=>!0,submitFailed:(e,t)=>!0},setup(e,{emit:t}){const n=Te("form"),r=fe(),{id:o,model:a,layout:s,disabled:l,labelAlign:c,labelColProps:d,wrapperColProps:h,labelColStyle:p,wrapperColStyle:v,size:g,rules:y}=nn(e),{mergedSize:S}=wa(g),k=j(()=>e.layout==="horizontal"&&e.autoLabelWidth),C=[],x=[],E=Xt({}),_=j(()=>Math.max(...Object.values(E))),T=Z=>{Z&&Z.field&&C.push(Z)},D=Z=>{Z&&Z.field&&C.splice(C.indexOf(Z),1)},P=Z=>{C.forEach(H=>{Z[H.field]&&H.setField(Z[H.field])})},M=(Z,H)=>{H&&E[H]!==Z&&(E[H]=Z)},$=Z=>{Z&&delete E[Z]},L=Z=>{const H=Z?[].concat(Z):[];C.forEach(q=>{(H.length===0||H.includes(q.field))&&q.resetField()})},B=Z=>{const H=Z?[].concat(Z):[];C.forEach(q=>{(H.length===0||H.includes(q.field))&&q.clearValidate()})},F=(Z,H)=>{const ee=(r.value||document.body).querySelector(`#${l0e(e.id,Z)}`);ee&&a0e(ee,{behavior:"smooth",block:"nearest",scrollMode:"if-needed",...H})},W=Z=>{const H=El(e.scrollToFirstError)?void 0:e.scrollToFirstError;F(Z,H)},U=Z=>{const H=[];return C.forEach(q=>{H.push(q.validate())}),Promise.all(H).then(q=>{const ee={};let ne=!1;return q.forEach(ae=>{ae&&(ne=!0,ee[ae.field]=ae)}),ne&&e.scrollToFirstError&&W(Object.keys(ee)[0]),En(Z)&&Z(ne?ee:void 0),ne?ee:void 0})},G=(Z,H)=>{const q=[];for(const ee of C)(or(Z)&&Z.includes(ee.field)||Z===ee.field)&&q.push(ee.validate());return Promise.all(q).then(ee=>{const ne={};let ae=!1;return ee.forEach(re=>{re&&(ae=!0,ne[re.field]=re)}),ae&&e.scrollToFirstError&&W(Object.keys(ne)[0]),En(H)&&H(ae?ne:void 0),ae?ne:void 0})},X=Z=>{const H=[];C.forEach(q=>{H.push(q.validate())}),Promise.all(H).then(q=>{const ee={};let ne=!1;q.forEach(ae=>{ae&&(ne=!0,ee[ae.field]=ae)}),ne?(e.scrollToFirstError&&W(Object.keys(ee)[0]),t("submitFailed",{values:a.value,errors:ee},Z)):t("submitSuccess",a.value,Z),t("submit",{values:a.value,errors:ne?ee:void 0},Z)})};return ri(iH,Xt({id:o,layout:s,disabled:l,labelAlign:c,labelColProps:d,wrapperColProps:h,labelColStyle:p,wrapperColStyle:v,model:a,size:S,rules:y,fields:C,touchedFields:x,addField:T,removeField:D,validateField:G,setLabelWidth:M,removeLabelWidth:$,maxLabelWidth:_,autoLabelWidth:k})),{cls:j(()=>[n,`${n}-layout-${e.layout}`,`${n}-size-${S.value}`,{[`${n}-auto-label-width`]:e.autoLabelWidth}]),formRef:r,handleSubmit:X,innerValidate:U,innerValidateField:G,innerResetFields:L,innerClearValidate:B,innerSetFields:P,innerScrollToField:F}},methods:{validate(e){return this.innerValidate(e)},validateField(e,t){return this.innerValidateField(e,t)},resetFields(e){return this.innerResetFields(e)},clearValidate(e){return this.innerClearValidate(e)},setFields(e){return this.innerSetFields(e)},scrollToField(e){return this.innerScrollToField(e)}}}),d$e=["id"];function f$e(e,t,n,r,o,a){return z(),Q("form",{id:e.id,ref:"formRef",class:ue(e.cls),onSubmit:t[0]||(t[0]=us((...s)=>e.handleSubmit&&e.handleSubmit(...s),["prevent"]))},[vt(e.$slots,"default")],42,d$e)}var ER=Ve(c$e,[["render",f$e]]),l3=Object.prototype.toString;function j5(e){return l3.call(e)==="[object Array]"}function Ph(e){return l3.call(e)==="[object Object]"}function iV(e){return l3.call(e)==="[object String]"}function h$e(e){return l3.call(e)==="[object Number]"&&e===e}function p$e(e){return l3.call(e)==="[object Boolean]"}function oV(e){return l3.call(e)==="[object Function]"}function v$e(e){return Ph(e)&&Object.keys(e).length===0}function Uv(e){return e==null||e===""}function u0e(e){return j5(e)&&!e.length}var wH=function(e,t){if(typeof e!="object"||typeof t!="object")return e===t;if(oV(e)&&oV(t))return e===t||e.toString()===t.toString();if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e){var r=wH(e[n],t[n]);if(!r)return!1}return!0},EH=function(e,t){var n=Object.assign({},e);return Object.keys(t||{}).forEach(function(r){var o=n[r],a=t?.[r];n[r]=Ph(o)?Object.assign(Object.assign({},o),a):a||o}),n},m$e=function(e,t){for(var n=t.split("."),r=e,o=0;o=o,this.getValidateMsg("string.minLength",{minLength:o})):this},t.prototype.length=function(o){return this.obj?this.validate(this.obj.length===o,this.getValidateMsg("string.length",{length:o})):this},t.prototype.match=function(o){var a=o instanceof RegExp;return a&&(o.lastIndex=0),this.validate(this.obj===void 0||a&&o.test(this.obj),this.getValidateMsg("string.match",{pattern:o}))},n.uppercase.get=function(){return this.obj?this.validate(this.obj.toUpperCase()===this.obj,this.getValidateMsg("string.uppercase")):this},n.lowercase.get=function(){return this.obj?this.validate(this.obj.toLowerCase()===this.obj,this.getValidateMsg("string.lowercase")):this},Object.defineProperties(t.prototype,n),t})($d),b$e=(function(e){function t(r,o){e.call(this,r,Object.assign(Object.assign({},o),{type:"number"})),this.validate(o&&o.strict?h$e(this.obj):!0,this.getValidateMsg("type.number"))}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={positive:{configurable:!0},negative:{configurable:!0}};return t.prototype.min=function(o){return Uv(this.obj)?this:this.validate(this.obj>=o,this.getValidateMsg("number.min",{min:o}))},t.prototype.max=function(o){return Uv(this.obj)?this:this.validate(this.obj<=o,this.getValidateMsg("number.max",{max:o}))},t.prototype.equal=function(o){return Uv(this.obj)?this:this.validate(this.obj===o,this.getValidateMsg("number.equal",{equal:o}))},t.prototype.range=function(o,a){return Uv(this.obj)?this:this.validate(this.obj>=o&&this.obj<=a,this.getValidateMsg("number.range",{min:o,max:a}))},n.positive.get=function(){return Uv(this.obj)?this:this.validate(this.obj>0,this.getValidateMsg("number.positive"))},n.negative.get=function(){return Uv(this.obj)?this:this.validate(this.obj<0,this.getValidateMsg("number.negative"))},Object.defineProperties(t.prototype,n),t})($d),_$e=(function(e){function t(r,o){e.call(this,r,Object.assign(Object.assign({},o),{type:"array"})),this.validate(o&&o.strict?j5(this.obj):!0,this.getValidateMsg("type.array",{value:this.obj,type:this.type}))}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={empty:{configurable:!0}};return t.prototype.length=function(o){return this.obj?this.validate(this.obj.length===o,this.getValidateMsg("array.length",{value:this.obj,length:o})):this},t.prototype.minLength=function(o){return this.obj?this.validate(this.obj.length>=o,this.getValidateMsg("array.minLength",{value:this.obj,minLength:o})):this},t.prototype.maxLength=function(o){return this.obj?this.validate(this.obj.length<=o,this.getValidateMsg("array.maxLength",{value:this.obj,maxLength:o})):this},t.prototype.includes=function(o){var a=this;return this.obj?this.validate(o.every(function(s){return a.obj.indexOf(s)!==-1}),this.getValidateMsg("array.includes",{value:this.obj,includes:o})):this},t.prototype.deepEqual=function(o){return this.obj?this.validate(wH(this.obj,o),this.getValidateMsg("array.deepEqual",{value:this.obj,deepEqual:o})):this},n.empty.get=function(){return this.validate(u0e(this.obj),this.getValidateMsg("array.empty",{value:this.obj}))},Object.defineProperties(t.prototype,n),t})($d),S$e=(function(e){function t(r,o){e.call(this,r,Object.assign(Object.assign({},o),{type:"object"})),this.validate(o&&o.strict?Ph(this.obj):!0,this.getValidateMsg("type.object"))}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={empty:{configurable:!0}};return t.prototype.deepEqual=function(o){return this.obj?this.validate(wH(this.obj,o),this.getValidateMsg("object.deepEqual",{deepEqual:o})):this},t.prototype.hasKeys=function(o){var a=this;return this.obj?this.validate(o.every(function(s){return a.obj[s]}),this.getValidateMsg("object.hasKeys",{keys:o})):this},n.empty.get=function(){return this.validate(v$e(this.obj),this.getValidateMsg("object.empty"))},Object.defineProperties(t.prototype,n),t})($d),k$e=(function(e){function t(r,o){e.call(this,r,Object.assign(Object.assign({},o),{type:"boolean"})),this.validate(o&&o.strict?p$e(this.obj):!0,this.getValidateMsg("type.boolean"))}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={true:{configurable:!0},false:{configurable:!0}};return n.true.get=function(){return this.validate(this.obj===!0,this.getValidateMsg("boolean.true"))},n.false.get=function(){return this.validate(this.obj===!1,this.getValidateMsg("boolean.false"))},Object.defineProperties(t.prototype,n),t})($d),x$e=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,C$e=new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),w$e=/^(2(5[0-5]{1}|[0-4]\d{1})|[0-1]?\d{1,2})(\.(2(5[0-5]{1}|[0-4]\d{1})|[0-1]?\d{1,2})){3}$/,E$e=(function(e){function t(r,o){e.call(this,r,Object.assign(Object.assign({},o),{type:"type"}))}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={email:{configurable:!0},url:{configurable:!0},ip:{configurable:!0}};return n.email.get=function(){return this.type="email",this.validate(this.obj===void 0||x$e.test(this.obj),this.getValidateMsg("type.email"))},n.url.get=function(){return this.type="url",this.validate(this.obj===void 0||C$e.test(this.obj),this.getValidateMsg("type.url"))},n.ip.get=function(){return this.type="ip",this.validate(this.obj===void 0||w$e.test(this.obj),this.getValidateMsg("type.ip"))},Object.defineProperties(t.prototype,n),t})($d),T$e=(function(e){function t(r,o){e.call(this,r,Object.assign(Object.assign({},o),{type:"custom"}))}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={validate:{configurable:!0}};return n.validate.get=function(){var r=this;return function(o,a){var s;if(o)return s=o(r.obj,r.addError.bind(r)),s&&s.then?(a&&s.then(function(){a&&a(r.error)},function(l){console.error(l)}),[s,r]):(a&&a(r.error),r.error)}},Object.defineProperties(t.prototype,n),t})($d),G8=function(e,t){return new c0e(e,Object.assign({field:"value"},t))};G8.globalConfig={};G8.setGlobalConfig=function(e){G8.globalConfig=e||{}};var c0e=function(t,n){var r=G8.globalConfig,o=Object.assign(Object.assign(Object.assign({},r),n),{validateMessages:EH(r.validateMessages,n.validateMessages)});this.string=new y$e(t,o),this.number=new b$e(t,o),this.array=new _$e(t,o),this.object=new S$e(t,o),this.boolean=new k$e(t,o),this.type=new E$e(t,o),this.custom=new T$e(t,o)},TH=function(t,n){n===void 0&&(n={}),this.schema=t,this.options=n};TH.prototype.messages=function(t){this.options=Object.assign(Object.assign({},this.options),{validateMessages:EH(this.options.validateMessages,t)})};TH.prototype.validate=function(t,n){var r=this;if(!Ph(t))return;var o=[],a=null;function s(l,c){a||(a={}),(!a[l]||c.requiredError)&&(a[l]=c)}this.schema&&Object.keys(this.schema).forEach(function(l){if(j5(r.schema[l]))for(var c=function(p){var v=r.schema[l][p],g=v.type,y=v.message;if(!g&&!v.validator)throw"You must specify a type to field "+l+"!";var S=Object.assign(Object.assign({},r.options),{message:y,field:l});"ignoreEmptyString"in v&&(S.ignoreEmptyString=v.ignoreEmptyString),"strict"in v&&(S.strict=v.strict);var k=new c0e(t[l],S),C=k.type[g]||null;if(!C)if(v.validator){C=k.custom.validate(v.validator),Object.prototype.toString.call(C)==="[object Array]"&&C[0].then?o.push({function:C[0],_this:C[1],key:l}):C&&s(l,C);return}else C=k[g];if(Object.keys(v).forEach(function(x){v.required&&(C=C.isRequired),x!=="message"&&C[x]&&v[x]&&typeof C[x]=="object"&&(C=C[x]),C[x]&&v[x]!==void 0&&typeof C[x]=="function"&&(C=C[x](v[x]))}),C.collect(function(x){x&&s(l,x)}),a)return"break"},d=0;d0?Promise.all(o.map(function(l){return l.function})).then(function(){o.forEach(function(l){l._this.error&&s(l.key,l._this.error)}),n&&n(a)}):n&&n(a)};const d0e=Symbol("RowContextInjectionKey"),f0e=Symbol("GridContextInjectionKey"),h0e=Symbol("GridDataCollectorInjectionKey"),A$e=Se({name:"Row",props:{gutter:{type:[Number,Object,Array],default:0},justify:{type:String,default:"start"},align:{type:String,default:"start"},div:{type:Boolean},wrap:{type:Boolean,default:!0}},setup(e){const{gutter:t,align:n,justify:r,div:o,wrap:a}=nn(e),s=Te("row"),l=j(()=>({[`${s}`]:!o.value,[`${s}-nowrap`]:!a.value,[`${s}-align-${n.value}`]:n.value,[`${s}-justify-${r.value}`]:r.value})),c=j(()=>Array.isArray(t.value)?t.value[0]:t.value),d=j(()=>Array.isArray(t.value)?t.value[1]:0),h=Dh(c,0),p=Dh(d,0),v=j(()=>{const y={};if((h.value||p.value)&&!o.value){const S=-h.value/2,k=-p.value/2;S&&(y.marginLeft=`${S}px`,y.marginRight=`${S}px`),k&&(y.marginTop=`${k}px`,y.marginBottom=`${k}px`)}return y}),g=j(()=>[h.value,p.value]);return ri(d0e,Xt({gutter:g,div:o})),{classNames:l,styles:v}}});function I$e(e,t,n,r,o,a){return z(),Q("div",{class:ue(e.classNames),style:Ke(e.styles)},[vt(e.$slots,"default")],6)}var ib=Ve(A$e,[["render",I$e]]);function L$e(e){return j(()=>{const{val:n,key:r,xs:o,sm:a,md:s,lg:l,xl:c,xxl:d}=e.value;if(!o&&!a&&!s&&!l&&!c&&!d)return n;const h={};return H8.forEach(p=>{const v=e.value[p];Ze(v)?h[p]=v:br(v)&&Ze(v[r])&&(h[p]=v[r])}),h})}function D$e(e){if(cs(e)&&(["initial","auto","none"].includes(e)||/^\d+$/.test(e))||Ze(e))return e;if(cs(e)&&/^\d+(px|em|rem|%)$/.test(e))return`0 0 ${e}`}const P$e=Se({name:"Col",props:{span:{type:Number,default:24},offset:{type:Number},order:{type:Number},xs:{type:[Number,Object]},sm:{type:[Number,Object]},md:{type:[Number,Object]},lg:{type:[Number,Object]},xl:{type:[Number,Object]},xxl:{type:[Number,Object]},flex:{type:[Number,String]}},setup(e){const t=Te("col"),n=On(d0e,{}),r=j(()=>D$e(e.flex)),o=j(()=>{const{div:p}=n,{span:v,offset:g,order:y,xs:S,sm:k,md:C,lg:x,xl:E,xxl:_}=e,T={[`${t}`]:!p,[`${t}-order-${y}`]:y,[`${t}-${v}`]:!p&&!S&&!k&&!C&&!x&&!E&&!_,[`${t}-offset-${g}`]:g&&g>0},D={xs:S,sm:k,md:C,lg:x,xl:E,xxl:_};return Object.keys(D).forEach(P=>{const M=D[P];M&&Ze(M)?T[`${t}-${P}-${M}`]=!0:M&&br(M)&&(T[`${t}-${P}-${M.span}`]=M.span,T[`${t}-${P}-offset-${M.offset}`]=M.offset,T[`${t}-${P}-order-${M.order}`]=M.order)}),T}),a=j(()=>r.value?t:o.value),s=j(()=>{const{gutter:p,div:v}=n,g={};if(Array.isArray(p)&&!v){const y=p[0]&&p[0]/2||0,S=p[1]&&p[1]/2||0;y&&(g.paddingLeft=`${y}px`,g.paddingRight=`${y}px`),S&&(g.paddingTop=`${S}px`,g.paddingBottom=`${S}px`)}return g}),l=j(()=>r.value?{flex:r.value}:{}),c=j(()=>kf(e,H8)),d=L$e(j(()=>({val:e.span,key:"span",...c.value}))),h=Dh(d,24,!0);return{visible:j(()=>!!h.value),classNames:a,styles:j(()=>({...s.value,...l.value}))}}});function R$e(e,t,n,r,o,a){return e.visible?(z(),Q("div",{key:0,class:ue(e.classNames),style:Ke(e.styles)},[vt(e.$slots,"default")],6)):Le("v-if",!0)}var ob=Ve(P$e,[["render",R$e]]);function M$e(e,t){var n,r;const o=(n=t.span)!=null?n:1,a=(r=t.offset)!=null?r:0,s=Math.min(a,e);return{span:Math.min(s>0?o+a:o,e),offset:s,suffix:"suffix"in t?t.suffix!==!1:!1}}function O$e({cols:e,collapsed:t,collapsedRows:n,itemDataList:r}){let o=!1,a=[];function s(l){return Math.ceil(l/e)>n}if(t){let l=0;for(let c=0;c!c.suffix&&!a.includes(d))}else a=r.map((l,c)=>c);return{overflow:o,displayIndexList:a}}const $$e=Se({name:"Grid",props:{cols:{type:[Number,Object],default:24},rowGap:{type:[Number,Object],default:0},colGap:{type:[Number,Object],default:0},collapsed:{type:Boolean,default:!1},collapsedRows:{type:Number,default:1}},setup(e){const{cols:t,rowGap:n,colGap:r,collapsedRows:o,collapsed:a}=nn(e),s=Dh(t,24),l=Dh(r,0),c=Dh(n,0),d=Te("grid"),h=j(()=>[d]),p=j(()=>[{gap:`${c.value}px ${l.value}px`,"grid-template-columns":`repeat(${s.value}, minmax(0px, 1fr))`}]),v=Xt(new Map),g=j(()=>{const S=[];for(const[k,C]of v.entries())S[k]=C;return S}),y=Xt({overflow:!1,displayIndexList:[],cols:s.value,colGap:l.value});return Os(()=>{y.cols=s.value,y.colGap=l.value}),Os(()=>{const S=O$e({cols:s.value,collapsed:a.value,collapsedRows:o.value,itemDataList:g.value});y.overflow=S.overflow,y.displayIndexList=S.displayIndexList}),ri(f0e,y),ri(h0e,{collectItemData(S,k){v.set(S,k)},removeItemData(S){v.delete(S)}}),{classNames:h,style:p}}});function B$e(e,t,n,r,o,a){return z(),Q("div",{class:ue(e.classNames),style:Ke(e.style)},[vt(e.$slots,"default")],6)}var TR=Ve($$e,[["render",B$e]]);const N$e=Se({name:"GridItem",props:{span:{type:[Number,Object],default:1},offset:{type:[Number,Object],default:0},suffix:{type:Boolean,default:!1}},setup(e){const t=Te("grid-item"),n=fe(),{computedIndex:r}=cH({itemRef:n,selector:`.${t}`}),o=On(f0e,{overflow:!1,displayIndexList:[],cols:24,colGap:0}),a=On(h0e),s=j(()=>{var k;return(k=o?.displayIndexList)==null?void 0:k.includes(r.value)}),{span:l,offset:c}=nn(e),d=Dh(l,1),h=Dh(c,0),p=j(()=>M$e(o.cols,{...e,span:d.value,offset:h.value})),v=j(()=>[t]),g=j(()=>{const{offset:k,span:C}=p.value,{colGap:x}=o;return k>0?{"margin-left":`calc((${`(100% - ${x*(C-1)}px) / ${C}`} * ${k}) + ${x*k}px)`}:{}}),y=j(()=>{const{suffix:k,span:C}=p.value,{cols:x}=o;return k?`${x-C+1}`:`span ${C}`}),S=j(()=>{const{span:k}=p.value;return n.value?[{"grid-column":`${y.value} / span ${k}`},g.value,!s.value||k===0?{display:"none"}:{}]:[]});return Os(()=>{r.value!==-1&&a?.collectItemData(r.value,p.value)}),gi(()=>{r.value!==-1&&a?.removeItemData(r.value)}),{classNames:v,style:S,domRef:n,overflow:j(()=>o.overflow)}}});function F$e(e,t,n,r,o,a){return z(),Q("div",{ref:"domRef",class:ue(e.classNames),style:Ke(e.style)},[vt(e.$slots,"default",{overflow:e.overflow})],6)}var Iw=Ve(N$e,[["render",F$e]]);const A4=Object.assign(TR,{Row:ib,Col:ob,Item:Iw,install:(e,t)=>{Xn(e,t);const n=Yn(t);e.component(n+ib.name,ib),e.component(n+ob.name,ob),e.component(n+TR.name,TR),e.component(n+Iw.name,Iw)}}),j$e=Se({name:"Tooltip",components:{Trigger:ha},props:{popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},content:String,position:{type:String,default:"top"},mini:{type:Boolean,default:!1},backgroundColor:{type:String},contentClass:{type:[String,Array,Object]},contentStyle:{type:Object},arrowClass:{type:[String,Array,Object]},arrowStyle:{type:Object},popupContainer:{type:[String,Object]}},emits:{"update:popupVisible":e=>!0,popupVisibleChange:e=>!0},setup(e,{emit:t}){const n=Te("tooltip"),r=fe(e.defaultPopupVisible),o=j(()=>{var h;return(h=e.popupVisible)!=null?h:r.value}),a=h=>{r.value=h,t("update:popupVisible",h),t("popupVisibleChange",h)},s=j(()=>[`${n}-content`,e.contentClass,{[`${n}-mini`]:e.mini}]),l=j(()=>{if(e.backgroundColor||e.contentStyle)return{backgroundColor:e.backgroundColor,...e.contentStyle}}),c=j(()=>[`${n}-popup-arrow`,e.arrowClass]),d=j(()=>{if(e.backgroundColor||e.arrowStyle)return{backgroundColor:e.backgroundColor,...e.arrowStyle}});return{prefixCls:n,computedPopupVisible:o,contentCls:s,computedContentStyle:l,arrowCls:c,computedArrowStyle:d,handlePopupVisibleChange:a}}});function V$e(e,t,n,r,o,a){const s=Ie("Trigger");return z(),Ye(s,{class:ue(e.prefixCls),trigger:"hover",position:e.position,"popup-visible":e.computedPopupVisible,"popup-offset":10,"show-arrow":"","content-class":e.contentCls,"content-style":e.computedContentStyle,"arrow-class":e.arrowCls,"arrow-style":e.computedArrowStyle,"popup-container":e.popupContainer,"animation-name":"zoom-in-fade-out","auto-fit-transform-origin":"",role:"tooltip",onPopupVisibleChange:e.handlePopupVisibleChange},{content:de(()=>[vt(e.$slots,"content",{},()=>[We(ze(e.content),1)])]),default:de(()=>[vt(e.$slots,"default")]),_:3},8,["class","position","popup-visible","content-class","content-style","arrow-class","arrow-style","popup-container","onPopupVisibleChange"])}var AR=Ve(j$e,[["render",V$e]]);const Zc=Object.assign(AR,{install:(e,t)=>{Xn(e,t);const n=Yn(t);e.component(n+AR.name,AR)}}),z$e=Se({name:"IconQuestionCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-question-circle`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),U$e=["stroke-width","stroke-linecap","stroke-linejoin"];function H$e(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z"},null,-1),I("path",{d:"M24.006 31v4.008m0-6.008L24 28c0-3 3-4 4.78-6.402C30.558 19.195 28.288 15 23.987 15c-4.014 0-5.382 2.548-5.388 4.514v.465"},null,-1)]),14,U$e)}var IR=Ve(z$e,[["render",H$e]]);const AH=Object.assign(IR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+IR.name,IR)}}),W$e=Se({name:"FormItemLabel",components:{ResizeObserver:x0,Tooltip:Zc,IconQuestionCircle:AH},props:{required:{type:Boolean,default:!1},showColon:{type:Boolean,default:!1},component:{type:String,default:"label"},asteriskPosition:{type:String,default:"start"},tooltip:{type:String},attrs:Object},setup(){const e=Te("form-item-label"),t=On(iH,void 0),n=_o(),r=fe(),o=()=>{r.value&&Ze(r.value.offsetWidth)&&t?.setLabelWidth(r.value.offsetWidth,n?.uid)};return bn(()=>{r.value&&Ze(r.value.offsetWidth)&&t?.setLabelWidth(r.value.offsetWidth,n?.uid)}),Io(()=>{t?.removeLabelWidth(n?.uid)}),{prefixCls:e,labelRef:r,handleResize:o}}});function G$e(e,t,n,r,o,a){const s=Ie("icon-question-circle"),l=Ie("Tooltip"),c=Ie("ResizeObserver");return z(),Ye(c,{onResize:e.handleResize},{default:de(()=>[(z(),Ye(Wa(e.component),Vt({ref:"labelRef",class:e.prefixCls},e.attrs),{default:de(()=>[e.required&&e.asteriskPosition==="start"?(z(),Q("strong",{key:0,class:ue(`${e.prefixCls}-required-symbol`)},t[0]||(t[0]=[I("svg",{fill:"currentColor",viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[I("path",{d:"M583.338667 17.066667c18.773333 0 34.133333 15.36 34.133333 34.133333v349.013333l313.344-101.888a34.133333 34.133333 0 0 1 43.008 22.016l42.154667 129.706667a34.133333 34.133333 0 0 1-21.845334 43.178667l-315.733333 102.4 208.896 287.744a34.133333 34.133333 0 0 1-7.509333 47.786666l-110.421334 80.213334a34.133333 34.133333 0 0 1-47.786666-7.509334L505.685333 706.218667 288.426667 1005.226667a34.133333 34.133333 0 0 1-47.786667 7.509333l-110.421333-80.213333a34.133333 34.133333 0 0 1-7.509334-47.786667l214.186667-295.253333L29.013333 489.813333a34.133333 34.133333 0 0 1-22.016-43.008l42.154667-129.877333a34.133333 34.133333 0 0 1 43.008-22.016l320.512 104.106667L412.672 51.2c0-18.773333 15.36-34.133333 34.133333-34.133333h136.533334z"})],-1)]),2)):Le("v-if",!0),vt(e.$slots,"default"),e.tooltip?(z(),Ye(l,{key:1,content:e.tooltip},{default:de(()=>[O(s,{class:ue(`${e.prefixCls}-tooltip`)},null,8,["class"])]),_:1},8,["content"])):Le("v-if",!0),e.required&&e.asteriskPosition==="end"?(z(),Q("strong",{key:2,class:ue(`${e.prefixCls}-required-symbol`)},t[1]||(t[1]=[I("svg",{fill:"currentColor",viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[I("path",{d:"M583.338667 17.066667c18.773333 0 34.133333 15.36 34.133333 34.133333v349.013333l313.344-101.888a34.133333 34.133333 0 0 1 43.008 22.016l42.154667 129.706667a34.133333 34.133333 0 0 1-21.845334 43.178667l-315.733333 102.4 208.896 287.744a34.133333 34.133333 0 0 1-7.509333 47.786666l-110.421334 80.213334a34.133333 34.133333 0 0 1-47.786666-7.509334L505.685333 706.218667 288.426667 1005.226667a34.133333 34.133333 0 0 1-47.786667 7.509333l-110.421333-80.213333a34.133333 34.133333 0 0 1-7.509334-47.786667l214.186667-295.253333L29.013333 489.813333a34.133333 34.133333 0 0 1-22.016-43.008l42.154667-129.877333a34.133333 34.133333 0 0 1 43.008-22.016l320.512 104.106667L412.672 51.2c0-18.773333 15.36-34.133333 34.133333-34.133333h136.533334z"})],-1)]),2)):Le("v-if",!0),We(" "+ze(e.showColon?":":""),1)]),_:3},16,["class"]))]),_:3},8,["onResize"])}var K$e=Ve(W$e,[["render",G$e]]);const q$e=Se({name:"FormItemMessage",props:{error:{type:Array,default:()=>[]},help:String},setup(){return{prefixCls:Te("form-item-message")}}});function Y$e(e,t,n,r,o,a){return e.error.length>0?(z(!0),Q(Nt,{key:0},gn(e.error,s=>(z(),Ye(Cs,{key:s,name:"form-blink",appear:""},{default:de(()=>[I("div",{role:"alert",class:ue([e.prefixCls])},ze(s),3)]),_:2},1024))),128)):e.help||e.$slots.help?(z(),Ye(Cs,{key:1,name:"form-blink",appear:""},{default:de(()=>[I("div",{class:ue([e.prefixCls,`${e.prefixCls}-help`])},[vt(e.$slots,"help",{},()=>[We(ze(e.help),1)])],2)]),_:3})):Le("v-if",!0)}var X$e=Ve(q$e,[["render",Y$e]]);const Z$e=Se({name:"FormItem",components:{ArcoRow:ib,ArcoCol:ob,FormItemLabel:K$e,FormItemMessage:X$e},props:{field:{type:String,default:""},label:String,tooltip:{type:String},showColon:{type:Boolean,default:!1},noStyle:{type:Boolean,default:!1},disabled:{type:Boolean,default:void 0},help:String,extra:String,required:{type:Boolean,default:!1},asteriskPosition:{type:String,default:"start"},rules:{type:[Object,Array]},validateStatus:{type:String},validateTrigger:{type:[String,Array],default:"change"},labelColProps:Object,wrapperColProps:Object,hideLabel:{type:Boolean,default:!1},hideAsterisk:{type:Boolean,default:!1},labelColStyle:Object,wrapperColStyle:Object,rowProps:Object,rowClass:[String,Array,Object],contentClass:[String,Array,Object],contentFlex:{type:Boolean,default:!0},mergeProps:{type:[Boolean,Function],default:!0},labelColFlex:{type:[Number,String]},feedback:{type:Boolean,default:!1},labelComponent:{type:String,default:"label"},labelAttrs:Object},setup(e){const t=Te("form-item"),{field:n}=nn(e),r=On(iH,{}),{autoLabelWidth:o,layout:a}=nn(r),{i18nMessage:s}=No(),l=j(()=>{var q;const ee={...(q=e.labelColProps)!=null?q:r.labelColProps};return e.labelColFlex?ee.flex=e.labelColFlex:r.autoLabelWidth&&(ee.flex=`${r.maxLabelWidth}px`),ee}),c=j(()=>{var q;const ee={...(q=e.wrapperColProps)!=null?q:r.wrapperColProps};return n.value&&(ee.id=l0e(r.id,n.value)),(e.labelColFlex||r.autoLabelWidth)&&(ee.flex="auto"),ee}),d=j(()=>{var q;return(q=e.labelColStyle)!=null?q:r.labelColStyle}),h=j(()=>{var q;return(q=e.wrapperColStyle)!=null?q:r.wrapperColStyle}),p=hm(r.model,e.field),v=Xt({}),g=Xt({}),y=j(()=>l$e(v)),S=j(()=>u$e(g)),k=fe(!1),C=j(()=>hm(r.model,e.field)),x=j(()=>{var q;return!!((q=e.disabled)!=null?q:r?.disabled)}),E=j(()=>{var q;return(q=e.validateStatus)!=null?q:y.value}),_=j(()=>E.value==="error"),T=j(()=>{var q,ee,ne;const ae=[].concat((ne=(ee=e.rules)!=null?ee:(q=r?.rules)==null?void 0:q[e.field])!=null?ne:[]),re=ae.some(ke=>ke.required);return e.required&&!re?[{required:!0}].concat(ae):ae}),D=j(()=>T.value.some(q=>q.required)),P=e.noStyle?On(qj,void 0):void 0,M=(q,{status:ee,message:ne})=>{v[q]=ee,g[q]=ne,e.noStyle&&P?.updateValidateState(q,{status:ee,message:ne})},$=j(()=>e.feedback&&E.value?E.value:void 0),L=()=>{var q;if(k.value)return Promise.resolve();const ee=T.value;if(!n.value||ee.length===0)return y.value&&W(),Promise.resolve();const ne=n.value,ae=C.value;M(ne,{status:"",message:""});const re=new TH({[ne]:ee.map(({...ke})=>(!ke.type&&!ke.validator&&(ke.type="string"),ke))},{ignoreEmptyString:!0,validateMessages:(q=s.value.form)==null?void 0:q.validateMessages});return new Promise(ke=>{re.validate({[ne]:ae},Ne=>{var me;const _e=!!Ne?.[ne];M(ne,{status:_e?"error":"",message:(me=Ne?.[ne].message)!=null?me:""});const Ue=_e?{label:e.label,field:n.value,value:Ne[ne].value,type:Ne[ne].type,isRequiredError:!!Ne[ne].requiredError,message:Ne[ne].message}:void 0;ke(Ue)})})},B=j(()=>[].concat(e.validateTrigger)),F=j(()=>B.value.reduce((q,ee)=>{switch(ee){case"change":return q.onChange=()=>{L()},q;case"input":return q.onInput=()=>{Cn(()=>{L()})},q;case"focus":return q.onFocus=()=>{L()},q;case"blur":return q.onBlur=()=>{L()},q;default:return q}},{}));ri(qj,Xt({eventHandlers:F,size:r&&Lu(r,"size"),disabled:x,error:_,feedback:$,updateValidateState:M}));const W=()=>{n.value&&M(n.value,{status:"",message:""})},X=Xt({field:n,disabled:x,error:_,validate:L,clearValidate:W,resetField:()=>{W(),k.value=!0,r?.model&&n.value&&U8(r.model,n.value,p),Cn(()=>{k.value=!1})},setField:q=>{var ee,ne;n.value&&(k.value=!0,"value"in q&&r?.model&&n.value&&U8(r.model,n.value,q.value),(q.status||q.message)&&M(n.value,{status:(ee=q.status)!=null?ee:"",message:(ne=q.message)!=null?ne:""}),Cn(()=>{k.value=!1}))}});bn(()=>{var q;X.field&&((q=r.addField)==null||q.call(r,X))}),Io(()=>{var q;X.field&&((q=r.removeField)==null||q.call(r,X))});const oe=j(()=>[t,`${t}-layout-${r.layout}`,{[`${t}-error`]:_.value,[`${t}-status-${E.value}`]:!!E.value},e.rowClass]),Z=j(()=>[`${t}-label-col`,{[`${t}-label-col-left`]:r.labelAlign==="left",[`${t}-label-col-flex`]:r.autoLabelWidth||e.labelColFlex}]),H=j(()=>[`${t}-wrapper-col`,{[`${t}-wrapper-col-flex`]:!c.value}]);return{prefixCls:t,cls:oe,isRequired:D,isError:_,finalMessage:S,mergedLabelCol:l,mergedWrapperCol:c,labelColCls:Z,autoLabelWidth:o,layout:a,mergedLabelStyle:d,wrapperColCls:H,mergedWrapperStyle:h}}});function J$e(e,t,n,r,o,a){var s;const l=Ie("FormItemLabel"),c=Ie("ArcoCol"),d=Ie("FormItemMessage"),h=Ie("ArcoRow");return e.noStyle?vt(e.$slots,"default",{key:0}):(z(),Ye(h,Vt({key:1,class:[e.cls,{[`${e.prefixCls}-has-help`]:!!((s=e.$slots.help)!=null?s:e.help)}],wrap:!(e.labelColFlex||e.autoLabelWidth),div:e.layout!=="horizontal"||e.hideLabel},e.rowProps),{default:de(()=>[e.hideLabel?Le("v-if",!0):(z(),Ye(c,Vt({key:0,class:e.labelColCls,style:e.mergedLabelStyle},e.mergedLabelCol),{default:de(()=>[O(l,{required:e.hideAsterisk?!1:e.isRequired,"show-colon":e.showColon,"asterisk-position":e.asteriskPosition,component:e.labelComponent,attrs:e.labelAttrs,tooltip:e.tooltip},{default:de(()=>[e.$slots.label||e.label?vt(e.$slots,"label",{key:0},()=>[We(ze(e.label),1)]):Le("v-if",!0)]),_:3},8,["required","show-colon","asterisk-position","component","attrs","tooltip"])]),_:3},16,["class","style"])),O(c,Vt({class:e.wrapperColCls,style:e.mergedWrapperStyle},e.mergedWrapperCol),{default:de(()=>[I("div",{class:ue(`${e.prefixCls}-content-wrapper`)},[I("div",{class:ue([`${e.prefixCls}-content`,{[`${e.prefixCls}-content-flex`]:e.contentFlex},e.contentClass])},[vt(e.$slots,"default")],2)],2),e.isError||e.$slots.help||e.help?(z(),Ye(d,{key:0,error:e.finalMessage,help:e.help},yo({_:2},[e.$slots.help?{name:"help",fn:de(()=>[vt(e.$slots,"help")]),key:"0"}:void 0]),1032,["error","help"])):Le("v-if",!0),e.$slots.extra||e.extra?(z(),Q("div",{key:1,class:ue(`${e.prefixCls}-extra`)},[vt(e.$slots,"extra",{},()=>[We(ze(e.extra),1)])],2)):Le("v-if",!0)]),_:3},16,["class","style"])]),_:3},16,["class","wrap","div"]))}var Lw=Ve(Z$e,[["render",J$e]]);const Q$e=Object.assign(ER,{Item:Lw,install:(e,t)=>{Xn(e,t);const n=Yn(t);e.component(n+ER.name,ER),e.component(n+Lw.name,Lw)}}),eBe=Se({name:"Icon",props:{type:String,size:[Number,String],rotate:Number,spin:Boolean},setup(e){const t=Te("icon"),n=j(()=>{const o={};return e.size&&(o.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(o.transform=`rotate(${e.rotate}deg)`),o});return{cls:j(()=>[t,{[`${t}-loading`]:e.spin},e.type]),innerStyle:n}}});function tBe(e,t,n,r,o,a){return z(),Q("svg",{class:ue(e.cls),style:Ke(e.innerStyle),fill:"currentColor"},[vt(e.$slots,"default")],6)}var Dw=Ve(eBe,[["render",tBe]]);function nBe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wi(e)}const gre=[],rBe=e=>{const{src:t,extraProps:n={}}=e;if(!G_&&t?.length&&!gre.includes(t)){const r=document.createElement("script");r.setAttribute("src",t),r.setAttribute("data-namespace",t),gre.push(t),document.body.appendChild(r)}return Se({name:"IconFont",props:{type:String,size:[Number,String],rotate:Number,spin:Boolean},setup(r,{slots:o}){return()=>{var a;const s=r.type?O("use",{"xlink:href":`#${r.type}`},null):(a=o.default)==null?void 0:a.call(o);return O(Dw,Vt(r,n),nBe(s)?s:{default:()=>[s]})}}})},iBe=Object.assign(Dw,{addFromIconFontCn:rBe,install:(e,t)=>{Xn(e,t);const n=Yn(t);e.component(n+Dw.name,Dw)}}),oBe=Se({name:"ImageFooter",props:{title:{type:String},description:{type:String}},setup(){return{prefixCls:Te("image-footer")}}}),sBe=["title"],aBe=["title"];function lBe(e,t,n,r,o,a){return z(),Q("div",{class:ue(e.prefixCls)},[e.title||e.description?(z(),Q("div",{key:0,class:ue(`${e.prefixCls}-caption`)},[e.title?(z(),Q("div",{key:0,class:ue(`${e.prefixCls}-caption-title`),title:e.title},ze(e.title),11,sBe)):Le("v-if",!0),e.description?(z(),Q("div",{key:1,class:ue(`${e.prefixCls}-caption-description`),title:e.description},ze(e.description),11,aBe)):Le("v-if",!0)],2)):Le("v-if",!0),e.$slots.extra?(z(),Q("div",{key:1,class:ue(`${e.prefixCls}-extra`)},[vt(e.$slots,"extra")],2)):Le("v-if",!0)],2)}var uBe=Ve(oBe,[["render",lBe]]);const cBe=Se({name:"ImagePreviewArrow",components:{IconLeft:Al,IconRight:Hi},props:{onPrev:{type:Function},onNext:{type:Function}},setup(){return{prefixCls:Te("image-preview-arrow")}}});function dBe(e,t,n,r,o,a){const s=Ie("icon-left"),l=Ie("icon-right");return z(),Q("div",{class:ue(e.prefixCls)},[I("div",{class:ue([`${e.prefixCls}-left`,{[`${e.prefixCls}-disabled`]:!e.onPrev}]),onClick:t[0]||(t[0]=c=>{c.preventDefault(),e.onPrev&&e.onPrev()})},[O(s)],2),I("div",{class:ue([`${e.prefixCls}-right`,{[`${e.prefixCls}-disabled`]:!e.onNext}]),onClick:t[1]||(t[1]=c=>{c.preventDefault(),e.onNext&&e.onNext()})},[O(l)],2)],2)}var fBe=Ve(cBe,[["render",dBe]]);function hBe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wi(e)}var K8=Se({name:"ImagePreviewAction",components:{Tooltip:Zc},inheritAttrs:!1,props:{name:{type:String},disabled:{type:Boolean}},setup(e,{slots:t,attrs:n}){const r=Te("image-preview-toolbar-action");return()=>{var o;const{name:a,disabled:s}=e,l=(o=t.default)==null?void 0:o.call(t);if(!l||!l.length)return null;const c=O("div",Vt({class:[`${r}`,{[`${r}-disabled`]:s}],onMousedown:d=>{d.preventDefault()}},n),[O("span",{class:`${r}-content`},[l])]);return a?O(Zc,{class:`${r}-tooltip`,content:a},hBe(c)?c:{default:()=>[c]}):c}}}),pBe=Se({name:"ImagePreviewToolbar",components:{RenderFunction:Jh,PreviewAction:K8},props:{actions:{type:Array,default:()=>[]},actionsLayout:{type:Array,default:()=>[]}},setup(e){const{actions:t,actionsLayout:n}=nn(e),r=Te("image-preview-toolbar"),o=j(()=>{const a=new Set(n.value),s=c=>a.has(c.key);return t.value.filter(s).sort((c,d)=>{const h=n.value.indexOf(c.key),p=n.value.indexOf(d.key);return h>p?1:-1})});return{prefixCls:r,resultActions:o}}});function vBe(e,t,n,r,o,a){const s=Ie("RenderFunction"),l=Ie("PreviewAction");return z(),Q("div",{class:ue(e.prefixCls)},[(z(!0),Q(Nt,null,gn(e.resultActions,c=>(z(),Ye(l,{key:c.key,name:c.name,disabled:c.disabled,onClick:c.onClick},{default:de(()=>[O(s,{"render-func":c.content},null,8,["render-func"])]),_:2},1032,["name","disabled","onClick"]))),128)),vt(e.$slots,"default")],2)}var mBe=Ve(pBe,[["render",vBe]]);function p0e(e){const t=fe("beforeLoad"),n=j(()=>t.value==="beforeLoad"),r=j(()=>t.value==="loading"),o=j(()=>t.value==="error"),a=j(()=>t.value==="loaded");return{status:t,isBeforeLoad:n,isLoading:r,isError:o,isLoaded:a,setLoadStatus:s=>{t.value=s}}}function gBe(e,t,n,r,o){let a=n,s=r;return n&&(e.width>t.width?a=0:(t.left>e.left&&(a-=Math.abs(e.left-t.left)/o),t.rightt.height?s=0:(t.top>e.top&&(s-=Math.abs(e.top-t.top)/o),t.bottom{if(!t.value||!n.value)return;const y=t.value.getBoundingClientRect(),S=n.value.getBoundingClientRect(),[k,C]=gBe(y,S,o.value[0],o.value[1],r.value);(k!==o.value[0]||C!==o.value[1])&&(o.value=[k,C])},h=y=>{y.preventDefault&&y.preventDefault();const S=c[0]+(y.pageX-s)/r.value,k=c[1]+(y.pageY-l)/r.value;o.value=[S,k]},p=y=>{y.preventDefault&&y.preventDefault(),a.value=!1,d(),g()},v=y=>{y.target===y.currentTarget&&(y.preventDefault&&y.preventDefault(),a.value=!0,s=y.pageX,l=y.pageY,c=[...o.value],Mi(window,"mousemove",h,!1),Mi(window,"mouseup",p,!1))};function g(){ro(window,"mousemove",h,!1),ro(window,"mouseup",p,!1)}return Os(y=>{n.value&&Mi(n.value,"mousedown",v),y(()=>{n.value&&ro(n.value,"mousedown",v),g()})}),Rt([r],()=>{Cn(()=>d())}),{translate:o,moving:a,resetTranslate(){o.value=[0,0]}}}const bBe=Se({name:"IconZoomOut",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-zoom-out`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),_Be=["stroke-width","stroke-linecap","stroke-linejoin"];function SBe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M32.607 32.607A14.953 14.953 0 0 0 37 22c0-8.284-6.716-15-15-15-8.284 0-15 6.716-15 15 0 8.284 6.716 15 15 15 4.142 0 7.892-1.679 10.607-4.393Zm0 0L41.5 41.5M29 22H15"},null,-1)]),14,_Be)}var LR=Ve(bBe,[["render",SBe]]);const v0e=Object.assign(LR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+LR.name,LR)}}),kBe=Se({name:"IconZoomIn",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-zoom-in`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),xBe=["stroke-width","stroke-linecap","stroke-linejoin"];function CBe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M32.607 32.607A14.953 14.953 0 0 0 37 22c0-8.284-6.716-15-15-15-8.284 0-15 6.716-15 15 0 8.284 6.716 15 15 15 4.142 0 7.892-1.679 10.607-4.393Zm0 0L41.5 41.5M29 22H15m7 7V15"},null,-1)]),14,xBe)}var DR=Ve(kBe,[["render",CBe]]);const m0e=Object.assign(DR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+DR.name,DR)}}),wBe=Se({name:"IconFullscreen",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-fullscreen`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),EBe=["stroke-width","stroke-linecap","stroke-linejoin"];function TBe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M42 17V9a1 1 0 0 0-1-1h-8M6 17V9a1 1 0 0 1 1-1h8m27 23v8a1 1 0 0 1-1 1h-8M6 31v8a1 1 0 0 0 1 1h8"},null,-1)]),14,EBe)}var PR=Ve(wBe,[["render",TBe]]);const z5=Object.assign(PR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+PR.name,PR)}}),ABe=Se({name:"IconRotateLeft",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-rotate-left`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),IBe=["stroke-width","stroke-linecap","stroke-linejoin"];function LBe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M10 22a1 1 0 0 1 1-1h20a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H11a1 1 0 0 1-1-1V22ZM23 11h11a6 6 0 0 1 6 6v6M22.5 12.893 19.587 11 22.5 9.107v3.786Z"},null,-1)]),14,IBe)}var RR=Ve(ABe,[["render",LBe]]);const g0e=Object.assign(RR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+RR.name,RR)}}),DBe=Se({name:"IconRotateRight",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-rotate-right`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),PBe=["stroke-width","stroke-linecap","stroke-linejoin"];function RBe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M38 22a1 1 0 0 0-1-1H17a1 1 0 0 0-1 1v16a1 1 0 0 0 1 1h20a1 1 0 0 0 1-1V22ZM25 11H14a6 6 0 0 0-6 6v6M25.5 12.893 28.413 11 25.5 9.107v3.786Z"},null,-1)]),14,PBe)}var MR=Ve(DBe,[["render",RBe]]);const y0e=Object.assign(MR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+MR.name,MR)}}),MBe=Se({name:"IconOriginalSize",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-original-size`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),OBe=["stroke-width","stroke-linecap","stroke-linejoin"];function $Be(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m5.5 11.5 5-2.5h1v32M34 11.5 39 9h1v32"},null,-1),I("path",{d:"M24 17h1v1h-1v-1ZM24 30h1v1h-1v-1Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{d:"M24 17h1v1h-1v-1ZM24 30h1v1h-1v-1Z"},null,-1)]),14,OBe)}var OR=Ve(MBe,[["render",$Be]]);const b0e=Object.assign(OR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+OR.name,OR)}});function BBe(e){const{container:t,hidden:n}=nn(e);let r=!1,o={};const a=c=>c.tagName==="BODY"?window.innerWidth-(document.body.clientWidth||document.documentElement.clientWidth):c.offsetWidth-c.clientWidth,s=()=>{if(t.value&&t.value.style.overflow!=="hidden"){const c=t.value.style;r=!0;const d=a(t.value);d&&(o.width=c.width,t.value.style.width=`calc(${t.value.style.width||"100%"} - ${d}px)`),o.overflow=c.overflow,t.value.style.overflow="hidden"}},l=()=>{if(t.value&&r){const c=o;Object.keys(c).forEach(d=>{t.value.style[d]=c[d]})}r=!1,o={}};return Os(c=>{n.value?s():l(),c(()=>{l()})}),[l,s]}function NBe(e,t){const{popupContainer:n}=nn(t);return j(()=>(cs(n.value)?qhe(n.value):n.value)||e)}const wd=[25,33,50,67,75,80,90,100,110,125,150,175,200,250,300,400,500].map(e=>+(e/100).toFixed(2)),_0e=wd[0],S0e=wd[wd.length-1];function FBe(e=1,t="zoomIn"){let n=wd.indexOf(e);return n===-1&&(n=VBe(e)),t==="zoomIn"?n===wd.length-1?e:wd[n+1]:n===0?e:wd[n-1]}function jBe(e,t=1.1,n="zoomIn"){const r=n==="zoomIn"?t:1/t,o=Number.parseFloat((e*r).toFixed(3));return Math.min(S0e,Math.max(_0e,o))}function VBe(e){let t=wd.length-1;for(let n=0;n["fullScreen","rotateRight","rotateLeft","zoomIn","zoomOut","originalSize"]},popupContainer:{type:[Object,String]},inGroup:{type:Boolean,default:!1},groupArrowProps:{type:Object,default:()=>({})},escToClose:{type:Boolean,default:!0},wheelZoom:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},defaultScale:{type:Number,default:1},zoomRate:{type:Number,default:1.1}},emits:["close","update:visible"],setup(e,{emit:t}){const{t:n}=No(),{src:r,popupContainer:o,visible:a,defaultVisible:s,maskClosable:l,actionsLayout:c,defaultScale:d,zoomRate:h}=nn(e),p=fe(),v=fe(),g=Te("image-preview"),[y,S]=fa(s.value,Xt({value:a})),k=j(()=>[g,{[`${g}-hide`]:!y.value}]),C=NBe(document.body,Xt({popupContainer:o})),x=j(()=>C.value===document.body),{zIndex:E}=o3("dialog",{visible:y}),_=j(()=>({...x.value?{zIndex:E.value,position:"fixed"}:{zIndex:"inherit",position:"absolute"}})),{isLoading:T,isLoaded:D,setLoadStatus:P}=p0e(),M=fe(0),$=fe(d.value),{translate:L,moving:B,resetTranslate:F}=yBe(Xt({wrapperEl:p,imageEl:v,visible:y,scale:$})),W=fe(!1);let U=null;const G=()=>{!W.value&&(W.value=!0),U&&clearTimeout(U),U=setTimeout(()=>{W.value=!1},1e3)};BBe(Xt({container:C,hidden:y}));function X(){M.value=0,$.value=d.value,F()}const oe=Ue=>c.value.includes(Ue),Z=Ue=>{switch(Ue.stopPropagation(),Ue.preventDefault(),Ue.key){case Ho.ESC:e.escToClose&&ae();break;case Ho.ARROW_LEFT:e.groupArrowProps.onPrev&&e.groupArrowProps.onPrev();break;case Ho.ARROW_RIGHT:e.groupArrowProps.onNext&&e.groupArrowProps.onNext();break;case Ho.ARROW_UP:oe("zoomIn")&&_e("zoomIn");break;case Ho.ARROW_DOWN:oe("zoomOut")&&_e("zoomOut");break;case Ho.SPACE:oe("originalSize")&&ke(1);break}},H=Im(Ue=>{if(Ue.preventDefault(),Ue.stopPropagation(),!e.wheelZoom)return;const Me=(Ue.deltaY||Ue.deltaX)>0?"zoomOut":"zoomIn",je=jBe($.value,h.value,Me);ke(je)});let q=!1;const ee=()=>{Cn(()=>{var Ue;(Ue=p?.value)==null||Ue.focus()}),e.keyboard&&!q&&(q=!0,Mi(C.value,"keydown",Z))},ne=()=>{q&&(q=!1,ro(C.value,"keydown",Z))};Rt([r,y],()=>{y.value?(X(),P("loading"),ee()):ne()});function ae(){y.value&&(t("close"),t("update:visible",!1),S(!1))}function re(Ue){var Qe;(Qe=p?.value)==null||Qe.focus(),l.value&&Ue.target===Ue.currentTarget&&ae()}function ke(Ue){$.value!==Ue&&($.value=Ue,G())}function Ne(){const Ue=p.value.getBoundingClientRect(),Qe=v.value.getBoundingClientRect(),Me=Ue.height/(Qe.height/$.value),je=Ue.width/(Qe.width/$.value),ge=Math.max(Me,je);ke(ge)}function me(Ue){const Me=Ue==="clockwise"?(M.value+$R)%360:M.value===0?360-$R:M.value-$R;M.value=Me}function _e(Ue){const Qe=FBe($.value,Ue);ke(Qe)}return Io(()=>{ne()}),{prefixCls:g,classNames:k,container:C,wrapperStyles:_,scale:$,translate:L,rotate:M,moving:B,mergedVisible:y,isLoading:T,isLoaded:D,scaleValueVisible:W,refWrapper:p,refImage:v,onWheel:H,onMaskClick:re,onCloseClick:ae,onImgLoad(){P("loaded")},onImgError(){P("error")},actions:j(()=>[{key:"fullScreen",name:n("imagePreview.fullScreen"),content:()=>da(z5),onClick:()=>Ne()},{key:"rotateRight",name:n("imagePreview.rotateRight"),content:()=>da(y0e),onClick:()=>me("clockwise")},{key:"rotateLeft",name:n("imagePreview.rotateLeft"),content:()=>da(g0e),onClick:()=>me("counterclockwise")},{key:"zoomIn",name:n("imagePreview.zoomIn"),content:()=>da(m0e),onClick:()=>_e("zoomIn"),disabled:$.value===S0e},{key:"zoomOut",name:n("imagePreview.zoomOut"),content:()=>da(v0e),onClick:()=>_e("zoomOut"),disabled:$.value===_0e},{key:"originalSize",name:n("imagePreview.originalSize"),content:()=>da(b0e),onClick:()=>ke(1)}])}}});const UBe=["src"];function HBe(e,t,n,r,o,a){const s=Ie("IconLoading"),l=Ie("PreviewToolbar"),c=Ie("IconClose"),d=Ie("PreviewArrow");return z(),Ye(qm,{to:e.container,disabled:!e.renderToBody},[I("div",{class:ue(e.classNames),style:Ke(e.wrapperStyles)},[O(Cs,{name:"image-fade",onBeforeEnter:t[0]||(t[0]=h=>h.parentElement&&(h.parentElement.style.display="block")),onAfterLeave:t[1]||(t[1]=h=>h.parentElement&&(h.parentElement.style.display="")),persisted:""},{default:de(()=>[Ai(I("div",{class:ue(`${e.prefixCls}-mask`)},null,2),[[Qo,e.mergedVisible]])]),_:1}),e.mergedVisible?(z(),Q("div",{key:0,ref:"refWrapper",tabindex:"0",class:ue(`${e.prefixCls}-wrapper`),onClick:t[6]||(t[6]=(...h)=>e.onMaskClick&&e.onMaskClick(...h)),onWheel:t[7]||(t[7]=us((...h)=>e.onWheel&&e.onWheel(...h),["prevent","stop"]))},[Le(" img "),I("div",{class:ue(`${e.prefixCls}-img-container`),style:Ke({transform:`scale(${e.scale}, ${e.scale})`}),onClick:t[4]||(t[4]=(...h)=>e.onMaskClick&&e.onMaskClick(...h))},[(z(),Q("img",{ref:"refImage",key:e.src,src:e.src,class:ue([`${e.prefixCls}-img`,{[`${e.prefixCls}-img-moving`]:e.moving}]),style:Ke({transform:`translate(${e.translate[0]}px, ${e.translate[1]}px) rotate(${e.rotate}deg)`}),onLoad:t[2]||(t[2]=(...h)=>e.onImgLoad&&e.onImgLoad(...h)),onError:t[3]||(t[3]=(...h)=>e.onImgError&&e.onImgError(...h))},null,46,UBe))],6),Le(" loading "),e.isLoading?(z(),Q("div",{key:0,class:ue(`${e.prefixCls}-loading`)},[O(s)],2)):Le("v-if",!0),Le(" scale value "),O(Cs,{name:"image-fade"},{default:de(()=>[e.scaleValueVisible?(z(),Q("div",{key:0,class:ue(`${e.prefixCls}-scale-value`)},ze((e.scale*100).toFixed(0))+"% ",3)):Le("v-if",!0)]),_:1}),Le(" toolbar "),e.isLoaded&&e.actionsLayout.length?(z(),Ye(l,{key:1,actions:e.actions,"actions-layout":e.actionsLayout},{default:de(()=>[vt(e.$slots,"actions")]),_:3},8,["actions","actions-layout"])):Le("v-if",!0),Le(" close btn "),e.closable?(z(),Q("div",{key:2,class:ue(`${e.prefixCls}-close-btn`),onClick:t[5]||(t[5]=(...h)=>e.onCloseClick&&e.onCloseClick(...h))},[O(c)],2)):Le("v-if",!0),Le(" group arrow "),e.inGroup?(z(),Ye(d,Yi(Vt({key:3},e.groupArrowProps)),null,16)):Le("v-if",!0)],34)):Le("v-if",!0)],6)],8,["to","disabled"])}var ay=Ve(zBe,[["render",HBe]]);function yre(e){if(An(e))return;if(!Ze(e)&&/^\d+(%)$/.test(e))return e;const t=parseInt(e,10);return Ze(t)?`${t}px`:void 0}const k0e=Symbol("PreviewGroupInjectionKey");let WBe=0;const GBe=Se({name:"Image",components:{IconImageClose:M5,IconLoading:Xa,ImageFooter:uBe,ImagePreview:ay},inheritAttrs:!1,props:{renderToBody:{type:Boolean,default:!0},src:{type:String},width:{type:[String,Number]},height:{type:[String,Number]},title:{type:String},description:{type:String},fit:{type:String},alt:{type:String},hideFooter:{type:[Boolean,String],default:!1},footerPosition:{type:String,default:"inner"},showLoader:{type:Boolean,default:!1},preview:{type:Boolean,default:!0},previewVisible:{type:Boolean,default:void 0},defaultPreviewVisible:{type:Boolean,default:!1},previewProps:{type:Object},footerClass:{type:[String,Array,Object]}},emits:["preview-visible-change","update:previewVisible"],setup(e,{attrs:t,slots:n,emit:r}){const{t:o}=No(),{height:a,width:s,hideFooter:l,title:c,description:d,src:h,footerPosition:p,defaultPreviewVisible:v,previewVisible:g,preview:y,previewProps:S}=nn(e),k=On(k0e,void 0),C=Te("image"),x=fe(),{isLoaded:E,isError:_,isLoading:T,setLoadStatus:D}=p0e(),P=j(()=>({width:yre(s?.value),height:yre(a?.value)})),M=j(()=>e.fit?{objectFit:e.fit}:{}),$=j(()=>[`${C}`,{[`${C}-loading`]:T.value,[`${C}-loading-error`]:_.value,[`${C}-with-footer-inner`]:E&&B&&p.value==="inner",[`${C}-with-footer-outer`]:E&&B&&p.value==="outer"},t.class]),L=j(()=>[P.value,t.style]),B=j(()=>c?.value||d?.value||n.extra?El(l.value)?!l.value&&E.value:l.value==="never":!1),F=j(()=>xa(t,["class","style"])),[W,U]=fa(v.value,Xt({value:g})),G=j(()=>!k?.preview&&y.value);Os(()=>{G_||!x.value||(x.value.src=h?.value,D("loading"))});const X=WBe++;Os(ee=>{var ne,ae,re;const ke=(re=k?.registerImageUrl)==null?void 0:re.call(k,X,((ae=(ne=S?.value)==null?void 0:ne.src)!=null?ae:h?.value)||"",y.value);ee(()=>{ke?.()})});function oe(){D("loaded")}function Z(){D("error")}function H(){y.value&&(k?.preview?k.preview(X):(r("preview-visible-change",!0),U(!0)))}function q(){r("preview-visible-change",!1),U(!1)}return{t:o,refImg:x,prefixCls:C,wrapperClassNames:$,wrapperStyles:L,showFooter:B,imgProps:F,imgStyle:P,isLoaded:E,isError:_,isLoading:T,mergedPreviewVisible:W,mergePreview:G,onImgLoaded:oe,onImgLoadError:Z,onImgClick:H,onPreviewClose:q,fitStyle:M}}}),KBe=["title","alt"];function qBe(e,t,n,r,o,a){const s=Ie("IconImageClose"),l=Ie("IconLoading"),c=Ie("ImageFooter"),d=Ie("ImagePreview");return z(),Q("div",{class:ue(e.wrapperClassNames),style:Ke(e.wrapperStyles)},[I("img",Vt({ref:"refImg",class:`${e.prefixCls}-img`},e.imgProps,{style:{...e.imgStyle,...e.fitStyle},title:e.title,alt:e.alt,onLoad:t[0]||(t[0]=(...h)=>e.onImgLoaded&&e.onImgLoaded(...h)),onError:t[1]||(t[1]=(...h)=>e.onImgLoadError&&e.onImgLoadError(...h)),onClick:t[2]||(t[2]=(...h)=>e.onImgClick&&e.onImgClick(...h))}),null,16,KBe),e.isLoaded?Le("v-if",!0):(z(),Q("div",{key:0,class:ue(`${e.prefixCls}-overlay`)},[e.isError?vt(e.$slots,"error",{key:0},()=>[I("div",{class:ue(`${e.prefixCls}-error`)},[I("div",{class:ue(`${e.prefixCls}-error-icon`)},[vt(e.$slots,"error-icon",{},()=>[O(s)])],2),e.alt||e.description?(z(),Q("div",{key:0,class:ue(`${e.prefixCls}-error-alt`)},ze(e.alt||e.description),3)):Le("v-if",!0)],2)]):Le("v-if",!0),e.isLoading&&(e.showLoader||e.$slots.loader)?vt(e.$slots,"loader",{key:1},()=>[I("div",{class:ue([`${e.prefixCls}-loader`])},[I("div",{class:ue(`${e.prefixCls}-loader-spin`)},[O(l),I("div",{class:ue(`${e.prefixCls}-loader-spin-text`)},ze(e.t("image.loading")),3)],2)],2)]):Le("v-if",!0)],2)),e.showFooter?(z(),Ye(c,{key:1,class:ue(e.footerClass),"prefix-cls":e.prefixCls,title:e.title,description:e.description},yo({_:2},[e.$slots.extra?{name:"extra",fn:de(()=>[vt(e.$slots,"extra")]),key:"0"}:void 0]),1032,["class","prefix-cls","title","description"])):Le("v-if",!0),e.isLoaded&&e.mergePreview?(z(),Ye(d,Vt({key:2,src:e.src},e.previewProps,{visible:e.mergedPreviewVisible,"render-to-body":e.renderToBody,onClose:e.onPreviewClose}),{actions:de(()=>[vt(e.$slots,"preview-actions")]),_:3},16,["src","visible","render-to-body","onClose"])):Le("v-if",!0)],6)}var BR=Ve(GBe,[["render",qBe]]),YBe=Se({name:"ImagePreviewGroup",components:{ImagePreview:ay},inheritAttrs:!1,props:{renderToBody:{type:Boolean,default:!0},srcList:{type:Array},current:{type:Number},defaultCurrent:{type:Number,default:0},infinite:{type:Boolean,default:!1},visible:{type:Boolean,default:void 0},defaultVisible:{type:Boolean,default:!1},maskClosable:{type:Boolean,default:!0},closable:{type:Boolean,default:!0},actionsLayout:{type:Array,default:()=>["fullScreen","rotateRight","rotateLeft","zoomIn","zoomOut","originalSize"]},popupContainer:{type:[String,Object]}},emits:["change","update:current","visible-change","update:visible"],setup(e,{emit:t}){const{srcList:n,visible:r,defaultVisible:o,current:a,defaultCurrent:s,infinite:l}=nn(e),[c,d]=fa(o.value,Xt({value:r})),h=L=>{L!==c.value&&(t("visible-change",L),t("update:visible",L),d(L))},p=j(()=>new Map(or(n?.value)?n?.value.map((L,B)=>[B,{url:L,canPreview:!0}]):[])),v=fe(new Map(p.value||[])),g=j(()=>Array.from(v.value.keys())),y=j(()=>g.value.length);function S(L,B,F){return p.value.has(L)||v.value.set(L,{url:B,canPreview:F}),function(){p.value.has(L)||v.value.delete(L)}}Rt(p,()=>{v.value=new Map(p.value||[])});const[k,C]=fa(s.value,Xt({value:a})),x=L=>{L!==k.value&&(t("change",L),t("update:current",L),C(L))},E=j(()=>g.value[k.value]),_=L=>{const B=g.value.indexOf(L);B!==k.value&&x(B)},T=j(()=>{var L;return(L=v.value.get(E.value))==null?void 0:L.url});ri(k0e,Xt({registerImageUrl:S,preview:L=>{h(!0),_(L)}}));const D=j(()=>{const L=(F,W)=>{var U;for(let G=F;G<=W;G++){const X=g.value[G];if((U=v.value.get(X))!=null&&U.canPreview)return G}},B=L(k.value+1,y.value-1);return An(B)&&l.value?L(0,k.value-1):B}),P=j(()=>{const L=(F,W)=>{var U;for(let G=F;G>=W;G--){const X=g.value[G];if((U=v.value.get(X))!=null&&U.canPreview)return G}},B=L(k.value-1,0);return An(B)&&l.value?L(y.value-1,k.value+1):B}),M=j(()=>An(P.value)?void 0:()=>{!An(P.value)&&x(P.value)}),$=j(()=>An(D.value)?void 0:()=>{!An(D.value)&&x(D.value)});return{mergedVisible:c,currentUrl:T,prevIndex:P,nextIndex:D,onClose(){h(!1)},groupArrowProps:Xt({onPrev:M,onNext:$})}}});function XBe(e,t,n,r,o,a){const s=Ie("ImagePreview");return z(),Q(Nt,null,[vt(e.$slots,"default"),O(s,Vt({...e.$attrs,groupArrowProps:e.groupArrowProps},{"in-group":"",src:e.currentUrl,visible:e.mergedVisible,"mask-closable":e.maskClosable,closable:e.closable,"actions-layout":e.actionsLayout,"popup-container":e.popupContainer,"render-to-body":e.renderToBody,onClose:e.onClose}),yo({_:2},[e.$slots.actions?{name:"actions",fn:de(()=>[vt(e.$slots,"actions",{url:e.currentUrl})]),key:"0"}:void 0]),1040,["src","visible","mask-closable","closable","actions-layout","popup-container","render-to-body","onClose"])],64)}var sb=Ve(YBe,[["render",XBe]]);const ZBe=Object.assign(BR,{Preview:ay,PreviewGroup:sb,install:(e,t)=>{Xn(e,t);const n=Yn(t);e.component(n+BR.name,BR),e.component(n+ay.name,ay),e.component(n+sb.name,sb),e.component(n+K8.name,K8)}}),x0e=Symbol("LayoutSiderInjectionKey"),C0e=Symbol("SiderInjectionKey");var JBe=Se({name:"Layout",props:{hasSider:{type:Boolean}},setup(e){const t=fe([]),n=Te("layout"),r=j(()=>[n,{[`${n}-has-sider`]:e.hasSider||t.value.length}]);return ri(x0e,{onSiderMount:o=>t.value.push(o),onSiderUnMount:o=>{t.value=t.value.filter(a=>a!==o)}}),{classNames:r}}});function QBe(e,t,n,r,o,a){return z(),Q("section",{class:ue(e.classNames)},[vt(e.$slots,"default")],2)}var NR=Ve(JBe,[["render",QBe]]);const eNe=Se({name:"LayoutHeader",setup(){return{classNames:[Te("layout-header")]}}});function tNe(e,t,n,r,o,a){return z(),Q("header",{class:ue(e.classNames)},[vt(e.$slots,"default")],2)}var Pw=Ve(eNe,[["render",tNe]]);const nNe=Se({name:"LayoutContent",setup(){return{classNames:[Te("layout-content")]}}});function rNe(e,t,n,r,o,a){return z(),Q("main",{class:ue(e.classNames)},[vt(e.$slots,"default")],2)}var Rw=Ve(nNe,[["render",rNe]]);const iNe=Se({name:"LayoutFooter",setup(){return{classNames:[Te("layout-footer")]}}});function oNe(e,t,n,r,o,a){return z(),Q("footer",{class:ue(e.classNames)},[vt(e.$slots,"default")],2)}var Mw=Ve(iNe,[["render",oNe]]);const sNe=Se({name:"IconDragDot",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-drag-dot`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),aNe=["stroke-width","stroke-linecap","stroke-linejoin"];function lNe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M40 17v2h-2v-2h2ZM25 17v2h-2v-2h2ZM10 17v2H8v-2h2ZM40 29v2h-2v-2h2ZM25 29v2h-2v-2h2ZM10 29v2H8v-2h2Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{d:"M40 17v2h-2v-2h2ZM25 17v2h-2v-2h2ZM10 17v2H8v-2h2ZM40 29v2h-2v-2h2ZM25 29v2h-2v-2h2ZM10 29v2H8v-2h2Z"},null,-1)]),14,aNe)}var FR=Ve(sNe,[["render",lNe]]);const w0e=Object.assign(FR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+FR.name,FR)}}),uNe=Se({name:"IconDragDotVertical",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-drag-dot-vertical`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),cNe=["stroke-width","stroke-linecap","stroke-linejoin"];function dNe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M17 8h2v2h-2V8ZM17 23h2v2h-2v-2ZM17 38h2v2h-2v-2ZM29 8h2v2h-2V8ZM29 23h2v2h-2v-2ZM29 38h2v2h-2v-2Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{d:"M17 8h2v2h-2V8ZM17 23h2v2h-2v-2ZM17 38h2v2h-2v-2ZM29 8h2v2h-2V8ZM29 23h2v2h-2v-2ZM29 38h2v2h-2v-2Z"},null,-1)]),14,cNe)}var jR=Ve(uNe,[["render",dNe]]);const U5=Object.assign(jR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+jR.name,jR)}});var fNe=Se({name:"ResizeTrigger",components:{ResizeObserver:Dd,IconDragDot:w0e,IconDragDotVertical:U5},props:{prefixCls:{type:String,required:!0},direction:{type:String,default:"horizontal"}},emits:["resize"],setup(e,{emit:t}){const{direction:n,prefixCls:r}=nn(e),o=j(()=>n?.value==="horizontal");return{classNames:j(()=>[r.value,{[`${r.value}-horizontal`]:o.value,[`${r.value}-vertical`]:!o.value}]),onResize:l=>{t("resize",l)},isHorizontal:o}}});function hNe(e,t,n,r,o,a){const s=Ie("IconDragDot"),l=Ie("IconDragDotVertical"),c=Ie("ResizeObserver");return z(),Ye(c,{onResize:e.onResize},{default:de(()=>[I("div",{class:ue(e.classNames)},[Le(" @slot 自定义内容 "),vt(e.$slots,"default",{},()=>[I("div",{class:ue(`${e.prefixCls}-icon-wrapper`)},[Le(" @slot 自定义 icon "),vt(e.$slots,"icon",{},()=>[e.isHorizontal?(z(),Ye(s,{key:0,class:ue(`${e.prefixCls}-icon`)},null,8,["class"])):(z(),Ye(l,{key:1,class:ue(`${e.prefixCls}-icon`)},null,8,["class"]))])],2)])],2)]),_:3},8,["onResize"])}var E0e=Ve(fNe,[["render",hNe]]);const T0e="left",A0e="right",IH="top",LH="bottom",pNe=[T0e,A0e,IH,LH];function bre(e,t){if(e===0)return 0;const n=e-t;return n<=0?0:n}function VR(e){return[IH,LH].indexOf(e)>-1}const vNe=Se({name:"ResizeBox",components:{ResizeTrigger:E0e},inheritAttrs:!1,props:{width:{type:Number},height:{type:Number},component:{type:String,default:"div"},directions:{type:Array,default:()=>["right"]}},emits:{"update:width":e=>!0,"update:height":e=>!0,movingStart:e=>!0,moving:(e,t)=>!0,movingEnd:e=>!0},setup(e,{emit:t}){const{height:n,width:r,directions:o}=nn(e),[a,s]=fa(null,Xt({value:r})),[l,c]=fa(null,Xt({value:n})),d=fe(),h=Xt({}),p=Te("resizebox"),v=j(()=>[p]),g=j(()=>({...Ze(a.value)?{width:`${a.value}px`}:{},...Ze(l.value)?{height:`${l.value}px`}:{},...h})),y=j(()=>o.value.filter(_=>pNe.includes(_))),S={direction:"",startPageX:0,startPageY:0,startWidth:0,startHeight:0,moving:!1,padding:{left:0,right:0,top:0,bottom:0}};function k(_){if(!S.moving)return;const{startPageX:T,startPageY:D,startWidth:P,startHeight:M,direction:$}=S;let L=P,B=M;const F=_.pageX-T,W=_.pageY-D;switch($){case T0e:L=P-F,s(L),t("update:width",L);break;case A0e:L=P+F,s(L),t("update:width",L);break;case IH:B=M-W,c(B),t("update:height",B);break;case LH:B=M+W,c(B),t("update:height",B);break}t("moving",{width:L,height:B},_)}function C(_){S.moving=!1,ro(window,"mousemove",k),ro(window,"mouseup",C),ro(window,"contextmenu",C),document.body.style.cursor="default",t("movingEnd",_)}function x(_,T){var D,P;t("movingStart",T),S.moving=!0,S.startPageX=T.pageX,S.startPageY=T.pageY,S.direction=_;const{top:M,left:$,right:L,bottom:B}=S.padding;S.startWidth=bre(((D=d.value)==null?void 0:D.clientWidth)||0,$+L),S.startHeight=bre(((P=d.value)==null?void 0:P.clientHeight)||0,M+B),Mi(window,"mousemove",k),Mi(window,"mouseup",C),Mi(window,"contextmenu",C),document.body.style.cursor=VR(_)?"row-resize":"col-resize"}function E(_,T){const{width:D,height:P}=T.contentRect,M=VR(_)?P:D;S.padding[_]=M,h[`padding-${_}`]=`${M}px`}return{prefixCls:p,classNames:v,styles:g,wrapperRef:d,onMoveStart:x,isHorizontal:VR,allowDirections:y,onTiggerResize:E}}});function mNe(e,t,n,r,o,a){const s=Ie("ResizeTrigger");return z(),Ye(Wa(e.component),Vt({ref:"wrapperRef",class:e.classNames},e.$attrs,{style:e.styles}),{default:de(()=>[vt(e.$slots,"default"),(z(!0),Q(Nt,null,gn(e.allowDirections,l=>(z(),Ye(s,{key:l,"prefix-cls":`${e.prefixCls}-trigger`,class:ue(`${e.prefixCls}-direction-${l}`),direction:e.isHorizontal(l)?"horizontal":"vertical",onMousedown:c=>{e.onMoveStart(l,c)},onResize:c=>{e.onTiggerResize(l,c)}},yo({default:de(()=>[e.$slots["resize-trigger"]?vt(e.$slots,"resize-trigger",{key:0,direction:l}):Le("v-if",!0)]),_:2},[e.$slots["resize-trigger-icon"]?{name:"icon",fn:de(()=>[vt(e.$slots,"resize-trigger-icon",{direction:l})]),key:"0"}:void 0]),1032,["prefix-cls","class","direction","onMousedown","onResize"]))),128))]),_:3},16,["class","style"])}var zR=Ve(vNe,[["render",mNe]]);const I0e=Object.assign(zR,{install:(e,t)=>{Xn(e,t);const n=Yn(t);e.component(n+zR.name,zR)}});function L0e(e,t){const n=j(()=>Bo(e)?e.value:e);let r="";bn(()=>{r=W8.subscribe((o,a)=>{n.value&&(!a||a===n.value)&&t(!!o[n.value])})}),gi(()=>{r&&W8.unsubscribe(r)})}const gNe=(()=>{let e=0;return(t="")=>(e+=1,`${t}${e}`)})();var yNe=Se({name:"LayoutSider",components:{IconLeft:Al,IconRight:Hi,ResizeBox:I0e},props:{theme:{type:String,default:"light"},collapsed:{type:Boolean,default:void 0},defaultCollapsed:{type:Boolean},collapsible:{type:Boolean},width:{type:Number,default:200},collapsedWidth:{type:Number,default:48},reverseArrow:{type:Boolean},breakpoint:{type:String},resizeDirections:{type:Array,default:void 0},hideTrigger:{type:Boolean}},emits:["collapse","update:collapsed","breakpoint"],setup(e,{emit:t}){const{theme:n,collapsed:r,defaultCollapsed:o,collapsible:a,hideTrigger:s,breakpoint:l,collapsedWidth:c,resizeDirections:d}=nn(e),[h,p]=fa(o.value,Xt({value:r})),v=j(()=>d.value?"ResizeBox":"div"),g=j(()=>a.value&&!s.value),y=Te("layout-sider"),S=j(()=>[y,{[`${y}-light`]:n.value==="light",[`${y}-has-trigger`]:g.value,[`${y}-collapsed`]:r.value}]),k=j(()=>{const{width:T,collapsedWidth:D}=e,P=h.value?D:T;return Ze(P)?`${P}px`:String(P)}),C=j(()=>[`${y}-trigger`,{[`${y}-trigger-light`]:n.value==="light"}]),x=()=>{const T=!h.value;p(T),t("update:collapsed",T),t("collapse",T,"clickTrigger")};L0e(l,T=>{const D=!T;D!==h.value&&(p(D),t("update:collapsed",D),t("collapse",D,"responsive"),t("breakpoint",D))});const E=gNe("__arco_layout_sider"),_=On(x0e,void 0);return bn(()=>{var T;(T=_?.onSiderMount)==null||T.call(_,E)}),gi(()=>{var T;(T=_?.onSiderUnMount)==null||T.call(_,E)}),ri(C0e,Xt({theme:n,collapsed:h,collapsedWidth:c})),{componentTag:v,prefixCls:y,classNames:S,triggerClassNames:C,localCollapsed:h,siderWidth:k,showTrigger:g,toggleTrigger:x}}});const bNe={key:0},_Ne={key:1};function SNe(e,t,n,r,o,a){const s=Ie("IconLeft"),l=Ie("IconRight");return z(),Ye(Wa(e.componentTag),Vt({class:e.classNames,style:{width:e.siderWidth}},e.resizeDirections?{directions:e.resizeDirections}:{}),{default:de(()=>[I("div",{class:ue(`${e.prefixCls}-children`)},[vt(e.$slots,"default")],2),e.showTrigger?(z(),Q("div",{key:0,class:ue(e.triggerClassNames),style:Ke({width:e.siderWidth}),onClick:t[0]||(t[0]=(...c)=>e.toggleTrigger&&e.toggleTrigger(...c))},[vt(e.$slots,"trigger",{collapsed:e.localCollapsed},()=>[e.reverseArrow?(z(),Q("div",_Ne,[e.localCollapsed?(z(),Ye(s,{key:0})):(z(),Ye(l,{key:1}))])):(z(),Q("div",bNe,[e.localCollapsed?(z(),Ye(l,{key:1})):(z(),Ye(s,{key:0}))]))])],6)):Le("v-if",!0)]),_:3},16,["class","style"])}var Ow=Ve(yNe,[["render",SNe]]);const kNe=Object.assign(NR,{Header:Pw,Content:Rw,Footer:Mw,Sider:Ow,install:(e,t)=>{Xn(e,t);const n=Yn(t);e.component(n+NR.name,NR),e.component(n+Pw.name,Pw),e.component(n+Rw.name,Rw),e.component(n+Mw.name,Mw),e.component(n+Ow.name,Ow)}}),xNe=Se({name:"Pager",props:{pageNumber:{type:Number},current:{type:Number},disabled:{type:Boolean,default:!1},style:{type:Object},activeStyle:{type:Object}},emits:["click"],setup(e,{emit:t}){const n=Te("pagination-item"),r=j(()=>e.current===e.pageNumber),o=l=>{e.disabled||t("click",e.pageNumber,l)},a=j(()=>[n,{[`${n}-active`]:r.value}]),s=j(()=>r.value?e.activeStyle:e.style);return{prefixCls:n,cls:a,mergedStyle:s,handleClick:o}}});function CNe(e,t,n,r,o,a){return z(),Q("li",{class:ue(e.cls),style:Ke(e.mergedStyle),onClick:t[0]||(t[0]=(...s)=>e.handleClick&&e.handleClick(...s))},[vt(e.$slots,"default",{page:e.pageNumber},()=>[We(ze(e.pageNumber),1)])],6)}var wNe=Ve(xNe,[["render",CNe]]);const D0e=(e,{min:t,max:n})=>en?n:e,ENe=Se({name:"StepPager",components:{IconLeft:Al,IconRight:Hi},props:{pages:{type:Number,required:!0},current:{type:Number,required:!0},type:{type:String,required:!0},disabled:{type:Boolean,default:!1},simple:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:t}){const n=Te("pagination-item"),r=e.type==="next",o=j(()=>e.disabled?e.disabled:!e.pages||r&&e.current===e.pages?!0:!r&&e.current<=1),a=j(()=>D0e(e.current+(r?1:-1),{min:1,max:e.pages})),s=c=>{o.value||t("click",a.value)},l=j(()=>[n,`${n}-${e.type}`,{[`${n}-disabled`]:o.value}]);return{prefixCls:n,cls:l,isNext:r,handleClick:s}}});function TNe(e,t,n,r,o,a){const s=Ie("icon-right"),l=Ie("icon-left");return z(),Ye(Wa(e.simple?"span":"li"),{class:ue(e.cls),onClick:e.handleClick},{default:de(()=>[vt(e.$slots,"default",{type:e.isNext?"next":"previous"},()=>[e.isNext?(z(),Ye(s,{key:0})):(z(),Ye(l,{key:1}))])]),_:3},8,["class","onClick"])}var _re=Ve(ENe,[["render",TNe]]);const ANe=Se({name:"EllipsisPager",components:{IconMore:F0},props:{current:{type:Number,required:!0},step:{type:Number,default:5},pages:{type:Number,required:!0}},emits:["click"],setup(e,{emit:t}){const n=Te("pagination-item"),r=j(()=>D0e(e.current+e.step,{min:1,max:e.pages})),o=s=>{t("click",r.value)},a=j(()=>[n,`${n}-ellipsis`]);return{prefixCls:n,cls:a,handleClick:o}}});function INe(e,t,n,r,o,a){const s=Ie("icon-more");return z(),Q("li",{class:ue(e.cls),onClick:t[0]||(t[0]=(...l)=>e.handleClick&&e.handleClick(...l))},[vt(e.$slots,"default",{},()=>[O(s)])],2)}var LNe=Ve(ANe,[["render",INe]]);const DNe=Se({name:"PageJumper",components:{InputNumber:Q_},props:{current:{type:Number,required:!0},simple:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},pages:{type:Number,required:!0},size:{type:String},onChange:{type:Function}},emits:["change"],setup(e,{emit:t}){const n=Te("pagination-jumper"),{t:r}=No(),o=fe(e.simple?e.current:void 0),a=c=>{const d=parseInt(c.toString(),10);return Number.isNaN(d)?void 0:String(d)},s=c=>{t("change",o.value),Cn(()=>{e.simple||(o.value=void 0)})};Rt(()=>e.current,c=>{e.simple&&c!==o.value&&(o.value=c)});const l=j(()=>[n,{[`${n}-simple`]:e.simple}]);return{prefixCls:n,cls:l,t:r,inputValue:o,handleChange:s,handleFormatter:a}}});function PNe(e,t,n,r,o,a){const s=Ie("input-number");return z(),Q("span",{class:ue(e.cls)},[e.simple?Le("v-if",!0):(z(),Q("span",{key:0,class:ue([`${e.prefixCls}-prepend`,`${e.prefixCls}-text-goto`])},[vt(e.$slots,"jumper-prepend",{},()=>[We(ze(e.t("pagination.goto")),1)])],2)),O(s,{modelValue:e.inputValue,"onUpdate:modelValue":t[0]||(t[0]=l=>e.inputValue=l),class:ue(`${e.prefixCls}-input`),min:1,max:e.pages,size:e.size,disabled:e.disabled,"hide-button":"",formatter:e.handleFormatter,onChange:e.handleChange},null,8,["modelValue","class","max","size","disabled","formatter","onChange"]),e.$slots["jumper-append"]?(z(),Q("span",{key:1,class:ue(`${e.prefixCls}-append`)},[vt(e.$slots,"jumper-append")],2)):Le("v-if",!0),e.simple?(z(),Q(Nt,{key:2},[I("span",{class:ue(`${e.prefixCls}-separator`)},"/",2),I("span",{class:ue(`${e.prefixCls}-total-page`)},ze(e.pages),3)],64)):Le("v-if",!0)],2)}var Sre=Ve(DNe,[["render",PNe]]);const RNe=Se({name:"PageOptions",components:{ArcoSelect:r_},props:{sizeOptions:{type:Array,required:!0},pageSize:Number,disabled:Boolean,size:{type:String},onChange:{type:Function},selectProps:{type:Object}},emits:["change"],setup(e,{emit:t}){const n=Te("pagination-options"),{t:r}=No(),o=j(()=>e.sizeOptions.map(s=>({value:s,label:`${s} ${r("pagination.countPerPage")}`})));return{prefixCls:n,options:o,handleChange:s=>{t("change",s)}}}});function MNe(e,t,n,r,o,a){const s=Ie("arco-select");return z(),Q("span",{class:ue(e.prefixCls)},[O(s,Vt({"model-value":e.pageSize,options:e.options,size:e.size,disabled:e.disabled},e.selectProps,{onChange:e.handleChange}),null,16,["model-value","options","size","disabled","onChange"])],2)}var ONe=Ve(RNe,[["render",MNe]]),UR=Se({name:"Pagination",props:{total:{type:Number,required:!0},current:Number,defaultCurrent:{type:Number,default:1},pageSize:Number,defaultPageSize:{type:Number,default:10},disabled:{type:Boolean,default:!1},hideOnSinglePage:{type:Boolean,default:!1},simple:{type:Boolean,default:!1},showTotal:{type:Boolean,default:!1},showMore:{type:Boolean,default:!1},showJumper:{type:Boolean,default:!1},showPageSize:{type:Boolean,default:!1},pageSizeOptions:{type:Array,default:()=>[10,20,30,40,50]},pageSizeProps:{type:Object},size:{type:String},pageItemStyle:{type:Object},activePageItemStyle:{type:Object},baseSize:{type:Number,default:6},bufferSize:{type:Number,default:2},autoAdjust:{type:Boolean,default:!0}},emits:{"update:current":e=>!0,"update:pageSize":e=>!0,change:e=>!0,pageSizeChange:e=>!0},setup(e,{emit:t,slots:n}){const r=Te("pagination"),{t:o}=No(),{disabled:a,pageItemStyle:s,activePageItemStyle:l,size:c}=nn(e),{mergedSize:d}=wa(c),h=fe(e.defaultCurrent),p=fe(e.defaultPageSize),v=j(()=>{var D;return(D=e.current)!=null?D:h.value}),g=j(()=>{var D;return(D=e.pageSize)!=null?D:p.value}),y=j(()=>Math.ceil(e.total/g.value)),S=D=>{D!==v.value&&Ze(D)&&!e.disabled&&(h.value=D,t("update:current",D),t("change",D))},k=D=>{p.value=D,t("update:pageSize",D),t("pageSizeChange",D)},C=Xt({current:v,pages:y,disabled:a,style:s,activeStyle:l,onClick:S}),x=(D,P={})=>D==="more"?O(LNe,Vt(P,C),{default:n["page-item-ellipsis"]}):D==="previous"?O(_re,Vt({type:"previous"},P,C),{default:n["page-item-step"]}):D==="next"?O(_re,Vt({type:"next"},P,C),{default:n["page-item-step"]}):O(wNe,Vt(P,C),{default:n["page-item"]}),E=j(()=>{const D=[];if(y.value2+e.bufferSize&&($=!0,P=Math.min(v.value-e.bufferSize,y.value-2*e.bufferSize)),v.valuee.simple?O("span",{class:`${r}-simple`},[x("previous",{simple:!0}),O(Sre,{disabled:e.disabled,current:v.value,size:d.value,pages:y.value,simple:!0,onChange:S},null),x("next",{simple:!0})]):O("ul",{class:`${r}-list`},[x("previous",{simple:!0}),E.value,e.showMore&&x("more",{key:"more",step:e.bufferSize*2+1}),x("next",{simple:!0})]);Rt(g,(D,P)=>{if(e.autoAdjust&&D!==P&&v.value>1){const M=P*(v.value-1)+1,$=Math.ceil(M/D);$!==v.value&&(h.value=$,t("update:current",$),t("change",$))}}),Rt(y,(D,P)=>{if(e.autoAdjust&&D!==P&&v.value>1&&v.value>D){const M=Math.max(D,1);h.value=M,t("update:current",M),t("change",M)}});const T=j(()=>[r,`${r}-size-${d.value}`,{[`${r}-simple`]:e.simple,[`${r}-disabled`]:e.disabled}]);return()=>{var D,P;return e.hideOnSinglePage&&y.value<=1?null:O("div",{class:T.value},[e.showTotal&&O("span",{class:`${r}-total`},[(P=(D=n.total)==null?void 0:D.call(n,{total:e.total}))!=null?P:o("pagination.total",e.total)]),_(),e.showPageSize&&O(ONe,{disabled:e.disabled,sizeOptions:e.pageSizeOptions,pageSize:g.value,size:d.value,onChange:k,selectProps:e.pageSizeProps},null),!e.simple&&e.showJumper&&O(Sre,{disabled:e.disabled,current:v.value,pages:y.value,size:d.value,onChange:S},{"jumper-prepend":n["jumper-prepend"],"jumper-append":n["jumper-append"]})])}}});const DH=Object.assign(UR,{install:(e,t)=>{Xn(e,t);const n=Yn(t);e.component(n+UR.name,UR)}}),$Ne=(e,{emit:t})=>{var n,r;const o=fe(br(e.paginationProps)&&(n=e.paginationProps.defaultCurrent)!=null?n:1),a=fe(br(e.paginationProps)&&(r=e.paginationProps.defaultPageSize)!=null?r:10),s=j(()=>{var h;return br(e.paginationProps)&&(h=e.paginationProps.current)!=null?h:o.value}),l=j(()=>{var h;return br(e.paginationProps)&&(h=e.paginationProps.pageSize)!=null?h:a.value});return{current:s,pageSize:l,handlePageChange:h=>{o.value=h,t("pageChange",h)},handlePageSizeChange:h=>{a.value=h,t("pageSizeChange",h)}}};function kre(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wi(e)}var HR=Se({name:"List",props:{data:{type:Array},size:{type:String,default:"medium"},bordered:{type:Boolean,default:!0},split:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},hoverable:{type:Boolean,default:!1},paginationProps:{type:Object},gridProps:{type:Object},maxHeight:{type:[String,Number],default:0},bottomOffset:{type:Number,default:0},virtualListProps:{type:Object},scrollbar:{type:[Object,Boolean],default:!0}},emits:{scroll:()=>!0,reachBottom:()=>!0,pageChange:e=>!0,pageSizeChange:e=>!0},setup(e,{emit:t,slots:n}){const{scrollbar:r}=nn(e),o=Te("list"),a=On(Ya,void 0),{componentRef:s,elementRef:l}=U1("containerRef"),c=j(()=>e.virtualListProps),{displayScrollbar:d,scrollbarProps:h}=D5(r);let p=0;const v=U=>{const{scrollTop:G,scrollHeight:X,offsetHeight:oe}=U.target,Z=Math.floor(X-(G+oe));G>p&&Z<=e.bottomOffset&&t("reachBottom"),t("scroll"),p=G};bn(()=>{if(l.value){const{scrollTop:U,scrollHeight:G,offsetHeight:X}=l.value;G<=U+X&&t("reachBottom")}});const{current:g,pageSize:y,handlePageChange:S,handlePageSizeChange:k}=$Ne(e,{emit:t}),C=U=>{if(!e.paginationProps)return U;if(e.paginationProps&&U.length>y.value){const G=(g.value-1)*y.value;return U.slice(G,G+y.value)}return U},x=U=>{let G;if(!e.gridProps)return null;const X=C(U);if(e.gridProps.span){const oe=[],Z=24/e.gridProps.span;for(let H=0;H{var ke;return O(A4.Col,{key:`${ne}-${re}`,class:`${o}-col`,span:(ke=e.gridProps)==null?void 0:ke.span},{default:()=>{var Ne;return[Wi(ae)?ae:(Ne=n.item)==null?void 0:Ne.call(n,{item:ae,index:re})]}})}))?q:{default:()=>[q]}))}return oe}return O(A4.Row,{class:`${o}-row`,gutter:e.gridProps.gutter},kre(G=X.map((oe,Z)=>O(A4.Col,Vt({key:Z,class:`${o}-col`},xa(e.gridProps,["gutter"])),{default:()=>{var H;return[Wi(oe)?oe:(H=n.item)==null?void 0:H.call(n,{item:oe,index:Z})]}})))?G:{default:()=>[G]})},E=U=>C(U).map((X,oe)=>{var Z;return Wi(X)?X:(Z=n.item)==null?void 0:Z.call(n,{item:X,index:oe})}),_=()=>{const U=n.default?yf(n.default()):e.data;return U&&U.length>0?e.gridProps?x(U):E(U):F()},T=()=>{if(!e.paginationProps)return null;const U=xa(e.paginationProps,["current","pageSize","defaultCurrent","defaultPageSize"]);return O(DH,Vt({class:`${o}-pagination`},U,{current:g.value,pageSize:y.value,onChange:S,onPageSizeChange:k}),null)},D=j(()=>[o,`${o}-${e.size}`,{[`${o}-bordered`]:e.bordered,[`${o}-split`]:e.split,[`${o}-hover`]:e.hoverable}]),P=j(()=>{if(e.maxHeight)return{maxHeight:Ze(e.maxHeight)?`${e.maxHeight}px`:e.maxHeight,overflowY:"auto"}}),M=j(()=>[`${o}-content`,{[`${o}-virtual`]:c.value}]),$=fe(),L=()=>{var U;const G=C((U=e.data)!=null?U:[]);return G.length?O(a3,Vt({ref:$,class:M.value,data:G},e.virtualListProps,{onScroll:v}),{item:({item:X,index:oe})=>{var Z;return(Z=n.item)==null?void 0:Z.call(n,{item:X,index:oe})}}):F()},B=()=>n["scroll-loading"]?O("div",{class:[`${o}-item`,`${o}-scroll-loading`]},[n["scroll-loading"]()]):null,F=()=>{var U,G,X,oe,Z;return n["scroll-loading"]?null:(Z=(oe=(U=n.empty)==null?void 0:U.call(n))!=null?oe:(X=a==null?void 0:(G=a.slots).empty)==null?void 0:X.call(G,{component:"list"}))!=null?Z:O(Xh,null,null)};return{virtualListRef:$,render:()=>{const U=d.value?Rd:"div";return O("div",{class:`${o}-wrapper`},[O(Pd,{class:`${o}-spin`,loading:e.loading},{default:()=>[O(U,Vt({ref:s,class:D.value,style:P.value},h.value,{onScroll:v}),{default:()=>[O("div",{class:`${o}-content-wrapper`},[n.header&&O("div",{class:`${o}-header`},[n.header()]),c.value&&!e.gridProps?O(Nt,null,[L(),B()]):O("div",{role:"list",class:M.value},[_(),B()]),n.footer&&O("div",{class:`${o}-footer`},[n.footer()])])]}),T()]})])}}},methods:{scrollIntoView(e){this.virtualListRef&&this.virtualListRef.scrollTo(e)}},render(){return this.render()}}),$w=Se({name:"ListItem",props:{actionLayout:{type:String,default:"horizontal"}},setup(e,{slots:t}){const n=Te("list-item"),r=()=>{var o;const a=(o=t.actions)==null?void 0:o.call(t);return!a||!a.length?null:O("ul",{class:`${n}-action`},[a.map((s,l)=>O("li",{key:`${n}-action-${l}`},[s]))])};return()=>{var o,a;return O("div",{role:"listitem",class:n},[O("div",{class:`${n}-main`},[(o=t.meta)==null?void 0:o.call(t),O("div",{class:`${n}-content`},[(a=t.default)==null?void 0:a.call(t)]),e.actionLayout==="vertical"&&r()]),e.actionLayout==="horizontal"&&r(),t.extra&&O("div",{class:`${n}-extra`},[t.extra()])])}}});const BNe=Se({name:"ListItemMeta",props:{title:String,description:String},setup(e,{slots:t}){const n=Te("list-item-meta"),r=!!(e.title||e.description||t.title||t.description);return{prefixCls:n,hasContent:r}}});function NNe(e,t,n,r,o,a){return z(),Q("div",{class:ue(e.prefixCls)},[e.$slots.avatar?(z(),Q("div",{key:0,class:ue(`${e.prefixCls}-avatar`)},[vt(e.$slots,"avatar")],2)):Le("v-if",!0),e.hasContent?(z(),Q("div",{key:1,class:ue(`${e.prefixCls}-content`)},[e.$slots.title||e.title?(z(),Q("div",{key:0,class:ue(`${e.prefixCls}-title`)},[vt(e.$slots,"title",{},()=>[We(ze(e.title),1)])],2)):Le("v-if",!0),e.$slots.description||e.description?(z(),Q("div",{key:1,class:ue(`${e.prefixCls}-description`)},[vt(e.$slots,"description",{},()=>[We(ze(e.description),1)])],2)):Le("v-if",!0)],2)):Le("v-if",!0)],2)}var Bw=Ve(BNe,[["render",NNe]]);const P0e=Object.assign(HR,{Item:Object.assign($w,{Meta:Bw}),install:(e,t)=>{Xn(e,t);const n=Yn(t);e.component(n+HR.name,HR),e.component(n+$w.name,$w),e.component(n+Bw.name,Bw)}}),FNe=["border-width","box-sizing","font-family","font-weight","font-size","font-variant","letter-spacing","line-height","padding-top","padding-bottom","padding-left","padding-right","text-indent","text-rendering","text-transform","white-space","overflow-wrap","width"],sV=e=>{const t={};return FNe.forEach(n=>{t[n]=e.getPropertyValue(n)}),t},jNe=Se({name:"Textarea",components:{ResizeObserver:Dd,IconHover:Lo,IconClose:ds},inheritAttrs:!1,props:{modelValue:String,defaultValue:{type:String,default:""},placeholder:String,disabled:{type:Boolean,default:!1},error:{type:Boolean,default:!1},maxLength:{type:[Number,Object],default:0},showWordLimit:{type:Boolean,default:!1},allowClear:{type:Boolean,default:!1},autoSize:{type:[Boolean,Object],default:!1},wordLength:{type:Function},wordSlice:{type:Function},textareaAttrs:{type:Object}},emits:{"update:modelValue":e=>!0,input:(e,t)=>!0,change:(e,t)=>!0,clear:e=>!0,focus:e=>!0,blur:e=>!0},setup(e,{emit:t,attrs:n}){const{disabled:r,error:o,modelValue:a}=nn(e),s=Te("textarea"),{mergedDisabled:l,mergedError:c,eventHandlers:d}=Do({disabled:r,error:o}),h=fe(),p=fe(),v=fe(),g=fe(),y=fe(e.defaultValue),S=j(()=>{var Fe;return(Fe=a.value)!=null?Fe:y.value}),[k,C]=Qhe(h);Rt(a,Fe=>{(An(Fe)||Tl(Fe))&&(y.value="")});const x=j(()=>br(e.maxLength)&&!!e.maxLength.errorOnly),E=j(()=>br(e.maxLength)?e.maxLength.length:e.maxLength),_=Fe=>{var He;return En(e.wordLength)?e.wordLength(Fe):(He=Fe.length)!=null?He:0},T=j(()=>_(S.value)),D=j(()=>c.value||!!(E.value&&x.value&&T.value>E.value)),P=fe(!1),M=fe(!1),$=j(()=>e.allowClear&&!l.value&&S.value),L=fe(!1),B=fe(""),F=()=>{k(),Cn(()=>{h.value&&S.value!==h.value.value&&(h.value.value=S.value,C())})},W=(Fe,He=!0)=>{var Je,rt;E.value&&!x.value&&_(Fe)>E.value&&(Fe=(rt=(Je=e.wordSlice)==null?void 0:Je.call(e,Fe,E.value))!=null?rt:Fe.slice(0,E.value)),y.value=Fe,He&&t("update:modelValue",Fe),F()};let U=S.value;const G=(Fe,He)=>{var Je,rt;Fe!==U&&(U=Fe,t("change",Fe,He),(rt=(Je=d.value)==null?void 0:Je.onChange)==null||rt.call(Je,He))},X=Fe=>{var He,Je;M.value=!0,U=S.value,t("focus",Fe),(Je=(He=d.value)==null?void 0:He.onFocus)==null||Je.call(He,Fe)},oe=Fe=>{var He,Je;M.value=!1,t("blur",Fe),(Je=(He=d.value)==null?void 0:He.onBlur)==null||Je.call(He,Fe),G(S.value,Fe)},Z=Fe=>{var He,Je;const{value:rt}=Fe.target;if(Fe.type==="compositionend"){if(L.value=!1,B.value="",E.value&&!x.value&&S.value.length>=E.value&&_(rt)>E.value){F();return}t("input",rt,Fe),W(rt),(Je=(He=d.value)==null?void 0:He.onInput)==null||Je.call(He,Fe)}else L.value=!0},H=Fe=>{var He,Je;const{value:rt}=Fe.target;if(L.value)B.value=rt;else{if(E.value&&!x.value&&S.value.length>=E.value&&_(rt)>E.value&&Fe.inputType==="insertText"){F();return}t("input",rt,Fe),W(rt),(Je=(He=d.value)==null?void 0:He.onInput)==null||Je.call(He,Fe)}},q=Fe=>{W(""),G("",Fe),t("clear",Fe)};Rt(a,Fe=>{Fe!==S.value&&W(Fe??"",!1)});const ee=Fe=>xa(n,S0),ne=Fe=>kf(n,S0),ae=ne(),re=j(()=>{const Fe={...ae,...e.textareaAttrs};return D.value&&(Fe["aria-invalid"]=!0),Fe}),ke=j(()=>[`${s}-wrapper`,{[`${s}-focus`]:M.value,[`${s}-disabled`]:l.value,[`${s}-error`]:D.value,[`${s}-scroll`]:P.value}]);let Ne;const me=fe(0),_e=fe(0),Ue=j(()=>!br(e.autoSize)||!e.autoSize.minRows?0:e.autoSize.minRows*me.value+_e.value),Qe=j(()=>!br(e.autoSize)||!e.autoSize.maxRows?0:e.autoSize.maxRows*me.value+_e.value),Me=()=>{const Fe=sV(Ne);me.value=Number.parseInt(Fe["line-height"]||0,10),_e.value=Number.parseInt(Fe["border-width"]||0,10)*2+Number.parseInt(Fe["padding-top"]||0,10)+Number.parseInt(Fe["padding-bottom"]||0,10),g.value=Fe,Cn(()=>{var He;const Je=(He=v.value)==null?void 0:He.offsetHeight;let rt=Je??0,ht="hidden";Ue.value&&rtQe.value&&(rt=Qe.value,ht="auto"),p.value={height:`${rt}px`,resize:"none",overflow:ht}})};bn(()=>{h.value&&(Ne=window.getComputedStyle(h.value),e.autoSize&&Me()),be()});const je=()=>{e.autoSize&&v.value&&Me(),be()},ge=Fe=>{h.value&&Fe.target!==h.value&&(Fe.preventDefault(),h.value.focus())},be=()=>{h.value&&(h.value.scrollHeight>h.value.offsetHeight?P.value||(P.value=!0):P.value&&(P.value=!1))};return Rt(S,()=>{e.autoSize&&v.value&&Me(),be()}),{prefixCls:s,wrapperCls:ke,textareaRef:h,textareaStyle:p,mirrorRef:v,mirrorStyle:g,computedValue:S,showClearBtn:$,valueLength:T,computedMaxLength:E,mergedDisabled:l,mergeTextareaAttrs:re,getWrapperAttrs:ee,getTextareaAttrs:ne,handleInput:H,handleFocus:X,handleBlur:oe,handleComposition:Z,handleClear:q,handleResize:je,handleMousedown:ge}},methods:{focus(){var e;(e=this.$refs.textareaRef)==null||e.focus()},blur(){var e;(e=this.$refs.textareaRef)==null||e.blur()}}}),VNe=["disabled","value","placeholder"];function zNe(e,t,n,r,o,a){const s=Ie("resize-observer"),l=Ie("icon-close"),c=Ie("icon-hover");return z(),Q("div",Vt(e.getWrapperAttrs(e.$attrs),{class:e.wrapperCls,onMousedown:t[7]||(t[7]=(...d)=>e.handleMousedown&&e.handleMousedown(...d))}),[e.autoSize?(z(),Q("div",{key:0,ref:"mirrorRef",class:ue(`${e.prefixCls}-mirror`),style:Ke(e.mirrorStyle)},ze(`${e.computedValue} `),7)):Le("v-if",!0),O(s,{onResize:e.handleResize},{default:de(()=>[I("textarea",Vt({ref:"textareaRef"},e.mergeTextareaAttrs,{disabled:e.mergedDisabled,class:e.prefixCls,style:e.textareaStyle,value:e.computedValue,placeholder:e.placeholder,onInput:t[0]||(t[0]=(...d)=>e.handleInput&&e.handleInput(...d)),onFocus:t[1]||(t[1]=(...d)=>e.handleFocus&&e.handleFocus(...d)),onBlur:t[2]||(t[2]=(...d)=>e.handleBlur&&e.handleBlur(...d)),onCompositionstart:t[3]||(t[3]=(...d)=>e.handleComposition&&e.handleComposition(...d)),onCompositionupdate:t[4]||(t[4]=(...d)=>e.handleComposition&&e.handleComposition(...d)),onCompositionend:t[5]||(t[5]=(...d)=>e.handleComposition&&e.handleComposition(...d))}),null,16,VNe)]),_:1},8,["onResize"]),vt(e.$slots,"suffix"),e.computedMaxLength&&e.showWordLimit?(z(),Q("div",{key:1,class:ue(`${e.prefixCls}-word-limit`)},ze(e.valueLength)+"/"+ze(e.computedMaxLength),3)):Le("v-if",!0),e.showClearBtn?(z(),Q("div",{key:2,class:ue(`${e.prefixCls}-clear-btn`),onClick:t[6]||(t[6]=(...d)=>e.handleClear&&e.handleClear(...d))},[O(c,null,{default:de(()=>[O(l)]),_:1})],2)):Le("v-if",!0)],16)}var WR=Ve(jNe,[["render",zNe]]);const R0e=Object.assign(WR,{install:(e,t)=>{Xn(e,t);const n=Yn(t);e.component(n+WR.name,WR)}}),UNe=e=>{const{value:t,selectionStart:n}=e;return t.slice(0,n)},HNe=(e,t)=>[].concat(t).reduce((r,o)=>{const a=e.lastIndexOf(o);return a>r.location?{location:a,prefix:o}:r},{location:-1,prefix:""}),WNe=(e,t)=>!t||!e.includes(t);function GNe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wi(e)}var GR=Se({name:"Mention",inheritAttrs:!1,props:{modelValue:String,defaultValue:{type:String,default:""},data:{type:Array,default:()=>[]},prefix:{type:[String,Array],default:"@"},split:{type:String,default:" "},type:{type:String,default:"input"},disabled:{type:Boolean,default:!1},allowClear:{type:Boolean,default:!1}},emits:{"update:modelValue":e=>!0,change:e=>!0,search:(e,t)=>!0,select:e=>!0,clear:e=>!0,focus:e=>!0,blur:e=>!0},setup(e,{emit:t,attrs:n,slots:r}){const o=Te("mention");let a;const{mergedDisabled:s,eventHandlers:l}=Do({disabled:Lu(e,"disabled")}),{data:c,modelValue:d}=nn(e),h=fe(),p=fe({}),v=fe(e.defaultValue),g=j(()=>{var ae;return(ae=e.modelValue)!=null?ae:v.value});Rt(d,ae=>{(An(ae)||Tl(ae))&&(v.value="")});const y=j(()=>g.value?[Dm(g.value)]:[]),S=fe({measuring:!1,location:-1,prefix:"",text:""}),k=()=>{S.value={measuring:!1,location:-1,prefix:"",text:""}},C=fe(),x=j(()=>S.value.text),E=fe(!0),_=(ae,re)=>{var ke,Ne;const me=UNe(re.target),_e=HNe(me,e.prefix);if(_e.location>-1){const Ue=me.slice(_e.location+_e.prefix.length);WNe(Ue,e.split)?(D.value=!0,S.value={measuring:!0,text:Ue,..._e},t("search",Ue,_e.prefix)):S.value.location>-1&&k()}else S.value.location>-1&&k();v.value=ae,t("update:modelValue",ae),t("change",ae),(Ne=(ke=l.value)==null?void 0:ke.onChange)==null||Ne.call(ke)},T=ae=>{var re,ke;v.value="",t("update:modelValue",""),t("change",""),(ke=(re=l.value)==null?void 0:re.onChange)==null||ke.call(re),t("clear",ae)},D=fe(!1),P=j(()=>D.value&&S.value.measuring&&W.value.length>0),M=()=>{G.value=sV(a)},$=ae=>{D.value=ae},L=(ae,re)=>{var ke,Ne,me;const{value:_e}=(ke=F.get(ae))!=null?ke:{},Ue=S.value.location,Qe=S.value.location+S.value.text.length;let Me=v.value.slice(0,Ue),je=v.value.slice(Qe+1);Me+=!Me||Me.endsWith(e.split)||Me.endsWith(` `)?"":e.split,je=(!je||je.startsWith(e.split)||je.startsWith(` `)?"":e.split)+je;const ge=`${S.value.prefix}${_e}`,be=`${Me}${ge}${je}`;v.value=be,t("select",_e),t("update:modelValue",be),t("change",be),k(),(me=(Ne=l.value)==null?void 0:Ne.onChange)==null||me.call(Ne)},{validOptions:B,optionInfoMap:F,validOptionInfos:W,handleKeyDown:U}=uH({options:c,inputValue:x,filterOption:E,popupVisible:P,valueKeys:y,dropdownRef:h,optionRefs:p,onSelect:L,onPopupVisibleChange:$,enterToOpen:!1}),G=fe();bn(()=>{var ae;e.type==="textarea"&&((ae=C.value)!=null&&ae.textareaRef)&&(a=window.getComputedStyle(C.value.textareaRef),G.value=sV(a))});const X=ae=>{if(En(r.option)&&ae.value){const re=F.get(ae.key),ke=r.option;return()=>ke({data:re})}return()=>ae.label},oe=ae=>O(dm,{ref:re=>{re?.$el&&(p.value[ae.key]=re.$el)},key:ae.key,value:ae.value,disabled:ae.disabled,internal:!0},{default:X(ae)}),Z=()=>{let ae;return O(lH,{ref:h},GNe(ae=B.value.map(re=>oe(re)))?ae:{default:()=>[ae]})},H=fe();Rt(P,ae=>{e.type==="textarea"&&ae&&Cn(()=>{var re,ke;(re=C.value)!=null&&re.textareaRef&&C.value.textareaRef.scrollTop>0&&((ke=H.value)==null||ke.scrollTo(0,C.value.textareaRef.scrollTop))})});const q=ae=>{t("focus",ae)},ee=ae=>{t("blur",ae)};return{inputRef:C,render:()=>{var ae;return e.type==="textarea"?O("div",{class:o},[O(Dd,{onResize:M},{default:()=>[O(R0e,Vt(n,{ref:C,allowClear:e.allowClear,modelValue:g.value,disabled:s.value,onInput:_,onClear:T,onFocus:q,onBlur:ee,onKeydown:U}),null)]}),S.value.measuring&&W.value.length>0&&O("div",{ref:H,style:G.value,class:`${o}-measure`},[(ae=g.value)==null?void 0:ae.slice(0,S.value.location),O(ha,{trigger:"focus",position:"bl",popupOffset:4,preventFocus:!0,popupVisible:P.value,clickToClose:!1,onPopupVisibleChange:$},{default:()=>[O("span",null,[We("@")])],content:Z})])]):O(ha,{trigger:"focus",position:"bl",animationName:"slide-dynamic-origin",popupOffset:4,preventFocus:!0,popupVisible:P.value,clickToClose:!1,autoFitPopupWidth:!0,autoFitTransformOrigin:!0,disabled:s.value,onPopupVisibleChange:$},{default:()=>[O(N0,Vt(n,{ref:C,allowClear:e.allowClear,modelValue:g.value,disabled:s.value,onInput:_,onClear:T,onFocus:q,onBlur:ee,onKeydown:U}),r)],content:Z})}}},methods:{focus(){var e;(e=this.inputRef)==null||e.focus()},blur(){var e;(e=this.inputRef)==null||e.blur()}},render(){return this.render()}});const KNe=Object.assign(GR,{install:(e,t)=>{Xn(e,t);const n=Yn(t);e.component(n+GR.name,GR)}}),PH=Symbol("MenuInjectionKey"),RH=Symbol("LevelInjectionKey"),M0e=Symbol("DataCollectorInjectionKey"),qNe=Se({name:"IconMenuFold",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-menu-fold`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),YNe=["stroke-width","stroke-linecap","stroke-linejoin"];function XNe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M42 11H6M42 24H22M42 37H6M13.66 26.912l-4.82-3.118 4.82-3.118v6.236Z"},null,-1)]),14,YNe)}var KR=Ve(qNe,[["render",XNe]]);const O0e=Object.assign(KR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+KR.name,KR)}}),ZNe=Se({name:"IconMenuUnfold",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-menu-unfold`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),JNe=["stroke-width","stroke-linecap","stroke-linejoin"];function QNe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M6 11h36M22 24h20M6 37h36M8 20.882 12.819 24 8 27.118v-6.236Z"},null,-1)]),14,JNe)}var qR=Ve(ZNe,[["render",QNe]]);const $0e=Object.assign(qR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+qR.name,qR)}});function MH(e){const t=j(()=>Bo(e)?e.value:e);ri(RH,Xt({level:t}))}function rS(e){const{provideNextLevel:t}=e||{},n=On(RH),r=j(()=>n?.level||1);if(t){const o=j(()=>r.value+1);MH(o)}return{level:r}}function xre(e,t){const n=[],r=o=>{o.forEach(a=>{t(a)&&n.push(a.key),a.children&&r(a.children)})};return r(e),n}function B0e(e=!1){return e?void 0:On(M0e)}function N0e(e){const{key:t,type:n}=e,r=fe([]),o=B0e(n==="menu");return ri(M0e,{collectSubMenu(s,l,c=!1){const d={key:s,children:l};if(c){const h=r.value.find(p=>p.key===s);h?h.children=l:r.value.push(d)}else r.value=[...r.value,d];c&&(n==="popupMenu"?o?.reportMenuData(r.value):n==="subMenu"&&!An(s)&&o?.collectSubMenu(s,r.value,!0))},removeSubMenu(s){r.value=r.value.filter(l=>l.key!==s)},collectMenuItem(s){r.value.push({key:s})},removeMenuItem(s){r.value=r.value.filter(l=>l.key!==s)},reportMenuData(s){r.value=s,n==="subMenu"&&!An(t)&&o?.collectSubMenu(t,r.value,!0)}}),n==="subMenu"&&!An(t)?(bn(()=>{o?.collectSubMenu(t,r.value)}),gi(()=>{o?.removeSubMenu(t)})):n==="popupMenu"&&bn(()=>{o?.reportMenuData(r.value)}),{menuData:r,subMenuKeys:j(()=>xre(r.value,s=>!!s.children)),menuItemKeys:j(()=>xre(r.value,s=>!s.children))}}function eFe(e,t){const n=[],r=o=>{for(let a=0;a{d.value=y};Rt(t,()=>{An(t.value)&&h([])});let p=[];bn(()=>{p=[...a.value];let y=[];if(r.value&&(y=c.value?a.value.slice(0,1):[...a.value]),o.value){const S=s.value.map(k=>eFe(l.value,k));S.length&&(!r.value||c.value)&&(y=c.value?S[0]:[...new Set([].concat(...S))])}y.length&&h(y)});let v=!1;Rt(a,(y,S=[])=>{if(v||!tFe(y,p)){const k=g.value.filter(C=>y.includes(C));if(r.value){const C=y.filter(x=>!S.includes(x));k.push(...C)}h(c.value?k.slice(0,1):k)}v=!0});const g=j(()=>t.value||d.value);return{openKeys:g,localOpenKeys:d,setOpenKeys:h,open(y,S){let k=[];return g.value.indexOf(y)>-1?c.value&&S===1?k=[]:k=g.value.filter(C=>C!==y):c.value&&S===1?k=[y]:k=g.value.concat([y]),h(k),k}}}const rFe=Se({name:"BaseMenu",components:{IconMenuFold:O0e,IconMenuUnfold:$0e},inheritAttrs:!1,props:{style:{type:Object},theme:{type:String,default:"light"},mode:{type:String,default:"vertical"},levelIndent:{type:Number},autoOpen:{type:Boolean},collapsed:{type:Boolean,default:void 0},defaultCollapsed:{type:Boolean},collapsedWidth:{type:Number},accordion:{type:Boolean},autoScrollIntoView:{type:Boolean},showCollapseButton:{type:Boolean},selectedKeys:{type:Array},defaultSelectedKeys:{type:Array,default:()=>[]},openKeys:{type:Array},defaultOpenKeys:{type:Array,default:()=>[]},scrollConfig:{type:Object},triggerProps:{type:Object},tooltipProps:{type:Object},autoOpenSelected:{type:Boolean},breakpoint:{type:String},popupMaxHeight:{type:[Boolean,Number],default:!0},prefixCls:{type:String},inTrigger:{type:Boolean},siderCollapsed:{type:Boolean},isRoot:{type:Boolean}},emits:["update:collapsed","update:selectedKeys","update:openKeys","collapse","menu-item-click","sub-menu-click"],setup(e,{emit:t,slots:n}){const{style:r,mode:o,theme:a,levelIndent:s,accordion:l,showCollapseButton:c,scrollConfig:d,autoScrollIntoView:h,collapsedWidth:p,autoOpen:v,collapsed:g,defaultCollapsed:y,selectedKeys:S,defaultSelectedKeys:k,openKeys:C,defaultOpenKeys:x,triggerProps:E,tooltipProps:_,autoOpenSelected:T,breakpoint:D,popupMaxHeight:P,prefixCls:M,inTrigger:$,siderCollapsed:L,isRoot:B}=nn(e),{subMenuKeys:F,menuData:W}=N0e({type:B.value?"menu":"popupMenu"}),[U,G]=fa(k.value,Xt({value:S})),{openKeys:X,setOpenKeys:oe,open:Z}=nFe(Xt({modelValue:C,defaultValue:x,autoOpen:v,autoOpenSelected:T,selectedKeys:U,subMenuKeys:F,menuData:W,accordion:l})),[H,q]=fa(y.value,Xt({value:g})),ee=j(()=>L.value||H.value||o.value==="popButton"),ne=j(()=>["horizontal","popButton"].indexOf(o.value)<0&&!$.value&&c.value),ae=(Me,je)=>{Me!==H.value&&(q(Me),t("update:collapsed",Me),t("collapse",Me,je))},re=()=>{ae(!H.value,"clickTrigger")};L0e(D,Me=>{ae(!Me,"responsive")});const ke=j(()=>M?.value||Te("menu")),Ne=j(()=>[ke.value,`${ke.value}-${a?.value}`,{[`${ke.value}-horizontal`]:o.value==="horizontal",[`${ke.value}-vertical`]:o.value!=="horizontal",[`${ke.value}-collapsed`]:ee.value,[`${ke.value}-pop`]:o.value==="pop"||ee.value,[`${ke.value}-pop-button`]:o.value==="popButton"}]),me=j(()=>{const Me=Ze(p.value)?`${p.value}px`:void 0,je=br(r.value)?r.value:void 0,ge=ee.value?Me:je?.width;return[je?xa(je,["width"]):r.value,{width:ge}]}),_e=xd(n,"expand-icon-down"),Ue=xd(n,"expand-icon-right"),Qe=Xt({theme:a,mode:o,levelIndent:s,autoScrollIntoView:h,selectedKeys:U,openKeys:X,prefixCls:ke,scrollConfig:d,inTrigger:$,collapsed:ee,triggerProps:E,tooltipProps:_,popupMaxHeight:P,expandIconDown:_e,expandIconRight:Ue,onMenuItemClick:Me=>{G([Me]),t("update:selectedKeys",[Me]),t("menu-item-click",Me)},onSubMenuClick:(Me,je)=>{const ge=Z(Me,je);oe(ge),t("update:openKeys",ge),t("sub-menu-click",Me,ge)}});return ri(PH,Qe),MH(1),{computedPrefixCls:ke,classNames:Ne,computedStyle:me,computedCollapsed:ee,computedHasCollapseButton:ne,onCollapseBtnClick:re}}});function iFe(e,t,n,r,o,a){const s=Ie("IconMenuUnfold"),l=Ie("IconMenuFold");return z(),Q("div",Vt({class:e.classNames},e.$attrs,{style:e.computedStyle}),[I("div",{class:ue(`${e.computedPrefixCls}-inner`)},[vt(e.$slots,"default")],2),e.computedHasCollapseButton?(z(),Q("div",{key:0,class:ue(`${e.computedPrefixCls}-collapse-button`),onClick:t[0]||(t[0]=(...c)=>e.onCollapseBtnClick&&e.onCollapseBtnClick(...c))},[vt(e.$slots,"collapse-icon",{collapsed:e.computedCollapsed},()=>[e.computedCollapsed?(z(),Ye(s,{key:0})):(z(),Ye(l,{key:1}))])],2)):Le("v-if",!0)],16)}var aV=Ve(rFe,[["render",iFe]]);function Cre(e,t){if(!e||!t)return null;let n=t;n==="float"&&(n="cssFloat");try{if(document.defaultView){const r=document.defaultView.getComputedStyle(e,"");return e.style[n]||r?r[n]:""}}catch{return e.style[n]}return null}function Qm(){return On(PH)||{}}const oFe=(()=>{let e=0;return(t="")=>(e+=1,`${t}${e}`)})();function H5(){const e=_o();return{key:j(()=>e?.vnode.key||oFe("__arco_menu"))}}const sFe=Se({name:"MenuIndent",props:{level:{type:Number,default:1}},setup(){const e=Te("menu"),t=Qm();return{prefixCls:e,levelIndent:Lu(t,"levelIndent")}}});function aFe(e,t,n,r,o,a){return e.level>1?(z(),Q("span",{key:0,class:ue(`${e.prefixCls}-indent-list`)},[(z(!0),Q(Nt,null,gn(e.level-1,s=>(z(),Q("span",{key:s,class:ue(`${e.prefixCls}-indent`),style:Ke(`width: ${e.levelIndent}px`)},null,6))),128))],2)):Le("v-if",!0)}var W5=Ve(sFe,[["render",aFe]]);const lFe=Se({name:"ExpandTransition",setup(){return{onBeforeEnter(e){e.style.height="0"},onEnter(e){e.style.height=`${e.scrollHeight}px`},onAfterEnter(e){e.style.height=""},onBeforeLeave(e){e.style.height=`${e.scrollHeight}px`},onLeave(e){e.style.height="0"},onAfterLeave(e){e.style.height=""}}}});function uFe(e,t,n,r,o,a){return z(),Ye(Cs,{onBeforeEnter:e.onBeforeEnter,onEnter:e.onEnter,onAfterEnter:e.onAfterEnter,onBeforeLeave:e.onBeforeLeave,onLeave:e.onLeave,onAfterLeave:e.onAfterLeave},{default:de(()=>[vt(e.$slots,"default")]),_:3},8,["onBeforeEnter","onEnter","onAfterEnter","onBeforeLeave","onLeave","onAfterLeave"])}var cFe=Ve(lFe,[["render",uFe]]);const dFe=Se({name:"SubMenuInline",components:{MenuIndent:W5,ExpandTransition:cFe},props:{title:{type:String},isChildrenSelected:{type:Boolean}},setup(e){const{key:t}=H5(),{level:n}=rS({provideNextLevel:!0}),r=Qm(),o=j(()=>r.prefixCls),a=j(()=>`${o.value}-inline`),s=j(()=>[a.value]),l=j(()=>e.isChildrenSelected),c=j(()=>(r.openKeys||[]).indexOf(t.value)>-1);return{prefixCls:a,menuPrefixCls:o,classNames:s,level:n,isSelected:l,isOpen:c,onHeaderClick:()=>{r.onSubMenuClick&&r.onSubMenuClick(t.value,n.value)}}}});function fFe(e,t,n,r,o,a){const s=Ie("MenuIndent"),l=Ie("ExpandTransition");return z(),Q("div",{class:ue(e.classNames)},[I("div",{class:ue([`${e.prefixCls}-header`,{[`${e.menuPrefixCls}-selected`]:e.isSelected,[`${e.menuPrefixCls}-has-icon`]:e.$slots.icon}]),onClick:t[0]||(t[0]=(...c)=>e.onHeaderClick&&e.onHeaderClick(...c))},[O(s,{level:e.level},null,8,["level"]),e.$slots.icon?(z(),Q(Nt,{key:0},[I("span",{class:ue(`${e.menuPrefixCls}-icon`)},[vt(e.$slots,"icon")],2),I("span",{class:ue(`${e.menuPrefixCls}-title`)},[vt(e.$slots,"title",{},()=>[We(ze(e.title),1)])],2)],64)):vt(e.$slots,"title",{key:1},()=>[We(ze(e.title),1)]),I("span",{class:ue([`${e.menuPrefixCls}-icon-suffix`,{"is-open":e.isOpen}])},[vt(e.$slots,"expand-icon-down")],2)],2),O(l,null,{default:de(()=>[Ai(I("div",{class:ue(`${e.prefixCls}-content`)},[vt(e.$slots,"default")],2),[[Qo,e.isOpen]])]),_:3})],2)}var hFe=Ve(dFe,[["render",fFe]]);const pFe=Se({name:"SubMenuPop",components:{Menu:aV,Trigger:ha,MenuIndent:W5,RenderFunction:Jh},inheritAttrs:!1,props:{title:{type:String},selectable:{type:Boolean},isChildrenSelected:{type:Boolean},popupMaxHeight:{type:[Boolean,Number],default:void 0}},setup(e){const{key:t}=H5(),{level:n}=rS(),{selectable:r,isChildrenSelected:o,popupMaxHeight:a}=nn(e),s=Qm(),{onSubMenuClick:l,onMenuItemClick:c}=s,d=j(()=>s.prefixCls),h=j(()=>s.mode),p=j(()=>s.selectedKeys||[]),v=j(()=>`${d.value}-pop`),g=j(()=>r.value&&p.value.includes(t.value)||o.value),y=j(()=>[`${v.value}`,`${v.value}-header`,{[`${d.value}-selected`]:g.value}]),S=j(()=>h.value==="horizontal"&&!s.inTrigger),k=fe(!1),C=T=>{k.value=T},x=Te("trigger"),E=j(()=>{var T;return[`${v.value}-trigger`,{[`${v.value}-trigger-dark`]:s.theme==="dark"},(T=s.triggerProps)==null?void 0:T.class]}),_=j(()=>xa(s.triggerProps||{},["class"]));return{menuPrefixCls:d,mode:h,level:n,classNames:y,isSelected:g,selectedKeys:p,needPopOnBottom:S,popVisible:k,triggerPrefixCls:x,triggerClassNames:E,triggerProps:_,menuContext:s,popupMenuStyles:j(()=>{var T;const D=(T=a.value)!=null?T:s.popupMaxHeight;return Ze(D)?{maxHeight:`${D}px`}:D?{}:{maxHeight:"unset"}}),onClick:()=>{l&&l(t.value,n.value),r.value&&c&&c(t.value)},onMenuItemClick:T=>{c&&c(T),C(!1)},onVisibleChange:T=>{C(T)}}}});function vFe(e,t,n,r,o,a){const s=Ie("MenuIndent"),l=Ie("RenderFunction"),c=Ie("Menu"),d=Ie("Trigger");return z(),Ye(d,Vt({trigger:"hover",class:e.triggerClassNames,position:e.needPopOnBottom?"bl":"rt","show-arrow":"","animation-class":"fade-in","mouse-enter-delay":50,"mouse-leave-delay":50,"popup-offset":4,"auto-fit-popup-min-width":!0,duration:100},e.triggerProps,{"unmount-on-close":!1,"popup-visible":e.popVisible,onPopupVisibleChange:e.onVisibleChange}),{content:de(()=>[O(c,{"in-trigger":"","prefix-cls":`${e.triggerPrefixCls}-menu`,"selected-keys":e.selectedKeys,theme:e.menuContext.theme,"trigger-props":e.menuContext.triggerProps,style:Ke(e.popupMenuStyles),onMenuItemClick:e.onMenuItemClick},yo({default:de(()=>[vt(e.$slots,"default")]),_:2},[e.menuContext.expandIconDown?{name:"expand-icon-down",fn:de(()=>[O(l,{"render-func":e.menuContext.expandIconDown},null,8,["render-func"])]),key:"0"}:void 0,e.menuContext.expandIconRight?{name:"expand-icon-right",fn:de(()=>[O(l,{"render-func":e.menuContext.expandIconRight},null,8,["render-func"])]),key:"1"}:void 0]),1032,["prefix-cls","selected-keys","theme","trigger-props","style","onMenuItemClick"])]),default:de(()=>[I("div",Vt({class:[e.classNames,{[`${e.menuPrefixCls}-has-icon`]:e.$slots.icon}],"aria-haspopup":"true"},e.$attrs,{onClick:t[0]||(t[0]=(...h)=>e.onClick&&e.onClick(...h))}),[Le(" header "),O(s,{level:e.level},null,8,["level"]),e.$slots.icon?(z(),Q(Nt,{key:0},[I("span",{class:ue(`${e.menuPrefixCls}-icon`)},[vt(e.$slots,"icon")],2),I("span",{class:ue(`${e.menuPrefixCls}-title`)},[vt(e.$slots,"title",{},()=>[We(ze(e.title),1)])],2)],64)):vt(e.$slots,"title",{key:1},()=>[We(ze(e.title),1)]),Le(" suffix "),I("span",{class:ue(`${e.menuPrefixCls}-icon-suffix`)},[e.needPopOnBottom?vt(e.$slots,"expand-icon-down",{key:0}):vt(e.$slots,"expand-icon-right",{key:1})],2),e.isSelected&&e.mode==="horizontal"?(z(),Q("div",{key:2,class:ue(`${e.menuPrefixCls}-selected-label`)},null,2)):Le("v-if",!0)],16)]),_:3},16,["class","position","popup-visible","onPopupVisibleChange"])}var mFe=Ve(pFe,[["render",vFe]]),ab=Se({name:"SubMenu",props:{title:{type:String},selectable:{type:Boolean},popup:{type:[Boolean,Function],default:!1},popupMaxHeight:{type:[Boolean,Number],default:void 0}},setup(e,{attrs:t}){const{key:n}=H5(),{level:r}=rS(),{popup:o}=nn(e),a=Qm(),s=j(()=>{const{mode:h,collapsed:p,inTrigger:v}=a;return!!(typeof o.value=="function"?o.value(r.value):o.value)||p||v||h!=="vertical"}),{subMenuKeys:l,menuItemKeys:c}=N0e({key:n.value,type:"subMenu"}),d=j(()=>{const h=a.selectedKeys||[],p=v=>{for(let g=0;g[O(Zh,null,null)]),"expand-icon-right":this.$slots["expand-icon-right"]||a||(()=>[O(Hi,null,null)])};return r?O(mFe,Vt({key:n,title:e.title,selectable:e.selectable,isChildrenSelected:s,popupMaxHeight:e.popupMaxHeight},t),l):O(hFe,Vt({key:n,title:e.title,isChildrenSelected:s},t),l)}});const gFe=10;function wre(e){return e&&+e.getBoundingClientRect().width.toFixed(2)}function Ere(e){const t=Number(e.replace("px",""));return Number.isNaN(t)?0:t}var yFe=Se({name:"MenuOverflowWrap",setup(e,{slots:t}){const r=`${Qm().prefixCls}-overflow`,o=`${r}-sub-menu`,a=`${r}-hidden-menu-item`,s=`${r}-sub-menu-mirror`,l=fe(),c=fe(null),d=fe();function h(){const p=l.value,v=wre(p),g=[].slice.call(p.children);let y=0,S=0,k=0;for(let C=0;C-1,T=E.indexOf(s)>-1;if(_)continue;const D=wre(x)+Ere(Cre(x,"marginLeft"))+Ere(Cre(x,"marginRight"));if(T){k=D;continue}if(S+=D,S+k+gFe>v){c.value=y-1;return}y++}c.value=null}return bn(()=>{h(),d.value=new C5(p=>{p.forEach(h)}),l.value&&d.value.observe(l.value)}),gi(()=>{d.value&&d.value.disconnect()}),()=>{const p=(g,y)=>{const{isMirror:S=!1,props:k={}}=y||{};return O(ab,Vt({key:`__arco-menu-overflow-sub-menu${S?"-mirror":""}`,class:S?s:o},k),{title:()=>O("span",null,[We("...")]),default:()=>g})},v=()=>{var g;const y=((g=t.default)==null?void 0:g.call(t))||[],S=u7e(y);let k=null;const C=p(null,{isMirror:!0}),x=S.map((E,_)=>{const T=wl(E,c.value!==null&&_>c.value?{class:a}:{class:""});if(c.value!==null&&_===c.value+1){const D=S.slice(_).map(P=>wl(P));k=p(D)}return T});return[C,...x,k]};return O("div",{class:`${r}-wrap`,ref:l},[v()])}}}),YR=Se({name:"Menu",components:{BaseMenu:aV},inheritAttrs:!1,props:{theme:{type:String},mode:{type:String,default:"vertical"}},setup(e,{attrs:t,slots:n}){const{theme:r,mode:o}=nn(e),a=On(C0e,void 0),s=j(()=>a?.collapsed||!1),l=j(()=>r?.value||a?.theme||"light");return ri(PH,void 0),ri(RH,void 0),()=>O(aV,Vt(e,t,{theme:l.value,inTrigger:!1,siderCollapsed:s.value,isRoot:!0}),{...n,default:o.value==="horizontal"&&n.default?()=>O(yFe,null,{default:()=>{var c;return[(c=n.default)==null?void 0:c.call(n)]}}):n.default})}}),Nw=Se({name:"MenuItem",inheritAttrs:!1,props:{disabled:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:t}){const{key:n}=H5(),{level:r}=rS(),o=Qm(),a=fe(),s=j(()=>(o.selectedKeys||[]).indexOf(n.value)>-1),l=B0e();bn(()=>{l?.collectMenuItem(n.value)}),gi(()=>{l?.removeMenuItem(n.value)});function c(){o.autoScrollIntoView&&a.value&&s.value&&a0e(a.value,{behavior:"smooth",block:"nearest",scrollMode:"if-needed",boundary:document.documentElement,...o.scrollConfig||{}})}let d;return bn(()=>{d=setTimeout(()=>{c()},500)}),gi(()=>{clearTimeout(d)}),Rt([s],()=>{c()}),{menuContext:o,level:r,isSelected:s,refItemElement:a,onClick(h){e.disabled||(o.onMenuItemClick&&o.onMenuItemClick(n.value),t("click",h))}}},render(){var e,t;const{level:n,menuContext:r,disabled:o,isSelected:a,onClick:s}=this,{prefixCls:l,collapsed:c,inTrigger:d,mode:h,tooltipProps:p}=r,v=c&&!d&&n===1,g=h==="vertical"&&n>1,y=((t=(e=this.$slots).default)==null?void 0:t.call(e))||[],S=g&&!d&&!c,k=this.$slots.icon&&this.$slots.icon(),C=[S&&O(W5,{level:n},null),k&&O("span",{class:`${l}-icon`},[k]),S||k?O("span",{class:[`${l}-item-inner`,{[`${l}-title`]:k}]},[y]):y].filter(Boolean),x=O("div",Vt({ref:"refItemElement",class:[`${l}-item`,{[`${l}-disabled`]:o,[`${l}-selected`]:a,[`${l}-has-icon`]:k}]},this.$attrs,{onClick:s}),[C,a&&h==="horizontal"&&O("div",{class:`${l}-selected-label`},null)]);if(v){const E=[`${l}-item-tooltip`,p?.class];return O(Zc,Vt({trigger:"hover",position:"right",class:E},xa(p||{},["class"])),{default:()=>x,content:()=>y})}return x}});const bFe=Se({name:"MenuItemGroup",components:{MenuIndent:W5},props:{title:{type:String}},setup(){const{level:e}=rS(),t=j(()=>e.value===1?e.value+1:e.value);MH(t);const n=Qm(),r=j(()=>n.prefixCls),o=j(()=>[`${r.value}-group`]);return{prefixCls:r,classNames:o,level:e}}});function _Fe(e,t,n,r,o,a){const s=Ie("MenuIndent");return z(),Q("div",{class:ue(e.classNames)},[I("div",{class:ue(`${e.prefixCls}-group-title`)},[O(s,{level:e.level},null,8,["level"]),vt(e.$slots,"title",{},()=>[We(ze(e.title),1)])],2),vt(e.$slots,"default")],2)}var Fw=Ve(bFe,[["render",_Fe]]);const SFe=Object.assign(YR,{Item:Nw,ItemGroup:Fw,SubMenu:ab,install:(e,t)=>{Xn(e,t);const n=Yn(t);e.component(n+YR.name,YR),e.component(n+Nw.name,Nw),e.component(n+Fw.name,Fw),e.component(n+ab.name,ab)}}),kFe=Se({name:"Message",components:{AIconHover:Lo,IconInfoCircleFill:i3,IconCheckCircleFill:Yh,IconExclamationCircleFill:If,IconCloseCircleFill:Zm,IconClose:ds,IconLoading:Xa},props:{type:{type:String,default:"info"},closable:{type:Boolean,default:!1},showIcon:{type:Boolean,default:!0},duration:{type:Number,default:3e3},resetOnUpdate:{type:Boolean,default:!1},resetOnHover:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:t}){const n=Te("message");let r=0;const o=()=>{t("close")},a=()=>{e.duration>0&&(r=window.setTimeout(o,e.duration))},s=()=>{r&&(window.clearTimeout(r),r=0)};return bn(()=>{a()}),Qa(()=>{e.resetOnUpdate&&(s(),a())}),gi(()=>{s()}),{handleMouseEnter:()=>{e.resetOnHover&&s()},handleMouseLeave:()=>{e.resetOnHover&&a()},prefixCls:n,handleClose:o}}});function xFe(e,t,n,r,o,a){const s=Ie("icon-info-circle-fill"),l=Ie("icon-check-circle-fill"),c=Ie("icon-exclamation-circle-fill"),d=Ie("icon-close-circle-fill"),h=Ie("icon-loading"),p=Ie("icon-close"),v=Ie("a-icon-hover");return z(),Q("li",{role:"alert",class:ue([e.prefixCls,`${e.prefixCls}-${e.type}`,{[`${e.prefixCls}-closable`]:e.closable}]),onMouseenter:t[1]||(t[1]=(...g)=>e.handleMouseEnter&&e.handleMouseEnter(...g)),onMouseleave:t[2]||(t[2]=(...g)=>e.handleMouseLeave&&e.handleMouseLeave(...g))},[e.showIcon&&!(e.type==="normal"&&!e.$slots.icon)?(z(),Q("span",{key:0,class:ue(`${e.prefixCls}-icon`)},[vt(e.$slots,"icon",{},()=>[e.type==="info"?(z(),Ye(s,{key:0})):e.type==="success"?(z(),Ye(l,{key:1})):e.type==="warning"?(z(),Ye(c,{key:2})):e.type==="error"?(z(),Ye(d,{key:3})):e.type==="loading"?(z(),Ye(h,{key:4})):Le("v-if",!0)])],2)):Le("v-if",!0),I("span",{class:ue(`${e.prefixCls}-content`)},[vt(e.$slots,"default")],2),e.closable?(z(),Q("span",{key:1,class:ue(`${e.prefixCls}-close-btn`),onClick:t[0]||(t[0]=(...g)=>e.handleClose&&e.handleClose(...g))},[O(v,null,{default:de(()=>[O(p)]),_:1})],2)):Le("v-if",!0)],34)}var CFe=Ve(kFe,[["render",xFe]]);function wFe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wi(e)}var EFe=Se({name:"MessageList",props:{messages:{type:Array,default:()=>[]},position:{type:String,default:"top"}},emits:["close","afterClose"],setup(e,t){const n=Te("message-list"),{zIndex:r}=o3("message",{runOnMounted:!0});return()=>{let o;return O(r3,{class:[n,`${n}-${e.position}`],name:"fade-message",tag:"ul",style:{zIndex:r.value},onAfterLeave:()=>t.emit("afterClose")},wFe(o=e.messages.map(a=>{const s={default:Hl(a.content),icon:Hl(a.icon)};return O(CFe,{key:a.id,type:a.type,duration:a.duration,closable:a.closable,resetOnUpdate:a.resetOnUpdate,resetOnHover:a.resetOnHover,onClose:()=>t.emit("close",a.id)},s)}))?o:{default:()=>[o]})}}});class TFe{constructor(t,n){this.messageCount=0,this.add=a=>{var s;this.messageCount++;const l=(s=a.id)!=null?s:`__arco_message_${this.messageCount}`;if(this.messageIds.has(l))return this.update(l,a);const c=Xt({id:l,...a});return this.messages.value.push(c),this.messageIds.add(l),{close:()=>this.remove(l)}},this.update=(a,s)=>{for(let l=0;lthis.remove(a)}},this.remove=a=>{for(let s=0;s{this.messages.value.splice(0)},this.destroy=()=>{this.messages.value.length===0&&this.container&&(Xc(null,this.container),document.body.removeChild(this.container),this.container=null,ly[this.position]=void 0)};const{position:r="top"}=t;this.container=A5("message"),this.messageIds=new Set,this.messages=fe([]),this.position=r;const o=O(EFe,{messages:this.messages.value,position:r,onClose:this.remove,onAfterClose:this.destroy});(n??Et._context)&&(o.appContext=n??Et._context),Xc(o,this.container),document.body.appendChild(this.container)}}const ly={},F0e=[...L5,"loading","normal"],jw=F0e.reduce((e,t)=>(e[t]=(n,r)=>{cs(n)&&(n={content:n});const o={type:t,...n},{position:a="top"}=o;return ly[a]||(ly[a]=new TFe(o,r)),ly[a].add(o)},e),{});jw.clear=e=>{var t;e?(t=ly[e])==null||t.clear():Object.values(ly).forEach(n=>n?.clear())};const Et={...jw,install:e=>{const t={clear:jw.clear};for(const n of F0e)t[n]=(r,o=e._context)=>jw[n](r,o);e.config.globalProperties.$message=t},_context:null},AFe=({modalRef:e,wrapperRef:t,draggable:n,alignCenter:r})=>{const o=fe(!1),a=fe([0,0]),s=fe([0,0]),l=fe(),c=fe([0,0]),d=fe([0,0]),h=()=>{var y,S,k;if(t.value&&e.value){const{top:C,left:x}=t.value.getBoundingClientRect(),{clientWidth:E,clientHeight:_}=t.value,{top:T,left:D,width:P,height:M}=e.value.getBoundingClientRect(),$=r.value?0:(y=e.value)==null?void 0:y.offsetTop,L=D-x,B=T-C-$;(L!==((S=s.value)==null?void 0:S[0])||B!==((k=s.value)==null?void 0:k[1]))&&(s.value=[L,B]);const F=E>P?E-P:0,W=_>M?_-M-$:0;(F!==d.value[0]||W!==d.value[1])&&(d.value=[F,W]),$&&(c.value=[0,0-$])}},p=y=>{n.value&&(y.preventDefault(),o.value=!0,h(),a.value=[y.x,y.y],Mi(window,"mousemove",v),Mi(window,"mouseup",g),Mi(window,"contextmenu",g))},v=y=>{if(o.value){const S=y.x-a.value[0],k=y.y-a.value[1];let C=s.value[0]+S,x=s.value[1]+k;Cd.value[0]&&(C=d.value[0]),xd.value[1]&&(x=d.value[1]),l.value=[C,x]}},g=()=>{o.value=!1,ro(window,"mousemove",v),ro(window,"mouseup",g)};return{position:l,handleMoveDown:p}};var IFe=Se({name:"Modal",components:{ClientOnly:oH,ArcoButton:Xo,IconHover:Lo,IconClose:ds,IconInfoCircleFill:i3,IconCheckCircleFill:Yh,IconExclamationCircleFill:If,IconCloseCircleFill:Zm},inheritAttrs:!1,props:{visible:{type:Boolean,default:void 0},defaultVisible:{type:Boolean,default:!1},width:{type:[Number,String]},top:{type:[Number,String]},mask:{type:Boolean,default:!0},title:{type:String},titleAlign:{type:String,default:"center"},alignCenter:{type:Boolean,default:!0},unmountOnClose:Boolean,maskClosable:{type:Boolean,default:!0},hideCancel:{type:Boolean,default:!1},simple:{type:Boolean,default:e=>e.notice},closable:{type:Boolean,default:!0},okText:String,cancelText:String,okLoading:{type:Boolean,default:!1},okButtonProps:{type:Object},cancelButtonProps:{type:Object},footer:{type:Boolean,default:!0},renderToBody:{type:Boolean,default:!0},popupContainer:{type:[String,Object],default:"body"},maskStyle:{type:Object},modalClass:{type:[String,Array]},modalStyle:{type:Object},onBeforeOk:{type:Function},onBeforeCancel:{type:Function},escToClose:{type:Boolean,default:!0},draggable:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1},maskAnimationName:{type:String,default:e=>e.fullscreen?"fade-in-standard":"fade-modal"},modalAnimationName:{type:String,default:e=>e.fullscreen?"zoom-in":"zoom-modal"},bodyClass:{type:[String,Array]},bodyStyle:{type:[String,Object,Array]},messageType:{type:String},hideTitle:{type:Boolean,default:!1}},emits:{"update:visible":e=>!0,ok:e=>!0,cancel:e=>!0,open:()=>!0,close:()=>!0,beforeOpen:()=>!0,beforeClose:()=>!0},setup(e,{emit:t}){const{fullscreen:n,popupContainer:r,alignCenter:o}=nn(e),a=Te("modal"),{t:s}=No(),l=fe(),c=fe(),d=fe(e.defaultVisible),h=j(()=>{var ke;return(ke=e.visible)!=null?ke:d.value}),p=fe(!1),v=j(()=>e.okLoading||p.value),g=j(()=>e.draggable&&!e.fullscreen),{teleportContainer:y,containerRef:S}=sH({popupContainer:r,visible:h}),k=fe(h.value),C=j(()=>e.okText||s("modal.okText")),x=j(()=>e.cancelText||s("modal.cancelText")),{zIndex:E,isLastDialog:_}=o3("dialog",{visible:h});let T=!1;const D=ke=>{e.escToClose&&ke.key===Ho.ESC&&_()&&U(ke)},P=()=>{e.escToClose&&!T&&(T=!0,Mi(document.documentElement,"keydown",D))},M=()=>{T=!1,ro(document.documentElement,"keydown",D)};let $=0;const{position:L,handleMoveDown:B}=AFe({wrapperRef:l,modalRef:c,draggable:g,alignCenter:o}),F=()=>{$++,p.value&&(p.value=!1),d.value=!1,t("update:visible",!1)},W=async ke=>{const Ne=$,me=await new Promise(async _e=>{var Ue;if(En(e.onBeforeOk)){let Qe=e.onBeforeOk((Me=!0)=>_e(Me));if((Am(Qe)||!El(Qe))&&(p.value=!0),Am(Qe))try{Qe=(Ue=await Qe)!=null?Ue:!0}catch(Me){throw Qe=!1,Me}El(Qe)&&_e(Qe)}else _e(!0)});Ne===$&&(me?(t("ok",ke),F()):p.value&&(p.value=!1))},U=ke=>{var Ne;let me=!0;En(e.onBeforeCancel)&&(me=(Ne=e.onBeforeCancel())!=null?Ne:!1),me&&(t("cancel",ke),F())},G=fe(!1),X=ke=>{ke.target===l.value&&(G.value=!0)},oe=ke=>{e.mask&&e.maskClosable&&G.value&&U(ke)},Z=()=>{h.value&&(!c7e(l.value,document.activeElement)&&document.activeElement instanceof HTMLElement&&document.activeElement.blur(),t("open"))},H=()=>{h.value||(g.value&&(L.value=void 0),k.value=!1,ee(),t("close"))},{setOverflowHidden:q,resetOverflow:ee}=o0e(S);bn(()=>{S.value=af(e.popupContainer),h.value&&(q(),e.escToClose&&P())}),Io(()=>{ee(),M()}),Rt(h,ke=>{d.value!==ke&&(d.value=ke),ke?(t("beforeOpen"),k.value=!0,G.value=!1,q(),P()):(t("beforeClose"),M())}),Rt(n,()=>{L.value&&(L.value=void 0)});const ne=j(()=>[`${a}-wrapper`,{[`${a}-wrapper-align-center`]:e.alignCenter&&!e.fullscreen,[`${a}-wrapper-moved`]:!!L.value}]),ae=j(()=>[`${a}`,e.modalClass,{[`${a}-simple`]:e.simple,[`${a}-draggable`]:g.value,[`${a}-fullscreen`]:e.fullscreen}]),re=j(()=>{var ke;const Ne={...(ke=e.modalStyle)!=null?ke:{}};return e.width&&!e.fullscreen&&(Ne.width=Ze(e.width)?`${e.width}px`:e.width),!e.alignCenter&&e.top&&(Ne.top=Ze(e.top)?`${e.top}px`:e.top),L.value&&(Ne.transform=`translate(${L.value[0]}px, ${L.value[1]}px)`),Ne});return{prefixCls:a,mounted:k,computedVisible:h,containerRef:S,wrapperRef:l,mergedModalStyle:re,okDisplayText:C,cancelDisplayText:x,zIndex:E,handleOk:W,handleCancel:U,handleMaskClick:oe,handleMaskMouseDown:X,handleOpen:Z,handleClose:H,mergedOkLoading:v,modalRef:c,wrapperCls:ne,modalCls:ae,teleportContainer:y,handleMoveDown:B}}});function LFe(e,t,n,r,o,a){const s=Ie("icon-info-circle-fill"),l=Ie("icon-check-circle-fill"),c=Ie("icon-exclamation-circle-fill"),d=Ie("icon-close-circle-fill"),h=Ie("icon-close"),p=Ie("icon-hover"),v=Ie("arco-button"),g=Ie("client-only");return z(),Ye(g,null,{default:de(()=>[(z(),Ye(qm,{to:e.teleportContainer,disabled:!e.renderToBody},[!e.unmountOnClose||e.computedVisible||e.mounted?Ai((z(),Q("div",Vt({key:0,class:`${e.prefixCls}-container`,style:{zIndex:e.zIndex}},e.$attrs),[O(Cs,{name:e.maskAnimationName,appear:""},{default:de(()=>[e.mask?Ai((z(),Q("div",{key:0,ref:"maskRef",class:ue(`${e.prefixCls}-mask`),style:Ke(e.maskStyle)},null,6)),[[Qo,e.computedVisible]]):Le("v-if",!0)]),_:1},8,["name"]),I("div",{ref:"wrapperRef",class:ue(e.wrapperCls),onClick:t[2]||(t[2]=us((...y)=>e.handleMaskClick&&e.handleMaskClick(...y),["self"])),onMousedown:t[3]||(t[3]=us((...y)=>e.handleMaskMouseDown&&e.handleMaskMouseDown(...y),["self"]))},[O(Cs,{name:e.modalAnimationName,appear:"",onAfterEnter:e.handleOpen,onAfterLeave:e.handleClose,persisted:""},{default:de(()=>[Ai(I("div",{ref:"modalRef",class:ue(e.modalCls),style:Ke(e.mergedModalStyle)},[!e.hideTitle&&(e.$slots.title||e.title||e.closable)?(z(),Q("div",{key:0,class:ue(`${e.prefixCls}-header`),onMousedown:t[1]||(t[1]=(...y)=>e.handleMoveDown&&e.handleMoveDown(...y))},[e.$slots.title||e.title?(z(),Q("div",{key:0,class:ue([`${e.prefixCls}-title`,`${e.prefixCls}-title-align-${e.titleAlign}`])},[e.messageType?(z(),Q("div",{key:0,class:ue(`${e.prefixCls}-title-icon`)},[e.messageType==="info"?(z(),Ye(s,{key:0})):Le("v-if",!0),e.messageType==="success"?(z(),Ye(l,{key:1})):Le("v-if",!0),e.messageType==="warning"?(z(),Ye(c,{key:2})):Le("v-if",!0),e.messageType==="error"?(z(),Ye(d,{key:3})):Le("v-if",!0)],2)):Le("v-if",!0),vt(e.$slots,"title",{},()=>[We(ze(e.title),1)])],2)):Le("v-if",!0),!e.simple&&e.closable?(z(),Q("div",{key:1,tabindex:"-1",role:"button","aria-label":"Close",class:ue(`${e.prefixCls}-close-btn`),onClick:t[0]||(t[0]=(...y)=>e.handleCancel&&e.handleCancel(...y))},[O(p,null,{default:de(()=>[O(h)]),_:1})],2)):Le("v-if",!0)],34)):Le("v-if",!0),I("div",{class:ue([`${e.prefixCls}-body`,e.bodyClass]),style:Ke(e.bodyStyle)},[vt(e.$slots,"default")],6),e.footer?(z(),Q("div",{key:1,class:ue(`${e.prefixCls}-footer`)},[vt(e.$slots,"footer",{},()=>[e.hideCancel?Le("v-if",!0):(z(),Ye(v,Vt({key:0},e.cancelButtonProps,{onClick:e.handleCancel}),{default:de(()=>[We(ze(e.cancelDisplayText),1)]),_:1},16,["onClick"])),O(v,Vt({type:"primary"},e.okButtonProps,{loading:e.mergedOkLoading,onClick:e.handleOk}),{default:de(()=>[We(ze(e.okDisplayText),1)]),_:1},16,["loading","onClick"])])],2)):Le("v-if",!0)],6),[[Qo,e.computedVisible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],34)],16)),[[Qo,e.computedVisible||e.mounted]]):Le("v-if",!0)],8,["to","disabled"]))]),_:3})}var Vw=Ve(IFe,[["render",LFe]]);const XR=(e,t)=>{let n=A5("modal");const r=()=>{d.component&&(d.component.props.visible=!1),En(e.onOk)&&e.onOk()},o=()=>{d.component&&(d.component.props.visible=!1),En(e.onCancel)&&e.onCancel()},a=async()=>{await Cn(),n&&(Xc(null,n),document.body.removeChild(n)),n=null,En(e.onClose)&&e.onClose()},s=()=>{d.component&&(d.component.props.visible=!1)},l=h=>{d.component&&Object.entries(h).forEach(([p,v])=>{d.component.props[p]=v})},d=O(Vw,{...{visible:!0,renderToBody:!1,unmountOnClose:!0,onOk:r,onCancel:o,onClose:a},...xa(e,["content","title","footer","visible","unmountOnClose","onOk","onCancel","onClose"]),footer:typeof e.footer=="boolean"?e.footer:void 0},{default:Hl(e.content),title:Hl(e.title),footer:typeof e.footer!="boolean"?Hl(e.footer):void 0});return(t??Du._context)&&(d.appContext=t??Du._context),Xc(d,n),document.body.appendChild(n),{close:s,update:l}},ZR={open:XR,confirm:(e,t)=>{const n={simple:!0,messageType:"warning",...e};return XR(n,t)},...L5.reduce((e,t)=>(e[t]=(n,r)=>{const o={simple:!0,hideCancel:!0,messageType:t,...n};return XR(o,r)},e),{})},Du=Object.assign(Vw,{...ZR,install:(e,t)=>{Xn(e,t);const n=Yn(t);e.component(n+Vw.name,Vw);const r={};for(const o of Object.keys(ZR))r[o]=(a,s=e._context)=>ZR[o](a,s);e.config.globalProperties.$modal=r},_context:null}),DFe=e=>e.replace(/\B([A-Z])/g,"-$1").toLowerCase(),PFe=Se({name:"Notification",components:{AIconHover:Lo,IconInfoCircleFill:i3,IconCheckCircleFill:Yh,IconExclamationCircleFill:If,IconCloseCircleFill:Zm,IconClose:ds},props:{type:{type:String,default:"info"},showIcon:{type:Boolean,default:!0},closable:{type:Boolean,default:!1},duration:{type:Number,default:3e3},resetOnUpdate:{type:Boolean,default:!1}},emits:["close"],setup(e,t){const n=Te("notification");let r=0;const o=()=>{t.emit("close")};return bn(()=>{e.duration>0&&(r=window.setTimeout(o,e.duration))}),Qa(()=>{e.resetOnUpdate&&(r&&(window.clearTimeout(r),r=0),e.duration>0&&(r=window.setTimeout(o,e.duration)))}),gi(()=>{r&&window.clearTimeout(r)}),{prefixCls:n,handleClose:o}}});function RFe(e,t,n,r,o,a){const s=Ie("icon-info-circle-fill"),l=Ie("icon-check-circle-fill"),c=Ie("icon-exclamation-circle-fill"),d=Ie("icon-close-circle-fill"),h=Ie("icon-close"),p=Ie("a-icon-hover");return z(),Q("li",{role:"alert",class:ue([e.prefixCls,`${e.prefixCls}-${e.type}`,{[`${e.prefixCls}-closable`]:e.closable}])},[e.showIcon?(z(),Q("div",{key:0,class:ue(`${e.prefixCls}-left`)},[I("div",{class:ue(`${e.prefixCls}-icon`)},[vt(e.$slots,"icon",{},()=>[e.type==="info"?(z(),Ye(s,{key:0})):e.type==="success"?(z(),Ye(l,{key:1})):e.type==="warning"?(z(),Ye(c,{key:2})):e.type==="error"?(z(),Ye(d,{key:3})):Le("v-if",!0)])],2)],2)):Le("v-if",!0),I("div",{class:ue(`${e.prefixCls}-right`)},[e.$slots.default?(z(),Q("div",{key:0,class:ue(`${e.prefixCls}-title`)},[vt(e.$slots,"default")],2)):Le("v-if",!0),e.$slots.content?(z(),Q("div",{key:1,class:ue(`${e.prefixCls}-content`)},[vt(e.$slots,"content")],2)):Le("v-if",!0),e.$slots.footer?(z(),Q("div",{key:2,class:ue(`${e.prefixCls}-footer`)},[vt(e.$slots,"footer")],2)):Le("v-if",!0)],2),e.closable?(z(),Q("div",{key:1,class:ue(`${e.prefixCls}-close-btn`),onClick:t[0]||(t[0]=(...v)=>e.handleClose&&e.handleClose(...v))},[vt(e.$slots,"closeIconElement",{},()=>[O(p,null,{default:de(()=>[vt(e.$slots,"closeIcon",{},()=>[O(h)])]),_:3})])],2)):Le("v-if",!0)],2)}var MFe=Ve(PFe,[["render",RFe]]);const OFe=["topLeft","topRight","bottomLeft","bottomRight"];function $Fe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wi(e)}var BFe=Se({name:"NotificationList",props:{notifications:{type:Array,default:()=>[]},position:{type:String,default:"topRight",validator:e=>OFe.includes(e)}},emits:["close","afterClose"],setup(e,t){const n=Te("notification-list"),r=DFe(e.position),{zIndex:o}=o3("message",{runOnMounted:!0}),a=e.position.includes("Right");return()=>{let s;return O(r3,{class:[n,`${n}-${r}`],style:{zIndex:o.value},name:`slide-${a?"right":"left"}-notification`,onAfterLeave:()=>t.emit("afterClose"),tag:"ul"},$Fe(s=e.notifications.map(l=>{const c={default:Hl(l.title),content:Hl(l.content),icon:Hl(l.icon),footer:Hl(l.footer),closeIcon:Hl(l.closeIcon),closeIconElement:Hl(l.closeIconElement)};return O(MFe,{key:l.id,type:l.type,style:l.style,class:l.class,duration:l.duration,closable:l.closable,showIcon:l.showIcon,resetOnUpdate:l.resetOnUpdate,onClose:()=>t.emit("close",l.id)},c)}))?s:{default:()=>[s]})}}});class NFe{constructor(t,n){this.notificationCount=0,this.add=a=>{var s;this.notificationCount++;const l=(s=a.id)!=null?s:`__arco_notification_${this.notificationCount}`;if(this.notificationIds.has(l))return this.update(l,a);const c=Xt({id:l,...a});return this.notifications.value.push(c),this.notificationIds.add(l),{close:()=>this.remove(l)}},this.update=(a,s)=>{for(let l=0;lthis.remove(a)}},this.remove=a=>{for(let s=0;s{this.notifications.value.splice(0)},this.destroy=()=>{this.notifications.value.length===0&&this.container&&(Xc(null,this.container),document.body.removeChild(this.container),this.container=null,pm[this.position]=void 0)};const{position:r="topRight"}=t;this.container=A5("notification"),this.notificationIds=new Set,this.notifications=fe([]),this.position=r;const o=O(BFe,{notifications:this.notifications.value,position:r,onClose:this.remove,onAfterClose:this.destroy});(n??lV._context)&&(o.appContext=n??lV._context),Xc(o,this.container),document.body.appendChild(this.container)}}const pm={},lb=L5.reduce((e,t)=>(e[t]=(n,r)=>{cs(n)&&(n={content:n});const o={type:t,...n},{position:a="topRight"}=o;return pm[a]||(pm[a]=new NFe(o,r)),pm[a].add(o)},e),{});lb.remove=e=>{e&&Object.values(pm).forEach(t=>t?.remove(e))};lb.clear=e=>{var t;e?(t=pm[e])==null||t.clear():Object.values(pm).forEach(n=>n?.clear())};const lV={...lb,install:e=>{const t={clear:lb.clear};for(const n of L5)t[n]=(r,o=e._context)=>lb[n](r,o);e.config.globalProperties.$notification=t},_context:null},FFe=Se({name:"PageHeader",components:{AIconHover:Lo,IconLeft:Al},props:{title:String,subtitle:String,showBack:{type:Boolean,default:!0}},emits:["back"],setup(e,{emit:t,slots:n}){const r=Te("page-header"),o=s=>{t("back",s)},a=j(()=>[r,{[`${r}-with-breadcrumb`]:!!n.breadcrumb,[`${r}-with-content`]:!!n.default}]);return{prefixCls:r,cls:a,handleBack:o}}});function jFe(e,t,n,r,o,a){const s=Ie("icon-left"),l=Ie("a-icon-hover");return z(),Q("div",{class:ue(e.cls)},[I("div",{class:ue(`${e.prefixCls}-wrapper`)},[e.$slots.breadcrumb?(z(),Q("div",{key:0,class:ue(`${e.prefixCls}-breadcrumb`)},[vt(e.$slots,"breadcrumb")],2)):Le("v-if",!0),I("div",{class:ue(`${e.prefixCls}-header`)},[I("span",{class:ue(`${e.prefixCls}-main`)},[e.showBack?(z(),Ye(l,{key:0,class:ue(`${e.prefixCls}-back-btn`),prefix:e.prefixCls,onClick:e.handleBack},{default:de(()=>[vt(e.$slots,"back-icon",{},()=>[O(s)])]),_:3},8,["class","prefix","onClick"])):Le("v-if",!0),I("span",{class:ue(`${e.prefixCls}-title`)},[vt(e.$slots,"title",{},()=>[We(ze(e.title),1)])],2),e.$slots.subtitle||e.subtitle?(z(),Q("span",{key:1,class:ue(`${e.prefixCls}-divider`)},null,2)):Le("v-if",!0),e.$slots.subtitle||e.subtitle?(z(),Q("span",{key:2,class:ue(`${e.prefixCls}-subtitle`)},[vt(e.$slots,"subtitle",{},()=>[We(ze(e.subtitle),1)])],2)):Le("v-if",!0)],2),e.$slots.extra?(z(),Q("span",{key:0,class:ue(`${e.prefixCls}-extra`)},[vt(e.$slots,"extra")],2)):Le("v-if",!0)],2)],2),e.$slots.default?(z(),Q("div",{key:0,class:ue(`${e.prefixCls}-content`)},[vt(e.$slots,"default")],2)):Le("v-if",!0)],2)}var JR=Ve(FFe,[["render",jFe]]);const VFe=Object.assign(JR,{install:(e,t)=>{Xn(e,t);const n=Yn(t);e.component(n+JR.name,JR)}}),zFe=Se({name:"Popconfirm",components:{ArcoButton:Xo,Trigger:ha,IconInfoCircleFill:i3,IconCheckCircleFill:Yh,IconExclamationCircleFill:If,IconCloseCircleFill:Zm},props:{content:String,position:{type:String,default:"top"},popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},type:{type:String,default:"info"},okText:String,cancelText:String,okLoading:{type:Boolean,default:!1},okButtonProps:{type:Object},cancelButtonProps:{type:Object},contentClass:{type:[String,Array,Object]},contentStyle:{type:Object},arrowClass:{type:[String,Array,Object]},arrowStyle:{type:Object},popupContainer:{type:[String,Object]},onBeforeOk:{type:Function},onBeforeCancel:{type:Function}},emits:{"update:popupVisible":e=>!0,popupVisibleChange:e=>!0,ok:()=>!0,cancel:()=>!0},setup(e,{emit:t}){const n=Te("popconfirm"),{t:r}=No(),o=fe(e.defaultPopupVisible),a=j(()=>{var S;return(S=e.popupVisible)!=null?S:o.value}),s=fe(!1),l=j(()=>e.okLoading||s.value);let c=0;const d=()=>{c++,s.value&&(s.value=!1),o.value=!1,t("update:popupVisible",!1),t("popupVisibleChange",!1)},h=S=>{S?(o.value=S,t("update:popupVisible",S),t("popupVisibleChange",S)):d()},p=async()=>{const S=c,k=await new Promise(async C=>{var x;if(En(e.onBeforeOk)){let E=e.onBeforeOk((_=!0)=>C(_));if((Am(E)||!El(E))&&(s.value=!0),Am(E))try{E=(x=await E)!=null?x:!0}catch(_){throw E=!1,_}El(E)&&C(E)}else C(!0)});S===c&&(k?(t("ok"),d()):s.value&&(s.value=!1))},v=()=>{var S;let k=!0;En(e.onBeforeCancel)&&(k=(S=e.onBeforeCancel())!=null?S:!1),k&&(t("cancel"),d())},g=j(()=>[`${n}-popup-content`,e.contentClass]),y=j(()=>[`${n}-popup-arrow`,e.arrowClass]);return{prefixCls:n,contentCls:g,arrowCls:y,computedPopupVisible:a,mergedOkLoading:l,handlePopupVisibleChange:h,handleOk:p,handleCancel:v,t:r}}});function UFe(e,t,n,r,o,a){const s=Ie("icon-info-circle-fill"),l=Ie("icon-check-circle-fill"),c=Ie("icon-exclamation-circle-fill"),d=Ie("icon-close-circle-fill"),h=Ie("arco-button"),p=Ie("trigger");return z(),Ye(p,{class:ue(e.prefixCls),trigger:"click",position:e.position,"show-arrow":"","popup-visible":e.computedPopupVisible,"popup-offset":10,"popup-container":e.popupContainer,"content-class":e.contentCls,"content-style":e.contentStyle,"arrow-class":e.arrowCls,"arrow-style":e.arrowStyle,"animation-name":"zoom-in-fade-out","auto-fit-transform-origin":"",onPopupVisibleChange:e.handlePopupVisibleChange},{content:de(()=>[I("div",{class:ue(`${e.prefixCls}-body`)},[I("span",{class:ue(`${e.prefixCls}-icon`)},[vt(e.$slots,"icon",{},()=>[e.type==="info"?(z(),Ye(s,{key:0})):e.type==="success"?(z(),Ye(l,{key:1})):e.type==="warning"?(z(),Ye(c,{key:2})):e.type==="error"?(z(),Ye(d,{key:3})):Le("v-if",!0)])],2),I("span",{class:ue(`${e.prefixCls}-content`)},[vt(e.$slots,"content",{},()=>[We(ze(e.content),1)])],2)],2),I("div",{class:ue(`${e.prefixCls}-footer`)},[O(h,Vt({size:"mini"},e.cancelButtonProps,{onClick:e.handleCancel}),{default:de(()=>[We(ze(e.cancelText||e.t("popconfirm.cancelText")),1)]),_:1},16,["onClick"]),O(h,Vt({type:"primary",size:"mini"},e.okButtonProps,{loading:e.mergedOkLoading,onClick:e.handleOk}),{default:de(()=>[We(ze(e.okText||e.t("popconfirm.okText")),1)]),_:1},16,["loading","onClick"])],2)]),default:de(()=>[vt(e.$slots,"default")]),_:3},8,["class","position","popup-visible","popup-container","content-class","content-style","arrow-class","arrow-style","onPopupVisibleChange"])}var QR=Ve(zFe,[["render",UFe]]);const HFe=Object.assign(QR,{install:(e,t)=>{Xn(e,t);const n=Yn(t);e.component(n+QR.name,QR)}}),WFe={small:3,medium:4,large:8},GFe=e=>{if(e)return br(e)?{backgroundImage:`linear-gradient(to right, ${Object.keys(e).map(n=>`${e[n]} ${n}`).join(",")})`}:{backgroundColor:e}},KFe=Se({name:"ProgressLine",components:{IconExclamationCircleFill:If},props:{percent:{type:Number,default:0},animation:{type:Boolean,default:!1},size:{type:String,default:"medium"},strokeWidth:{type:Number,default:4},width:{type:[Number,String],default:"100%"},color:{type:[String,Object],default:void 0},trackColor:String,formatText:{type:Function,default:void 0},status:{type:String},showText:Boolean},setup(e){const t=Te("progress-line"),n=j(()=>e.strokeWidth!==4?e.strokeWidth:WFe[e.size]),r=j(()=>`${Xl.times(e.percent,100)}%`),o=j(()=>({width:e.width,height:`${n.value}px`,backgroundColor:e.trackColor})),a=j(()=>({width:`${e.percent*100}%`,...GFe(e.color)}));return{prefixCls:t,style:o,barStyle:a,text:r}}}),qFe=["aria-valuenow"];function YFe(e,t,n,r,o,a){const s=Ie("icon-exclamation-circle-fill");return z(),Q("div",{role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.percent,class:ue(`${e.prefixCls}-wrapper`)},[I("div",{class:ue(e.prefixCls),style:Ke(e.style)},[I("div",{class:ue(`${e.prefixCls}-bar-buffer`)},null,2),I("div",{class:ue([`${e.prefixCls}-bar`]),style:Ke(e.barStyle)},null,6)],6),e.showText?(z(),Q("div",{key:0,class:ue(`${e.prefixCls}-text`)},[vt(e.$slots,"text",{percent:e.percent},()=>[We(ze(e.text)+" ",1),e.status==="danger"?(z(),Ye(s,{key:0})):Le("v-if",!0)])],2)):Le("v-if",!0)],10,qFe)}var XFe=Ve(KFe,[["render",YFe]]);const ZFe=Se({name:"IconExclamation",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-exclamation`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),JFe=["stroke-width","stroke-linecap","stroke-linejoin"];function QFe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M23 9h2v21h-2z"},null,-1),I("path",{fill:"currentColor",stroke:"none",d:"M23 9h2v21h-2z"},null,-1),I("path",{d:"M23 37h2v2h-2z"},null,-1),I("path",{fill:"currentColor",stroke:"none",d:"M23 37h2v2h-2z"},null,-1)]),14,JFe)}var eM=Ve(ZFe,[["render",QFe]]);const OH=Object.assign(eM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+eM.name,eM)}}),eje=Se({name:"IconCheck",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-check`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),tje=["stroke-width","stroke-linecap","stroke-linejoin"];function nje(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M41.678 11.05 19.05 33.678 6.322 20.95"},null,-1)]),14,tje)}var tM=Ve(eje,[["render",nje]]);const eg=Object.assign(tM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+tM.name,tM)}});let Tre=0;const rje={mini:16,small:48,medium:64,large:80},ije={mini:4,small:3,medium:4,large:4},oje=Se({name:"ProgressCircle",components:{IconExclamation:OH,IconCheck:eg},props:{percent:{type:Number,default:0},type:{type:String},size:{type:String,default:"medium"},strokeWidth:{type:Number},width:{type:Number,default:void 0},color:{type:[String,Object],default:void 0},trackColor:String,status:{type:String,default:void 0},showText:{type:Boolean,default:!0},pathStrokeWidth:{type:Number}},setup(e){const t=Te("progress-circle"),n=br(e.color),r=j(()=>{var p;return(p=e.width)!=null?p:rje[e.size]}),o=j(()=>{var p;return(p=e.strokeWidth)!=null?p:e.size==="mini"?r.value/2:ije[e.size]}),a=j(()=>{var p;return(p=e.pathStrokeWidth)!=null?p:e.size==="mini"?o.value:Math.max(2,o.value-2)}),s=j(()=>(r.value-o.value)/2),l=j(()=>Math.PI*2*s.value),c=j(()=>r.value/2),d=j(()=>(Tre+=1,`${t}-linear-gradient-${Tre}`)),h=j(()=>`${Xl.times(e.percent,100)}%`);return{prefixCls:t,isLinearGradient:n,radius:s,text:h,perimeter:l,center:c,mergedWidth:r,mergedStrokeWidth:o,mergedPathStrokeWidth:a,linearGradientId:d}}}),sje=["aria-valuenow"],aje=["viewBox"],lje={key:0},uje=["id"],cje=["offset","stop-color"],dje=["cx","cy","r","stroke-width"],fje=["cx","cy","r","stroke-width"];function hje(e,t,n,r,o,a){const s=Ie("icon-check"),l=Ie("icon-exclamation");return z(),Q("div",{role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.percent,class:ue(`${e.prefixCls}-wrapper`),style:Ke({width:`${e.mergedWidth}px`,height:`${e.mergedWidth}px`})},[e.type==="circle"&&e.size==="mini"&&e.status==="success"?(z(),Ye(s,{key:0,style:Ke({fontSize:e.mergedWidth-2,color:e.color})},null,8,["style"])):(z(),Q("svg",{key:1,viewBox:`0 0 ${e.mergedWidth} ${e.mergedWidth}`,class:ue(`${e.prefixCls}-svg`)},[e.isLinearGradient?(z(),Q("defs",lje,[I("linearGradient",{id:e.linearGradientId,x1:"0",y1:"1",x2:"0",y2:"0"},[(z(!0),Q(Nt,null,gn(Object.keys(e.color),c=>(z(),Q("stop",{key:c,offset:c,"stop-color":e.color[c]},null,8,cje))),128))],8,uje)])):Le("v-if",!0),I("circle",{class:ue(`${e.prefixCls}-bg`),fill:"none",cx:e.center,cy:e.center,r:e.radius,"stroke-width":e.mergedPathStrokeWidth,style:Ke({stroke:e.trackColor})},null,14,dje),I("circle",{class:ue(`${e.prefixCls}-bar`),fill:"none",cx:e.center,cy:e.center,r:e.radius,"stroke-width":e.mergedStrokeWidth,style:Ke({stroke:e.isLinearGradient?`url(#${e.linearGradientId})`:e.color,strokeDasharray:e.perimeter,strokeDashoffset:(e.percent>=1?0:1-e.percent)*e.perimeter})},null,14,fje)],10,aje)),e.showText&&e.size!=="mini"?(z(),Q("div",{key:2,class:ue(`${e.prefixCls}-text`)},[vt(e.$slots,"text",{percent:e.percent},()=>[e.status==="danger"?(z(),Ye(l,{key:0})):e.status==="success"?(z(),Ye(s,{key:1})):(z(),Q(Nt,{key:2},[We(ze(e.text),1)],64))])],2)):Le("v-if",!0)],14,sje)}var pje=Ve(oje,[["render",hje]]);const vje=Se({name:"ProgressSteps",components:{IconExclamationCircleFill:If},props:{steps:{type:Number,default:0},percent:{type:Number,default:0},size:{type:String},color:{type:[String,Object],default:void 0},trackColor:String,strokeWidth:{type:Number},status:{type:String,default:void 0},showText:{type:Boolean,default:!0}},setup(e){const t=Te("progress-steps"),n=j(()=>{var a;return((a=e.strokeWidth)!=null?a:e.size==="small")?8:4}),r=j(()=>[...Array(e.steps)].map((a,s)=>e.percent>0&&e.percent>1/e.steps*s)),o=j(()=>`${Xl.times(e.percent,100)}%`);return{prefixCls:t,stepList:r,mergedStrokeWidth:n,text:o}}}),mje=["aria-valuenow"];function gje(e,t,n,r,o,a){const s=Ie("icon-exclamation-circle-fill");return z(),Q("div",{role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.percent,class:ue(`${e.prefixCls}-wrapper`)},[I("div",{class:ue(e.prefixCls),style:Ke({height:`${e.mergedStrokeWidth}px`})},[(z(!0),Q(Nt,null,gn(e.stepList,(l,c)=>(z(),Q("div",{key:c,class:ue([`${e.prefixCls}-item`,{[`${e.prefixCls}-item-active`]:l}]),style:Ke({backgroundColor:l?e.color:e.trackColor})},null,6))),128))],6),e.showText?(z(),Q("div",{key:0,class:ue(`${e.prefixCls}-text`)},[vt(e.$slots,"text",{percent:e.percent},()=>[We(ze(e.text)+" ",1),e.status==="danger"?(z(),Ye(s,{key:0})):Le("v-if",!0)])],2)):Le("v-if",!0)],10,mje)}var yje=Ve(vje,[["render",gje]]);const bje=Se({name:"Progress",components:{ProgressLine:XFe,ProgressCircle:pje,ProgressSteps:yje},props:{type:{type:String,default:"line"},size:{type:String},percent:{type:Number,default:0},steps:{type:Number,default:0},animation:{type:Boolean,default:!1},strokeWidth:{type:Number},width:{type:[Number,String]},color:{type:[String,Object]},trackColor:String,bufferColor:{type:[String,Object]},showText:{type:Boolean,default:!0},status:{type:String}},setup(e){const t=Te("progress"),{size:n}=nn(e),r=j(()=>e.steps>0?"steps":e.type),o=j(()=>e.status||(e.percent>=1?"success":"normal")),{mergedSize:a}=wa(n);return{cls:j(()=>[t,`${t}-type-${r.value}`,`${t}-size-${a.value}`,`${t}-status-${o.value}`]),computedStatus:o,mergedSize:a}}});function _je(e,t,n,r,o,a){const s=Ie("progress-steps"),l=Ie("progress-line"),c=Ie("progress-circle");return z(),Q("div",{class:ue(e.cls)},[e.steps>0?(z(),Ye(s,{key:0,"stroke-width":e.strokeWidth,percent:e.percent,color:e.color,"track-color":e.trackColor,width:e.width,steps:e.steps,size:e.mergedSize,"show-text":e.showText},yo({_:2},[e.$slots.text?{name:"text",fn:de(d=>[vt(e.$slots,"text",Yi(Sa(d)))]),key:"0"}:void 0]),1032,["stroke-width","percent","color","track-color","width","steps","size","show-text"])):e.type==="line"&&e.mergedSize!=="mini"?(z(),Ye(l,{key:1,"stroke-width":e.strokeWidth,animation:e.animation,percent:e.percent,color:e.color,"track-color":e.trackColor,size:e.mergedSize,"buffer-color":e.bufferColor,width:e.width,"show-text":e.showText,status:e.computedStatus},yo({_:2},[e.$slots.text?{name:"text",fn:de(d=>[vt(e.$slots,"text",Yi(Sa(d)))]),key:"0"}:void 0]),1032,["stroke-width","animation","percent","color","track-color","size","buffer-color","width","show-text","status"])):(z(),Ye(c,{key:2,type:e.type,"stroke-width":e.type==="line"?e.strokeWidth||4:e.strokeWidth,"path-stroke-width":e.type==="line"?e.strokeWidth||4:e.strokeWidth,width:e.width,percent:e.percent,color:e.color,"track-color":e.trackColor,size:e.mergedSize,"show-text":e.showText,status:e.computedStatus},yo({_:2},[e.$slots.text?{name:"text",fn:de(d=>[vt(e.$slots,"text",Yi(Sa(d)))]),key:"0"}:void 0]),1032,["type","stroke-width","path-stroke-width","width","percent","color","track-color","size","show-text","status"]))],2)}var nM=Ve(bje,[["render",_je]]);const j0e=Object.assign(nM,{install:(e,t)=>{Xn(e,t);const n=Yn(t);e.component(n+nM.name,nM)}}),Sje=Se({name:"IconStarFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-star-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),kje=["stroke-width","stroke-linecap","stroke-linejoin"];function xje(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M22.683 5.415c.568-1.043 2.065-1.043 2.634 0l5.507 10.098a1.5 1.5 0 0 0 1.04.756l11.306 2.117c1.168.219 1.63 1.642.814 2.505l-7.902 8.359a1.5 1.5 0 0 0-.397 1.223l1.48 11.407c.153 1.177-1.058 2.057-2.131 1.548l-10.391-4.933a1.5 1.5 0 0 0-1.287 0l-10.39 4.933c-1.073.51-2.284-.37-2.131-1.548l1.48-11.407a1.5 1.5 0 0 0-.398-1.223L4.015 20.89c-.816-.863-.353-2.286.814-2.505l11.306-2.117a1.5 1.5 0 0 0 1.04-.756l5.508-10.098Z",fill:"currentColor",stroke:"none"},null,-1)]),14,kje)}var rM=Ve(Sje,[["render",xje]]);const $H=Object.assign(rM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+rM.name,rM)}}),Cje=Se({name:"IconFaceMehFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-face-meh-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),wje=["stroke-width","stroke-linecap","stroke-linejoin"];function Eje(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm7.321-26.873a2.625 2.625 0 1 1 0 5.25 2.625 2.625 0 0 1 0-5.25Zm-14.646 0a2.625 2.625 0 1 1 0 5.25 2.625 2.625 0 0 1 0-5.25ZM15.999 30a2 2 0 0 1 2-2h12a2 2 0 1 1 0 4H18a2 2 0 0 1-2-2Z",fill:"currentColor",stroke:"none"},null,-1)]),14,wje)}var iM=Ve(Cje,[["render",Eje]]);const uV=Object.assign(iM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+iM.name,iM)}}),Tje=Se({name:"IconFaceSmileFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-face-smile-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Aje=["stroke-width","stroke-linecap","stroke-linejoin"];function Ije(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm7.321-26.873a2.625 2.625 0 1 1 0 5.25 2.625 2.625 0 0 1 0-5.25Zm-14.646 0a2.625 2.625 0 1 1 0 5.25 2.625 2.625 0 0 1 0-5.25Zm-.355 9.953a1.91 1.91 0 0 1 2.694.177 6.66 6.66 0 0 0 5.026 2.279c1.918 0 3.7-.81 4.961-2.206a1.91 1.91 0 0 1 2.834 2.558 10.476 10.476 0 0 1-7.795 3.466 10.477 10.477 0 0 1-7.897-3.58 1.91 1.91 0 0 1 .177-2.694Z",fill:"currentColor",stroke:"none"},null,-1)]),14,Aje)}var oM=Ve(Tje,[["render",Ije]]);const V0e=Object.assign(oM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+oM.name,oM)}}),Lje=Se({name:"IconFaceFrownFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-face-frown-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Dje=["stroke-width","stroke-linecap","stroke-linejoin"];function Pje(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm7.322-26.873a2.625 2.625 0 1 1 0 5.25 2.625 2.625 0 0 1 0-5.25Zm-14.646 0a2.625 2.625 0 1 1 0 5.25 2.625 2.625 0 0 1 0-5.25ZM31.68 32.88a1.91 1.91 0 0 1-2.694-.176 6.66 6.66 0 0 0-5.026-2.28c-1.918 0-3.701.81-4.962 2.207a1.91 1.91 0 0 1-2.834-2.559 10.476 10.476 0 0 1 7.796-3.465c3.063 0 5.916 1.321 7.896 3.58a1.909 1.909 0 0 1-.176 2.693Z",fill:"currentColor",stroke:"none"},null,-1)]),14,Dje)}var sM=Ve(Lje,[["render",Pje]]);const z0e=Object.assign(sM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+sM.name,sM)}});var aM=Se({name:"Rate",props:{count:{type:Number,default:5},modelValue:{type:Number,default:void 0},defaultValue:{type:Number,default:0},allowHalf:{type:Boolean,default:!1},allowClear:{type:Boolean,default:!1},grading:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},color:{type:[String,Object]}},emits:{"update:modelValue":e=>!0,change:e=>!0,hoverChange:e=>!0},setup(e,{emit:t,slots:n}){const{modelValue:r}=nn(e),o=Te("rate"),{mergedDisabled:a,eventHandlers:s}=Do({disabled:Lu(e,"disabled")}),l=fe(e.defaultValue),c=fe(!1);Rt(r,M=>{(An(M)||Tl(M))&&(l.value=0)});const d=fe(0),h=j(()=>{var M;return(M=e.modelValue)!=null?M:l.value}),p=j(()=>{const M=e.allowHalf?Xl.times(Xl.round(Xl.divide(h.value,.5),0),.5):Math.round(h.value);return d.value||M}),v=j(()=>a.value||e.readonly),g=j(()=>[...Array(e.grading?5:e.count)]),y=j(()=>{var M;if(cs(e.color))return g.value.map(()=>e.color);if(br(e.color)){const $=Object.keys(e.color).map(B=>Number(B)).sort((B,F)=>F-B);let L=(M=$.pop())!=null?M:g.value.length;return g.value.map((B,F)=>{var W;return F+1>L&&(L=(W=$.pop())!=null?W:L),e.color[String(L)]})}}),S=()=>{d.value&&(d.value=0,t("hoverChange",0))},k=(M,$)=>{const L=$&&e.allowHalf?M+.5:M+1;L!==d.value&&(d.value=L,t("hoverChange",L))},C=(M,$)=>{var L,B,F,W;const U=$&&e.allowHalf?M+.5:M+1;c.value=!0,U!==h.value?(l.value=U,t("update:modelValue",U),t("change",U),(B=(L=s.value)==null?void 0:L.onChange)==null||B.call(L)):e.allowClear&&(l.value=0,t("update:modelValue",0),t("change",0),(W=(F=s.value)==null?void 0:F.onChange)==null||W.call(F))},x=M=>{c.value&&M+1>=h.value-1&&(c.value=!1)},E=(M,$)=>M>$?O(uV,null,null):$<=2?O(z0e,null,null):$<=3?O(uV,null,null):O(V0e,null,null),_=(M,$=!1)=>({role:"radio","aria-checked":M+($?.5:1)<=h.value,"aria-setsize":g.value.length,"aria-posinset":M+($?.5:1)}),T=M=>e.grading?E(M,p.value):n.character?n.character({index:M}):O($H,null,null),D=M=>{const $=v.value?{}:{onMouseenter:()=>k(M,!0),onClick:()=>C(M,!0)},L=v.value?{}:{onMouseenter:()=>k(M,!1),onClick:()=>C(M,!1)},B=c.value?{animationDelay:`${50*M}ms`}:void 0,F=Math.ceil(p.value)-1,W=y.value&&e.allowHalf&&M+.5===p.value?{color:y.value[F]}:void 0,U=y.value&&M+1<=p.value?{color:y.value[F]}:void 0,G=[`${o}-character`,{[`${o}-character-half`]:e.allowHalf&&M+.5===p.value,[`${o}-character-full`]:M+1<=p.value,[`${o}-character-scale`]:c.value&&M+1x(M)}),[O("div",Vt({class:`${o}-character-left`,style:W},$,e.allowHalf?_(M,!0):void 0),[T(M)]),O("div",Vt({class:`${o}-character-right`,style:U},L,e.allowHalf?_(M):void 0),[T(M)])])},P=j(()=>[o,{[`${o}-readonly`]:e.readonly,[`${o}-disabled`]:a.value}]);return()=>O("div",{class:P.value,onMouseleave:S},[g.value.map((M,$)=>D($))])}});const Rje=Object.assign(aM,{install:(e,t)=>{Xn(e,t);const n=Yn(t);e.component(n+aM.name,aM)}}),Mje=Se({name:"IconInfo",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-info`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Oje=["stroke-width","stroke-linecap","stroke-linejoin"];function $je(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M25 39h-2V18h2z"},null,-1),I("path",{fill:"currentColor",stroke:"none",d:"M25 39h-2V18h2z"},null,-1),I("path",{d:"M25 11h-2V9h2z"},null,-1),I("path",{fill:"currentColor",stroke:"none",d:"M25 11h-2V9h2z"},null,-1)]),14,Oje)}var lM=Ve(Mje,[["render",$je]]);const U0e=Object.assign(lM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+lM.name,lM)}});var Bje=Se({name:"ResultForbidden",render(){return O("svg",{viewBox:"0 0 213 213",height:"100%",width:"100%",style:{fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:2}},[O("g",{transform:"matrix(1,0,0,1,-871.485,-445.62)"},[O("g",null,[O("g",{transform:"matrix(1,0,0,1,-75.2684,-87.3801)"},[O("circle",{cx:"1053.23",cy:"639.477",r:"106.477",style:{fill:"rgb(235, 238, 246)"}},null)]),O("g",{transform:"matrix(1,0,0,1,246.523,295.575)"},[O("g",{transform:"matrix(0.316667,0,0,0.316667,277.545,71.0298)"},[O("g",{transform:"matrix(0.989011,-0.571006,1.14201,0.659341,-335.171,81.4498)"},[O("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(253, 243, 228)"}},null)]),O("g",{transform:"matrix(0.164835,-0.0951676,1.14201,0.659341,116.224,-179.163)"},[O("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(202, 174, 136)"}},null)]),O("g",{transform:"matrix(0.978261,-0.564799,1.26804e-16,1.30435,-337.046,42.0327)"},[O("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)]),O("g",{transform:"matrix(0.267591,-0.154493,3.46856e-17,0.356787,992.686,475.823)"},[O("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(102, 102, 102)"}},null)]),O("g",{transform:"matrix(1.28257,-0.740494,1.23317e-16,1.7101,1501.14,624.071)"},[O("g",{transform:"matrix(1,0,0,1,-6,-6)"},[O("path",{d:"M2.25,10.5C2.25,10.5 1.5,10.5 1.5,9.75C1.5,9 2.25,6.75 6,6.75C9.75,6.75 10.5,9 10.5,9.75C10.5,10.5 9.75,10.5 9.75,10.5L2.25,10.5ZM6,6C7.234,6 8.25,4.984 8.25,3.75C8.25,2.516 7.234,1.5 6,1.5C4.766,1.5 3.75,2.516 3.75,3.75C3.75,4.984 4.766,6 6,6Z",style:{fill:"white"}},null)])]),O("g",{transform:"matrix(0.725806,0.419045,1.75755e-17,1.01444,155.314,212.138)"},[O("rect",{x:"1663.92",y:"-407.511",width:"143.183",height:"118.292",style:{fill:"rgb(240, 218, 183)"}},null)]),O("g",{transform:"matrix(1.58977,-0.917857,1.15976e-16,2.2425,-1270.46,-614.379)"},[O("rect",{x:"1748.87",y:"1226.67",width:"10.895",height:"13.378",style:{fill:"rgb(132, 97, 0)"}},null)])]),O("g",{transform:"matrix(0.182997,0.105653,-0.494902,0.285732,814.161,66.3087)"},[O("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fillOpacity:.1}},null)]),O("g",{transform:"matrix(0.316667,0,0,0.316667,237.301,94.2647)"},[O("g",{transform:"matrix(0.989011,-0.571006,1.14201,0.659341,-335.171,81.4498)"},[O("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(253, 243, 228)"}},null)]),O("g",{transform:"matrix(0.164835,-0.0951676,1.14201,0.659341,116.224,-179.163)"},[O("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(202, 174, 136)"}},null)]),O("g",{transform:"matrix(0.978261,-0.564799,1.26804e-16,1.30435,-337.046,42.0327)"},[O("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)]),O("g",{transform:"matrix(0.267591,-0.154493,3.46856e-17,0.356787,992.686,475.823)"},[O("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(102, 102, 102)"}},null)]),O("g",{transform:"matrix(1.28257,-0.740494,1.23317e-16,1.7101,1501.14,624.071)"},[O("g",{transform:"matrix(1,0,0,1,-6,-6)"},[O("path",{d:"M2.25,10.5C2.25,10.5 1.5,10.5 1.5,9.75C1.5,9 2.25,6.75 6,6.75C9.75,6.75 10.5,9 10.5,9.75C10.5,10.5 9.75,10.5 9.75,10.5L2.25,10.5ZM6,6C7.234,6 8.25,4.984 8.25,3.75C8.25,2.516 7.234,1.5 6,1.5C4.766,1.5 3.75,2.516 3.75,3.75C3.75,4.984 4.766,6 6,6Z",style:{fill:"white"}},null)])]),O("g",{transform:"matrix(0.725806,0.419045,1.75755e-17,1.01444,155.314,212.138)"},[O("rect",{x:"1663.92",y:"-407.511",width:"143.183",height:"118.292",style:{fill:"rgb(240, 218, 183)"}},null)]),O("g",{transform:"matrix(1.58977,-0.917857,1.15976e-16,2.2425,-1270.46,-614.379)"},[O("rect",{x:"1748.87",y:"1226.67",width:"10.895",height:"13.378",style:{fill:"rgb(132, 97, 0)"}},null)])]),O("g",{transform:"matrix(0.474953,0,0,0.474953,538.938,8.95289)"},[O("g",{transform:"matrix(0.180615,0.104278,-0.973879,0.562269,790.347,286.159)"},[O("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fillOpacity:.1}},null)]),O("g",{transform:"matrix(0.473356,0,0,0.473356,294.481,129.741)"},[O("g",null,[O("g",{transform:"matrix(0.1761,-0.101671,1.73518e-16,1.22207,442.564,7.31508)"},[O("rect",{x:"202.62",y:"575.419",width:"124.002",height:"259.402",style:{fill:"rgb(235, 235, 235)"}},null)]),O("g",{transform:"matrix(0.0922781,0.0532768,2.03964e-16,2.20569,405.236,-248.842)"},[O("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(34, 34, 34)"}},null)]),O("g",{transform:"matrix(0.147541,-0.0851831,1.52371e-16,1.23446,454.294,-3.8127)"},[O("rect",{x:"202.62",y:"575.419",width:"124.002",height:"259.402",style:{fill:"rgb(51, 51, 51)"}},null)]),O("g",{transform:"matrix(0.0921286,0.0531905,-0.126106,0.0728076,474.688,603.724)"},[O("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(102, 102, 102)"}},null)])])]),O("g",{transform:"matrix(0.473356,0,0,0.473356,192.621,188.549)"},[O("g",null,[O("g",{transform:"matrix(0.1761,-0.101671,1.73518e-16,1.22207,442.564,7.31508)"},[O("rect",{x:"202.62",y:"575.419",width:"124.002",height:"259.402",style:{fill:"rgb(235, 235, 235)"}},null)]),O("g",{transform:"matrix(0.0922781,0.0532768,2.03964e-16,2.20569,405.236,-248.842)"},[O("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(34, 34, 34)"}},null)]),O("g",{transform:"matrix(0.147541,-0.0851831,1.52371e-16,1.23446,454.294,-3.8127)"},[O("rect",{x:"202.62",y:"575.419",width:"124.002",height:"259.402",style:{fill:"rgb(51, 51, 51)"}},null)]),O("g",{transform:"matrix(0.0921286,0.0531905,-0.126106,0.0728076,474.688,603.724)"},[O("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(102, 102, 102)"}},null)])])]),O("g",{transform:"matrix(0.668111,0,0,0.668111,-123.979,-49.2109)"},[O("g",{transform:"matrix(0.0349225,0.0201625,1.81598e-17,0.220789,974.758,729.412)"},[O("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(235, 235, 235)"}},null)]),O("g",{transform:"matrix(1.1164,-0.644557,0,0.220789,42.5091,1294.14)"},[O("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(235, 235, 235)"}},null)]),O("g",{transform:"matrix(0.0349225,0.0201625,-1.52814,0.882275,1593.11,461.746)"},[O("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(102, 102, 102)"}},null)]),O("g",{transform:"matrix(1.1164,-0.644557,0,0.220789,49.4442,1298.14)"},[O("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(51, 51, 51)"}},null)]),O("g",{transform:"matrix(0.0349225,0.0201625,1.81598e-17,0.220789,753.056,857.412)"},[O("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(34, 34, 34)"}},null)]),O("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,898.874,529.479)"},[O("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(255, 125, 0)"}},null)]),O("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,930.12,511.44)"},[O("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(255, 125, 0)"}},null)]),O("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,961.365,493.4)"},[O("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(248, 248, 248)"}},null)]),O("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,992.61,475.361)"},[O("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(248, 248, 248)"}},null)]),O("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,1023.86,457.321)"},[O("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(248, 248, 248)"}},null)]),O("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,1056.25,438.617)"},[O("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(255, 125, 0)"}},null)]),O("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,1085.74,421.589)"},[O("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(255, 125, 0)"}},null)])]),O("g",{transform:"matrix(0.668111,0,0,0.668111,-123.979,-91.97)"},[O("g",{transform:"matrix(0.0349225,0.0201625,1.81598e-17,0.220789,974.758,729.412)"},[O("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(235, 235, 235)"}},null)]),O("g",{transform:"matrix(1.1164,-0.644557,0,0.220789,42.5091,1294.14)"},[O("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(235, 235, 235)"}},null)]),O("g",{transform:"matrix(0.0349225,0.0201625,-1.52814,0.882275,1593.11,461.746)"},[O("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(102, 102, 102)"}},null)]),O("g",{transform:"matrix(1.1164,-0.644557,0,0.220789,49.4442,1298.14)"},[O("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(51, 51, 51)"}},null)]),O("g",{transform:"matrix(0.0349225,0.0201625,1.81598e-17,0.220789,753.056,857.412)"},[O("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(34, 34, 34)"}},null)]),O("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,898.874,529.479)"},[O("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(255, 125, 0)"}},null)]),O("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,930.12,511.44)"},[O("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(255, 125, 0)"}},null)]),O("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,961.365,493.4)"},[O("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(248, 248, 248)"}},null)]),O("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,992.61,475.361)"},[O("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(248, 248, 248)"}},null)]),O("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,1023.86,457.321)"},[O("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(248, 248, 248)"}},null)]),O("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,1056.25,438.617)"},[O("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(255, 125, 0)"}},null)]),O("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,1085.74,421.589)"},[O("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(255, 125, 0)"}},null)])]),O("g",{transform:"matrix(0.701585,5.16096e-35,-5.16096e-35,0.701585,-546.219,-21.3487)"},[O("g",{transform:"matrix(0.558202,-0.322278,0,0.882275,1033.27,615.815)"},[O("path",{d:"M855.598,410.446C855.598,407.244 852.515,404.643 848.718,404.643L663.891,404.643C660.094,404.643 657.012,407.244 657.012,410.446L657.012,543.92C657.012,547.123 660.094,549.723 663.891,549.723L848.718,549.723C852.515,549.723 855.598,547.123 855.598,543.92L855.598,410.446Z",style:{fill:"white"}},null)]),O("g",{transform:"matrix(0.558202,-0.322278,0,0.882275,1035.25,616.977)"},[O("path",{d:"M855.598,410.446C855.598,407.244 852.515,404.643 848.718,404.643L663.891,404.643C660.094,404.643 657.012,407.244 657.012,410.446L657.012,543.92C657.012,547.123 660.094,549.723 663.891,549.723L848.718,549.723C852.515,549.723 855.598,547.123 855.598,543.92L855.598,410.446Z",style:{fill:"white"}},null)]),O("g",{transform:"matrix(1,0,0,1,418.673,507.243)"},[O("path",{d:"M1088.34,192.063C1089.79,191.209 1090.78,191.821 1090.78,191.821L1092.71,192.944C1092.71,192.944 1092.29,192.721 1091.7,192.763C1090.99,192.813 1090.34,193.215 1090.34,193.215C1090.34,193.215 1088.85,192.362 1088.34,192.063Z",style:{fill:"rgb(248, 248, 248)"}},null)]),O("g",{transform:"matrix(1,0,0,1,235.984,-39.1315)"},[O("path",{d:"M1164.02,805.247C1164.05,802.517 1165.64,799.379 1167.67,798.118L1169.67,799.272C1167.58,800.648 1166.09,803.702 1166.02,806.402L1164.02,805.247Z",style:{fill:"url(#_Linear1)"}},null)]),O("g",{transform:"matrix(0.396683,0,0,0.396683,1000.22,516.921)"},[O("path",{d:"M1011.2,933.14C1009.31,932.075 1008.05,929.696 1007.83,926.324L1012.87,929.235C1012.87,929.235 1012.96,930.191 1013.04,930.698C1013.16,931.427 1013.42,932.344 1013.62,932.845C1013.79,933.255 1014.59,935.155 1016.22,936.046C1015.83,935.781 1011.19,933.139 1011.19,933.139L1011.2,933.14Z",style:{fill:"rgb(238, 238, 238)"}},null)]),O("g",{transform:"matrix(0.253614,-0.146424,4.87691e-17,0.338152,1209.98,830.02)"},[O("circle",{cx:"975.681",cy:"316.681",r:"113.681",style:{fill:"rgb(245, 63, 63)"}},null),O("g",{transform:"matrix(1.08844,0,0,0.61677,-99.9184,125.436)"},[O("path",{d:"M1062,297.556C1062,296.697 1061.61,296 1061.12,296L915.882,296C915.395,296 915,296.697 915,297.556L915,333.356C915,334.215 915.395,334.912 915.882,334.912L1061.12,334.912C1061.61,334.912 1062,334.215 1062,333.356L1062,297.556Z",style:{fill:"white"}},null)])]),O("g",{transform:"matrix(5.57947,-3.22131,0.306277,0.176829,-6260.71,4938.32)"},[O("rect",{x:"1335.54",y:"694.688",width:"18.525",height:"6.511",style:{fill:"rgb(248, 248, 248)"}},null)]),O("g",{transform:"matrix(0.10726,0.0619268,-1.83335e-14,18.1609,1256.76,-11932.8)"},[O("rect",{x:"1335.54",y:"694.688",width:"18.525",height:"6.511",style:{fill:"rgb(238, 238, 238)"}},null)])])]),O("g",{transform:"matrix(0.316667,0,0,0.316667,269.139,37.8829)"},[O("g",{transform:"matrix(0.989011,-0.571006,1.14201,0.659341,-335.171,81.4498)"},[O("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(253, 243, 228)"}},null)]),O("g",{transform:"matrix(0.164835,-0.0951676,1.14201,0.659341,116.224,-179.163)"},[O("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(202, 174, 136)"}},null)]),O("g",{transform:"matrix(0.978261,-0.564799,1.26804e-16,1.30435,-337.046,42.0327)"},[O("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)]),O("g",{transform:"matrix(0.267591,-0.154493,3.46856e-17,0.356787,992.686,475.823)"},[O("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(102, 102, 102)"}},null)]),O("g",{transform:"matrix(1.28257,-0.740494,1.23317e-16,1.7101,1501.14,624.071)"},[O("g",{transform:"matrix(1,0,0,1,-6,-6)"},[O("path",{d:"M2.25,10.5C2.25,10.5 1.5,10.5 1.5,9.75C1.5,9 2.25,6.75 6,6.75C9.75,6.75 10.5,9 10.5,9.75C10.5,10.5 9.75,10.5 9.75,10.5L2.25,10.5ZM6,6C7.234,6 8.25,4.984 8.25,3.75C8.25,2.516 7.234,1.5 6,1.5C4.766,1.5 3.75,2.516 3.75,3.75C3.75,4.984 4.766,6 6,6Z",style:{fill:"white"}},null)])]),O("g",{transform:"matrix(0.725806,0.419045,1.75755e-17,1.01444,155.314,212.138)"},[O("rect",{x:"1663.92",y:"-407.511",width:"143.183",height:"118.292",style:{fill:"rgb(240, 218, 183)"}},null)]),O("g",{transform:"matrix(1.58977,-0.917857,1.15976e-16,2.2425,-1270.46,-614.379)"},[O("rect",{x:"1748.87",y:"1226.67",width:"10.895",height:"13.378",style:{fill:"rgb(132, 97, 0)"}},null)])])])])]),O("defs",null,[O("linearGradient",{id:"_Linear1",x1:"0",y1:"0",x2:"1",y2:"0",gradientUnits:"userSpaceOnUse",gradientTransform:"matrix(-2.64571,4.04098,-4.04098,-2.64571,1167.67,799.269)"},[O("stop",{offset:"0",style:{stopColor:"rgb(248, 248, 248)",stopOpacity:1}},null),O("stop",{offset:"1",style:{stopColor:"rgb(248, 248, 248)",stopOpacity:1}},null)])])])}}),Nje=Se({name:"ResultNotFound",render(){return O("svg",{width:"100%",height:"100%",viewBox:"0 0 213 213",style:{fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:2}},[O("g",{transform:"matrix(1,0,0,1,-1241.95,-445.62)"},[O("g",null,[O("g",{transform:"matrix(1,0,0,1,295.2,-87.3801)"},[O("circle",{cx:"1053.23",cy:"639.477",r:"106.477",style:{fill:"rgb(235, 238, 246)"}},null)]),O("g",{transform:"matrix(0.38223,0,0,0.38223,1126.12,238.549)"},[O("g",{transform:"matrix(0.566536,0.327089,-1.28774,0.74348,763.4,317.171)"},[O("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fillOpacity:.1}},null)]),O("g",{transform:"matrix(0.29595,0.170867,-0.91077,0.525833,873.797,588.624)"},[O("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fillOpacity:.1}},null)]),O("g",{transform:"matrix(1,0,0,1,275,-15)"},[O("path",{d:"M262.077,959.012L276.923,959.012L273.388,1004.01C273.388,1004.59 273.009,1005.16 272.25,1005.6C270.732,1006.48 268.268,1006.48 266.75,1005.6C265.991,1005.16 265.612,1004.59 265.612,1004.01L262.077,959.012Z",style:{fill:"rgb(196, 173, 142)"}},null),O("g",{transform:"matrix(0.866025,-0.5,1,0.57735,0,-45)"},[O("ellipse",{cx:"-848.416",cy:"1004.25",rx:"6.062",ry:"5.25",style:{fill:"rgb(255, 125, 0)"}},null)])]),O("g",{transform:"matrix(1,0,0,1,183.952,-67.5665)"},[O("path",{d:"M262.077,959.012L276.923,959.012L273.388,1004.01C273.388,1004.59 273.009,1005.16 272.25,1005.6C270.732,1006.48 268.268,1006.48 266.75,1005.6C265.991,1005.16 265.612,1004.59 265.612,1004.01L262.077,959.012Z",style:{fill:"rgb(196, 173, 142)"}},null),O("g",{transform:"matrix(0.866025,-0.5,1,0.57735,0,-45)"},[O("ellipse",{cx:"-848.416",cy:"1004.25",rx:"6.062",ry:"5.25",style:{fill:"rgb(255, 125, 0)"}},null)])]),O("g",{transform:"matrix(1,0,0,1,414,-95.2517)"},[O("path",{d:"M262.077,959.012L276.923,959.012L273.388,1004.01C273.388,1004.59 273.009,1005.16 272.25,1005.6C270.732,1006.48 268.268,1006.48 266.75,1005.6C265.991,1005.16 265.612,1004.59 265.612,1004.01L262.077,959.012Z",style:{fill:"rgb(196, 173, 142)"}},null),O("g",{transform:"matrix(0.866025,-0.5,1,0.57735,0,-45)"},[O("ellipse",{cx:"-848.416",cy:"1004.25",rx:"6.062",ry:"5.25",style:{fill:"rgb(255, 125, 0)"}},null)])]),O("g",{transform:"matrix(1,0,0,1,322.952,-147.818)"},[O("path",{d:"M262.077,959.012L276.923,959.012L273.388,1004.01C273.388,1004.59 273.009,1005.16 272.25,1005.6C270.732,1006.48 268.268,1006.48 266.75,1005.6C265.991,1005.16 265.612,1004.59 265.612,1004.01L262.077,959.012Z",style:{fill:"rgb(196, 173, 142)"}},null),O("g",{transform:"matrix(0.866025,-0.5,1,0.57735,0,-45)"},[O("ellipse",{cx:"-848.416",cy:"1004.25",rx:"6.062",ry:"5.25",style:{fill:"rgb(255, 125, 0)"}},null)])]),O("g",null,[O("g",{transform:"matrix(1.42334,-0.821763,1.11271,0.642426,-1439.64,459.621)"},[O("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(253, 243, 228)"}},null)]),O("g",{transform:"matrix(1.40786,-0.812831,6.60237e-16,1.99081,-2052.17,-84.7286)"},[O("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)]),O("g",{transform:"matrix(1.26159,-0.728382,5.91642e-16,1.78397,-1774.67,11.2303)"},[O("path",{d:"M1950.29,1194.38C1950.29,1193.37 1949.41,1192.54 1948.34,1192.54L1846.01,1192.54C1844.93,1192.54 1844.06,1193.37 1844.06,1194.38L1844.06,1282.7C1844.06,1283.72 1844.93,1284.54 1846.01,1284.54L1948.34,1284.54C1949.41,1284.54 1950.29,1283.72 1950.29,1282.7L1950.29,1194.38Z",style:{fill:"rgb(132, 97, 51)"}},null)]),O("g",{transform:"matrix(1.2198,-0.704254,5.72043e-16,1.72488,-1697.6,37.2103)"},[O("path",{d:"M1950.29,1194.38C1950.29,1193.37 1949.41,1192.54 1948.34,1192.54L1846.01,1192.54C1844.93,1192.54 1844.06,1193.37 1844.06,1194.38L1844.06,1282.7C1844.06,1283.72 1844.93,1284.54 1846.01,1284.54L1948.34,1284.54C1949.41,1284.54 1950.29,1283.72 1950.29,1282.7L1950.29,1194.38Z",style:{fill:"rgb(196, 173, 142)"}},null)]),O("g",{transform:"matrix(0.707187,0.408295,9.06119e-17,1.54833,-733.949,683.612)"},[O("rect",{x:"1663.92",y:"-407.511",width:"143.183",height:"118.292",style:{fill:"rgb(240, 218, 183)"}},null)]),O("g",{transform:"matrix(1.64553,-0.950049,1.17482,0.678285,-1632.45,473.879)"},[O("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(253, 243, 228)"}},null)]),O("g",{transform:"matrix(0.74666,0.431085,2.3583e-17,0.135259,-816.63,57.1397)"},[O("rect",{x:"1663.92",y:"-407.511",width:"143.183",height:"118.292",style:{fill:"rgb(240, 218, 183)"}},null)]),O("g",{transform:"matrix(1.64553,-0.950049,1.17482,0.678285,-1632.45,473.879)"},[O("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(253, 243, 228)"}},null)]),O("g",{transform:"matrix(0.750082,0,0,0.750082,163.491,354.191)"},[O("g",{transform:"matrix(1.75943,-1.01581,1.75879e-16,0.632893,-2721.54,1876.43)"},[O("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)]),O("g",{transform:"matrix(0.290956,-0.167984,2.90849e-17,0.104661,69.4195,919.311)"},[O("path",{d:"M1950.29,1238.54C1950.29,1213.15 1944.73,1192.54 1937.88,1192.54L1856.47,1192.54C1849.62,1192.54 1844.06,1213.15 1844.06,1238.54C1844.06,1263.93 1849.62,1284.54 1856.47,1284.54L1937.88,1284.54C1944.73,1284.54 1950.29,1263.93 1950.29,1238.54Z",style:{fill:"rgb(132, 97, 51)"}},null)]),O("g",{transform:"matrix(0.262716,-0.151679,8.27418e-18,0.0364999,121.496,970.53)"},[O("path",{d:"M1950.29,1238.54C1950.29,1213.15 1948.14,1192.54 1945.5,1192.54L1848.85,1192.54C1846.2,1192.54 1844.06,1213.15 1844.06,1238.54C1844.06,1263.93 1846.2,1284.54 1848.85,1284.54L1945.5,1284.54C1948.14,1284.54 1950.29,1263.93 1950.29,1238.54Z",style:{fill:"rgb(246, 220, 185)"}},null)]),O("g",{transform:"matrix(1.77877,-1.02697,0.0581765,0.0335882,-425.293,1228.27)"},[O("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(240, 218, 183)"}},null)]),O("g",{transform:"matrix(0.0369741,0.021347,4.72735e-17,0.492225,456.143,919.985)"},[O("rect",{x:"1663.92",y:"-407.511",width:"143.183",height:"118.292",style:{fill:"rgb(240, 218, 183)"}},null)])]),O("g",{transform:"matrix(0.750082,0,0,0.750082,163.491,309.191)"},[O("g",{transform:"matrix(1.75943,-1.01581,1.75879e-16,0.632893,-2721.54,1876.43)"},[O("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)]),O("g",{transform:"matrix(0.290956,-0.167984,2.90849e-17,0.104661,69.4195,919.311)"},[O("path",{d:"M1950.29,1238.54C1950.29,1213.15 1944.73,1192.54 1937.88,1192.54L1856.47,1192.54C1849.62,1192.54 1844.06,1213.15 1844.06,1238.54C1844.06,1263.93 1849.62,1284.54 1856.47,1284.54L1937.88,1284.54C1944.73,1284.54 1950.29,1263.93 1950.29,1238.54Z",style:{fill:"rgb(132, 97, 51)"}},null)]),O("g",{transform:"matrix(0.262716,-0.151679,8.27418e-18,0.0364999,121.496,970.53)"},[O("path",{d:"M1950.29,1238.54C1950.29,1213.15 1948.14,1192.54 1945.5,1192.54L1848.85,1192.54C1846.2,1192.54 1844.06,1213.15 1844.06,1238.54C1844.06,1263.93 1846.2,1284.54 1848.85,1284.54L1945.5,1284.54C1948.14,1284.54 1950.29,1263.93 1950.29,1238.54Z",style:{fill:"rgb(246, 220, 185)"}},null)]),O("g",{transform:"matrix(1.77877,-1.02697,0.0581765,0.0335882,-425.293,1228.27)"},[O("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(240, 218, 183)"}},null)]),O("g",{transform:"matrix(0.0369741,0.021347,4.72735e-17,0.492225,456.143,919.985)"},[O("rect",{x:"1663.92",y:"-407.511",width:"143.183",height:"118.292",style:{fill:"rgb(240, 218, 183)"}},null)])]),O("g",{transform:"matrix(0.750082,0,0,0.750082,163.491,263.931)"},[O("g",{transform:"matrix(1.75943,-1.01581,1.75879e-16,0.632893,-2721.54,1876.43)"},[O("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)]),O("g",{transform:"matrix(0.290956,-0.167984,2.90849e-17,0.104661,69.4195,919.311)"},[O("path",{d:"M1950.29,1238.54C1950.29,1213.15 1944.73,1192.54 1937.88,1192.54L1856.47,1192.54C1849.62,1192.54 1844.06,1213.15 1844.06,1238.54C1844.06,1263.93 1849.62,1284.54 1856.47,1284.54L1937.88,1284.54C1944.73,1284.54 1950.29,1263.93 1950.29,1238.54Z",style:{fill:"rgb(132, 97, 51)"}},null)]),O("g",{transform:"matrix(0.262716,-0.151679,8.27418e-18,0.0364999,121.496,970.53)"},[O("path",{d:"M1950.29,1238.54C1950.29,1213.15 1948.14,1192.54 1945.5,1192.54L1848.85,1192.54C1846.2,1192.54 1844.06,1213.15 1844.06,1238.54C1844.06,1263.93 1846.2,1284.54 1848.85,1284.54L1945.5,1284.54C1948.14,1284.54 1950.29,1263.93 1950.29,1238.54Z",style:{fill:"rgb(246, 220, 185)"}},null)]),O("g",{transform:"matrix(1.77877,-1.02697,0.0581765,0.0335882,-425.293,1228.27)"},[O("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(240, 218, 183)"}},null)]),O("g",{transform:"matrix(0.0369741,0.021347,4.72735e-17,0.492225,456.143,919.985)"},[O("rect",{x:"1663.92",y:"-407.511",width:"143.183",height:"118.292",style:{fill:"rgb(240, 218, 183)"}},null)])]),O("path",{d:"M555.753,832.474L555.753,921.408L630.693,878.141L630.693,789.207L555.753,832.474Z",style:{fillOpacity:.1}},null),O("g",{transform:"matrix(0.750082,0,0,0.750082,236.431,272.852)"},[O("g",{transform:"matrix(1.64553,-0.950049,1.14552,0.661368,-1606.78,467.933)"},[O("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(253, 243, 228)"}},null)]),O("g",{transform:"matrix(1.54477,-0.891873,1.05847,0.611108,-1456.84,490.734)"},[O("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(132, 97, 51)"}},null)]),O("g",{transform:"matrix(1.27607,-0.736739,0.751435,0.433841,-970.952,617.519)"},[O("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(240, 218, 183)"}},null)]),O("g",{transform:"matrix(1.62765,-0.939723,1.42156e-16,0.5,-2476.81,1893.62)"},[O("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)]),O("g",{transform:"matrix(1.62765,-0.939723,1.42156e-16,0.5,-2476.81,1893.62)"},[O("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)]),O("g",{transform:"matrix(0.728038,0.420333,3.52595e-17,0.377589,-790.978,151.274)"},[O("rect",{x:"1663.92",y:"-407.511",width:"143.183",height:"118.292",style:{fill:"rgb(240, 218, 183)"}},null)]),O("g",{transform:"matrix(1.75943,-1.01581,1.75879e-16,0.632893,-2726.83,1873.38)"},[O("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)]),O("g",null,[O("g",{transform:"matrix(1.75943,-1.01581,1.75879e-16,0.632893,-2721.54,1876.43)"},[O("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)]),O("g",{transform:"matrix(0.290956,-0.167984,2.90849e-17,0.104661,69.4195,919.311)"},[O("path",{d:"M1950.29,1238.54C1950.29,1213.15 1944.73,1192.54 1937.88,1192.54L1856.47,1192.54C1849.62,1192.54 1844.06,1213.15 1844.06,1238.54C1844.06,1263.93 1849.62,1284.54 1856.47,1284.54L1937.88,1284.54C1944.73,1284.54 1950.29,1263.93 1950.29,1238.54Z",style:{fill:"rgb(132, 97, 51)"}},null)]),O("g",{transform:"matrix(0.262716,-0.151679,8.27418e-18,0.0364999,121.496,970.53)"},[O("path",{d:"M1950.29,1238.54C1950.29,1213.15 1948.14,1192.54 1945.5,1192.54L1848.85,1192.54C1846.2,1192.54 1844.06,1213.15 1844.06,1238.54C1844.06,1263.93 1846.2,1284.54 1848.85,1284.54L1945.5,1284.54C1948.14,1284.54 1950.29,1263.93 1950.29,1238.54Z",style:{fill:"rgb(246, 220, 185)"}},null)]),O("g",{transform:"matrix(1.77877,-1.02697,0.0581765,0.0335882,-425.293,1228.27)"},[O("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(240, 218, 183)"}},null)]),O("g",{transform:"matrix(0.0369741,0.021347,4.72735e-17,0.492225,456.143,919.985)"},[O("rect",{x:"1663.92",y:"-407.511",width:"143.183",height:"118.292",style:{fill:"rgb(240, 218, 183)"}},null)])])]),O("g",{transform:"matrix(1.62765,-0.939723,4.80984e-17,0.173913,-2468.81,2307.87)"},[O("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)])]),O("g",null,[O("g",{transform:"matrix(0.479077,0.276595,-0.564376,0.325843,598.357,-129.986)"},[O("path",{d:"M1776.14,1326C1776.14,1321.19 1772.15,1317.28 1767.24,1317.28L1684.37,1317.28C1679.46,1317.28 1675.47,1321.19 1675.47,1326L1675.47,1395.75C1675.47,1400.56 1679.46,1404.46 1684.37,1404.46L1767.24,1404.46C1772.15,1404.46 1776.14,1400.56 1776.14,1395.75L1776.14,1326Z",style:{fill:"white"}},null)]),O("g",{transform:"matrix(2.61622,0,0,2.61622,-2305.73,162.161)"},[O("g",{transform:"matrix(1.09915,-0.634597,1.26919,0.73277,-299.167,-62.4615)"},[O("ellipse",{cx:"412.719",cy:"770.575",rx:"6.303",ry:"5.459",style:{fill:"rgb(255, 125, 0)"}},null)]),O("g",{transform:"matrix(0.238212,-0.137532,0.178659,0.103149,875.064,207.93)"},[O("text",{x:"413.474px",y:"892.067px",style:{fontFamily:"NunitoSans-Bold, Nunito Sans",fontWeight:700,fontSize:41.569,fill:"white"}},[We("?")])])])])])])])])}}),Fje=Se({name:"ResultServerError",render(){return O("svg",{width:"100%",height:"100%",viewBox:"0 0 213 213",style:"fill-rule: evenodd; clip-rule: evenodd; stroke-linejoin: round; stroke-miterlimit: 2;"},[O("g",{transform:"matrix(1,0,0,1,-483.054,-445.448)"},[O("g",null,[O("g",{transform:"matrix(1,0,0,1,-463.699,-87.5516)"},[O("circle",{cx:"1053.23",cy:"639.477",r:"106.477",style:"fill: rgb(235, 238, 246);"},null)]),O("g",{transform:"matrix(0.384532,-0.222009,0.444019,0.256354,-0.569781,260.021)"},[O("path",{d:"M84.299,1269.38C84.299,1261.99 78.301,1256 70.913,1256L-56.874,1256C-64.261,1256 -70.259,1261.99 -70.259,1269.38L-70.259,1376.46C-70.259,1383.85 -64.261,1389.85 -56.874,1389.85L70.913,1389.85C78.301,1389.85 84.299,1383.85 84.299,1376.46L84.299,1269.38Z",style:"fill-opacity: 0.1;"},null)]),O("g",{transform:"matrix(0.384532,-0.222009,0.444019,0.256354,-0.569781,218.845)"},[O("path",{d:"M84.299,1269.38C84.299,1261.99 78.301,1256 70.913,1256L-56.874,1256C-64.261,1256 -70.259,1261.99 -70.259,1269.38L-70.259,1376.46C-70.259,1383.85 -64.261,1389.85 -56.874,1389.85L70.913,1389.85C78.301,1389.85 84.299,1383.85 84.299,1376.46L84.299,1269.38Z",style:"fill: rgb(64, 128, 255);"},null)]),O("g",{transform:"matrix(0.361496,-0.20871,0.41742,0.240997,34.7805,238.807)"},[O("path",{d:"M84.299,1269.38C84.299,1261.99 78.301,1256 70.913,1256L-56.874,1256C-64.261,1256 -70.259,1261.99 -70.259,1269.38L-70.259,1376.46C-70.259,1383.85 -64.261,1389.85 -56.874,1389.85L70.913,1389.85C78.301,1389.85 84.299,1383.85 84.299,1376.46L84.299,1269.38Z",style:"fill: rgb(0, 85, 255);"},null)]),O("g",{transform:"matrix(0.341853,-0.197369,0.394738,0.227902,64.9247,257.804)"},[O("path",{d:"M84.299,1269.38C84.299,1261.99 78.301,1256 70.913,1256L-56.874,1256C-64.261,1256 -70.259,1261.99 -70.259,1269.38L-70.259,1376.46C-70.259,1383.85 -64.261,1389.85 -56.874,1389.85L70.913,1389.85C78.301,1389.85 84.299,1383.85 84.299,1376.46L84.299,1269.38Z",style:"fill: rgb(29, 105, 255);"},null)]),O("g",{transform:"matrix(0.428916,0,0,0.428916,19.0588,329.956)"},[O("clipPath",{id:"_clip1"},[O("path",{d:"M1461.07,528.445C1461.07,530.876 1459.6,533.196 1456.6,534.928L1342.04,601.072C1335.41,604.896 1323.83,604.415 1316.18,600L1205.33,536C1201.14,533.585 1199,530.489 1199,527.555L1199,559.555C1199,562.489 1201.14,565.585 1205.33,568L1316.18,632C1323.83,636.415 1335.41,636.896 1342.04,633.072L1456.6,566.928C1459.6,565.196 1461.07,562.876 1461.07,560.445L1461.07,528.445Z"},null)]),O("g",{"clip-path":"url(#_clip1)"},[O("g",{transform:"matrix(2.33146,-0,-0,2.33146,1081.79,269.266)"},[O("use",{href:"#_Image2",x:"50.54",y:"112.301",width:"112.406px",height:"46.365px",transform:"matrix(0.99474,0,0,0.98649,0,0)"},null)])])]),O("g",{transform:"matrix(0.347769,0.200785,3.44852e-18,0.545466,52.0929,265.448)"},[O("path",{d:"M1480.33,34.813C1480.33,34.162 1479.7,33.634 1478.94,33.634L1396.27,33.634C1395.5,33.634 1394.88,34.162 1394.88,34.813C1394.88,35.464 1395.5,35.993 1396.27,35.993L1478.94,35.993C1479.7,35.993 1480.33,35.464 1480.33,34.813Z",style:"fill: white;"},null)]),O("g",{transform:"matrix(0.347769,0.200785,3.44852e-18,0.545466,52.0929,268.45)"},[O("path",{d:"M1480.33,34.813C1480.33,34.162 1479.7,33.634 1478.94,33.634L1396.27,33.634C1395.5,33.634 1394.88,34.162 1394.88,34.813C1394.88,35.464 1395.5,35.993 1396.27,35.993L1478.94,35.993C1479.7,35.993 1480.33,35.464 1480.33,34.813Z",style:"fill: white;"},null)]),O("g",{transform:"matrix(0.347769,0.200785,3.44852e-18,0.545466,52.0929,271.452)"},[O("path",{d:"M1480.33,34.813C1480.33,34.162 1479.7,33.634 1478.94,33.634L1396.27,33.634C1395.5,33.634 1394.88,34.162 1394.88,34.813C1394.88,35.464 1395.5,35.993 1396.27,35.993L1478.94,35.993C1479.7,35.993 1480.33,35.464 1480.33,34.813Z",style:"fill: white;"},null)]),O("g",{transform:"matrix(0.360289,-0.208013,-4.39887e-18,0.576941,37.5847,124.262)"},[O("rect",{x:"1621.2",y:"1370.57",width:"57.735",height:"5.947",style:"fill: rgb(106, 161, 255);"},null)]),O("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,307.505,420.796)"},[O("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),O("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,310.507,419.062)"},[O("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),O("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,313.509,417.329)"},[O("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: white;"},null)]),O("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,316.512,415.595)"},[O("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),O("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,319.514,413.862)"},[O("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),O("g",{transform:"matrix(0.384532,-0.222009,0.444019,0.256354,-0.569781,196.542)"},[O("clipPath",{id:"_clip3"},[O("path",{d:"M84.299,1269.38C84.299,1261.99 78.301,1256 70.913,1256L-56.874,1256C-64.261,1256 -70.259,1261.99 -70.259,1269.38L-70.259,1376.46C-70.259,1383.85 -64.261,1389.85 -56.874,1389.85L70.913,1389.85C78.301,1389.85 84.299,1383.85 84.299,1376.46L84.299,1269.38Z"},null)]),O("g",{"clip-path":"url(#_clip3)"},[O("g",{transform:"matrix(1.30028,1.12608,-2.25216,1.95042,68.2716,1030.07)"},[O("use",{href:"#_Image4",x:"50.54",y:"56.312",width:"112.406px",height:"64.897px",transform:"matrix(0.99474,0,0,0.998422,0,0)"},null)])])]),O("g",{transform:"matrix(0.361496,-0.20871,0.41742,0.240997,34.7805,216.764)"},[O("path",{d:"M84.299,1269.38C84.299,1261.99 78.301,1256 70.913,1256L-56.874,1256C-64.261,1256 -70.259,1261.99 -70.259,1269.38L-70.259,1376.46C-70.259,1383.85 -64.261,1389.85 -56.874,1389.85L70.913,1389.85C78.301,1389.85 84.299,1383.85 84.299,1376.46L84.299,1269.38Z",style:"fill: rgb(0, 85, 255);"},null)]),O("g",{transform:"matrix(0.341853,-0.197369,0.394738,0.227902,64.9247,235.762)"},[O("path",{d:"M84.299,1269.38C84.299,1261.99 78.301,1256 70.913,1256L-56.874,1256C-64.261,1256 -70.259,1261.99 -70.259,1269.38L-70.259,1376.46C-70.259,1383.85 -64.261,1389.85 -56.874,1389.85L70.913,1389.85C78.301,1389.85 84.299,1383.85 84.299,1376.46L84.299,1269.38Z",style:"fill: rgb(29, 105, 255);"},null)]),O("g",{transform:"matrix(0.428916,0,0,0.428916,19.0588,307.652)"},[O("clipPath",{id:"_clip5"},[O("path",{d:"M1461.07,528.445C1461.07,530.876 1459.6,533.196 1456.6,534.928L1342.04,601.072C1335.41,604.896 1323.83,604.415 1316.18,600L1205.33,536C1201.14,533.585 1199,530.489 1199,527.555L1199,559.555C1199,562.489 1201.14,565.585 1205.33,568L1316.18,632C1323.83,636.415 1335.41,636.896 1342.04,633.072L1456.6,566.928C1459.6,565.196 1461.07,562.876 1461.07,560.445L1461.07,528.445Z"},null)]),O("g",{"clip-path":"url(#_clip5)"},[O("g",{transform:"matrix(2.33146,-0,-0,2.33146,1081.79,321.266)"},[O("use",{href:"#_Image2",x:"50.54",y:"89.692",width:"112.406px",height:"46.365px",transform:"matrix(0.99474,0,0,0.98649,0,0)"},null)])])]),O("g",{transform:"matrix(0.347769,0.200785,3.44852e-18,0.545466,52.0929,243.144)"},[O("path",{d:"M1480.33,34.813C1480.33,34.162 1479.7,33.634 1478.94,33.634L1396.27,33.634C1395.5,33.634 1394.88,34.162 1394.88,34.813C1394.88,35.464 1395.5,35.993 1396.27,35.993L1478.94,35.993C1479.7,35.993 1480.33,35.464 1480.33,34.813Z",style:"fill: white;"},null)]),O("g",{transform:"matrix(0.347769,0.200785,3.44852e-18,0.545466,52.0929,246.146)"},[O("path",{d:"M1480.33,34.813C1480.33,34.162 1479.7,33.634 1478.94,33.634L1396.27,33.634C1395.5,33.634 1394.88,34.162 1394.88,34.813C1394.88,35.464 1395.5,35.993 1396.27,35.993L1478.94,35.993C1479.7,35.993 1480.33,35.464 1480.33,34.813Z",style:"fill: white;"},null)]),O("g",{transform:"matrix(0.347769,0.200785,3.44852e-18,0.545466,52.0929,249.149)"},[O("path",{d:"M1480.33,34.813C1480.33,34.162 1479.7,33.634 1478.94,33.634L1396.27,33.634C1395.5,33.634 1394.88,34.162 1394.88,34.813C1394.88,35.464 1395.5,35.993 1396.27,35.993L1478.94,35.993C1479.7,35.993 1480.33,35.464 1480.33,34.813Z",style:"fill: white;"},null)]),O("g",{transform:"matrix(0.360289,-0.208013,-4.39887e-18,0.576941,37.5847,101.958)"},[O("rect",{x:"1621.2",y:"1370.57",width:"57.735",height:"5.947",style:"fill: rgb(106, 161, 255);"},null)]),O("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,307.505,398.492)"},[O("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),O("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,310.507,396.759)"},[O("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: white;"},null)]),O("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,313.509,395.025)"},[O("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),O("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,316.512,393.292)"},[O("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),O("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,319.514,391.558)"},[O("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),O("g",{transform:"matrix(0.384532,-0.222009,0.444019,0.256354,-0.569781,171.832)"},[O("clipPath",{id:"_clip6"},[O("path",{d:"M84.299,1269.38C84.299,1261.99 78.301,1256 70.913,1256L-56.874,1256C-64.261,1256 -70.259,1261.99 -70.259,1269.38L-70.259,1376.46C-70.259,1383.85 -64.261,1389.85 -56.874,1389.85L70.913,1389.85C78.301,1389.85 84.299,1383.85 84.299,1376.46L84.299,1269.38Z"},null)]),O("g",{"clip-path":"url(#_clip6)"},[O("g",{transform:"matrix(1.30028,1.12608,-2.25216,1.95042,12.6215,1078.27)"},[O("use",{href:"#_Image7",x:"50.54",y:"31.563",width:"112.406px",height:"64.897px",transform:"matrix(0.99474,0,0,0.998422,0,0)"},null)])])]),O("g",{transform:"matrix(0.361496,-0.20871,0.41742,0.240997,34.7805,192.055)"},[O("path",{d:"M84.299,1269.38C84.299,1261.99 78.301,1256 70.913,1256L-56.874,1256C-64.261,1256 -70.259,1261.99 -70.259,1269.38L-70.259,1376.46C-70.259,1383.85 -64.261,1389.85 -56.874,1389.85L70.913,1389.85C78.301,1389.85 84.299,1383.85 84.299,1376.46L84.299,1269.38Z",style:"fill: rgb(0, 85, 255);"},null)]),O("g",{transform:"matrix(0.341853,-0.197369,0.394738,0.227902,64.9247,211.052)"},[O("path",{d:"M84.299,1269.38C84.299,1261.99 78.301,1256 70.913,1256L-56.874,1256C-64.261,1256 -70.259,1261.99 -70.259,1269.38L-70.259,1376.46C-70.259,1383.85 -64.261,1389.85 -56.874,1389.85L70.913,1389.85C78.301,1389.85 84.299,1383.85 84.299,1376.46L84.299,1269.38Z",style:"fill: rgb(29, 105, 255);"},null)]),O("g",{transform:"matrix(0.428916,0,0,0.428916,19.0588,282.943)"},[O("clipPath",{id:"_clip8"},[O("path",{d:"M1461.07,528.445C1461.07,530.876 1459.6,533.196 1456.6,534.928L1342.04,601.072C1335.41,604.896 1323.83,604.415 1316.18,600L1205.33,536C1201.14,533.585 1199,530.489 1199,527.555L1199,559.555C1199,562.489 1201.14,565.585 1205.33,568L1316.18,632C1323.83,636.415 1335.41,636.896 1342.04,633.072L1456.6,566.928C1459.6,565.196 1461.07,562.876 1461.07,560.445L1461.07,528.445Z"},null)]),O("g",{"clip-path":"url(#_clip8)"},[O("g",{transform:"matrix(2.33146,-0,-0,2.33146,1081.79,378.876)"},[O("use",{href:"#_Image2",x:"50.54",y:"64.644",width:"112.406px",height:"46.365px",transform:"matrix(0.99474,0,0,0.98649,0,0)"},null)])])]),O("g",{transform:"matrix(0.347769,0.200785,3.44852e-18,0.545466,52.0929,218.434)"},[O("path",{d:"M1480.33,34.813C1480.33,34.162 1479.7,33.634 1478.94,33.634L1396.27,33.634C1395.5,33.634 1394.88,34.162 1394.88,34.813C1394.88,35.464 1395.5,35.993 1396.27,35.993L1478.94,35.993C1479.7,35.993 1480.33,35.464 1480.33,34.813Z",style:"fill: white;"},null)]),O("g",{transform:"matrix(0.347769,0.200785,3.44852e-18,0.545466,52.0929,221.437)"},[O("path",{d:"M1480.33,34.813C1480.33,34.162 1479.7,33.634 1478.94,33.634L1396.27,33.634C1395.5,33.634 1394.88,34.162 1394.88,34.813C1394.88,35.464 1395.5,35.993 1396.27,35.993L1478.94,35.993C1479.7,35.993 1480.33,35.464 1480.33,34.813Z",style:"fill: white;"},null)]),O("g",{transform:"matrix(0.347769,0.200785,3.44852e-18,0.545466,52.0929,224.439)"},[O("path",{d:"M1480.33,34.813C1480.33,34.162 1479.7,33.634 1478.94,33.634L1396.27,33.634C1395.5,33.634 1394.88,34.162 1394.88,34.813C1394.88,35.464 1395.5,35.993 1396.27,35.993L1478.94,35.993C1479.7,35.993 1480.33,35.464 1480.33,34.813Z",style:"fill: white;"},null)]),O("g",{transform:"matrix(0.360289,-0.208013,-4.39887e-18,0.576941,37.5847,77.2484)"},[O("rect",{x:"1621.2",y:"1370.57",width:"57.735",height:"5.947",style:"fill: rgb(106, 161, 255);"},null)]),O("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,307.505,373.782)"},[O("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: white;"},null)]),O("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,310.507,372.049)"},[O("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),O("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,313.509,370.316)"},[O("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),O("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,316.512,368.582)"},[O("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),O("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,319.514,366.849)"},[O("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),O("g",{transform:"matrix(0.365442,-0.210988,0.421976,0.243628,28.7259,185.45)"},[O("clipPath",{id:"_clip9"},[O("path",{d:"M84.299,1269.38C84.299,1261.99 78.301,1256 70.913,1256L-56.874,1256C-64.261,1256 -70.259,1261.99 -70.259,1269.38L-70.259,1376.46C-70.259,1383.85 -64.261,1389.85 -56.874,1389.85L70.913,1389.85C78.301,1389.85 84.299,1383.85 84.299,1376.46L84.299,1269.38Z"},null)]),O("g",{"clip-path":"url(#_clip9)"},[O("g",{transform:"matrix(1.36821,1.1849,-2.36981,2.05231,5.46929,1071.93)"},[O("use",{href:"#_Image10",x:"53.151",y:"30.14",width:"106.825px",height:"61.676px",transform:"matrix(0.998367,0,0,0.994768,0,0)"},null)])])]),O("g",{transform:"matrix(0.365442,-0.210988,0.421976,0.243628,28.7259,183.729)"},[O("path",{d:"M84.299,1269.38C84.299,1261.99 78.301,1256 70.913,1256L-56.874,1256C-64.261,1256 -70.259,1261.99 -70.259,1269.38L-70.259,1376.46C-70.259,1383.85 -64.261,1389.85 -56.874,1389.85L70.913,1389.85C78.301,1389.85 84.299,1383.85 84.299,1376.46L84.299,1269.38Z",style:'fill: url("#_Linear11");'},null)]),O("g",{transform:"matrix(0.407622,0,0,0.407622,47.38,278)"},[O("clipPath",{id:"_clip12"},[O("path",{d:"M1461.07,554.317C1461.07,556.747 1459.6,559.067 1456.6,560.8L1342.04,626.943C1335.41,630.767 1323.83,630.287 1316.18,625.871L1205.33,561.871C1201.14,559.456 1199,556.361 1199,553.426L1199,559.555C1199,562.489 1201.14,565.585 1205.33,568L1316.18,632C1323.83,636.415 1335.41,636.896 1342.04,633.072L1456.6,566.928C1459.6,565.196 1461.07,562.876 1461.07,560.445L1461.07,554.317Z"},null)]),O("g",{"clip-path":"url(#_clip12)"},[O("g",{transform:"matrix(2.45325,-0,-0,2.45325,1068.82,410.793)"},[O("use",{href:"#_Image13",x:"53.151",y:"58.978",width:"106.825px",height:"33.517px",transform:"matrix(0.998367,0,0,0.985808,0,0)"},null)])])]),O("g",{transform:"matrix(0.371452,-0.214458,2.38096e-17,0.495269,-19.3677,248.256)"},[O("clipPath",{id:"_clip14"},[O("path",{d:"M1776.14,1326C1776.14,1321.19 1772.23,1317.28 1767.42,1317.28L1684.19,1317.28C1679.38,1317.28 1675.47,1321.19 1675.47,1326L1675.47,1395.75C1675.47,1400.56 1679.38,1404.46 1684.19,1404.46L1767.42,1404.46C1772.23,1404.46 1776.14,1400.56 1776.14,1395.75L1776.14,1326Z"},null)]),O("g",{"clip-path":"url(#_clip14)"},[O("g",{transform:"matrix(2.69214,1.16573,-1.29422e-16,2.0191,1352.59,983.841)"},[O("use",{href:"#_Image15",x:"121.882",y:"76.034",width:"37.393px",height:"61.803px",transform:"matrix(0.984021,0,0,0.996825,0,0)"},null)])])]),O("g",{transform:"matrix(0.371452,-0.214458,2.38096e-17,0.495269,-15.0786,249.972)"},[O("path",{d:"M1776.14,1326C1776.14,1321.19 1772.23,1317.28 1767.42,1317.28L1684.19,1317.28C1679.38,1317.28 1675.47,1321.19 1675.47,1326L1675.47,1395.75C1675.47,1400.56 1679.38,1404.46 1684.19,1404.46L1767.42,1404.46C1772.23,1404.46 1776.14,1400.56 1776.14,1395.75L1776.14,1326Z",style:"fill: white; stop-opacity: 0.9;"},null)]),O("g",{transform:"matrix(0.220199,-0.127132,1.41145e-17,0.293599,339.708,327.53)"},[O("path",{d:"M1306.5,1286.73C1307.09,1285.72 1308.6,1285.48 1310.36,1286.12C1312.13,1286.76 1313.84,1288.16 1314.73,1289.7C1326.44,1309.98 1355.4,1360.15 1363.73,1374.57C1364.33,1375.61 1364.49,1376.61 1364.18,1377.35C1363.87,1378.09 1363.11,1378.5 1362.07,1378.5C1346.41,1378.5 1288.17,1378.5 1264.07,1378.5C1262.42,1378.5 1260.37,1377.48 1258.9,1375.94C1257.44,1374.41 1256.88,1372.67 1257.5,1371.6C1268.1,1353.25 1296.8,1303.53 1306.5,1286.73Z"},null)]),O("g",{transform:"matrix(0.254264,-0.1468,1.22235e-17,0.254264,329.57,364.144)"},[O("text",{x:"1170.88px",y:"1451.42px",style:'font-family: NunitoSans-Bold, "Nunito Sans"; font-weight: 700; font-size: 41.569px; fill: white; fill-opacity: 0.9;'},[We("!")])])])]),O("defs",null,[O("image",{id:"_Image2",width:"113px",height:"47px",href:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHEAAAAvCAYAAADU+iVXAAAACXBIWXMAAA7EAAAOxAGVKw4bAAABVUlEQVR4nO2aQRKCMAxFxUN4O+9/DNw4CoiTliZN8vPfQlm00ykvP3aQ5fFc11sjy/L+/nx8r3ffm7Fn845jz+aJa23XOJvfs9Zh7NBawv3YrSGtdbj+x10egkFzpRrNt+SSxMgbqkiZJCJDiQDoSmSfdYFJ3JD18GMmcXhDTHUzNZIIXhA1JIJDib0MptqiKbhKzHqQiAaT6IlSFVIiAJQIACUGpLfLhpfIw49Ml8T2v4/JTPySyIJQI3w7JTIYEp2fong3FXWJ3huqCEYSNUlYhZRoyaSCoEQAKHESlqF0kZj9NBgNJhEASgSAEgNx9WfCTmLxpygzYRIBmCORsTIlXxJZED/kk0h+KC1x9E2FKG86qEkMsh8/HG9A6SSGYqAIKDEinUIpUSDDYXiqxAw3JCNMIgDXJTIWYdBJIvukK2ynARit4XASUZ6izCScRFWKCH0BfLM84oTw1Z8AAAAASUVORK5CYII="},null),O("image",{id:"_Image4",width:"113px",height:"65px",href:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHEAAABBCAYAAADmBEt9AAAACXBIWXMAAA7EAAAOxAGVKw4bAAASeElEQVR4nN2d6ZbcNpKFL5cs9UN1W5bntWxr6XmsWTzLQ7mSJDA/gh/iApWyLalUy+AcnypVJkEAsd24EaQn/T8Yb9+XKknrOuk4pOM4tCyLpkkqpWpZJu170TzPKqVoWWZJUq3Sbx+m6VkX/wjjVW/gH7/sdZ5nTacc5lkqJT6rtWqaJtVaVUrRNE26XGbd3+9alkW1Vi3LrFKq/uvj/KrP4dUu/t3HWkupmuepWVspIcjrddc8z1qWWcdRTusLwc3z3Cz1OA5dLouOo+o4Dv3vv15e5Xm8ukX//eetTtOkdV20bWFVkrQsk+ZZOo74Xq3SNMVPqXextYal1lq1rrNqlfb90LrGXP/5/nW52Fez2B8/1FpPiSxLLLsUaV2lfZdKiZiHkHCtuFWPj/73cvpfLDQseNJxvB43++IX+cOvR5WkZQkBbdsh4uCySNtWWkxEuLVKx1HOuLecFjdp3/NnWiYKUbSuAXiOIwR8HIf+55/riz+jF73Anz7VWkq4RSkEI+m0Fun+ftflsra/r+usfY/fATVY3DzP2ratCe3Nm7UhWawv3KzO69PtllJetDBf5MJ++hRHWWu4QCkOm1h4HH2agJuVpHme2ufHUXS5zLpeQ1B8Ns9zu2ZdU3gAJdwxFh3zxjUv0cW+qAX9+KFWhMV/Urg6kCUWcxzpRvlsmno3ehwBVhDKcWRMZQ6uQ4D7HsgI1MrcDIT/koT5IhaC28T17fuudV0bWAmhTJ0QpN56ti1cq4MXSR1wiWv6+ChJ12ukGpJaunG5rJpnad9rm+NyWVRKgqiXQhQ8+yI87pEicDQIRApAg3US60gvPPYhbBceqYTH17DEo8VLSVqWTFGmKdKOZVm0LDKlqIaEQ+GeO798tpu/fV/qPE+nCwwLiwNVi1FhCaUJIFxbury7uxAiwrled0k6Dz6F78J2FgcBk2qs66J9T/QrpRt2MoH7RX6ZXuO/Py3Pcp5PftMffj0qdBeHF4AlXJwU4ETSGavUMSsAD1AlqYDHvut1P61y6QRPMg/g2bbSudnJvCNCgmsFQKEE8Z2p+1x6Hi72SW/47mPk6/u+txwNa4vfpw4hYi3Lok7AHBiHCfjArTr6ZE4Sfr+W+aVAqQgVpUCJJBQq1kas7FFxAqTLZdK//fx0wnySG/3LP2sl1uEKU4uX9r1Siu7uliYwhHwctR0y1zmz4gwO80gp3OM4dHe3NqIAy3R36kjX4yvVj31P4OR0HYJluPVOk/Qfv35/YX7XG/z4IVSVQ8d11lp1ucydsNxlLsukbQth4zLnWQ8sA85zWZYm7LCiiFEp7J6O477rOul6TU5VUpdHjgJmL4QDKiGxzmSP3OqJ8d+Tj/0uE//w61EBI57jSWldUk+hxWc9OR1Wk+4WYWNNaD2jlNKsxdMOEnZJ7dC3bTcFmZpQSimNzXHl81ok7tndvAOlW8KXvl9u+eiTAlyoIozuB4DhrAt/w6qkdL3kb1Jymli0xzSH/Vi153QcLqmJX0t6c70erTqyrusfKhPEggOjmGvqANAIxNZ10r//8rhW+WiTkTI4iCDuOGAZ+U8osXWddH+/twMn5iEIeFEswasRkroir49l4cDVhM/Bcshc44LwCkcKZD6tfW75JHN6jRJlQnld+NzzOB4vJfnmSd59rHWMTwEkFh3HeDBxDVaIwB1JjlxofhZCj0pG7bQ9508rIH+bJq6JU/eaYsybaczd3dJVRXCZpajVLhEMua2j5VueIeZxAqNXnlrrNwvzqy/+6VP1s+6Sdnpd/LAYxJ1lWbTv+2mpc8ekeOz5XJINkPEknbSABN/dIfFrniddr9uZm65tPudsGS4gLyqzX9ZTSgIq9iipoWfQKyGm1qyDxn2+DcV+1YU/faqVxbEZL8Iy3AURV0Z2Bgjv8aPW2iyJgbDcejk4YiCQnwEH6gpGuuHxknV5GAApe+rhjBIM0Zs362dJAwTM2uNzNWAnPQRtX1Py+qILEJ4kXS6Tfv89ER6D2ITLjEPpSWjiCL8DXvhezrO0eIhuJILNQ6IqUUqS2lJAfikQKWi01tq5enJBXKQn/SiK57LO3XrvDvdxZgfSAC+xbXvjat3K2a+fyZe42L/0RfI94sO+H11S7ptzwDFCbQcKHuTTitVZhR+g/x13u+/HGaPWJtBucwZOGNQXmddjl9cYr9fjjIlzQ6EolO9vjIHM4Yo65o6+L1CuK76j2b+SlvzhF959rBWEySY9r/IWBxeapJsxgs9gP9y6cHlj99q+9zwow8tRzIFr4l4jqHJkPOaAzOFzOnjy3z3ZZw73HJwRQM/PZZzLz5bwdH+/6e7ucirDnxeiP/shqPN63U1rMo5J6nI/YgiaD9IbUahX19mwI1dHp+6SRvDgBzIWbaHvIu7VB4dIHCwly09es8TF46JZH6AJl4i18H2KyMuS83tbpSvXuk4nKs70ybGBnwWe4XPx8sEf//7zVtd17YAKNJgjPrSNSjqCy5bBjBmx+FyUC5IxghyPM1w75nMIxF0v6yVmjqzQmJT7YaKYYdUJtCQ1ZaKjwNMPZ4ig+dwlxv6mdi2CJm0ZvYafnYcg1jNWSto/3r4v9ZZms/HRlTjKQ0ggMQcCXhPctiwZObr0+7iC8D0npEHCgBuGu0f+/ebN2oTh1ZFQjhAUwvBiMMriB+kpTwi1z1P9++wF0OSAB4HggpkDz+WKFF6uV2z3fljm5IgTM0ZjRqQ2ukKPDSzO3aa7orHhyGONI8FsR8wD8Prfus5dh/donX4PDjYtZ+q8ixecHUl6l/jIf8LYcOC33Dnu2lOQEEAqsKPymPchNnDBj/2yDnwmmnK9h2WEzLhWhifcnvDimm5B5xH0eFwZEah/lw2wMdryuX6sMKTVBnrl87E7oFZ1uagDHPZIDuzC2/eoF+57368z5pPUTDGMUaHhjdnPSNXhacbvO4BrBoNWQEthUQ7NXSNCcHHQYSnxtzjgZFxG7eU+6S5n0856WmJfaOXacKHTef/ZWJ4ERB4BYv0xN4IJ96fu4CC5Y/299W7b3pRx33cdx9GUwKszpFnpVQL8ZQpTT4XILvTLJWuRtVZdLuvpcY4GchAg3wnsQdf7fLJiZ7nucoleTvpViEfRbLurlKJ9P0R9zjcQ2l5PTcxDpIgaLjc/QFvRqlLKqWW90gSY6asBbNoJ5/QYcd3lMneQnYNIIAQhjkLoTAVK21+eQWrF5bI2yO9rZB8BpNxT8GwITExt3kuKpmcPJft+nCEj8QHnOU2TLpelU7JQdhR60gzHSWCPw4kvRNse6Cpb58NNhN/3+MXNp4lmpfk8uIxzjiyzWiCt63JuPONcBPjpVCSaoJhrOQ+otPgUrj3dZ+ynnGWp0lkTQMsbo6KaklYFmYBFuXsOoKS2/rT+uSl74Ae8SQhynjPnDYusZwpVTmFmTJXCC4T7zHXFd0u754zv9aQ6hJDawE1i0nrGtNHNzp3Gx3dDMwJKT6ebqJ2WpSstLb5SPkLYcbhrs66Ma7W7p1sdG5+mqeV2d3f5eFsp0UcKp5nxWuf9lnbYXjCutbbQwz7dK3C4t/7tqBdwlLhj7lgkUheUi/RlXRMLtNDkQuDQ2EwejE6Txh0Gyrpe9xYj0MrrdWtaFDeSKcbcDrBPvp2P7BXBlQPrgtlY16nrYNu2ox22K1Ek7rV5m5hD5uZAxulmM16lN7hcLlpXd9mJavEarBe37fGbGOasUn/mx2mpkPJHM6DoWCgNaHEPSZoxSQIrpr8sKcTQjocVgiAFKPMEyPnb3y7NbXiciU7qkTlJITT/PmM5STaQNzn4Oo6qbStdyoOg2XgSErWzOD+MzHOnM/bXbn2wOl4uC1DUK7S7PI/5/MTL8W/iIvdGwblH/7SXt3hSgMjcc/7twzQFsKhnHOu7zxws3mIWvM/kONRATghy7jbM4XBAaDNaz+/ExQQ2vav0DjMs7+5ubRZfStWbN+tpFRmTwhVu56GGJUfYANpHQTs9TD1jYW3MET2trCNqolCEEXe3bX8Q23wsy3KS9tNZ2chqTICsuB8MkbNEefY6UfCUjA09oeR+TjPBRDhMJj/yZHesQLjvHvnDyHcOcz+525HKg3DgQBB23BNSvafFXPHCivdWe/T0BCKBkEDO5wfrMZ690k7iBLfv2+/Nnih3ZZqVzV6eQ2ca1VOfyAVlpYPuAXf6w69HRTDOSUJ1OUODK4VJyUCftUQqERRnnTz3p47CctON4Ipo9/BnIjzPQ3mc2+WQ6d9hH5DiHJz37XDIsf5UNhTTFQY35uuE4QqFedgoxVhX6f4+FS7z2KPjSsdaLGSF9Afc6Tho+B0tKm6Q7A6jTzN6rXRqzVGVL9gZDRTBm4wkDe0cbm09COO7zsZwyM6lIhj3QOMenT1yxiisI1MtUD50JHO612B/sz04RGbg/UCu3G6lnytJfVaIDIhxKUtPvmkHFH6QuLVbLfmOEhGCF0bd/2MJY/u+Wyqbj8/yIFAsn+9WYXp0b27NiQbVXR/INSx726L+xx5w3azLH/Rx78Y8biBO03nnwB/VFP9UiFI+N4/b+1wNzA8AV0Tux8K8y8sJdCeV4T1HlwPmwn07F+oCxI17DB3LQAyvdXa51/A01Gjld3fe/9P3lUaumUqO1/E+G+ZBuM6fEo+lv9Zw/JeEyHj7vtSE6KW5tlhYDwhwB+5SvGDsKYs3XAVK7J+7cMDi7i0P0d9Tk4/Lcf3Y+uCIGqGS81FZGEEE8SnnDJxwf7+1RN2TeI+3faGgXzfM0RiyvqRb/IuEyPAne/0gvGbn8XAM0qNFjMjSEaWDFag7Ns3fYo5wYR5fODzosh6mZ58se0iXP3VKABd8qyls7FCgQoM38aIwrvXubhXPjYT1hiAvl+WrWhe/SoiMdx9r3ba9FYcdsPATq0MLSV04SEeCoE93yxyAIzxHjMsy6XpNAQaAWdr3cYNYqb/ACEXyZzWSe+1flcKAfPBWjFt9SCPwGoGUdyIg/K99Q8c3CVFK4DPmiuNz8xRzqbGND7k4MMFyvJHJEWBel+4JZcLaoarI/WLusWUkrdJDgIMdVybAjyNp0iLQqgvM+2K5npqkM1ff+qDNNwuRwZNQkiO51OQR+IyFUM+r+mfk+2Ymb5kYXVm3MQMitxDo+HQVa/Jiredmjh79+35fqvUoknce4GkgSEopj/as/6MJkfH2faluhYAF75qT+ke66TDzxByXOLpD4qbnpWPq4vkWvUDjsxOOHhGw9w8FNTbdtGLefeO4AKtjnW6hxHvW+tiPhD+6EBkgWafi0NxMqLMxV1JzO/nSvRDMSGUx3NW5sBwZ8293Y2Mvq6PbsbKQCHlurNDIEI05rOefTliU8n3eTPXdhCipPXQDqPEOs/FgsB7i3mGMgLfCe46aaDIZfY9rntLwaJv0UHnGFAIheC+QP3rnDE78VKsNEoOdTqz1+76Q4bsKkfHjh3z8jYP2eIF78u4zb8N482bV/X0++CllY7ET0t7z6k1bWA6oOL4TPz2mpkt/yBG7O7/VsXeLbXqqF/w9iRAZvCk4qyL9YUk9HUZMcsAwHhYgyHNCrMU5Tql3dQjM06Jb77FhjZ97xM4JArzIND3tO1OfVIgM3tntVsWIikc0JXkJa3y2A+33vM+tydkbKd359Rrm+rlccryPs0kjIxPr7b2HpCd/KdGzCFGKlCRLTA9fTuSVhs/1nYIo/ZAdaY6v9fL6IDVLYh41O3JcrIoOB2I3aQgx1K99ited3BrPJkSGv0k/QU1SXaBIJwPGOOYpRyLTqfs+sdObgD1l8WqL1yoldUwQXgHhS8//xsVnFyLjxw+13mJn/O1Okk5O9eGrouuNup2/+MgRqZeaHAzxXQTtL2tAOUh7njru/dG40QHyPOO3D9ME6EGAPUUWLvH337cmJBJorwyEi0xrTlaIZuVDNCtfr4fot6EXKB9Xyw6+7FxLxXopApRekCX6ePexVtzc+MZhSc1KnEgAzUpZb/SHVp3IdvLZLXPsOhgrM4/Bc36P8eIW5IP/9wWW5+S354hSz6z4+25IJ2BzmCuuiZ+AFn9x4EiKv5QX1N4aL3ZhPqDwvN/H63vENqe6kgbrCXAHObcq+k504w1eovX5eNGL8/GPX4KJBpXi4oh/lLrGd7tRdIUsx7L89SjEv/EFuS9deIxXsUgf8LF9p3a+o3TsO3UOk1eQSLQY5iulqXpIz58yfOl4VYv14awPeZ0XpEnE+Y7Hwuw4ry33k16f8BivctE+/H8/5IBkfLmfv2Wf3NIF/ZKBy5+NV7twH2OVRPJH1fp3vsG0IMTnevn6Y47/AxX1K5XSf237AAAAAElFTkSuQmCC"},null),O("image",{id:"_Image7",width:"113px",height:"65px",href:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHEAAABBCAYAAADmBEt9AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAMrklEQVR4nOVdW2LbNhAcUD5Xkl4scXqxpr0XiX7AQwwGu7Rj2RLV7o8lknjtc3YBygX/Afr2XOu2bQCAZVkAALVWlFJQClAr9mvLUrBt7R4A/Hp++fDA9NAL+PpjqwBQSkF9kVQkOBIFx2vLUlDr4wvyYSf/7blJghanglFLc9q2DZfLgnXddqvl9X/+vDwkPx5u0l9/bFWtTf+q8Hidwt22DaWUXYCtj3H5bPNolvkwk2Xc05hHcjep1yk8Fy4tksSmfH5ZCv768RjCPP0k3W3ysxKFtSwLaq0vAGYZXC2vtefHmKn9Lkv7TKt+BKs89QT/+FnrtnVECYwghuRukfcpOL1N4fgzrZ/umgHsbvfsVnnKiX35vlYFHUpMJQAMwMQtqpSCdV3x9HTBujbXSUUAZmVQa876A84ZL081oS/f1+qAQwGLusx+vz/rSNUtbk5FZvccpSuOdmut+PvnchrenWIidJvAKJRIaPpZY6B+Z/6nAlBrisjjp4KezKWfRZB3n8QfP2tlKuBWAHS0SMZqOFSAwu+R1QA9sVdhupA5riNapUjY946Xdxv823OtHnfIFGp+lv+pZSiaZH/e1gVIlmseCXRBk1SBFO26i6fA7xUvbz4oS2UABoaua699ZjFK25CJ/NzajukBgMmNerzUNuyD1Rw2U6XR/ihAzhu4D/C56YDM+QAMDMqScrUiYMzjiDjVmjT2aTLvlhtZLeOvI9RufWWyRCUt9906Xt5kIFpf5uaUKarlR0jUy2p+X2Nh62+2bi3faaxz1JoBInf1nr/WWm9Sj/3UAb7+2KrHo6hC4gJ0kAOMwMSf0RwwSgu8isNrDpSU1KIVBY9zX+Rz9xAaP3n/My3zUzrWOqdbhLpGPqMuFMhjkGu8pxZRKuE5H0ljYFaC0z60b8ZNutllAbatC1PdcxurPftZgvzwTnWDFuhJdSlzHFOozudGsHBsxeMYc5xiHxm6jdyx11mVojHVkt2zaJ/6+aOF+WGdffm+7hu0zrB9sCC2ULiRNUUF6fa5l9H0GjCX4nRsF9BRPsj2kVC8fyofx88KC5/lYq/uhPt7zni6FFoetZaCjQU2okPgWBBqtXrfXbczmP2qmz7a5oqAVwR6Mkv1Zz3eXpuWvLux7jBwog7bIyKTNaboEjQ+7ZMUl+RQnvdVYTKE6S48AiD6LOepwMmVTfs6Qsw+P1/XNVb5roaa7wFjzIqAgloHidaoRyUiVOruz9MOIE4ZpoVapcfben9ODpAyC9M+dc1UWmCuDGnb9wjztxqo65wXNqcNUVDXeBmdc4kWqsKLQBL78zIcx6U71aMZfa6xW86uOeKOarU6R3fZ6n2y3Bj4vcrPmx789lyrx7QsH9OFXC4F6xqnGBHo0aqJCihzpa+hV33OEWpk/ZGFkJWeh0YVI953ZSU+UIGyzeVSQDDvHgF4m2UePsAiNRmoNUXX9NcOIDkTyJhs0R782/PxZzLAtZ3XNYXxeKhMzRivfbW1XlKX/1oakn3XsVyxXtslSW+q61QNjayv1oqnp+VlMnGVxRnnwEKFQAaocFQx9BkHPWSIV1OyfUUfb2KQeRnPL13wJHWrkedyZY3auSfKrHK6mIEW7YyTd2txbVbw0vuL9/1GxvXPtG510W3xs6X4wtXyiJo9Trml6jo1vqqCaHvOVcd1AWdgz/FFBu6cTx4v9y9R3BsZO2uPCkM1Xl1vhvwi16j967PKKP0cxTMFFC4k9umxl8r2lvlmTPa4TXIBet+RG414wvbqrVhcL9xZ10Hcuo6OO0QD8/MoiNnqdIKZ4pB8AY4ql4VKNQ0zzU3XGrlgjdk6F80ds3VxHd6vto3G8fyTc4x2ftimlLYRXfx9Bg/+RxoRAYMIYUX3IxfdJz6fOHPGt+8Yis9jSjDHnAzRcj56cDg686NziEALKQNdLhQKg89oKVHvR25+2BPVCXECOvkuVGWyl7fmZF7jUCljfNB2nem8P277aIzhuG0BdJ0ag0bm6PEKlQX7dNR6uSwTCGLb7gEU0I0xMFJQzoHt13Xb16BEdE8Z1NpPOyiPW1/kbVOUJy6+MaUMGuaW1jvE3hlJNYptIhfZJ6CId0aL/XhEmdqy7yjuRrlnmz+ZU3amKVCJ5sO+lZlRESFCvbyuSuHgiXzkGN3tLnt7kuIN9zBPFIpqfktkL4NAI4TlVRXVDk6ScYBMIXEBbMt9RUd8ruVdaGXoT4Wsa1ENZ36nCkjk7IwZ4/Wcv+l1pVHZ66R4kZtuAtKxxudU4I7qSylYdHK8p9pNBvRFjh3rgtpkutvRwTtYKnJPraYrQ3OF82I5R3V1zlB3b02Rln1MjtUtYi4ucA0zSi7Wd//chD4K0EOClyL7sx2YqWA7Nhnz4a7kbdyFDSh9jxMx7MYuMHdZFAQnNrYru4A4MQBD+SqD8XroieMrc3Ujms9qfFXLJwP6urcpduv8KVi9766xucMYuLkSjC61DoqrMX/Mr0fF7Ir24k5ZBxy1I/bxbn1uGRHkBub9ui60Lnx+VjfJ/hXWKyR3N6fITZmpcZ9/+wszfc9ThcM41ePQnMwreFJBUYk0DXIBdtc5sGxYp7r+plTtu26PLb+eS9Fis1pes6hZc2gFZEhHq8s+GLWTWtMtaazAaL9kJEmhvgZ7R6M9PleJf8uLhVe48ilq1O+cqwqBHqqHmrIrjzJdleNy6crl6+acPZy4B+S6xnl2DzEAOH7gyywKWrzyoaiwI7h8OyY6/qBWM2rtnJvRerLjGGOs7Qm0H0T2Z9RiIytRiqzHrU7bRWiXbfnXT+dpH17A8KOd6g32io1PmoVvAFjX1VxbXAgYAUpvq2hQ6WhfLXc5M9DxcSOXFjGabfW6CjUqcGTz8XU3IY3u1wERkKc4vn72rWN6IXxWvRfSQngWrFWjfTG+aPZ2lFtFWsrJ6zjqLbQUxTFG1DimGmq97hK1LRALVj2HMz1atyuok3o8XU+0qZ5tFKdCJOm7EzqZyGqUGdGiIgaxjbpMzS3VYltfnEd3tRq7FOFqnOHzylivZWZzzcKB3su8hc5TQ4saQOQu3WCOdvpfFSLQD0VlKCsThPrvvtjxJRqPmd6nMydihraL4mAkkGynnVbrrjD6q3OLGD8x+6AvnyObv+W1uTcJkcSd/sjslZFR3Iqq+srQ6Liiotr2fY4vc/yMT75pm+hsaCk9pXDhZ3E5U+bIUx3FPi+8v2U3X+m3hEji9pW6uKOJRxpHxmg88A1gXfDR+ZouiDnuaLw8iu0TY4LrPjb78L5UOTxsRHxQPr3nDOq7hEjyHwaKDjpFsTJzJZGL3Cdaeo7Fw1fRM1FKQWUBxkIC73Hu0Y8zeExrfcRbVUcuNVN4Heu9h4ivEiLQUawDhkAOALRgsEzxTZ9xrScz94kbkFGA47sb6g5Lab+q0Sw9Pi7ZxxjzP68kqTVyHvxOPmTHULgPClz/YurVQiTpu/fDAAkQcMa6Fkcbq15XVQFGxwd53wGIx0udBxAXFzxdorJkz+kcVMBt7e3vR73r/2FCJPm7GRkgIJGpwJhAq9D8tJ3qicdHLbpHqNaF6CAt3hQe88kIWPn61KXrXwAf/uLphwuR5O/mAzEIUe1u17XwO8Y1t1rdQPb+dQwlzw0jhJmVHCNAlYGkTMCf8U7/pwkRGH+XDRhztAhgROhTBaUC8SqNWjzHygBTlgY4ZejV+1aX6aiT1x7uTWGn6PW3iMmkjBEeWzLk6y7TyWObu9YobrZ2CEt3fN7jfa23+TWNmwiRpL9dE0HwaOdbGeIC6e44P2LpVSG3IHePfiSQlBUAVNDX5nvvpZsKkURhZpYF5AXpKN3gcx6TFDkeKU0Elvg3eukGiBWOz9/6t2zuIkRgfFknQoJRhUaL4wo6nDKAEVWAvBzom9aRq492VIDrXhS9hu4mRJL+LKaDE1IE+9vz84azu9hIgBHAigCOWqgKj6+j8dr/9rfdnHzLi+Qul9eAectHD3rpfbf43maOi442gX5kg5vcFOZZfmUx/mXYO5AyRC3MXWP0mbLUE3BKUWrCds1ix+OPHLe3WXC5XNL53ptOMxElLaz7ybUsufadBY9/fu4mugZgf7vZx6SQz/hvF043ISX/Mdsoz9QYmCX8fMYL0hEqzXLWM1me02knpuRbXsC8tdM+x7vmWmrrQh/P7mgMVGU4A3B5jU49OaXX/i8Gy3N+iizKEbPKkVvsma1P6SEmqeRVH2U8CwGa/wHjXqG++KPWrHniGePeET3UZJX05VhgLouR/H526uxWdc7PoIectBJ/a8B3872yoxvHwHxu51EFCPwHhAjMv/gBzNUYIP5duEeJe0f0L+D749HrhKeLAAAAAElFTkSuQmCC"},null),O("image",{id:"_Image10",width:"107px",height:"62px",href:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGsAAAA+CAYAAAAs/OVIAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAgAElEQVR4nN2dWa8saXaWn5jnzMjMPZ5T1V3tsrGR+TNIvjAgC+y2uw22bIONzB/gBgkEAowZJbiBCyR+CzdIIHDX0Gfvs4fMjHmO+LhYEbGrrabdQw2nCKl0ztlDROQ3rPWu933XVxpf0+vn/0CpplEAeJ7G83MBQByHmCaczzVx7GEYMI7QtjAMA/f/1tK+yvf+Wa6v5Yt/4+8olWU5YRgCYJoawyATZxgargtVBZoGZVlhWRamaeJ5Gl0HRVFx/I/B1+6zf61e+Ju/o1TXDTw/P3N7e4NhQN8rbFujaUY0TSMMdU6nhjh2GUfoezBN+a/rIM9LLi8DHh8LNpuQj/+l9rUZg6/Fi17+eq00TaNpGjabDZ6noesyEY4jk2BZUBQKTdPQNIgiyHMYx4lpmnh+fiaKIq6vAz799MxmsyEMDboOlOJrMWnv9Au++s6gLMvgeDxzc7Pj+Tnn4iICIElqLMvCMAxcV2MYoOtGdF0HoOs6NhuH47HAMAw8z0PXIQyhruHx8cwHH+zo+2Wi4aN/8W5P2Dv7cq+/OyrL0jFNAQhl2RIEDtMEwzDRNA2GYWCaJrZtcDwm7PcxVdXQdR37/Ya2HTFNg7bt6LqOi4uQpoEggGGQnFYUA45jzvcdiWOD//GP3s1Je+de6uf/QKkkqXFdlzDUyLKR/d7g+bmfJ0Yjy+T7fd8DEAQ2AIYhIbGqGkzTpCxLttstcSwTrhSk6YjrGuS5THZZllxcxOg6uK6EzjiWifzv//DdmrR35mVuf6tXlmUyTYqqqthuAwxDBm0YBCBoGjw9CURXSrHbRUyT/P4wTLiujq5DWY4YhsHbt2/58MMbHh4KXr8OOZ8nlFJM04TnWVRVh67r6LqO7+u8fZsQxzGGAUVREwTeO5XL3okX+cU/VCpNe7quw3VdbNtgmmQnBAGkqYSq5+czV1e7dVeM40gQuOuEdV2P61r0vXzBsnSaRnZkVVVomkbXdWiaxmazwTDk44+jQinFOI64rkXXCbLUdZ0ggKendwPqf6Uv8Oo7gxrHkf3eJk0FHBiGhmVJ2Hp6EmBR1xPavMCTJMGyLDRNIwgC6rpmHEeUUmy3EXXdst87VBV4HhTFhOPo1PVAFJn0Pei63B9kxyoFeS45sW1Hmqbh/fcD2lZ28+Njxe2tT5Iovv+n+lc2Zl/Jg3e/lisAwzC4ufFmiK0wTY2qahnHEd/3sSxBba7rMk0Tr14FVJUMcF0LPO86uWffy78fH1s8z1mfVVWyC+PYommgrjtc10bXwbbh+bnC932qqsLzPDRNI0kSwjDEtk0sS+6tafJf3yt8X+N//ZMvPzx+qQ/8xt9RCgR1WZZBVTW4rouuQ123dF3H9XXE+dxydeXQdTIxaTphWfoKApJEQMfpNLLdSsh8fq4YxxHLstjvXepaQmieK6JIo65hGGRBLGiwaWQyHcdhGAa2W4tpetl1SVLiui5ZlrHb7VBKYRgamw0cjyN3/8b8UsdP/7IedPG3KrXdwjQp2ralLGvC0GW3g+0WqqqawxlomsbxOFCWE30vNVPT9HSdoq5hszE4HgeCwJjBwIRpmrx+HXFx4ZIkHY4jfGDXdYyj1FKGIbTU+TzO7MbIxYVLHGsMw0Cej+i6TFLfw/vvB2y3Bo7jEEl5R5YVvH3bSH77lUe1/Rup+rLG8AtfGX/p7yk1jpAkFWHoM00CsR1HcsfjY0UQ+KRpNoceHcOQHVUUijjWqCqYJil6o8jANOGTTxLeey+maaDrJrquw/Nc2rbDcWyKouT6OkDTIMvkPkmi2Gw0jsduDXv7vUNZQlEUbLchj49HXr8+rCVA27YEQYBpmozjOIdUeHrqmaYJy7IA2G71L7w++8Ju/kt/pFTfQ12P9H2PruvEsY1SMlF3dxWvXvlkGWw28uGVUvi+jWHA8SiDl+cVjiM5KAyNleuzrIVOGpkmgeS2bWOazPBdBvPyUn738VFyl6ZpuK5J3yssS8P3hfRdCuhpUniexjRBUXQz+2GsTMeSv2ybmd3vsW2ZsGGQ+PlFhcfPPQxef7tVv/zHStU1pGlNFBlEkQtInkjTjrKE/d7n/r7G8+D+vp4LXpthgKoaiaKQYVDouo6maWy3BgB13VPXik8+OdO2LUmSsNtZTJNwgAtpOwwDYejQNHA6DTPMt+j7nr5XpGmK5wlQUUrAjiwkYebbVhFFNk3ToJSE7+MxZxwnum7g/v5MVUEUWXRdTxDAdmuQ5znv/231hYTGz3WyXn93VI5j07ZwOiV4nkdZKrKsZr+3CUPwfZtxhDzvKYqC47HB9z0MQxJ/FMlAx7Hcs65r+r7n8bECIAyteSJCuk6K2rKUwfZ9naIYaBrwfY++l/DbdR1RFOA4cH3tsdlInfX01OD7EpYNQ547DLKDhmGgaRS+73M+SyE+DAOapnE4mDNDUtP3cHtr0XWQJAPvvy9F9eavJ+qD3/18J+1z2a7X324VgOMI7XM6nQHQdZ3NZoNlCYL63vdSXr3aUlUSMmzboGl6qqpis9lgmhpJkq/E636vkabQdVIUN00/k7fQNBJa27YlDP0VtpumCcjAWpZFGOqkac9mYzEMzEVuz25nUZbQNO2aj2zbRinZdZeX8VqTLXVf0wwYhuxw09RwHAmhris5tW0VYaiRJBLSlVJ4nkPTdDz8e+dnHuuf6Qa7X8vV9XWIZcFHHyVzYbrFdfWVfTif1YzIRnY7n7aVAQCJ/a4Lb9/mRFFEXdd4nkdVCejoup793sKy4HhU6LrIH6dTwqtXMVk24Lom4whFUc7PD9E0Zgguz7ZtG8PQqKqGvu85HCK6DsqyxDRNHMdZ0eMCfJoG+n7g6srk6UlykYANH5CclSQ1tm0TBAZv30qxHscBXSclwgI3TFNy3c/K6v/Uv3z567WKY3fl4ZqmIQhc6rrjcLDpe3h4SLm93a4F7MIqZJmiLEssS0Ka7/szoRry9JQTx4KTpwnqull3y7ID0jTl9es9b9+m2LaNZVl0XUcY+tR1y/W1gIqylHukqYSxzSZkHBXDMNC27TyJBpZlcDolXF7GaJrsEAmJA77vEYbyzn3fs9lImJ8m+bfr2uu7Sn6THRVFPmEoIGgYhIGxLA3DgP/9T3+6SfuJc1b0187qm7+j1OWly/lcs9sJlHYchywrVz2p72G/3zIM8nt5Ln+ezwNxrKGUwjRN4jjgcNB4770Qz4M4juYBG5gmNSNEk67r6Pue3c7A9/05pAXYto1tm/PPQRg6HI8jeS7vUNcdnucRxyF9/8L5tW3LdmvTdR2GARcXMVXVUxQdti1j+eqVx/Pzcf3sSikeHzMA0jRlu7Vpmo7n5xOmCRcXLlHkYZomeV5xOo0YhnCURVHg+/JOr74zqJvf7H7ifPZjz/B7vz0ppdScrF2Uku3dNPIhNE2jqiouLnzGUVZaWUrN07YdFxf2al4ZRzgeG4Zh4OYm5OGhJAwDxlF4vDR9get5nrPbCdooipKLi4Dz+QWGT9PEdmtTlhNBoK9C4kIPCZID3xdC+HAwub+v5h1lEQQ6SdLOSHSYw6KEsK57uUfbdrNtwMJx5BllKWHQ9405Cgzouo5t63TdRBjKwjVNuL8v8TyPpmnWksVxZPw++ZMfb6f9hTvrw99X6hf+rlJZlqFpGp7nkqYVVdXx9JSTpikguSeKfE6nBtuWiYoim74fmKaJuoaHh448Z4buAufrGrbbYKaREspSapv9XuqbwyGmKEpME3zfp2nkd7MsI45Ntlt7DrM6x2PFOC6c4Uhd9+i6TPLjY8luZ/LxxwkAlmWRpum8++p5UGWH6jo8PCSM40RZ1ozjRBjKLpSwquj7kcPBmxeMLEDPM2fKC8JQ5/4+pSwVaarYbAKqShbhQoVlWU/X9T821P+Rk/X6u6MaR6mPvvWtLbouRSSI4HdzExGGIaapMY4yQI7j8OmnCZqmEUWsVX8Uwc2NvSZw4flcum6kbUf6njnW27RtS9+/cHSO49A0I0GgMU2KcYT9fr8O0jAMdB3Ytk3XQZoKEnVdi6YZub2VcFmWsNvFXF0Jcbvb7ajrnutr2bmbjYZl6bQt3N7GGIbOxYXH4aBTliK1TJP8XF3XGIY8p+tk8ppmxLYtzueGuoY43hIEkqvO52z+2W7O5xVKKW5vLTQNfu73lFpQ9f/r+qHbz/qr9+rDD28YBkE8mqZxdeVyd1dwcRFi27K6hmHAcSzOZwESDw9iD3McDaUkPrvuwihIQnYcG8+TuibLFK6rkeeyC7tOVNokEUjteQ6nk8j1SskOCYIAXRdEeDjEKyNSVeJyenqS+s5xnJmyknDrui5RZFJVijzP2W43lGU112cOeV6x3/v0vYTMtoXHxwTf99ls7DXcPzw88OrVDUVRYds24zhS1zWHQzwvnhc5x/MEUCyFN8i96/olvC6k8v19MpcvOn3/w0niH/hC+KsntdvtZugrDPM4KrZbjTyXAZYQJ1SNhBjxN3zwQcgwvEB1WTUuZSmUU1EU7HbbFY3VdU0cb6iqBt93KQqB63kuyO2zxpcoivB9g2GQiX96+qym5dP3gmIOB5OyhCQRm5llQV1PxLHO42OzcodRZK8KdJIUKKUIw5BhGFZRU9O0dZJlMQitFcfCzJ9O9fw9bd79gnYXrWwcX+ist28rdjt//nvLdisLqSwlFwpQkXquqiRvRpF8/7NKtQbwwe8q5TiQpsJzaZo8XOCo1AwgyEoEQgPL0lY+7XxOuLqKSdMa3xcXkePA8VgzTRPX18G6A85ncRgdjx2bjXCFCwgYBlkMS6gcR7i/zzFNk7Zt8TyP16+FQioKIV89z8OyjHWVlqXcbwm/4ziuueLy0uajj8SGJpKIQ12rVb8KQ4u2lR0kphsHTRP+b7+3yHN5pmVZc8h2sW1517Zd0GdDXYvzStd1HMdhuzXWiWzbkTA0SFPR1dq2xzAM0jTl1asdZTlhmjrjqKjrGsdx1l2m/ZV/oFSWsdq08lyI1ft7QTq6rs+eBYHowj4M+L6JbcPp1BEENlUlrECWTUSRzt1dShxvGQZRgPu+ZxxHwtADpPa5vAxnmkaK4jiGLBPpQrg84Qo9j3kXy4TI7pYdGwQGeS6DWZby/U8/TbBtmzj2ybKGsizZ7/fzhLtkmTwvyzJev96QptOsWcV0nZhwltJCPBpwPqdcX285nSo2G5++V+tOdBydthXH1cWFT1lKydE0DTc3AooELcoY6LrOMAwcDj739xJql5C6eBkXt1YQyOe2bdAXo6Ss4oq6btcJCQKDYRjYbAzGcVFoayzLpK7HWSey6Hvh7N68STEMna4Tri7LcnRdRylFENhEkYemycDHcbjunu02IgzhdJrWWmgphA1DVm2ajmgavHmT8NFHKboutU6evyT+/V5W99VVjO/7KAW+73I4HCjLcg1pcRyhlMJxnBnF6ViWhW0LMXt5abHbCdAR24Di8nJLnvdcXvqcz1I0TtOEbctkmqbObuevoXu71TkcfO7uCqZJFGZRqxtcVxaSbcN778WM40iWZRiGweOj3PvqKp69IRIeTRP0slQUxTCHPmf2IahVCGya5geS7n7vMU0KxzE4nxsBJJaEy/1+S98PZFm91jGyKwUxDQNkWUWeN2voEGGx43zu15eWUKtTlt2cv8A0DYZhJIoibm+3WBYcDvsZTWmczx2nk8T2cZQoIQ0JPZoGFxfhCsuXLOB5Ds/PFedzRRAEPD1l1LWi70VLMwyDIBB4Lova4ulJgIXjaBwODsMgu2ah0IZBFnRdy9d3u5CybHFdjdOp5fXreJVXJMf3OI6DrutEkcyBUswLRyPLJpSSn9Vlpk08T1ZKkkiCD8OQtpU/01TY5b6XxBqGGk0zcHUl3ogXWM3skHWpqgrXdbm8NGYxUQrNqyufw8FlGCR+L+Kd48ifu91uDpkTrmtTVR1ZVmNZsNsJrVUUE3kOux3c3QmYsSwLz5OFs4Tn8znFdS2mSdgNIWtllSdJQt+PRJE/85Adt7cbgkCjKCRP931P2/Zst3A+J2ga3Nz4aJpGWfZzflQURTtrW6IMbLfbWcHuOR4z4tjh8VGose9//8zpVJGm/ZyrRYv7xjdC7u8lH55OCXUNd3fZLP0IwNEOf7NUC+sgtY7krDRlVVOXLg2ZWBddXxjnabV3Lbxd3/c0TUMcx0SRwfEoqElW3UCWZWw2G+LY4nwWVsC2rRni9mRZNsvoIUEgFb5hvDAiS/ja7eDP/uzFmqaU4vra4/m5m8OnQd/3DMMw+wJ9np6eME0TTdP45jdjigKyTJiFKNLpe1nBS+gRH7wiy7LZpxjT98PMZBjc3yfz38MZlhtomoyLMBmSb9++fSF8FyI7z8Woo2lSpvR9z8VFyPlcz5KRLOZpmnAcWYjaYlNumn71zJ1OJ25uLgHW9plFUZWXkUnbbGQwxxEeH4/s93tsW3ZQmopJMgjg7dty5vVi6loMKotnT9fh+VlI1CU0+v4LU11VkqzP5zOO43A4hOS5wF0pxGVAl8vztJmz9DidxEL25k1BEAT4vsbxWBFF/uqL3++1Wf4QdTkIRErx/UUsbZmmadbHBmzbZBgkVzXNsOZWXWeWbsY53ztUVTfbDTxc18B1hRsVf6KzSi+uK97EIPDRdXn2w0M1q+sueT4DE8PQGQaF686zp2lcXFzQNBLrP/nkiK7LRNV1MwuELuM4znWCmgFDPPsbsjlceLRtP/Nr2oy+cm5uXA4Hjb4fqev2MywFc64oSJKONFWzu0m6R0zTxHVdDEPYk9Oppm3VHIYbDEPD8zSSRMwsAqV7qkpCeRRpFMU452XZBV3XkSSyQNpWEQQWx2NOlhXzTh7nWs6b84hJ28rAdd1EURQ4juSoMISuU+vC6bppLTeapqHrFEky4jgmwzBg26xCZ9PA7a1ocraQ+Fxe+nPBrdjvLbZbV+imzUabfd6KoijQdY3NxqIoGl6/PpDn1Sp9C3qCKDJ4fj6jaRrPz+lniladp6eMqoI4lrpFaKBOaoa7isfHgSgy2G4lmb56FVOWzDkkpKoqTFOjrru5PnN49WqLpmmzaRMuLz0cR4jc3c7j6em4vuP1tWha2+2WPJe6pyjAsowZaUqxfH3tEMfw+Jiy2Whz2PJo23ZGlwKSzueUNE1xXbBtsQbYtr7SW+M48sknCXGsURTFHLrElp1l2Spquq4xRzB3DrkTRTFwPCYkiXCIadpxPIr14fY2mEsIyX9rdfxLf6RUUYjOdHkZkiQtUeTMiGrAssw11CxajoQRk/N5XF9sAQy7nb+WBOKulXadZcX7vkWaVtzc+PNASjhI08U2JtJ/HFsoBff36YzCHJqmYZomwjCc2fF+VYa3W5MkEfV5yVXDMHBxIS7d+fVoGoH+oiZL7ghDef5CChyPJZtNQBiymkvzfFhFUssyOZ3OxHFMWZa8ehXy8CAOYc/z8H2Dh4eE29uYtoWm6fA8e65XpUYUEfOFohJ0LX+vKvn5PBf79g/QTe/99qQ8TyPP+1WgE1len7sw1JwIhR5ZFFnPg48/lmTfdWrt/kiShIuLA1mWc3sbUVXC6d3cxNS18ILCM76Ic54nAzkMwp6/fSsTKsWyTHKSlPK+7wWzfCE5482bZGYWIjYbE8OA+/uCOA5n4CBq89L8YNs2fd/jeR5ZlnF1teV0KmeNzJpRsZhKNxuDspR8soAe8XgkXFzEFIV0W3adjIfY7xr2e5eqkp/b72NcVxbMxx9L4f76tc+bNxXTNHE4hLMFrub62qMsf1Bd/qFE7vW3W3VxYfPxx0LNyPaVVhmxNBe4rsswDFxfuzw8CL8nu47ZFqZxPhc4joPrWivddDxWbLc+VSXU1uKB2O8NkkTNZpiXnxeXVMnNTUCWiXVZdkU2W6xNsixnv49WC/WnnyazsBnSNOJxf3jIuLraoGmQJC23tw53d/Le0/RS4I6jLELDWDzwNZuNmG+macIw9BURGoZBXQuYEZpKJsX3fS4v7bWrsusk5IHoc9/85pb7e6lFw9CmbcX+JjRagW3bP9Sz8SNFL/dXHtXFxcUqyi3EbpIk3N7ueHrKORwimuZlGxuGwPrvfe8tH3xwQ1VJK87iim0aOJ/Pcy2i43mQJB2WZeE4Ur9EkbUW0GHoE8fw/Cwf1vd1hmGRRl6oLN+3aZqBvu8JAo9xlETvuhpFIQtjATFSZE6z1yOY/YUG9/fC9KephOyFXpP7QFGM+L6B5wlhLbltWkGI9IcpLi+liBZ7tlBISdICzKDE4fY2pCggzwt0Xef2VqLHjxIif6Se1fzXK+37f6prCyEq6rA228BEjxKI3X8GlS3o5oY8l0Q8lyFzp2GBaZr0fc/5nJDnQrhO08T5XHJxYVHXiq6bCAIfzxOzzOEgWlBRDKRpObMZxsyE27guM1vt0TQdbdtSVRVVNVKW5QyH09nvLjWk7/trC1CaCqMxjmr2lKjZONNiGHB3dyYM5et3dxVBoLHdujiOQxx7zAgeXdf45JNqNd90XUdVKaLImZVpcfem6UTX9VxdhbP/Uf2FivGPLevf/lavxnEkihzqesRxDLpOGOKlvgBmuf1Fspa6TAq9um6wLIu2bbm99TmdFh5Q53xOef16uxLBDw/CpARBgKaJ1CCrmzVESn0npGwQQJL0lGXJbhdTltXqbNrv/dVSIMy/7Ib9XuPTTyWnWZaE8PNZdvMwCPQW86m1cppZJnJHUfT0fc9+768O3cfHdmbahWfsOmZILwtFhFoBFVnWcnHhkKYTb/618WPNw0/ssvm531OqqiRUSfErjMF2a/P0VHB9HfL8XHN15VFVUFXtHJqCub5Y6jl4eCjm5jkhYpcicRzVGtocB56f61lM1ElTETiXGL+gvsUDcn29o20FvLx9K/1dWSbhCiCOPaZJNDEhdh1cV6Np1ErcfvjhjtNJ7h2GPlXVEIYuWVZxOPgUxThbD2TXAytRvKgLi3NqYdilTpTnOI5GXf/kXSg/tRXt6jcatds5ZNlAGJorKmuaht3OpW2XLvh+RjpCej495VxeRiRJQxRJu8/xWLDbhZzPBVEkMdOy4HyWMytAEr4UlQZl2a4OJSmUDYpCWArD0EnTjJubzbxYRNJYitRhGNjtIvJcdjvIbhP/vRhy7u7On+EoRzzPJQzh6amZuU/xMmZZtxpbF5/7QjjbtsEwCHBoW1G5bdvm+tr6qXuVf2aX6F/++0rJJEnyrSoRJIXYlGTq+xZdJ6v9fK7mVWYTRfDmjfzMxYXFRx+d125GOadCm3WrmosLj/NZtLOuU7MPQpiCpTkhihzKsl9lGYA4Nueww9pDLMYWKcLD0FgprbaVRSCuX52yrFYuse97osinqgRJns/LCTYiNEoXypY0TWeUKnLI5aXH83OzaoOf/quf3uj5udinf/mPpWPk6Unif5IUvP9+SJqKRLEgSduWvJAkFXHs0zQCl/v+Bbm1LatAB5Kg5XvCNhgGPD2p2e+3AB9h3S3LWOX052epa8TTCHd3+SxDBKv7Vu4riK8opEl8IV2X0LrbidD58HAmiiK6ruPmxl89KEFgzfodlKUYXZUS/tTz3PUZn0en5OfamvLeb09KQp5BnktCXpqzP2tpLsuSzSbkdEpm352P677UJGUpk1nXUowuRPLiUxgGGYAsm6jrmv0+4HgsOBzEzHN/L+1Ci1IQRUIoPz8LUfvmzRO6rnN9fZhbTyXnSDuQuy6WIDBWqJ9lEqIti1VvWkJ9WU6cz2cuLw+AfEbZ6Qb/8x9/fj1bX0gf0TJpfd8Thu6aH3xfEJthGGuN9fwsSXwcpZAWL4bi+fmZ/X6PruszMdtyOATkeT9bzPrZhLOjLKVoXgjZaRKJ4nQ68fr1AcuSfKfrOufzmffe2895pCaKPBwH8nyakZzk0JubkDwXXUuUXmHcXfflqIdPPz3yC79w4O5OdpGgYvHfT9Pnf8TQF9ZMd/UbjdpuRQZ4eKhm+O3N/cPdipSyLOP997eMI5zP3bqq+75fm+kuLvx1hy6QuG1lwNp2YrvV5w5IxX4vH0kpePtWlOzt1uXhQSxqfd/zjW9IiO77ic1G5/m54fLS5XTqubiw1ibyYZAdE8/9R8LMmPT9uDq0ttvt6nHf7Xy67sd32P6k1xfepvr6u6NaTCdNs8j0+io3RJGF6wqt1PfM9ZI0iKdpznYrTQrL15cmiO3W5XgsaNuWq6vDLOP0q74kjXVyFBC85MHbW4ePP5b7iggou35RbTVNI4417u7KuRbzSVOZvLIUoFOWi7G0WwXEsvziz8r40rrNlxNklILj8cirV4f1WATTlB2T5xO+r5PnPYeDWL/O5wTDMNhsIoZhXLs0tltr3lmsNdrzsyjbck9Rt4W81Wcm5AWJ1nWL4zgrk7H0MS8uX8mfPZ5n0bbjeqCKlCbe7NUQ0+oXtZP+/PWln+Xw4e8rlSQyQHVdz40A1mxFlhDXdf0s95ukqdRlZSmtPldX+zUkLpY1zxPTpijHclLNe+8Fs2AquXMxhcqgO6sBaJFFhkHAzCITXV+Hs/dBmPoFVb55I7LK0qZ0+k/hlzaGX8mhJT//B0qlabNyi0tH4vEo0FfafWRGgsBeqaCyHFe/uFILdA6wLI00FWu1uGuFSLVtGVzf9/E8a0Wjcp6FPnNzFlUFed4xTRP7vYvrwsODyDHLwsiyksMhIE2lFnv77+z/vw8t+fNX+Ksntd/vVmtY2/azVGHjujLgi4zuOA6bjRTJYfiieS1HNeS5eBjKUsBM0zR861s7zmcpxstSjKnzQWozky8F/HYr/vqlt3ix4rVtSxQFNE1HGNqUZf+VTNJyfWmHlvywq/gve+2TP9E0yQ8DRVGsO0aI4A7ft9ak//QkHpCPPz7PTW/Mztd+1paa+SxcjziOOZ/FmZTn3Xw24dLoPc4yy4jvC7sh8jucTvIOeZ6vB0q6rs3/+Wea9lVOFLwjp6It1y/+oTzw8moAAAHYSURBVFJl+cJOLBrZZmOQ52IWTVOxQ4vxJVhdUkqJoadtWyzL4nDw1zZWOWjEnk+gfhH6kkSOrNM0+V3fd9fifQE9bQvf++df/jlNP+x6J17is9f1t1slsNtc/eJRFK2+jEWUXPyMy0Eii31rYfhBmtsk1y07zqTr5J6CEB36fmS3M+beXykZyrKmbVvy/7x7p8bnnXqZz17f/B2lmqabpXRhuhf6yLZt8jxns9ng+8I6LKzC6TSujLznuSuh7Hketm3MLMo4d+2LMzjPO4ZhmPWp7Tt7Vu47+VKfvV59Z1B1Xa/Iz/etGVio9biE5aihpVuy7wWG17XkvcPB5u4un21rW5qmY7ezubtL567MkGmSXPlV56Ufdb2zL/bZ6+Y3O+W6FmXZrAJfFFkUxbDmryhyZxVYWAyhgnyaZlxNKLe3Huezms0uL4eN/CRN2F/l9c6/4GevX/ojpapKitMX1gPyXDjA5WyLxUMoNmWXzcbg8bFkuw3WBkA5zvXLPzPwZ7m+Ni/62Wv5/5Asx4W7rs3pJK2rV1fB3GB9nifKo22Fxlr8hVXV8vgf3K/dZ//avfBnr8tfr9UC1a+u/PXM9udnYc+zbPH+vfx/Sx4eHuj/2+3X8nP/X8+jjAy2QdiEAAAAAElFTkSuQmCC"},null),O("linearGradient",{id:"_Linear11",x1:"0",y1:"0",x2:"1",y2:"0",gradientUnits:"userSpaceOnUse",gradientTransform:"matrix(-118.47,-106.79,210.785,-180.125,69.2121,1372.7)"},[O("stop",{offset:"0",style:"stop-color: rgb(64, 128, 255); stop-opacity: 1;"},null),O("stop",{offset:"1",style:"stop-color: rgb(64, 128, 255); stop-opacity: 1;"},null)]),O("image",{id:"_Image13",width:"107px",height:"34px",href:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGsAAAAiCAYAAABY6CeoAAAACXBIWXMAAA7EAAAOxAGVKw4bAAABFElEQVRoge2aQRKDMAhFmx6it/P+x7Ab64xOmaAG8vnwFnWhiOGFOG3TPsu6vpS0djpuH61zXoz5F3s6r4rRxipiftddeUbp3t18QozEu3/JfdSzgCy5VWpTWcVYSlaPqcvDEUpZQPUdCqUsSAbMoJIViJIVCBNZrO+MHtbjrs4KRMkKBJUs9uXXTxZ7JR2g6ix27sly6BIxReIOHdpZWevoNe68y2DAmTVXFmDBAB9pJ29nBYRCln5jgkVyv1QUsrIAJyvtvg1F7iGykF/KlniPG66zKDCyWLI2IqwOJSsQz2URbqZEpTorEDCypn6xnciVYT+SlbS+08Zt01lJfv7xBmYZLPpgy6p/pA9gyxIArKMLXxexLNiBCThLAAAAAElFTkSuQmCC"},null),O("image",{id:"_Image15",width:"38px",height:"62px",href:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAA+CAYAAABHuGlYAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAGaElEQVRogcVZSWLjOAwsblIu+oD+/zZ/YC4di8sc7IKLsJzJdCdpXGxLXIACUADpgL8oIYR9jKG/wd/hL+m080uMEb33pwHpR9UBkFLaU7ptW0rBGAOKGgAsy/KjiO3Aw105Z4wx0FpDSgmtNVPqer0if7c2Oee91oqUEsYY5rZaK5ZlQYwRx3HY+J+IsSmOQghPqKhwTO8dIYRvU8yU0kzzEmPEGGNSiGO/Ovh3ABtwQ4UI5ZxRSjEFKBprYwyUUtB7v6H3hQqhlGIb1loRY0RKCcdxIKWE3rshUkqZYsvLHykWQthjjJZZGtwqpRS01ia3MaZCCKi1cj2MMZBS+n1XhhB2brKuK2qtj/hIyeJHkVEypft678g5I+c8uf53FNsBbLoJF6RwU800kirjinM18HXcpxULIewANi5KyDWT1nWd3KquXZbF5tGVmq2qXO/9UzG2f/SSyK3rivf395e1T5/TmBAClmXB+/u7AnBD+7NK5fwoEiE822OM7d7lnBFjtIwlmkSMga97hBBelqRdraTf1SIvnsm1/gEwVBgCfMfPpwQ6UWgj0XGQxgrfeUWJFIO7tYacs20WYzRDPbqkDcZs790U25dl2ai9xoKK+V+oQFEhspzvWZ4kC2DKTK6tCRBjjDtd4RVZlgVvb2/T4lqMj+Ow9yRaRU/Xi/E5nIkUjWLMpZSQxhibn8C6dhyHlRZa6Ru73jtKKbYgDeBmWor8PN2LLmf8JdyLrsKrlV7hp+XeRa01G+/jjaj4hGE49N6ngm/vVakQgqU1N9c2uPc+pTdLjyqpn7qOFz6PMU48RjBsVcaHr/hqPZVZ13XKMn3v+U4zmiWKhur6mpm994diDDwN2BDCxD80wD9TZWqttimfE1lPQYyndV2n32OMW4xp6jI7vGi80CqSr48PRZGGkttSShO/sV9b19XHcjSkmEWKmP5mcKsiipaXs/hjCFCUO1ncASDFGLdXmxJBjRFFk4VbfxNVpRi6h/F2tgfBoRdiaw3LshifeCGPsW3hQsCj/lER5T1SCN3nWd76rhehk0IIGxVQC7iAh3xZlmksUVQC1eMaS5gqRve/OoXXWm/Br0jwANFas3aFStFNuomlt7iZ2aeErUox8Espxp9U1GomgJ0WTec6l23+HcvIWWPIHoytkM7lfYWi7ue21hBZ/9TiUsqUPWcMT746U6rWOvVnOvdVJaAYjeScNwYorSeFeDL0LO838W5WQ/S7ZZ4klc/4eL1eLViZsrVW8z39f9a2eKR8u8Mg93NpZGsNx3FMBxTzEoDt7KCqCcFNtTNVK1+dK1trljxKEWyVfDfLLM05I7Fz1c191tVarbPwLlXOMjecKKWbMtEo/s6s945IjWutBq1apxbpUR94JAkX00Kv8aSuZDZynWVZTCltNs2VHikN/DP+okvOEsCHA68BPFLa3XoujZqFKlqctRx5BfQsSI7iHACWeeoySmvt6eDDsmaIeSF18PbPu5ZjtCroe7+mP01pS+T3tZM4G7uzWGCvpNZpdhExZqx2ptpRKPX47oJoszMG7j2/xoIqx8DU1oYLcxwTxbfkPl5jjFN4MAP53p8nIsmV15G+9yICXIyKcNHjOKY5KjqXY6kc6yzXbK0ZkjFGhFLKzoH2UG75xIIP6xzT3X8HHg3B2TGOzabe+/PiblOfn8UEn3MToqnI6R0GjfOJoOXNcx7r552CLmmMsem1NjdX7uGiSqa6IUWPa2eZzoOtntBVeu8XAP8AuF1D5ZytmKoVFH/0OpNX79St/lMo5uLnJdzvUzXwpk5SiFTpwlv9qnfXYm8F+jHPEPJiaUR21gzTf8fUytba1E2Qw/TcSdECzaS6U8sTShPS/MKOk27T9FXxqKirSBetNby9veHXr182XrL0Q4UokVdInnO0vj1Zc+ciJUV2HloVXON4+axSAJDJ2F4Bn+p6tD9rhbkGkZee//JR0rySlHPelLfOWhUqqH966gFFKYRz7p+fRuhJsRDCaWtNJf1JiJvqkf6E4y6999Ns+6xkbVtIE2enZ0XKX4VzPP5HDP2XGI8B81W5lhTlOZYiV3YuY4w/QshLVJeR/TVOBA0TF49fhpJKptXaT/mSoZlLRa/X67coRAkAdt+OnP2ZLvKtClEy8Bz4L5T6EYUoU2utqGm9+2mlAMz/vunfxHda+HGFKP8C6wW6ett+DK8AAAAASUVORK5CYII="},null)])])}});const jje=["info","success","warning","error","403","404","500",null],Vje=Se({name:"Result",components:{IconInfo:U0e,IconCheck:eg,IconExclamation:OH,IconClose:ds,ResultForbidden:Bje,ResultNotFound:Nje,ResultServerError:Fje},props:{status:{type:String,default:"info",validator:e=>jje.includes(e)},title:String,subtitle:String},setup(){return{prefixCls:Te("result")}}});function zje(e,t,n,r,o,a){const s=Ie("icon-info"),l=Ie("icon-check"),c=Ie("icon-exclamation"),d=Ie("icon-close"),h=Ie("result-forbidden"),p=Ie("result-not-found"),v=Ie("result-server-error");return z(),Q("div",{class:ue(e.prefixCls)},[I("div",{class:ue([`${e.prefixCls}-icon`,{[`${e.prefixCls}-icon-${e.status}`]:e.status,[`${e.prefixCls}-icon-custom`]:e.status===null}])},[I("div",{class:ue(`${e.prefixCls}-icon-tip`)},[vt(e.$slots,"icon",{},()=>[e.status==="info"?(z(),Ye(s,{key:0})):e.status==="success"?(z(),Ye(l,{key:1})):e.status==="warning"?(z(),Ye(c,{key:2})):e.status==="error"?(z(),Ye(d,{key:3})):e.status==="403"?(z(),Ye(h,{key:4})):e.status==="404"?(z(),Ye(p,{key:5})):e.status==="500"?(z(),Ye(v,{key:6})):Le("v-if",!0)])],2)],2),e.title||e.$slots.title?(z(),Q("div",{key:0,class:ue(`${e.prefixCls}-title`)},[vt(e.$slots,"title",{},()=>[We(ze(e.title),1)])],2)):Le("v-if",!0),e.subtitle||e.$slots.subtitle?(z(),Q("div",{key:1,class:ue(`${e.prefixCls}-subtitle`)},[vt(e.$slots,"subtitle",{},()=>[We(ze(e.subtitle),1)])],2)):Le("v-if",!0),e.$slots.extra?(z(),Q("div",{key:2,class:ue(`${e.prefixCls}-extra`)},[vt(e.$slots,"extra")],2)):Le("v-if",!0),e.$slots.default?(z(),Q("div",{key:3,class:ue(`${e.prefixCls}-content`)},[vt(e.$slots,"default")],2)):Le("v-if",!0)],2)}var uM=Ve(Vje,[["render",zje]]);const Uje=Object.assign(uM,{install:(e,t)=>{Xn(e,t);const n=Yn(t);e.component(n+uM.name,uM)}}),Hje=Se({name:"Skeleton",props:{loading:{type:Boolean,default:!0},animation:{type:Boolean,default:!1}},setup(e){const t=Te("skeleton"),n=j(()=>[t,{[`${t}-animation`]:e.animation}]);return{prefixCls:t,cls:n}}});function Wje(e,t,n,r,o,a){return z(),Q("div",{class:ue(e.cls)},[e.loading?vt(e.$slots,"default",{key:0}):vt(e.$slots,"content",{key:1})],2)}var cM=Ve(Hje,[["render",Wje]]);const Gje=Se({name:"SkeletonLine",props:{rows:{type:Number,default:1},widths:{type:Array,default:()=>[]},lineHeight:{type:Number,default:20},lineSpacing:{type:Number,default:15}},setup(e){const t=Te("skeleton-line"),n=[];for(let r=0;r0&&(o.marginTop=`${e.lineSpacing}px`),n.push(o)}return{prefixCls:t,lines:n}}});function Kje(e,t,n,r,o,a){return z(!0),Q(Nt,null,gn(e.lines,(s,l)=>(z(),Q("ul",{key:l,class:ue(e.prefixCls)},[I("li",{class:ue(`${e.prefixCls}-row`),style:Ke(s)},null,6)],2))),128)}var zw=Ve(Gje,[["render",Kje]]);const qje=Se({name:"SkeletonShape",props:{shape:{type:String,default:"square"},size:{type:String,default:"medium"}},setup(e){const t=Te("skeleton-shape"),n=j(()=>[t,`${t}-${e.shape}`,`${t}-${e.size}`]);return{prefixCls:t,cls:n}}});function Yje(e,t,n,r,o,a){return z(),Q("div",{class:ue(e.cls)},null,2)}var Uw=Ve(qje,[["render",Yje]]);const Xje=Object.assign(cM,{Line:zw,Shape:Uw,install:(e,t)=>{Xn(e,t);const n=Yn(t);e.component(n+cM.name,cM),e.component(n+zw.name,zw),e.component(n+Uw.name,Uw)}}),Zje=Se({name:"SliderButton",components:{Tooltip:Zc},inheritAttrs:!1,props:{direction:{type:String,default:"horizontal"},disabled:{type:Boolean,default:!1},min:{type:Number,required:!0},max:{type:Number,required:!0},formatTooltip:{type:Function},value:[String,Number],tooltipPosition:{type:String},showTooltip:{type:Boolean,default:!0}},emits:["movestart","moving","moveend"],setup(e,{emit:t}){const n=Te("slider-btn"),r=fe(!1),o=p=>{e.disabled||(p.preventDefault(),r.value=!0,Mi(window,"mousemove",a),Mi(window,"touchmove",a),Mi(window,"mouseup",s),Mi(window,"contextmenu",s),Mi(window,"touchend",s),t("movestart"))},a=p=>{let v,g;p.type.startsWith("touch")?(g=p.touches[0].clientY,v=p.touches[0].clientX):(g=p.clientY,v=p.clientX),t("moving",v,g)},s=()=>{r.value=!1,ro(window,"mousemove",a),ro(window,"mouseup",s),ro(window,"touchend",s),t("moveend")},l=j(()=>[n]),c=j(()=>{var p;return((p=e.tooltipPosition)!=null?p:e.direction==="vertical")?"right":"top"}),d=j(()=>{var p,v;return(v=(p=e.formatTooltip)==null?void 0:p.call(e,e.value))!=null?v:`${e.value}`}),h=j(()=>e.showTooltip?r.value?!0:void 0:!1);return{prefixCls:n,cls:l,tooltipContent:d,mergedTooltipPosition:c,popupVisible:h,handleMouseDown:o}}}),Jje=["aria-disabled","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext"];function Qje(e,t,n,r,o,a){const s=Ie("tooltip");return z(),Ye(s,{"popup-visible":e.popupVisible,position:e.mergedTooltipPosition,content:e.tooltipContent},{default:de(()=>[I("div",Vt(e.$attrs,{tabindex:"0",role:"slider","aria-disabled":e.disabled,"aria-valuemax":e.max,"aria-valuemin":e.min,"aria-valuenow":e.value,"aria-valuetext":e.tooltipContent,class:e.cls,onMousedown:t[0]||(t[0]=(...l)=>e.handleMouseDown&&e.handleMouseDown(...l)),onTouchstart:t[1]||(t[1]=(...l)=>e.handleMouseDown&&e.handleMouseDown(...l)),onContextmenu:t[2]||(t[2]=us(()=>{},["prevent"])),onClick:t[3]||(t[3]=us(()=>{},["stop"]))}),null,16,Jje)]),_:1},8,["popup-visible","position","content"])}var eVe=Ve(Zje,[["render",Qje]]);const t0=(e,[t,n])=>{const r=Math.max((e-t)/(n-t),0);return`${Xl.round(r*100,2)}%`},G5=(e,t)=>t==="vertical"?{bottom:e}:{left:e},tVe=Se({name:"SliderDots",props:{data:{type:Array,required:!0},min:{type:Number,required:!0},max:{type:Number,required:!0},direction:{type:String,default:"horizontal"}},setup(e){return{prefixCls:Te("slider"),getStyle:r=>G5(t0(r,[e.min,e.max]),e.direction)}}});function nVe(e,t,n,r,o,a){return z(),Q("div",{class:ue(`${e.prefixCls}-dots`)},[(z(!0),Q(Nt,null,gn(e.data,(s,l)=>(z(),Q("div",{key:l,class:ue(`${e.prefixCls}-dot-wrapper`),style:Ke(e.getStyle(s.key))},[I("div",{class:ue([`${e.prefixCls}-dot`,{[`${e.prefixCls}-dot-active`]:s.isActive}])},null,2)],6))),128))],2)}var rVe=Ve(tVe,[["render",nVe]]);const iVe=Se({name:"SliderMarks",props:{data:{type:Array,required:!0},min:{type:Number,required:!0},max:{type:Number,required:!0},direction:{type:String,default:"horizontal"}},setup(e){return{prefixCls:Te("slider"),getStyle:r=>G5(t0(r,[e.min,e.max]),e.direction)}}});function oVe(e,t,n,r,o,a){return z(),Q("div",{class:ue(`${e.prefixCls}-marks`)},[(z(!0),Q(Nt,null,gn(e.data,(s,l)=>(z(),Q("div",{key:l,"aria-hidden":"true",class:ue(`${e.prefixCls}-mark`),style:Ke(e.getStyle(s.key))},ze(s.content),7))),128))],2)}var sVe=Ve(iVe,[["render",oVe]]);const aVe=Se({name:"SliderTicks",props:{value:{type:Array,required:!0},step:{type:Number,required:!0},min:{type:Number,required:!0},max:{type:Number,required:!0},direction:{type:String,default:"horizontal"}},setup(e){const t=Te("slider"),n=j(()=>{const o=[],a=Math.floor((e.max-e.min)/e.step);for(let s=0;s<=a;s++){const l=Xl.plus(s*e.step,e.min);l<=e.min||l>=e.max||o.push({key:l,isActive:l>=e.value[0]&&l<=e.value[1]})}return o});return{prefixCls:t,steps:n,getStyle:o=>G5(t0(o,[e.min,e.max]),e.direction)}}});function lVe(e,t,n,r,o,a){return z(),Q("div",{class:ue(`${e.prefixCls}-ticks`)},[(z(!0),Q(Nt,null,gn(e.steps,(s,l)=>(z(),Q("div",{key:l,class:ue([`${e.prefixCls}-tick`,{[`${e.prefixCls}-tick-active`]:s.isActive}]),style:Ke(e.getStyle(s.key))},null,6))),128))],2)}var uVe=Ve(aVe,[["render",lVe]]);const cVe=Se({name:"SliderInput",components:{InputNumber:Q_},props:{modelValue:{type:Array,required:!0},min:{type:Number},max:{type:Number},step:{type:Number},disabled:{type:Boolean},range:{type:Boolean}},emits:["startChange","endChange"],setup(e,{emit:t}){return{prefixCls:Te("slider")}}});function dVe(e,t,n,r,o,a){const s=Ie("input-number");return z(),Q("div",{class:ue(`${e.prefixCls}-input`)},[e.range?(z(),Q(Nt,{key:0},[O(s,{min:e.min,max:e.max,step:e.step,disabled:e.disabled,"model-value":e.modelValue[0],"hide-button":"",onChange:t[0]||(t[0]=l=>e.$emit("startChange",l))},null,8,["min","max","step","disabled","model-value"]),I("div",{class:ue(`${e.prefixCls}-input-hyphens`)},null,2)],64)):Le("v-if",!0),O(s,{min:e.min,max:e.max,step:e.step,disabled:e.disabled,"model-value":e.modelValue[1],"hide-button":"",onChange:t[1]||(t[1]=l=>e.$emit("endChange",l))},null,8,["min","max","step","disabled","model-value"])],2)}var fVe=Ve(cVe,[["render",dVe]]);const hVe=Se({name:"Slider",components:{SliderButton:eVe,SliderDots:rVe,SliderMarks:sVe,SliderTicks:uVe,SliderInput:fVe},props:{modelValue:{type:[Number,Array],default:void 0},defaultValue:{type:[Number,Array],default:0},step:{type:Number,default:1},min:{type:Number,default:0},marks:{type:Object},max:{type:Number,default:100},direction:{type:String,default:"horizontal"},disabled:{type:Boolean,default:!1},showTicks:{type:Boolean,default:!1},showInput:{type:Boolean,default:!1},range:{type:Boolean,default:!1},formatTooltip:{type:Function},showTooltip:{type:Boolean,default:!0}},emits:{"update:modelValue":e=>!0,change:e=>!0},setup(e,{emit:t}){const{modelValue:n}=nn(e),r=Te("slider"),{mergedDisabled:o,eventHandlers:a}=Do({disabled:Lu(e,"disabled")}),s=fe(null),l=fe(),c=e.modelValue?e.modelValue:e.defaultValue,d=fe(or(c)?c[0]:0),h=fe(or(c)?c[1]:c);Rt(n,B=>{var F,W,U,G,X;or(B)?(d.value=(W=(F=B[0])!=null?F:e.min)!=null?W:0,h.value=(G=(U=B[1])!=null?U:e.min)!=null?G:0):h.value=(X=B??e.min)!=null?X:0});const p=()=>{var B,F;e.range?(t("update:modelValue",[d.value,h.value]),t("change",[d.value,h.value])):(t("update:modelValue",h.value),t("change",h.value)),(F=(B=a.value)==null?void 0:B.onChange)==null||F.call(B)},v=B=>{B=B??e.min,d.value=B,p()},g=B=>{B=B??e.min,h.value=B,p()},y=j(()=>{var B,F,W;return e.range?or(e.modelValue)?e.modelValue:[d.value,(B=e.modelValue)!=null?B:h.value]:An(e.modelValue)?[d.value,h.value]:or(e.modelValue)?[(F=e.min)!=null?F:0,e.modelValue[1]]:[(W=e.min)!=null?W:0,e.modelValue]}),S=j(()=>Object.keys(e.marks||{}).map(B=>{var F;const W=Number(B);return{key:W,content:(F=e.marks)==null?void 0:F[W],isActive:W>=y.value[0]&&W<=y.value[1]}})),k=B=>G5(t0(B,[e.min,e.max]),e.direction),C=fe(!1),x=()=>{C.value=!0,s.value&&(l.value=s.value.getBoundingClientRect())};function E(B,F){if(!l.value)return 0;const{left:W,top:U,width:G,height:X}=l.value,oe=e.direction==="horizontal"?G:X,Z=oe*e.step/(e.max-e.min);let H=e.direction==="horizontal"?B-W:U+X-F;H<0&&(H=0),H>oe&&(H=oe);const q=Math.round(H/Z);return Xl.plus(e.min,Xl.times(q,e.step))}const _=(B,F)=>{h.value=E(B,F),p()},T=B=>{if(o.value)return;const{clientX:F,clientY:W}=B;s.value&&(l.value=s.value.getBoundingClientRect()),h.value=E(F,W),p()};function D([B,F]){return B>F&&([B,F]=[F,B]),e.direction==="vertical"?{bottom:t0(B,[e.min,e.max]),top:t0(e.max+e.min-F,[e.min,e.max])}:{left:t0(B,[e.min,e.max]),right:t0(e.max+e.min-F,[e.min,e.max])}}const P=(B,F)=>{d.value=E(B,F),p()},M=()=>{C.value=!1},$=j(()=>[r,{[`${r}-vertical`]:e.direction==="vertical",[`${r}-with-marks`]:!!e.marks}]),L=j(()=>[`${r}-track`,{[`${r}-track-disabled`]:o.value,[`${r}-track-vertical`]:e.direction==="vertical"}]);return{prefixCls:r,cls:$,trackCls:L,trackRef:s,computedValue:y,mergedDisabled:o,markList:S,getBtnStyle:k,getBarStyle:D,handleClick:T,handleMoveStart:x,handleEndMoving:_,handleMoveEnd:M,handleStartMoving:P,handleStartChange:v,handleEndChange:g}}});function pVe(e,t,n,r,o,a){const s=Ie("slider-ticks"),l=Ie("slider-dots"),c=Ie("slider-marks"),d=Ie("slider-button"),h=Ie("slider-input");return z(),Q("div",{class:ue(e.cls)},[I("div",{ref:"trackRef",class:ue(e.trackCls),onClick:t[0]||(t[0]=(...p)=>e.handleClick&&e.handleClick(...p))},[I("div",{class:ue(`${e.prefixCls}-bar`),style:Ke(e.getBarStyle(e.computedValue))},null,6),e.showTicks?(z(),Ye(s,{key:0,value:e.computedValue,step:e.step,min:e.min,max:e.max,direction:e.direction},null,8,["value","step","min","max","direction"])):Le("v-if",!0),e.marks?(z(),Ye(l,{key:1,data:e.markList,min:e.min,max:e.max,direction:e.direction},null,8,["data","min","max","direction"])):Le("v-if",!0),e.marks?(z(),Ye(c,{key:2,data:e.markList,min:e.min,max:e.max,direction:e.direction},null,8,["data","min","max","direction"])):Le("v-if",!0),e.range?(z(),Ye(d,{key:3,style:Ke(e.getBtnStyle(e.computedValue[0])),value:e.computedValue[0],direction:e.direction,disabled:e.mergedDisabled,min:e.min,max:e.max,"format-tooltip":e.formatTooltip,"show-tooltip":e.showTooltip,onMovestart:e.handleMoveStart,onMoving:e.handleStartMoving,onMoveend:e.handleMoveEnd},null,8,["style","value","direction","disabled","min","max","format-tooltip","show-tooltip","onMovestart","onMoving","onMoveend"])):Le("v-if",!0),O(d,{style:Ke(e.getBtnStyle(e.computedValue[1])),value:e.computedValue[1],direction:e.direction,disabled:e.mergedDisabled,min:e.min,max:e.max,"format-tooltip":e.formatTooltip,"show-tooltip":e.showTooltip,onMovestart:e.handleMoveStart,onMoving:e.handleEndMoving,onMoveend:e.handleMoveEnd},null,8,["style","value","direction","disabled","min","max","format-tooltip","show-tooltip","onMovestart","onMoving","onMoveend"])],2),e.showInput?(z(),Ye(h,{key:0,"model-value":e.computedValue,min:e.min,max:e.max,step:e.step,range:e.range,disabled:e.disabled,onStartChange:e.handleStartChange,onEndChange:e.handleEndChange},null,8,["model-value","min","max","step","range","disabled","onStartChange","onEndChange"])):Le("v-if",!0)],2)}var dM=Ve(hVe,[["render",pVe]]);const vVe=Object.assign(dM,{install:(e,t)=>{Xn(e,t);const n=Yn(t);e.component(n+dM.name,dM)}});var fM=Se({name:"Space",props:{align:{type:String},direction:{type:String,default:"horizontal"},size:{type:[Number,String,Array],default:"small"},wrap:{type:Boolean},fill:{type:Boolean}},setup(e,{slots:t}){const n=Te("space"),r=j(()=>{var l;return(l=e.align)!=null?l:e.direction==="horizontal"?"center":""}),o=j(()=>[n,{[`${n}-${e.direction}`]:e.direction,[`${n}-align-${r.value}`]:r.value,[`${n}-wrap`]:e.wrap,[`${n}-fill`]:e.fill}]);function a(l){if(Ze(l))return l;switch(l){case"mini":return 4;case"small":return 8;case"medium":return 16;case"large":return 24;default:return 8}}const s=l=>{const c={},d=`${a(or(e.size)?e.size[0]:e.size)}px`,h=`${a(or(e.size)?e.size[1]:e.size)}px`;return l?e.wrap?{marginBottom:h}:{}:(e.direction==="horizontal"&&(c.marginRight=d),(e.direction==="vertical"||e.wrap)&&(c.marginBottom=h),c)};return()=>{var l;const c=yf((l=t.default)==null?void 0:l.call(t),!0).filter(d=>d.type!==ks);return O("div",{class:o.value},[c.map((d,h)=>{var p,v;const g=t.split&&h>0;return O(Nt,{key:(p=d.key)!=null?p:`item-${h}`},[g&&O("div",{class:`${n}-item-split`,style:s(!1)},[(v=t.split)==null?void 0:v.call(t)]),O("div",{class:`${n}-item`,style:s(h===c.length-1)},[d])])})])}}});const mVe=Object.assign(fM,{install:(e,t)=>{Xn(e,t);const n=Yn(t);e.component(n+fM.name,fM)}});function H0e(e){const t=cs(e)?parseFloat(e):e;let n="";return Ze(e)||String(t)===e?n=t>1?"px":"%":n="px",{size:t,unit:n,isPx:n==="px"}}function _x({size:e,defaultSize:t,containerSize:n}){const r=H0e(e??t);return r.isPx?r.size:r.size*n}function gVe(e,t){return parseFloat(e)/parseFloat(t)}const yVe=Se({name:"Split",components:{ResizeTrigger:E0e},props:{component:{type:String,default:"div"},direction:{type:String,default:"horizontal"},size:{type:[Number,String],default:void 0},defaultSize:{type:[Number,String],default:.5},min:{type:[Number,String]},max:{type:[Number,String]},disabled:{type:Boolean,default:!1}},emits:{moveStart:e=>!0,moving:e=>!0,moveEnd:e=>!0,"update:size":e=>!0},setup(e,{emit:t}){const{direction:n,size:r,defaultSize:o,min:a,max:s}=nn(e),l=fe(0),c=fe(),d=Te("split"),[h,p]=fa(o.value,Xt({value:r})),v=j(()=>H0e(h.value)),g=j(()=>n.value==="horizontal"),y=j(()=>[d,{[`${d}-horizontal`]:g.value,[`${d}-vertical`]:!g.value}]),S=j(()=>{const{size:$,unit:L,isPx:B}=v.value;return{flex:`0 0 calc(${B?$:$*100}${L} - ${l.value/2}px)`}}),k={startPageX:0,startPageY:0,startContainerSize:0,startSize:0};async function C(){const $=()=>{var L,B;return g.value?(L=c.value)==null?void 0:L.clientWidth:((B=c.value)==null?void 0:B.clientHeight)||0};return(!c.value||$())&&await Cn(),$()}function x($,L){if(!L)return;const B=v.value.isPx?`${$}px`:gVe($,L);h.value!==B&&(p(B),t("update:size",B))}function E($,L){const B=_x({size:$,containerSize:L}),F=_x({size:a.value,defaultSize:"0px",containerSize:L}),W=_x({size:s.value,defaultSize:`${L}px`,containerSize:L});let U=B;return U=Math.max(U,F),U=Math.min(U,W),U}function _({startContainerSize:$,startSize:L,startPosition:B,endPosition:F}){const W=_x({size:L,containerSize:$});return E(`${W+(F-B)}px`,$)}function T($){t("moving",$);const L=g.value?_({startContainerSize:k.startContainerSize,startSize:k.startSize,startPosition:k.startPageX,endPosition:$.pageX}):_({startContainerSize:k.startContainerSize,startSize:k.startSize,startPosition:k.startPageY,endPosition:$.pageY});x(L,k.startContainerSize)}function D($){ro(window,"mousemove",T),ro(window,"mouseup",D),ro(window,"contextmenu",D),document.body.style.cursor="default",t("moveEnd",$)}async function P($){t("moveStart",$),k.startPageX=$.pageX,k.startPageY=$.pageY,k.startContainerSize=await C(),k.startSize=h.value,Mi(window,"mousemove",T),Mi(window,"mouseup",D),Mi(window,"contextmenu",D),document.body.style.cursor=g.value?"col-resize":"row-resize"}function M($){const{width:L,height:B}=$.contentRect;l.value=g.value?L:B}return bn(async()=>{const $=await C(),L=E(h.value,$);x(L,$)}),{prefixCls:d,classNames:y,isHorizontal:g,wrapperRef:c,onMoveStart:P,onTriggerResize:M,firstPaneStyles:S}}});function bVe(e,t,n,r,o,a){const s=Ie("ResizeTrigger");return z(),Ye(Wa(e.component),{ref:"wrapperRef",class:ue(e.classNames)},{default:de(()=>[I("div",{class:ue([`${e.prefixCls}-pane`,`${e.prefixCls}-pane-first`]),style:Ke(e.firstPaneStyles)},[vt(e.$slots,"first")],6),e.disabled?Le("v-if",!0):(z(),Ye(s,{key:0,"prefix-cls":`${e.prefixCls}-trigger`,direction:e.isHorizontal?"vertical":"horizontal",onMousedown:e.onMoveStart,onResize:e.onTriggerResize},{default:de(()=>[vt(e.$slots,"resize-trigger")]),icon:de(()=>[vt(e.$slots,"resize-trigger-icon")]),_:3},8,["prefix-cls","direction","onMousedown","onResize"])),I("div",{class:ue([`${e.prefixCls}-pane`,`${e.prefixCls}-pane-second`])},[vt(e.$slots,"second")],2)]),_:3},8,["class"])}var hM=Ve(yVe,[["render",bVe]]);const _Ve=Object.assign(hM,{install:(e,t)=>{Xn(e,t);const n=Yn(t);e.component(n+hM.name,hM)}}),SVe=Se({name:"Statistic",props:{title:String,value:{type:[Number,Object]},format:{type:String,default:"HH:mm:ss"},extra:String,start:{type:Boolean,default:!0},precision:{type:Number,default:0},separator:String,showGroupSeparator:{type:Boolean,default:!1},animation:{type:Boolean,default:!1},animationDuration:{type:Number,default:2e3},valueFrom:{type:Number,default:void 0},placeholder:{type:String},valueStyle:{type:Object}},setup(e){var t;const n=Te("statistic"),r=j(()=>Ze(e.value)?e.value:0),o=fe((t=e.valueFrom)!=null?t:e.value),a=fe(null),{value:s}=nn(e),l=j(()=>An(e.value)),c=(h=(v=>(v=e.valueFrom)!=null?v:0)(),p=r.value)=>{var v;h!==p&&(a.value=new Jm({from:{value:h},to:{value:p},duration:e.animationDuration,easing:"quartOut",onUpdate:g=>{o.value=g.value},onFinish:()=>{o.value=p}}),(v=a.value)==null||v.start())},d=j(()=>{let h=o.value;if(Ze(h)){Ze(e.precision)&&(h=Xl.round(h,e.precision).toFixed(e.precision));const p=String(h).split("."),v=e.showGroupSeparator?Number(p[0]).toLocaleString("en-US"):p[0],g=p[1];return{isNumber:!0,integer:v,decimal:g}}return e.format&&(h=ml(h).format(e.format)),{isNumber:!1,value:h}});return bn(()=>{e.animation&&e.start&&c()}),Rt(()=>e.start,h=>{h&&e.animation&&!a.value&&c()}),Rt(s,h=>{var p;a.value&&((p=a.value)==null||p.stop(),a.value=null),o.value=h,e.animation&&e.start&&c()}),{prefixCls:n,showPlaceholder:l,formatValue:d}}}),kVe={key:0};function xVe(e,t,n,r,o,a){return z(),Q("div",{class:ue(e.prefixCls)},[e.title||e.$slots.title?(z(),Q("div",{key:0,class:ue(`${e.prefixCls}-title`)},[vt(e.$slots,"title",{},()=>[We(ze(e.title),1)])],2)):Le("v-if",!0),I("div",{class:ue(`${e.prefixCls}-content`)},[I("div",{class:ue(`${e.prefixCls}-value`),style:Ke(e.valueStyle)},[e.showPlaceholder?(z(),Q("span",kVe,ze(e.placeholder),1)):(z(),Q(Nt,{key:1},[e.$slots.prefix?(z(),Q("span",{key:0,class:ue(`${e.prefixCls}-prefix`)},[vt(e.$slots,"prefix")],2)):Le("v-if",!0),e.formatValue.isNumber?(z(),Q(Nt,{key:1},[I("span",{class:ue(`${e.prefixCls}-value-integer`)},ze(e.formatValue.integer),3),e.formatValue.decimal?(z(),Q("span",{key:0,class:ue(`${e.prefixCls}-value-decimal`)}," ."+ze(e.formatValue.decimal),3)):Le("v-if",!0)],64)):(z(),Q(Nt,{key:2},[We(ze(e.formatValue.value),1)],64)),e.$slots.suffix?(z(),Q("span",{key:3,class:ue(`${e.prefixCls}-suffix`)},[vt(e.$slots,"suffix")],2)):Le("v-if",!0)],64))],6),e.extra||e.$slots.extra?(z(),Q("div",{key:0,class:ue(`${e.prefixCls}-extra`)},[vt(e.$slots,"extra",{},()=>[We(ze(e.extra),1)])],2)):Le("v-if",!0)],2)],2)}var pM=Ve(SVe,[["render",xVe]]);const CVe=[["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]];function vM(e,t){let n=e;return CVe.reduce((r,[o,a])=>{if(r.indexOf(o)!==-1){const s=Math.floor(n/a);return n-=s*a,r.replace(new RegExp(`${o}+`,"g"),l=>{const c=l.length;return String(s).padStart(c,"0")})}return r},t)}const wVe=Se({name:"Countdown",props:{title:String,value:{type:Number,default:()=>Date.now()+3e5},now:{type:Number,default:()=>Date.now()},format:{type:String,default:"HH:mm:ss"},start:{type:Boolean,default:!0},valueStyle:{type:Object}},emits:{finish:()=>!0},setup(e,{emit:t}){const n=Te("statistic"),{start:r,value:o,now:a,format:s}=nn(e),l=fe(vM(Math.max(ml(e.value).diff(ml(e.now),"millisecond"),0),e.format));Rt([o,a,s],()=>{const p=vM(Math.max(ml(e.value).diff(ml(e.now),"millisecond"),0),e.format);p!==l.value&&(l.value=p)});const c=fe(0),d=()=>{c.value&&(window.clearInterval(c.value),c.value=0)},h=()=>{ml(e.value).valueOf(){const p=ml(e.value).diff(ml(),"millisecond");p<=0&&(d(),t("finish")),l.value=vM(Math.max(p,0),e.format)},1e3/30))};return bn(()=>{e.start&&h()}),Io(()=>{d()}),Rt(r,p=>{p&&!c.value&&h()}),{prefixCls:n,displayValue:l}}});function EVe(e,t,n,r,o,a){return z(),Q("div",{class:ue([`${e.prefixCls}`,`${e.prefixCls}-countdown`])},[e.title||e.$slots.title?(z(),Q("div",{key:0,class:ue(`${e.prefixCls}-title`)},[vt(e.$slots,"title",{},()=>[We(ze(e.title),1)])],2)):Le("v-if",!0),I("div",{class:ue(`${e.prefixCls}-content`)},[I("div",{class:ue(`${e.prefixCls}-value`),style:Ke(e.valueStyle)},ze(e.displayValue),7)],2)],2)}var Hw=Ve(wVe,[["render",EVe]]);const TVe=Object.assign(pM,{Countdown:Hw,install:(e,t)=>{Xn(e,t);const n=Yn(t);e.component(n+pM.name,pM),e.component(n+Hw.name,Hw)}}),W0e=Symbol("ArcoSteps"),AVe=Se({name:"Steps",props:{type:{type:String,default:"default"},direction:{type:String,default:"horizontal"},labelPlacement:{type:String,default:"horizontal"},current:{type:Number,default:void 0},defaultCurrent:{type:Number,default:1},status:{type:String,default:"process"},lineLess:{type:Boolean,default:!1},small:{type:Boolean,default:!1},changeable:{type:Boolean,default:!1}},emits:{"update:current":e=>!0,change:(e,t)=>!0},setup(e,{emit:t,slots:n}){const{type:r,lineLess:o}=nn(e),a=Te("steps"),s=fe(e.defaultCurrent),l=j(()=>{var C;return(C=e.current)!=null?C:s.value}),c=j(()=>["navigation","arrow"].includes(e.type)?"horizontal":e.direction),d=j(()=>e.type==="dot"?c.value==="vertical"?"horizontal":"vertical":e.type==="navigation"?"horizontal":e.labelPlacement),h=C=>Cl.value?"wait":e.status,p=(C,x)=>{e.changeable&&(s.value=C,t("update:current",C),t("change",C,x))},v=Xt(new Map),g=j(()=>Array.from(v.values()).filter(C=>C.status==="error").map(C=>C.step)),y=(C,x)=>{v.set(C,x)},S=C=>{v.delete(C)},k=j(()=>[a,`${a}-${c.value}`,`${a}-label-${d.value}`,`${a}-mode-${r.value}`,{[`${a}-changeable`]:e.changeable,[`${a}-size-small`]:e.small&&e.type!=="dot",[`${a}-line-less`]:o.value}]);return ri(W0e,Xt({type:r,direction:c,labelPlacement:d,lineLess:o,current:l,errorSteps:g,getStatus:h,addItem:y,removeItem:S,onClick:p,parentCls:a})),{cls:k}}});function IVe(e,t,n,r,o,a){return z(),Q("div",{class:ue(e.cls)},[vt(e.$slots,"default")],2)}var mM=Ve(AVe,[["render",IVe]]);const LVe=Se({name:"Step",components:{IconCheck:eg,IconClose:ds},props:{title:String,description:String,status:{type:String},disabled:{type:Boolean,default:!1}},setup(e){const t=Te("steps-item"),n=_o(),r=Te("steps-icon"),o=On(W0e,void 0),a=j(()=>{var y;return(y=o?.type)!=null?y:"default"}),s=fe(),{computedIndex:l}=cH({itemRef:s,selector:`.${t}`,parentClassName:o?.parentCls}),c=j(()=>l.value+1),d=j(()=>{var y,S;return(S=(y=e.status)!=null?y:o?.getStatus(c.value))!=null?S:"process"}),h=j(()=>{var y;return(y=o?.errorSteps.includes(c.value+1))!=null?y:!1});n&&o?.addItem(n.uid,Xt({step:c,status:d})),Io(()=>{n&&o?.removeItem(n.uid)});const p=j(()=>!o?.lineLess&&(o?.labelPlacement==="vertical"||o?.direction==="vertical")),v=y=>{e.disabled||o?.onClick(c.value,y)},g=j(()=>[t,`${t}-${d.value}`,{[`${t}-active`]:c.value===o?.current,[`${t}-next-error`]:h.value,[`${t}-disabled`]:e.disabled}]);return{prefixCls:t,iconCls:r,cls:g,itemRef:s,showTail:p,stepNumber:c,computedStatus:d,type:a,handleClick:v}}});function DVe(e,t,n,r,o,a){const s=Ie("icon-check"),l=Ie("icon-close");return z(),Q("div",{ref:"itemRef",class:ue(e.cls),onClick:t[0]||(t[0]=(...c)=>e.handleClick&&e.handleClick(...c))},[e.showTail?(z(),Q("div",{key:0,class:ue(`${e.prefixCls}-tail`)},null,2)):Le("v-if",!0),e.type!=="arrow"?(z(),Q("div",{key:1,class:ue(`${e.prefixCls}-node`)},[vt(e.$slots,"node",{step:e.stepNumber,status:e.computedStatus},()=>[e.type!=="dot"?(z(),Q("div",{key:0,class:ue(e.iconCls)},[vt(e.$slots,"icon",{step:e.stepNumber,status:e.computedStatus},()=>[e.computedStatus==="finish"?(z(),Ye(s,{key:0})):e.computedStatus==="error"?(z(),Ye(l,{key:1})):(z(),Q(Nt,{key:2},[We(ze(e.stepNumber),1)],64))])],2)):Le("v-if",!0)])],2)):Le("v-if",!0),I("div",{class:ue(`${e.prefixCls}-content`)},[I("div",{class:ue(`${e.prefixCls}-title`)},[vt(e.$slots,"default",{},()=>[We(ze(e.title),1)])],2),e.description||e.$slots.description?(z(),Q("div",{key:0,class:ue(`${e.prefixCls}-description`)},[vt(e.$slots,"description",{},()=>[We(ze(e.description),1)])],2)):Le("v-if",!0)],2)],2)}var Ww=Ve(LVe,[["render",DVe]]);const PVe=Object.assign(mM,{Step:Ww,install:(e,t)=>{Xn(e,t);const n=Yn(t);e.component(n+mM.name,mM),e.component(n+Ww.name,Ww)}}),RVe=Se({name:"Switch",components:{IconLoading:Xa},props:{modelValue:{type:[String,Number,Boolean],default:void 0},defaultChecked:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},type:{type:String,default:"circle"},size:{type:String},checkedValue:{type:[String,Number,Boolean],default:!0},uncheckedValue:{type:[String,Number,Boolean],default:!1},checkedColor:{type:String},uncheckedColor:{type:String},beforeChange:{type:Function},checkedText:{type:String},uncheckedText:{type:String}},emits:{"update:modelValue":e=>!0,change:(e,t)=>!0,focus:e=>!0,blur:e=>!0},setup(e,{emit:t}){const{disabled:n,size:r,modelValue:o}=nn(e),a=Te("switch"),{mergedSize:s}=wa(r),{mergedDisabled:l,mergedSize:c,eventHandlers:d}=Do({disabled:n,size:s}),h=fe(e.defaultChecked?e.checkedValue:e.uncheckedValue),p=j(()=>{var _;return((_=e.modelValue)!=null?_:h.value)===e.checkedValue}),v=fe(!1),g=j(()=>v.value||e.loading),y=(_,T)=>{var D,P;h.value=_?e.checkedValue:e.uncheckedValue,t("update:modelValue",h.value),t("change",h.value,T),(P=(D=d.value)==null?void 0:D.onChange)==null||P.call(D,T)},S=async _=>{if(g.value||l.value)return;const T=!p.value,D=T?e.checkedValue:e.uncheckedValue,P=e.beforeChange;if(En(P)){v.value=!0;try{const M=await P(D);(M??!0)&&y(T,_)}finally{v.value=!1}}else y(T,_)},k=_=>{var T,D;t("focus",_),(D=(T=d.value)==null?void 0:T.onFocus)==null||D.call(T,_)},C=_=>{var T,D;t("blur",_),(D=(T=d.value)==null?void 0:T.onBlur)==null||D.call(T,_)};Rt(o,_=>{(An(_)||Tl(_))&&(h.value=e.uncheckedValue)});const x=j(()=>[a,`${a}-type-${e.type}`,{[`${a}-small`]:c.value==="small"||c.value==="mini",[`${a}-checked`]:p.value,[`${a}-disabled`]:l.value,[`${a}-loading`]:g.value,[`${a}-custom-color`]:e.type==="line"&&(e.checkedColor||e.uncheckedColor)}]),E=j(()=>{if(p.value&&e.checkedColor)return e.type==="line"?{"--custom-color":e.checkedColor}:{backgroundColor:e.checkedColor};if(!p.value&&e.uncheckedColor)return e.type==="line"?{"--custom-color":e.uncheckedColor}:{backgroundColor:e.uncheckedColor}});return{prefixCls:a,cls:x,mergedDisabled:l,buttonStyle:E,computedCheck:p,computedLoading:g,handleClick:S,handleFocus:k,handleBlur:C}}}),MVe=["aria-checked","disabled"];function OVe(e,t,n,r,o,a){const s=Ie("icon-loading");return z(),Q("button",{type:"button",role:"switch","aria-checked":e.computedCheck,class:ue(e.cls),style:Ke(e.buttonStyle),disabled:e.mergedDisabled,onClick:t[0]||(t[0]=(...l)=>e.handleClick&&e.handleClick(...l)),onFocus:t[1]||(t[1]=(...l)=>e.handleFocus&&e.handleFocus(...l)),onBlur:t[2]||(t[2]=(...l)=>e.handleBlur&&e.handleBlur(...l))},[I("span",{class:ue(`${e.prefixCls}-handle`)},[I("span",{class:ue(`${e.prefixCls}-handle-icon`)},[e.computedLoading?(z(),Ye(s,{key:0})):(z(),Q(Nt,{key:1},[e.computedCheck?vt(e.$slots,"checked-icon",{key:0}):vt(e.$slots,"unchecked-icon",{key:1})],64))],2)],2),Le(" prettier-ignore "),e.type!=="line"&&e.size!=="small"&&(e.$slots.checked||e.checkedText||e.$slots.unchecked||e.uncheckedText)?(z(),Q(Nt,{key:0},[I("span",{class:ue(`${e.prefixCls}-text-holder`)},[e.computedCheck?vt(e.$slots,"checked",{key:0},()=>[We(ze(e.checkedText),1)]):vt(e.$slots,"unchecked",{key:1},()=>[We(ze(e.uncheckedText),1)])],2),I("span",{class:ue(`${e.prefixCls}-text`)},[e.computedCheck?vt(e.$slots,"checked",{key:0},()=>[We(ze(e.checkedText),1)]):vt(e.$slots,"unchecked",{key:1},()=>[We(ze(e.uncheckedText),1)])],2)],64)):Le("v-if",!0)],46,MVe)}var gM=Ve(RVe,[["render",OVe]]);const $Ve=Object.assign(gM,{install:(e,t)=>{Xn(e,t);const n=Yn(t);e.component(n+gM.name,gM)}}),BVe=e=>{let t=0;const n=r=>{if(or(r)&&r.length>0)for(const o of r)o.children?n(o.children):t+=1};return n(e),t},G0e=e=>{let t=0;if(or(e)&&e.length>0){t=1;for(const n of e)if(n.children){const r=G0e(n.children);r>0&&(t=Math.max(t,r+1))}}return t},Are=(e,t)=>{let{parent:n}=e;for(;n;)n.fixed===t&&(t==="left"?n.isLastLeftFixed=!0:n.isFirstRightFixed=!0),n=n.parent},NVe=(e,t,n)=>{const r=G0e(e);t.clear();const o=[],a=[...Array(r)].map(()=>[]);let s,l;const c=(d,{level:h=0,parent:p,fixed:v}={})=>{var g;for(const y of d){const S={...y,parent:p};if(or(S.children)){const k=BVe(S.children);k>1&&(S.colSpan=k),a[h].push(S),c(S.children,{level:h+1,parent:S,fixed:S.fixed})}else{const k=r-h;k>1&&(S.rowSpan=k),(v||S.fixed)&&(S.fixed=(g=S.fixed)!=null?g:v,S.fixed==="left"?s=o.length:An(l)&&(l=o.length)),(An(S.dataIndex)||Tl(S.dataIndex))&&(S.dataIndex=`__arco_data_index_${o.length}`),n[S.dataIndex]&&(S._resizeWidth=n[S.dataIndex]),t.set(S.dataIndex,S),o.push(S),a[h].push(S)}}};return c(e),An(s)||(o[s].isLastLeftFixed=!0,Are(o[s],"left")),An(l)||(o[l].isFirstRightFixed=!0,Are(o[l],"right")),{dataColumns:o,groupColumns:a}},FVe=(e,t)=>{for(let n=0;n{var n;const r=FVe(t,e.name);if(r<=0)return 0;let o=0;const a=t.slice(0,r);for(const s of a)o+=(n=s.width)!=null?n:0;return o},BH=e=>e.children&&e.children.length>0?BH(e.children[0]):e,VVe=e=>e.children&&e.children.length>0?BH(e.children[e.children.length-1]):e,zVe=(e,{dataColumns:t,operations:n})=>{var r,o,a;let s=0;if(e.fixed==="left"){for(const d of n)s+=(r=d.width)!=null?r:40;const c=BH(e);for(const d of t){if(c.dataIndex===d.dataIndex)break;s+=(a=(o=d._resizeWidth)!=null?o:d.width)!=null?a:0}return s}const l=VVe(e);for(let c=t.length-1;c>0;c--){const d=t[c];if(l.dataIndex===d.dataIndex)break;d.fixed==="right"&&(s+=d.width)}return s},K0e=(e,t)=>t.fixed?[`${e}-col-fixed-left`,{[`${e}-col-fixed-left-last`]:t.isLastLeftFixed}]:[],q0e=(e,t)=>t.fixed==="left"?[`${e}-col-fixed-left`,{[`${e}-col-fixed-left-last`]:t.isLastLeftFixed}]:t.fixed==="right"?[`${e}-col-fixed-right`,{[`${e}-col-fixed-right-first`]:t.isFirstRightFixed}]:[],Y0e=(e,{dataColumns:t,operations:n})=>{if(e.fixed){const r=`${zVe(e,{dataColumns:t,operations:n})}px`;return e.fixed==="left"?{left:r}:{right:r}}return{}},X0e=(e,t)=>e.fixed?{left:`${jVe(e,t)}px`}:{};function Z0e(e){return e.map(t=>{const n={...t};return n.children&&(n.children=Z0e(n.children)),n})}function J0e(e){return e.map(t=>{const n=t.raw;return t.children&&n.children&&(n.children=J0e(t.children)),t.raw})}const NH=e=>{const t=[];if(e.children)for(const n of e.children)n.isLeaf?t.push(n.key):t.push(...NH(n));return t},UVe=(e,t)=>{let n=!1,r=!1;const o=t.filter(a=>e.includes(a));return o.length>0&&(o.length>=t.length?n=!0:r=!0),{checked:n,indeterminate:r}},K2=(e,t,n=!1)=>n?e.filter(r=>!t.includes(r)):Array.from(new Set(e.concat(t))),HVe=e=>{const t=[];for(let n=0;n{var s,l,c;const d=j(()=>{var E;return((E=n.value)==null?void 0:E.type)==="radio"}),h=fe((c=(l=t.value)!=null?l:(s=n.value)==null?void 0:s.defaultSelectedRowKeys)!=null?c:[]),p=j(()=>{var E,_,T;return(T=(_=e.value)!=null?_:(E=n.value)==null?void 0:E.selectedRowKeys)!=null?T:h.value}),v=j(()=>p.value.filter(E=>r.value.includes(E)));return{isRadio:d,selectedRowKeys:p,currentSelectedRowKeys:v,handleSelectAll:E=>{const _=K2(p.value,o.value,!E);h.value=_,a("selectAll",E),a("selectionChange",_),a("update:selectedKeys",_)},handleSelect:(E,_)=>{const T=d.value?[_.key]:K2(p.value,[_.key],!E);h.value=T,a("select",T,_.key,_.raw),a("selectionChange",T),a("update:selectedKeys",T)},handleSelectAllLeafs:(E,_)=>{const T=K2(p.value,NH(E),!_);h.value=T,a("select",T,E.key,E.raw),a("selectionChange",T),a("update:selectedKeys",T)},select:(E,_=!0)=>{const T=[].concat(E),D=d.value?T:K2(p.value,T,!_);h.value=D,a("selectionChange",D),a("update:selectedKeys",D)},selectAll:(E=!0)=>{const _=K2(p.value,o.value,!E);h.value=_,a("selectionChange",_),a("update:selectedKeys",_)},clearSelected:()=>{h.value=[],a("selectionChange",[]),a("update:selectedKeys",[])}}},GVe=({expandedKeys:e,defaultExpandedKeys:t,defaultExpandAllRows:n,expandable:r,allRowKeys:o,emit:a})=>{const l=fe((()=>{var v,g;return t.value?t.value:(v=r.value)!=null&&v.defaultExpandedRowKeys?r.value.defaultExpandedRowKeys:n.value||(g=r.value)!=null&&g.defaultExpandAllRows?[...o.value]:[]})()),c=j(()=>{var v,g,y;return(y=(g=e.value)!=null?g:(v=r.value)==null?void 0:v.expandedRowKeys)!=null?y:l.value});return{expandedRowKeys:c,handleExpand:(v,g)=>{const S=c.value.includes(v)?c.value.filter(k=>v!==k):c.value.concat(v);l.value=S,a("expand",v,g),a("expandedChange",S),a("update:expandedKeys",S)},expand:(v,g=!0)=>{const y=[].concat(v),S=g?c.value.concat(y):c.value.filter(k=>!y.includes(k));l.value=S,a("expandedChange",S),a("update:expandedKeys",S)},expandAll:(v=!0)=>{const g=v?[...o.value]:[];l.value=g,a("expandedChange",g),a("update:expandedKeys",g)}}},KVe=(e,t)=>{var n,r;const o=fe(br(e.pagination)&&(n=e.pagination.defaultCurrent)!=null?n:1),a=fe(br(e.pagination)&&(r=e.pagination.defaultPageSize)!=null?r:10),s=j(()=>{var h;return br(e.pagination)&&(h=e.pagination.pageSize)!=null?h:a.value});return{page:j(()=>{var h;return br(e.pagination)&&(h=e.pagination.current)!=null?h:o.value}),pageSize:s,handlePageChange:h=>{o.value=h,t("pageChange",h)},handlePageSizeChange:h=>{a.value=h,t("pageSizeChange",h)}}},qVe=Se({name:"ColGroup",props:{dataColumns:{type:Array,required:!0},operations:{type:Array,required:!0},columnWidth:{type:Object}},setup(){return{fixedWidth:(t,n)=>{if(t){const r=Math.max(t,n||0);return{width:`${t}px`,minWidth:`${r}px`,maxWidth:`${t}px`}}if(n)return{minWidth:`${n}px`}}}}});function YVe(e,t,n,r,o,a){return z(),Q("colgroup",null,[(z(!0),Q(Nt,null,gn(e.operations,s=>(z(),Q("col",{key:`arco-col-${s.name}`,class:ue(`arco-table-${s.name}-col`),style:Ke(e.fixedWidth(s.width))},null,6))),128)),(z(!0),Q(Nt,null,gn(e.dataColumns,s=>(z(),Q("col",{key:`arco-col-${s.dataIndex}`,style:Ke(e.fixedWidth(e.columnWidth&&s.dataIndex&&e.columnWidth[s.dataIndex]||s.width,s.minWidth))},null,4))),128))])}var Sx=Ve(qVe,[["render",YVe]]),ub=Se({name:"Thead",setup(e,{slots:t}){return()=>{var n,r;return O((r=(n=t.thead)==null?void 0:n.call(t)[0])!=null?r:"thead",null,{default:t.default})}}}),cb=Se({name:"Tbody",setup(e,{slots:t}){return()=>{var n,r;return O((r=(n=t.tbody)==null?void 0:n.call(t)[0])!=null?r:"tbody",null,{default:t.default})}}}),kh=Se({name:"Tr",props:{expand:{type:Boolean},empty:{type:Boolean},checked:{type:Boolean},rowIndex:Number,record:{type:Object,default:()=>({})}},setup(e,{slots:t}){const n=Te("table"),r=j(()=>[`${n}-tr`,{[`${n}-tr-expand`]:e.expand,[`${n}-tr-empty`]:e.empty,[`${n}-tr-checked`]:e.checked}]);return()=>{var o,a,s;return O((s=(a=t.tr)==null?void 0:a.call(t,{rowIndex:e.rowIndex,record:(o=e.record)==null?void 0:o.raw})[0])!=null?s:"tr",{class:r.value},{default:t.default})}}});const XVe=Se({name:"IconCaretDown",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-caret-down`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),ZVe=["stroke-width","stroke-linecap","stroke-linejoin"];function JVe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24.938 34.829a1.2 1.2 0 0 1-1.875 0L9.56 17.949c-.628-.785-.069-1.949.937-1.949h27.007c1.006 0 1.565 1.164.937 1.95L24.937 34.829Z",fill:"currentColor",stroke:"none"},null,-1)]),14,ZVe)}var yM=Ve(XVe,[["render",JVe]]);const FH=Object.assign(yM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+yM.name,yM)}}),QVe=Se({name:"IconCaretUp",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-caret-up`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),eze=["stroke-width","stroke-linecap","stroke-linejoin"];function tze(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M23.063 13.171a1.2 1.2 0 0 1 1.875 0l13.503 16.88c.628.785.069 1.949-.937 1.949H10.497c-1.006 0-1.565-1.164-.937-1.95l13.503-16.879Z",fill:"currentColor",stroke:"none"},null,-1)]),14,eze)}var bM=Ve(QVe,[["render",tze]]);const Q0e=Object.assign(bM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+bM.name,bM)}}),nze=Se({name:"IconFilter",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-filter`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),rze=["stroke-width","stroke-linecap","stroke-linejoin"];function ize(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M30 42V22.549a1 1 0 0 1 .463-.844l10.074-6.41A1 1 0 0 0 41 14.45V8a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v6.451a1 1 0 0 0 .463.844l10.074 6.41a1 1 0 0 1 .463.844V37"},null,-1)]),14,rze)}var _M=Ve(nze,[["render",ize]]);const jH=Object.assign(_M,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+_M.name,_M)}}),oze=({column:e,tableCtx:t})=>{const n=j(()=>{var d;if(e.value.dataIndex&&e.value.dataIndex===((d=t.sorter)==null?void 0:d.field))return t.sorter.direction}),r=j(()=>{var d,h,p;return(p=(h=(d=e.value)==null?void 0:d.sortable)==null?void 0:h.sortDirections)!=null?p:[]}),o=j(()=>r.value.length>0),a=j(()=>r.value.includes("ascend")),s=j(()=>r.value.includes("descend")),l=j(()=>{var d,h;return n.value?n.value===r.value[0]&&(h=r.value[1])!=null?h:"":(d=r.value[0])!=null?d:""});return{sortOrder:n,hasSorter:o,hasAscendBtn:a,hasDescendBtn:s,nextSortOrder:l,handleClickSorter:d=>{var h;e.value.dataIndex&&((h=t.onSorterChange)==null||h.call(t,e.value.dataIndex,l.value,d))}}},sze=({column:e,tableCtx:t})=>{const n=j(()=>{var g;return e.value.dataIndex&&((g=t.filters)!=null&&g[e.value.dataIndex])?t.filters[e.value.dataIndex]:[]}),r=fe(!1),o=j(()=>n.value.length>0),a=j(()=>{var g;return!!((g=e.value.filterable)!=null&&g.multiple)}),s=fe(n.value);Rt(n,g=>{or(g)&&String(g)!==String(s.value)&&(s.value=g)});const l=g=>{r.value=g},c=g=>{s.value=g};return{filterPopupVisible:r,isFilterActive:o,isMultipleFilter:a,columnFilterValue:s,handleFilterPopupVisibleChange:l,setFilterValue:c,handleCheckboxFilterChange:g=>{c(g)},handleRadioFilterChange:g=>{c([g])},handleFilterConfirm:g=>{var y;e.value.dataIndex&&((y=t.onFilterChange)==null||y.call(t,e.value.dataIndex,s.value,g)),l(!1)},handleFilterReset:g=>{var y;c([]),e.value.dataIndex&&((y=t.onFilterChange)==null||y.call(t,e.value.dataIndex,s.value,g)),l(!1)}}},u3=Symbol("ArcoTable"),Ire=Symbol("ArcoTableColumn");function Lre(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wi(e)}var eve=Se({name:"AutoTooltip",inheritAttrs:!1,props:{tooltipProps:{type:Object}},setup(e,{attrs:t,slots:n}){const r=Te("auto-tooltip"),o=fe(),a=fe(),s=fe(""),l=fe(!1),c=()=>{if(o.value&&a.value){const v=a.value.offsetWidth>o.value.offsetWidth;v!==l.value&&(l.value=v)}},d=()=>{var v;(v=a.value)!=null&&v.textContent&&a.value.textContent!==s.value&&(s.value=a.value.textContent)},h=()=>{d(),c()};bn(()=>{d(),c()}),Qa(()=>{d(),c()});const p=()=>O("span",Vt({ref:o,class:r},t),[O(x0,{onResize:h},{default:()=>{var v;return[O("span",{ref:a,class:`${r}-content`},[(v=n.default)==null?void 0:v.call(n)])]}})]);return()=>{let v;if(l.value){let g;return O(Zc,Vt({content:s.value,onResize:h},e.tooltipProps),Lre(g=p())?g:{default:()=>[g]})}return O(x0,{onResize:h},Lre(v=p())?v:{default:()=>[v]})}}});function SM(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wi(e)}var db=Se({name:"Th",props:{column:{type:Object,default:()=>({})},operations:{type:Array,default:()=>[]},dataColumns:{type:Array,default:()=>[]},resizable:Boolean},setup(e,{slots:t}){const{column:n}=nn(e),r=Te("table"),{t:o}=No(),a=On(u3,{}),s=j(()=>{var oe;return((oe=e.column)==null?void 0:oe.dataIndex)&&a.resizingColumn===e.column.dataIndex}),l=j(()=>{var oe;if(br((oe=e.column)==null?void 0:oe.tooltip))return e.column.tooltip}),c=j(()=>{var oe;return(oe=e.column)!=null&&oe.filterable&&El(e.column.filterable.alignLeft)?e.column.filterable.alignLeft:a.filterIconAlignLeft}),{sortOrder:d,hasSorter:h,hasAscendBtn:p,hasDescendBtn:v,nextSortOrder:g,handleClickSorter:y}=oze({column:n,tableCtx:a}),{filterPopupVisible:S,isFilterActive:k,isMultipleFilter:C,columnFilterValue:x,handleFilterPopupVisibleChange:E,setFilterValue:_,handleCheckboxFilterChange:T,handleRadioFilterChange:D,handleFilterConfirm:P,handleFilterReset:M}=sze({column:n,tableCtx:a}),$=()=>{var oe,Z,H,q,ee;let ne,ae;const{filterable:re}=e.column;return(oe=e.column.slots)!=null&&oe["filter-content"]?(Z=e.column.slots)==null?void 0:Z["filter-content"]({filterValue:x.value,setFilterValue:_,handleFilterConfirm:P,handleFilterReset:M}):re?.slotName?(q=(H=a?.slots)==null?void 0:H[re?.slotName])==null?void 0:q.call(H,{filterValue:x.value,setFilterValue:_,handleFilterConfirm:P,handleFilterReset:M}):re?.renderContent?re.renderContent({filterValue:x.value,setFilterValue:_,handleFilterConfirm:P,handleFilterReset:M}):O("div",{class:`${r}-filters-content`},[O("ul",{class:`${r}-filters-list`},[(ee=re?.filters)==null?void 0:ee.map((ke,Ne)=>{var me;return O("li",{class:`${r}-filters-item`,key:Ne},[C.value?O(Uc,{value:ke.value,modelValue:x.value,uninjectGroupContext:!0,onChange:T},{default:()=>[ke.text]}):O(Pm,{value:ke.value,modelValue:(me=x.value[0])!=null?me:"",uninjectGroupContext:!0,onChange:D},{default:()=>[ke.text]})])})]),O("div",{class:`${r}-filters-bottom`},[O(Xo,{size:"mini",onClick:M},SM(ne=o("table.resetText"))?ne:{default:()=>[ne]}),O(Xo,{type:"primary",size:"mini",onClick:P},SM(ae=o("table.okText"))?ae:{default:()=>[ae]})])])},L=()=>{const{filterable:oe}=e.column;return oe?O(ha,Vt({popupVisible:S.value,trigger:"click",autoFitPosition:!0,popupOffset:c.value?4:0,onPopupVisibleChange:E},oe.triggerProps),{default:()=>[O(Lo,{class:[`${r}-filters`,{[`${r}-filters-active`]:k.value,[`${r}-filters-open`]:S.value,[`${r}-filters-align-left`]:c.value}],disabled:!c.value,onClick:Z=>Z.stopPropagation()},{default:()=>{var Z,H,q,ee,ne;return[(ne=(ee=(H=(Z=e.column.slots)==null?void 0:Z["filter-icon"])==null?void 0:H.call(Z))!=null?ee:(q=oe.icon)==null?void 0:q.call(oe))!=null?ne:O(jH,null,null)]}})],content:$}):null},B=j(()=>{var oe,Z;const H=[`${r}-cell`,`${r}-cell-align-${(Z=(oe=e.column)==null?void 0:oe.align)!=null?Z:e.column.children?"center":"left"}`];return h.value&&H.push(`${r}-cell-with-sorter`,{[`${r}-cell-next-ascend`]:g.value==="ascend",[`${r}-cell-next-descend`]:g.value==="descend"}),c.value&&H.push(`${r}-cell-with-filter`),H}),F=()=>{var oe,Z,H,q,ee,ne;return t.default?t.default():(oe=e.column)!=null&&oe.titleSlotName&&((Z=a.slots)!=null&&Z[e.column.titleSlotName])?(q=(H=a.slots)[e.column.titleSlotName])==null?void 0:q.call(H,{column:e.column}):(ne=(ee=e.column)==null?void 0:ee.slots)!=null&&ne.title?e.column.slots.title():En(e.column.title)?e.column.title():e.column.title},W=()=>{var oe,Z,H;let q;return O("span",{class:B.value,onClick:h.value?y:void 0},[(oe=e.column)!=null&&oe.ellipsis&&((Z=e.column)!=null&&Z.tooltip)?O(eve,{class:`${r}-th-title`,tooltipProps:l.value},SM(q=F())?q:{default:()=>[q]}):O("span",{class:[`${r}-th-title`,{[`${r}-text-ellipsis`]:(H=e.column)==null?void 0:H.ellipsis}]},[F()]),h.value&&O("span",{class:`${r}-sorter`},[p.value&&O("div",{class:[`${r}-sorter-icon`,{[`${r}-sorter-icon-active`]:d.value==="ascend"}]},[O(Q0e,null,null)]),v.value&&O("div",{class:[`${r}-sorter-icon`,{[`${r}-sorter-icon-active`]:d.value==="descend"}]},[O(FH,null,null)])]),c.value&&L()])},U=j(()=>{var oe,Z;return{...Y0e(e.column,{dataColumns:e.dataColumns,operations:e.operations}),...(oe=e.column)==null?void 0:oe.cellStyle,...(Z=e.column)==null?void 0:Z.headerCellStyle}}),G=j(()=>{var oe,Z;return[`${r}-th`,{[`${r}-col-sorted`]:!!d.value,[`${r}-th-resizing`]:s.value},...q0e(r,e.column),(oe=e.column)==null?void 0:oe.cellClass,(Z=e.column)==null?void 0:Z.headerCellClass]}),X=oe=>{var Z,H,q;(Z=e.column)!=null&&Z.dataIndex&&((q=a.onThMouseDown)==null||q.call(a,(H=e.column)==null?void 0:H.dataIndex,oe))};return()=>{var oe,Z,H,q;const ee=(oe=e.column.colSpan)!=null?oe:1,ne=(Z=e.column.rowSpan)!=null?Z:1;return O((q=(H=t.th)==null?void 0:H.call(t,{column:e.column})[0])!=null?q:"th",{class:G.value,style:U.value,colspan:ee>1?ee:void 0,rowspan:ne>1?ne:void 0},{default:()=>[W(),!c.value&&L(),e.resizable&&O("span",{class:`${r}-column-handle`,onMousedown:X},null)]})}}});function aze(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wi(e)}var r0=Se({name:"Td",props:{rowIndex:Number,record:{type:Object,default:()=>({})},column:{type:Object,default:()=>({})},type:{type:String,default:"normal"},operations:{type:Array,default:()=>[]},dataColumns:{type:Array,default:()=>[]},colSpan:{type:Number,default:1},rowSpan:{type:Number,default:1},isFixedExpand:{type:Boolean,default:!1},containerWidth:{type:Number},showExpandBtn:{type:Boolean,default:!1},indentSize:{type:Number,default:0},renderExpandBtn:{type:Function},summary:{type:Boolean,default:!1}},setup(e,{slots:t}){const n=Te("table"),r=j(()=>{var k;if(br((k=e.column)==null?void 0:k.tooltip))return e.column.tooltip}),o=j(()=>{var k,C;return((k=e.column)==null?void 0:k.dataIndex)&&((C=p.sorter)==null?void 0:C.field)===e.column.dataIndex}),a=j(()=>{var k;return((k=e.column)==null?void 0:k.dataIndex)&&p.resizingColumn===e.column.dataIndex}),s=()=>{var k,C,x,E,_,T;return e.summary?En((k=e.column)==null?void 0:k.summaryCellClass)?e.column.summaryCellClass((C=e.record)==null?void 0:C.raw):(x=e.column)==null?void 0:x.summaryCellClass:En((E=e.column)==null?void 0:E.bodyCellClass)?e.column.bodyCellClass((_=e.record)==null?void 0:_.raw):(T=e.column)==null?void 0:T.bodyCellClass},l=j(()=>{var k;return[`${n}-td`,{[`${n}-col-sorted`]:o.value,[`${n}-td-resizing`]:a.value},...q0e(n,e.column),(k=e.column)==null?void 0:k.cellClass,s()]}),c=()=>{var k,C,x,E,_,T;return e.summary?En((k=e.column)==null?void 0:k.summaryCellStyle)?e.column.summaryCellStyle((C=e.record)==null?void 0:C.raw):(x=e.column)==null?void 0:x.summaryCellStyle:En((E=e.column)==null?void 0:E.bodyCellStyle)?e.column.bodyCellStyle((_=e.record)==null?void 0:_.raw):(T=e.column)==null?void 0:T.bodyCellStyle},d=j(()=>{var k;const C=Y0e(e.column,{dataColumns:e.dataColumns,operations:e.operations}),x=c();return{...C,...(k=e.column)==null?void 0:k.cellStyle,...x}}),h=j(()=>{if(e.isFixedExpand&&e.containerWidth)return{width:`${e.containerWidth}px`}}),p=On(u3,{}),v=()=>{var k,C,x,E,_,T,D,P;if(t.default)return t.default();const M={record:(k=e.record)==null?void 0:k.raw,column:e.column,rowIndex:(C=e.rowIndex)!=null?C:-1};return t.cell?t.cell(M):(x=e.column.slots)!=null&&x.cell?e.column.slots.cell(M):e.column.render?e.column.render(M):e.column.slotName&&((E=p.slots)!=null&&E[e.column.slotName])?(T=(_=p.slots)[e.column.slotName])==null?void 0:T.call(_,M):String((P=hm((D=e.record)==null?void 0:D.raw,e.column.dataIndex))!=null?P:"")},g=fe(!1),y=k=>{var C,x;En(p.loadMore)&&!((C=e.record)!=null&&C.isLeaf)&&!((x=e.record)!=null&&x.children)&&(g.value=!0,new Promise(E=>{var _;(_=p.loadMore)==null||_.call(p,e.record.raw,E)}).then(E=>{var _;(_=p.addLazyLoadData)==null||_.call(p,E,e.record),g.value=!1})),k.stopPropagation()},S=()=>{var k,C,x,E,_,T;let D;return O("span",{class:[`${n}-cell`,`${n}-cell-align-${(C=(k=e.column)==null?void 0:k.align)!=null?C:"left"}`,{[`${n}-cell-fixed-expand`]:e.isFixedExpand,[`${n}-cell-expand-icon`]:e.showExpandBtn}],style:h.value},[e.indentSize>0&&O("span",{style:{paddingLeft:`${e.indentSize}px`}},null),e.showExpandBtn&&O("span",{class:`${n}-cell-inline-icon`,onClick:y},[g.value?O(Xa,null,null):(x=e.renderExpandBtn)==null?void 0:x.call(e,e.record,!1)]),(E=e.column)!=null&&E.ellipsis&&((_=e.column)!=null&&_.tooltip)?O(eve,{class:`${n}-td-content`,tooltipProps:r.value},aze(D=v())?D:{default:()=>[D]}):O("span",{class:[`${n}-td-content`,{[`${n}-text-ellipsis`]:(T=e.column)==null?void 0:T.ellipsis}]},[v()])])};return()=>{var k,C,x,E;return O((E=(x=t.td)==null?void 0:x.call(t,{record:(k=e.record)==null?void 0:k.raw,column:e.column,rowIndex:(C=e.rowIndex)!=null?C:-1})[0])!=null?E:"td",{class:l.value,style:d.value,rowspan:e.rowSpan>1?e.rowSpan:void 0,colspan:e.colSpan>1?e.colSpan:void 0},{default:()=>[S()]})}}}),lze=Se({name:"OperationTh",props:{operationColumn:{type:Object,required:!0},operations:{type:Array,required:!0},rowSpan:{type:Number,default:1},selectAll:{type:Boolean,default:!1}},setup(e){const t=Te("table"),n=On(u3,{}),r=j(()=>{var l,c,d,h;let p=!1,v=!1;const y=((c=(l=n.currentSelectedRowKeys)==null?void 0:l.filter(k=>{var C,x;return(x=(C=n.currentAllEnabledRowKeys)==null?void 0:C.includes(k))!=null?x:!0}))!=null?c:[]).length,S=(h=(d=n.currentAllEnabledRowKeys)==null?void 0:d.length)!=null?h:0;return y>0&&(y>=S?p=!0:v=!0),{checked:p,indeterminate:v}}),o=()=>e.selectAll?O(Uc,{modelValue:r.value.checked,indeterminate:r.value.indeterminate,uninjectGroupContext:!0,onChange:l=>{var c;(c=n.onSelectAll)==null||c.call(n,l)}},{default:En(e.operationColumn.title)?e.operationColumn.title():e.operationColumn.title}):e.operationColumn.title?En(e.operationColumn.title)?e.operationColumn.title():e.operationColumn.title:null,a=j(()=>X0e(e.operationColumn,e.operations)),s=j(()=>[`${t}-th`,`${t}-operation`,{[`${t}-checkbox`]:e.selectAll},...K0e(t,e.operationColumn)]);return()=>O("th",{class:s.value,style:a.value,rowspan:e.rowSpan>1?e.rowSpan:void 0},[O("span",{class:`${t}-cell`},[o()])])}}),Dre=Se({name:"OperationTd",components:{Checkbox:Uc,Radio:Pm,IconPlus:Cf,IconMinus:Rm},props:{operationColumn:{type:Object,required:!0},operations:{type:Array,required:!0},record:{type:Object,required:!0},hasExpand:{type:Boolean,default:!1},selectedRowKeys:{type:Array},renderExpandBtn:{type:Function},colSpan:{type:Number,default:1},rowSpan:{type:Number,default:1},summary:{type:Boolean,default:!1}},emits:["select"],setup(e,{emit:t,slots:n}){const r=Te("table"),o=On(u3,{}),a=j(()=>X0e(e.operationColumn,e.operations)),s=j(()=>[`${r}-td`,`${r}-operation`,{[`${r}-checkbox`]:e.operationColumn.name==="selection-checkbox",[`${r}-radio`]:e.operationColumn.name==="selection-radio",[`${r}-expand`]:e.operationColumn.name==="expand",[`${r}-drag-handle`]:e.operationColumn.name==="drag-handle"},...K0e(r,e.operationColumn)]),l=j(()=>NH(e.record)),c=j(()=>{var h;return UVe((h=o.currentSelectedRowKeys)!=null?h:[],l.value)}),d=()=>{var h,p,v,g,y,S;if(e.summary)return null;if(e.operationColumn.render)return e.operationColumn.render(e.record.raw);if(e.operationColumn.name==="selection-checkbox"){const k=e.record.key;return!o.checkStrictly&&!e.record.isLeaf?O(Uc,{modelValue:c.value.checked,indeterminate:c.value.indeterminate,disabled:!!e.record.disabled,uninjectGroupContext:!0,onChange:C=>{var x;return(x=o.onSelectAllLeafs)==null?void 0:x.call(o,e.record,C)},onClick:C=>C.stopPropagation()},null):O(Uc,{modelValue:(p=(h=e.selectedRowKeys)==null?void 0:h.includes(k))!=null?p:!1,disabled:!!e.record.disabled,uninjectGroupContext:!0,onChange:C=>{var x;return(x=o.onSelect)==null?void 0:x.call(o,C,e.record)},onClick:C=>C.stopPropagation()},null)}if(e.operationColumn.name==="selection-radio"){const k=e.record.key;return O(Pm,{modelValue:(g=(v=e.selectedRowKeys)==null?void 0:v.includes(k))!=null?g:!1,disabled:!!e.record.disabled,uninjectGroupContext:!0,onChange:C=>{var x;return(x=o.onSelect)==null?void 0:x.call(o,C,e.record)},onClick:C=>C.stopPropagation()},null)}return e.operationColumn.name==="expand"?e.hasExpand&&e.renderExpandBtn?e.renderExpandBtn(e.record):null:e.operationColumn.name==="drag-handle"?(S=(y=n["drag-handle-icon"])==null?void 0:y.call(n))!=null?S:O(U5,null,null):null};return()=>O("td",{class:s.value,style:a.value,rowspan:e.rowSpan>1?e.rowSpan:void 0,colspan:e.colSpan>1?e.colSpan:void 0},[O("span",{class:`${r}-cell`},[d()])])}});const uze=e=>{const t=j(()=>{if(e.value)return e.value.type==="handle"?"handle":"row"}),n=Xt({dragging:!1,sourceKey:"",sourcePath:[],targetPath:[],data:{}}),r=()=>{n.dragging=!1,n.sourceKey="",n.sourcePath=[],n.targetPath=[],n.data={}};return{dragType:t,dragState:n,handleDragStart:(h,p,v,g)=>{if(h.dataTransfer&&(h.dataTransfer.effectAllowed="move",h.target&&h.target.tagName==="TD")){const{parentElement:y}=h.target;y&&y.tagName==="TR"&&h.dataTransfer.setDragImage(y,0,0)}n.dragging=!0,n.sourceKey=p,n.sourcePath=v,n.targetPath=[...v],n.data=g},handleDragEnter:(h,p)=>{h.dataTransfer&&(h.dataTransfer.dropEffect="move"),n.targetPath.toString()!==p.toString()&&(n.targetPath=p),h.preventDefault()},handleDragLeave:h=>{},handleDragover:h=>{h.dataTransfer&&(h.dataTransfer.dropEffect="move"),h.preventDefault()},handleDragEnd:h=>{var p;((p=h.dataTransfer)==null?void 0:p.dropEffect)==="none"&&r()},handleDrop:h=>{r(),h.preventDefault()}}},cze=(e,t)=>{const n=fe(""),r=Xt({}),o=(l,c)=>{c.preventDefault(),n.value=l,Mi(window,"mousemove",s),Mi(window,"mouseup",a),Mi(window,"contextmenu",a)},a=()=>{n.value="",ro(window,"mousemove",s),ro(window,"mouseup",a),ro(window,"contextmenu",a)},s=l=>{const c=e.value[n.value];if(c){const{clientX:d}=l,{x:h}=c.getBoundingClientRect();let p=Math.ceil(d-h);p<40&&(p=40),r[n.value]=p,t("columnResize",n.value,p)}};return{resizingColumn:n,columnWidth:r,handleThMouseDown:o,handleThMouseUp:a}},dze=({columns:e,onFilterChange:t})=>{const n=fe(Pre(e.value));Rt(e,s=>{const l=Pre(s);s3(l,n.value)||(n.value=l)});const r=j(()=>{var s,l;const c={};for(const d of e.value)if(d.dataIndex){const h=(l=(s=d.filterable)==null?void 0:s.filteredValue)!=null?l:n.value[d.dataIndex];h&&(c[d.dataIndex]=h)}return c});return{_filters:n,computedFilters:r,resetFilters:s=>{var l;const c=s?[].concat(s):[],d={};for(const h of e.value)if(h.dataIndex&&h.filterable&&(c.length===0||c.includes(h.dataIndex))){const p=(l=h.filterable.defaultFilteredValue)!=null?l:[];d[h.dataIndex]=p,t(h.dataIndex,p)}n.value=d},clearFilters:s=>{const l=s?[].concat(s):[],c={};for(const d of e.value)if(d.dataIndex&&d.filterable&&(l.length===0||l.includes(d.dataIndex))){const h=[];c[d.dataIndex]=h,t(d.dataIndex,h)}n.value=c}}},Pre=e=>{var t;const n={};for(const r of e)r.dataIndex&&((t=r.filterable)!=null&&t.defaultFilteredValue)&&(n[r.dataIndex]=r.filterable.defaultFilteredValue);return n},fze=({columns:e,onSorterChange:t})=>{const n=fe(Rre(e.value));Rt(e,s=>{const l=Rre(s);s3(l,n.value)||(n.value=l)});const r=j(()=>{var s;for(const l of e.value)if(l.dataIndex&&l.sortable){const c=cs(l.sortable.sortOrder)?l.sortable.sortOrder:((s=n.value)==null?void 0:s.field)===l.dataIndex?n.value.direction:"";if(c)return{field:l.dataIndex,direction:c}}});return{_sorter:n,computedSorter:r,resetSorters:()=>{var s;let l;for(const c of e.value)c.dataIndex&&c.sortable&&(!l&&c.sortable.defaultSortOrder&&(l={field:c.dataIndex,direction:c.sortable.defaultSortOrder}),t(c.dataIndex,(s=c.sortable.defaultSortOrder)!=null?s:""));n.value=l},clearSorters:()=>{for(const s of e.value)s.dataIndex&&s.sortable&&t(s.dataIndex,"")}}},Rre=e=>{var t;for(const n of e)if(n.dataIndex&&((t=n.sortable)!=null&&t.defaultSortOrder))return{field:n.dataIndex,direction:n.sortable.defaultSortOrder}},Mre=({spanMethod:e,data:t,columns:n})=>{const r=(l,c)=>{l?.forEach((d,h)=>{var p;d.hasSubtree&&((p=d.children)!=null&&p.length)&&r(d.children||[],c),n.value.forEach((v,g)=>{var y,S;const{rowspan:k=1,colspan:C=1}=(S=(y=e.value)==null?void 0:y.call(e,{record:d.raw,column:v,rowIndex:h,columnIndex:g}))!=null?S:{};(k>1||C>1)&&(c[`${h}-${g}-${d.key}`]=[k,C],Array.from({length:k}).forEach((x,E)=>{var _;if(h+E{g+P{const l={};return o.value={},e.value&&r(t.value,l),l}),s=j(()=>{const l=[];for(const c of Object.keys(o.value))l.push(c);return l});return{tableSpan:a,removedCells:s}};function hze(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wi(e)}const Ore={wrapper:!0,cell:!1,headerCell:!1,bodyCell:!1};var kM=Se({name:"Table",props:{columns:{type:Array,default:()=>[]},data:{type:Array,default:()=>[]},bordered:{type:[Boolean,Object],default:!0},hoverable:{type:Boolean,default:!0},stripe:{type:Boolean,default:!1},size:{type:String,default:()=>{var e,t;return(t=(e=On(Ya,void 0))==null?void 0:e.size)!=null?t:"large"}},tableLayoutFixed:{type:Boolean,default:!1},loading:{type:[Boolean,Object],default:!1},rowSelection:{type:Object},expandable:{type:Object},scroll:{type:Object},pagination:{type:[Boolean,Object],default:!0},pagePosition:{type:String,default:"br"},indentSize:{type:Number,default:16},rowKey:{type:String,default:"key"},showHeader:{type:Boolean,default:!0},virtualListProps:{type:Object},spanMethod:{type:Function},spanAll:{type:Boolean,default:!1},components:{type:Object},loadMore:{type:Function},filterIconAlignLeft:{type:Boolean,default:!1},hideExpandButtonOnEmpty:{type:Boolean,default:!1},rowClass:{type:[String,Array,Object,Function]},draggable:{type:Object},rowNumber:{type:[Boolean,Object]},columnResizable:{type:Boolean},summary:{type:[Boolean,Function]},summaryText:{type:String,default:"Summary"},summarySpanMethod:{type:Function},selectedKeys:{type:Array},defaultSelectedKeys:{type:Array},expandedKeys:{type:Array},defaultExpandedKeys:{type:Array},defaultExpandAllRows:{type:Boolean,default:!1},stickyHeader:{type:[Boolean,Number],default:!1},scrollbar:{type:[Object,Boolean],default:!0},showEmptyTree:{type:Boolean,default:!1}},emits:{"update:selectedKeys":e=>!0,"update:expandedKeys":e=>!0,expand:(e,t)=>!0,expandedChange:e=>!0,select:(e,t,n)=>!0,selectAll:e=>!0,selectionChange:e=>!0,sorterChange:(e,t)=>!0,filterChange:(e,t)=>!0,pageChange:e=>!0,pageSizeChange:e=>!0,change:(e,t,n)=>!0,cellMouseEnter:(e,t,n)=>!0,cellMouseLeave:(e,t,n)=>!0,cellClick:(e,t,n)=>!0,rowClick:(e,t)=>!0,headerClick:(e,t)=>!0,columnResize:(e,t)=>!0,rowDblclick:(e,t)=>!0,cellDblclick:(e,t,n)=>!0,rowContextmenu:(e,t)=>!0,cellContextmenu:(e,t,n)=>!0},setup(e,{emit:t,slots:n}){const{columns:r,rowKey:o,rowSelection:a,expandable:s,loadMore:l,filterIconAlignLeft:c,selectedKeys:d,defaultSelectedKeys:h,expandedKeys:p,defaultExpandedKeys:v,defaultExpandAllRows:g,spanMethod:y,draggable:S,summarySpanMethod:k,scrollbar:C,showEmptyTree:x}=nn(e),E=Te("table"),_=On(Ya,void 0),T=j(()=>br(e.bordered)?{...Ore,...e.bordered}:{...Ore,wrapper:e.bordered}),{children:D,components:P}=J_("TableColumn"),M=j(()=>{var Lt,Jt;return(Jt=(Lt=a.value)==null?void 0:Lt.checkStrictly)!=null?Jt:!0}),{displayScrollbar:$,scrollbarProps:L}=D5(C),B=j(()=>{var Lt,Jt,un,vn;const Dn=!!((Lt=e.scroll)!=null&&Lt.x||(Jt=e.scroll)!=null&&Jt.minWidth),er=!!((un=e.scroll)!=null&&un.y||(vn=e.scroll)!=null&&vn.maxHeight);return{x:Dn,y:er}}),F=fe(),W=fe({}),{componentRef:U,elementRef:G}=U1("containerRef"),{componentRef:X,elementRef:oe}=U1("containerRef"),{elementRef:Z}=U1("viewportRef"),{componentRef:H,elementRef:q}=U1("containerRef"),ee=j(()=>ne.value?Ln.value?Z.value:oe.value:G.value),ne=j(()=>B.value.y||e.stickyHeader||Ln.value||B.value.x&&he.value.length===0),ae=Xt(new Map),re=fe();Rt([P,ae],([Lt,Jt])=>{if(Lt.length>0){const un=[];Lt.forEach(vn=>{const Dn=Jt.get(vn);Dn&&un.push(Dn)}),re.value=un}else re.value=void 0});const ke=new Map,Ne=fe([]),me=fe([]),{resizingColumn:_e,columnWidth:Ue,handleThMouseDown:Qe}=cze(W,t);Rt([r,re,Ue],([Lt,Jt])=>{var un;const vn=NVe((un=Jt??Lt)!=null?un:[],ke,Ue);Ne.value=vn.dataColumns,me.value=vn.groupColumns},{immediate:!0,deep:!0});const Me=j(()=>["tl","top","tr"].includes(e.pagePosition)),je=fe(!1),ge=fe(!1),be=fe(!1);Os(()=>{var Lt,Jt,un;let vn=!1,Dn=!1,er=!1;((Lt=e.rowSelection)!=null&&Lt.fixed||(Jt=e.expandable)!=null&&Jt.fixed||(un=e.draggable)!=null&&un.fixed)&&(vn=!0);for(const Tr of Ne.value)Tr.fixed==="left"?(vn=!0,er=!0):Tr.fixed==="right"&&(Dn=!0);vn!==je.value&&(je.value=vn),Dn!==ge.value&&(ge.value=Dn),er!==be.value&&(be.value=er)});const Fe=j(()=>{for(const Lt of Ne.value)if(Lt.ellipsis)return!0;return!1}),He=Lt=>{const Jt={type:Lt,page:ln.value,pageSize:le.value,sorter:Tt.value,filters:ut.value,dragTarget:Lt==="drag"?fn.data:void 0};t("change",xe.value,Jt,mn.value)},Je=(Lt,Jt)=>{ht.value={...ut.value,[Lt]:Jt},t("filterChange",Lt,Jt),He("filter")},rt=(Lt,Jt)=>{Gt.value=Jt?{field:Lt,direction:Jt}:void 0,t("sorterChange",Lt,Jt),He("sorter")},{_filters:ht,computedFilters:ut,resetFilters:Ct,clearFilters:St}=dze({columns:Ne,onFilterChange:Je}),{_sorter:Gt,computedSorter:Tt,resetSorters:Mt,clearSorters:sn}=fze({columns:Ne,onSorterChange:rt}),ct=new Set,Be=j(()=>{const Lt=[];ct.clear();const Jt=un=>{if(or(un)&&un.length>0)for(const vn of un)Lt.push(vn[o.value]),vn.disabled&&ct.add(vn[o.value]),vn.children&&Jt(vn.children)};return Jt(e.data),Lt}),Ae=j(()=>{const Lt=[],Jt=un=>{for(const vn of un)Lt.push(vn.key),vn.children&&Jt(vn.children)};return Jt(he.value),Lt}),Re=j(()=>{const Lt=[],Jt=un=>{for(const vn of un)vn.disabled||Lt.push(vn.key),vn.children&&Jt(vn.children)};return Jt(he.value),Lt}),{selectedRowKeys:Xe,currentSelectedRowKeys:dt,handleSelect:Dt,handleSelectAllLeafs:pt,handleSelectAll:Oe,select:xt,selectAll:Zt,clearSelected:tn}=WVe({selectedKeys:d,defaultSelectedKeys:h,rowSelection:a,currentAllRowKeys:Ae,currentAllEnabledRowKeys:Re,emit:t}),{expandedRowKeys:Ft,handleExpand:rn,expand:Jn,expandAll:mr}=GVe({expandedKeys:p,defaultExpandedKeys:v,defaultExpandAllRows:g,expandable:s,allRowKeys:Be,emit:t}),yi=Xt({}),Kt=(Lt,Jt)=>{Lt&&(yi[Jt.key]=Lt)},st=Lt=>{var Jt,un;for(const vn of Object.keys(ut.value)){const Dn=ut.value[vn],er=ke.get(vn);if(er&&((Jt=er.filterable)!=null&&Jt.filter)&&Dn.length>0){const Tr=(un=er.filterable)==null?void 0:un.filter(Dn,Lt.raw);if(!Tr)return Tr}}return!0},{dragType:zt,dragState:fn,handleDragStart:on,handleDragEnter:pn,handleDragover:Qn,handleDragEnd:Kr,handleDrop:wt}=uze(S),Wt=j(()=>{var Lt;const Jt=un=>{const vn=[];for(const Dn of un){const er={raw:Dn,key:Dn[e.rowKey],disabled:Dn.disabled,expand:Dn.expand,isLeaf:Dn.isLeaf};Dn.children?(er.isLeaf=!1,er.children=Jt(Dn.children)):e.loadMore&&!Dn.isLeaf?(er.isLeaf=!1,yi[er.key]&&(er.children=Jt(yi[er.key]))):er.isLeaf=!0,er.hasSubtree=!!(er.children?!e.hideExpandButtonOnEmpty||er.children.length>0:e.loadMore&&!er.isLeaf),vn.push(er)}return vn};return Jt((Lt=e.data)!=null?Lt:[])}),hn=j(()=>{const Lt=Jt=>Jt.filter(un=>st(un)?(un.children&&(un.children=Lt(un.children)),!0):!1);return Object.keys(ut.value).length>0?Lt(Wt.value):Wt.value}),mn=j(()=>{var Lt,Jt,un;const vn=Z0e(hn.value);if(vn.length>0){if((Lt=Tt.value)!=null&&Lt.field){const Tr=ke.get(Tt.value.field);if(Tr&&((Jt=Tr.sortable)==null?void 0:Jt.sorter)!==!0){const{field:ui,direction:Ji}=Tt.value;vn.sort((Ts,Bu)=>{var yc;const Fr=hm(Ts.raw,ui),kr=hm(Bu.raw,ui);if((yc=Tr.sortable)!=null&&yc.sorter&&En(Tr.sortable.sorter))return Tr.sortable.sorter(Ts.raw,Bu.raw,{dataIndex:ui,direction:Ji});const mo=Fr>kr?1:-1;return Ji==="descend"?-mo:mo})}}const{sourcePath:Dn,targetPath:er}=fn;if(fn.dragging&&er.length&&er.toString()!==Dn.toString()&&Dn.length===er.length&&Dn.slice(0,-1).toString()===er.slice(0,-1).toString()){let Tr=vn;for(let ui=0;ui=Dn.length-1){const Bu=Tr[Ji],yc=er[ui];yc>Ji?(Tr.splice(yc+1,0,Bu),Tr.splice(Ji,1)):(Tr.splice(yc,0,Bu),Tr.splice(Ji+1,1))}else Tr=(un=Tr[Ji].children)!=null?un:[]}}}return vn}),{page:ln,pageSize:le,handlePageChange:ie,handlePageSizeChange:te}=KVe(e,t),J=j(()=>{var Lt,Jt;return(Jt=(Lt=a.value)==null?void 0:Lt.onlyCurrent)!=null?Jt:!1});Rt(ln,(Lt,Jt)=>{Lt!==Jt&&J.value&&tn()});const he=j(()=>e.pagination&&mn.value.length>le.value?mn.value.slice((ln.value-1)*le.value,ln.value*le.value):mn.value),xe=j(()=>J0e(he.value)),Ce=()=>Ne.value.reduce((Lt,Jt,un)=>{if(Jt.dataIndex)if(un===0)U8(Lt,Jt.dataIndex,e.summaryText,{addPath:!0});else{let vn=0,Dn=!1;he.value.forEach(er=>{if(Jt.dataIndex){const Tr=hm(er.raw,Jt.dataIndex);Ze(Tr)?vn+=Tr:!An(Tr)&&!Tl(Tr)&&(Dn=!0)}}),U8(Lt,Jt.dataIndex,Dn?"":vn,{addPath:!0})}return Lt},{}),Pe=Lt=>Lt&&Lt.length>0?Lt.map(Jt=>({raw:Jt,key:Jt[e.rowKey]})):[],lt=j(()=>e.summary?En(e.summary)?Pe(e.summary({columns:Ne.value,data:xe.value})):Pe([Ce()]):[]),it=fe(0),gt=fe(!0),we=fe(!0),nt=()=>{let Lt=!0,Jt=!0;const un=ee.value;un&&(Lt=it.value===0,Jt=Math.ceil(it.value+un.offsetWidth)>=un.scrollWidth),Lt!==gt.value&&(gt.value=Lt),Jt!==we.value&&(we.value=Jt)},at=()=>gt.value&&we.value?`${E}-scroll-position-both`:gt.value?`${E}-scroll-position-left`:we.value?`${E}-scroll-position-right`:`${E}-scroll-position-middle`,Ot=()=>{const Lt=[];return je.value&&Lt.push(`${E}-has-fixed-col-left`),ge.value&&Lt.push(`${E}-has-fixed-col-right`),Lt},Qt=Lt=>{Lt.target.scrollLeft!==it.value&&(it.value=Lt.target.scrollLeft),nt()},qt=Lt=>{Qt(Lt);const{scrollLeft:Jt}=Lt.target;q.value&&(q.value.scrollLeft=Jt),F.value&&(F.value.scrollLeft=Jt)},yn=(Lt,Jt)=>{t("rowClick",Lt.raw,Jt)},Sn=(Lt,Jt)=>{t("rowDblclick",Lt.raw,Jt)},dn=(Lt,Jt)=>{t("rowContextmenu",Lt.raw,Jt)},fr=(Lt,Jt,un)=>{t("cellClick",Lt.raw,Jt,un)},ir=n_((Lt,Jt,un)=>{t("cellMouseEnter",Lt.raw,Jt,un)},30),wn=n_((Lt,Jt,un)=>{t("cellMouseLeave",Lt.raw,Jt,un)},30),Zn=(Lt,Jt,un)=>{t("cellDblclick",Lt.raw,Jt,un)},hr=(Lt,Jt,un)=>{t("cellContextmenu",Lt.raw,Jt,un)},sr=(Lt,Jt)=>{t("headerClick",Lt,Jt)},Mn=j(()=>{var Lt,Jt;const un=[],vn=je.value||ge.value;let Dn,er,Tr;((Lt=e.draggable)==null?void 0:Lt.type)==="handle"&&(Dn={name:"drag-handle",title:e.draggable.title,width:e.draggable.width,fixed:e.draggable.fixed||vn},un.push(Dn)),e.expandable&&(er={name:"expand",title:e.expandable.title,width:e.expandable.width,fixed:e.expandable.fixed||vn},un.push(er)),e.rowSelection&&(Tr={name:e.rowSelection.type==="radio"?"selection-radio":"selection-checkbox",title:e.rowSelection.title,width:e.rowSelection.width,fixed:e.rowSelection.fixed||vn},un.push(Tr)),!be.value&&un.length>0&&un[un.length-1].fixed&&(un[un.length-1].isLastLeftFixed=!0);const ui=(Jt=e.components)==null?void 0:Jt.operations;return En(ui)?ui({dragHandle:Dn,expand:er,selection:Tr}):un}),lr=j(()=>{var Lt,Jt,un,vn;if(B.value.x){const Dn={width:Ze((Lt=e.scroll)==null?void 0:Lt.x)?`${(Jt=e.scroll)==null?void 0:Jt.x}px`:(un=e.scroll)==null?void 0:un.x};return(vn=e.scroll)!=null&&vn.minWidth&&(Dn.minWidth=Ze(e.scroll.minWidth)?`${e.scroll.minWidth}px`:e.scroll.minWidth),Dn}}),gr=j(()=>{var Lt,Jt,un,vn;if(B.value.x&&he.value.length>0){const Dn={width:Ze((Lt=e.scroll)==null?void 0:Lt.x)?`${(Jt=e.scroll)==null?void 0:Jt.x}px`:(un=e.scroll)==null?void 0:un.x};return(vn=e.scroll)!=null&&vn.minWidth&&(Dn.minWidth=Ze(e.scroll.minWidth)?`${e.scroll.minWidth}px`:e.scroll.minWidth),Dn}});ri(u3,Xt({loadMore:l,addLazyLoadData:Kt,slots:n,sorter:Tt,filters:ut,filterIconAlignLeft:c,resizingColumn:_e,checkStrictly:M,currentAllEnabledRowKeys:Re,currentSelectedRowKeys:dt,addColumn:(Lt,Jt)=>{ae.set(Lt,Jt)},removeColumn:Lt=>{ae.delete(Lt)},onSelectAll:Oe,onSelect:Dt,onSelectAllLeafs:pt,onSorterChange:rt,onFilterChange:Je,onThMouseDown:Qe}));const bi=j(()=>[E,`${E}-size-${e.size}`,{[`${E}-border`]:T.value.wrapper,[`${E}-border-cell`]:T.value.cell,[`${E}-border-header-cell`]:!T.value.cell&&T.value.headerCell,[`${E}-border-body-cell`]:!T.value.cell&&T.value.bodyCell,[`${E}-stripe`]:e.stripe,[`${E}-hover`]:e.hoverable,[`${E}-dragging`]:fn.dragging,[`${E}-type-selection`]:!!e.rowSelection,[`${E}-empty`]:e.data&&he.value.length===0,[`${E}-layout-fixed`]:e.tableLayoutFixed||B.value.x||ne.value||Fe.value}]),ai=j(()=>[`${E}-pagination`,{[`${E}-pagination-left`]:e.pagePosition==="tl"||e.pagePosition==="bl",[`${E}-pagination-center`]:e.pagePosition==="top"||e.pagePosition==="bottom",[`${E}-pagination-right`]:e.pagePosition==="tr"||e.pagePosition==="br",[`${E}-pagination-top`]:Me.value}]),Ta=j(()=>{const Lt=Ot();return B.value.x&&Lt.push(at()),ne.value&&Lt.push(`${E}-scroll-y`),Lt}),Ln=j(()=>!!e.virtualListProps),Yr=fe({}),ws=()=>{const Lt={};for(const Jt of Object.keys(W.value))Lt[Jt]=W.value[Jt].offsetWidth;Yr.value=Lt},Fo=fe(!1),Go=()=>oe.value?oe.value.offsetWidth>oe.value.clientWidth:!1,li=()=>{const Lt=Go();Fo.value!==Lt&&(Fo.value=Lt),nt(),ws()};bn(()=>{Fo.value=Go(),ws()});const tu=j(()=>br(e.loading)?e.loading:{loading:e.loading}),Il=()=>O(kh,{empty:!0},{default:()=>[O(r0,{colSpan:Ne.value.length+Mn.value.length},{default:()=>{var Lt,Jt,un,vn,Dn;return[(Dn=(vn=(Lt=n.empty)==null?void 0:Lt.call(n))!=null?vn:(un=_==null?void 0:(Jt=_.slots).empty)==null?void 0:un.call(Jt,{component:"table"}))!=null?Dn:O(Xh,null,null)]}})]}),jo=Lt=>{var Jt;if(Lt.expand)return En(Lt.expand)?Lt.expand():Lt.expand;if(n["expand-row"])return n["expand-row"]({record:Lt.raw});if((Jt=e.expandable)!=null&&Jt.expandedRowRender)return e.expandable.expandedRowRender(Lt.raw)},hc=j(()=>[].concat(Mn.value,Ne.value)),og=j(()=>e.spanAll?hc.value:Ne.value),{tableSpan:$f,removedCells:nu}=Mre({spanMethod:y,data:he,columns:og}),{tableSpan:pc,removedCells:np}=Mre({spanMethod:k,data:lt,columns:hc}),Bs=Lt=>{if(!(!Ln.value||!Lt||!Yr.value[Lt]))return{width:`${Yr.value[Lt]}px`}},Bf=(Lt,Jt)=>O(kh,{key:`table-summary-${Jt}`,class:[`${E}-tr-summary`,En(e.rowClass)?e.rowClass(Lt.raw,Jt):e.rowClass],onClick:un=>yn(Lt,un)},{default:()=>[Mn.value.map((un,vn)=>{var Dn;const er=`${Jt}-${vn}-${Lt.key}`,[Tr,ui]=(Dn=pc.value[er])!=null?Dn:[1,1];if(np.value.includes(er))return null;const Ji=Bs(un.name);return O(Dre,{style:Ji,operationColumn:un,operations:Mn.value,record:Lt,rowSpan:Tr,colSpan:ui,summary:!0},null)}),Ne.value.map((un,vn)=>{var Dn;const er=`${Jt}-${Mn.value.length+vn}-${Lt.key}`,[Tr,ui]=(Dn=pc.value[er])!=null?Dn:[1,1];if(np.value.includes(er))return null;const Ji=Bs(un.dataIndex);return O(r0,{key:`td-${er}`,style:Ji,rowIndex:Jt,record:Lt,column:un,operations:Mn.value,dataColumns:Ne.value,rowSpan:Tr,colSpan:ui,summary:!0,onClick:Ts=>fr(Lt,un,Ts),onDblclick:Ts=>Zn(Lt,un,Ts),onMouseenter:Ts=>ir(Lt,un,Ts),onMouseleave:Ts=>wn(Lt,un,Ts),onContextmenu:Ts=>hr(Lt,un,Ts)},{td:n.td,cell:n["summary-cell"]})})],tr:n.tr}),id=()=>lt.value&<.value.length>0?O("tfoot",null,[lt.value.map((Lt,Jt)=>Bf(Lt,Jt))]):null,jd=(Lt,Jt=!0)=>{var un,vn,Dn,er,Tr;const ui=Lt.key,Ji=Ft.value.includes(ui);return O("button",{type:"button",class:`${E}-expand-btn`,onClick:Ts=>{rn(ui,Lt.raw),Jt&&Ts.stopPropagation()}},[(Tr=(er=(un=n["expand-icon"])==null?void 0:un.call(n,{expanded:Ji,record:Lt.raw}))!=null?er:(Dn=(vn=e.expandable)==null?void 0:vn.icon)==null?void 0:Dn.call(vn,Ji,Lt.raw))!=null?Tr:O(Ji?Rm:Cf,null,null)])},Ou=(Lt,{indentSize:Jt,indexPath:un,allowDrag:vn,expandContent:Dn})=>{var er,Tr;if(Lt.hasSubtree)return((er=Lt.children)==null?void 0:er.length)===0&&x.value?Il():(Tr=Lt.children)==null?void 0:Tr.map((ui,Ji)=>tl(ui,Ji,{indentSize:Jt,indexPath:un,allowDrag:vn}));if(Dn){const ui=ee.value;return O(kh,{key:`${Lt.key}-expand`,expand:!0},{default:()=>[O(r0,{isFixedExpand:je.value||ge.value,containerWidth:ui?.clientWidth,colSpan:Ne.value.length+Mn.value.length},hze(Dn)?Dn:{default:()=>[Dn]})]})}return null},tl=(Lt,Jt,{indentSize:un=0,indexPath:vn,allowDrag:Dn=!0}={})=>{var er;const Tr=Lt.key,ui=(vn??[]).concat(Jt),Ji=jo(Lt),Ts=Ft.value.includes(Tr),Bu=fn.sourceKey===Lt.key,yc=zt.value?{draggable:Dn,onDragstart:kr=>{Dn&&on(kr,Lt.key,ui,Lt.raw)},onDragend:kr=>{Dn&&Kr(kr)}}:{},Fr=zt.value?{onDragenter:kr=>{Dn&&pn(kr,ui)},onDragover:kr=>{Dn&&Qn(kr)},onDrop:kr=>{Dn&&(He("drag"),wt(kr))}}:{};return O(Nt,null,[O(kh,Vt({key:Tr,class:[{[`${E}-tr-draggable`]:zt.value==="row",[`${E}-tr-drag`]:Bu},En(e.rowClass)?e.rowClass(Lt.raw,Jt):e.rowClass],rowIndex:Jt,record:Lt,checked:e.rowSelection&&((er=Xe.value)==null?void 0:er.includes(Tr)),onClick:kr=>yn(Lt,kr),onDblclick:kr=>Sn(Lt,kr),onContextmenu:kr=>dn(Lt,kr)},zt.value==="row"?yc:{},Fr),{default:()=>[Mn.value.map((kr,mo)=>{var Aa;const si=`${Jt}-${mo}-${Lt.key}`,[Ia,Bn]=e.spanAll?(Aa=$f.value[si])!=null?Aa:[1,1]:[1,1];if(e.spanAll&&nu.value.includes(si))return null;const Nu=Bs(kr.name);return O(Dre,Vt({key:`operation-td-${mo}`,style:Nu,operationColumn:kr,operations:Mn.value,record:Lt,hasExpand:!!Ji,selectedRowKeys:dt.value,rowSpan:Ia,colSpan:Bn,renderExpandBtn:jd},zt.value==="handle"?yc:{}),{"drag-handle-icon":n["drag-handle-icon"]})}),Ne.value.map((kr,mo)=>{var Aa;const si=`${Jt}-${e.spanAll?Mn.value.length+mo:mo}-${Lt.key}`,[Ia,Bn]=(Aa=$f.value[si])!=null?Aa:[1,1];if(nu.value.includes(si))return null;const Nu=mo===0?{showExpandBtn:Lt.hasSubtree,indentSize:Lt.hasSubtree?un-20:un}:{},ES=Bs(kr.dataIndex);return O(r0,Vt({key:`td-${mo}`,style:ES,rowIndex:Jt,record:Lt,column:kr,operations:Mn.value,dataColumns:Ne.value,rowSpan:Ia,renderExpandBtn:jd,colSpan:Bn},Nu,{onClick:Ns=>fr(Lt,kr,Ns),onDblclick:Ns=>Zn(Lt,kr,Ns),onMouseenter:Ns=>ir(Lt,kr,Ns),onMouseleave:Ns=>wn(Lt,kr,Ns),onContextmenu:Ns=>hr(Lt,kr,Ns)}),{td:n.td})})],tr:n.tr}),Ts&&Ou(Lt,{indentSize:un+e.indentSize,indexPath:ui,allowDrag:Dn&&!Bu,expandContent:Ji})])},Es=()=>{const Lt=he.value.some(Jt=>!!Jt.hasSubtree);return O(cb,null,{default:()=>[he.value.length>0?he.value.map((Jt,un)=>tl(Jt,un,{indentSize:Lt?20:0})):Il()],tbody:n.tbody})},rp=()=>O(ub,null,{default:()=>[me.value.map((Lt,Jt)=>O(kh,{key:`header-row-${Jt}`},{default:()=>[Jt===0&&Mn.value.map((un,vn)=>{var Dn;return O(lze,{key:`operation-th-${vn}`,ref:er=>{er?.$el&&un.name&&(W.value[un.name]=er.$el)},operationColumn:un,operations:Mn.value,selectAll:!!(un.name==="selection-checkbox"&&((Dn=e.rowSelection)!=null&&Dn.showCheckedAll)),rowSpan:me.value.length},null)}),Lt.map((un,vn)=>{const Dn=e.columnResizable&&!!un.dataIndex&&vn{er?.$el&&un.dataIndex&&(W.value[un.dataIndex]=er.$el)},column:un,operations:Mn.value,dataColumns:Ne.value,resizable:Dn,onClick:er=>sr(un,er)},{th:n.th})})]}))],thead:n.thead}),vc=()=>{var Lt,Jt;if(ne.value){const un=Ze(e.stickyHeader)?`${e.stickyHeader}px`:void 0,vn=[(Lt=L.value)==null?void 0:Lt.outerClass];e.stickyHeader&&vn.push(`${E}-header-sticky`);const Dn={top:un,...(Jt=L.value)==null?void 0:Jt.outerStyle},er=$.value?Rd:"div";return O(Nt,null,[e.showHeader&&O(er,Vt({ref:H,class:[`${E}-header`,{[`${E}-header-sticky`]:e.stickyHeader&&!$.value}],style:{overflowY:Fo.value?"scroll":void 0,top:$.value?void 0:un}},C.value?{hide:he.value.length!==0,disableVertical:!0,...L.value,outerClass:vn,outerStyle:Dn}:void 0),{default:()=>[O("table",{class:`${E}-element`,style:lr.value,cellpadding:0,cellspacing:0},[O(Sx,{dataColumns:Ne.value,operations:Mn.value,columnWidth:Ue},null),rp()])]}),O(Dd,{onResize:li},{default:()=>{var Tr,ui;return[Ln.value&&he.value.length?O(a3,Vt({ref:Ji=>{Ji?.$el&&(oe.value=Ji.$el)},class:`${E}-body`,data:he.value,itemKey:"_key",component:{list:"table",content:"tbody"},listAttrs:{class:`${E}-element`,style:gr.value},paddingPosition:"list",height:"auto"},e.virtualListProps,{onScroll:qt}),{item:({item:Ji,index:Ts})=>tl(Ji,Ts)}):O(er,Vt({ref:X,class:`${E}-body`,style:{maxHeight:Ze((Tr=e.scroll)==null?void 0:Tr.y)?`${(ui=e.scroll)==null?void 0:ui.y}px`:"100%"}},C.value?{outerStyle:{display:"flex",minHeight:"0"},...L.value}:void 0,{onScroll:qt}),{default:()=>[O("table",{class:`${E}-element`,style:gr.value,cellpadding:0,cellspacing:0},[he.value.length!==0&&O(Sx,{dataColumns:Ne.value,operations:Mn.value,columnWidth:Ue},null),Es()])]})]}}),lt.value&<.value.length>0&&O("div",{ref:F,class:`${E}-tfoot`,style:{overflowY:Fo.value?"scroll":"hidden"}},[O("table",{class:`${E}-element`,style:gr.value,cellpadding:0,cellspacing:0},[O(Sx,{dataColumns:Ne.value,operations:Mn.value,columnWidth:Ue},null),id()])])])}return O(Dd,{onResize:()=>nt()},{default:()=>[O("table",{class:`${E}-element`,cellpadding:0,cellspacing:0,style:gr.value},[O(Sx,{dataColumns:Ne.value,operations:Mn.value,columnWidth:Ue},null),e.showHeader&&rp(),Es(),lt.value&<.value.length>0&&id()])]})},mc=Lt=>{var Jt;const un=(Jt=e.scroll)!=null&&Jt.maxHeight?{maxHeight:e.scroll.maxHeight}:void 0,vn=$.value?Rd:"div";return O(Nt,null,[O("div",{class:[`${E}-container`,Ta.value]},[O(vn,Vt({ref:U,class:[`${E}-content`,{[`${E}-content-scroll-x`]:!ne.value}],style:un},C.value?{outerStyle:{height:"100%"},...L.value}:void 0,{onScroll:Qt}),{default:()=>[Lt?O("table",{class:`${E}-element`,cellpadding:0,cellspacing:0},[Lt()]):vc()]})]),n.footer&&O("div",{class:`${E}-footer`},[n.footer()])])},$u=()=>{var Lt,Jt;const un=br(e.pagination)?xa(e.pagination,["current","pageSize","defaultCurrent","defaultPageSize"]):{};return O("div",{class:ai.value},[(Lt=n["pagination-left"])==null?void 0:Lt.call(n),O(DH,Vt({total:hn.value.length,current:ln.value,pageSize:le.value,onChange:vn=>{ie(vn),He("pagination")},onPageSizeChange:vn=>{te(vn),He("pagination")}},un),null),(Jt=n["pagination-right"])==null?void 0:Jt.call(n)])},gc=j(()=>{var Lt,Jt;if(cs((Lt=e.scroll)==null?void 0:Lt.y))return{height:(Jt=e.scroll)==null?void 0:Jt.y}});return{render:()=>{var Lt;return n.default?O("div",{class:bi.value},[mc(n.default)]):(D.value=(Lt=n.columns)==null?void 0:Lt.call(n),O("div",{class:bi.value,style:gc.value},[D.value,O(Pd,tu.value,{default:()=>[e.pagination!==!1&&(he.value.length>0||mn.value.length>0)&&Me.value&&$u(),mc(),e.pagination!==!1&&(he.value.length>0||mn.value.length>0)&&!Me.value&&$u()]})]))},selfExpand:Jn,selfExpandAll:mr,selfSelect:xt,selfSelectAll:Zt,selfResetFilters:Ct,selfClearFilters:St,selfResetSorters:Mt,selfClearSorters:sn}},methods:{selectAll(e){return this.selfSelectAll(e)},select(e,t){return this.selfSelect(e,t)},expandAll(e){return this.selfExpandAll(e)},expand(e,t){return this.selfExpand(e,t)},resetFilters(e){return this.selfResetFilters(e)},clearFilters(e){return this.selfClearFilters(e)},resetSorters(){return this.selfResetSorters()},clearSorters(){return this.selfClearSorters()}},render(){return this.render()}});const ud=(e,t)=>{const n=Lu(e,t),r=fe(n.value);return Rt(n,(o,a)=>{s3(o,a)||(r.value=o)}),r};var Gw=Se({name:"TableColumn",props:{dataIndex:String,title:String,width:Number,minWidth:Number,align:{type:String},fixed:{type:String},ellipsis:{type:Boolean,default:!1},sortable:{type:Object,default:void 0},filterable:{type:Object,default:void 0},cellClass:{type:[String,Array,Object]},headerCellClass:{type:[String,Array,Object]},bodyCellClass:{type:[String,Array,Object,Function]},summaryCellClass:{type:[String,Array,Object,Function]},cellStyle:{type:Object},headerCellStyle:{type:Object},bodyCellStyle:{type:[Object,Function]},summaryCellStyle:{type:[Object,Function]},index:{type:Number},tooltip:{type:[Boolean,Object],default:!1}},setup(e,{slots:t}){var n;const{dataIndex:r,title:o,width:a,align:s,fixed:l,ellipsis:c,index:d,minWidth:h}=nn(e),p=ud(e,"sortable"),v=ud(e,"filterable"),g=ud(e,"cellClass"),y=ud(e,"headerCellClass"),S=ud(e,"bodyCellClass"),k=ud(e,"summaryCellClass"),C=ud(e,"cellStyle"),x=ud(e,"headerCellStyle"),E=ud(e,"bodyCellStyle"),_=ud(e,"summaryCellStyle"),T=ud(e,"tooltip"),D=_o(),P=On(u3,{}),M=On(Ire,void 0),{children:$,components:L}=J_("TableColumn"),B=Xt(new Map);ri(Ire,{addChild:(X,oe)=>{B.set(X,oe)},removeChild:X=>{B.delete(X)}});const U=fe();Rt([L,B],([X,oe])=>{if(X.length>0){const Z=[];X.forEach(H=>{const q=oe.get(H);q&&Z.push(q)}),U.value=Z}else U.value=void 0});const G=Xt({dataIndex:r,title:o,width:a,minWidth:h,align:s,fixed:l,ellipsis:c,sortable:p,filterable:v,cellClass:g,headerCellClass:y,bodyCellClass:S,summaryCellClass:k,cellStyle:C,headerCellStyle:x,bodyCellStyle:E,summaryCellStyle:_,index:d,tooltip:T,children:U,slots:t});return D&&(M?M.addChild(D.uid,G):(n=P.addColumn)==null||n.call(P,D.uid,G)),Io(()=>{var X;D&&(M?M.removeChild(D.uid):(X=P.removeColumn)==null||X.call(P,D.uid))}),()=>{var X;return $.value=(X=t.default)==null?void 0:X.call(t),$.value}}});const pze=Object.assign(kM,{Thead:ub,Tbody:cb,Tr:kh,Th:db,Td:r0,Column:Gw,install:(e,t)=>{Xn(e,t);const n=Yn(t);e.component(n+kM.name,kM),e.component(n+ub.name,ub),e.component(n+cb.name,cb),e.component(n+kh.name,kh),e.component(n+db.name,db),e.component(n+r0.name,r0),e.component(n+Gw.name,Gw)}}),vze=({direction:e,type:t,offset:n})=>e==="vertical"?{transform:`translateY(${-n}px)`}:{transform:`translateX(${-n}px)`},mze=(e,t)=>{const{scrollTop:n,scrollLeft:r}=e;t==="horizontal"&&r&&e.scrollTo({left:-1*r}),t==="vertical"&&n&&e.scrollTo({top:-1*n})},VH=Symbol("ArcoTabs"),gze=Se({name:"TabsTab",components:{IconHover:Lo,IconClose:ds},props:{tab:{type:Object,required:!0},active:Boolean,editable:Boolean},emits:["click","delete"],setup(e,{emit:t}){const n=Te("tabs-tab"),r=On(VH,{}),o=d=>{e.tab.disabled||t("click",e.tab.key,d)},a=d=>{d.key==="Enter"&&o(d)},s=j(()=>Object.assign(r.trigger==="click"?{onClick:o}:{onMouseover:o},{onKeydown:a})),l=d=>{e.tab.disabled||t("delete",e.tab.key,d)},c=j(()=>[n,{[`${n}-active`]:e.active,[`${n}-closable`]:e.editable&&e.tab.closable,[`${n}-disabled`]:e.tab.disabled}]);return{prefixCls:n,cls:c,eventHandlers:s,handleDelete:l}}});function yze(e,t,n,r,o,a){const s=Ie("icon-close"),l=Ie("icon-hover");return z(),Q("div",Vt({tabindex:"0",class:e.cls},e.eventHandlers),[I("span",{class:ue(`${e.prefixCls}-title`)},[vt(e.$slots,"default")],2),e.editable&&e.tab.closable?(z(),Ye(l,{key:0,class:ue(`${e.prefixCls}-close-btn`),onClick:us(e.handleDelete,["stop"])},{default:de(()=>[O(s)]),_:1},8,["class","onClick"])):Le("v-if",!0)],16)}var bze=Ve(gze,[["render",yze]]);function _ze(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wi(e)}var $re=Se({name:"TabsButton",props:{type:{type:String,default:"next"},direction:{type:String,default:"horizontal"},disabled:{type:Boolean,default:!1},onClick:{type:Function}},emits:["click"],setup(e,{emit:t}){const n=Te("tabs-nav-button"),r=s=>{e.disabled||t("click",e.type,s)},o=()=>e.direction==="horizontal"?e.type==="next"?O(Hi,null,null):O(Al,null,null):e.type==="next"?O(Zh,null,null):O(Z_,null,null),a=j(()=>[n,{[`${n}-disabled`]:e.disabled,[`${n}-left`]:e.direction==="horizontal"&&e.type==="previous",[`${n}-right`]:e.direction==="horizontal"&&e.type==="next",[`${n}-up`]:e.direction==="vertical"&&e.type==="previous",[`${n}-down`]:e.direction==="vertical"&&e.type==="next"}]);return()=>{let s;return O("div",{class:a.value,onClick:r},[O(Lo,{disabled:e.disabled},_ze(s=o())?s:{default:()=>[s]})])}}});const Sze=Se({name:"TabsNavInk",props:{activeTabRef:{type:Object},direction:{type:String},disabled:Boolean,animation:Boolean},setup(e){const{activeTabRef:t}=nn(e),n=Te("tabs-nav-ink"),r=fe(0),o=fe(0),a=j(()=>e.direction==="vertical"?{top:`${r.value}px`,height:`${o.value}px`}:{left:`${r.value}px`,width:`${o.value}px`}),s=()=>{if(t.value){const c=e.direction==="vertical"?t.value.offsetTop:t.value.offsetLeft,d=e.direction==="vertical"?t.value.offsetHeight:t.value.offsetWidth;(c!==r.value||d!==o.value)&&(r.value=c,o.value=d)}};bn(()=>{Cn(()=>s())}),Qa(()=>{s()});const l=j(()=>[n,{[`${n}-animation`]:e.animation,[`${n}-disabled`]:e.disabled}]);return{prefixCls:n,cls:l,style:a}}});function kze(e,t,n,r,o,a){return z(),Q("div",{class:ue(e.cls),style:Ke(e.style)},null,6)}var xze=Ve(Sze,[["render",kze]]),Cze=Se({name:"TabsNav",props:{tabs:{type:Array,required:!0},direction:{type:String,required:!0},type:{type:String,required:!0},activeKey:{type:[String,Number]},activeIndex:{type:Number,required:!0},position:{type:String,required:!0},size:{type:String,required:!0},showAddButton:{type:Boolean,default:!1},editable:{type:Boolean,default:!1},animation:{type:Boolean,required:!0},headerPadding:{type:Boolean,default:!0},scrollPosition:{type:String,default:"auto"}},emits:["click","add","delete"],setup(e,{emit:t,slots:n}){const{tabs:r,activeKey:o,activeIndex:a,direction:s,scrollPosition:l}=nn(e),c=Te("tabs-nav"),d=fe(),h=fe(),p=fe({}),v=j(()=>{if(!An(o.value))return p.value[o.value]}),g=fe(),y=j(()=>e.editable&&["line","card","card-gutter"].includes(e.type)),S=fe(!1),k=fe(0),C=fe(0),x=fe(0),E=()=>{var H,q,ee;return(ee=s.value==="vertical"?(H=d.value)==null?void 0:H.offsetHeight:(q=d.value)==null?void 0:q.offsetWidth)!=null?ee:0},_=()=>!h.value||!d.value?0:s.value==="vertical"?h.value.offsetHeight-d.value.offsetHeight:h.value.offsetWidth-d.value.offsetWidth,T=()=>{S.value=D(),S.value?(k.value=E(),C.value=_(),x.value>C.value&&(x.value=C.value)):x.value=0},D=()=>d.value&&h.value?e.direction==="vertical"?h.value.offsetHeight>d.value.offsetHeight:h.value.offsetWidth>d.value.offsetWidth:!1,P=H=>{(!d.value||!h.value||H<0)&&(H=0),x.value=Math.min(H,C.value)},M=()=>{if(!v.value||!d.value||!S.value)return;mze(d.value,s.value);const H=s.value==="horizontal",q=H?"offsetLeft":"offsetTop",ee=H?"offsetWidth":"offsetHeight",ne=v.value[q],ae=v.value[ee],re=d.value[ee],ke=window.getComputedStyle(v.value),Ne=H?l.value==="end"?"marginRight":"marginLeft":l.value==="end"?"marginBottom":"marginTop",me=parseFloat(ke[Ne])||0;l.value==="auto"?nex.value+re&&P(ne+ae-re+me):l.value==="center"?P(ne+(ae-re+me)/2):l.value==="start"?P(ne-me):l.value==="end"?P(ne+ae-re+me):Ze(l.value)&&P(ne-l.value)},$=H=>{if(!S.value)return;H.preventDefault();const{deltaX:q,deltaY:ee}=H;Math.abs(q)>Math.abs(ee)?P(x.value+q):P(x.value+ee)},L=(H,q)=>{t("click",H,q)},B=(H,q)=>{t("delete",H,q),Cn(()=>{delete p.value[H]})},F=H=>{const q=H==="previous"?x.value-k.value:x.value+k.value;P(q)},W=()=>{T(),g.value&&g.value.$forceUpdate()};Rt(r,()=>{Cn(()=>{T()})}),Rt([a,l],()=>{setTimeout(()=>{M()},0)}),bn(()=>{T(),d.value&&Mi(d.value,"wheel",$,{passive:!1})}),gi(()=>{d.value&&ro(d.value,"wheel",$)});const U=()=>!y.value||!e.showAddButton?null:O("div",{class:`${c}-add-btn`,onClick:H=>t("add",H)},[O(Lo,null,{default:()=>[O(Cf,null,null)]})]),G=j(()=>[c,`${c}-${e.direction}`,`${c}-${e.position}`,`${c}-size-${e.size}`,`${c}-type-${e.type}`]),X=j(()=>[`${c}-tab-list`,{[`${c}-tab-list-no-padding`]:!e.headerPadding&&["line","text"].includes(e.type)&&e.direction==="horizontal"}]),oe=j(()=>vze({direction:e.direction,type:e.type,offset:x.value})),Z=j(()=>[`${c}-tab`,{[`${c}-tab-scroll`]:S.value}]);return()=>{var H;return O("div",{class:G.value},[S.value&&O($re,{type:"previous",direction:e.direction,disabled:x.value<=0,onClick:F},null),O(Dd,{onResize:()=>T()},{default:()=>[O("div",{class:Z.value,ref:d},[O(Dd,{onResize:W},{default:()=>[O("div",{ref:h,class:X.value,style:oe.value},[e.tabs.map((q,ee)=>O(bze,{key:q.key,ref:ne=>{ne?.$el&&(p.value[q.key]=ne.$el)},active:q.key===o.value,tab:q,editable:e.editable,onClick:L,onDelete:B},{default:()=>{var ne,ae,re;return[(re=(ae=(ne=q.slots).title)==null?void 0:ae.call(ne))!=null?re:q.title]}})),e.type==="line"&&v.value&&O(xze,{ref:g,activeTabRef:v.value,direction:e.direction,disabled:!1,animation:e.animation},null)])]}),!S.value&&U()])]}),S.value&&O($re,{type:"next",direction:e.direction,disabled:x.value>=C.value,onClick:F},null),O("div",{class:`${c}-extra`},[S.value&&U(),(H=n.extra)==null?void 0:H.call(n)])])}}}),xM=Se({name:"Tabs",props:{activeKey:{type:[String,Number],default:void 0},defaultActiveKey:{type:[String,Number],default:void 0},position:{type:String,default:"top"},size:{type:String},type:{type:String,default:"line"},direction:{type:String,default:"horizontal"},editable:{type:Boolean,default:!1},showAddButton:{type:Boolean,default:!1},destroyOnHide:{type:Boolean,default:!1},lazyLoad:{type:Boolean,default:!1},justify:{type:Boolean,default:!1},animation:{type:Boolean,default:!1},headerPadding:{type:Boolean,default:!0},autoSwitch:{type:Boolean,default:!1},hideContent:{type:Boolean,default:!1},trigger:{type:String,default:"click"},scrollPosition:{type:[String,Number],default:"auto"}},emits:{"update:activeKey":e=>!0,change:e=>!0,tabClick:(e,t)=>!0,add:e=>!0,delete:(e,t)=>!0},setup(e,{emit:t,slots:n}){const{size:r,lazyLoad:o,destroyOnHide:a,trigger:s}=nn(e),l=Te("tabs"),{mergedSize:c}=wa(r),d=j(()=>e.direction==="vertical"?"left":e.position),h=j(()=>["left","right"].includes(d.value)?"vertical":"horizontal"),{children:p,components:v}=J_("TabPane"),g=Xt(new Map),y=j(()=>{const B=[];return v.value.forEach(F=>{const W=g.get(F);W&&B.push(W)}),B}),S=j(()=>y.value.map(B=>B.key)),k=(B,F)=>{g.set(B,F)},C=B=>{g.delete(B)},x=fe(e.defaultActiveKey),E=j(()=>{var B;const F=(B=e.activeKey)!=null?B:x.value;return An(F)?S.value[0]:F}),_=j(()=>{const B=S.value.indexOf(E.value);return B===-1?0:B});ri(VH,Xt({lazyLoad:o,destroyOnHide:a,activeKey:E,addItem:k,removeItem:C,trigger:s}));const T=B=>{B!==E.value&&(x.value=B,t("update:activeKey",B),t("change",B))},D=(B,F)=>{T(B),t("tabClick",B,F)},P=B=>{t("add",B),e.autoSwitch&&Cn(()=>{const F=S.value[S.value.length-1];T(F)})},M=(B,F)=>{t("delete",B,F)},$=()=>O("div",{class:[`${l}-content`,{[`${l}-content-hide`]:e.hideContent}]},[O("div",{class:[`${l}-content-list`,{[`${l}-content-animation`]:e.animation}],style:{marginLeft:`-${_.value*100}%`}},[p.value])]),L=j(()=>[l,`${l}-${h.value}`,`${l}-${d.value}`,`${l}-type-${e.type}`,`${l}-size-${c.value}`,{[`${l}-justify`]:e.justify}]);return()=>{var B;return p.value=(B=n.default)==null?void 0:B.call(n),O("div",{class:L.value},[d.value==="bottom"&&$(),O(Cze,{tabs:y.value,activeKey:E.value,activeIndex:_.value,direction:h.value,position:d.value,editable:e.editable,animation:e.animation,showAddButton:e.showAddButton,headerPadding:e.headerPadding,scrollPosition:e.scrollPosition,size:c.value,type:e.type,onClick:D,onAdd:P,onDelete:M},{extra:n.extra}),d.value!=="bottom"&&$()])}}});const wze=Se({name:"TabPane",props:{title:String,disabled:{type:Boolean,default:!1},closable:{type:Boolean,default:!0},destroyOnHide:{type:Boolean,default:!1}},setup(e,{slots:t}){var n;const{title:r,disabled:o,closable:a}=nn(e),s=_o(),l=Te("tabs"),c=On(VH,{}),d=fe(),h=j(()=>s?.vnode.key),p=j(()=>h.value===c.activeKey),v=fe(c.lazyLoad?p.value:!0),g=Xt({key:h,title:r,disabled:o,closable:a,slots:t});return s?.uid&&((n=c.addItem)==null||n.call(c,s.uid,g)),Io(()=>{var y;s?.uid&&((y=c.removeItem)==null||y.call(c,s.uid))}),Rt(p,y=>{y?v.value||(v.value=!0):(e.destroyOnHide||c.destroyOnHide)&&(v.value=!1)}),Qa(()=>{g.slots={...t}}),{prefixCls:l,active:p,itemRef:d,mounted:v}}});function Eze(e,t,n,r,o,a){return z(),Q("div",{ref:"itemRef",class:ue([`${e.prefixCls}-content-item`,{[`${e.prefixCls}-content-item-active`]:e.active}])},[e.mounted?(z(),Q("div",{key:0,class:ue(`${e.prefixCls}-pane`)},[vt(e.$slots,"default")],2)):Le("v-if",!0)],2)}var Kw=Ve(wze,[["render",Eze]]);const Tze=Object.assign(xM,{TabPane:Kw,install:(e,t)=>{Xn(e,t);const n=Yn(t);e.component(n+xM.name,xM),e.component(n+Kw.name,Kw)}});function Aze(e){const{modelValue:t,defaultValue:n,format:r,isRange:o}=nn(e);function a(){return o.value?[]:void 0}function s(k){if(!An(k))return o.value?or(k)?k:[k,void 0]:k}const l=j(()=>{const k=s(t.value);return dc(k,r.value)}),c=j(()=>{const k=s(n.value);return dc(k,r.value)}),[d,h]=Ga(An(l.value)?An(c.value)?a():c.value:l.value);Rt(l,()=>{An(l.value)&&h(a())});const p=j(()=>l.value||d.value),[v,g]=Ga(p.value);Rt([p],()=>{g(p.value)});const[y,S]=Ga();return Rt([v],()=>{S(void 0)}),{computedValue:p,panelValue:v,inputValue:y,setValue:h,setPanelValue:g,setInputValue:S}}var Ize=Se({name:"TimePickerRangePanel",components:{Panel:V8},props:{value:{type:Array},displayIndex:{type:Number,default:0}},emits:["select","confirm","update:displayIndex","display-index-change"],setup(e,{emit:t}){const{value:n,displayIndex:r}=nn(e),o=fe(r.value);Rt(r,()=>{o.value=r.value});const a=j(()=>n?.value?n.value[o.value]:void 0);function s(c){const d=An(n)||An(n?.value)?[]:[...n.value];d[o.value]=c,t("select",d)}function l(){if(T4(n?.value))t("confirm",n?.value);else{const c=(o.value+1)%2;o.value=c,t("display-index-change",c),t("update:displayIndex",c)}}return{displayValue:a,onSelect:s,onConfirm:l}},render(){const e={...this.$attrs,isRange:!0,value:this.displayValue,onSelect:this.onSelect,onConfirm:this.onConfirm};return O(V8,e,this.$slots)}});const Lze=Se({name:"TimePicker",components:{Trigger:ha,DateInput:Npe,DateRangeInput:r0e,Panel:V8,RangePanel:Ize,IconClockCircle:o_},inheritAttrs:!1,props:{type:{type:String,default:"time"},modelValue:{type:[String,Number,Date,Array]},defaultValue:{type:[String,Number,Date,Array]},disabled:{type:Boolean},allowClear:{type:Boolean,default:!0},readonly:{type:Boolean},error:{type:Boolean},format:{type:String,default:"HH:mm:ss"},placeholder:{type:[String,Array]},size:{type:String},popupContainer:{type:[String,Object]},use12Hours:{type:Boolean},step:{type:Object},disabledHours:{type:Function},disabledMinutes:{type:Function},disabledSeconds:{type:Function},hideDisabledOptions:{type:Boolean},disableConfirm:{type:Boolean},position:{type:String,default:"bl"},popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},triggerProps:{type:Object},unmountOnClose:{type:Boolean}},emits:{change:(e,t)=>!0,"update:modelValue":e=>!0,select:(e,t)=>!0,clear:()=>!0,"popup-visible-change":e=>!0,"update:popupVisible":e=>!0},setup(e,{emit:t}){const{type:n,format:r,use12Hours:o,modelValue:a,defaultValue:s,popupVisible:l,defaultPopupVisible:c,disabled:d,placeholder:h,disableConfirm:p,disabledHours:v,disabledMinutes:g,disabledSeconds:y}=nn(e),{mergedDisabled:S,eventHandlers:k}=Do({disabled:d}),C=j(()=>n.value==="time-range"),x=Te("timepicker"),E=fe(),{format:_,use12Hours:T}=xH(Xt({format:r,use12Hours:o})),{computedValue:D,panelValue:P,inputValue:M,setValue:$,setPanelValue:L,setInputValue:B}=Aze(Xt({modelValue:a,defaultValue:s,isRange:C,format:_})),[F,W]=fa(c.value,Xt({value:l})),U=be=>{be!==F.value&&(W(be),t("popup-visible-change",be),t("update:popupVisible",be))},{t:G}=No(),[X,oe]=Ga(0),Z=j(()=>{const be=h?.value;return C.value?An(be)?G("datePicker.rangePlaceholder.time"):or(be)?be:[be,be]:An(be)?G("datePicker.placeholder.time"):be}),H=Hpe(Xt({disabledHours:v,disabledMinutes:g,disabledSeconds:y}));function q(be){var Fe,He;if(hH(be,D.value)){const Je=df(be,_.value),rt=xu(be);t("update:modelValue",Je),t("change",Je,rt),(He=(Fe=k.value)==null?void 0:Fe.onChange)==null||He.call(Fe)}}function ee(be,Fe){if(H(be))return;let He=be;if(or(be)){const Je=Rs();He=be.map(rt=>(rt&&(rt=rt.year(Je.year()),rt=rt.month(Je.month()),rt=rt.date(Je.date())),rt)),T4(He)&&(He=t_(He)),He?.length===0&&(He=void 0)}q(He),$(He),Fe!==F.value&&U(Fe)}function ne(be,Fe){L(be),Fe!==F.value&&U(Fe)}function ae(be){E.value&&E.value.focus&&E.value.focus(be)}function re(be){S.value||(U(be),be&&Cn(()=>{ae(X.value)}))}function ke(be){const Fe=df(be,_.value),He=xu(be);t("select",Fe,He),p.value&&(!C.value||T4(be))?ee(be,!0):(ne(be,!0),B(void 0))}function Ne(be){ee(be,!1)}function me(){ee(P.value||D.value,!1)}function _e(){if(T4(P.value))ee(P.value,!1);else{const be=(X.value+1)%2;oe(be),ae(be)}}function Ue(be){U(!0);const Fe=be.target.value;if(B(Fe),!j8(Fe,_.value))return;const He=Rs(Fe,_.value);H(He)||(p.value?ee(He,!0):ne(He,!0))}function Qe(be){U(!0);const Fe=be.target.value,He=or(M.value)?[...M.value]:or(P.value)&&df(P.value,_.value)||[];if(He[X.value]=Fe,B(He),!j8(Fe,_.value))return;const Je=Rs(Fe,_.value);if(H(Je))return;const rt=or(P.value)?[...P.value]:[];rt[X.value]=Je,p.value&&T4(rt)?ee(rt,!0):ne(rt,!0)}function Me(be){be.stopPropagation(),L(void 0),ee(void 0,C.value)}Rt(F,(be,Fe)=>{be!==Fe&&L(D.value),be||B(void 0)});const je=j(()=>C.value?{focusedIndex:X.value,onFocusedIndexChange:be=>{oe(be)},onChange:Qe,onPressEnter:_e}:{onChange:Ue,onPressEnter:me}),ge=j(()=>C.value?{displayIndex:X.value,onDisplayIndexChange:be=>{oe(be),ae(be)}}:{});return{refInput:E,isRange:C,prefixCls:x,panelVisible:F,focusedInputIndex:X,computedPlaceholder:Z,panelValue:P,inputValue:M,computedFormat:_,computedUse12Hours:T,inputProps:je,panelProps:ge,mergedDisabled:S,onPanelVisibleChange:re,onInputClear:Me,onPanelSelect:ke,onPanelConfirm:Ne,onPanelClick:()=>{ae(X.value)}}}});function Dze(e,t,n,r,o,a){const s=Ie("IconClockCircle"),l=Ie("Trigger");return z(),Ye(l,Vt({trigger:"click","animation-name":"slide-dynamic-origin","auto-fit-transform-origin":"","click-to-close":!1,position:e.position,disabled:e.mergedDisabled||e.readonly,"popup-offset":4,"popup-visible":e.panelVisible,"prevent-focus":!0,"unmount-on-close":e.unmountOnClose,"popup-container":e.popupContainer},{...e.triggerProps},{onPopupVisibleChange:e.onPanelVisibleChange}),{content:de(()=>[I("div",{class:ue(`${e.prefixCls}-container`),onClick:t[0]||(t[0]=(...c)=>e.onPanelClick&&e.onPanelClick(...c))},[(z(),Ye(Wa(e.isRange?"RangePanel":"Panel"),Vt(e.panelProps,{value:e.panelValue,visible:e.panelVisible,format:e.computedFormat,"use12-hours":e.computedUse12Hours,step:e.step,"disabled-hours":e.disabledHours,"disabled-minutes":e.disabledMinutes,"disabled-seconds":e.disabledSeconds,"hide-disabled-options":e.hideDisabledOptions,"hide-footer":e.disableConfirm,onSelect:e.onPanelSelect,onConfirm:e.onPanelConfirm}),yo({_:2},[e.$slots.extra?{name:"extra-footer",fn:de(()=>[vt(e.$slots,"extra")]),key:"0"}:void 0]),1040,["value","visible","format","use12-hours","step","disabled-hours","disabled-minutes","disabled-seconds","hide-disabled-options","hide-footer","onSelect","onConfirm"]))],2)]),default:de(()=>[(z(),Ye(Wa(e.isRange?"DateRangeInput":"DateInput"),Vt({...e.$attrs,...e.inputProps},{ref:"refInput","input-value":e.inputValue,value:e.panelValue,size:e.size,focused:e.panelVisible,format:e.computedFormat,visible:e.panelVisible,disabled:e.mergedDisabled,error:e.error,readonly:e.readonly,editable:!e.readonly,"allow-clear":e.allowClear&&!e.readonly,placeholder:e.computedPlaceholder,onClear:e.onInputClear}),yo({"suffix-icon":de(()=>[vt(e.$slots,"suffix-icon",{},()=>[O(s)])]),_:2},[e.$slots.prefix?{name:"prefix",fn:de(()=>[vt(e.$slots,"prefix")]),key:"0"}:void 0]),1040,["input-value","value","size","focused","format","visible","disabled","error","readonly","editable","allow-clear","placeholder","onClear"]))]),_:3},16,["position","disabled","popup-visible","unmount-on-close","popup-container","onPopupVisibleChange"])}var CM=Ve(Lze,[["render",Dze]]);const Pze=Object.assign(CM,{install:(e,t)=>{Xn(e,t);const n=Yn(t);e.component(n+CM.name,CM)}}),tve=Symbol("ArcoTimeline"),Rze=(e,t,n,r)=>{let o=["left","right"];n==="horizontal"&&(o=["top","bottom"]);const a=t==="alternate"?r||o[e%2]:t;return o.indexOf(a)>-1?a:o[0]},Mze=Se({name:"TimelineItem",props:{dotColor:{type:String},dotType:{type:String,default:"solid"},lineType:{type:String,default:"solid"},lineColor:{type:String},label:{type:String},position:{type:String}},setup(e){const t=Te("timeline-item"),n=_o(),r=On(tve,{}),o=j(()=>{var v,g,y;return(y=(g=r.items)==null?void 0:g.indexOf((v=n?.uid)!=null?v:-1))!=null?y:-1}),a=j(()=>{var v;return(v=r?.direction)!=null?v:"vertical"}),s=j(()=>{var v;return(v=r?.labelPosition)!=null?v:"same"}),l=j(()=>{const{items:v=[],reverse:g,labelPosition:y,mode:S="left"}=r,k=a.value,C=Rze(o.value,S,k,e.position);return[t,{[`${t}-${k}-${C}`]:k,[`${t}-label-${y}`]:y,[`${t}-last`]:o.value===(g===!0?0:v.length-1)}]}),c=j(()=>[`${t}-dot-line`,`${t}-dot-line-is-${a.value}`]),d=j(()=>{const{direction:v}=r||{};return{[v==="horizontal"?"borderTopStyle":"borderLeftStyle"]:e.lineType,...e.lineColor?{borderColor:e.lineColor}:{}}}),h=j(()=>[`${t}-dot`,`${t}-dot-${e.dotType}`]),p=j(()=>({[e.dotType==="solid"?"backgroundColor":"borderColor"]:e.dotColor}));return{cls:l,dotLineCls:c,dotTypeCls:h,prefixCls:t,computedDotLineStyle:d,computedDotStyle:p,labelPosition:s}}});function Oze(e,t,n,r,o,a){return z(),Q("div",{role:"listitem",class:ue(e.cls)},[I("div",{class:ue(`${e.prefixCls}-dot-wrapper`)},[I("div",{class:ue(e.dotLineCls),style:Ke(e.computedDotLineStyle)},null,6),I("div",{class:ue(`${e.prefixCls}-dot-content`)},[e.$slots.dot?(z(),Q("div",{key:0,class:ue(`${e.prefixCls}-dot-custom`)},[vt(e.$slots,"dot")],2)):(z(),Q("div",{key:1,class:ue(e.dotTypeCls),style:Ke(e.computedDotStyle)},null,6))],2)],2),I("div",{class:ue(`${e.prefixCls}-content-wrapper`)},[e.$slots.default?(z(),Q("div",{key:0,class:ue(`${e.prefixCls}-content`)},[vt(e.$slots,"default")],2)):Le("v-if",!0),e.labelPosition!=="relative"?(z(),Q("div",{key:1,class:ue(`${e.prefixCls}-label`)},[e.$slots.label?vt(e.$slots,"label",{key:0}):(z(),Q(Nt,{key:1},[We(ze(e.label),1)],64))],2)):Le("v-if",!0)],2),e.labelPosition==="relative"?(z(),Q("div",{key:0,class:ue(`${e.prefixCls}-label`)},[e.$slots.label?vt(e.$slots,"label",{key:0}):(z(),Q(Nt,{key:1},[We(ze(e.label),1)],64))],2)):Le("v-if",!0)],2)}var uy=Ve(Mze,[["render",Oze]]),wM=Se({name:"Timeline",components:{Item:uy,Spin:Pd},props:{reverse:{type:Boolean},direction:{type:String,default:"vertical"},mode:{type:String,default:"left"},pending:{type:[Boolean,String]},labelPosition:{type:String,default:"same"}},setup(e,{slots:t}){const n=Te("timeline"),r=j(()=>e.pending||t.pending),{children:o,components:a}=J_("TimelineItem"),{reverse:s,direction:l,labelPosition:c,mode:d}=nn(e),h=Xt({items:a,direction:l,reverse:s,labelPosition:c,mode:d});ri(tve,h);const p=j(()=>[n,`${n}-${e.mode}`,`${n}-direction-${e.direction}`,{[`${n}-is-reverse`]:e.reverse}]);return()=>{var v,g;return r.value?o.value=(v=t.default)==null?void 0:v.call(t).concat(O(uy,{lineType:"dashed"},{default:()=>[e.pending!==!0&&O("div",null,[e.pending])],dot:()=>{var y,S;return(S=(y=t.dot)==null?void 0:y.call(t))!=null?S:O(Pd,{size:12},null)}})):o.value=(g=t.default)==null?void 0:g.call(t),O("div",{role:"list",class:p.value},[o.value])}}});const $ze=Object.assign(wM,{Item:uy,install:(e,t)=>{Xn(e,t);const n=Yn(t);e.component(n+wM.name,wM),e.component(n+uy.name,uy)}}),Bze=Se({name:"IconDelete",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-delete`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Nze=["stroke-width","stroke-linecap","stroke-linejoin"];function Fze(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M5 11h5.5m0 0v29a1 1 0 0 0 1 1h25a1 1 0 0 0 1-1V11m-27 0H16m21.5 0H43m-5.5 0H32m-16 0V7h16v4m-16 0h16M20 18v15m8-15v15"},null,-1)]),14,Nze)}var EM=Ve(Bze,[["render",Fze]]);const fc=Object.assign(EM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+EM.name,EM)}}),zH=Symbol("ArcoTransfer");var jze=Se({name:"TransferListItem",props:{type:{type:String},data:{type:Object,required:!0},allowClear:{type:Boolean},disabled:{type:Boolean},draggable:{type:Boolean},simple:Boolean},setup(e){const t=Te("transfer-list-item"),n=On(zH,void 0),r=()=>{e.simple&&!e.disabled&&n?.moveTo([e.data.value],e.type==="target"?"source":"target")},o=j(()=>[t,{[`${t}-disabled`]:e.disabled,[`${t}-draggable`]:e.draggable}]),a=()=>{n?.moveTo([e.data.value],"source")};return()=>{var s,l,c;return O("div",{class:o.value,onClick:r},[e.allowClear||e.simple?O("span",{class:`${t}-content`},[(c=(l=n==null?void 0:(s=n.slots).item)==null?void 0:l.call(s,{label:e.data.label,value:e.data.value}))!=null?c:e.data.label]):O(Uc,{class:[`${t}-content`,`${t}-checkbox`],modelValue:n?.selected,value:e.data.value,onChange:d=>n?.onSelect(d),uninjectGroupContext:!0,disabled:e.disabled},{default:()=>{var d,h,p;return[(p=(h=n==null?void 0:(d=n.slots).item)==null?void 0:h.call(d,{label:e.data.label,value:e.data.value}))!=null?p:e.data.label]}}),e.allowClear&&!e.disabled&&O(Lo,{class:`${t}-remove-btn`,onClick:a},{default:()=>[O(ds,null,null)]})])}}});const Vze=Se({name:"TransferView",components:{Empty:JC,Checkbox:Uc,IconHover:Lo,IconDelete:fc,InputSearch:N0.Search,List:P0e,TransferListItem:jze,Scrollbar:Rd},props:{type:{type:String},dataInfo:{type:Object,required:!0},title:String,data:{type:Array,required:!0},disabled:Boolean,allowClear:Boolean,selected:{type:Array,required:!0},showSearch:Boolean,showSelectAll:Boolean,simple:Boolean,inputSearchProps:{type:Object}},emits:["search"],setup(e,{emit:t}){const n=Te("transfer-view"),r=fe(""),o=On(zH,void 0),a=j(()=>e.dataInfo.selected.length),s=j(()=>e.dataInfo.data.length),l=j(()=>e.dataInfo.selected.length>0&&e.dataInfo.selected.length===e.dataInfo.allValidValues.length),c=j(()=>e.dataInfo.selected.length>0&&e.dataInfo.selected.length{g?o?.onSelect([...e.selected,...e.dataInfo.allValidValues]):o?.onSelect(e.selected.filter(y=>!e.dataInfo.allValidValues.includes(y)))},h=j(()=>e.dataInfo.data.filter(g=>r.value?g.label.includes(r.value):!0));return{prefixCls:n,filteredData:h,filter:r,checked:l,indeterminate:c,countSelected:a,countRendered:s,handleSelectAllChange:d,handleSearch:g=>{t("search",g,e.type)},handleClear:()=>{o?.moveTo(e.dataInfo.allValidValues,"source")},transferCtx:o}}});function zze(e,t,n,r,o,a){const s=Ie("checkbox"),l=Ie("icon-delete"),c=Ie("icon-hover"),d=Ie("input-search"),h=Ie("transfer-list-item"),p=Ie("list"),v=Ie("Scrollbar"),g=Ie("Empty");return z(),Q("div",{class:ue(e.prefixCls)},[I("div",{class:ue(`${e.prefixCls}-header`)},[vt(e.$slots,"title",{countTotal:e.dataInfo.data.length,countSelected:e.dataInfo.selected.length,searchValue:e.filter,checked:e.checked,indeterminate:e.indeterminate,onSelectAllChange:e.handleSelectAllChange,onClear:e.handleClear},()=>[I("span",{class:ue(`${e.prefixCls}-header-title`)},[e.allowClear||e.simple||!e.showSelectAll?(z(),Q("span",{key:0,class:ue(`${e.prefixCls}-header-title-simple`)},ze(e.title),3)):(z(),Ye(s,{key:1,"model-value":e.checked,indeterminate:e.indeterminate,disabled:e.disabled,"uninject-group-context":"",onChange:e.handleSelectAllChange},{default:de(()=>[We(ze(e.title),1)]),_:1},8,["model-value","indeterminate","disabled","onChange"]))],2),e.allowClear?(z(),Ye(c,{key:0,disabled:e.disabled,class:ue(`${e.prefixCls}-header-clear-btn`),onClick:e.handleClear},{default:de(()=>[O(l)]),_:1},8,["disabled","class","onClick"])):e.simple?Le("v-if",!0):(z(),Q("span",{key:1,class:ue(`${e.prefixCls}-header-count`)},ze(e.dataInfo.selected.length)+" / "+ze(e.dataInfo.data.length),3))])],2),e.showSearch?(z(),Q("div",{key:0,class:ue(`${e.prefixCls}-search`)},[O(d,Vt({modelValue:e.filter,"onUpdate:modelValue":t[0]||(t[0]=y=>e.filter=y),disabled:e.disabled},e.inputSearchProps,{onChange:e.handleSearch}),null,16,["modelValue","disabled","onChange"])],2)):Le("v-if",!0),I("div",{class:ue(`${e.prefixCls}-body`)},[e.filteredData.length>0?(z(),Ye(v,{key:0},{default:de(()=>{var y,S;return[vt(e.$slots,"default",{data:e.filteredData,selectedKeys:(y=e.transferCtx)==null?void 0:y.selected,onSelect:(S=e.transferCtx)==null?void 0:S.onSelect},()=>[O(p,{class:ue(`${e.prefixCls}-list`),bordered:!1,scrollbar:!1},{default:de(()=>[(z(!0),Q(Nt,null,gn(e.filteredData,k=>(z(),Ye(h,{key:k.value,type:e.type,data:k,simple:e.simple,"allow-clear":e.allowClear,disabled:e.disabled||k.disabled},null,8,["type","data","simple","allow-clear","disabled"]))),128))]),_:1},8,["class"])])]}),_:3})):(z(),Ye(g,{key:1,class:ue(`${e.prefixCls}-empty`)},null,8,["class"]))],2)],2)}var Uze=Ve(Vze,[["render",zze]]);const Hze=Se({name:"Transfer",components:{ArcoButton:Xo,TransferView:Uze,IconLeft:Al,IconRight:Hi},props:{data:{type:Array,default:()=>[]},modelValue:{type:Array,default:void 0},defaultValue:{type:Array,default:()=>[]},selected:{type:Array,default:void 0},defaultSelected:{type:Array,default:()=>[]},disabled:{type:Boolean,default:!1},simple:{type:Boolean,default:!1},oneWay:{type:Boolean,default:!1},showSearch:{type:Boolean,default:!1},showSelectAll:{type:Boolean,default:!0},title:{type:Array,default:()=>["Source","Target"]},sourceInputSearchProps:{type:Object},targetInputSearchProps:{type:Object}},emits:{"update:modelValue":e=>!0,"update:selected":e=>!0,change:e=>!0,select:e=>!0,search:(e,t)=>!0},setup(e,{emit:t,slots:n}){const{mergedDisabled:r,eventHandlers:o}=Do({disabled:Lu(e,"disabled")}),a=Te("transfer"),s=fe(e.defaultValue),l=j(()=>{var x;return(x=e.modelValue)!=null?x:s.value}),c=fe(e.defaultSelected),d=j(()=>{var x;return(x=e.selected)!=null?x:c.value}),h=j(()=>{var x;return(x=e.title)==null?void 0:x[0]}),p=j(()=>{var x;return(x=e.title)==null?void 0:x[1]}),v=j(()=>{const x={data:[],allValidValues:[],selected:[],validSelected:[]},E={data:[],allValidValues:[],selected:[],validSelected:[]};for(const _ of e.data)l.value.includes(_.value)?(E.data.push(_),_.disabled||E.allValidValues.push(_.value),d.value.includes(_.value)&&(E.selected.push(_.value),_.disabled||E.validSelected.push(_.value))):(x.data.push(_),_.disabled||x.allValidValues.push(_.value),d.value.includes(_.value)&&(x.selected.push(_.value),_.disabled||x.validSelected.push(_.value)));return{sourceInfo:x,targetInfo:E}}),g=(x,E)=>{t("search",x,E)},y=(x,E)=>{var _,T;const D=E==="target"?[...l.value,...x]:l.value.filter(P=>!x.includes(P));k(v.value[E==="target"?"targetInfo":"sourceInfo"].selected),s.value=D,t("update:modelValue",D),t("change",D),(T=(_=o.value)==null?void 0:_.onChange)==null||T.call(_)},S=x=>{const E=x==="target"?v.value.sourceInfo.validSelected:v.value.targetInfo.validSelected;y(E,x)},k=x=>{c.value=x,t("update:selected",x),t("select",x)};ri(zH,Xt({selected:d,slots:n,moveTo:y,onSelect:k}));const C=j(()=>[a,{[`${a}-simple`]:e.simple,[`${a}-disabled`]:r.value}]);return{prefixCls:a,cls:C,dataInfo:v,computedSelected:d,mergedDisabled:r,sourceTitle:h,targetTitle:p,handleClick:S,handleSearch:g}}});function Wze(e,t,n,r,o,a){const s=Ie("transfer-view"),l=Ie("icon-right"),c=Ie("arco-button"),d=Ie("icon-left");return z(),Q("div",{class:ue(e.cls)},[O(s,{type:"source",class:ue(`${e.prefixCls}-view-source`),title:e.sourceTitle,"data-info":e.dataInfo.sourceInfo,data:e.dataInfo.sourceInfo.data,disabled:e.mergedDisabled,selected:e.computedSelected,"show-search":e.showSearch,"show-select-all":e.showSelectAll,simple:e.simple,"input-search-props":e.sourceInputSearchProps,onSearch:e.handleSearch},yo({_:2},[e.$slots.source?{name:"default",fn:de(h=>[vt(e.$slots,"source",Yi(Sa(h)))]),key:"0"}:void 0,e.$slots["source-title"]?{name:"title",fn:de(h=>[vt(e.$slots,"source-title",Yi(Sa(h)))]),key:"1"}:void 0]),1032,["class","title","data-info","data","disabled","selected","show-search","show-select-all","simple","input-search-props","onSearch"]),e.simple?Le("v-if",!0):(z(),Q("div",{key:0,class:ue([`${e.prefixCls}-operations`])},[O(c,{tabindex:"-1","aria-label":"Move selected right",size:"small",shape:"round",disabled:e.dataInfo.sourceInfo.validSelected.length===0,onClick:t[0]||(t[0]=h=>e.handleClick("target"))},{icon:de(()=>[vt(e.$slots,"to-target-icon",{},()=>[O(l)])]),_:3},8,["disabled"]),e.oneWay?Le("v-if",!0):(z(),Ye(c,{key:0,tabindex:"-1","aria-label":"Move selected left",size:"small",shape:"round",disabled:e.dataInfo.targetInfo.validSelected.length===0,onClick:t[1]||(t[1]=h=>e.handleClick("source"))},{icon:de(()=>[vt(e.$slots,"to-source-icon",{},()=>[O(d)])]),_:3},8,["disabled"]))],2)),O(s,{type:"target",class:ue(`${e.prefixCls}-view-target`),title:e.targetTitle,"data-info":e.dataInfo.targetInfo,data:e.dataInfo.targetInfo.data,disabled:e.mergedDisabled,selected:e.computedSelected,"allow-clear":e.oneWay,"show-search":e.showSearch,"show-select-all":e.showSelectAll,simple:e.simple,"input-search-props":e.targetInputSearchProps,onSearch:e.handleSearch},yo({_:2},[e.$slots.target?{name:"default",fn:de(h=>[vt(e.$slots,"target",Yi(Sa(h)))]),key:"0"}:void 0,e.$slots["target-title"]?{name:"title",fn:de(h=>[vt(e.$slots,"target-title",Yi(Sa(h)))]),key:"1"}:void 0]),1032,["class","title","data-info","data","disabled","selected","allow-clear","show-search","show-select-all","simple","input-search-props","onSearch"])],2)}var TM=Ve(Hze,[["render",Wze]]);const Gze=Object.assign(TM,{install:(e,t)=>{Xn(e,t);const n=Yn(t);e.component(n+TM.name,TM)}}),nve=Symbol("TreeInjectionKey");function Kze(e){const t=[];function n(r){r&&r.forEach(o=>{t.push(o),n(o.children)})}return n(e),t}function qze(e){const t=new Map;return e.forEach(n=>{t.set(n.key,n)}),t}function cV(e){return e.selectable&&!e.disabled}function Bre(e){return!e.isLeaf&&e.children}function Yze(e){return El(e.isLeaf)?e.isLeaf:!e.children}function dV(e){return Set.prototype.add.bind(e)}function fV(e){return Set.prototype.delete.bind(e)}function vm(e){return e.disabled||e.disableCheckbox?!1:!!e.checkable}function UH(e){var t;const n=[];return(t=e.children)==null||t.forEach(r=>{vm(r)&&n.push(r.key,...UH(r))}),n}function rve(e){var t;const{node:n,checkedKeySet:r,indeterminateKeySet:o}=e;let a=n.parent;for(;a;){if(vm(a)){const s=a.key,l=((t=a.children)==null?void 0:t.filter(vm))||[];let c=0;const d=l.length;l.some(({key:h})=>{if(r.has(h))c+=1;else if(o.has(h))return c+=.5,!0;return!1}),c&&c!==d?o.add(s):o.delete(s),c&&c===d?r.add(s):r.delete(s)}a=a.parent}}function hV(e){const{node:t,checked:n,checkedKeys:r,indeterminateKeys:o,checkStrictly:a=!1}=e,{key:s}=t,l=new Set(r),c=new Set(o);if(n?l.add(s):l.delete(s),c.delete(s),!a){const d=UH(t);n?d.forEach(dV(l)):d.forEach(fV(l)),d.forEach(fV(c)),rve({node:t,checkedKeySet:l,indeterminateKeySet:c})}return[[...l],[...c]]}function Xze(e){const{initCheckedKeys:t,key2TreeNode:n,checkStrictly:r,onlyCheckLeaf:o}=e,a=new Set,s=new Set,l=new Set;return r?t.forEach(dV(a)):t.forEach(c=>{var d;const h=n.get(c);if(!h||s.has(c)||o&&((d=h.children)!=null&&d.length))return;const p=UH(h);p.forEach(dV(s)),p.forEach(fV(l)),a.add(c),l.delete(c),rve({node:h,checkedKeySet:a,indeterminateKeySet:l})}),[[...a,...s],[...l]]}function K5(){return On(nve)||{}}const Zze=Se({name:"IconFile",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-file`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Jze=["stroke-width","stroke-linecap","stroke-linejoin"];function Qze(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M16 21h16m-16 8h10m11 13H11a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h21l7 7v27a2 2 0 0 1-2 2Z"},null,-1)]),14,Jze)}var AM=Ve(Zze,[["render",Qze]]);const q5=Object.assign(AM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+AM.name,AM)}});var eUe=Se({name:"TreeNodeSwitcher",components:{IconLoading:Xa,RenderFunction:Jh},props:{prefixCls:String,loading:Boolean,showLine:Boolean,treeNodeData:{type:Object},icons:{type:Object},nodeStatus:{type:Object}},emits:["click"],setup(e,{slots:t,emit:n}){const{icons:r,nodeStatus:o,treeNodeData:a}=nn(e),s=K5(),l=xd(t,"switcher-icon"),c=xd(t,"loading-icon");return{getSwitcherIcon:()=>{var d,h,p;const v=(h=(d=r?.value)==null?void 0:d.switcherIcon)!=null?h:l.value;return v?v(o.value):(p=s.switcherIcon)==null?void 0:p.call(s,a.value,o.value)},getLoadingIcon:()=>{var d,h,p;const v=(h=(d=r?.value)==null?void 0:d.loadingIcon)!=null?h:c.value;return v?v(o.value):(p=s.loadingIcon)==null?void 0:p.call(s,a.value,o.value)},onClick(d){n("click",d)}}},render(){var e,t,n;const{prefixCls:r,getSwitcherIcon:o,getLoadingIcon:a,onClick:s,nodeStatus:l={},loading:c,showLine:d}=this,{expanded:h,isLeaf:p}=l;if(c)return(e=a())!=null?e:da(Xa);let v=null,g=!1;if(p)d&&(v=(n=o())!=null?n:da(q5));else{const S=d?da("span",{class:`${r}-${h?"minus":"plus"}-icon`}):da(FH);v=(t=o())!=null?t:S,g=!d}if(!v)return null;const y=da("span",{class:`${r}-switcher-icon`,onClick:s},v);return g?da(Lo,{class:`${r}-icon-hover`},()=>y):y}});const ive=(()=>{let e=0;return()=>(e+=1,`__arco_tree${e}`)})();function tUe(e,t){return!!(An(e)?t:e)}function nUe(e,t){const n={...e};return t&&Object.keys(t).forEach(o=>{const a=t[o];a!==o&&(n[o]=e[a],delete n[a])}),n}function Nre({subEnable:e,superEnable:t,isLeaf:n,treeNodeData:r,level:o}){return An(e)?En(t)?t(r,{isLeaf:n,level:o}):t??!1:e}function rUe(e){var t,n;const{treeNodeData:r,parentNode:o,isTail:a=!0,treeProps:s}=e,{fieldNames:l}=s||{},c=nUe(r,l),d=s.loadMore?!!c.isLeaf:!((t=c.children)!=null&&t.length),h=o?o.level+1:0,p={...xa(c,["children"]),key:(n=c.key)!=null?n:ive(),selectable:Nre({subEnable:c.selectable,superEnable:s?.selectable,isLeaf:d,level:h,treeNodeData:r}),disabled:!!c.disabled,disableCheckbox:!!c.disableCheckbox,checkable:Nre({subEnable:c.checkable,superEnable:s?.checkable,isLeaf:d,level:h,treeNodeData:r}),isLeaf:d,isTail:a,blockNode:!!s?.blockNode,showLine:!!s?.showLine,level:h,lineless:o?[...o.lineless,o.isTail]:[],draggable:tUe(c.draggable,s?.draggable)};return{...p,treeNodeProps:p,treeNodeData:r,parent:o,parentKey:o?.key,pathParentKeys:o?[...o.pathParentKeys,o.key]:[]}}function iUe(e,t){function n(r,o){if(!r)return;const{fieldNames:a}=t,s=[];return r.forEach((l,c)=>{const d=rUe({treeNodeData:l,treeProps:t,parentNode:o,isTail:c===r.length-1});d.children=n(l[a?.children||"children"],d),s.push(d)}),s}return n(e)}function ove(){const e=_o(),t=()=>{var r;return(r=e?.vnode.key)!=null?r:ive()},n=fe(t());return Qa(()=>{n.value=t()}),n}function oUe(e){const{key:t,refTitle:n}=nn(e),r=K5(),o=fe(!1),a=fe(!1),s=fe(!1),l=fe(0),c=Im(d=>{if(!n.value)return;const h=n.value.getBoundingClientRect(),p=window.pageYOffset+h.top,{pageY:v}=d,g=h.height/4,y=v-p;l.value=y[]}},setup(e){const t=ove(),n=Te("tree-node"),r=K5(),o=j(()=>{var oe;return(oe=r.key2TreeNode)==null?void 0:oe.get(t.value)}),a=j(()=>o.value.treeNodeData),s=j(()=>o.value.children),l=j(()=>{var oe;const Z=(oe=r.treeProps)==null?void 0:oe.actionOnNodeClick;return Z?sUe(Z):[]}),{isLeaf:c,isTail:d,selectable:h,disabled:p,disableCheckbox:v,draggable:g}=nn(e),y=j(()=>{var oe;return[`${n}`,{[`${n}-selected`]:M.value,[`${n}-is-leaf`]:c.value,[`${n}-is-tail`]:d.value,[`${n}-expanded`]:$.value,[`${n}-disabled-selectable`]:!h.value&&!((oe=r.treeProps)!=null&&oe.disableSelectActionOnly),[`${n}-disabled`]:p.value}]}),S=fe(),{isDragOver:k,isDragging:C,isAllowDrop:x,dropPosition:E,setDragStatus:_}=oUe(Xt({key:t,refTitle:S})),T=j(()=>[`${n}-title`,{[`${n}-title-draggable`]:g.value,[`${n}-title-gap-top`]:k.value&&x.value&&E.value<0,[`${n}-title-gap-bottom`]:k.value&&x.value&&E.value>0,[`${n}-title-highlight`]:!C.value&&k.value&&x.value&&E.value===0,[`${n}-title-dragging`]:C.value,[`${n}-title-block`]:o.value.blockNode}]),D=j(()=>{var oe,Z;return(Z=(oe=r.checkedKeys)==null?void 0:oe.includes)==null?void 0:Z.call(oe,t.value)}),P=j(()=>{var oe,Z;return(Z=(oe=r.indeterminateKeys)==null?void 0:oe.includes)==null?void 0:Z.call(oe,t.value)}),M=j(()=>{var oe,Z;return(Z=(oe=r.selectedKeys)==null?void 0:oe.includes)==null?void 0:Z.call(oe,t.value)}),$=j(()=>{var oe,Z;return(Z=(oe=r.expandedKeys)==null?void 0:oe.includes)==null?void 0:Z.call(oe,t.value)}),L=j(()=>{var oe,Z;return(Z=(oe=r.loadingKeys)==null?void 0:oe.includes)==null?void 0:Z.call(oe,t.value)}),B=j(()=>r.dragIcon),F=j(()=>r.nodeIcon);function W(oe){var Z,H;c.value||(!((Z=s.value)!=null&&Z.length)&&En(r.onLoadMore)?r.onLoadMore(t.value):(H=r?.onExpand)==null||H.call(r,!$.value,t.value,oe))}const U=Xt({loading:L,checked:D,selected:M,indeterminate:P,expanded:$,isLeaf:c}),G=j(()=>r.nodeTitle?()=>{var oe;return(oe=r.nodeTitle)==null?void 0:oe.call(r,a.value,U)}:void 0),X=j(()=>r.nodeExtra?()=>{var oe;return(oe=r.nodeExtra)==null?void 0:oe.call(r,a.value,U)}:void 0);return{nodekey:t,refTitle:S,prefixCls:n,classNames:y,titleClassNames:T,indeterminate:P,checked:D,expanded:$,selected:M,treeTitle:G,treeNodeData:a,loading:L,treeDragIcon:B,treeNodeIcon:F,extra:X,nodeStatus:U,onCheckboxChange(oe,Z){var H;v.value||p.value||(H=r.onCheck)==null||H.call(r,oe,t.value,Z)},onTitleClick(oe){var Z;l.value.includes("expand")&&W(oe),!(!h.value||p.value)&&((Z=r.onSelect)==null||Z.call(r,t.value,oe))},onSwitcherClick:W,onDragStart(oe){var Z;if(g.value){oe.stopPropagation(),_("dragStart",oe);try{(Z=oe.dataTransfer)==null||Z.setData("text/plain","")}catch{}}},onDragEnd(oe){g.value&&(oe.stopPropagation(),_("dragEnd",oe))},onDragOver(oe){g&&(oe.stopPropagation(),oe.preventDefault(),_("dragOver",oe))},onDragLeave(oe){g.value&&(oe.stopPropagation(),_("dragLeave",oe))},onDrop(oe){!g.value||!x.value||(oe.stopPropagation(),oe.preventDefault(),_("drop",oe))}}}}),lUe=["data-level","data-key"],uUe=["draggable"];function cUe(e,t,n,r,o,a){const s=Ie("NodeSwitcher"),l=Ie("Checkbox"),c=Ie("RenderFunction"),d=Ie("IconDragDotVertical");return z(),Q("div",{class:ue(e.classNames),"data-level":e.level,"data-key":e.nodekey},[Le(" 缩进 "),I("span",{class:ue(`${e.prefixCls}-indent`)},[(z(!0),Q(Nt,null,gn(e.level,h=>(z(),Q("span",{key:h,class:ue([`${e.prefixCls}-indent-block`,{[`${e.prefixCls}-indent-block-lineless`]:e.lineless[h-1]}])},null,2))),128))],2),Le(" switcher "),I("span",{class:ue([`${e.prefixCls}-switcher`,{[`${e.prefixCls}-switcher-expanded`]:e.expanded}])},[O(s,{"prefix-cls":e.prefixCls,loading:e.loading,"show-line":e.showLine,"tree-node-data":e.treeNodeData,icons:{switcherIcon:e.switcherIcon,loadingIcon:e.loadingIcon},"node-status":e.nodeStatus,onClick:e.onSwitcherClick},yo({_:2},[e.$slots["switcher-icon"]?{name:"switcher-icon",fn:de(()=>[Le(" @slot 定制 switcher 图标,会覆盖 Tree 的配置 "),vt(e.$slots,"switcher-icon")]),key:"0"}:void 0,e.$slots["loading-icon"]?{name:"loading-icon",fn:de(()=>[Le(" @slot 定制 loading 图标,会覆盖 Tree 的配置 "),vt(e.$slots,"loading-icon")]),key:"1"}:void 0]),1032,["prefix-cls","loading","show-line","tree-node-data","icons","node-status","onClick"])],2),Le(" checkbox "),e.checkable?(z(),Ye(l,{key:0,disabled:e.disableCheckbox||e.disabled,"model-value":e.checked,indeterminate:e.indeterminate,"uninject-group-context":"",onChange:e.onCheckboxChange},null,8,["disabled","model-value","indeterminate","onChange"])):Le("v-if",!0),Le(" 内容 "),I("span",{ref:"refTitle",class:ue(e.titleClassNames),draggable:e.draggable,onDragstart:t[0]||(t[0]=(...h)=>e.onDragStart&&e.onDragStart(...h)),onDragend:t[1]||(t[1]=(...h)=>e.onDragEnd&&e.onDragEnd(...h)),onDragover:t[2]||(t[2]=(...h)=>e.onDragOver&&e.onDragOver(...h)),onDragleave:t[3]||(t[3]=(...h)=>e.onDragLeave&&e.onDragLeave(...h)),onDrop:t[4]||(t[4]=(...h)=>e.onDrop&&e.onDrop(...h)),onClick:t[5]||(t[5]=(...h)=>e.onTitleClick&&e.onTitleClick(...h))},[e.$slots.icon||e.icon||e.treeNodeIcon?(z(),Q("span",{key:0,class:ue([`${e.prefixCls}-icon`,`${e.prefixCls}-custom-icon`])},[Le(" 节点图标 "),e.$slots.icon?vt(e.$slots,"icon",Yi(Vt({key:0},e.nodeStatus))):e.icon?(z(),Ye(c,Vt({key:1,"render-func":e.icon},e.nodeStatus),null,16,["render-func"])):e.treeNodeIcon?(z(),Ye(c,Vt({key:2,"render-func":e.treeNodeIcon,node:e.treeNodeData},e.nodeStatus),null,16,["render-func","node"])):Le("v-if",!0)],2)):Le("v-if",!0),I("span",{class:ue(`${e.prefixCls}-title-text`)},[e.treeTitle?(z(),Ye(c,{key:0,"render-func":e.treeTitle},null,8,["render-func"])):(z(),Q(Nt,{key:1},[Le(" 标题,treeTitle 优先级高于节点的 title "),vt(e.$slots,"title",{title:e.title},()=>[We(ze(e.title),1)])],2112)),e.draggable?(z(),Q("span",{key:2,class:ue([`${e.prefixCls}-icon`,`${e.prefixCls}-drag-icon`])},[Le(" 拖拽图标 "),e.$slots["drag-icon"]?vt(e.$slots,"drag-icon",Yi(Vt({key:0},e.nodeStatus))):e.dragIcon?(z(),Ye(c,Vt({key:1,"render-func":e.dragIcon},e.nodeStatus),null,16,["render-func"])):e.treeDragIcon?(z(),Ye(c,Vt({key:2,"render-func":e.treeDragIcon,node:e.treeNodeData},e.nodeStatus),null,16,["render-func","node"])):(z(),Ye(d,{key:3}))],2)):Le("v-if",!0)],2)],42,uUe),Le(" 额外 "),e.extra?(z(),Ye(c,{key:1,"render-func":e.extra},null,8,["render-func"])):Le("v-if",!0)],10,lUe)}var pV=Ve(aUe,[["render",cUe]]);const dUe=Se({name:"ExpandTransition",props:{expanded:Boolean},emits:["end"],setup(e,{emit:t}){return{onEnter(n){const r=`${n.scrollHeight}px`;n.style.height=e.expanded?"0":r,n.offsetHeight,n.style.height=e.expanded?r:"0"},onAfterEnter(n){n.style.height=e.expanded?"":"0",t("end")},onBeforeLeave(n){n.style.display="none"}}}});function fUe(e,t,n,r,o,a){return z(),Ye(Cs,{onEnter:e.onEnter,onAfterEnter:e.onAfterEnter,onBeforeLeave:e.onBeforeLeave},{default:de(()=>[vt(e.$slots,"default")]),_:3},8,["onEnter","onAfterEnter","onBeforeLeave"])}var hUe=Ve(dUe,[["render",fUe]]);const pUe=Se({name:"TransitionNodeList",components:{ExpandTransition:hUe,BaseTreeNode:pV},props:{nodeKey:{type:[String,Number],required:!0}},setup(e){const n=[`${Te("tree")}-node-list`],r=K5(),{nodeKey:o}=nn(e),a=j(()=>{var c,d;return(d=(c=r.expandedKeys)==null?void 0:c.includes)==null?void 0:d.call(c,o.value)}),s=j(()=>{var c;const d=new Set(r.expandedKeys||[]),h=(c=r.flattenTreeData)==null?void 0:c.filter(p=>{var v,g;return(v=p.pathParentKeys)!=null&&v.includes(o.value)?!r.filterTreeNode||((g=r.filterTreeNode)==null?void 0:g.call(r,p.treeNodeData)):!1});return h?.filter(p=>{var v;if(a.value)return(v=p.pathParentKeys)==null?void 0:v.every(y=>d.has(y));const g=p.pathParentKeys.indexOf(o.value);return p.pathParentKeys.slice(g+1).every(y=>d.has(y))})}),l=j(()=>{var c,d;return((c=r.currentExpandKeys)==null?void 0:c.includes(o.value))&&((d=s.value)==null?void 0:d.length)});return{classNames:n,visibleNodeList:s,show:l,expanded:a,onTransitionEnd(){var c;(c=r.onExpandEnd)==null||c.call(r,o.value)}}}});function vUe(e,t,n,r,o,a){const s=Ie("BaseTreeNode"),l=Ie("ExpandTransition");return z(),Ye(l,{expanded:e.expanded,onEnd:e.onTransitionEnd},{default:de(()=>[e.show?(z(),Q("div",{key:0,class:ue(e.classNames)},[(z(!0),Q(Nt,null,gn(e.visibleNodeList,c=>(z(),Ye(s,Vt({key:c.key,ref_for:!0},c.treeNodeProps),null,16))),128))],2)):Le("v-if",!0)]),_:1},8,["expanded","onEnd"])}var mUe=Ve(pUe,[["render",vUe]]),gUe=Se({name:"TreeNode",inheritAttrs:!1,props:{...pV.props},setup(e,{slots:t,attrs:n}){const r=ove();return()=>O(Nt,null,[O(pV,Vt(e,n,{key:r.value}),t),O(mUe,{key:r.value,nodeKey:r.value},null)])}});function yUe(e){const{defaultCheckedKeys:t,checkedKeys:n,key2TreeNode:r,checkStrictly:o,halfCheckedKeys:a,onlyCheckLeaf:s}=nn(e),l=fe(!1),c=fe([]),d=fe([]),h=fe(),p=fe(),v=y=>Xze({initCheckedKeys:y,key2TreeNode:r.value,checkStrictly:o.value,onlyCheckLeaf:s.value}),g=y=>{const S=v(y);[c.value,d.value]=S};return g(n.value||t?.value||[]),Os(()=>{n.value?[h.value,p.value]=v(n.value):l.value&&(h.value=void 0,p.value=void 0,c.value=[],d.value=[]),l.value||(l.value=!0)}),{checkedKeys:j(()=>h.value||c.value),indeterminateKeys:j(()=>o.value&&a.value?a.value:p.value||d.value),setCheckedState(y,S,k=!1){return k?g(y):(c.value=y,d.value=S),[c.value,d.value]}}}function sve(e){const{treeData:t,fieldNames:n,selectable:r,showLine:o,blockNode:a,checkable:s,loadMore:l,draggable:c}=nn(e),d=fe([]);Os(()=>{var v,g;d.value=iUe(t.value||[],{selectable:(v=r?.value)!=null?v:!1,showLine:!!o?.value,blockNode:!!a?.value,checkable:(g=s?.value)!=null?g:!1,fieldNames:n?.value,loadMore:!!l?.value,draggable:!!c?.value})});const h=j(()=>Kze(d.value)),p=j(()=>qze(h.value));return{treeData:d,flattenTreeData:h,key2TreeNode:p}}const bUe=Se({name:"Tree",components:{VirtualList:a3,TreeNode:gUe},props:{size:{type:String,default:"medium"},blockNode:{type:Boolean},defaultExpandAll:{type:Boolean,default:!0},multiple:{type:Boolean},checkable:{type:[Boolean,String,Function],default:!1},selectable:{type:[Boolean,Function],default:!0},checkStrictly:{type:Boolean},checkedStrategy:{type:String,default:"all"},defaultSelectedKeys:{type:Array},selectedKeys:{type:Array},defaultCheckedKeys:{type:Array},checkedKeys:{type:Array},defaultExpandedKeys:{type:Array},expandedKeys:{type:Array},data:{type:Array,default:()=>[]},fieldNames:{type:Object},showLine:{type:Boolean},loadMore:{type:Function},draggable:{type:Boolean},allowDrop:{type:Function},filterTreeNode:{type:Function},searchValue:{type:String,default:""},virtualListProps:{type:Object},defaultExpandSelected:{type:Boolean},defaultExpandChecked:{type:Boolean},autoExpandParent:{type:Boolean,default:!0},halfCheckedKeys:{type:Array},onlyCheckLeaf:{type:Boolean,default:!1},animation:{type:Boolean,default:!0},actionOnNodeClick:{type:String},disableSelectActionOnly:{type:Boolean,default:!1}},emits:{select:(e,t)=>!0,"update:selectedKeys":e=>!0,check:(e,t)=>!0,"update:checkedKeys":e=>!0,"update:halfCheckedKeys":e=>!0,expand:(e,t)=>!0,"update:expandedKeys":e=>!0,dragStart:(e,t)=>!0,dragEnd:(e,t)=>!0,dragOver:(e,t)=>!0,dragLeave:(e,t)=>!0,drop:e=>!0},setup(e,{emit:t,slots:n}){const{data:r,showLine:o,multiple:a,loadMore:s,checkStrictly:l,checkedKeys:c,defaultCheckedKeys:d,selectedKeys:h,defaultSelectedKeys:p,expandedKeys:v,defaultExpandedKeys:g,checkedStrategy:y,selectable:S,checkable:k,blockNode:C,fieldNames:x,size:E,defaultExpandAll:_,filterTreeNode:T,draggable:D,allowDrop:P,defaultExpandSelected:M,defaultExpandChecked:$,autoExpandParent:L,halfCheckedKeys:B,onlyCheckLeaf:F,animation:W}=nn(e),U=Te("tree"),G=j(()=>[`${U}`,{[`${U}-checkable`]:k.value,[`${U}-show-line`]:o.value},`${U}-size-${E.value}`]),X=xd(n,"switcher-icon"),oe=xd(n,"loading-icon"),Z=xd(n,"drag-icon"),H=xd(n,"icon"),q=xd(n,"title"),ee=xd(n,"extra"),{treeData:ne,flattenTreeData:ae,key2TreeNode:re}=sve(Xt({treeData:r,selectable:S,showLine:o,blockNode:C,checkable:k,fieldNames:x,loadMore:s,draggable:D})),{checkedKeys:ke,indeterminateKeys:Ne,setCheckedState:me}=yUe(Xt({defaultCheckedKeys:d,checkedKeys:c,checkStrictly:l,key2TreeNode:re,halfCheckedKeys:B,onlyCheckLeaf:F})),[_e,Ue]=fa(p?.value||[],Xt({value:h})),Qe=fe([]),Me=fe();function je(){if(g?.value){const pt=new Set([]);return g.value.forEach(Oe=>{if(pt.has(Oe))return;const xt=re.value.get(Oe);xt&&[...L.value?xt.pathParentKeys:[],Oe].forEach(Zt=>pt.add(Zt))}),[...pt]}if(_.value)return ae.value.filter(pt=>pt.children&&pt.children.length).map(pt=>pt.key);if(M.value||$.value){const pt=new Set([]),Oe=xt=>{xt.forEach(Zt=>{const tn=re.value.get(Zt);tn&&(tn.pathParentKeys||[]).forEach(Ft=>pt.add(Ft))})};return M.value&&Oe(_e.value),$.value&&Oe(ke.value),[...pt]}return[]}const[ge,be]=fa(je(),Xt({value:v})),Fe=fe([]),He=j(()=>{const pt=new Set(ge.value),Oe=new Set(Fe.value);return ae.value.filter(xt=>{var Zt;if(!(!T||!T.value||T?.value(xt.treeNodeData)))return!1;const Ft=An(xt.parentKey),rn=(Zt=xt.pathParentKeys)==null?void 0:Zt.every(Jn=>pt.has(Jn)&&!Oe.has(Jn));return Ft||rn})});function Je(pt,Oe=y.value){let xt=[...pt];return Oe==="parent"?xt=pt.filter(Zt=>{const tn=re.value.get(Zt);return tn&&!(!An(tn.parentKey)&&pt.includes(tn.parentKey))}):Oe==="child"&&(xt=pt.filter(Zt=>{var tn,Ft;return!((Ft=(tn=re.value.get(Zt))==null?void 0:tn.children)!=null&&Ft.length)})),xt}function rt(pt){return pt.map(Oe=>{var xt;return((xt=re.value.get(Oe))==null?void 0:xt.treeNodeData)||void 0}).filter(Boolean)}function ht(pt){const{targetKey:Oe,targetChecked:xt,newCheckedKeys:Zt,newIndeterminateKeys:tn,event:Ft}=pt,rn=Oe?re.value.get(Oe):void 0,Jn=Je(Zt);t("update:checkedKeys",Jn),t("update:halfCheckedKeys",tn),t("check",Jn,{checked:xt,node:rn?.treeNodeData,checkedNodes:rt(Jn),halfCheckedKeys:tn,halfCheckedNodes:rt(tn),e:Ft})}function ut(pt){const{targetKey:Oe,targetSelected:xt,newSelectedKeys:Zt,event:tn}=pt,Ft=Oe?re.value.get(Oe):void 0;t("update:selectedKeys",Zt),t("select",Zt,{selected:xt,node:Ft?.treeNodeData,selectedNodes:rt(Zt),e:tn})}function Ct(pt){const{targetKey:Oe,targetExpanded:xt,newExpandedKeys:Zt,event:tn}=pt,Ft=Oe?re.value.get(Oe):void 0;t("expand",Zt,{expanded:xt,node:Ft?.treeNodeData,expandedNodes:rt(Zt),e:tn}),t("update:expandedKeys",Zt)}function St(pt){const[Oe,xt]=me(pt,[],!0);ht({newCheckedKeys:Oe,newIndeterminateKeys:xt})}function Gt(pt){let Oe=pt;!a.value&&pt.length>1&&(Oe=[pt[0]]),Ue(Oe),ut({newSelectedKeys:Oe})}function Tt(pt){Fe.value=[],be(pt),Ct({newExpandedKeys:pt})}function Mt(pt,Oe,xt){if(!pt.length)return;let Zt=[...ke.value],tn=[...Ne.value];pt.forEach(Ft=>{const rn=re.value.get(Ft);rn&&([Zt,tn]=hV({node:rn,checked:Oe,checkedKeys:[...Zt],indeterminateKeys:[...tn],checkStrictly:l.value}))}),me(Zt,tn),ht({targetKey:xt,targetChecked:An(xt)?void 0:Oe,newCheckedKeys:Zt,newIndeterminateKeys:tn})}function sn(pt,Oe,xt){if(!pt.length)return;let Zt;if(a.value){const tn=new Set(_e.value);pt.forEach(Ft=>{Oe?tn.add(Ft):tn.delete(Ft)}),Zt=[...tn]}else Zt=Oe?[pt[0]]:[];Ue(Zt),ut({targetKey:xt,targetSelected:An(xt)?void 0:Oe,newSelectedKeys:Zt})}function ct(pt,Oe,xt){const Zt=new Set(ge.value);pt.forEach(Ft=>{Oe?Zt.add(Ft):Zt.delete(Ft),Xe(Ft)});const tn=[...Zt];be(tn),Ct({targetKey:xt,targetExpanded:An(xt)?void 0:Oe,newExpandedKeys:tn})}function Be(pt,Oe,xt){const Zt=re.value.get(Oe);if(!Zt)return;const[tn,Ft]=hV({node:Zt,checked:pt,checkedKeys:ke.value,indeterminateKeys:Ne.value,checkStrictly:l.value});me(tn,Ft),ht({targetKey:Oe,targetChecked:pt,newCheckedKeys:tn,newIndeterminateKeys:Ft,event:xt})}function Ae(pt,Oe){if(!re.value.get(pt))return;let Zt,tn;if(a.value){const Ft=new Set(_e.value);tn=!Ft.has(pt),tn?Ft.add(pt):Ft.delete(pt),Zt=[...Ft]}else tn=!0,Zt=[pt];Ue(Zt),ut({targetKey:pt,targetSelected:tn,newSelectedKeys:Zt,event:Oe})}function Re(pt,Oe,xt){if(Fe.value.includes(Oe)||!re.value.get(Oe))return;const tn=new Set(ge.value);pt?tn.add(Oe):tn.delete(Oe);const Ft=[...tn];be(Ft),W.value&&Fe.value.push(Oe),Ct({targetKey:Oe,targetExpanded:pt,newExpandedKeys:Ft,event:xt})}function Xe(pt){const Oe=Fe.value.indexOf(pt);Fe.value.splice(Oe,1)}const dt=j(()=>s?.value?async pt=>{if(!En(s.value))return;const Oe=re.value.get(pt);if(!Oe)return;const{treeNodeData:xt}=Oe;Qe.value=[...new Set([...Qe.value,pt])];try{await s.value(xt),Qe.value=Qe.value.filter(Zt=>Zt!==pt),Re(!0,pt),ke.value.includes(pt)&&Be(!0,pt)}catch(Zt){Qe.value=Qe.value.filter(tn=>tn!==pt),console.error("[tree]load data error: ",Zt)}}:void 0),Dt=Xt({treeProps:e,switcherIcon:X,loadingIcon:oe,dragIcon:Z,nodeIcon:H,nodeTitle:q,nodeExtra:ee,treeData:ne,flattenTreeData:ae,key2TreeNode:re,checkedKeys:ke,indeterminateKeys:Ne,selectedKeys:_e,expandedKeys:ge,loadingKeys:Qe,currentExpandKeys:Fe,onLoadMore:dt,filterTreeNode:T,onCheck:Be,onSelect:Ae,onExpand:Re,onExpandEnd:Xe,allowDrop(pt,Oe){const xt=re.value.get(pt);return xt&&En(P.value)?!!P.value({dropNode:xt.treeNodeData,dropPosition:Oe}):!0},onDragStart(pt,Oe){const xt=re.value.get(pt);Me.value=xt,xt&&t("dragStart",Oe,xt.treeNodeData)},onDragEnd(pt,Oe){const xt=re.value.get(pt);Me.value=void 0,xt&&t("dragEnd",Oe,xt.treeNodeData)},onDragOver(pt,Oe){const xt=re.value.get(pt);xt&&t("dragOver",Oe,xt.treeNodeData)},onDragLeave(pt,Oe){const xt=re.value.get(pt);xt&&t("dragLeave",Oe,xt.treeNodeData)},onDrop(pt,Oe,xt){const Zt=re.value.get(pt);Me.value&&Zt&&!(Zt.key===Me.value.key||Zt.pathParentKeys.includes(Me.value.key||""))&&t("drop",{e:xt,dragNode:Me.value.treeNodeData,dropNode:Zt.treeNodeData,dropPosition:Oe})}});return ri(nve,Dt),{classNames:G,visibleTreeNodeList:He,treeContext:Dt,virtualListRef:fe(),computedSelectedKeys:_e,computedExpandedKeys:ge,computedCheckedKeys:ke,computedIndeterminateKeys:Ne,getPublicCheckedKeys:Je,getNodes:rt,internalCheckNodes:Mt,internalSetCheckedKeys:St,internalSelectNodes:sn,internalSetSelectedKeys:Gt,internalExpandNodes:ct,internalSetExpandedKeys:Tt}},methods:{toggleCheck(e,t){const{key2TreeNode:n,onCheck:r,checkedKeys:o}=this.treeContext,a=!o.includes(e),s=n.get(e);s&&vm(s)&&r(a,e,t)},scrollIntoView(e){this.virtualListRef&&this.virtualListRef.scrollTo(e)},getSelectedNodes(){return this.getNodes(this.computedSelectedKeys)},getCheckedNodes(e={}){const{checkedStrategy:t,includeHalfChecked:n}=e,r=this.getPublicCheckedKeys(this.computedCheckedKeys,t);return[...this.getNodes(r),...n?this.getHalfCheckedNodes():[]]},getHalfCheckedNodes(){return this.getNodes(this.computedIndeterminateKeys)},getExpandedNodes(){return this.getNodes(this.computedExpandedKeys)},checkAll(e=!0){const{key2TreeNode:t}=this.treeContext,n=e?[...t.keys()].filter(r=>{const o=t.get(r);return o&&vm(o)}):[];this.internalSetCheckedKeys(n)},checkNode(e,t=!0,n=!1){const{checkStrictly:r,treeContext:o}=this,{key2TreeNode:a}=o,s=or(e),l=(s?e:[e]).filter(c=>{const d=a.get(c);return d&&vm(d)&&(r||!n||Yze(d))});this.internalCheckNodes(l,t,s?void 0:e)},selectAll(e=!0){const{key2TreeNode:t}=this.treeContext,n=e?[...t.keys()].filter(r=>{const o=t.get(r);return o&&cV(o)}):[];this.internalSetSelectedKeys(n)},selectNode(e,t=!0){const{key2TreeNode:n}=this.treeContext,r=or(e),o=(r?e:[e]).filter(a=>{const s=n.get(a);return s&&cV(s)});this.internalSelectNodes(o,t,r?void 0:e)},expandAll(e=!0){const{key2TreeNode:t}=this.treeContext,n=e?[...t.keys()].filter(r=>{const o=t.get(r);return o&&Bre(o)}):[];this.internalSetExpandedKeys(n)},expandNode(e,t=!0){const{key2TreeNode:n}=this.treeContext,r=or(e),o=(r?e:[e]).filter(a=>{const s=n.get(a);return s&&Bre(s)});this.internalExpandNodes(o,t,r?void 0:e)}}});function _Ue(e,t,n,r,o,a){const s=Ie("TreeNode"),l=Ie("VirtualList");return z(),Q("div",{class:ue(e.classNames)},[e.virtualListProps?(z(),Ye(l,Vt({key:0,ref:"virtualListRef"},e.virtualListProps,{data:e.visibleTreeNodeList}),{item:de(({item:c})=>[(z(),Ye(s,Vt({key:`${e.searchValue}-${c.key}`},c.treeNodeProps),null,16))]),_:1},16,["data"])):(z(!0),Q(Nt,{key:1},gn(e.visibleTreeNodeList,c=>(z(),Ye(s,Vt({key:c.key,ref_for:!0},c.treeNodeProps),null,16))),128))],2)}var IM=Ve(bUe,[["render",_Ue]]);const vV=Object.assign(IM,{install:(e,t)=>{Xn(e,t);const n=Yn(t);e.component(n+IM.name,IM)}}),SUe=Se({name:"Typography",setup(){return{classNames:[Te("typography")]}}});function kUe(e,t,n,r,o,a){return z(),Q("article",{class:ue(e.classNames)},[vt(e.$slots,"default")],2)}var LM=Ve(SUe,[["render",kUe]]);const xUe=Se({name:"TypographyEditContent",components:{Input:N0},props:{text:{type:String,required:!0}},emits:["change","end","update:text"],setup(e,{emit:t}){const r=[`${Te("typography")}-edit-content`],o=fe();function a(l){t("update:text",l),t("change",l)}function s(){t("end")}return bn(()=>{if(!o.value||!o.value.$el)return;const l=o.value.$el.querySelector("input");if(!l)return;l.focus&&l.focus();const{length:c}=l.value;l.setSelectionRange(c,c)}),{classNames:r,inputRef:o,onBlur:s,onChange:a,onEnd:s}}});function CUe(e,t,n,r,o,a){const s=Ie("Input");return z(),Q("div",{class:ue(e.classNames)},[O(s,{ref:"inputRef","auto-size":"","model-value":e.text,onBlur:e.onBlur,onInput:e.onChange,onKeydown:Ch(e.onEnd,["enter"])},null,8,["model-value","onBlur","onInput","onKeydown"])],2)}var wUe=Ve(xUe,[["render",CUe]]);const EUe=Se({name:"IconCopy",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-copy`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),TUe=["stroke-width","stroke-linecap","stroke-linejoin"];function AUe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M20 6h18a2 2 0 0 1 2 2v22M8 16v24c0 1.105.891 2 1.996 2h20.007A1.99 1.99 0 0 0 32 40.008V15.997A1.997 1.997 0 0 0 30 14H10a2 2 0 0 0-2 2Z"},null,-1)]),14,TUe)}var DM=Ve(EUe,[["render",AUe]]);const Y5=Object.assign(DM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+DM.name,DM)}}),IUe=Se({name:"IconEdit",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-edit`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),LUe=["stroke-width","stroke-linecap","stroke-linejoin"];function DUe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m30.48 19.038 5.733-5.734a1 1 0 0 0 0-1.414l-5.586-5.586a1 1 0 0 0-1.414 0l-5.734 5.734m7 7L15.763 33.754a1 1 0 0 1-.59.286l-6.048.708a1 1 0 0 1-1.113-1.069l.477-6.31a1 1 0 0 1 .29-.631l14.7-14.7m7 7-7-7M6 42h36"},null,-1)]),14,LUe)}var PM=Ve(IUe,[["render",DUe]]);const HH=Object.assign(PM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+PM.name,PM)}}),PUe=Se({name:"TypographyOperations",components:{Tooltip:Zc,IconCheckCircleFill:Yh,IconCopy:Y5,IconEdit:HH},props:{editable:Boolean,copyable:Boolean,expandable:Boolean,isCopied:Boolean,isEllipsis:Boolean,expanded:Boolean,forceRenderExpand:Boolean,editTooltipProps:Object,copyTooltipProps:Object},emits:{edit:()=>!0,copy:()=>!0,expand:()=>!0},setup(e,{emit:t}){const n=Te("typography"),r=j(()=>e.forceRenderExpand||e.expandable&&e.isEllipsis),{t:o}=No();return{prefixCls:n,showExpand:r,t:o,onEditClick(){t("edit")},onCopyClick(){t("copy")},onExpandClick(){t("expand")}}}});function RUe(e,t,n,r,o,a){const s=Ie("IconEdit"),l=Ie("Tooltip"),c=Ie("IconCheckCircleFill"),d=Ie("IconCopy");return z(),Q(Nt,null,[e.editable?(z(),Ye(l,Vt({key:0,content:e.t("typography.edit")},e.editTooltipProps),{default:de(()=>[I("span",{class:ue(`${e.prefixCls}-operation-edit`),onClick:t[0]||(t[0]=us((...h)=>e.onEditClick&&e.onEditClick(...h),["stop"]))},[O(s)],2)]),_:1},16,["content"])):Le("v-if",!0),e.copyable?(z(),Ye(l,Yi(Vt({key:1},e.copyTooltipProps)),{content:de(()=>[vt(e.$slots,"copy-tooltip",{copied:e.isCopied},()=>[We(ze(e.isCopied?e.t("typography.copied"):e.t("typography.copy")),1)])]),default:de(()=>[I("span",{class:ue({[`${e.prefixCls}-operation-copied`]:e.isCopied,[`${e.prefixCls}-operation-copy`]:!e.isCopied}),onClick:t[1]||(t[1]=us((...h)=>e.onCopyClick&&e.onCopyClick(...h),["stop"]))},[vt(e.$slots,"copy-icon",{copied:e.isCopied},()=>[e.isCopied?(z(),Ye(c,{key:0})):(z(),Ye(d,{key:1}))])],2)]),_:3},16)):Le("v-if",!0),e.showExpand?(z(),Q("a",{key:2,class:ue(`${e.prefixCls}-operation-expand`),onClick:t[2]||(t[2]=us((...h)=>e.onExpandClick&&e.onExpandClick(...h),["stop"]))},[vt(e.$slots,"expand-node",{expanded:e.expanded},()=>[We(ze(e.expanded?e.t("typography.collapse"):e.t("typography.expand")),1)])],2)):Le("v-if",!0)],64)}var Fre=Ve(PUe,[["render",RUe]]);let Ws;function MUe(e){return Array.prototype.slice.apply(e).map(n=>`${n}: ${e.getPropertyValue(n)};`).join("")}function RM(e){if(!e)return 0;const t=e.match(/^\d*(\.\d*)?/);return t?Number(t[0]):0}var OUe=(e,t,n,r)=>{Ws||(Ws=document.createElement("div"),document.body.appendChild(Ws));const{rows:o,suffix:a,ellipsisStr:s}=t,l=window.getComputedStyle(e),c=MUe(l),d=RM(l.lineHeight),h=Math.round(d*o+RM(l.paddingTop)+RM(l.paddingBottom));Ws.setAttribute("style",c),Ws.setAttribute("aria-hidden","true"),Ws.style.height="auto",Ws.style.minHeight="auto",Ws.style.maxHeight="auto",Ws.style.position="fixed",Ws.style.left="0",Ws.style.top="-99999999px",Ws.style.zIndex="-200",Ws.style.whiteSpace="normal";const p=Iy({render(){return O("span",null,[n])}});p.mount(Ws);const v=Array.prototype.slice.apply(Ws.childNodes[0].cloneNode(!0).childNodes);p.unmount(),Ws.innerHTML="";const g=document.createTextNode(`${s}${a}`);Ws.appendChild(g),v.forEach(C=>{Ws.appendChild(C)});const y=document.createTextNode(r);Ws.insertBefore(y,g);function S(){return Ws.offsetHeight<=h}if(S())return{ellipsis:!1,text:r};function k(C,x=0,E=r.length,_=0){const T=Math.floor((x+E)/2),D=r.slice(0,T);if(C.textContent=D,x>=E-1)for(let P=E;P>=x;P-=1){const M=r.slice(0,P);if(C.textContent=M,S()||!M)return}S()?k(C,T,E,T):k(C,x,T,_)}return k(y),{text:y.textContent,ellipsis:!0}};const $Ue=async e=>{var t;if((t=navigator.clipboard)!=null&&t.writeText)try{await navigator.clipboard.writeText(e);return}catch(a){console.error(a??new DOMException("The request is not allowed","NotAllowedError"))}const n=document.createElement("span");n.textContent=e,n.style.whiteSpace="pre",document.body.appendChild(n);const r=window.getSelection(),o=window.document.createRange();r?.removeAllRanges(),o.selectNode(n),r?.addRange(o);try{window.document.execCommand("copy")}catch(a){console.error(`execCommand Error: ${a}`)}r?.removeAllRanges(),window.document.body.removeChild(n)};let a1;function BUe(e){if(!e)return"";a1||(a1=document.createElement("div"),a1.setAttribute("aria-hidden","true"),document.body.appendChild(a1));const t=Iy({render(){return O("div",null,[e])}});t.mount(a1);const n=a1.innerText;return t.unmount(),n}function ave(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wi(e)}function NUe(e){const{bold:t,mark:n,underline:r,delete:o,code:a}=e,s=[];return t&&s.push("b"),r&&s.push("u"),o&&s.push("del"),a&&s.push("code"),n&&s.push("mark"),s}function jre(e,t){const{mark:n}=e,r=NUe(e),o=br(n)&&n.color?{backgroundColor:n.color}:{};return r.reduce((a,s)=>O(s,s==="mark"?{style:o}:{},ave(a)?a:{default:()=>[a]}),t)}function FUe(e){const t=!!e.showTooltip,n=br(e.showTooltip)&&e.showTooltip.type==="popover"?dH:Zc,r=br(e.showTooltip)&&e.showTooltip.props||{};return{rows:1,suffix:"",ellipsisStr:"...",expandable:!1,css:!1,...xa(e,["showTooltip"]),showTooltip:t,TooltipComponent:n,tooltipProps:r}}var WH=Se({name:"TypographyBase",inheritAttrs:!1,props:{component:{type:String,required:!0},type:{type:String},bold:{type:Boolean},mark:{type:[Boolean,Object],default:!1},underline:{type:Boolean},delete:{type:Boolean},code:{type:Boolean},disabled:{type:Boolean},editable:{type:Boolean},editing:{type:Boolean,default:void 0},defaultEditing:{type:Boolean},editText:{type:String},copyable:{type:Boolean},copyText:{type:String},copyDelay:{type:Number,default:3e3},ellipsis:{type:[Boolean,Object],default:!1},editTooltipProps:{type:Object},copyTooltipProps:{type:Object}},emits:{editStart:()=>!0,change:e=>!0,"update:editText":e=>!0,editEnd:()=>!0,"update:editing":e=>!0,copy:e=>!0,ellipsis:e=>!0,expand:e=>!0},setup(e,{slots:t,emit:n,attrs:r}){const{editing:o,defaultEditing:a,ellipsis:s,copyable:l,editable:c,copyText:d,editText:h,copyDelay:p,component:v}=nn(e),g=Te("typography"),y=j(()=>[g,{[`${g}-${e.type}`]:e.type,[`${g}-disabled`]:e.disabled}]),S=fe(),k=fe(""),[C,x]=fa(a.value,Xt({value:o})),E=j(()=>c.value&&C.value);function _(){n("update:editing",!0),n("editStart"),x(!0)}function T(ke){n("update:editText",ke),n("change",ke)}function D(){C.value&&(n("update:editing",!1),n("editEnd"),x(!1))}const P=fe(!1);let M=null;function $(){var ke;const Ne=(ke=d.value)!=null?ke:k.value;$Ue(Ne||""),P.value=!0,n("copy",Ne),M=setTimeout(()=>{P.value=!1},p.value)}gi(()=>{M&&clearTimeout(M),M=null});const L=fe(!1),B=fe(!1),F=fe(""),W=j(()=>FUe(br(s.value)&&s.value||{}));let U=null;function G(){const ke=!B.value;B.value=ke,n("expand",ke)}function X(ke=!1){return W.value.css?O(Fre,{editable:c.value,copyable:l.value,expandable:W.value.expandable,isCopied:P.value,isEllipsis:ne.value,expanded:B.value,forceRenderExpand:ke||B.value,editTooltipProps:e.editTooltipProps,copyTooltipProps:e.copyTooltipProps,onEdit:_,onCopy:$,onExpand:G},{"copy-tooltip":t["copy-tooltip"],"copy-icon":t["copy-icon"],"expand-node":t["expand-node"]}):O(Fre,{editable:c.value,copyable:l.value,expandable:W.value.expandable,isCopied:P.value,isEllipsis:L.value,expanded:B.value,forceRenderExpand:ke,editTooltipProps:e.editTooltipProps,copyTooltipProps:e.copyTooltipProps,onEdit:_,onCopy:$,onExpand:G},{"copy-tooltip":t["copy-tooltip"],"copy-icon":t["copy-icon"],"expand-node":t["expand-node"]})}function oe(){if(!S.value)return;const{ellipsis:ke,text:Ne}=OUe(S.value,W.value,X(!!W.value.expandable),k.value);L.value!==ke&&(L.value=ke,W.value.css||n("ellipsis",ke)),F.value!==Ne&&(F.value=Ne||"")}function Z(){s.value&&!B.value&&(B8(U),U=Ghe(()=>{oe()}))}gi(()=>{B8(U)}),Rt(()=>W.value.rows,()=>{Z()}),Rt(s,ke=>{ke?Z():L.value=!1});let H=[];const q=()=>{if(s.value||l.value||c.value){const ke=BUe(H);ke!==k.value&&(k.value=ke,Z())}};bn(q),Qa(q);const ee=fe(),ne=fe(!1),ae=()=>{if(S.value&&ee.value){const ke=ee.value.offsetHeight>S.value.offsetHeight;ke!==ne.value&&(ne.value=ke,n("ellipsis",ke))}},re=j(()=>B.value?{}:{overflow:"hidden","text-overflow":"ellipsis",display:"-webkit-box","-webkit-line-clamp":W.value.rows,"-webkit-box-orient":"vertical"});return()=>{var ke,Ne;if(H=((ke=t.default)==null?void 0:ke.call(t))||[],E.value){const He=(Ne=h.value)!=null?Ne:k.value;return O(wUe,{text:He,onChange:Je=>{Je!==He&&T(Je)},onEnd:D},null)}const{suffix:me,ellipsisStr:_e,showTooltip:Ue,tooltipProps:Qe,TooltipComponent:Me}=W.value,je=L.value&&!B.value,ge=je&&!Ue?{title:k.value}:{},be=v.value;if(W.value.css){const He=jre(e,H),Je=O(be,Vt({class:y.value,ref:S,style:re.value},ge,r),{default:()=>[O("span",{ref:ee},[He])]});return ne.value?O(Me,Vt(Qe,{onResize:()=>ae()}),{default:()=>[Je],content:()=>k.value}):O(Dd,{onResize:()=>{ae()}},ave(Je)?Je:{default:()=>[Je]})}const Fe=jre(e,je?F.value:H);return O(Dd,{onResize:()=>Z()},{default:()=>[O(be,Vt({class:y.value,ref:S},ge,r),{default:()=>[je&&Ue?O(Me,Qe,{default:()=>[O("span",null,[Fe])],content:()=>k.value}):Fe,je?_e:null,me,X()]})]})}}}),qw=Se({name:"TypographyParagraph",inheritAttrs:!1,props:{blockquote:{type:Boolean},spacing:{type:String,default:"default"}},setup(e){const{blockquote:t,spacing:n}=nn(e),r=Te("typography"),o=j(()=>t?.value?"blockquote":"div"),a=j(()=>[{[`${r}-spacing-close`]:n?.value==="close"}]);return{component:o,classNames:a}},render(){const{component:e,classNames:t}=this;return O(WH,Vt({class:t},this.$attrs,{component:e}),this.$slots)}}),Yw=Se({name:"TypographyTitle",inheritAttrs:!1,props:{heading:{type:Number,default:1}},setup(e){const{heading:t}=nn(e);return{component:j(()=>`h${t?.value}`)}},render(){const{component:e}=this;return O(WH,Vt(this.$attrs,{component:e}),this.$slots)}}),Xw=Se({name:"TypographyText",inheritAttrs:!1,props:{ellipsis:{type:[Boolean,Object],default:!1}},setup(e){const{ellipsis:t}=nn(e);return{component:j(()=>t?.value?"div":"span")}},render(){const{ellipsis:e,component:t}=this;return O(WH,Vt(this.$attrs,{ellipsis:e,component:t}),this.$slots)}});const jUe=Object.assign(LM,{Paragraph:qw,Title:Yw,Text:Xw,install:(e,t)=>{Xn(e,t);const n=Yn(t);e.component(n+LM.name,LM),e.component(n+qw.name,qw),e.component(n+Yw.name,Yw),e.component(n+Xw.name,Xw)}}),Vre=e=>{const t=e.responseText||e.response;if(!t)return;const n=e.getResponseHeader("Content-Type");if(n&&n.includes("json"))try{return JSON.parse(t)}catch{return t}return t},VUe=e=>{switch(e){case"done":return"success";case"error":return"danger";default:return"normal"}},zre=(e,t)=>En(e)?e(t):e,zUe=({fileItem:e,action:t,name:n,data:r,headers:o={},withCredentials:a=!1,onProgress:s=iy,onSuccess:l=iy,onError:c=iy})=>{const d=zre(n,e)||"file",h=zre(r,e),p=new XMLHttpRequest;a&&(p.withCredentials=!0),p.upload.onprogress=g=>{const y=g.total>0?Xl.round(g.loaded/g.total,2):0;s(y,g)},p.onerror=function(y){c(y)},p.onload=()=>{if(p.status<200||p.status>=300){c(Vre(p));return}l(Vre(p))};const v=new FormData;if(h)for(const g of Object.keys(h))v.append(g,h[g]);e.file&&v.append(d,e.file),p.open("post",t??"",!0);for(const g of Object.keys(o))p.setRequestHeader(g,o[g]);return p.send(v),{abort(){p.abort()}}},lve=(e,t)=>{if(t&&e){const n=or(t)?t:t.split(",").map(o=>o.trim()).filter(o=>o),r=(e.name.indexOf(".")>-1?`.${e.name.split(".").pop()}`:"").toLowerCase();return n.some(o=>{const a=o&&o.toLowerCase(),s=(e.type||"").toLowerCase(),l=s.split("/")[0];if(a===s||`${l}${r.replace(".","/")}`===a||/^\*(\/\*)?$/.test(a))return!0;if(/\/\*/.test(a))return s.replace(/\/.*$/,"")===a.replace(/\/.*$/,"");if(/\..*/.test(a)){let c=[a];return(a===".jpg"||a===".jpeg")&&(c=[".jpg",".jpeg"]),c.indexOf(r)>-1}return!1})}return!!e},UUe=(e,t,n)=>{const r=[];let o=0;const a=()=>{!o&&n(r)},s=l=>{if(o+=1,l?.isFile){l.file(c=>{o-=1,lve(c,t)&&(Object.defineProperty(c,"webkitRelativePath",{value:l.fullPath.replace(/^\//,"")}),r.push(c)),a()});return}if(l?.isDirectory){const c=l.createReader();let d=!1;const h=()=>{c.readEntries(p=>{d||(o-=1,d=!0),p.length===0?a():(h(),p.forEach(s))})};h();return}o-=1,a()};[].slice.call(e).forEach(l=>l.webkitGetAsEntry&&s(l.webkitGetAsEntry()))},HUe=e=>{var t;return(t=e.type)==null?void 0:t.includes("image")},MM=(e,t)=>{if(!e)return[];const n=Array.from(e);return t?n.filter(r=>lve(r,t)):n},WUe=Se({name:"IconUpload",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-upload`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),GUe=["stroke-width","stroke-linecap","stroke-linejoin"];function KUe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M14.93 17.071 24.001 8l9.071 9.071m-9.07 16.071v-25M40 35v6H8v-6"},null,-1)]),14,GUe)}var OM=Ve(WUe,[["render",KUe]]);const w0=Object.assign(OM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+OM.name,OM)}});var qUe=Se({name:"UploadButton",props:{disabled:{type:Boolean,default:!1},directory:{type:Boolean,default:!1},accept:String,listType:{type:String},tip:String,draggable:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},uploadFiles:{type:Function,required:!0},hide:Boolean,onButtonClick:{type:Function}},setup(e,{slots:t}){const n=Te("upload"),{t:r}=No(),o=fe(!1),a=fe(null),s=fe(null),l=fe(0),c=k=>{k==="subtract"?l.value-=1:k==="add"?l.value+=1:k==="reset"&&(l.value=0)},d=k=>{if(!e.disabled){if(En(e.onButtonClick)){const C=e.onButtonClick(k);if(Am(C)){C.then(x=>{e.uploadFiles(MM(x))});return}}a.value&&a.value.click()}},h=k=>{const C=k.target;C.files&&e.uploadFiles(MM(C.files)),C.value=""},p=k=>{var C,x;if(k.preventDefault(),o.value=!1,c("reset"),!e.disabled)if(e.directory&&((C=k.dataTransfer)!=null&&C.items))UUe(k.dataTransfer.items,e.accept,E=>{e.uploadFiles(E)});else{const E=MM((x=k.dataTransfer)==null?void 0:x.files,e.accept);e.uploadFiles(e.multiple?E:E.slice(0,1))}},v=k=>{k.preventDefault(),c("subtract"),l.value===0&&(o.value=!1,c("reset"))},g=k=>{k.preventDefault(),!e.disabled&&!o.value&&(o.value=!0)},y=()=>t.default?O("span",null,[t.default()]):e.listType==="picture-card"?O("div",{class:`${n}-picture-card`},[O("div",{class:`${n}-picture-card-text`},[O(Cf,null,null)]),e.tip&&O("div",{class:`${n}-tip`},[e.tip])]):e.draggable?O("div",{class:[`${n}-drag`,{[`${n}-drag-active`]:o.value}]},[O("div",null,[O(Cf,null,null)]),O("div",{class:`${n}-drag-text`},[o.value?r("upload.dragHover"):r("upload.drag")]),e.tip&&O("div",{class:`${n}-tip`},[e.tip])]):O(Xo,{type:"primary",disabled:e.disabled},{default:()=>[r("upload.buttonText")],icon:()=>O(w0,null,null)}),S=j(()=>[n,{[`${n}-type-picture-card`]:e.listType==="picture-card",[`${n}-draggable`]:e.draggable,[`${n}-disabled`]:e.disabled,[`${n}-hide`]:e.hide}]);return()=>O("span",{ref:s,class:S.value,onClick:d,onDragenter:()=>{c("add")},onDrop:p,onDragover:g,onDragleave:v},[O("input",Vt({ref:a,type:"file",style:{display:"none"},disabled:e.disabled,accept:e.accept,multiple:e.multiple},e.directory?{webkitdirectory:"webkitdirectory"}:{},{onChange:h}),null),y()])}});const YUe=Se({name:"IconPause",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-pause`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),XUe=["stroke-width","stroke-linecap","stroke-linejoin"];function ZUe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M14 12h4v24h-4zM30 12h4v24h-4z"},null,-1),I("path",{fill:"currentColor",stroke:"none",d:"M14 12h4v24h-4zM30 12h4v24h-4z"},null,-1)]),14,XUe)}var $M=Ve(YUe,[["render",ZUe]]);const uve=Object.assign($M,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+$M.name,$M)}}),JUe=Se({name:"IconPlayArrowFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-play-arrow-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),QUe=["stroke-width","stroke-linecap","stroke-linejoin"];function eHe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M17.533 10.974a1 1 0 0 0-1.537.844v24.356a1 1 0 0 0 1.537.844L36.67 24.84a1 1 0 0 0 0-1.688L17.533 10.974Z",fill:"currentColor",stroke:"none"},null,-1)]),14,QUe)}var BM=Ve(JUe,[["render",eHe]]);const cve=Object.assign(BM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+BM.name,BM)}}),X5=Symbol("ArcoUpload");var dve=Se({name:"UploadProgress",props:{file:{type:Object,required:!0},listType:{type:String,required:!0}},setup(e){const t=Te("upload-progress"),{t:n}=No(),r=On(X5,void 0),o=()=>{var s,l,c,d,h,p,v,g,y,S,k;return e.file.status==="error"?O("span",{class:[r?.iconCls,`${r?.iconCls}-upload`],onClick:()=>r?.onUpload(e.file)},[r?.showRetryButton&&((h=(l=r==null?void 0:(s=r.slots)["retry-icon"])==null?void 0:l.call(s))!=null?h:(d=(c=r?.customIcon)==null?void 0:c.retryIcon)!=null&&d.call(c))||e.listType==="picture-card"?O(w0,null,null):n("upload.retry")]):e.file.status==="done"?O("span",{class:[r?.iconCls,`${r?.iconCls}-success`]},[(k=(S=(v=r==null?void 0:(p=r.slots)["success-icon"])==null?void 0:v.call(p))!=null?S:(y=(g=r?.customIcon)==null?void 0:g.successIcon)==null?void 0:y.call(g))!=null?k:O(eg,null,null)]):e.file.status==="init"?O(Zc,{content:n("upload.start")},{default:()=>{var C,x,E,_,T,D;return[O("span",{class:[r?.iconCls,`${r?.iconCls}-start`],onClick:()=>r?.onUpload(e.file)},[(D=(T=(x=r==null?void 0:(C=r.slots)["start-icon"])==null?void 0:x.call(C))!=null?T:(_=(E=r?.customIcon)==null?void 0:E.startIcon)==null?void 0:_.call(E))!=null?D:O(cve,null,null)])]}}):r?.showCancelButton&&O(Zc,{content:n("upload.cancel")},{default:()=>{var C,x,E,_,T,D;return[O("span",{class:[r?.iconCls,`${r?.iconCls}-cancel`],onClick:()=>r?.onAbort(e.file)},[(D=(T=(x=r==null?void 0:(C=r.slots)["cancel-icon"])==null?void 0:x.call(C))!=null?T:(_=(E=r?.customIcon)==null?void 0:E.cancelIcon)==null?void 0:_.call(E))!=null?D:O(uve,null,null)])]}})},a=()=>{var s;if(["init","uploading"].includes((s=e.file.status)!=null?s:"")){const l=VUe(e.file.status);return O(j0e,{type:"circle",size:"mini",showText:!1,status:l,percent:e.file.percent},null)}return null};return()=>O("span",{class:t},[a(),o()])}});const tHe=Se({name:"IconFilePdf",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-file-pdf`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),nHe=["stroke-width","stroke-linecap","stroke-linejoin"];function rHe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M11 42h26a2 2 0 0 0 2-2V13.828a2 2 0 0 0-.586-1.414l-5.828-5.828A2 2 0 0 0 31.172 6H11a2 2 0 0 0-2 2v32a2 2 0 0 0 2 2Z"},null,-1),I("path",{d:"M22.305 21.028c.874 1.939 3.506 6.265 4.903 8.055 1.747 2.237 3.494 2.685 4.368 2.237.873-.447 1.21-4.548-7.425-2.685-7.523 1.623-7.424 3.58-6.988 4.476.728 1.193 2.522 2.627 5.678-6.266C25.699 18.79 24.489 17 23.277 17c-1.409 0-2.538.805-.972 4.028Z"},null,-1)]),14,nHe)}var NM=Ve(tHe,[["render",rHe]]);const fve=Object.assign(NM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+NM.name,NM)}}),iHe=Se({name:"IconFileImage",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-file-image`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),oHe=["stroke-width","stroke-linecap","stroke-linejoin"];function sHe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m26 33 5-6v6h-5Zm0 0-3-4-4 4h7Zm11 9H11a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h21l7 7v27a2 2 0 0 1-2 2ZM17 19h1v1h-1v-1Z"},null,-1)]),14,oHe)}var FM=Ve(iHe,[["render",sHe]]);const hve=Object.assign(FM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+FM.name,FM)}}),aHe=Se({name:"IconFileVideo",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-file-video`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),lHe=["stroke-width","stroke-linecap","stroke-linejoin"];function uHe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M37 42H11a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h21l7 7v27a2 2 0 0 1-2 2Z"},null,-1),I("path",{d:"M22 27.796v-6l5 3-5 3Z"},null,-1)]),14,lHe)}var jM=Ve(aHe,[["render",uHe]]);const pve=Object.assign(jM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+jM.name,jM)}}),cHe=Se({name:"IconFileAudio",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-file-audio`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),dHe=["stroke-width","stroke-linecap","stroke-linejoin"];function fHe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M37 42H11a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h21l7 7v27a2 2 0 0 1-2 2Z"},null,-1),I("path",{d:"M25 30a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{d:"M25 30a3 3 0 1 1-6 0 3 3 0 0 1 6 0Zm0 0-.951-12.363a.5.5 0 0 1 .58-.532L30 18"},null,-1)]),14,dHe)}var VM=Ve(cHe,[["render",fHe]]);const vve=Object.assign(VM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+VM.name,VM)}});var Ure=Se({name:"UploadListItem",props:{file:{type:Object,required:!0},listType:{type:String,required:!0}},setup(e){const n=`${Te("upload-list")}-item`,{t:r}=No(),o=On(X5,void 0),a=()=>{var s,l;let c="";if(e.file.file&&e.file.file.type)c=e.file.file.type;else{const d=(l=(s=e.file.name)==null?void 0:s.split(".")[1])!=null?l:"";["png","jpg","jpeg","bmp","gif","webp"].includes(d)?c="image":["mp4","m2v","mkv","m4v","mov"].includes(d)?c="video":["mp3","wav","wmv","m4a","acc","flac"].includes(d)&&(c="audio")}return c.includes("image")?O(hve,null,null):c.includes("pdf")?O(fve,null,null):c.includes("audio")?O(vve,null,null):c.includes("video")?O(pve,null,null):O(q5,null,null)};return()=>{var s,l,c,d,h,p,v,g,y,S,k,C,x,E,_,T,D,P,M,$,L,B,F;return O("div",{class:[n,`${n}-${e.file.status}`]},[O("div",{class:`${n}-content`},[o?.listType==="picture"&&O("span",{class:`${n}-thumbnail`},[(c=(l=o==null?void 0:(s=o.slots).image)==null?void 0:l.call(s,{fileItem:e.file}))!=null?c:O("img",Vt({src:e.file.url,alt:e.file.name},o?.imageLoading?{loading:o.imageLoading}:void 0),null)]),O("div",{class:`${n}-name`},[o?.listType==="text"&&O("span",{class:`${n}-file-icon`},[(y=(g=(h=o==null?void 0:(d=o.slots)["file-icon"])==null?void 0:h.call(d,{fileItem:e.file}))!=null?g:(v=(p=o?.customIcon)==null?void 0:p.fileIcon)==null?void 0:v.call(p,e.file))!=null?y:a()]),o?.showLink&&e.file.url?O("a",Vt({class:`${n}-name-link`,target:"_blank",href:e.file.url},o?.download?{download:e.file.name}:void 0),[(_=(E=(k=o==null?void 0:(S=o.slots)["file-name"])==null?void 0:k.call(S,{fileItem:e.file}))!=null?E:(x=(C=o?.customIcon)==null?void 0:C.fileName)==null?void 0:x.call(C,e.file))!=null?_:e.file.name]):O("span",{class:`${n}-name-text`,onClick:()=>o?.onPreview(e.file)},[(L=($=(D=o==null?void 0:(T=o.slots)["file-name"])==null?void 0:D.call(T,{fileItem:e.file}))!=null?$:(M=(P=o?.customIcon)==null?void 0:P.fileName)==null?void 0:M.call(P,e.file))!=null?L:e.file.name]),e.file.status==="error"&&O(Zc,{content:r("upload.error")},{default:()=>{var W,U,G,X,oe,Z;return[O("span",{class:[o?.iconCls,`${o?.iconCls}-error`]},[(Z=(oe=(U=o==null?void 0:(W=o.slots)["error-icon"])==null?void 0:U.call(W))!=null?oe:(X=(G=o?.customIcon)==null?void 0:G.errorIcon)==null?void 0:X.call(G))!=null?Z:O(If,null,null)])]}})]),O(dve,{file:e.file,listType:e.listType},null)]),o?.showRemoveButton&&O("span",{class:`${n}-operation`},[O(Lo,{onClick:()=>{var W;return(W=o?.onRemove)==null?void 0:W.call(o,e.file)}},{default:()=>{var W,U,G,X,oe,Z;return[O("span",{class:[o?.iconCls,`${o?.iconCls}-remove`]},[(Z=(oe=(U=o==null?void 0:(W=o.slots)["remove-icon"])==null?void 0:U.call(W))!=null?oe:(X=(G=o?.customIcon)==null?void 0:G.removeIcon)==null?void 0:X.call(G))!=null?Z:O(fc,null,null)])]}})]),(F=o==null?void 0:(B=o.slots)["extra-button"])==null?void 0:F.call(B,{fileItem:e.file})])}}}),Hre=Se({name:"UploadPictureItem",props:{file:{type:Object,required:!0},disabled:{type:Boolean,default:!1}},setup(e){const n=`${Te("upload-list")}-picture`,r=j(()=>[n,{[`${n}-status-error`]:e.file.status==="error"}]),o=On(X5,void 0),a=()=>{var s,l,c,d,h,p,v,g,y,S,k,C,x,E,_,T,D,P,M,$,L,B,F,W,U,G,X,oe,Z;return e.file.status==="uploading"?O(dve,{file:e.file,listType:"picture-card"},null):O(Nt,null,[(c=(l=o==null?void 0:(s=o.slots).image)==null?void 0:l.call(s,{fileItem:e.file}))!=null?c:O("img",Vt({src:e.file.url,alt:e.file.name},o?.imageLoading?{loading:o.imageLoading}:void 0),null),O("div",{class:`${n}-mask`},[e.file.status==="error"&&o?.showCancelButton&&O("div",{class:`${n}-error-tip`},[O("span",{class:[o?.iconCls,`${o?.iconCls}-error`]},[(y=(g=(h=o==null?void 0:(d=o.slots)["error-icon"])==null?void 0:h.call(d))!=null?g:(v=(p=o?.customIcon)==null?void 0:p.errorIcon)==null?void 0:v.call(p))!=null?y:O(M5,null,null)])]),O("div",{class:`${n}-operation`},[e.file.status!=="error"&&o?.showPreviewButton&&O("span",{class:[o?.iconCls,`${o?.iconCls}-preview`],onClick:()=>o?.onPreview(e.file)},[(_=(E=(k=o==null?void 0:(S=o.slots)["preview-icon"])==null?void 0:k.call(S))!=null?E:(x=(C=o?.customIcon)==null?void 0:C.previewIcon)==null?void 0:x.call(C))!=null?_:O(k0,null,null)]),["init","error"].includes(e.file.status)&&o?.showRetryButton&&O("span",{class:[o?.iconCls,`${o?.iconCls}-upload`],onClick:()=>o?.onUpload(e.file)},[(L=($=(D=o==null?void 0:(T=o.slots)["retry-icon"])==null?void 0:D.call(T))!=null?$:(M=(P=o?.customIcon)==null?void 0:P.retryIcon)==null?void 0:M.call(P))!=null?L:O(w0,null,null)]),!o?.disabled&&o?.showRemoveButton&&O("span",{class:[o?.iconCls,`${o?.iconCls}-remove`],onClick:()=>o?.onRemove(e.file)},[(X=(G=(F=o==null?void 0:(B=o.slots)["remove-icon"])==null?void 0:F.call(B))!=null?G:(U=(W=o?.customIcon)==null?void 0:W.removeIcon)==null?void 0:U.call(W))!=null?X:O(fc,null,null)]),(Z=o==null?void 0:(oe=o.slots)["extra-button"])==null?void 0:Z.call(oe,e.file)])])])};return()=>O("span",{class:r.value},[a()])}}),hHe=Se({name:"UploadList",components:{UploadListItem:Ure,UploadPictureItem:Hre},props:{fileList:{type:Array,required:!0},listType:{type:String,required:!0}},setup(e,{slots:t}){const n=Te("upload"),r=j(()=>[`${n}-list`,`${n}-list-type-${e.listType}`]),o=(a,s)=>En(t["upload-item"])?t["upload-item"]({fileItem:a,index:s}):e.listType==="picture-card"?O(Hre,{file:a,key:`item-${s}`},null):O(Ure,{file:a,listType:e.listType,key:`item-${s}`},null);return()=>O(r3,{tag:"div",class:r.value},{default:()=>{var a;return[...e.fileList.map((s,l)=>o(s,l)),e.listType==="picture-card"&&((a=t["upload-button"])==null?void 0:a.call(t))]}})}}),zM=Se({name:"Upload",props:{fileList:{type:Array,default:void 0},defaultFileList:{type:Array,default:()=>[]},accept:String,action:String,disabled:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},directory:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1},tip:String,headers:{type:Object},data:{type:[Object,Function]},name:{type:[String,Function]},withCredentials:{type:Boolean,default:!1},customRequest:{type:Function},limit:{type:Number,default:0},autoUpload:{type:Boolean,default:!0},showFileList:{type:Boolean,default:!0},showRemoveButton:{type:Boolean,default:!0},showRetryButton:{type:Boolean,default:!0},showCancelButton:{type:Boolean,default:!0},showUploadButton:{type:[Boolean,Object],default:!0},showPreviewButton:{type:Boolean,default:!0},download:{type:Boolean,default:!1},showLink:{type:Boolean,default:!0},imageLoading:{type:String},listType:{type:String,default:"text"},responseUrlKey:{type:[String,Function]},customIcon:{type:Object},imagePreview:{type:Boolean,default:!1},onBeforeUpload:{type:Function},onBeforeRemove:{type:Function},onButtonClick:{type:Function}},emits:{"update:fileList":e=>!0,exceedLimit:(e,t)=>!0,change:(e,t)=>!0,progress:(e,t)=>!0,preview:e=>!0,success:e=>!0,error:e=>!0},setup(e,{emit:t,slots:n}){const{fileList:r,disabled:o,listType:a,customIcon:s,showRetryButton:l,showCancelButton:c,showRemoveButton:d,showPreviewButton:h,imageLoading:p,download:v,showLink:g}=nn(e),y=Te("upload"),{mergedDisabled:S,eventHandlers:k}=Do({disabled:o}),C=fe([]),x=new Map,E=new Map,_=j(()=>e.limit>0&&C.value.length>=e.limit),T=re=>{x.clear();const ke=re?.map((Ne,me)=>{var _e,Ue,Qe;const Me=(_e=Ne.status)!=null?_e:"done",je=Xt({...Ne,uid:(Ue=Ne.uid)!=null?Ue:`${Date.now()}${me}`,status:Me,percent:(Qe=Ne.percent)!=null?Qe:["error","init"].indexOf(Me)>-1?0:1});return x.set(je.uid,je),je});C.value=ke??[]};T(e.defaultFileList),Rt(r,re=>{re&&T(re)},{immediate:!0,deep:!0});const D=re=>{var ke,Ne;t("update:fileList",C.value),t("change",C.value,re),(Ne=(ke=k.value)==null?void 0:ke.onChange)==null||Ne.call(ke)},P=(re,ke)=>{for(const Ne of C.value)if(Ne.uid===re){Ne.file=ke,D(Ne);break}},M=re=>{const ke=(Qe,Me)=>{const je=x.get(re.uid);je&&(je.status="uploading",je.percent=Qe,t("progress",je,Me),D(je))},Ne=Qe=>{const Me=x.get(re.uid);Me&&(Me.status="done",Me.percent=1,Me.response=Qe,e.responseUrlKey&&(En(e.responseUrlKey)?Me.url=e.responseUrlKey(Me):Qe[e.responseUrlKey]&&(Me.url=Qe[e.responseUrlKey])),E.delete(Me.uid),t("success",Me),D(Me))},me=Qe=>{const Me=x.get(re.uid);Me&&(Me.status="error",Me.percent=0,Me.response=Qe,E.delete(Me.uid),t("error",Me),D(Me))},_e={fileItem:re,action:e.action,name:e.name,data:e.data,headers:e.headers,withCredentials:e.withCredentials,onProgress:ke,onSuccess:Ne,onError:me};re.status="uploading",re.percent=0;const Ue=En(e.customRequest)?e.customRequest(_e):zUe(_e);E.set(re.uid,Ue),D(re)},$=re=>{var ke;const Ne=E.get(re.uid);if(Ne){(ke=Ne.abort)==null||ke.call(Ne),E.delete(re.uid);const me=x.get(re.uid);me&&(me.status="error",me.percent=0,D(me))}},L=re=>{if(re){const ke=x.get(re.uid);ke&&M(ke)}else for(const ke of C.value)ke.status==="init"&&M(ke)},B=async(re,ke)=>{const Ne=`${Date.now()}-${ke}`,me=HUe(re)?URL.createObjectURL(re):void 0,_e=Xt({uid:Ne,file:re,url:me,name:re.name,status:"init",percent:0});x.set(Ne,_e),C.value=[...C.value,_e],D(_e),e.autoUpload&&M(_e)},F=re=>{if(e.limit>0&&C.value.length+re.length>e.limit){t("exceedLimit",C.value,re);return}for(let ke=0;ke{me&&B(El(me)?Ne:me,ke)}).catch(me=>{console.error(me)}):B(Ne,ke)}},W=re=>{C.value=C.value.filter(ke=>ke.uid!==re.uid),D(re)},U=re=>{En(e.onBeforeRemove)?Promise.resolve(e.onBeforeRemove(re)).then(ke=>{ke&&W(re)}).catch(ke=>{console.error(ke)}):W(re)},G=re=>{if(e.imagePreview&&re.url){const ke=ne.value.indexOf(re.url);ke>-1&&(H.value=ke,Z.value=!0)}t("preview",re)};ri(X5,Xt({disabled:S,listType:a,iconCls:`${y}-icon`,showRemoveButton:d,showRetryButton:l,showCancelButton:c,showPreviewButton:h,showLink:g,imageLoading:p,download:v,customIcon:s,slots:n,onUpload:M,onAbort:$,onRemove:U,onPreview:G}));const X=j(()=>{if(e.accept)return e.accept;if(e.listType==="picture"||e.listType==="picture-card")return"image/*"}),oe=()=>{const re=O(qUe,{key:"arco-upload-button",disabled:S.value,draggable:e.draggable,listType:e.listType,uploadFiles:F,multiple:e.multiple,directory:e.directory,tip:e.tip,hide:!e.showUploadButton||_.value&&!(br(e.showUploadButton)&&e.showUploadButton.showOnExceedLimit),accept:X.value,onButtonClick:e.onButtonClick},{default:n["upload-button"]});return e.tip&&e.listType!=="picture-card"&&!e.draggable?O("span",null,[re,O("div",{class:`${y}-tip`},[e.tip])]):re},Z=fe(!1),H=fe(0),q=re=>{H.value=re},ee=re=>{Z.value=re},ne=j(()=>C.value.filter(re=>!!re.url).map(re=>re.url));return{prefixCls:y,render:()=>e.showFileList?O("div",{class:[`${y}-wrapper`,`${y}-wrapper-type-${e.listType}`]},[e.imagePreview&&ne.value.length>0&&O(sb,{srcList:ne.value,visible:Z.value,current:H.value,onChange:q,onVisibleChange:ee},null),e.listType!=="picture-card"&&e.showUploadButton&&oe(),O(hHe,{fileList:C.value,listType:e.listType},{"upload-button":oe,"upload-item":n["upload-item"]})]):e.showUploadButton&&oe(),innerSubmit:L,innerAbort:$,innerUpdateFile:P,innerUpload:F}},methods:{submit(e){return this.innerSubmit(e)},abort(e){return this.innerAbort(e)},updateFile(e,t){return this.innerUpdateFile(e,t)},upload(e){return this.innerUpload(e)}},render(){return this.render()}});const pHe=Object.assign(zM,{install:(e,t)=>{Xn(e,t);const n=Yn(t);e.component(n+zM.name,zM)}});var UM=Se({name:"OverflowList",props:{min:{type:Number,default:0},margin:{type:Number,default:8},from:{type:String,default:"end"}},emits:{change:e=>!0},setup(e,{emit:t,slots:n}){const r=Te("overflow-list"),o=fe(),a=fe(),s=fe(),l={},c=[],d=fe(0),h=fe(0),p=j(()=>h.value>0),v=fe(0),g=j(()=>e.from==="start");Rt(d,(k,C)=>{h.value>0&&(h.value+=k-C,h.value<0&&(h.value=0))}),Rt(h,k=>{t("change",k)});const y=()=>{var k,C,x;if(o.value&&l.value&&s.value){const E=s.value.offsetWidth;if(E>1&&(h.value===0||Ey(),{flush:"post"}),bn(()=>{s.value&&s.value.offsetWidth<1&&y()});const S=()=>{var k,C;const x=g.value?{marginRight:`${e.margin}px`}:void 0;return O("div",{ref:a,class:`${r}-overflow`,style:x},[(C=(k=n.overflow)==null?void 0:k.call(n,{number:h.value}))!=null?C:O(pH,null,{default:()=>[We("+"),h.value]})])};return()=>{var k,C;l.value=yf((k=n.default)==null?void 0:k.call(n)),d.value!==l.value.length&&(d.value=l.value.length,c.length=d.value);let x=l.value;h.value>0&&(x=g.value?l.value.slice(h.value):l.value.slice(0,-h.value));const E=h.value===0||g.value?x.length-1:x.length;for(let _=0;_0&&S(),x,!g.value&&h.value>0&&S(),O(x0,{onResize:y},{default:()=>[O("div",{ref:s,class:`${r}-spacer`},null)]})])}}});const vHe=Object.assign(UM,{install:(e,t)=>{Xn(e,t);const n=Yn(t);e.component(n+UM.name,UM)}});var HM=Se({name:"VerificationCode",props:{modelValue:String,defaultValue:{type:String,default:""},length:{type:Number,default:6},size:{type:String},disabled:Boolean,masked:Boolean,readonly:Boolean,error:{type:Boolean,default:!1},separator:{type:Function},formatter:{type:Function}},emits:{"update:modelValue":e=>!0,change:e=>!0,finish:e=>!0,input:(e,t,n)=>!0},setup(e,{emit:t}){const n=Te("verification-code"),r=Te("input"),o=fe([]),a=j(()=>{var k;return(k=e.modelValue)!=null?k:e.defaultValue}),s=j(()=>e.masked?"password":"text"),l=j(()=>[r,{[`${r}-size-${e.size}`]:e.size}]),c=j(()=>{const k=String(a.value).split("");return new Array(e.length).fill("").map((C,x)=>Fne(k[x])?String(k[x]):"")}),d=fe(c.value);Rt(a,()=>{d.value=c.value});const h=()=>{const k=d.value.join("").trim();t("update:modelValue",k),t("change",k),k.length===e.length&&t("finish",k),v()},p=k=>o?.value[k].focus(),v=k=>{if(!(Fne(k)&&d.value[k])){for(let C=0;C{k.preventDefault();const{clipboardData:x}=k,E=x?.getData("text");E&&(E.split("").forEach((_,T)=>{if(!(C+T>=e.length)){if(En(e.formatter)){const D=e.formatter(_,C+T,d.value.join(""));if(D===!1){C-=1;return}cs(D)&&(_=D.charAt(0))}d.value[C+T]=_}}),h())},y=(k,C)=>{const x=C.code||C.key;x===Jhe.code&&!d.value[k]?(C.preventDefault(),d.value[Math.max(k-1,0)]="",h()):x===vDe.code&&k>0?(C.preventDefault(),p(k-1)):x===mDe.code&&d.value[k]&&k{let E=(C||"").trim().charAt(C.length-1);if(t("input",E,k,x),En(e.formatter)){const _=e.formatter(E,k,d.value.join(""));if(_===!1)return;cs(_)&&(E=_.charAt(0))}d.value[k]=E,h()};return()=>O("div",{class:n},[d.value.map((k,C)=>{var x;return O(Nt,null,[O(N0,{key:C,ref:E=>o.value[C]=E,type:s.value,class:l.value,modelValue:k,size:e.size,error:e.error,disabled:e.disabled,readonly:e.readonly,onFocus:()=>v(C),onInput:(E,_)=>S(C,E,_),onKeydown:E=>y(C,E),onPaste:E=>g(E,C)},null),(x=e.separator)==null?void 0:x.call(e,C,k)])})])}});const mHe=Object.assign(HM,{install:(e,t)=>{Xn(e,t);const n=Yn(t);e.component(n+HM.name,HM)}}),gHe=typeof window<"u"?window:void 0;function yHe(e){var t;const n=et(e);return(t=n?.$el)!=null?t:n}function bHe(e){return s5()?(AU(e),!0):!1}function mve(e,t,n={}){const{window:r=gHe,...o}=n,a=r&&"MutationObserver"in r;let s;const l=()=>{s&&(s.disconnect(),s=void 0)},c=Rt(()=>yHe(e),h=>{l(),a&&r&&h&&(s=new MutationObserver(t),s.observe(h,o))},{immediate:!0}),d=()=>{l(),c()};return bHe(d),{isSupported:a,stop:d}}const WM="arco-theme",kx={Dark:"dark",Light:"light"},_He=e=>{const t=fe(kx.Light),n=o=>{t.value=o},r=o=>o.getAttribute(WM)===kx.Dark?kx.Dark:kx.Light;return mve(document.body,o=>{for(const a of o)if(a.type==="attributes"&&a.attributeName===WM){n(r(a.target)),e?.();break}},{attributes:!0,attributeFilter:[WM],subtree:!1,childList:!1,characterData:!1}),n(r(document.body)),{theme:t,setTheme:n}};function SHe(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function kHe(e){return Object.entries(e).map(([t,n])=>`${SHe(t)}:${n}`).join(";")}function xHe(e){const t=e.getContext("2d");if(!t)return;const n=t.getImageData(0,0,e.width,e.height),{data:r}=n;for(let o=0;o[90,90]},offset:{type:Array},rotate:{type:Number,default:-22},font:{type:Object},zIndex:{type:Number,default:6},alpha:{type:Number,default:1},antiTamper:{type:Boolean,default:!0},grayscale:{type:Boolean,default:!1},repeat:{type:Boolean,default:!0},staggered:{type:Boolean,default:!0}},setup(e,{slots:t,attrs:n}){const{width:r,height:o,image:a,rotate:s,alpha:l,repeat:c,grayscale:d}=nn(e),h=Te("watermark"),p=window.devicePixelRatio||1,v=d0(),g=fe(new Map),y=j(()=>{var H,q;return(q=(H=e.font)==null?void 0:H.fontSize)!=null?q:16}),S=j(()=>{var H,q;return(q=(H=e.font)==null?void 0:H.fontWeight)!=null?q:"normal"}),k=j(()=>{var H,q;return(q=(H=e.font)==null?void 0:H.fontStyle)!=null?q:"normal"}),C=j(()=>{var H,q;return(q=(H=e.font)==null?void 0:H.fontFamily)!=null?q:"sans-serif"}),x=j(()=>{var H,q;return(q=(H=e.font)==null?void 0:H.textAlign)!=null?q:"center"}),E=j(()=>or(e.content)?e.content:[e.content]),_=j(()=>{var H,q;return(q=(H=e.font)==null?void 0:H.color)!=null?q:Z.value==="dark"?"rgba(255, 255, 255, 0.15)":"rgba(0, 0, 0, 0.15)"}),T=j(()=>{var H,q;return(q=(H=e.gap)==null?void 0:H[0])!=null?q:90}),D=j(()=>{var H,q;return(q=(H=e.gap)==null?void 0:H[1])!=null?q:90}),P=j(()=>T.value/2),M=j(()=>D.value/2),$=j(()=>{var H,q;return(q=(H=e.offset)==null?void 0:H[0])!=null?q:P.value}),L=j(()=>{var H,q;return(q=(H=e.offset)==null?void 0:H[1])!=null?q:M.value}),B=j(()=>{var H;const q=$.value-P.value,ee=L.value-M.value;return{position:"absolute",left:q>0?`${q}px`:0,top:ee>0?`${ee}px`:0,width:q>0?`calc(100% - ${q}px)`:"100%",height:ee>0?`calc(100% - ${ee}px)`:"100%",pointerEvents:"none",backgroundRepeat:e.repeat?"repeat":"no-repeat",backgroundPosition:`${q>0?0:q}px ${ee>0?0:ee}px`,zIndex:(H=e.zIndex)!=null?H:6}}),F=j(()=>e.repeat&&e.staggered),W=(H,q)=>{var ee;if(v.value){const ne=g.value.get(v.value);ne&&(v.value.contains(ne)&&v.value.removeChild(ne),g.value.delete(v.value));const ae=document.createElement("div");ae.setAttribute("style",kHe({...B.value,backgroundImage:`url('${H}')`,backgroundSize:`${q}px`})),(ee=v.value)==null||ee.append(ae),g.value.set(v.value,ae)}},U=H=>{var q,ee;let ne=120,ae=28;if(!a.value&&H.measureText){H.font=`${y.value}px ${C.value}`;const re=E.value.map(ke=>H.measureText(ke).width);ne=Math.ceil(Math.max(...re)),ae=y.value*E.value.length+(E.value.length-1)*3}return[(q=r.value)!=null?q:ne,(ee=o.value)!=null?ee:ae]},G=()=>{var H;const q=document.createElement("canvas"),ee=q.getContext("2d");if(!ee)return;const[ne,ae]=U(ee),re=ne*p,ke=ae*p,Ne=(T.value+ne)*p,me=(D.value+ae)*p,_e=T.value/2*p,Ue=D.value/2*p,Qe=Ne/2,Me=me/2,je=F.value?2:1,ge=(T.value+ne)*je;q.width=Ne*je,q.height=me*je,ee.globalAlpha=l.value,ee.save(),ee.translate(Qe,Me),ee.rotate(Math.PI/180*s.value),ee.translate(-Qe,-Me);const be=()=>{ee.restore(),F.value&&ee.drawImage(q,0,0,Ne,me,Ne,me,Ne,me),d.value&&xHe(q),W(q.toDataURL(),ge)};if(a.value){const Fe=new Image;Fe.onload=()=>{ee.drawImage(Fe,_e,Ue,re,ke),be()},Fe.crossOrigin="anonymous",Fe.referrerPolicy="no-referrer",Fe.src=a.value}else{const Fe=Number(y.value)*p;ee.font=`${k.value} normal ${S.value} ${Fe}px/${ae}px ${C.value}`,ee.fillStyle=_.value,ee.textAlign=x.value,ee.textBaseline="top",ee.translate(re/2,0),(H=E.value)==null||H.forEach((He,Je)=>{ee.fillText(He??"",_e,Ue+Je*(Fe+3*p))}),be()}},X=H=>Array.from(g.value.values()).includes(H),oe=H=>{if(e.antiTamper)for(const q of H){const ee=Array.from(q.removedNodes).some(ae=>X(ae)),ne=q.type==="attributes"&&X(q.target);if(ee||ne){G();break}}},{theme:Z}=_He(G);return bn(()=>{G(),mve(v.value,oe,{attributes:!0,childList:!0,characterData:!0,subtree:!0})}),Rt(e,G,{deep:!0,flush:"post"}),()=>{var H;return O("div",Vt({ref:v,class:h,style:{position:"relative",overflow:"hidden"}},n),[(H=t.default)==null?void 0:H.call(t)])}}});const CHe=Object.assign(GM,{install:(e,t)=>{Xn(e,t);const n=Yn(t);e.component(n+GM.name,GM)}});function wHe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wi(e)}var EHe=Se({name:"TreeSelectPanel",components:{Tree:vV},props:{treeProps:{type:Object,default:()=>({})},selectedKeys:{type:Array},showCheckable:{type:Boolean},treeSlots:{type:Object,default:()=>({})},scrollbar:{type:[Boolean,Object],default:!0}},emits:["change"],setup(e,{emit:t}){const{showCheckable:n,selectedKeys:r,treeProps:o,scrollbar:a}=nn(e),{displayScrollbar:s,scrollbarProps:l}=D5(a),c=Te("tree-select"),d=fe(),h=j(()=>({...o.value,disableSelectActionOnly:!0,checkedKeys:n.value?r.value:[],selectedKeys:n.value?[]:r.value})),p=(y,S)=>{var k,C;n.value?(C=(k=d.value)==null?void 0:k.toggleCheck)==null||C.call(k,y[0],S):t("change",y)},v=y=>{t("change",y)},g=()=>O(vV,Vt({ref:d},h.value,{onSelect:p,onCheck:v}),e.treeSlots);return()=>{if(s.value){let y;return O(Rd,Vt({class:`${c}-tree-wrapper`},l.value),wHe(y=g())?y:{default:()=>[y]})}return O("div",{class:`${c}-tree-wrapper`},[g()])}}});function GH(e){return br(e)}function gve(e){return e!=null&&e!==""}function KH(e){return GH(e)?e.value:e}function THe(e){return GH(e)?e.label:void 0}function Wre(e){const t=KH(e);return gve(t)}function Gre(e){return e.map(KH).filter(gve)}function AHe(e){var t;const{defaultValue:n,modelValue:r,key2TreeNode:o,multiple:a,treeCheckable:s,fallbackOption:l,fieldNames:c}=nn(e);function d(_){const T=(or(_)?_:[_]).filter(Wre);return a?.value||s?.value?T:T.slice(0,1)}function h(_,T){const D=[],P=_?_.filter(Wre):[];if(P.length){const M=new Map;T?.forEach($=>{M.set($.value,$)}),P.forEach($=>{var L,B,F,W,U;const G=KH($),X=M.get(G),oe=o.value.get(G);let Z=null;const H=((L=c?.value)==null?void 0:L.title)||"title";if(!oe){const q=En(l?.value)?l?.value(G):l?.value;if(q===!1)return;br(q)&&(Z=q)}D.push({...GH($)?$:{},...X||{},value:G,label:(U=(W=(F=(B=THe($))!=null?B:oe?.title)!=null?F:X?.label)!=null?W:Z?.[H])!=null?U:G})})}return D}const p=fe(),v=fe();Os(()=>{var _;const T=r?.value!==void 0,D=d((_=r?.value)!=null?_:[]),P=Gre(D);v.value=T?h(P,h(D)):void 0,p.value=T?P:void 0});const g=d((t=n?.value)!=null?t:[]),y=Gre(g),S=h(y,h(g)),k=fe(y||[]),C=fe(S);Rt(k,()=>{C.value=h(k.value,S)}),Rt([p,v],([_,T])=>{k.value=_||[],C.value=T||[]});const x=j(()=>{var _;return(_=p.value)!=null?_:k.value}),E=j(()=>{var _;return(_=v.value)!=null?_:C.value});return{selectedKeys:x,selectedValue:E,setLocalSelectedKeys(_){k.value=_},localSelectedKeys:k,localSelectedValue:C}}function IHe(e){const{searchValue:t,flattenTreeData:n,filterMethod:r,disableFilter:o,fieldNames:a}=nn(e),s=j(()=>{var y;return((y=a.value)==null?void 0:y.key)||"key"}),l=(y,S)=>{const k=S[s.value];return!An(k)&&String(k).indexOf(y)>-1},c=j(()=>r?.value||l),d=fe(),h=j(()=>!!t.value),p=j(()=>!o?.value&&h.value&&d.value&&d.value.size===0),v=j(()=>o?.value?void 0:y=>{var S,k;if(!h.value)return!0;const C=y[s.value];return(k=(S=d.value)==null?void 0:S.has(C||""))!=null?k:!1}),g=n_((y,S)=>{const k=y.filter(x=>c.value(S,x.treeNodeData)),C=new Set;k.forEach(x=>{C.add(x.key),x.pathParentKeys.forEach(E=>{C.add(E)})}),d.value=C},100);return Os(()=>{o?.value?d.value=void 0:g(n.value,t.value)}),{isEmptyFilterResult:p,filterTreeNode:v}}function LHe(e,t){const n=`${t}-slot-`;return Object.keys(e).reduce((o,a)=>{if(a.startsWith(n)){const s=a.slice(n.length);s&&(o[s]=e[a])}return o},{})}const DHe=Se({name:"TreeSelect",components:{Trigger:ha,SelectView:F8,Panel:EHe,Empty:Xh,Spin:Pd},inheritAttrs:!1,props:{disabled:{type:Boolean},loading:{type:Boolean},error:{type:Boolean},size:{type:String},border:{type:Boolean,default:!0},allowSearch:{type:[Boolean,Object],default:e=>!!e.multiple},allowClear:{type:Boolean},placeholder:{type:String},maxTagCount:{type:Number},multiple:{type:Boolean},defaultValue:{type:[String,Number,Array,Object]},modelValue:{type:[String,Number,Array,Object]},fieldNames:{type:Object},data:{type:Array,default:()=>[]},labelInValue:{type:Boolean},treeCheckable:{type:Boolean},treeCheckStrictly:{type:Boolean},treeCheckedStrategy:{type:String,default:"all"},treeProps:{type:Object},triggerProps:{type:Object},popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean},dropdownStyle:{type:Object},dropdownClassName:{type:[String,Array]},filterTreeNode:{type:Function},loadMore:{type:Function},disableFilter:{type:Boolean},popupContainer:{type:[String,Object]},fallbackOption:{type:[Boolean,Function],default:!0},selectable:{type:[Boolean,String,Function],default:!0},scrollbar:{type:[Boolean,Object],default:!0},showHeaderOnEmpty:{type:Boolean,default:!1},showFooterOnEmpty:{type:Boolean,default:!1},inputValue:{type:String},defaultInputValue:{type:String,default:""}},emits:{change:e=>!0,"update:modelValue":e=>!0,"update:inputValue":e=>!0,"popup-visible-change":e=>!0,"update:popupVisible":e=>!0,search:e=>!0,clear:()=>!0,inputValueChange:e=>!0},setup(e,{emit:t,slots:n}){var r,o,a;const{defaultValue:s,modelValue:l,multiple:c,popupVisible:d,defaultPopupVisible:h,treeCheckable:p,treeCheckStrictly:v,data:g,fieldNames:y,disabled:S,labelInValue:k,filterTreeNode:C,disableFilter:x,dropdownStyle:E,treeProps:_,fallbackOption:T,selectable:D,dropdownClassName:P}=nn(e),{mergedDisabled:M,eventHandlers:$}=Do({disabled:S}),L=Te("tree-select"),B=On(Ya,void 0),F=(a=(o=B==null?void 0:(r=B.slots).empty)==null?void 0:o.call(r,{component:"tree-select"}))==null?void 0:a[0],W=j(()=>c.value||p.value),U=(ut,Ct)=>{var St;return D.value==="leaf"?Ct.isLeaf:En(D.value)?D.value(ut,Ct):(St=D.value)!=null?St:!1},G=j(()=>p.value?U:!1),X=j(()=>br(e.allowSearch)&&!!e.allowSearch.retainInputValue),{flattenTreeData:oe,key2TreeNode:Z}=sve(Xt({treeData:g,fieldNames:y,selectable:U,checkable:G})),{selectedKeys:H,selectedValue:q,setLocalSelectedKeys:ee,localSelectedKeys:ne,localSelectedValue:ae}=AHe(Xt({defaultValue:s,modelValue:l,key2TreeNode:Z,multiple:c,treeCheckable:p,treeCheckStrictly:v,fallbackOption:T,fieldNames:y}));function re(ut){return p.value?vm(ut):cV(ut)}const ke=j(()=>An(q.value)?[]:W.value&&!M.value?q.value.map(ut=>{const Ct=Z.value.get(ut.value);return{...ut,closable:!Ct||re(Ct)}}):q.value),Ne=ut=>{ee(ut),Cn(()=>{var Ct,St;const Gt=(k.value?ae.value:ne.value)||[],Tt=W.value?Gt:Gt[0];t("update:modelValue",Tt),t("change",Tt),(St=(Ct=$.value)==null?void 0:Ct.onChange)==null||St.call(Ct)})},me=fe(e.defaultInputValue),_e=j(()=>{var ut;return(ut=e.inputValue)!=null?ut:me.value}),Ue=ut=>{me.value=ut,t("update:inputValue",ut),t("inputValueChange",ut)},Qe=ut=>{ut!==_e.value&&(ge(!0),Ue(ut),e.allowSearch&&t("search",ut))},[Me,je]=fa(h.value,Xt({value:d})),ge=ut=>{ut!==Me.value&&(je(ut),t("popup-visible-change",ut),t("update:popupVisible",ut)),ut||Je.value&&Je.value.blur&&Je.value.blur()},{isEmptyFilterResult:be,filterTreeNode:Fe}=IHe(Xt({searchValue:_e,flattenTreeData:oe,filterMethod:C,disableFilter:x,fieldNames:y})),He=j(()=>!oe.value.length||be.value),Je=fe(),rt=j(()=>{var ut;return[E?.value||{},(ut=_?.value)!=null&&ut.virtualListProps?{"max-height":"unset"}:{}]});return{refSelectView:Je,prefixCls:L,TreeSelectEmpty:F,selectedValue:q,selectedKeys:H,mergedDisabled:M,searchValue:_e,panelVisible:Me,isEmpty:He,computedFilterTreeNode:Fe,isMultiple:W,selectViewValue:ke,computedDropdownStyle:rt,onSearchValueChange:Qe,onSelectChange(ut){Ne(ut),!X.value&&_e.value&&Ue(""),W.value||ge(!1)},onVisibleChange:ge,onInnerClear(){Ne([]),t("clear")},pickSubCompSlots:LHe,isSelectable:U,isCheckable:G,onBlur:()=>{!X.value&&_e.value&&Ue("")},onItemRemove(ut){if(M.value)return;const Ct=Z.value.get(ut);if(p.value&&Ct){if(re(Ct)){const[St]=hV({node:Ct,checked:!1,checkedKeys:H.value,indeterminateKeys:[],checkStrictly:v.value});Ne(St)}}else{const St=H.value.filter(Gt=>Gt!==ut);Ne(St)}}}}});function PHe(e,t,n,r,o,a){const s=Ie("SelectView"),l=Ie("Spin"),c=Ie("Panel"),d=Ie("Trigger");return z(),Ye(d,Vt({class:`${e.prefixCls}-trigger`,"auto-fit-popup-min-width":"",trigger:"click",position:"bl","popup-offset":4,"animation-name":"slide-dynamic-origin","prevent-focus":!0},e.triggerProps,{disabled:e.mergedDisabled,"popup-visible":e.panelVisible,"popup-container":e.popupContainer,"click-to-close":!e.allowSearch,"auto-fit-transform-origin":"",onPopupVisibleChange:e.onVisibleChange}),{content:de(()=>[I("div",{class:ue([`${e.prefixCls}-popup`,{[`${e.prefixCls}-has-header`]:!!e.$slots.header,[`${e.prefixCls}-has-footer`]:!!e.$slots.footer},e.dropdownClassName]),style:Ke(e.computedDropdownStyle)},[e.$slots.header&&(!e.isEmpty||e.showHeaderOnEmpty)?(z(),Q("div",{key:0,class:ue(`${e.prefixCls}-header`)},[vt(e.$slots,"header")],2)):Le("v-if",!0),e.loading?vt(e.$slots,"loader",{key:1},()=>[O(l)]):e.isEmpty?vt(e.$slots,"empty",{key:2},()=>[(z(),Ye(Wa(e.TreeSelectEmpty?e.TreeSelectEmpty:"Empty")))]):(z(),Ye(c,{key:3,"selected-keys":e.selectedKeys,"show-checkable":e.treeCheckable,scrollbar:e.scrollbar,"tree-props":{actionOnNodeClick:e.selectable==="leaf"?"expand":void 0,blockNode:!0,...e.treeProps,data:e.data,checkStrictly:e.treeCheckStrictly,checkedStrategy:e.treeCheckedStrategy,fieldNames:e.fieldNames,multiple:e.multiple,loadMore:e.loadMore,filterTreeNode:e.computedFilterTreeNode,size:e.size,checkable:e.isCheckable,selectable:e.isSelectable,searchValue:e.searchValue},"tree-slots":e.pickSubCompSlots(e.$slots,"tree"),onChange:e.onSelectChange},null,8,["selected-keys","show-checkable","scrollbar","tree-props","tree-slots","onChange"])),e.$slots.footer&&(!e.isEmpty||e.showFooterOnEmpty)?(z(),Q("div",{key:4,class:ue(`${e.prefixCls}-footer`)},[vt(e.$slots,"footer")],2)):Le("v-if",!0)],6)]),default:de(()=>[vt(e.$slots,"trigger",{},()=>[O(s,Vt({ref:"refSelectView","model-value":e.selectViewValue,"input-value":e.searchValue,"allow-search":!!e.allowSearch,"allow-clear":e.allowClear,loading:e.loading,size:e.size,"max-tag-count":e.maxTagCount,disabled:e.mergedDisabled,opened:e.panelVisible,error:e.error,bordered:e.border,placeholder:e.placeholder,multiple:e.isMultiple},e.$attrs,{onInputValueChange:e.onSearchValueChange,onClear:e.onInnerClear,onRemove:e.onItemRemove,onBlur:e.onBlur}),yo({_:2},[e.$slots.prefix?{name:"prefix",fn:de(()=>[vt(e.$slots,"prefix")]),key:"0"}:void 0,e.$slots.label?{name:"label",fn:de(h=>[vt(e.$slots,"label",Yi(Sa(h)))]),key:"1"}:void 0]),1040,["model-value","input-value","allow-search","allow-clear","loading","size","max-tag-count","disabled","opened","error","bordered","placeholder","multiple","onInputValueChange","onClear","onRemove","onBlur"])])]),_:3},16,["class","disabled","popup-visible","popup-container","click-to-close","onPopupVisibleChange"])}var KM=Ve(DHe,[["render",PHe]]);const RHe=Object.assign(KM,{install:(e,t)=>{Xn(e,t);const n=Yn(t);e.component(n+KM.name,KM)}}),mV={Button:Xo,Link:Xpe,Typography:jUe,Divider:n$e,Grid:A4,Layout:kNe,Space:mVe,Avatar:DPe,Badge:VPe,Calendar:kpe,Card:cMe,Carousel:CMe,Collapse:zMe,Comment:_9e,ColorPicker:h9e,Descriptions:t$e,Empty:Xh,Image:ZBe,Scrollbar:Rd,List:P0e,Popover:dH,Statistic:TVe,Table:pze,Tabs:Tze,Tag:pH,Timeline:$ze,Tooltip:Zc,AutoComplete:SPe,Cascader:RMe,Checkbox:Uc,DatePicker:i0e,Form:Q$e,Input:N0,InputNumber:Q_,InputTag:_pe,Mention:KNe,Radio:Pm,Rate:Rje,Select:r_,Slider:vVe,Switch:$Ve,Textarea:R0e,TimePicker:Pze,Transfer:Gze,Tree:vV,Upload:pHe,TreeSelect:RHe,Alert:Yhe,Drawer:rV,Message:Et,Modal:Du,Notification:lV,Popconfirm:HFe,Progress:j0e,Result:Uje,Spin:Pd,Skeleton:Xje,Breadcrumb:fRe,Dropdown:dpe,Menu:SFe,PageHeader:VFe,Pagination:DH,Steps:PVe,Affix:y7e,Anchor:uDe,BackTop:BPe,ConfigProvider:x9e,ResizeBox:I0e,Trigger:ha,Split:_Ve,Icon:iBe,OverflowList:vHe,Watermark:CHe,VerificationCode:mHe},MHe=(e,t)=>{for(const n of Object.keys(mV))e.use(mV[n],t)},OHe={...mV,Alter:Yhe,AnchorLink:YC,AvatarGroup:tw,BreadcrumbItem:tb,ButtonGroup:Q4,Calendar:kpe,CardMeta:mw,CardGrid:gw,CarouselItem:yw,CascaderPanel:bw,CheckboxGroup:eb,CollapseItem:_w,DescriptionsItem:Tw,WeekPicker:kw,MonthPicker:xw,YearPicker:Cw,QuarterPicker:ww,RangePicker:Ew,Doption:sy,Dgroup:rw,Dsubmenu:iw,DropdownButton:ow,FormItem:Lw,Row:ib,Col:ob,GridItem:Iw,ImagePreview:ay,ImagePreviewAction:K8,ImagePreviewGroup:sb,InputGroup:oy,InputSearch:XC,InputPassword:ZC,LayoutHeader:Pw,LayoutContent:Rw,LayoutFooter:Mw,LayoutSider:Ow,ListItem:$w,ListItemMeta:Bw,MenuItem:Nw,MenuItemGroup:Fw,SubMenu:ab,RadioGroup:rb,Option:dm,Optgroup:nb,SkeletonLine:zw,SkeletonShape:Uw,Countdown:Hw,Step:Ww,Thead:ub,Td:r0,Th:db,Tr:kh,Tbody:cb,TableColumn:Gw,TabPane:Kw,TimelineItem:uy,TypographyParagraph:qw,TypographyTitle:Yw,TypographyText:Xw,install:MHe,addI18nMessages:FLe,useLocale:jLe,getLocale:VLe,useFormItem:Do},$He=Se({name:"IconArrowDown",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-arrow-down`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),BHe=["stroke-width","stroke-linecap","stroke-linejoin"];function NHe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m11.27 27.728 12.727 12.728 12.728-12.728M24 5v34.295"},null,-1)]),14,BHe)}var qM=Ve($He,[["render",NHe]]);const gV=Object.assign(qM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+qM.name,qM)}}),FHe=Se({name:"IconArrowFall",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-arrow-fall`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),jHe=["stroke-width","stroke-linecap","stroke-linejoin"];function VHe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24.008 41.99a.01.01 0 0 1-.016 0l-9.978-11.974A.01.01 0 0 1 14.02 30H33.98a.01.01 0 0 1 .007.016l-9.978 11.975Z"},null,-1),I("path",{d:"M24 42 14 30h20L24 42Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{d:"M22 6h4v26h-4z"},null,-1),I("path",{fill:"currentColor",stroke:"none",d:"M22 6h4v26h-4z"},null,-1)]),14,jHe)}var YM=Ve(FHe,[["render",VHe]]);const zHe=Object.assign(YM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+YM.name,YM)}}),UHe=Se({name:"IconArrowLeft",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-arrow-left`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),HHe=["stroke-width","stroke-linecap","stroke-linejoin"];function WHe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M20.272 11.27 7.544 23.998l12.728 12.728M43 24H8.705"},null,-1)]),14,HHe)}var XM=Ve(UHe,[["render",WHe]]);const qH=Object.assign(XM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+XM.name,XM)}}),GHe=Se({name:"IconArrowRight",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-arrow-right`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),KHe=["stroke-width","stroke-linecap","stroke-linejoin"];function qHe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m27.728 11.27 12.728 12.728-12.728 12.728M5 24h34.295"},null,-1)]),14,KHe)}var ZM=Ve(GHe,[["render",qHe]]);const YHe=Object.assign(ZM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+ZM.name,ZM)}}),XHe=Se({name:"IconArrowRise",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-arrow-rise`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),ZHe=["stroke-width","stroke-linecap","stroke-linejoin"];function JHe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M23.992 6.01a.01.01 0 0 1 .016 0l9.978 11.974a.01.01 0 0 1-.007.016H14.02a.01.01 0 0 1-.007-.016l9.978-11.975Z"},null,-1),I("path",{d:"m24 6 10 12H14L24 6Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{d:"M26 42h-4V16h4z"},null,-1),I("path",{fill:"currentColor",stroke:"none",d:"M26 42h-4V16h4z"},null,-1)]),14,ZHe)}var JM=Ve(XHe,[["render",JHe]]);const QHe=Object.assign(JM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+JM.name,JM)}}),eWe=Se({name:"IconArrowUp",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-arrow-up`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),tWe=["stroke-width","stroke-linecap","stroke-linejoin"];function nWe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M11.27 20.272 23.997 7.544l12.728 12.728M24 43V8.705"},null,-1)]),14,tWe)}var QM=Ve(eWe,[["render",nWe]]);const yV=Object.assign(QM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+QM.name,QM)}}),rWe=Se({name:"IconDoubleDown",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-double-down`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),iWe=["stroke-width","stroke-linecap","stroke-linejoin"];function oWe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m9.9 11.142 14.143 14.142 14.142-14.142M9.9 22.456l14.143 14.142 14.142-14.142"},null,-1)]),14,iWe)}var e9=Ve(rWe,[["render",oWe]]);const sWe=Object.assign(e9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+e9.name,e9)}}),aWe=Se({name:"IconDoubleUp",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-double-up`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),lWe=["stroke-width","stroke-linecap","stroke-linejoin"];function uWe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M38.1 36.858 23.957 22.716 9.816 36.858M38.1 25.544 23.957 11.402 9.816 25.544"},null,-1)]),14,lWe)}var t9=Ve(aWe,[["render",uWe]]);const cWe=Object.assign(t9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+t9.name,t9)}}),dWe=Se({name:"IconDownCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-down-circle`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),fWe=["stroke-width","stroke-linecap","stroke-linejoin"];function hWe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("circle",{cx:"24",cy:"24",r:"18",transform:"rotate(-180 24 24)"},null,-1),I("path",{d:"M32.484 20.515 24 29l-8.485-8.485"},null,-1)]),14,fWe)}var n9=Ve(dWe,[["render",hWe]]);const pWe=Object.assign(n9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+n9.name,n9)}}),vWe=Se({name:"IconDragArrow",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-drag-arrow`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),mWe=["stroke-width","stroke-linecap","stroke-linejoin"];function gWe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M7 24h34M24 7v34M30 12l-6-6-6 6M36 30l6-6-6-6M12 30l-6-6 6-6M18 36l6 6 6-6"},null,-1)]),14,mWe)}var r9=Ve(vWe,[["render",gWe]]);const yve=Object.assign(r9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+r9.name,r9)}}),yWe=Se({name:"IconExpand",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-expand`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),bWe=["stroke-width","stroke-linecap","stroke-linejoin"];function _We(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M7 26v14c0 .552.444 1 .996 1H22m19-19V8c0-.552-.444-1-.996-1H26"},null,-1)]),14,bWe)}var i9=Ve(yWe,[["render",_We]]);const SWe=Object.assign(i9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+i9.name,i9)}}),kWe=Se({name:"IconLeftCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-left-circle`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),xWe=["stroke-width","stroke-linecap","stroke-linejoin"];function CWe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("circle",{cx:"24",cy:"24",r:"18"},null,-1),I("path",{d:"M28.485 32.485 20 24l8.485-8.485"},null,-1)]),14,xWe)}var o9=Ve(kWe,[["render",CWe]]);const wWe=Object.assign(o9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+o9.name,o9)}}),EWe=Se({name:"IconRightCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-right-circle`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),TWe=["stroke-width","stroke-linecap","stroke-linejoin"];function AWe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("circle",{cx:"24",cy:"24",r:"18"},null,-1),I("path",{d:"M19.485 15.515 27.971 24l-8.486 8.485"},null,-1)]),14,TWe)}var s9=Ve(EWe,[["render",AWe]]);const IWe=Object.assign(s9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+s9.name,s9)}}),LWe=Se({name:"IconShrink",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-shrink`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),DWe=["stroke-width","stroke-linecap","stroke-linejoin"];function PWe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M20 44V29c0-.552-.444-1-.996-1H4M28 4v15c0 .552.444 1 .996 1H44"},null,-1)]),14,DWe)}var a9=Ve(LWe,[["render",PWe]]);const RWe=Object.assign(a9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+a9.name,a9)}}),MWe=Se({name:"IconSwap",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-swap`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),OWe=["stroke-width","stroke-linecap","stroke-linejoin"];function $We(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M5 17h35.586c.89 0 1.337-1.077.707-1.707L33 7M43 31H7.414c-.89 0-1.337 1.077-.707 1.707L15 41"},null,-1)]),14,OWe)}var l9=Ve(MWe,[["render",$We]]);const bve=Object.assign(l9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+l9.name,l9)}}),BWe=Se({name:"IconToBottom",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-to-bottom`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),NWe=["stroke-width","stroke-linecap","stroke-linejoin"];function FWe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M5 41h38M24 28V5M24 34.04 17.547 27h12.907L24 34.04Zm-.736.803v.001Z"},null,-1),I("path",{d:"m24 34 6-7H18l6 7Z",fill:"currentColor",stroke:"none"},null,-1)]),14,NWe)}var u9=Ve(BWe,[["render",FWe]]);const jWe=Object.assign(u9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+u9.name,u9)}}),VWe=Se({name:"IconToLeft",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-to-left`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),zWe=["stroke-width","stroke-linecap","stroke-linejoin"];function UWe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M7 5v38M20 24h23M20.999 17.547v12.907L13.959 24l7.04-6.453Z"},null,-1),I("path",{d:"m14 24 7 6V18l-7 6Z",fill:"currentColor",stroke:"none"},null,-1)]),14,zWe)}var c9=Ve(VWe,[["render",UWe]]);const HWe=Object.assign(c9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+c9.name,c9)}}),WWe=Se({name:"IconToRight",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-to-right`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),GWe=["stroke-width","stroke-linecap","stroke-linejoin"];function KWe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M41 43V5M28 24H5M34.04 24 27 30.453V17.546L34.04 24Zm.803.736h.001Z"},null,-1),I("path",{d:"m34 24-7-6v12l7-6Z",fill:"currentColor",stroke:"none"},null,-1)]),14,GWe)}var d9=Ve(WWe,[["render",KWe]]);const qWe=Object.assign(d9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+d9.name,d9)}}),YWe=Se({name:"IconUpCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-up-circle`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),XWe=["stroke-width","stroke-linecap","stroke-linejoin"];function ZWe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("circle",{cx:"24",cy:"24",r:"18"},null,-1),I("path",{d:"M15.516 28.485 24 20l8.485 8.485"},null,-1)]),14,XWe)}var f9=Ve(YWe,[["render",ZWe]]);const JWe=Object.assign(f9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+f9.name,f9)}}),QWe=Se({name:"IconExclamationPolygonFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-exclamation-polygon-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),eGe=["stroke-width","stroke-linecap","stroke-linejoin"];function tGe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.553 4a1 1 0 0 0-.74.327L4.26 15.937a1 1 0 0 0-.26.672V31.39a1 1 0 0 0 .26.673l10.553 11.609a1 1 0 0 0 .74.327h16.893a1 1 0 0 0 .74-.327l10.554-11.61a1 1 0 0 0 .26-.672V16.61a1 1 0 0 0-.26-.673L33.187 4.327a1 1 0 0 0-.74-.327H15.553ZM22 33a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v2Zm4-18a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1V15Z",fill:"currentColor",stroke:"none"},null,-1)]),14,eGe)}var h9=Ve(QWe,[["render",tGe]]);const nGe=Object.assign(h9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+h9.name,h9)}}),rGe=Se({name:"IconMinusCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-minus-circle-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),iGe=["stroke-width","stroke-linecap","stroke-linejoin"];function oGe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm-7-22a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1H17Z",fill:"currentColor",stroke:"none"},null,-1)]),14,iGe)}var p9=Ve(rGe,[["render",oGe]]);const sGe=Object.assign(p9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+p9.name,p9)}}),aGe=Se({name:"IconPlusCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-plus-circle-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),lGe=["stroke-width","stroke-linecap","stroke-linejoin"];function uGe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm2-28v6h6a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1h-6v6a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1v-6h-6a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1h6v-6a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1Z",fill:"currentColor",stroke:"none"},null,-1)]),14,lGe)}var v9=Ve(aGe,[["render",uGe]]);const cGe=Object.assign(v9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+v9.name,v9)}}),dGe=Se({name:"IconQuestionCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-question-circle-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),fGe=["stroke-width","stroke-linecap","stroke-linejoin"];function hGe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm-3.862-24.021a.461.461 0 0 0 .462-.462 2.37 2.37 0 0 1 .636-1.615C21.64 17.48 22.43 17 23.988 17c1.465 0 2.483.7 3.002 1.493.555.848.446 1.559.182 1.914-.328.444-.736.853-1.228 1.296-.15.135-.335.296-.533.468-.354.308-.75.654-1.067.955C23.22 24.195 22 25.686 22 28v.013a1 1 0 0 0 1.006.993l2.008-.012a.993.993 0 0 0 .986-1c.002-.683.282-1.19 1.101-1.97.276-.262.523-.477.806-.722.21-.18.439-.379.713-.626.57-.513 1.205-1.13 1.767-1.888 1.516-2.047 1.161-4.634-.05-6.485C29.092 14.398 26.825 13 23.988 13c-2.454 0-4.357.794-5.642 2.137-1.25 1.307-1.742 2.954-1.746 4.37 0 .26.21.472.47.472h3.068Zm1.868 14.029a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1V32a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v2.008Z",fill:"currentColor",stroke:"none"},null,-1)]),14,fGe)}var m9=Ve(dGe,[["render",hGe]]);const pGe=Object.assign(m9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+m9.name,m9)}}),vGe=Se({name:"IconCheckCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-check-circle`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),mGe=["stroke-width","stroke-linecap","stroke-linejoin"];function gGe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m15 22 7 7 11.5-11.5M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z"},null,-1)]),14,mGe)}var g9=Ve(vGe,[["render",gGe]]);const nc=Object.assign(g9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+g9.name,g9)}}),yGe=Se({name:"IconCheckSquare",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-check-square`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),bGe=["stroke-width","stroke-linecap","stroke-linejoin"];function _Ge(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M34.603 16.672 21.168 30.107l-7.778-7.779M8 41h32a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v32a1 1 0 0 0 1 1Z"},null,-1)]),14,bGe)}var y9=Ve(yGe,[["render",_Ge]]);const SGe=Object.assign(y9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+y9.name,y9)}}),kGe=Se({name:"IconCloseCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-close-circle`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),xGe=["stroke-width","stroke-linecap","stroke-linejoin"];function CGe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m17.643 17.643 6.364 6.364m0 0 6.364 6.364m-6.364-6.364 6.364-6.364m-6.364 6.364-6.364 6.364M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z"},null,-1)]),14,xGe)}var b9=Ve(kGe,[["render",CGe]]);const wGe=Object.assign(b9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+b9.name,b9)}}),EGe=Se({name:"IconExclamationCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-exclamation-circle`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),TGe=["stroke-width","stroke-linecap","stroke-linejoin"];function AGe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24 28V14m0 16v4M6 24c0-9.941 8.059-18 18-18s18 8.059 18 18-8.059 18-18 18S6 33.941 6 24Z"},null,-1)]),14,TGe)}var _9=Ve(EGe,[["render",AGe]]);const Sd=Object.assign(_9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+_9.name,_9)}}),IGe=Se({name:"IconInfoCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-info-circle`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),LGe=["stroke-width","stroke-linecap","stroke-linejoin"];function DGe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24 20v14m0-16v-4m18 10c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z"},null,-1)]),14,LGe)}var S9=Ve(IGe,[["render",DGe]]);const Pc=Object.assign(S9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+S9.name,S9)}}),PGe=Se({name:"IconMinusCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-minus-circle`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),RGe=["stroke-width","stroke-linecap","stroke-linejoin"];function MGe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M32 24H16m26 0c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z"},null,-1)]),14,RGe)}var k9=Ve(PGe,[["render",MGe]]);const OGe=Object.assign(k9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+k9.name,k9)}}),$Ge=Se({name:"IconPlusCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-plus-circle`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),BGe=["stroke-width","stroke-linecap","stroke-linejoin"];function NGe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M32 24h-8m-8 0h8m0 0v8m0-8v-8m18 8c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z"},null,-1)]),14,BGe)}var x9=Ve($Ge,[["render",NGe]]);const FGe=Object.assign(x9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+x9.name,x9)}}),jGe=Se({name:"IconQuestion",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-question`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),VGe=["stroke-width","stroke-linecap","stroke-linejoin"];function zGe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M13 17c0-5.523 4.925-10 11-10s11 4.477 11 10c0 3.607-2.1 6.767-5.25 8.526C26.857 27.142 24 29.686 24 33v3m0 5h.02v.02H24V41Z"},null,-1)]),14,VGe)}var C9=Ve(jGe,[["render",zGe]]);const UGe=Object.assign(C9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+C9.name,C9)}}),HGe=Se({name:"IconStop",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-stop`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),WGe=["stroke-width","stroke-linecap","stroke-linejoin"];function GGe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M36.728 36.728c7.03-7.03 7.03-18.427 0-25.456-7.03-7.03-18.427-7.03-25.456 0m25.456 25.456c-7.03 7.03-18.427 7.03-25.456 0-7.03-7.03-7.03-18.427 0-25.456m25.456 25.456L11.272 11.272"},null,-1)]),14,WGe)}var w9=Ve(HGe,[["render",GGe]]);const KGe=Object.assign(w9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+w9.name,w9)}}),qGe=Se({name:"IconHeartFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-heart-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),YGe=["stroke-width","stroke-linecap","stroke-linejoin"];function XGe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24 10.541c4.35-4.522 11.405-4.814 15.756-.292 4.35 4.522 4.15 11.365.448 17.135C36.153 33.7 28 41.5 24 42c-4-.5-12.152-8.3-16.204-14.616-3.702-5.77-3.902-12.613.448-17.135C12.595 5.727 19.65 6.019 24 10.54Z",fill:"currentColor",stroke:"none"},null,-1)]),14,YGe)}var E9=Ve(qGe,[["render",XGe]]);const YH=Object.assign(E9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+E9.name,E9)}}),ZGe=Se({name:"IconThumbDownFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-thumb-down-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),JGe=["stroke-width","stroke-linecap","stroke-linejoin"];function QGe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M43 5v26h-4V5h4Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{d:"M20.9 43.537a2 2 0 0 0 2.83-.364L32.964 31H36V5H12.424a2 2 0 0 0-1.89 1.346L4.838 25.692C3.938 28.29 5.868 31 8.618 31h10.568l-2.421 5.448a4 4 0 0 0 1.184 4.77l2.951 2.32Z",fill:"currentColor",stroke:"none"},null,-1)]),14,JGe)}var T9=Ve(ZGe,[["render",QGe]]);const eKe=Object.assign(T9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+T9.name,T9)}}),tKe=Se({name:"IconThumbUpFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-thumb-up-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),nKe=["stroke-width","stroke-linecap","stroke-linejoin"];function rKe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5 43V17h4v26H5Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{d:"M27.1 4.463a2 2 0 0 0-2.83.364L15.036 17H12v26h23.576a2 2 0 0 0 1.89-1.346l5.697-19.346c.899-2.598-1.03-5.308-3.78-5.308h-10.57l2.422-5.448a4 4 0 0 0-1.184-4.77L27.1 4.462Z",fill:"currentColor",stroke:"none"},null,-1)]),14,nKe)}var A9=Ve(tKe,[["render",rKe]]);const iKe=Object.assign(A9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+A9.name,A9)}}),oKe=Se({name:"IconAt",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-at`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),sKe=["stroke-width","stroke-linecap","stroke-linejoin"];function aKe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M31 23a7 7 0 1 1-14 0 7 7 0 0 1 14 0Zm0 0c0 3.038 2.462 6.5 5.5 6.5A5.5 5.5 0 0 0 42 24c0-9.941-8.059-18-18-18S6 14.059 6 24s8.059 18 18 18c4.244 0 8.145-1.469 11.222-3.925"},null,-1)]),14,sKe)}var I9=Ve(oKe,[["render",aKe]]);const lKe=Object.assign(I9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+I9.name,I9)}}),uKe=Se({name:"IconCloudDownload",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-cloud-download`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),cKe=["stroke-width","stroke-linecap","stroke-linejoin"];function dKe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M43 22c0-7.732-6.492-14-14.5-14S14 14.268 14 22v.055A9.001 9.001 0 0 0 15 40h13m16.142-5.929-7.07 7.071L30 34.072M37.07 26v15"},null,-1)]),14,cKe)}var L9=Ve(uKe,[["render",dKe]]);const fKe=Object.assign(L9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+L9.name,L9)}}),hKe=Se({name:"IconCodeBlock",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-code-block`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),pKe=["stroke-width","stroke-linecap","stroke-linejoin"];function vKe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M19 6h-4a3 3 0 0 0-3 3v10c0 3-4.343 5-6 5 1.657 0 6 2 6 5v10a3 3 0 0 0 3 3h4M29 6h4a3 3 0 0 1 3 3v10c0 3 4.343 5 6 5-1.657 0-6 2-6 5v10a3 3 0 0 1-3 3h-4"},null,-1)]),14,pKe)}var D9=Ve(hKe,[["render",vKe]]);const _ve=Object.assign(D9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+D9.name,D9)}}),mKe=Se({name:"IconCodeSquare",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-code-square`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),gKe=["stroke-width","stroke-linecap","stroke-linejoin"];function yKe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M23.071 17 16 24.071l7.071 7.071m9.001-14.624-4.14 15.454M9 42h30a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v34a1 1 0 0 0 1 1Z"},null,-1)]),14,gKe)}var P9=Ve(mKe,[["render",yKe]]);const bKe=Object.assign(P9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+P9.name,P9)}}),_Ke=Se({name:"IconCode",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-code`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),SKe=["stroke-width","stroke-linecap","stroke-linejoin"];function kKe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M16.734 12.686 5.42 24l11.314 11.314m14.521-22.628L42.57 24 31.255 35.314M27.2 6.28l-6.251 35.453"},null,-1)]),14,SKe)}var R9=Ve(_Ke,[["render",kKe]]);const E0=Object.assign(R9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+R9.name,R9)}}),xKe=Se({name:"IconCustomerService",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-customer-service`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),CKe=["stroke-width","stroke-linecap","stroke-linejoin"];function wKe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M11 31V20c0-7.18 5.82-13 13-13s13 5.82 13 13v8c0 5.784-3.778 10.686-9 12.373m0 0A12.99 12.99 0 0 1 24 41h-3a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v2.373Zm0 0V41m9-20h3a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1h-3v-8Zm-26 0H8a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h3v-8Z"},null,-1)]),14,CKe)}var M9=Ve(xKe,[["render",wKe]]);const EKe=Object.assign(M9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+M9.name,M9)}}),TKe=Se({name:"IconDownload",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-download`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),AKe=["stroke-width","stroke-linecap","stroke-linejoin"];function IKe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m33.072 22.071-9.07 9.071-9.072-9.07M24 5v26m16 4v6H8v-6"},null,-1)]),14,AKe)}var O9=Ve(TKe,[["render",IKe]]);const mm=Object.assign(O9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+O9.name,O9)}}),LKe=Se({name:"IconExport",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-export`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),DKe=["stroke-width","stroke-linecap","stroke-linejoin"];function PKe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M31.928 33.072 41 24.002l-9.072-9.072M16.858 24h24M31 41H7V7h24"},null,-1)]),14,DKe)}var $9=Ve(LKe,[["render",PKe]]);const Z5=Object.assign($9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+$9.name,$9)}}),RKe=Se({name:"IconHeart",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-heart`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),MKe=["stroke-width","stroke-linecap","stroke-linejoin"];function OKe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M38.083 12.912a9.929 9.929 0 0 1 .177 13.878l-.177.18L25.76 39.273c-.972.97-2.548.97-3.52 0L9.917 26.971l-.177-.181a9.929 9.929 0 0 1 .177-13.878c3.889-3.883 10.194-3.883 14.083 0 3.889-3.883 10.194-3.883 14.083 0Z"},null,-1)]),14,MKe)}var B9=Ve(RKe,[["render",OKe]]);const J5=Object.assign(B9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+B9.name,B9)}}),$Ke=Se({name:"IconHistory",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-history`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),BKe=["stroke-width","stroke-linecap","stroke-linejoin"];function NKe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M6 24c0-9.941 8.059-18 18-18s18 8.059 18 18-8.059 18-18 18c-6.26 0-11.775-3.197-15-8.047M6 24l-.5-.757h1L6 24Zm26 2h-9v-9"},null,-1)]),14,BKe)}var N9=Ve($Ke,[["render",NKe]]);const My=Object.assign(N9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+N9.name,N9)}}),FKe=Se({name:"IconHome",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-home`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),jKe=["stroke-width","stroke-linecap","stroke-linejoin"];function VKe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M7 17 24 7l17 10v24H7V17Z"},null,-1),I("path",{d:"M20 28h8v13h-8V28Z"},null,-1)]),14,jKe)}var F9=Ve(FKe,[["render",VKe]]);const c3=Object.assign(F9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+F9.name,F9)}}),zKe=Se({name:"IconImport",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-import`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),UKe=["stroke-width","stroke-linecap","stroke-linejoin"];function HKe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m27.929 33.072-9.071-9.07 9.07-9.072M43 24H19m12 17H7V7h24"},null,-1)]),14,UKe)}var j9=Ve(zKe,[["render",HKe]]);const Q5=Object.assign(j9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+j9.name,j9)}}),WKe=Se({name:"IconLaunch",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-launch`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),GKe=["stroke-width","stroke-linecap","stroke-linejoin"];function KKe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M41 26v14a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1h14M19.822 28.178 39.899 8.1M41 20V7H28"},null,-1)]),14,GKe)}var V9=Ve(WKe,[["render",KKe]]);const Sve=Object.assign(V9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+V9.name,V9)}}),qKe=Se({name:"IconList",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-list`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),YKe=["stroke-width","stroke-linecap","stroke-linejoin"];function XKe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M13 24h30M5 12h4m4 24h30M13 12h30M5 24h4M5 36h4"},null,-1)]),14,YKe)}var z9=Ve(qKe,[["render",XKe]]);const XH=Object.assign(z9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+z9.name,z9)}}),ZKe=Se({name:"IconMessageBanned",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-message-banned`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),JKe=["stroke-width","stroke-linecap","stroke-linejoin"];function QKe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M40.527 20C38.727 12.541 32.01 7 24 7 14.611 7 7 14.611 7 24v17h14m19.364-.636a9 9 0 0 0-12.728-12.728m12.728 12.728a9 9 0 0 1-12.728-12.728m12.728 12.728L27.636 27.636M13 20h12m-12 9h6"},null,-1)]),14,JKe)}var U9=Ve(ZKe,[["render",QKe]]);const eqe=Object.assign(U9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+U9.name,U9)}}),tqe=Se({name:"IconMessage",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-message`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),nqe=["stroke-width","stroke-linecap","stroke-linejoin"];function rqe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M15 20h18m-18 9h9M7 41h17.63C33.67 41 41 33.67 41 24.63V24c0-9.389-7.611-17-17-17S7 14.611 7 24v17Z"},null,-1)]),14,nqe)}var H9=Ve(tqe,[["render",rqe]]);const iqe=Object.assign(H9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+H9.name,H9)}}),oqe=Se({name:"IconMoreVertical",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-more-vertical`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),sqe=["stroke-width","stroke-linecap","stroke-linejoin"];function aqe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M25 10h-2V8h2v2ZM25 25h-2v-2h2v2ZM25 40h-2v-2h2v2Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{d:"M25 10h-2V8h2v2ZM25 25h-2v-2h2v2ZM25 40h-2v-2h2v2Z"},null,-1)]),14,sqe)}var W9=Ve(oqe,[["render",aqe]]);const lqe=Object.assign(W9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+W9.name,W9)}}),uqe=Se({name:"IconPoweroff",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-poweroff`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),cqe=["stroke-width","stroke-linecap","stroke-linejoin"];function dqe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M15.5 9.274C10.419 12.214 7 17.708 7 24c0 9.389 7.611 17 17 17s17-7.611 17-17c0-6.292-3.419-11.786-8.5-14.726M24 5v22"},null,-1)]),14,cqe)}var G9=Ve(uqe,[["render",dqe]]);const fqe=Object.assign(G9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+G9.name,G9)}}),hqe=Se({name:"IconRefresh",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-refresh`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),pqe=["stroke-width","stroke-linecap","stroke-linejoin"];function vqe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M38.837 18C36.463 12.136 30.715 8 24 8 15.163 8 8 15.163 8 24s7.163 16 16 16c7.455 0 13.72-5.1 15.496-12M40 8v10H30"},null,-1)]),14,pqe)}var K9=Ve(hqe,[["render",vqe]]);const Ed=Object.assign(K9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+K9.name,K9)}}),mqe=Se({name:"IconReply",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-reply`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),gqe=["stroke-width","stroke-linecap","stroke-linejoin"];function yqe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m6.642 24.684 14.012 14.947a.2.2 0 0 0 .346-.137v-8.949A23.077 23.077 0 0 1 26 30c6.208 0 11.84 2.459 15.978 6.456a.01.01 0 0 0 .017-.007C42 36.299 42 36.15 42 36c0-10.493-8.506-19-19-19-.675 0-1.342.035-2 .104V8.506a.2.2 0 0 0-.346-.137L6.642 23.316a1 1 0 0 0 0 1.368Z"},null,-1)]),14,gqe)}var q9=Ve(mqe,[["render",yqe]]);const bqe=Object.assign(q9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+q9.name,q9)}}),_qe=Se({name:"IconSave",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-save`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Sqe=["stroke-width","stroke-linecap","stroke-linejoin"];function kqe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M21 13v9m18 20H9a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h22.55a1 1 0 0 1 .748.336l7.45 8.38a1 1 0 0 1 .252.664V41a1 1 0 0 1-1 1ZM14 6h14v15a1 1 0 0 1-1 1H15a1 1 0 0 1-1-1V6Z"},null,-1)]),14,Sqe)}var Y9=Ve(_qe,[["render",kqe]]);const zp=Object.assign(Y9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+Y9.name,Y9)}}),xqe=Se({name:"IconScan",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-scan`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Cqe=["stroke-width","stroke-linecap","stroke-linejoin"];function wqe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M7 17V7h10m24 10V7H31m10 24v10H31M7 31v10h10M5 24h38"},null,-1)]),14,Cqe)}var X9=Ve(xqe,[["render",wqe]]);const Eqe=Object.assign(X9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+X9.name,X9)}}),Tqe=Se({name:"IconSelectAll",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-select-all`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Aqe=["stroke-width","stroke-linecap","stroke-linejoin"];function Iqe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m17.314 7.243-7.071 7.07L6 10.072m11.314 10.172-7.071 7.07L6 23.072m11.314 10.172-7.071 7.07L6 36.072M21 11h22M21 25h22M21 39h22"},null,-1)]),14,Aqe)}var Z9=Ve(Tqe,[["render",Iqe]]);const Lqe=Object.assign(Z9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+Z9.name,Z9)}}),Dqe=Se({name:"IconSend",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-send`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Pqe=["stroke-width","stroke-linecap","stroke-linejoin"];function Rqe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m14 24-7-5V7l34 17L7 41V29l7-5Zm0 0h25","stroke-miterlimit":"3.864"},null,-1)]),14,Pqe)}var J9=Ve(Dqe,[["render",Rqe]]);const Mqe=Object.assign(J9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+J9.name,J9)}}),Oqe=Se({name:"IconSettings",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-settings`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),$qe=["stroke-width","stroke-linecap","stroke-linejoin"];function Bqe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M18.797 6.732A1 1 0 0 1 19.76 6h8.48a1 1 0 0 1 .964.732l1.285 4.628a1 1 0 0 0 1.213.7l4.651-1.2a1 1 0 0 1 1.116.468l4.24 7.344a1 1 0 0 1-.153 1.2L38.193 23.3a1 1 0 0 0 0 1.402l3.364 3.427a1 1 0 0 1 .153 1.2l-4.24 7.344a1 1 0 0 1-1.116.468l-4.65-1.2a1 1 0 0 0-1.214.7l-1.285 4.628a1 1 0 0 1-.964.732h-8.48a1 1 0 0 1-.963-.732L17.51 36.64a1 1 0 0 0-1.213-.7l-4.65 1.2a1 1 0 0 1-1.116-.468l-4.24-7.344a1 1 0 0 1 .153-1.2L9.809 24.7a1 1 0 0 0 0-1.402l-3.364-3.427a1 1 0 0 1-.153-1.2l4.24-7.344a1 1 0 0 1 1.116-.468l4.65 1.2a1 1 0 0 0 1.213-.7l1.286-4.628Z"},null,-1),I("path",{d:"M30 24a6 6 0 1 1-12 0 6 6 0 0 1 12 0Z"},null,-1)]),14,$qe)}var Q9=Ve(Oqe,[["render",Bqe]]);const Lf=Object.assign(Q9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+Q9.name,Q9)}}),Nqe=Se({name:"IconShareAlt",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-share-alt`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Fqe=["stroke-width","stroke-linecap","stroke-linejoin"];function jqe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M32.442 21.552a4.5 4.5 0 1 1 .065 4.025m-.065-4.025-16.884-8.104m16.884 8.104A4.483 4.483 0 0 0 32 23.5c0 .75.183 1.455.507 2.077m-16.95-12.13a4.5 4.5 0 1 1-8.113-3.895 4.5 4.5 0 0 1 8.114 3.896Zm-.064 20.977A4.5 4.5 0 1 0 11.5 41c3.334-.001 5.503-3.68 3.993-6.578Zm0 0 17.014-8.847"},null,-1)]),14,Fqe)}var eO=Ve(Nqe,[["render",jqe]]);const Vqe=Object.assign(eO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+eO.name,eO)}}),zqe=Se({name:"IconShareExternal",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-share-external`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Uqe=["stroke-width","stroke-linecap","stroke-linejoin"];function Hqe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M18 20h-7a1 1 0 0 0-1 1v20a1 1 0 0 0 1 1h26a1 1 0 0 0 1-1V21a1 1 0 0 0-1-1h-7m2.368-5.636L24.004 6l-8.364 8.364M24.003 28V6.604","stroke-miterlimit":"16"},null,-1)]),14,Uqe)}var tO=Ve(zqe,[["render",Hqe]]);const Wqe=Object.assign(tO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+tO.name,tO)}}),Gqe=Se({name:"IconShareInternal",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-share-internal`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Kqe=["stroke-width","stroke-linecap","stroke-linejoin"];function qqe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M40 35v6H8v-6m1.108-4c1.29-8.868 13.917-15.85 29.392-15.998M30 6l9 9-9 9"},null,-1)]),14,Kqe)}var nO=Ve(Gqe,[["render",qqe]]);const Yqe=Object.assign(nO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+nO.name,nO)}}),Xqe=Se({name:"IconStar",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-star`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Zqe=["stroke-width","stroke-linecap","stroke-linejoin"];function Jqe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M22.552 6.908a.5.5 0 0 1 .896 0l5.02 10.17a.5.5 0 0 0 .376.274l11.224 1.631a.5.5 0 0 1 .277.853l-8.122 7.916a.5.5 0 0 0-.143.443l1.917 11.178a.5.5 0 0 1-.726.527l-10.038-5.278a.5.5 0 0 0-.466 0L12.73 39.9a.5.5 0 0 1-.726-.527l1.918-11.178a.5.5 0 0 0-.144-.443l-8.122-7.916a.5.5 0 0 1 .278-.853l11.223-1.63a.5.5 0 0 0 .376-.274l5.02-10.17Z"},null,-1)]),14,Zqe)}var rO=Ve(Xqe,[["render",Jqe]]);const eA=Object.assign(rO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+rO.name,rO)}}),Qqe=Se({name:"IconSync",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-sync`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),eYe=["stroke-width","stroke-linecap","stroke-linejoin"];function tYe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M11.98 11.703c-6.64 6.64-6.64 17.403 0 24.042a16.922 16.922 0 0 0 8.942 4.7M34.603 37.156l1.414-1.415c6.64-6.639 6.64-17.402 0-24.041A16.922 16.922 0 0 0 27.075 7M14.81 11.982l-1.414-1.414-1.414-1.414h2.829v2.828ZM33.192 36.02l1.414 1.414 1.414 1.415h-2.828V36.02Z"},null,-1)]),14,eYe)}var iO=Ve(Qqe,[["render",tYe]]);const nYe=Object.assign(iO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+iO.name,iO)}}),rYe=Se({name:"IconThumbDown",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-thumb-down`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),iYe=["stroke-width","stroke-linecap","stroke-linejoin"];function oYe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M41 31V5M5.83 26.394l5.949-18.697A1 1 0 0 1 12.732 7H34v22h-3l-9.403 12.223a1 1 0 0 1-1.386.196l-2.536-1.87a6 6 0 0 1-2.043-6.974L17 29H7.736a2 2 0 0 1-1.906-2.606Z"},null,-1)]),14,iYe)}var oO=Ve(rYe,[["render",oYe]]);const sYe=Object.assign(oO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+oO.name,oO)}}),aYe=Se({name:"IconThumbUp",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-thumb-up`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),lYe=["stroke-width","stroke-linecap","stroke-linejoin"];function uYe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M7 17v26m35.17-21.394-5.948 18.697a1 1 0 0 1-.953.697H14V19h3l9.403-12.223a1 1 0 0 1 1.386-.196l2.535 1.87a6 6 0 0 1 2.044 6.974L31 19h9.265a2 2 0 0 1 1.906 2.606Z"},null,-1)]),14,lYe)}var sO=Ve(aYe,[["render",uYe]]);const cYe=Object.assign(sO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+sO.name,sO)}}),dYe=Se({name:"IconTranslate",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-translate`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),fYe=["stroke-width","stroke-linecap","stroke-linejoin"];function hYe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M42 25c0 9.941-8.059 18-18 18-6.867 0-12.836-3.845-15.87-9.5M28.374 27 25 18h-2l-3.375 9m8.75 0L31 34m-2.625-7h-8.75m0 0L17 34M6 25c0-9.941 8.059-18 18-18 6.867 0 12.836 3.845 15.87 9.5M43 25h-2l1-1 1 1ZM5 25h2l-1 1-1-1Z"},null,-1)]),14,fYe)}var aO=Ve(dYe,[["render",hYe]]);const pYe=Object.assign(aO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+aO.name,aO)}}),vYe=Se({name:"IconVoice",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-voice`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),mYe=["stroke-width","stroke-linecap","stroke-linejoin"];function gYe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M41 21v1c0 8.837-7.163 16-16 16h-2c-8.837 0-16-7.163-16-16v-1m17 17v6m0-14a9 9 0 0 1-9-9v-6a9 9 0 1 1 18 0v6a9 9 0 0 1-9 9Z"},null,-1)]),14,mYe)}var lO=Ve(vYe,[["render",gYe]]);const yYe=Object.assign(lO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+lO.name,lO)}}),bYe=Se({name:"IconAlignCenter",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-align-center`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),_Ye=["stroke-width","stroke-linecap","stroke-linejoin"];function SYe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M44 9H4m38 20H6m28-10H14m20 20H14"},null,-1)]),14,_Ye)}var uO=Ve(bYe,[["render",SYe]]);const kYe=Object.assign(uO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+uO.name,uO)}}),xYe=Se({name:"IconAlignLeft",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-align-left`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),CYe=["stroke-width","stroke-linecap","stroke-linejoin"];function wYe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M44 9H4m36 20H4m21-10H4m21 20H4"},null,-1)]),14,CYe)}var cO=Ve(xYe,[["render",wYe]]);const EYe=Object.assign(cO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+cO.name,cO)}}),TYe=Se({name:"IconAlignRight",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-align-right`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),AYe=["stroke-width","stroke-linecap","stroke-linejoin"];function IYe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M4 9h40M8 29h36M23 19h21M23 39h21"},null,-1)]),14,AYe)}var dO=Ve(TYe,[["render",IYe]]);const LYe=Object.assign(dO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+dO.name,dO)}}),DYe=Se({name:"IconAttachment",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-attachment`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),PYe=["stroke-width","stroke-linecap","stroke-linejoin"];function RYe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M29.037 15.236s-9.174 9.267-11.48 11.594c-2.305 2.327-1.646 4.987-.329 6.316 1.317 1.33 3.994 1.953 6.258-.332L37.32 18.851c3.623-3.657 2.092-8.492 0-10.639-2.093-2.147-6.916-3.657-10.54 0L11.3 23.838c-3.623 3.657-3.953 10.638.329 14.96 4.282 4.322 11.115 4.105 14.821.333 3.706-3.773 8.74-8.822 11.224-11.33"},null,-1)]),14,PYe)}var fO=Ve(DYe,[["render",RYe]]);const MYe=Object.assign(fO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+fO.name,fO)}}),OYe=Se({name:"IconBgColors",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-bg-colors`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),$Ye=["stroke-width","stroke-linecap","stroke-linejoin"];function BYe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m9.442 25.25 10.351 10.765a1 1 0 0 0 1.428.014L32 25.25H9.442Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{d:"M19 5.25 22.75 9m0 0 12.043 12.043a1 1 0 0 1 0 1.414L32 25.25M22.75 9 8.693 23.057a1 1 0 0 0-.013 1.4l.762.793m0 0 10.351 10.765a1 1 0 0 0 1.428.014L32 25.25m-22.558 0H32M6 42h36"},null,-1),I("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M40.013 29.812 37.201 27l-2.812 2.812a4 4 0 1 0 5.624 0Z",fill:"currentColor",stroke:"none"},null,-1)]),14,$Ye)}var hO=Ve(OYe,[["render",BYe]]);const kve=Object.assign(hO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+hO.name,hO)}}),NYe=Se({name:"IconBold",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-bold`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),FYe=["stroke-width","stroke-linecap","stroke-linejoin"];function jYe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M13 24h12a8 8 0 1 0 0-16H13.2a.2.2 0 0 0-.2.2V24Zm0 0h16a8 8 0 1 1 0 16H13.2a.2.2 0 0 1-.2-.2V24Z"},null,-1)]),14,FYe)}var pO=Ve(NYe,[["render",jYe]]);const VYe=Object.assign(pO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+pO.name,pO)}}),zYe=Se({name:"IconBrush",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-brush`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),UYe=["stroke-width","stroke-linecap","stroke-linejoin"];function HYe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M33 13h7a1 1 0 0 1 1 1v12.14a1 1 0 0 1-.85.99l-21.3 3.24a1 1 0 0 0-.85.99V43M33 8v10.002A.998.998 0 0 1 32 19H8a1 1 0 0 1-1-1V8c0-.552.444-1 .997-1H32.01c.552 0 .99.447.99 1Z"},null,-1)]),14,UYe)}var vO=Ve(zYe,[["render",HYe]]);const WYe=Object.assign(vO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+vO.name,vO)}}),GYe=Se({name:"IconEraser",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-eraser`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),KYe=["stroke-width","stroke-linecap","stroke-linejoin"];function qYe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M25.5 40.503 14.914 40.5a1 1 0 0 1-.707-.293l-9-9a1 1 0 0 1 0-1.414L13.5 21.5m12 19.003L44 40.5m-18.5.003L29 37M13.5 21.5 26.793 8.207a1 1 0 0 1 1.414 0l14.086 14.086a1 1 0 0 1 0 1.414L29 37M13.5 21.5 29 37"},null,-1)]),14,KYe)}var mO=Ve(GYe,[["render",qYe]]);const YYe=Object.assign(mO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+mO.name,mO)}}),XYe=Se({name:"IconFindReplace",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-find-replace`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),ZYe=["stroke-width","stroke-linecap","stroke-linejoin"];function JYe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M42.353 40.854 36.01 34.51m0 0a9 9 0 0 1-15.364-6.364c0-5 4-9 9-9s9 4 9 9a8.972 8.972 0 0 1-2.636 6.364Zm5.636-26.365h-36m10 16h-10m10 16h-10"},null,-1)]),14,ZYe)}var gO=Ve(XYe,[["render",JYe]]);const QYe=Object.assign(gO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+gO.name,gO)}}),eXe=Se({name:"IconFontColors",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-font-colors`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),tXe=["stroke-width","stroke-linecap","stroke-linejoin"];function nXe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M9 41h30M16.467 22 11.5 34m20.032-12L24.998 7h-2l-6.532 15h15.065Zm0 0H16.467h15.065Zm0 0L36.5 34l-4.968-12Z"},null,-1)]),14,tXe)}var yO=Ve(eXe,[["render",nXe]]);const xve=Object.assign(yO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+yO.name,yO)}}),rXe=Se({name:"IconFormula",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-formula`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),iXe=["stroke-width","stroke-linecap","stroke-linejoin"];function oXe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M40 8H10a1 1 0 0 0-1 1v.546a1 1 0 0 0 .341.753L24.17 23.273a1 1 0 0 1 .026 1.482l-.195.183L9.343 37.7a1 1 0 0 0-.343.754V39a1 1 0 0 0 1 1h30"},null,-1)]),14,iXe)}var bO=Ve(rXe,[["render",oXe]]);const sXe=Object.assign(bO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+bO.name,bO)}}),aXe=Se({name:"IconH1",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-h1`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),lXe=["stroke-width","stroke-linecap","stroke-linejoin"];function uXe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M6 6v18m0 0v18m0-18h20m0 0V6m0 18v18M40 42V21h-1l-6 3"},null,-1)]),14,lXe)}var _O=Ve(aXe,[["render",uXe]]);const cXe=Object.assign(_O,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+_O.name,_O)}}),dXe=Se({name:"IconH2",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-h2`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),fXe=["stroke-width","stroke-linecap","stroke-linejoin"];function hXe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M6 6v18m0 0v18m0-18h20m0 0V6m0 18v18M44 40H32v-.5l7.5-9c.914-1.117 2.5-3 2.5-5 0-2.485-2.239-4.5-5-4.5s-5 2.515-5 5"},null,-1)]),14,fXe)}var SO=Ve(dXe,[["render",hXe]]);const pXe=Object.assign(SO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+SO.name,SO)}}),vXe=Se({name:"IconH3",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-h3`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),mXe=["stroke-width","stroke-linecap","stroke-linejoin"];function gXe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M6 6v18m0 0v18m0-18h20m0 0V6m0 18v18M37.001 30h-2m2 0a5 5 0 0 0 0-10h-.556a4.444 4.444 0 0 0-4.444 4.444m5 5.556a5 5 0 0 1 0 10h-.556a4.444 4.444 0 0 1-4.444-4.444"},null,-1)]),14,mXe)}var kO=Ve(vXe,[["render",gXe]]);const yXe=Object.assign(kO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+kO.name,kO)}}),bXe=Se({name:"IconH4",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-h4`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),_Xe=["stroke-width","stroke-linecap","stroke-linejoin"];function SXe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M6 6v18m0 0v18m0-18h20m0 0V6m0 18v18m14.5-6H31v-1l8-15h1.5v16Zm0 0H44m-3.5 0v6"},null,-1)]),14,_Xe)}var xO=Ve(bXe,[["render",SXe]]);const kXe=Object.assign(xO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+xO.name,xO)}}),xXe=Se({name:"IconH5",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-h5`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),CXe=["stroke-width","stroke-linecap","stroke-linejoin"];function wXe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M6 6v18m0 0v18m0-18h20m0 0V6m0 18v18M43 21H32.5v9h.5s1.5-1 4-1a5 5 0 0 1 5 5v1a5 5 0 0 1-5 5c-2.05 0-4.728-1.234-5.5-3"},null,-1)]),14,CXe)}var CO=Ve(xXe,[["render",wXe]]);const EXe=Object.assign(CO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+CO.name,CO)}}),TXe=Se({name:"IconH6",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-h6`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),AXe=["stroke-width","stroke-linecap","stroke-linejoin"];function IXe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M6 6v18m0 0v18m0-18h20m0 0V6m0 18v18M32 34.5c0 3.038 2.239 5.5 5 5.5s5-2.462 5-5.5-2.239-5.5-5-5.5-5 2.462-5 5.5Zm0 0v-5.73c0-4.444 3.867-7.677 8-7.263.437.044.736.08.952.115"},null,-1)]),14,AXe)}var wO=Ve(TXe,[["render",IXe]]);const LXe=Object.assign(wO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+wO.name,wO)}}),DXe=Se({name:"IconH7",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-h7`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),PXe=["stroke-width","stroke-linecap","stroke-linejoin"];function RXe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M6 6v18m0 0v18m0-18h20m0 0V6m0 18v18m4-21h12v1l-4.4 16-1.1 3.5"},null,-1)]),14,PXe)}var EO=Ve(DXe,[["render",RXe]]);const MXe=Object.assign(EO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+EO.name,EO)}}),OXe=Se({name:"IconHighlight",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-highlight`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),$Xe=["stroke-width","stroke-linecap","stroke-linejoin"];function BXe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M19 18V9.28a1 1 0 0 1 .758-.97l8-2A1 1 0 0 1 29 7.28V18m-10 0h-4a1 1 0 0 0-1 1v8h-4a1 1 0 0 0-1 1v15m10-25h10m0 0h4a1 1 0 0 1 1 1v8h4a1 1 0 0 1 1 1v15"},null,-1)]),14,$Xe)}var TO=Ve(OXe,[["render",BXe]]);const NXe=Object.assign(TO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+TO.name,TO)}}),FXe=Se({name:"IconItalic",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-italic`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),jXe=["stroke-width","stroke-linecap","stroke-linejoin"];function VXe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M18 8h9m8 0h-8m0 0-6 32m0 0h-8m8 0h9"},null,-1)]),14,jXe)}var AO=Ve(FXe,[["render",VXe]]);const zXe=Object.assign(AO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+AO.name,AO)}}),UXe=Se({name:"IconLineHeight",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-line-height`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),HXe=["stroke-width","stroke-linecap","stroke-linejoin"];function WXe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M4 8h14.5M33 8H18.5m0 0v34"},null,-1),I("path",{d:"M39 9.5 37 13h4l-2-3.5ZM39 38.5 37 35h4l-2 3.5Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{d:"M39 13h2l-2-3.5-2 3.5h2Zm0 0v22m0 0h2l-2 3.5-2-3.5h2Z"},null,-1)]),14,HXe)}var IO=Ve(UXe,[["render",WXe]]);const GXe=Object.assign(IO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+IO.name,IO)}}),KXe=Se({name:"IconOrderedList",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-ordered-list`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),qXe=["stroke-width","stroke-linecap","stroke-linejoin"];function YXe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M13 24h30M13 37h30M13 11h30"},null,-1),I("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.578 13.06v1.695h5.041V13.06H9.164V7.555H7.748L5.255 8.968l.763 1.513 1.114-.636v3.215H5.578ZM5.37 26.205v1.49h5.07V26H7.964l.94-.94c.454-.44.783-.86.982-1.258.199-.404.298-.826.298-1.266 0-.686-.224-1.225-.683-1.6-.45-.372-1.093-.55-1.912-.55-.473 0-.933.072-1.38.214a3.63 3.63 0 0 0-1.133.582l-.066.053.652 1.533.113-.085c.263-.199.524-.345.783-.44.266-.094.524-.141.774-.141.309 0 .52.06.652.165.128.1.198.252.198.477 0 .177-.05.356-.154.54l-.001.002c-.099.186-.274.416-.528.69L5.37 26.205ZM10.381 38.344c0-.443-.118-.826-.358-1.145a1.702 1.702 0 0 0-.713-.56 1.652 1.652 0 0 0 .586-.52 1.73 1.73 0 0 0 .307-1.022c0-.404-.108-.763-.327-1.074a2.076 2.076 0 0 0-.918-.71c-.386-.166-.833-.247-1.34-.247-.48 0-.952.071-1.417.213-.459.134-.836.318-1.127.554l-.065.053.652 1.486.11-.076c.275-.193.563-.34.863-.442h.002c.3-.109.581-.162.844-.162.266 0 .454.065.579.18l.004.002c.128.107.198.262.198.48 0 .201-.07.33-.197.412-.138.089-.376.141-.733.141h-1.01v1.626h1.188c.371 0 .614.056.75.15.127.085.2.23.2.463 0 .254-.078.412-.21.503l-.002.002c-.136.097-.386.157-.777.157-.595 0-1.194-.199-1.8-.605l-.11-.073-.65 1.483.064.053c.285.236.662.424 1.127.565h.002c.465.136.95.203 1.456.203.852 0 1.538-.178 2.045-.546.517-.377.777-.896.777-1.544Z",fill:"currentColor",stroke:"none"},null,-1)]),14,qXe)}var LO=Ve(KXe,[["render",YXe]]);const XXe=Object.assign(LO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+LO.name,LO)}}),ZXe=Se({name:"IconPaste",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-paste`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),JXe=["stroke-width","stroke-linecap","stroke-linejoin"];function QXe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("rect",{x:"8",y:"14",width:"24",height:"28",rx:"1"},null,-1),I("path",{d:"M24 6h.01v.01H24V6ZM32 6h.01v.01H32V6ZM40 6h.01v.01H40V6ZM40 13h.01v.01H40V13ZM40 21h.01v.01H40V21Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{d:"M24 6h.01v.01H24V6ZM32 6h.01v.01H32V6ZM40 6h.01v.01H40V6ZM40 13h.01v.01H40V13ZM40 21h.01v.01H40V21Z"},null,-1)]),14,JXe)}var DO=Ve(ZXe,[["render",QXe]]);const eZe=Object.assign(DO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+DO.name,DO)}}),tZe=Se({name:"IconQuote",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-quote`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),nZe=["stroke-width","stroke-linecap","stroke-linejoin"];function rZe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M18.08 33.093a6 6 0 0 1-12 0c-.212-3.593 2.686-6 6-6a6 6 0 0 1 6 6ZM39.08 33.093a6 6 0 0 1-12 0c-.212-3.593 2.686-6 6-6a6 6 0 0 1 6 6Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{d:"M6.08 33.093a6 6 0 1 0 6-6c-3.314 0-6.212 2.407-6 6Zm0 0c-.5-8.5 1-25.5 15-24m6 24a6 6 0 1 0 6-6c-3.314 0-6.212 2.407-6 6Zm0 0c-.5-8.5 1-25.5 15-24"},null,-1)]),14,nZe)}var PO=Ve(tZe,[["render",rZe]]);const iZe=Object.assign(PO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+PO.name,PO)}}),oZe=Se({name:"IconRedo",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-redo`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),sZe=["stroke-width","stroke-linecap","stroke-linejoin"];function aZe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m32.678 23.78 7.778-7.778-7.778-7.778M39.19 16H18.5C12.149 16 7 21.15 7 27.5 7 33.852 12.149 39 18.5 39H31"},null,-1)]),14,sZe)}var RO=Ve(oZe,[["render",aZe]]);const lZe=Object.assign(RO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+RO.name,RO)}}),uZe=Se({name:"IconScissor",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-scissor`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),cZe=["stroke-width","stroke-linecap","stroke-linejoin"];function dZe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m40.293 7.707-23.05 23.05m0 0a6 6 0 1 0-8.485 8.485 6 6 0 0 0 8.485-8.485Zm13.514 0a6 6 0 1 0 8.485 8.485 6 6 0 0 0-8.485-8.485Zm0 0L7.707 7.707"},null,-1)]),14,cZe)}var MO=Ve(uZe,[["render",dZe]]);const fZe=Object.assign(MO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+MO.name,MO)}}),hZe=Se({name:"IconSortAscending",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-sort-ascending`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),pZe=["stroke-width","stroke-linecap","stroke-linejoin"];function vZe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M15 6v33.759a.1.1 0 0 1-.17.07L8 33m17-6h10.4v.65L27 39.35V40h11m-1-19L31.4 8h-.8L25 21"},null,-1)]),14,pZe)}var OO=Ve(hZe,[["render",vZe]]);const Cve=Object.assign(OO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+OO.name,OO)}}),mZe=Se({name:"IconSortDescending",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-sort-descending`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),gZe=["stroke-width","stroke-linecap","stroke-linejoin"];function yZe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M25 27h10.4v.65L27 39.35V40h11m-21.999 2V7.24a.1.1 0 0 0-.17-.07L9 14m28 7L31.4 8h-.8L25 21"},null,-1)]),14,gZe)}var $O=Ve(mZe,[["render",yZe]]);const wve=Object.assign($O,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+$O.name,$O)}}),bZe=Se({name:"IconSort",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-sort`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),_Ze=["stroke-width","stroke-linecap","stroke-linejoin"];function SZe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M43 9H5m0 30h14m15.5-15H5"},null,-1)]),14,_Ze)}var BO=Ve(bZe,[["render",SZe]]);const kZe=Object.assign(BO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+BO.name,BO)}}),xZe=Se({name:"IconStrikethrough",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-strikethrough`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),CZe=["stroke-width","stroke-linecap","stroke-linejoin"];function wZe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M13 32c0 5.246 5.149 9 11.5 9S36 36.746 36 31.5c0-1.708-.5-4.5-3.5-5.695m0 0H43m-10.5 0H5M34 14.5C34 10.358 29.523 7 24 7s-10 3.358-10 7.5c0 1.794 1.6 4.21 3 5.5"},null,-1)]),14,CZe)}var NO=Ve(xZe,[["render",wZe]]);const EZe=Object.assign(NO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+NO.name,NO)}}),TZe=Se({name:"IconUnderline",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-underline`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),AZe=["stroke-width","stroke-linecap","stroke-linejoin"];function IZe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M13 5v17.5C13 27 15.5 33 24 33s11-5 11-10.5V5M9 41h30"},null,-1)]),14,AZe)}var FO=Ve(TZe,[["render",IZe]]);const LZe=Object.assign(FO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+FO.name,FO)}}),DZe=Se({name:"IconUndo",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-undo`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),PZe=["stroke-width","stroke-linecap","stroke-linejoin"];function RZe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m15.322 23.78-7.778-7.778 7.778-7.778M8.81 16H29.5C35.851 16 41 21.15 41 27.5 41 33.852 35.851 39 29.5 39H17"},null,-1)]),14,PZe)}var jO=Ve(DZe,[["render",RZe]]);const MZe=Object.assign(jO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+jO.name,jO)}}),OZe=Se({name:"IconUnorderedList",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-unordered-list`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),$Ze=["stroke-width","stroke-linecap","stroke-linejoin"];function BZe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M13 24h30M5 11h4m4 26h30M13 11h30M5 24h4M5 37h4"},null,-1)]),14,$Ze)}var VO=Ve(OZe,[["render",BZe]]);const NZe=Object.assign(VO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+VO.name,VO)}}),FZe=Se({name:"IconMuteFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-mute-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),jZe=["stroke-width","stroke-linecap","stroke-linejoin"];function VZe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M5.931 13.001A2 2 0 0 0 4 15v18a2 2 0 0 0 2 2h7.37l9.483 6.639A2 2 0 0 0 26 40v-6.93L5.931 13.001ZM35.27 28.199l-3.311-3.313a7.985 7.985 0 0 0-1.96-6.107.525.525 0 0 1 .011-.718l2.122-2.122a.485.485 0 0 1 .7.008c3.125 3.393 3.938 8.15 2.439 12.252ZM41.13 34.059l-2.936-2.937c3.07-5.89 2.226-13.288-2.531-18.348a.513.513 0 0 1 .004-.713l2.122-2.122a.492.492 0 0 1 .703.006c6.322 6.64 7.202 16.56 2.639 24.114ZM26 18.928l-8.688-8.688 5.541-3.878A2 2 0 0 1 26 8v10.928Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"m7.012 4.184 35.272 35.272-2.828 2.828L4.184 7.012l2.828-2.828Z",fill:"currentColor",stroke:"none"},null,-1)]),14,jZe)}var zO=Ve(FZe,[["render",VZe]]);const zZe=Object.assign(zO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+zO.name,zO)}}),UZe=Se({name:"IconPauseCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-pause-circle-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),HZe=["stroke-width","stroke-linecap","stroke-linejoin"];function WZe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm-6-27a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1V18a1 1 0 0 0-1-1h-3Zm9 0a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1V18a1 1 0 0 0-1-1h-3Z",fill:"currentColor",stroke:"none"},null,-1)]),14,HZe)}var UO=Ve(UZe,[["render",WZe]]);const GZe=Object.assign(UO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+UO.name,UO)}}),KZe=Se({name:"IconPlayCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-play-circle-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),qZe=["stroke-width","stroke-linecap","stroke-linejoin"];function YZe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M44 24c0 11.046-8.954 20-20 20S4 35.046 4 24 12.954 4 24 4s20 8.954 20 20Zm-23.662-7.783C19.302 15.605 18 16.36 18 17.575v12.85c0 1.214 1.302 1.97 2.338 1.358l10.89-6.425c1.03-.607 1.03-2.11 0-2.716l-10.89-6.425Z",fill:"currentColor",stroke:"none"},null,-1)]),14,qZe)}var HO=Ve(KZe,[["render",YZe]]);const XZe=Object.assign(HO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+HO.name,HO)}}),ZZe=Se({name:"IconSkipNextFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-skip-next-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),JZe=["stroke-width","stroke-linecap","stroke-linejoin"];function QZe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M13.585 12.145a1 1 0 0 0-1.585.81v22.09a1 1 0 0 0 1.585.81L28.878 24.81a1 1 0 0 0 0-1.622L13.585 12.145Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M33 36a1 1 0 0 1-1-1V13a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v22a1 1 0 0 1-1 1h-2Z",fill:"currentColor",stroke:"none"},null,-1)]),14,JZe)}var WO=Ve(ZZe,[["render",QZe]]);const eJe=Object.assign(WO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+WO.name,WO)}}),tJe=Se({name:"IconSkipPreviousFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-skip-previous-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),nJe=["stroke-width","stroke-linecap","stroke-linejoin"];function rJe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M34.414 35.855a1 1 0 0 0 1.586-.81v-22.09a1 1 0 0 0-1.586-.81L19.122 23.19a1 1 0 0 0 0 1.622l15.292 11.044Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15 12a1 1 0 0 1 1 1v22a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1V13a1 1 0 0 1 1-1h2Z",fill:"currentColor",stroke:"none"},null,-1)]),14,nJe)}var GO=Ve(tJe,[["render",rJe]]);const iJe=Object.assign(GO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+GO.name,GO)}}),oJe=Se({name:"IconSoundFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-sound-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),sJe=["stroke-width","stroke-linecap","stroke-linejoin"];function aJe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m14 15 10-7v32l-10-7H6V15h8Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{d:"M24.924 6.226A2 2 0 0 1 26 8v32a2 2 0 0 1-3.147 1.639L13.37 35H6a2 2 0 0 1-2-2V15a2 2 0 0 1 2-2h7.37l9.483-6.638a2 2 0 0 1 2.07-.136ZM35.314 35.042c6.248-6.249 6.248-16.38 0-22.628l2.828-2.828c7.81 7.81 7.81 20.474 0 28.284l-2.828-2.828Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{d:"M29.657 29.728a8 8 0 0 0 0-11.314l2.828-2.828c4.687 4.686 4.687 12.284 0 16.97l-2.828-2.828Z",fill:"currentColor",stroke:"none"},null,-1)]),14,sJe)}var KO=Ve(oJe,[["render",aJe]]);const lJe=Object.assign(KO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+KO.name,KO)}}),uJe=Se({name:"IconBackward",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-backward`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),cJe=["stroke-width","stroke-linecap","stroke-linejoin"];function dJe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M38.293 36.293 26.707 24.707a1 1 0 0 1 0-1.414l11.586-11.586c.63-.63 1.707-.184 1.707.707v23.172c0 .89-1.077 1.337-1.707.707ZM21 12.414v23.172c0 .89-1.077 1.337-1.707.707L7.707 24.707a1 1 0 0 1 0-1.414l11.586-11.586c.63-.63 1.707-.184 1.707.707Z"},null,-1)]),14,cJe)}var qO=Ve(uJe,[["render",dJe]]);const fJe=Object.assign(qO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+qO.name,qO)}}),hJe=Se({name:"IconForward",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-forward`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),pJe=["stroke-width","stroke-linecap","stroke-linejoin"];function vJe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m9.707 11.707 11.586 11.586a1 1 0 0 1 0 1.414L9.707 36.293c-.63.63-1.707.184-1.707-.707V12.414c0-.89 1.077-1.337 1.707-.707ZM27 35.586V12.414c0-.89 1.077-1.337 1.707-.707l11.586 11.586a1 1 0 0 1 0 1.414L28.707 36.293c-.63.63-1.707.184-1.707-.707Z"},null,-1)]),14,pJe)}var YO=Ve(hJe,[["render",vJe]]);const mJe=Object.assign(YO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+YO.name,YO)}}),gJe=Se({name:"IconFullscreenExit",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-fullscreen-exit`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),yJe=["stroke-width","stroke-linecap","stroke-linejoin"];function bJe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M35 6v8a1 1 0 0 0 1 1h8M13 6v8a1 1 0 0 1-1 1H4m31 27v-8a1 1 0 0 1 1-1h8m-31 9v-8a1 1 0 0 0-1-1H4"},null,-1)]),14,yJe)}var XO=Ve(gJe,[["render",bJe]]);const ZH=Object.assign(XO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+XO.name,XO)}}),_Je=Se({name:"IconLiveBroadcast",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-live-broadcast`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),SJe=["stroke-width","stroke-linecap","stroke-linejoin"];function kJe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M29 16h12a1 1 0 0 1 1 1v22a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V17a1 1 0 0 1 1-1h12m10 0 8-9m-8 9H19m0 0-8-9m17.281 21.88-6.195 4.475a1 1 0 0 1-1.586-.81v-8.262a1 1 0 0 1 1.521-.853l6.196 3.786a1 1 0 0 1 .064 1.664Z"},null,-1)]),14,SJe)}var ZO=Ve(_Je,[["render",kJe]]);const s_=Object.assign(ZO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+ZO.name,ZO)}}),xJe=Se({name:"IconMusic",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-music`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),CJe=["stroke-width","stroke-linecap","stroke-linejoin"];function wJe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M15 37a4 4 0 1 0-8 0 4 4 0 0 0 8 0Zm0 0V18.5M41 37a4 4 0 1 0-8 0 4 4 0 0 0 8 0Zm0 0V16.5m-26 2V9.926a1 1 0 0 1 .923-.997l24-1.846A1 1 0 0 1 41 8.08v8.42m-26 2 26-2"},null,-1)]),14,CJe)}var JO=Ve(xJe,[["render",wJe]]);const EJe=Object.assign(JO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+JO.name,JO)}}),TJe=Se({name:"IconMute",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-mute`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),AJe=["stroke-width","stroke-linecap","stroke-linejoin"];function IJe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m19 11.5 4.833-4.35a.1.1 0 0 1 .167.075V17m-14-1H7.1a.1.1 0 0 0-.1.1v15.8a.1.1 0 0 0 .1.1H14l9.833 8.85a.1.1 0 0 0 .167-.075V31m6.071-14.071C32.535 19.393 34 23 32.799 26m2.929-14.728C41.508 17.052 42.5 25 39.123 32M6.5 6.5l35 35"},null,-1)]),14,AJe)}var QO=Ve(TJe,[["render",IJe]]);const LJe=Object.assign(QO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+QO.name,QO)}}),DJe=Se({name:"IconPauseCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-pause-circle`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),PJe=["stroke-width","stroke-linecap","stroke-linejoin"];function RJe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z"},null,-1),I("path",{d:"M19 19v10h1V19h-1ZM28 19v10h1V19h-1Z"},null,-1)]),14,PJe)}var e$=Ve(DJe,[["render",RJe]]);const MJe=Object.assign(e$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+e$.name,e$)}}),OJe=Se({name:"IconPlayArrow",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-play-arrow`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),$Je=["stroke-width","stroke-linecap","stroke-linejoin"];function BJe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M12.533 7.965A1 1 0 0 0 11 8.81v30.377a1 1 0 0 0 1.533.846L36.656 24.84a1 1 0 0 0 0-1.692L12.533 7.965Z"},null,-1)]),14,$Je)}var t$=Ve(OJe,[["render",BJe]]);const qa=Object.assign(t$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+t$.name,t$)}}),NJe=Se({name:"IconPlayCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-play-circle`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),FJe=["stroke-width","stroke-linecap","stroke-linejoin"];function jJe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24 42c9.941 0 18-8.059 18-18S33.941 6 24 6 6 14.059 6 24s8.059 18 18 18Z"},null,-1),I("path",{d:"M19 17v14l12-7-12-7Z"},null,-1)]),14,FJe)}var n$=Ve(NJe,[["render",jJe]]);const Oy=Object.assign(n$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+n$.name,n$)}}),VJe=Se({name:"IconRecordStop",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-record-stop`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),zJe=["stroke-width","stroke-linecap","stroke-linejoin"];function UJe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{"clip-rule":"evenodd",d:"M24 6c9.941 0 18 8.059 18 18s-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6Z"},null,-1),I("path",{d:"M19 20a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1h-8a1 1 0 0 1-1-1v-8Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{d:"M19 20a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1h-8a1 1 0 0 1-1-1v-8Z"},null,-1)]),14,zJe)}var r$=Ve(VJe,[["render",UJe]]);const HJe=Object.assign(r$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+r$.name,r$)}}),WJe=Se({name:"IconRecord",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-record`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),GJe=["stroke-width","stroke-linecap","stroke-linejoin"];function KJe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{"clip-rule":"evenodd",d:"M24 6c9.941 0 18 8.059 18 18s-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6Z"},null,-1),I("path",{d:"M30 24a6 6 0 1 1-12 0 6 6 0 0 1 12 0Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{d:"M30 24a6 6 0 1 1-12 0 6 6 0 0 1 12 0Z"},null,-1)]),14,GJe)}var i$=Ve(WJe,[["render",KJe]]);const qJe=Object.assign(i$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+i$.name,i$)}}),YJe=Se({name:"IconSkipNext",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-skip-next`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),XJe=["stroke-width","stroke-linecap","stroke-linejoin"];function ZJe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M34 24 10 40V8l24 16Z"},null,-1),I("path",{d:"M38 6v36"},null,-1)]),14,XJe)}var o$=Ve(YJe,[["render",ZJe]]);const JJe=Object.assign(o$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+o$.name,o$)}}),QJe=Se({name:"IconSkipPrevious",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-skip-previous`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),eQe=["stroke-width","stroke-linecap","stroke-linejoin"];function tQe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m14 24 24 16V8L14 24Z"},null,-1),I("path",{d:"M10 6v36"},null,-1)]),14,eQe)}var s$=Ve(QJe,[["render",tQe]]);const nQe=Object.assign(s$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+s$.name,s$)}}),rQe=Se({name:"IconSound",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-sound`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),iQe=["stroke-width","stroke-linecap","stroke-linejoin"];function oQe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m14 16 10-9v34l-10-9H6V16h8Z"},null,-1),I("path",{d:"M31.071 16.929c3.905 3.905 3.905 10.237 0 14.142M36.727 11.272c7.03 7.03 7.03 18.426 0 25.456"},null,-1)]),14,iQe)}var a$=Ve(rQe,[["render",oQe]]);const Eve=Object.assign(a$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+a$.name,a$)}}),sQe=Se({name:"IconBytedanceColor",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-bytedance-color`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),aQe=["stroke-width","stroke-linecap","stroke-linejoin"];function lQe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M280.416 794.112 128 829.952v-636.32l152.416 35.84z",fill:"#325AB4"},null,-1),I("path",{d:"M928 828.48 800 864V160l128 35.52z",fill:"#78E6DC"},null,-1),I("path",{d:"M480 798.304 352 832V480l128 33.696z",fill:"#3C8CFF"},null,-1),I("path",{d:"M576 449.696 704 416v352l-128-33.696z",fill:"#00C8D2"},null,-1)]),14,aQe)}var l$=Ve(sQe,[["render",lQe]]);const uQe=Object.assign(l$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+l$.name,l$)}}),cQe=Se({name:"IconLarkColor",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-lark-color`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),dQe=["stroke-width","stroke-linecap","stroke-linejoin"];function fQe(e,t,n,r,o,a){return z(),Q("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{fill:"#00d6b9",d:"m273.46 264.31 1.01-1.01c.65-.65 1.36-1.36 2.06-2.01l1.41-1.36 4.17-4.12 5.73-5.58 4.88-4.83 4.57-4.52 4.78-4.73 4.37-4.32 6.13-6.03c1.16-1.16 2.36-2.26 3.57-3.37 2.21-2.01 4.52-3.97 6.84-5.88 2.16-1.71 4.37-3.37 6.64-4.98 3.17-2.26 6.43-4.32 9.75-6.33 3.27-1.91 6.64-3.72 10.05-5.43 3.22-1.56 6.54-3.02 9.9-4.32 1.86-.75 3.77-1.41 5.68-2.06.96-.3 1.91-.65 2.92-.96a241.19 241.19 0 0 0-45.6-91.5c-4.17-5.18-10.51-8.19-17.14-8.19H128.97c-1.81 0-3.32 1.46-3.32 3.32 0 1.06.5 2.01 1.36 2.66 60.13 44.09 110 100.75 146.04 166l.4-.45Z"},null,-1),I("path",{fill:"#133c9a",d:"M203.43 419.4c90.99 0 170.27-50.22 211.6-124.43 1.46-2.61 2.87-5.23 4.22-7.89a96.374 96.374 0 0 1-6.94 11.41c-.9 1.26-1.81 2.51-2.77 3.77-1.21 1.56-2.41 3.02-3.67 4.47a98.086 98.086 0 0 1-3.07 3.37 85.486 85.486 0 0 1-6.64 6.28c-1.31 1.11-2.56 2.16-3.92 3.17a76.24 76.24 0 0 1-4.78 3.42c-1.01.7-2.06 1.36-3.12 2.01-1.06.65-2.16 1.31-3.32 1.96a91.35 91.35 0 0 1-6.99 3.52c-2.06.9-4.17 1.76-6.28 2.56a82.5 82.5 0 0 1-7.04 2.26 86.613 86.613 0 0 1-10.81 2.31c-2.61.4-5.33.7-7.99.9-2.82.2-5.68.25-8.55.25-3.17-.05-6.33-.25-9.55-.6-2.36-.25-4.73-.6-7.09-1.01-2.06-.35-4.12-.8-6.18-1.31-1.11-.25-2.16-.55-3.27-.85-3.02-.8-6.03-1.66-9.05-2.51-1.51-.45-3.02-.85-4.47-1.31-2.26-.65-4.47-1.36-6.69-2.06-1.81-.55-3.62-1.16-5.43-1.76-1.71-.55-3.47-1.11-5.18-1.71l-3.52-1.21c-1.41-.5-2.87-1.01-4.27-1.51l-3.02-1.11c-2.01-.7-4.02-1.46-5.98-2.21-1.16-.45-2.31-.85-3.47-1.31-1.56-.6-3.07-1.21-4.63-1.81-1.61-.65-3.27-1.31-4.88-1.96l-3.17-1.31-3.92-1.61-3.02-1.26-3.12-1.36-2.71-1.21-2.46-1.11-2.51-1.16-2.56-1.21-3.27-1.51-3.42-1.61c-1.21-.6-2.41-1.16-3.62-1.76l-3.07-1.51A508.746 508.746 0 0 1 65.6 190.35c-1.26-1.31-3.32-1.41-4.68-.15-.65.6-1.06 1.51-1.06 2.41l.1 155.49v12.62c0 7.34 3.62 14.18 9.7 18.25 39.56 26.44 86.12 40.47 133.73 40.37"},null,-1),I("path",{fill:"#3370ff",d:"M470.83 200.21c-30.72-15.03-65.86-18.25-98.79-9-1.41.4-2.77.8-4.12 1.21-.96.3-1.91.6-2.92.96-1.91.65-3.82 1.36-5.68 2.06-3.37 1.31-6.64 2.77-9.9 4.32-3.42 1.66-6.79 3.47-10.05 5.38-3.37 1.96-6.59 4.07-9.75 6.33-2.26 1.61-4.47 3.27-6.64 4.98-2.36 1.91-4.63 3.82-6.84 5.88-1.21 1.11-2.36 2.21-3.57 3.37l-6.13 6.03-4.37 4.32-4.78 4.73-4.57 4.52-4.88 4.83-5.68 5.63-4.17 4.12-1.41 1.36c-.65.65-1.36 1.36-2.06 2.01l-1.01 1.01-1.56 1.46-1.76 1.61c-15.13 13.93-32.02 25.84-50.17 35.54l3.27 1.51 2.56 1.21 2.51 1.16 2.46 1.11 2.71 1.21 3.12 1.36 3.02 1.26 3.92 1.61 3.17 1.31c1.61.65 3.27 1.31 4.88 1.96 1.51.6 3.07 1.21 4.63 1.81 1.16.45 2.31.85 3.47 1.31 2.01.75 4.02 1.46 5.98 2.21l3.02 1.11c1.41.5 2.82 1.01 4.27 1.51l3.52 1.21c1.71.55 3.42 1.16 5.18 1.71 1.81.6 3.62 1.16 5.43 1.76 2.21.7 4.47 1.36 6.69 2.06 1.51.45 3.02.9 4.47 1.31 3.02.85 6.03 1.71 9.05 2.51 1.11.3 2.16.55 3.27.85 2.06.5 4.12.9 6.18 1.31 2.36.4 4.73.75 7.09 1.01 3.22.35 6.38.55 9.55.6 2.87.05 5.73-.05 8.55-.25 2.71-.2 5.38-.5 7.99-.9 3.62-.55 7.24-1.36 10.81-2.31 2.36-.65 4.73-1.41 7.04-2.26a75.16 75.16 0 0 0 6.28-2.56 91.35 91.35 0 0 0 6.99-3.52c1.11-.6 2.21-1.26 3.32-1.96 1.11-.65 2.11-1.36 3.12-2.01 1.61-1.11 3.22-2.21 4.78-3.42 1.36-1.01 2.66-2.06 3.92-3.17 2.26-1.96 4.47-4.07 6.59-6.28 1.06-1.11 2.06-2.21 3.07-3.37 1.26-1.46 2.51-2.97 3.67-4.47a73.33 73.33 0 0 0 2.77-3.77c2.51-3.62 4.83-7.39 6.89-11.31l2.36-4.68 21.01-41.88.25-.5c6.94-14.98 16.39-28.45 28-39.97Z"},null,-1)]),14,dQe)}var u$=Ve(cQe,[["render",fQe]]);const hQe=Object.assign(u$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+u$.name,u$)}}),pQe=Se({name:"IconTiktokColor",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-tiktok-color`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),vQe=["stroke-width","stroke-linecap","stroke-linejoin"];function mQe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[xh('',5)]),14,vQe)}var c$=Ve(pQe,[["render",mQe]]);const gQe=Object.assign(c$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+c$.name,c$)}}),yQe=Se({name:"IconXiguaColor",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-xigua-color`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),bQe=["stroke-width","stroke-linecap","stroke-linejoin"];function _Qe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M381.968 38.684c-202.85 54.614-351.085 232.757-371.89 446.01C-.326 590.018 28.281 630.328 140.108 668.037c104.026 33.808 176.843 101.425 209.351 189.846 40.31 115.729 44.211 122.23 91.023 144.336 40.31 19.504 58.514 19.504 131.332 7.802 211.951-36.41 362.788-171.642 416.101-374.492C1059.434 368.965 882.59 90.697 605.623 32.183 517.2 13.978 470.39 15.279 381.968 38.684zm176.843 322.48c158.64 74.117 201.55 158.638 119.63 237.957-102.725 97.524-240.56 136.534-291.271 80.62-20.806-23.406-24.707-48.112-24.707-161.24s3.901-137.833 24.707-161.239c32.507-36.409 88.421-35.108 171.641 3.901z",fill:"#FE163E"},null,-1)]),14,bQe)}var d$=Ve(yQe,[["render",_Qe]]);const SQe=Object.assign(d$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+d$.name,d$)}}),kQe=Se({name:"IconFaceBookCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-faceBook-circle-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),xQe=["stroke-width","stroke-linecap","stroke-linejoin"];function CQe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24 1C11.29 1 1 11.29 1 24s10.29 23 23 23 23-10.29 23-23S36.71 1 24 1Zm6.172 22.88H26.18v14.404h-5.931V23.88H17.22v-4.962h3.027V15.89c0-3.993 1.695-6.414 6.414-6.414h3.993v4.962h-2.421c-1.815 0-1.936.727-1.936 1.936v2.421h4.478l-.605 5.084h.001Z",fill:"currentColor",stroke:"none"},null,-1)]),14,xQe)}var f$=Ve(kQe,[["render",CQe]]);const wQe=Object.assign(f$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+f$.name,f$)}}),EQe=Se({name:"IconFacebookSquareFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-facebook-square-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),TQe=["stroke-width","stroke-linecap","stroke-linejoin"];function AQe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M43.125 2.475c.6 0 1.2.225 1.688.713.524.487.75 1.012.75 1.612v38.363c0 .6-.263 1.2-.75 1.612-.526.488-1.088.713-1.688.713H32.138V28.913h5.625l.825-6.563h-6.45v-4.275c0-2.137 1.087-3.225 3.3-3.225h3.374V9.263c-1.2-.225-2.85-.338-5.024-.338-2.513 0-4.5.75-6.038 2.25-1.538 1.5-2.288 3.675-2.288 6.375v4.8h-5.625v6.563h5.625v16.575h-20.7c-.6 0-1.2-.225-1.612-.713-.487-.487-.712-1.012-.712-1.612V4.8c0-.6.224-1.2.712-1.612.488-.488 1.012-.713 1.613-.713h38.362Z",fill:"currentColor",stroke:"none"},null,-1)]),14,TQe)}var h$=Ve(EQe,[["render",AQe]]);const IQe=Object.assign(h$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+h$.name,h$)}}),LQe=Se({name:"IconGoogleCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-google-circle-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),DQe=["stroke-width","stroke-linecap","stroke-linejoin"];function PQe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M32.571 33.526c-2.084 1.92-4.927 3.05-8.322 3.05a12.568 12.568 0 0 1-12.572-12.577A12.58 12.58 0 0 1 24.25 11.416a12.103 12.103 0 0 1 8.414 3.277L29.061 18.3a6.787 6.787 0 0 0-4.807-1.88c-3.277 0-6.045 2.213-7.037 5.186a7.567 7.567 0 0 0-.394 2.392c0 .833.144 1.638.394 2.391.992 2.973 3.763 5.187 7.032 5.187 1.696 0 3.133-.449 4.254-1.202a5.778 5.778 0 0 0 2.513-3.8h-6.767V21.71h11.844c.15.825.227 1.682.227 2.57 0 3.835-1.371 7.055-3.749 9.246ZM24 1A23 23 0 1 0 24 47 23 23 0 0 0 24 1Z",fill:"currentColor",stroke:"none"},null,-1)]),14,DQe)}var p$=Ve(LQe,[["render",PQe]]);const RQe=Object.assign(p$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+p$.name,p$)}}),MQe=Se({name:"IconQqCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-qq-circle-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),OQe=["stroke-width","stroke-linecap","stroke-linejoin"];function $Qe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24.007 1C11.281 1 1 11.281 1 24.007c0 13.23 11.216 23.87 24.733 22.936 11.288-.791 20.49-9.994 21.21-21.354C47.877 12.144 37.237 1 24.007 1Zm11.36 29.262s-.79 2.23-2.3 4.242c0 0 2.66.935 2.444 3.236 0 0 .072 2.66-5.68 2.444 0 0-4.026-.287-5.248-2.013h-1.079c-1.222 1.726-5.248 2.013-5.248 2.013-5.752.216-5.68-2.444-5.68-2.444-.216-2.373 2.444-3.236 2.444-3.236-1.51-2.013-2.3-4.241-2.3-4.241-3.596 5.895-3.236-.791-3.236-.791.647-3.955 3.523-6.543 3.523-6.543-.431-3.595 1.078-4.242 1.078-4.242.216-11.072 9.707-10.929 9.922-10.929.216 0 9.707-.215 9.994 10.929 0 0 1.51.647 1.079 4.242 0 0 2.876 2.588 3.523 6.543 0 0 .36 6.686-3.236.79Z",fill:"currentColor",stroke:"none"},null,-1)]),14,OQe)}var v$=Ve(MQe,[["render",$Qe]]);const BQe=Object.assign(v$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+v$.name,v$)}}),NQe=Se({name:"IconTwitterCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-twitter-circle-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),FQe=["stroke-width","stroke-linecap","stroke-linejoin"];function jQe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24 1C11.296 1 1 11.297 1 24s10.296 23 23 23c12.703 0 23-10.297 23-23S36.703 1 24 1Zm11.698 18.592c-.13 9.818-6.408 16.542-15.78 16.965-3.864.176-6.664-1.072-9.1-2.62 2.855.456 6.397-.686 8.292-2.307-2.8-.273-4.458-1.698-5.233-3.991.808.14 1.66.103 2.43-.06-2.527-.846-4.331-2.407-4.424-5.68.709.323 1.448.626 2.43.686-1.891-1.075-3.29-5.007-1.688-7.607 2.806 3.076 6.182 5.586 11.724 5.926-1.391-5.949 6.492-9.175 9.791-5.177 1.395-.27 2.53-.799 3.622-1.374-.45 1.381-1.315 2.347-2.37 3.119 1.158-.157 2.184-.44 3.06-.872-.544 1.128-1.732 2.14-2.754 2.992Z",fill:"currentColor",stroke:"none"},null,-1)]),14,FQe)}var m$=Ve(NQe,[["render",jQe]]);const VQe=Object.assign(m$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+m$.name,m$)}}),zQe=Se({name:"IconWeiboCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-weibo-circle-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),UQe=["stroke-width","stroke-linecap","stroke-linejoin"];function HQe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24 47a23 23 0 1 1 23-23 22.988 22.988 0 0 1-23 23Zm1.276-26.994c-.544.063-2.259 1.171-1.297-1.108C25 15 20.235 15.293 17.874 16.16A23.776 23.776 0 0 0 7.649 27.283c-2.007 6.419 5.018 10.329 10.246 11.123 5.227.795 13.068-.502 16.622-4.85 2.635-3.179 3.137-7.507-1.84-8.761-1.651-.398-.69-1.088-.271-2.259a2.775 2.775 0 0 0-2.175-3.24 2.092 2.092 0 0 0-.335-.042 12.468 12.468 0 0 0-4.62.752Zm7.004-3.889a2.326 2.326 0 0 0-1.903.544c-.377.339-.418 1.338.962 1.652.458.021.913.084 1.36.188a1.836 1.836 0 0 1 1.233 2.07c-.21 1.924.878 2.237 1.652 1.714a1.647 1.647 0 0 0 .627-1.338 4.117 4.117 0 0 0-3.325-4.767c-.042-.008-.61-.063-.606-.063Zm7.423.084a8.408 8.408 0 0 0-6.838-4.6c-1.129-.126-3.512-.397-3.784 1.15a1.17 1.17 0 0 0 .857 1.4c.042 0 .084.022.126.022.523.02 1.048 0 1.568-.063a6.481 6.481 0 0 1 6.524 6.44c0 .3-.02.601-.063.9-.063.355-.105.71-.147 1.066A1.277 1.277 0 0 0 38.93 24a1.255 1.255 0 0 0 1.338-.648c.71-2.373.501-4.926-.585-7.151h.02ZM21.616 36.44c-5.457.69-10.245-1.673-10.684-5.27-.44-3.595 3.575-7.066 9.033-7.756 5.457-.69 10.245 1.672 10.705 5.269.46 3.596-3.617 7.088-9.075 7.757h.021Zm-1.484-10.266a5.181 5.181 0 0 0-5.353 4.913 4.662 4.662 0 0 0 4.935 4.391c.14-.004.28-.017.418-.042a5.503 5.503 0 0 0 5.185-5.143 4.472 4.472 0 0 0-4.746-4.182l-.44.063Zm1.003 4.244a.669.669 0 0 1-.773-.544v-.083a.76.76 0 0 1 .774-.711.642.642 0 0 1 .731.544.076.076 0 0 1 .021.062.807.807 0 0 1-.753.732Zm-2.78 2.781a1.65 1.65 0 0 1-1.861-1.422.266.266 0 0 1-.021-.125 1.844 1.844 0 0 1 1.882-1.736 1.562 1.562 0 0 1 1.819 1.297.46.46 0 0 1 .02.167 1.96 1.96 0 0 1-1.84 1.819Z",fill:"currentColor",stroke:"none"},null,-1)]),14,UQe)}var g$=Ve(zQe,[["render",HQe]]);const WQe=Object.assign(g$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+g$.name,g$)}}),GQe=Se({name:"IconAlipayCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-alipay-circle`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),KQe=["stroke-width","stroke-linecap","stroke-linejoin"];function qQe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M10.8 27.025c-.566.456-1.174 1.122-1.35 1.968-.24 1.156-.05 2.604 1.065 3.739 1.352 1.376 3.405 1.753 4.292 1.818 2.41.174 4.978-1.02 6.913-2.384.759-.535 2.058-1.61 3.3-3.268-2.783-1.437-6.257-3.026-9.97-2.87-1.898.079-3.256.472-4.25.997Zm35.29 6.354A23.872 23.872 0 0 0 48 24C48 10.767 37.234 0 24 0S0 10.767 0 24c0 13.234 10.766 24 24 24 7.987 0 15.07-3.925 19.436-9.943a2688.801 2688.801 0 0 0-15.11-7.467c-1.999 2.277-4.953 4.56-8.29 5.554-2.097.623-3.986.86-5.963.457-1.956-.4-3.397-1.317-4.237-2.235-.428-.469-.92-1.064-1.275-1.773.033.09.056.143.056.143s-.204-.353-.361-.914a4.03 4.03 0 0 1-.157-.85 4.383 4.383 0 0 1-.009-.612 4.409 4.409 0 0 1 .078-1.128c.197-.948.601-2.054 1.649-3.08 2.3-2.251 5.38-2.372 6.976-2.363 2.363.014 6.47 1.048 9.928 2.27.958-2.04 1.573-4.221 1.97-5.676H14.31v-1.555h7.384V15.72h-8.938v-1.555h8.938v-3.108c0-.427.084-.778.777-.778h3.498v3.886h9.717v1.555H25.97v3.11h7.773s-.78 4.35-3.221 8.64c5.416 1.934 13.037 4.914 15.568 5.91Z",fill:"currentColor",stroke:"none"},null,-1)]),14,KQe)}var y$=Ve(GQe,[["render",qQe]]);const YQe=Object.assign(y$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+y$.name,y$)}}),XQe=Se({name:"IconCodeSandbox",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-code-sandbox`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),ZQe=["stroke-width","stroke-linecap","stroke-linejoin"];function JQe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m25.002 1.6 17.9 10.3c.6.4 1 1 1 1.7v20.7c0 .7-.4 1.4-1 1.7l-17.9 10.4c-.6.4-1.4.4-2 0l-17.9-10.3c-.6-.4-1-1-1-1.7V13.7c0-.7.4-1.4 1-1.7l17.9-10.4c.6-.4 1.4-.4 2 0Zm13.5 12.4-7.9-4.5-6.6 4.5-6.5-4-7.3 4.3 13.8 8.7 14.5-9Zm-16.5 26.4V26.3l-14-8.9v7.9l8 5.5V37l6 3.4Zm4 0 6-3.5v-5.2l8-5.5v-8.9l-14 8.9v14.2Z",fill:"currentColor",stroke:"none"},null,-1)]),14,ZQe)}var b$=Ve(XQe,[["render",JQe]]);const QQe=Object.assign(b$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+b$.name,b$)}}),eet=Se({name:"IconCodepen",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-codepen`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),tet=["stroke-width","stroke-linecap","stroke-linejoin"];function net(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M45 15.7v17.1L24.5 44.7c-.3.2-.7.2-1 0l-20-11.5c-.3-.2-.5-.5-.5-.9V15.7c0-.4.2-.7.5-.9l20-11.6c.3-.2.7-.2 1 0l20 11.6c.3.2.5.5.5.9ZM26 9v9.8l5.5 3.2 8.5-4.9L26 9Zm-4 0L8 17.1l8.4 4.9 5.6-3.2V9Zm0 21.2L16.5 27 9 31.4 22 39v-8.8Zm17 1.2L31.4 27 26 30.2V39l13-7.6Zm2-3.4v-6l-5 3 5 3Zm-29-3-5-3v6l5-3Zm8 0 4 2 4-2-4-2-4 2Z",fill:"currentColor",stroke:"none"},null,-1)]),14,tet)}var _$=Ve(eet,[["render",net]]);const ret=Object.assign(_$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+_$.name,_$)}}),iet=Se({name:"IconFacebook",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-facebook`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),oet=["stroke-width","stroke-linecap","stroke-linejoin"];function set(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M35.184 15.727 34.312 24h-6.613v24h-9.933V24h-4.95v-8.273h4.95v-4.98C17.766 4.016 20.564 0 28.518 0h6.61v8.273H30.99c-3.086 0-3.292 1.166-3.292 3.32v4.134h7.485Z",fill:"currentColor",stroke:"none"},null,-1)]),14,oet)}var S$=Ve(iet,[["render",set]]);const aet=Object.assign(S$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+S$.name,S$)}}),uet=Se({name:"IconGithub",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-github`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),cet=["stroke-width","stroke-linecap","stroke-linejoin"];function det(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M.056 24.618c0 10.454 6.7 19.344 16.038 22.608 1.259.32 1.067-.582 1.067-1.19v-4.148c-7.265.853-7.553-3.957-8.043-4.758-.987-1.686-3.312-2.112-2.62-2.912 1.654-.853 3.34.213 5.291 3.1 1.413 2.09 4.166 1.738 5.562 1.385a6.777 6.777 0 0 1 1.856-3.253C11.687 34.112 8.55 29.519 8.55 24.057c0-2.646.874-5.082 2.586-7.045-1.088-3.243.102-6.01.26-6.422 3.11-.282 6.337 2.225 6.587 2.421 1.766-.474 3.782-.73 6.038-.73 2.266 0 4.293.26 6.069.74.603-.458 3.6-2.608 6.49-2.345.155.41 1.317 3.12.294 6.315 1.734 1.968 2.62 4.422 2.62 7.077 0 5.472-3.158 10.07-10.699 11.397a6.82 6.82 0 0 1 2.037 4.875v6.02c.042.48 0 .96.806.96 9.477-3.194 16.299-12.15 16.299-22.697C47.938 11.396 37.218.68 23.996.68 10.77.675.055 11.391.055 24.617l.001.001Z",fill:"currentColor",stroke:"none"},null,-1)]),14,cet)}var k$=Ve(uet,[["render",det]]);const Tve=Object.assign(k$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+k$.name,k$)}}),fet=Se({name:"IconGitlab",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-gitlab`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),het=["stroke-width","stroke-linecap","stroke-linejoin"];function pet(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M45.53 26.154 39.694 6.289v-.005c-.407-1.227-1.377-1.955-2.587-1.955-1.254 0-2.277.723-2.663 1.885L30.62 17.625H17.4l-3.825-11.41c-.386-1.163-1.41-1.886-2.663-1.886-1.237 0-2.276.792-2.592 1.96l-5.83 19.865a2.047 2.047 0 0 0 .724 2.18l19.741 14.807c.14.193.332.338.557.418l.461.343.455-.343c.263-.091.483-.252.638-.477L44.8 28.33a2.03 2.03 0 0 0 .728-2.175ZM36.84 6.932c.053-.096.155-.102.187-.102.06 0 .134.016.182.161l3.183 10.704H33.24l3.6-10.763Zm-26.11.054c.047-.14.122-.156.181-.156.145 0 .156.006.183.091L14.699 17.7H7.633l3.096-10.714ZM5.076 26.502l1.511-5.213 10.843 14.475-12.354-9.262Zm3.96-6.236h6.54l4.865 15.23-11.406-15.23Zm15.01 17.877-5.743-17.877h11.48l-5.737 17.877Zm8.459-17.877h6.402L27.642 35.31l4.864-15.043Zm-2.18 15.745L41.43 21.187l1.58 5.315-12.685 9.509Z",fill:"currentColor",stroke:"none"},null,-1)]),14,het)}var x$=Ve(fet,[["render",pet]]);const vet=Object.assign(x$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+x$.name,x$)}}),met=Se({name:"IconGoogle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-google`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),get=["stroke-width","stroke-linecap","stroke-linejoin"];function yet(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M23.997 21.054h19.42a19.46 19.46 0 0 1 .321 3.428c0 3.875-.812 7.335-2.437 10.38-1.625 3.044-3.942 5.424-6.951 7.138-3.01 1.714-6.46 2.572-10.353 2.572-2.803 0-5.473-.54-8.009-1.621-2.535-1.08-4.723-2.54-6.562-4.38-1.84-1.839-3.3-4.026-4.38-6.562A20.223 20.223 0 0 1 3.426 24c0-2.803.54-5.473 1.62-8.009 1.08-2.535 2.54-4.723 4.38-6.562 1.84-1.84 4.027-3.3 6.562-4.38a20.223 20.223 0 0 1 8.01-1.62c5.356 0 9.955 1.794 13.794 5.384l-5.598 5.384c-2.197-2.125-4.929-3.188-8.197-3.188-2.303 0-4.433.58-6.388 1.741a12.83 12.83 0 0 0-4.648 4.728c-1.142 1.99-1.714 4.165-1.714 6.522s.572 4.531 1.714 6.523a12.83 12.83 0 0 0 4.648 4.727c1.955 1.16 4.085 1.741 6.388 1.741 1.554 0 2.982-.214 4.286-.643 1.303-.428 2.375-.964 3.214-1.607a11.63 11.63 0 0 0 2.197-2.196c.625-.822 1.084-1.598 1.38-2.33a9.84 9.84 0 0 0 .602-2.09H23.997v-7.071Z",fill:"currentColor",stroke:"none"},null,-1)]),14,get)}var C$=Ve(met,[["render",yet]]);const bet=Object.assign(C$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+C$.name,C$)}}),_et=Se({name:"IconQqZone",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-qq-zone`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),ket=["stroke-width","stroke-linecap","stroke-linejoin"];function xet(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M25.1 3.9c.2.1.4.3.5.5l6.8 10L44 17.8c1.1.3 1.7 1.4 1.4 2.5-.1.2-.2.5-.3.7l-7.4 9.5.4 12c0 1.1-.8 2-1.9 2.1-.2 0-.5 0-.7-.1L24 40.4l-11.3 4.1c-1 .4-2.2-.2-2.6-1.2-.1-.3-.1-.6-.1-.8l.4-12L3 20.9c-.7-.9-.5-2.1.4-2.8.2-.2.4-.3.7-.3l11.6-3.4 6.8-10c.5-.9 1.7-1.1 2.6-.5ZM24 9.1l-5.9 8.7-10.1 3 6.5 8.3-.3 10.5 9.9-3.6 9.9 3.6-.3-10.5 6.5-8.3-10.1-3L24 9.1Zm5 11.5c.8 0 1.5.5 1.8 1.2.3.7.1 1.6-.5 2.1L24 29.6h5c1 0 1.9.9 1.9 1.9 0 1-.9 1.9-1.9 1.9H19c-.8 0-1.5-.5-1.8-1.2-.3-.7-.1-1.6.5-2.1l6.3-5.7h-5c-1 0-1.9-.9-1.9-1.9 0-1 .9-1.9 1.9-1.9h10Z",fill:"currentColor",stroke:"none"},null,-1)]),14,ket)}var w$=Ve(_et,[["render",xet]]);const Cet=Object.assign(w$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+w$.name,w$)}}),wet=Se({name:"IconQq",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-qq`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Eet=["stroke-width","stroke-linecap","stroke-linejoin"];function Tet(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M7.85 32.825s1.153 3.136 3.264 5.955c0 0-3.779 1.281-3.458 4.61 0 0-.128 3.714 8.069 3.458 0 0 5.764-.45 7.494-2.88h1.52c1.73 2.432 7.494 2.88 7.494 2.88 8.193.256 8.068-3.457 8.068-3.457.318-3.33-3.458-4.611-3.458-4.611 2.11-2.82 3.264-5.955 3.264-5.955 5.122 8.259 4.611-1.154 4.611-1.154-.96-5.57-4.995-9.221-4.995-9.221.576-5.058-1.537-5.955-1.537-5.955C37.742.844 24.26 1.12 23.978 1.126 23.694 1.12 10.21.846 9.767 16.495c0 0-2.113.897-1.537 5.955 0 0-4.034 3.65-4.995 9.221.005 0-.51 9.413 4.615 1.154Z",fill:"currentColor",stroke:"none"},null,-1)]),14,Eet)}var E$=Ve(wet,[["render",Tet]]);const Aet=Object.assign(E$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+E$.name,E$)}}),Iet=Se({name:"IconTwitter",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-twitter`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Let=["stroke-width","stroke-linecap","stroke-linejoin"];function Det(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M43.277 13.575c0 16.613-10.912 28.575-26.962 29.1-6.788.525-11.438-1.537-15.6-4.65 4.65.525 10.912-1.012 13.987-4.163-4.65 0-7.275-2.625-8.812-6.187h4.162C5.89 26.1 2.74 22.987 2.74 17.812c1.012.525 2.062 1.013 4.162 1.013-3.637-2.063-5.7-8.813-3.112-12.975 4.65 5.175 10.35 9.863 19.762 10.35C20.927 5.85 34.465.6 40.165 7.388c2.625-.525 4.162-1.538 6.187-2.625-.525 2.625-2.062 4.162-4.162 5.175 2.062 0 3.637-.525 5.175-1.538-.488 2.063-2.55 4.162-4.088 5.175Z",fill:"currentColor",stroke:"none"},null,-1)]),14,Let)}var T$=Ve(Iet,[["render",Det]]);const Pet=Object.assign(T$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+T$.name,T$)}}),Ret=Se({name:"IconWechat",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-wechat`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Met=["stroke-width","stroke-linecap","stroke-linejoin"];function Oet(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M32.09 16.362a14.39 14.39 0 0 0-6.927 1.716 13.087 13.087 0 0 0-5.008 4.676 11.936 11.936 0 0 0-1.856 6.473c.01 1.137.185 2.273.517 3.36h-1.505a26.653 26.653 0 0 1-4.766-.593l-.925-.166-5.665 2.93 1.55-4.848C3.179 26.783 1.018 23.077 1 18.792a11.951 11.951 0 0 1 2.188-6.927 14.943 14.943 0 0 1 5.938-5.027 18.579 18.579 0 0 1 8.248-1.837A18.82 18.82 0 0 1 24.8 6.506a16.863 16.863 0 0 1 5.893 4.128 11.963 11.963 0 0 1 2.992 5.817 17.922 17.922 0 0 0-1.595-.09Zm-20.152-.414a2.167 2.167 0 0 0 1.505-.471c.405-.378.62-.908.593-1.46a1.881 1.881 0 0 0-.592-1.46 2.025 2.025 0 0 0-1.506-.535 2.778 2.778 0 0 0-1.67.535c-.454.323-.728.849-.728 1.401a1.708 1.708 0 0 0 .727 1.523 2.925 2.925 0 0 0 1.671.467ZM47 28.99a9.573 9.573 0 0 1-1.59 5.193c-1.128 1.6-2.52 3-4.129 4.128l1.258 4.129-4.51-2.413h-.243a20.758 20.758 0 0 1-4.6.76 15.538 15.538 0 0 1-7.03-1.59 13.089 13.089 0 0 1-5.008-4.313 10.501 10.501 0 0 1-1.838-5.939 10.29 10.29 0 0 1 1.838-5.92c1.266-1.847 3-3.334 5.008-4.313a15.579 15.579 0 0 1 7.03-1.59 14.919 14.919 0 0 1 6.761 1.59 13.286 13.286 0 0 1 5.09 4.312 10.004 10.004 0 0 1 1.94 5.966H47ZM23.407 11.955a2.77 2.77 0 0 0-1.747.534 1.65 1.65 0 0 0-.76 1.46c-.017.584.27 1.146.76 1.46.498.36 1.1.544 1.716.535a2.083 2.083 0 0 0 1.505-.472c.368-.404.561-.925.534-1.46a1.834 1.834 0 0 0-.534-1.532 1.887 1.887 0 0 0-1.532-.534h.063v.009h-.005Zm5.256 15.03a2.016 2.016 0 0 0 1.46-.498c.332-.288.525-.7.534-1.137a1.612 1.612 0 0 0-.534-1.136 2.062 2.062 0 0 0-1.46-.499 1.58 1.58 0 0 0-1.092.499c-.305.296-.49.71-.498 1.136.009.427.184.84.498 1.137.288.305.679.48 1.092.499Zm8.953 0a2.016 2.016 0 0 0 1.46-.498c.332-.288.525-.7.534-1.137a1.558 1.558 0 0 0-.593-1.136 2.12 2.12 0 0 0-1.401-.499 1.493 1.493 0 0 0-1.092.499c-.305.296-.49.71-.498 1.136.009.427.184.84.498 1.137.279.305.674.49 1.092.499Z",fill:"currentColor",stroke:"none"},null,-1)]),14,Met)}var A$=Ve(Ret,[["render",Oet]]);const $et=Object.assign(A$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+A$.name,A$)}}),Bet=Se({name:"IconWechatpay",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-wechatpay`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Net=["stroke-width","stroke-linecap","stroke-linejoin"];function Fet(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M17.514 29.52a1.502 1.502 0 0 1-.715.165c-.608 0-1.104-.33-1.38-.826l-.113-.219-4.357-9.493c-.054-.112-.054-.219-.054-.33 0-.444.331-.774.774-.774.165 0 .33.053.496.165l5.13 3.643c.384.218.827.384 1.323.384.277 0 .55-.054.827-.166l24.058-10.704C39.2 6.288 32.085 2.976 24.026 2.976 10.896 2.976.191 11.861.191 22.837c0 5.958 3.2 11.366 8.22 15.008.383.278.66.774.66 1.27 0 .165-.053.33-.112.496-.384 1.488-1.05 3.92-1.05 4.026a2.025 2.025 0 0 0-.112.608c0 .443.33.774.773.774.165 0 .33-.054.443-.166l5.184-3.034c.384-.219.826-.384 1.27-.384.218 0 .495.053.714.112a27.712 27.712 0 0 0 7.781 1.104c13.13 0 23.835-8.886 23.835-19.862 0-3.312-.992-6.453-2.704-9.216L17.679 29.408l-.165.112Z",fill:"currentColor",stroke:"none"},null,-1)]),14,Net)}var I$=Ve(Bet,[["render",Fet]]);const jet=Object.assign(I$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+I$.name,I$)}}),Vet=Se({name:"IconWeibo",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-weibo`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),zet=["stroke-width","stroke-linecap","stroke-linejoin"];function Uet(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M31.82 5.6c-1.445.635-1.776 2.144-.727 3.192.515.516.993.608 3.11.608 2.952 0 4.94.781 6.448 2.53 1.84 2.079 2.052 2.714 2.052 6.513 0 3.377 0 3.441.782 3.892 1.812 1.021 3.017-.24 3.44-3.616.544-4.397-2.078-9.531-6.025-11.877-2.595-1.509-7.029-2.116-9.08-1.242Zm-14.831 5.612c-3.376 1.205-6.633 3.524-10.13 7.268-8.288 8.804-7.746 17.186 1.39 21.648 9.494 4.636 22.282 3.1 29.247-3.533 5.216-4.94 4.581-11.16-1.353-13.267-1.058-.358-1.389-.634-1.232-.966.542-1.324.726-2.86.423-3.772-.939-2.86-4.343-3.523-9.403-1.812l-2.024.69.184-2.024c.212-2.383-.303-3.68-1.72-4.398-1.187-.588-3.45-.524-5.382.166Zm8.381 11.666c4.49 1.232 7.231 3.946 7.231 7.176 0 3.588-3.192 6.817-8.38 8.528-2.77.902-7.931 1.086-10.461.396-4.793-1.353-7.507-4.012-7.507-7.416 0-1.867.81-3.496 2.594-5.152 1.656-1.564 2.926-2.318 5.364-3.137 3.689-1.242 7.636-1.389 11.16-.395Zm-9.494 2.925c-3.045 1.417-4.674 3.588-4.674 6.302 0 2.475 1.086 4.159 3.469 5.428 1.84.994 5.216.902 7.268-.147 2.622-1.39 4.342-3.947 4.342-6.45-.028-2.05-1.84-4.489-3.984-5.363-1.72-.736-4.609-.616-6.421.23Zm2.199 5.667c.211.212.358.727.358 1.178 0 1.509-2.53 2.742-3.56 1.72-.57-.57-.423-1.987.24-2.65.662-.662 2.391-.818 2.962-.248Zm14.26-19.688c-1.39 1.39-.451 3.046 1.748 3.046 1.895 0 2.741.966 2.741 3.137 0 1.352.12 1.748.663 2.107 1.628 1.15 2.953-.12 2.953-2.806 0-3.285-2.355-5.76-5.695-5.999-1.509-.12-1.868-.027-2.41.515Z",fill:"currentColor",stroke:"none"},null,-1)]),14,zet)}var L$=Ve(Vet,[["render",Uet]]);const Het=Object.assign(L$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+L$.name,L$)}}),Wet=Se({name:"IconChineseFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-chinese-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Get=["stroke-width","stroke-linecap","stroke-linejoin"];function Ket(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M22 21h-5v4.094h5V21ZM26 25.094V21h5v4.094h-5Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 4C12.954 4 4 12.954 4 24s8.954 20 20 20 20-8.954 20-20S35.046 4 24 4Zm2 13v-5h-4v5h-6.5a2.5 2.5 0 0 0-2.5 2.5v7.094a2.5 2.5 0 0 0 2.5 2.5H22V36h4v-6.906h6.5a2.5 2.5 0 0 0 2.5-2.5V19.5a2.5 2.5 0 0 0-2.5-2.5H26Z",fill:"currentColor",stroke:"none"},null,-1)]),14,Get)}var D$=Ve(Wet,[["render",Ket]]);const qet=Object.assign(D$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+D$.name,D$)}}),Yet=Se({name:"IconEnglishFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-english-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Xet=["stroke-width","stroke-linecap","stroke-linejoin"];function Zet(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M23.2 4C12.596 4 4 12.596 4 23.2v1.6C4 35.404 12.596 44 23.2 44h1.6C35.404 44 44 35.404 44 24.8v-1.6C44 12.596 35.404 4 24.8 4h-1.6Zm-9.086 10A2.114 2.114 0 0 0 12 16.114v15.772c0 1.167.947 2.114 2.114 2.114H25v-4h-9v-4h7.778v-4H16v-4h9v-4H14.114ZM32.4 22a5.4 5.4 0 0 0-5.4 5.4V34h4v-6.6a1.4 1.4 0 0 1 2.801 0V34h4v-6.6a5.4 5.4 0 0 0-5.4-5.4Z",fill:"currentColor",stroke:"none"},null,-1)]),14,Xet)}var P$=Ve(Yet,[["render",Zet]]);const Jet=Object.assign(P$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+P$.name,P$)}}),Qet=Se({name:"IconMoonFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-moon-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),ett=["stroke-width","stroke-linecap","stroke-linejoin"];function ttt(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M42.108 29.769c.124-.387-.258-.736-.645-.613A17.99 17.99 0 0 1 36 30c-9.941 0-18-8.059-18-18 0-1.904.296-3.74.844-5.463.123-.387-.226-.768-.613-.645C10.558 8.334 5 15.518 5 24c0 10.493 8.507 19 19 19 8.482 0 15.666-5.558 18.108-13.231Z",fill:"currentColor",stroke:"none"},null,-1)]),14,ett)}var R$=Ve(Qet,[["render",ttt]]);const ntt=Object.assign(R$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+R$.name,R$)}}),rtt=Se({name:"IconPenFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-pen-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),itt=["stroke-width","stroke-linecap","stroke-linejoin"];function ott(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{fill:"currentColor",stroke:"none",d:"m31.07 8.444 8.485 8.485L19.05 37.435l-8.485-8.485zM33.9 5.615a2 2 0 0 1 2.829 0l5.657 5.657a2 2 0 0 1 0 2.829l-1.415 1.414-8.485-8.486L33.9 5.615ZM17.636 38.85 9.15 30.363l-3.61 10.83a1 1 0 0 0 1.265 1.265l10.83-3.61Z"},null,-1)]),14,itt)}var M$=Ve(rtt,[["render",ott]]);const stt=Object.assign(M$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+M$.name,M$)}}),att=Se({name:"IconSunFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-sun-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),ltt=["stroke-width","stroke-linecap","stroke-linejoin"];function utt(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("circle",{cx:"24",cy:"24",r:"9",fill:"currentColor",stroke:"none"},null,-1),I("path",{d:"M21 5.5a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 .5.5v5a.5.5 0 0 1-.5.5h-5a.5.5 0 0 1-.5-.5v-5ZM21 37.5a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 .5.5v5a.5.5 0 0 1-.5.5h-5a.5.5 0 0 1-.5-.5v-5ZM42.5 21a.5.5 0 0 1 .5.5v5a.5.5 0 0 1-.5.5h-5a.5.5 0 0 1-.5-.5v-5a.5.5 0 0 1 .5-.5h5ZM10.5 21a.5.5 0 0 1 .5.5v5a.5.5 0 0 1-.5.5h-5a.5.5 0 0 1-.5-.5v-5a.5.5 0 0 1 .5-.5h5ZM39.203 34.96a.5.5 0 0 1 0 .707l-3.536 3.536a.5.5 0 0 1-.707 0l-3.535-3.536a.5.5 0 0 1 0-.707l3.535-3.535a.5.5 0 0 1 .707 0l3.536 3.535ZM16.575 12.333a.5.5 0 0 1 0 .707l-3.535 3.535a.5.5 0 0 1-.707 0L8.797 13.04a.5.5 0 0 1 0-.707l3.536-3.536a.5.5 0 0 1 .707 0l3.535 3.536ZM13.04 39.203a.5.5 0 0 1-.707 0l-3.536-3.536a.5.5 0 0 1 0-.707l3.536-3.535a.5.5 0 0 1 .707 0l3.536 3.535a.5.5 0 0 1 0 .707l-3.536 3.536ZM35.668 16.575a.5.5 0 0 1-.708 0l-3.535-3.535a.5.5 0 0 1 0-.707l3.535-3.536a.5.5 0 0 1 .708 0l3.535 3.536a.5.5 0 0 1 0 .707l-3.535 3.535Z",fill:"currentColor",stroke:"none"},null,-1)]),14,ltt)}var O$=Ve(att,[["render",utt]]);const ctt=Object.assign(O$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+O$.name,O$)}}),dtt=Se({name:"IconApps",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-apps`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),ftt=["stroke-width","stroke-linecap","stroke-linejoin"];function htt(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M7 7h13v13H7zM28 7h13v13H28zM7 28h13v13H7zM28 28h13v13H28z"},null,-1)]),14,ftt)}var $$=Ve(dtt,[["render",htt]]);const Ave=Object.assign($$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+$$.name,$$)}}),ptt=Se({name:"IconArchive",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-archive`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),vtt=["stroke-width","stroke-linecap","stroke-linejoin"];function mtt(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("rect",{x:"9",y:"18",width:"30",height:"22",rx:"1"},null,-1),I("path",{d:"M6 9a1 1 0 0 1 1-1h34a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V9ZM19 27h10"},null,-1)]),14,vtt)}var B$=Ve(ptt,[["render",mtt]]);const gtt=Object.assign(B$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+B$.name,B$)}}),ytt=Se({name:"IconBarChart",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-bar-chart`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),btt=["stroke-width","stroke-linecap","stroke-linejoin"];function _tt(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",stroke:"currentColor",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M41 7H29v34h12V7ZM29 18H18v23h11V18ZM18 29H7v12h11V29Z"},null,-1)]),14,btt)}var N$=Ve(ytt,[["render",_tt]]);const Ive=Object.assign(N$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+N$.name,N$)}}),Stt=Se({name:"IconBook",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-book`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),ktt=["stroke-width","stroke-linecap","stroke-linejoin"];function xtt(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24 13 7 7v28l17 6 17-6V7l-17 6Zm0 0v27.5M29 18l7-2.5M29 25l7-2.5M29 32l7-2.5M19 18l-7-2.5m7 9.5-7-2.5m7 9.5-7-2.5"},null,-1)]),14,ktt)}var F$=Ve(Stt,[["render",xtt]]);const tA=Object.assign(F$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+F$.name,F$)}}),Ctt=Se({name:"IconBookmark",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-bookmark`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),wtt=["stroke-width","stroke-linecap","stroke-linejoin"];function Ett(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M16 16h16M16 24h8"},null,-1),I("path",{d:"M24 41H8V6h32v17"},null,-1),I("path",{d:"M30 29h11v13l-5.5-3.5L30 42V29Z"},null,-1)]),14,wtt)}var j$=Ve(Ctt,[["render",Ett]]);const Ttt=Object.assign(j$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+j$.name,j$)}}),Att=Se({name:"IconBranch",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-branch`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Itt=["stroke-width","stroke-linecap","stroke-linejoin"];function Ltt(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M19 10a4 4 0 1 1-8 0 4 4 0 0 1 8 0ZM38 10a4 4 0 1 1-8 0 4 4 0 0 1 8 0ZM19 38a4 4 0 1 1-8 0 4 4 0 0 1 8 0ZM15 15v15m0 3.5V30m0 0c0-5 19-7 19-15"},null,-1)]),14,Itt)}var V$=Ve(Att,[["render",Ltt]]);const Dtt=Object.assign(V$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+V$.name,V$)}}),Ptt=Se({name:"IconBug",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-bug`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Rtt=["stroke-width","stroke-linecap","stroke-linejoin"];function Mtt(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24 42c-6.075 0-11-4.925-11-11V18h22v13c0 6.075-4.925 11-11 11Zm0 0V23m11 4h8M5 27h8M7 14a4 4 0 0 0 4 4h26a4 4 0 0 0 4-4m0 28v-.5a6.5 6.5 0 0 0-6.5-6.5M7 42v-.5a6.5 6.5 0 0 1 6.5-6.5M17 14a7 7 0 1 1 14 0"},null,-1)]),14,Rtt)}var z$=Ve(Ptt,[["render",Mtt]]);const $y=Object.assign(z$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+z$.name,z$)}}),Ott=Se({name:"IconBulb",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-bulb`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),$tt=["stroke-width","stroke-linecap","stroke-linejoin"];function Btt(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M17 42h14m6-24c0 2.823-.9 5.437-2.43 7.568-1.539 2.147-3.185 4.32-3.77 6.897l-.623 2.756A1 1 0 0 1 29.2 36H18.8a1 1 0 0 1-.976-.779l-.624-2.756c-.584-2.576-2.23-4.75-3.77-6.897A12.94 12.94 0 0 1 11 18c0-7.18 5.82-13 13-13s13 5.82 13 13Z"},null,-1)]),14,$tt)}var U$=Ve(Ott,[["render",Btt]]);const Ntt=Object.assign(U$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+U$.name,U$)}}),Ftt=Se({name:"IconCalendarClock",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-calendar-clock`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),jtt=["stroke-width","stroke-linecap","stroke-linejoin"];function Vtt(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M7 22h34V10a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v30a1 1 0 0 0 1 1h18M34 5v8M14 5v8"},null,-1),I("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M36 44a9 9 0 1 0 0-18 9 9 0 0 0 0 18Zm1.5-9.75V29h-3v8.25H42v-3h-4.5Z",fill:"currentColor",stroke:"none"},null,-1)]),14,jtt)}var H$=Ve(Ftt,[["render",Vtt]]);const ztt=Object.assign(H$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+H$.name,H$)}}),Utt=Se({name:"IconCamera",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-camera`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Htt=["stroke-width","stroke-linecap","stroke-linejoin"];function Wtt(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m33 12-1.862-3.724A.5.5 0 0 0 30.691 8H17.309a.5.5 0 0 0-.447.276L15 12m16 14a7 7 0 1 1-14 0 7 7 0 0 1 14 0ZM7 40h34a1 1 0 0 0 1-1V13a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1v26a1 1 0 0 0 1 1Z"},null,-1)]),14,Htt)}var W$=Ve(Utt,[["render",Wtt]]);const Gtt=Object.assign(W$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+W$.name,W$)}}),Ktt=Se({name:"IconCloud",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-cloud`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),qtt=["stroke-width","stroke-linecap","stroke-linejoin"];function Ytt(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M5 29a9 9 0 0 0 9 9h19c5.523 0 10-4.477 10-10 0-5.312-4.142-9.657-9.373-9.98C32.3 12.833 27.598 9 22 9c-6.606 0-11.965 5.338-12 11.935A9 9 0 0 0 5 29Z"},null,-1)]),14,qtt)}var G$=Ve(Ktt,[["render",Ytt]]);const Xtt=Object.assign(G$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+G$.name,G$)}}),Ztt=Se({name:"IconCommand",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-command`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Jtt=["stroke-width","stroke-linecap","stroke-linejoin"];function Qtt(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M29 19v-6a6 6 0 1 1 6 6h-6Zm0 0v10m0-10H19m10 10v6a6 6 0 1 0 6-6h-6Zm0 0H19m0-10v10m0-10v-6a6 6 0 1 0-6 6h6Zm0 10v6a6 6 0 1 1-6-6h6Z"},null,-1)]),14,Jtt)}var K$=Ve(Ztt,[["render",Qtt]]);const ent=Object.assign(K$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+K$.name,K$)}}),tnt=Se({name:"IconCommon",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-common`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),nnt=["stroke-width","stroke-linecap","stroke-linejoin"];function rnt(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24 23 7.652 14.345M24 23l16.366-8.664M24 23v19.438M7 14v20l17 9 17-9V14L24 5 7 14Z"},null,-1)]),14,nnt)}var q$=Ve(tnt,[["render",rnt]]);const int=Object.assign(q$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+q$.name,q$)}}),ont=Se({name:"IconCompass",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-compass`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),snt=["stroke-width","stroke-linecap","stroke-linejoin"];function ant(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z"},null,-1),I("path",{d:"m21.177 21.183 10.108-4.717a.2.2 0 0 1 .266.265L26.834 26.84l-10.109 4.717a.2.2 0 0 1-.266-.266l4.718-10.108Z"},null,-1)]),14,snt)}var Y$=Ve(ont,[["render",ant]]);const lnt=Object.assign(Y$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+Y$.name,Y$)}}),unt=Se({name:"IconComputer",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-computer`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),cnt=["stroke-width","stroke-linecap","stroke-linejoin"];function dnt(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M41 7H7v22h34V7Z"},null,-1),I("path",{d:"M23.778 29v10"},null,-1),I("path",{d:"M16 39h16"},null,-1),I("path",{d:"m20.243 14.657 5.657 5.657M15.414 22.314l7.071-7.071M24.485 21.728l7.071-7.071"},null,-1)]),14,cnt)}var X$=Ve(unt,[["render",dnt]]);const JH=Object.assign(X$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+X$.name,X$)}}),fnt=Se({name:"IconCopyright",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-copyright`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),hnt=["stroke-width","stroke-linecap","stroke-linejoin"];function pnt(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M29.292 18a8 8 0 1 0 0 12M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z"},null,-1)]),14,hnt)}var Z$=Ve(fnt,[["render",pnt]]);const Lve=Object.assign(Z$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+Z$.name,Z$)}}),vnt=Se({name:"IconDashboard",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-dashboard`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),mnt=["stroke-width","stroke-linecap","stroke-linejoin"];function gnt(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M41.808 24c.118 4.63-1.486 9.333-5.21 13m5.21-13h-8.309m8.309 0c-.112-4.38-1.767-8.694-4.627-12M24 6c5.531 0 10.07 2.404 13.18 6M24 6c-5.724 0-10.384 2.574-13.5 6.38M24 6v7.5M37.18 12 31 17.5m-20.5-5.12L17 17.5m-6.5-5.12C6.99 16.662 5.44 22.508 6.53 28m4.872 9c-2.65-2.609-4.226-5.742-4.873-9m0 0 8.97-3.5"},null,-1),I("path",{d:"M24 32a5 5 0 1 0 0 10 5 5 0 0 0 0-10Zm0 0V19"},null,-1)]),14,mnt)}var J$=Ve(vnt,[["render",gnt]]);const ynt=Object.assign(J$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+J$.name,J$)}}),bnt=Se({name:"IconDesktop",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-desktop`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),_nt=["stroke-width","stroke-linecap","stroke-linejoin"];function Snt(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24 32v8m0 0h-9m9 0h9M7 32h34a1 1 0 0 0 1-1V9a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1v22a1 1 0 0 0 1 1Z"},null,-1)]),14,_nt)}var Q$=Ve(bnt,[["render",Snt]]);const q8=Object.assign(Q$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+Q$.name,Q$)}}),knt=Se({name:"IconDice",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-dice`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),xnt=["stroke-width","stroke-linecap","stroke-linejoin"];function Cnt(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[xh('',11)]),14,xnt)}var eB=Ve(knt,[["render",Cnt]]);const wnt=Object.assign(eB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+eB.name,eB)}}),Ent=Se({name:"IconDriveFile",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-drive-file`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Tnt=["stroke-width","stroke-linecap","stroke-linejoin"];function Ant(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M38.5 17H29a1 1 0 0 1-1-1V6.5m0-.5H10a1 1 0 0 0-1 1v34a1 1 0 0 0 1 1h28a1 1 0 0 0 1-1V17L28 6Z"},null,-1)]),14,Tnt)}var tB=Ve(Ent,[["render",Ant]]);const Int=Object.assign(tB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+tB.name,tB)}}),Lnt=Se({name:"IconEar",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-ear`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Dnt=["stroke-width","stroke-linecap","stroke-linejoin"];function Pnt(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M13 15.528C14.32 12.386 18.403 6.977 23.556 7c7.944.036 14.514 8.528 10.116 15.71-4.399 7.181-5.718 10.323-6.598 14.363-.82 3.766-9.288 7.143-11.498-1.515M20 18.5c1-3.083 4.5-4.5 6.5-2 2.85 3.562-3.503 8.312-5.5 12.5"},null,-1)]),14,Dnt)}var nB=Ve(Lnt,[["render",Pnt]]);const Rnt=Object.assign(nB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+nB.name,nB)}}),Mnt=Se({name:"IconEmail",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-email`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Ont=["stroke-width","stroke-linecap","stroke-linejoin"];function $nt(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("rect",{x:"6",y:"8",width:"36",height:"32",rx:"1"},null,-1),I("path",{d:"m37 17-12.43 8.606a1 1 0 0 1-1.14 0L11 17"},null,-1)]),14,Ont)}var rB=Ve(Mnt,[["render",$nt]]);const Bnt=Object.assign(rB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+rB.name,rB)}}),Nnt=Se({name:"IconExperiment",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-experiment`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Fnt=["stroke-width","stroke-linecap","stroke-linejoin"];function jnt(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M10.5 7h6m0 0v10.5l-5.25 14M16.5 7h15m0 0h6m-6 0v10.5L37 32.167M11.25 31.5l-2.344 6.853A2 2 0 0 0 10.8 41h26.758a2 2 0 0 0 1.86-2.737L37 32.167M11.25 31.5c1.916 1.833 7.05 4.4 12.25 0s11.166-1.389 13.5.667M26 22.5v.01"},null,-1)]),14,Fnt)}var iB=Ve(Nnt,[["render",jnt]]);const Vnt=Object.assign(iB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+iB.name,iB)}}),znt=Se({name:"IconFire",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-fire`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Unt=["stroke-width","stroke-linecap","stroke-linejoin"];function Hnt(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M17.577 27.477C20.022 22.579 17.041 12.98 24.546 6c0 0-1.156 15.55 5.36 17.181 2.145.537 2.68-5.369 4.289-8.59 0 0 .536 4.832 2.68 8.59 3.217 7.517-1 14.117-5.896 17.182-4.289 2.684-14.587 2.807-19.835-5.37-4.824-7.516 0-15.57 0-15.57s4.289 12.35 6.433 8.054Z"},null,-1)]),14,Unt)}var oB=Ve(znt,[["render",Hnt]]);const Dve=Object.assign(oB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+oB.name,oB)}}),Wnt=Se({name:"IconFolderAdd",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-folder-add`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Gnt=["stroke-width","stroke-linecap","stroke-linejoin"];function Knt(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24 19v14m-7-7h14M6 13h18l-2.527-3.557a1.077 1.077 0 0 0-.88-.443H7.06C6.474 9 6 9.448 6 10v3Zm0 0h33.882c1.17 0 2.118.895 2.118 2v21c0 1.105-.948 3-2.118 3H8.118C6.948 39 6 38.105 6 37V13Z"},null,-1)]),14,Gnt)}var sB=Ve(Wnt,[["render",Knt]]);const qnt=Object.assign(sB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+sB.name,sB)}}),Ynt=Se({name:"IconFolderDelete",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-folder-delete`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Xnt=["stroke-width","stroke-linecap","stroke-linejoin"];function Znt(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M17 26h14M6 13h18l-2.527-3.557a1.077 1.077 0 0 0-.88-.443H7.06C6.474 9 6 9.448 6 10v3Zm0 0h33.882c1.17 0 2.118.895 2.118 2v21c0 1.105-.948 3-2.118 3H8.118C6.948 39 6 38.105 6 37V13Z"},null,-1)]),14,Xnt)}var aB=Ve(Ynt,[["render",Znt]]);const Jnt=Object.assign(aB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+aB.name,aB)}}),Qnt=Se({name:"IconFolder",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-folder`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),ert=["stroke-width","stroke-linecap","stroke-linejoin"];function trt(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M6 13h18l-2.527-3.557a1.077 1.077 0 0 0-.88-.443H7.06C6.474 9 6 9.448 6 10v3Zm0 0h33.882c1.17 0 2.118.895 2.118 2v21c0 1.105-.948 3-2.118 3H8.118C6.948 39 6 38.105 6 37V13Z"},null,-1)]),14,ert)}var lB=Ve(Qnt,[["render",trt]]);const Pve=Object.assign(lB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+lB.name,lB)}}),nrt=Se({name:"IconGift",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-gift`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),rrt=["stroke-width","stroke-linecap","stroke-linejoin"];function irt(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M13.45 14.043H8a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h32a1 1 0 0 0 1-1v-8a1 1 0 0 0-1-1h-4.893m-21.657 0c-1.036-2.833-.615-5.6 1.182-6.637 2.152-1.243 5.464.464 7.397 3.812.539.933.914 1.896 1.127 2.825m-9.706 0h9.706m0 0H25.4m0 0a10.31 10.31 0 0 1 1.128-2.825c1.933-3.348 5.244-5.055 7.397-3.812 1.797 1.037 2.217 3.804 1.182 6.637m-9.707 0h9.707M10 26.043a2 2 0 0 1 2-2h24a2 2 0 0 1 2 2v13a2 2 0 0 1-2 2H12a2 2 0 0 1-2-2v-13Z"},null,-1)]),14,rrt)}var uB=Ve(nrt,[["render",irt]]);const ort=Object.assign(uB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+uB.name,uB)}}),srt=Se({name:"IconIdcard",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-idcard`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),art=["stroke-width","stroke-linecap","stroke-linejoin"];function lrt(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M11 17h9m-9 7h9m-9 7h5m-8 9h32a2 2 0 0 0 2-2V10a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v28a2 2 0 0 0 2 2Z"},null,-1),I("path",{d:"M36 33a7 7 0 1 0-14 0"},null,-1),I("circle",{cx:"29",cy:"20",r:"4"},null,-1)]),14,art)}var cB=Ve(srt,[["render",lrt]]);const urt=Object.assign(cB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+cB.name,cB)}}),crt=Se({name:"IconImage",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-image`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),drt=["stroke-width","stroke-linecap","stroke-linejoin"];function frt(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m24 33 9-9v9h-9Zm0 0-3.5-4.5L17 33h7Zm15 8H9a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h30a2 2 0 0 1 2 2v30a2 2 0 0 1-2 2ZM15 15h2v2h-2v-2Z"},null,-1),I("path",{d:"M33 33v-9l-9 9h9ZM23.5 33l-3-4-3 4h6ZM15 15h2v2h-2z",fill:"currentColor",stroke:"none"},null,-1)]),14,drt)}var dB=Ve(crt,[["render",frt]]);const nA=Object.assign(dB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+dB.name,dB)}}),hrt=Se({name:"IconInteraction",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-interaction`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),prt=["stroke-width","stroke-linecap","stroke-linejoin"];function vrt(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M8 19h16m16 0H24m0 0v23m14 0H10a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h28a2 2 0 0 1 2 2v32a2 2 0 0 1-2 2Z"},null,-1)]),14,prt)}var fB=Ve(hrt,[["render",vrt]]);const mrt=Object.assign(fB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+fB.name,fB)}}),grt=Se({name:"IconLanguage",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-language`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),yrt=["stroke-width","stroke-linecap","stroke-linejoin"];function brt(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m42 43-2.385-6M26 43l2.384-6m11.231 0-.795-2-4.18-10h-1.28l-4.181 10-.795 2m11.231 0h-11.23M17 5l1 5M5 11h26M11 11s1.889 7.826 6.611 12.174C22.333 27.522 30 31 30 31"},null,-1),I("path",{d:"M25 11s-1.889 7.826-6.611 12.174C13.667 27.522 6 31 6 31"},null,-1)]),14,yrt)}var hB=Ve(grt,[["render",brt]]);const Rve=Object.assign(hB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+hB.name,hB)}}),_rt=Se({name:"IconLayers",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-layers`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Srt=["stroke-width","stroke-linecap","stroke-linejoin"];function krt(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24.015 7.017 41 14.62l-16.985 7.605L7.03 14.62l16.985-7.604Z"},null,-1),I("path",{d:"m41 23.255-16.985 7.604L7.03 23.255M40.97 33.412l-16.985 7.605L7 33.412"},null,-1)]),14,Srt)}var pB=Ve(_rt,[["render",krt]]);const xrt=Object.assign(pB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+pB.name,pB)}}),Crt=Se({name:"IconLayout",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-layout`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),wrt=["stroke-width","stroke-linecap","stroke-linejoin"];function Ert(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M19 40V8m23 2a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v28a2 2 0 0 0 2 2h32a2 2 0 0 0 2-2V10Z"},null,-1)]),14,wrt)}var vB=Ve(Crt,[["render",Ert]]);const Trt=Object.assign(vB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+vB.name,vB)}}),Art=Se({name:"IconLocation",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-location`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Irt=["stroke-width","stroke-linecap","stroke-linejoin"];function Lrt(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("circle",{cx:"24",cy:"19",r:"5"},null,-1),I("path",{d:"M39 20.405C39 28.914 24 43 24 43S9 28.914 9 20.405C9 11.897 15.716 5 24 5c8.284 0 15 6.897 15 15.405Z"},null,-1)]),14,Irt)}var mB=Ve(Art,[["render",Lrt]]);const Drt=Object.assign(mB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+mB.name,mB)}}),Prt=Se({name:"IconLock",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-lock`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Rrt=["stroke-width","stroke-linecap","stroke-linejoin"];function Mrt(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("rect",{x:"7",y:"21",width:"34",height:"20",rx:"1"},null,-1),I("path",{d:"M15 21v-6a9 9 0 1 1 18 0v6M24 35v-8"},null,-1)]),14,Rrt)}var gB=Ve(Prt,[["render",Mrt]]);const Ort=Object.assign(gB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+gB.name,gB)}}),$rt=Se({name:"IconLoop",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-loop`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Brt=["stroke-width","stroke-linecap","stroke-linejoin"];function Nrt(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24 38c-7.732 0-14-6.268-14-14 0-3.815 1.526-7.273 4-9.798M24 10c7.732 0 14 6.268 14 14 0 3.815-1.526 7.273-4 9.798M24 7v6l-4-3 4-3Zm0 33v-6l4 3-4 3Z"},null,-1)]),14,Brt)}var yB=Ve($rt,[["render",Nrt]]);const Frt=Object.assign(yB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+yB.name,yB)}}),jrt=Se({name:"IconMan",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-man`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Vrt=["stroke-width","stroke-linecap","stroke-linejoin"];function zrt(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M40 8 29.68 18.321M31 8h9v9m-7 10c0 7.18-5.82 13-13 13S7 34.18 7 27s5.82-13 13-13 13 5.82 13 13Z"},null,-1)]),14,Vrt)}var bB=Ve(jrt,[["render",zrt]]);const Urt=Object.assign(bB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+bB.name,bB)}}),Hrt=Se({name:"IconMenu",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-menu`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Wrt=["stroke-width","stroke-linecap","stroke-linejoin"];function Grt(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M5 10h38M5 24h38M5 38h38"},null,-1)]),14,Wrt)}var _B=Ve(Hrt,[["render",Grt]]);const Mve=Object.assign(_B,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+_B.name,_B)}}),Krt=Se({name:"IconMindMapping",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-mind-mapping`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),qrt=["stroke-width","stroke-linecap","stroke-linejoin"];function Yrt(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M20 10h23M20 24h23M20 38h23M9 12v28m0-28a2 2 0 1 0 0-4 2 2 0 0 0 0 4Zm0 26h7M9 24h7"},null,-1)]),14,qrt)}var SB=Ve(Krt,[["render",Yrt]]);const Xrt=Object.assign(SB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+SB.name,SB)}}),Zrt=Se({name:"IconMobile",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-mobile`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Jrt=["stroke-width","stroke-linecap","stroke-linejoin"];function Qrt(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M17 14h14m6.125 28h-26.25C9.839 42 9 41.105 9 40V8c0-1.105.84-2 1.875-2h26.25C38.16 6 39 6.895 39 8v32c0 1.105-.84 2-1.875 2ZM22 33a2 2 0 1 1 4 0 2 2 0 0 1-4 0Z"},null,-1),I("circle",{cx:"24",cy:"33",r:"2",fill:"currentColor",stroke:"none"},null,-1)]),14,Jrt)}var kB=Ve(Zrt,[["render",Qrt]]);const Ove=Object.assign(kB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+kB.name,kB)}}),eit=Se({name:"IconMoon",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-moon`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),tit=["stroke-width","stroke-linecap","stroke-linejoin"];function nit(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M39.979 29.241c.11-.344-.23-.654-.574-.544-1.53.487-3.162.75-4.855.75-8.834 0-15.997-7.163-15.997-15.997 0-1.693.263-3.324.75-4.855.11-.344-.2-.684-.544-.574C11.939 10.19 7 16.576 7 24.114 7 33.44 14.56 41 23.886 41c7.538 0 13.923-4.94 16.093-11.759Z"},null,-1)]),14,tit)}var xB=Ve(eit,[["render",nit]]);const rit=Object.assign(xB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+xB.name,xB)}}),iit=Se({name:"IconMosaic",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-mosaic`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),oit=["stroke-width","stroke-linecap","stroke-linejoin"];function sit(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M6 7h4v4H6V7ZM6 23h4v4H6v-4ZM6 38h4v4H6v-4ZM14 15h4v4h-4v-4ZM14 31h4v4h-4v-4ZM22 7h4v4h-4V7ZM22 23h4v4h-4v-4ZM22 38h4v4h-4v-4ZM30 15h4v4h-4v-4ZM30 31h4v4h-4v-4ZM38 7h4v4h-4V7ZM38 23h4v4h-4v-4ZM38 38h4v4h-4v-4Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{d:"M6 7h4v4H6V7ZM6 23h4v4H6v-4ZM6 38h4v4H6v-4ZM14 15h4v4h-4v-4ZM14 31h4v4h-4v-4ZM22 7h4v4h-4V7ZM22 23h4v4h-4v-4ZM22 38h4v4h-4v-4ZM30 15h4v4h-4v-4ZM30 31h4v4h-4v-4ZM38 7h4v4h-4V7ZM38 23h4v4h-4v-4ZM38 38h4v4h-4v-4Z"},null,-1)]),14,oit)}var CB=Ve(iit,[["render",sit]]);const ait=Object.assign(CB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+CB.name,CB)}}),lit=Se({name:"IconNav",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-nav`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),uit=["stroke-width","stroke-linecap","stroke-linejoin"];function cit(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M6 19h10m0 0h26m-26 0V9m0 10v10m0 0v10m0-10H6m10 0h26M6 9h36v30H6V9Z"},null,-1)]),14,uit)}var wB=Ve(lit,[["render",cit]]);const dit=Object.assign(wB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+wB.name,wB)}}),fit=Se({name:"IconNotificationClose",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-notification-close`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),hit=["stroke-width","stroke-linecap","stroke-linejoin"];function pit(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M11 35V22c0-1.835.38-3.58 1.066-5.163M11 35H6m5 0h15.5M24 9c7.18 0 13 5.82 13 13v7.5M24 9V4m0 5a12.94 12.94 0 0 0-6.5 1.74M17 42h14M6 4l36 40"},null,-1)]),14,hit)}var EB=Ve(fit,[["render",pit]]);const vit=Object.assign(EB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+EB.name,EB)}}),mit=Se({name:"IconNotification",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-notification`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),git=["stroke-width","stroke-linecap","stroke-linejoin"];function yit(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24 9c7.18 0 13 5.82 13 13v13H11V22c0-7.18 5.82-13 13-13Zm0 0V4M6 35h36m-25 7h14"},null,-1)]),14,git)}var TB=Ve(mit,[["render",yit]]);const bit=Object.assign(TB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+TB.name,TB)}}),_it=Se({name:"IconPalette",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-palette`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Sit=["stroke-width","stroke-linecap","stroke-linejoin"];function kit(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[xh('',5)]),14,Sit)}var AB=Ve(_it,[["render",kit]]);const QH=Object.assign(AB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+AB.name,AB)}}),xit=Se({name:"IconPen",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-pen`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Cit=["stroke-width","stroke-linecap","stroke-linejoin"];function wit(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m28.364 11.565 7.07 7.071M7.15 32.778 33.313 6.615l7.071 7.071L14.221 39.85h-7.07v-7.07Z"},null,-1)]),14,Cit)}var IB=Ve(xit,[["render",wit]]);const Eit=Object.assign(IB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+IB.name,IB)}}),Tit=Se({name:"IconPhone",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-phone`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Ait=["stroke-width","stroke-linecap","stroke-linejoin"];function Iit(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M6.707 34.284a1 1 0 0 1 0-1.414l5.657-5.657a1 1 0 0 1 1.414 0l4.95 4.95s3.535-1.414 7.778-5.657c4.243-4.243 5.657-7.778 5.657-7.778l-4.95-4.95a1 1 0 0 1 0-1.414l5.657-5.657a1 1 0 0 1 1.414 0l6.01 6.01s3.183 7.425-8.485 19.092c-11.667 11.668-19.092 8.485-19.092 8.485l-6.01-6.01Z"},null,-1)]),14,Ait)}var LB=Ve(Tit,[["render",Iit]]);const Lit=Object.assign(LB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+LB.name,LB)}}),Dit=Se({name:"IconPrinter",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-printer`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Pit=["stroke-width","stroke-linecap","stroke-linejoin"];function Rit(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M14 15V8a1 1 0 0 1 1-1h18a1 1 0 0 1 1 1v7m-20 0H7a1 1 0 0 0-1 1v17a1 1 0 0 0 1 1h6m1-19h20m0 0h7a1 1 0 0 1 1 1v17a1 1 0 0 1-1 1h-6m-22 0v6a1 1 0 0 0 1 1h20a1 1 0 0 0 1-1v-6m-22 0v-5a1 1 0 0 1 1-1h20a1 1 0 0 1 1 1v5"},null,-1)]),14,Pit)}var DB=Ve(Dit,[["render",Rit]]);const Mit=Object.assign(DB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+DB.name,DB)}}),Oit=Se({name:"IconPublic",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-public`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),$it=["stroke-width","stroke-linecap","stroke-linejoin"];function Bit(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M15 21.5 6.704 19M15 21.5l4.683 5.152a1 1 0 0 1 .25.814L18 40.976l10.918-16.117a1 1 0 0 0-.298-1.409L21.5 19 15 21.5Zm0 0 6.062-6.995a1 1 0 0 0 .138-1.103L18 7.024M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z"},null,-1)]),14,$it)}var PB=Ve(Oit,[["render",Bit]]);const Nit=Object.assign(PB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+PB.name,PB)}}),Fit=Se({name:"IconPushpin",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-pushpin`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),jit=["stroke-width","stroke-linecap","stroke-linejoin"];function Vit(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M19.921 28.163 7.193 40.89m12.728-12.728 8.884 8.883c.17.17.447.17.617 0l5.12-5.12a7.862 7.862 0 0 0 1.667-8.655.093.093 0 0 1 .02-.102l4.906-4.906a2 2 0 0 0 0-2.828L32.648 6.95a2 2 0 0 0-2.828 0l-4.89 4.889a.126.126 0 0 1-.139.027 7.828 7.828 0 0 0-8.618 1.66l-5.027 5.026a.591.591 0 0 0 0 .836l8.774 8.775Z"},null,-1)]),14,jit)}var RB=Ve(Fit,[["render",Vit]]);const zit=Object.assign(RB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+RB.name,RB)}}),Uit=Se({name:"IconQrcode",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-qrcode`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Hit=["stroke-width","stroke-linecap","stroke-linejoin"];function Wit(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24 30v4m0 3v6m19-19h-6m-3 0h-4M7 7h17v17H7V7Zm0 25h9v9H7v-9Zm25 0h9v9h-9v-9Zm0-25h9v9h-9V7Zm-18 7h3v3h-3v-3Z"},null,-1)]),14,Hit)}var MB=Ve(Uit,[["render",Wit]]);const Git=Object.assign(MB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+MB.name,MB)}}),Kit=Se({name:"IconRelation",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-relation`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),qit=["stroke-width","stroke-linecap","stroke-linejoin"];function Yit(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M19.714 14C15.204 15.784 12 20.302 12 25.593c0 1.142.15 2.247.429 3.298m16.285-14.712C32.998 16.073 36 20.471 36 25.593c0 1.07-.131 2.11-.378 3.102m-18.32 7.194a11.676 11.676 0 0 0 13.556-.112"},null,-1),I("path",{d:"M24 19a6 6 0 1 0 0-12 6 6 0 0 0 0 12ZM36 40a6 6 0 1 0 0-12 6 6 0 0 0 0 12ZM12 40a6 6 0 1 0 0-12 6 6 0 0 0 0 12Z"},null,-1)]),14,qit)}var OB=Ve(Kit,[["render",Yit]]);const Xit=Object.assign(OB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+OB.name,OB)}}),Zit=Se({name:"IconRobotAdd",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-robot-add`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Jit=["stroke-width","stroke-linecap","stroke-linejoin"];function Qit(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24 7v6m0-6h5m-5 0h-5M3 21v11m25 8H9V13h30v11m-7 11h14m-7-7v14M18 26h1v1h-1v-1Zm11 0h1v1h-1v-1Z"},null,-1)]),14,Jit)}var $B=Ve(Zit,[["render",Qit]]);const eot=Object.assign($B,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+$B.name,$B)}}),tot=Se({name:"IconRobot",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-robot`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),not=["stroke-width","stroke-linecap","stroke-linejoin"];function rot(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M18 26h1v1h-1v-1ZM29 26h1v1h-1v-1Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{d:"M24 7v6m0-6h5m-5 0h-5M3 21v11m36 8H9V13h30v29m6-21v11m-27-6h1v1h-1v-1Zm11 0h1v1h-1v-1Z"},null,-1)]),14,not)}var BB=Ve(tot,[["render",rot]]);const iot=Object.assign(BB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+BB.name,BB)}}),oot=Se({name:"IconSafe",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-safe`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),sot=["stroke-width","stroke-linecap","stroke-linejoin"];function aot(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m16.825 22.165 6 6 10-10M24 6c7 4 16 5 16 5v15s-2 12-16 16.027C10 38 8 26 8 26V11s9-1 16-5Z"},null,-1)]),14,sot)}var NB=Ve(oot,[["render",aot]]);const bf=Object.assign(NB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+NB.name,NB)}}),lot=Se({name:"IconSchedule",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-schedule`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),uot=["stroke-width","stroke-linecap","stroke-linejoin"];function cot(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("circle",{cx:"24",cy:"24",r:"18"},null,-1),I("path",{d:"M24 13v10l6.5 7"},null,-1)]),14,uot)}var FB=Ve(lot,[["render",cot]]);const dot=Object.assign(FB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+FB.name,FB)}}),fot=Se({name:"IconShake",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-shake`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),hot=["stroke-width","stroke-linecap","stroke-linejoin"];function pot(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M43.092 27.536 31.778 38.849M20.465 4.91 9.15 16.221m9.192 14.85a1 1 0 1 1-1.414-1.415 1 1 0 0 1 1.414 1.414ZM6.323 28.95 19.05 41.678a1 1 0 0 0 1.415 0l21.213-21.213a1 1 0 0 0 0-1.415L28.95 6.322a1 1 0 0 0-1.415 0L6.322 27.536a1 1 0 0 0 0 1.414Z"},null,-1),I("circle",{cx:"17.637",cy:"30.364",r:"1",transform:"rotate(45 17.637 30.364)",fill:"currentColor",stroke:"none"},null,-1)]),14,hot)}var jB=Ve(fot,[["render",pot]]);const vot=Object.assign(jB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+jB.name,jB)}}),mot=Se({name:"IconSkin",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-skin`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),got=["stroke-width","stroke-linecap","stroke-linejoin"];function yot(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M17.936 6H7a1 1 0 0 0-1 1v17.559a1 1 0 0 0 1 1h4V40a1 1 0 0 0 1 1h24a1 1 0 0 0 1-1V25.559h4a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1H30.064C28.854 7.23 26.59 9.059 24 9.059S19.147 7.23 17.936 6Z"},null,-1)]),14,got)}var VB=Ve(mot,[["render",yot]]);const bot=Object.assign(VB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+VB.name,VB)}}),_ot=Se({name:"IconStamp",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-stamp`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Sot=["stroke-width","stroke-linecap","stroke-linejoin"];function kot(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M7 33a1 1 0 0 1 1-1h32a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1v-7ZM29.081 21.18a8 8 0 1 0-10.163 0L14 32h20l-4.919-10.82Z"},null,-1)]),14,Sot)}var zB=Ve(_ot,[["render",kot]]);const xot=Object.assign(zB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+zB.name,zB)}}),Cot=Se({name:"IconStorage",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-storage`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),wot=["stroke-width","stroke-linecap","stroke-linejoin"];function Eot(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M7 18h34v12H7V18ZM40 6H8a1 1 0 0 0-1 1v11h34V7a1 1 0 0 0-1-1ZM7 30h34v11a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1V30Z"},null,-1),I("path",{d:"M13.02 36H13v.02h.02V36Z"},null,-1),I("path",{d:"M13 12v-2h-2v2h2Zm.02 0h2v-2h-2v2Zm0 .02v2h2v-2h-2Zm-.02 0h-2v2h2v-2ZM13 14h.02v-4H13v4Zm-1.98-2v.02h4V12h-4Zm2-1.98H13v4h.02v-4Zm1.98 2V12h-4v.02h4Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{d:"M13.02 24H13v.02h.02V24Z"},null,-1)]),14,wot)}var UB=Ve(Cot,[["render",Eot]]);const bV=Object.assign(UB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+UB.name,UB)}}),Tot=Se({name:"IconSubscribeAdd",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-subscribe-add`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Aot=["stroke-width","stroke-linecap","stroke-linejoin"];function Iot(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24.53 6.007H9.97c-.535 0-.97.449-.97 1.003V41.8c0 .148.152.245.28.179l15.25-7.881 14.248 7.88c.129.067.28-.03.28-.179V22.06M27.413 11.023h6.794m0 0H41m-6.794 0V4m0 7.023v7.023"},null,-1)]),14,Aot)}var HB=Ve(Tot,[["render",Iot]]);const Lot=Object.assign(HB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+HB.name,HB)}}),Dot=Se({name:"IconSubscribe",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-subscribe`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Pot=["stroke-width","stroke-linecap","stroke-linejoin"];function Rot(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M9 7v34.667a.2.2 0 0 0 .294.176L24 34l14.706 7.843a.2.2 0 0 0 .294-.176V7a1 1 0 0 0-1-1H10a1 1 0 0 0-1 1Z"},null,-1)]),14,Pot)}var WB=Ve(Dot,[["render",Rot]]);const Mot=Object.assign(WB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+WB.name,WB)}}),Oot=Se({name:"IconSubscribed",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-subscribed`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),$ot=["stroke-width","stroke-linecap","stroke-linejoin"];function Bot(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m31.289 15.596-9.193 9.193-4.95-4.95M24 34l14.706 7.843a.2.2 0 0 0 .294-.176V7a1 1 0 0 0-1-1H10a1 1 0 0 0-1 1v34.667a.2.2 0 0 0 .294.176L24 34Z"},null,-1)]),14,$ot)}var GB=Ve(Oot,[["render",Bot]]);const Not=Object.assign(GB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+GB.name,GB)}}),Fot=Se({name:"IconSun",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-sun`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),jot=["stroke-width","stroke-linecap","stroke-linejoin"];function Vot(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("circle",{cx:"24",cy:"24",r:"7"},null,-1),I("path",{d:"M23 7h2v2h-2zM23 39h2v2h-2zM41 23v2h-2v-2zM9 23v2H7v-2zM36.73 35.313l-1.415 1.415-1.414-1.415 1.414-1.414zM14.099 12.686l-1.414 1.415-1.414-1.415 1.414-1.414zM12.687 36.728l-1.414-1.415 1.414-1.414 1.414 1.414zM35.314 14.1 33.9 12.686l1.414-1.414 1.415 1.414z"},null,-1),I("path",{fill:"currentColor",stroke:"none",d:"M23 7h2v2h-2zM23 39h2v2h-2zM41 23v2h-2v-2zM9 23v2H7v-2zM36.73 35.313l-1.415 1.415-1.414-1.415 1.414-1.414zM14.099 12.686l-1.414 1.415-1.414-1.415 1.414-1.414zM12.687 36.728l-1.414-1.415 1.414-1.414 1.414 1.414zM35.314 14.1 33.9 12.686l1.414-1.414 1.415 1.414z"},null,-1)]),14,jot)}var KB=Ve(Fot,[["render",Vot]]);const zot=Object.assign(KB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+KB.name,KB)}}),Uot=Se({name:"IconTag",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-tag`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Hot=["stroke-width","stroke-linecap","stroke-linejoin"];function Wot(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24.835 6.035a1 1 0 0 1 .903-.273l12.964 2.592a1 1 0 0 1 .784.785l2.593 12.963a1 1 0 0 1-.274.904L21.678 43.133a1 1 0 0 1-1.415 0L4.708 27.577a1 1 0 0 1 0-1.414L24.835 6.035Z"},null,-1),I("path",{d:"M31.577 17.346a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"},null,-1),I("path",{d:"M31.582 17.349a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z",fill:"currentColor",stroke:"none"},null,-1)]),14,Hot)}var qB=Ve(Uot,[["render",Wot]]);const Got=Object.assign(qB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+qB.name,qB)}}),Kot=Se({name:"IconTags",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-tags`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),qot=["stroke-width","stroke-linecap","stroke-linejoin"];function Yot(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m37.581 28.123-14.849 14.85a1 1 0 0 1-1.414 0L8.59 30.243m25.982-22.68-10.685-.628a1 1 0 0 0-.766.291L9.297 21.052a1 1 0 0 0 0 1.414L20.61 33.78a1 1 0 0 0 1.415 0l13.824-13.825a1 1 0 0 0 .291-.765l-.628-10.686a1 1 0 0 0-.94-.94Zm-6.874 7.729a1 1 0 1 1 1.414-1.414 1 1 0 0 1-1.414 1.414Z"},null,-1),I("path",{d:"M27.697 15.292a1 1 0 1 1 1.414-1.414 1 1 0 0 1-1.414 1.414Z",fill:"currentColor",stroke:"none"},null,-1)]),14,qot)}var YB=Ve(Kot,[["render",Yot]]);const Xot=Object.assign(YB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+YB.name,YB)}}),Zot=Se({name:"IconThunderbolt",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-thunderbolt`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Jot=["stroke-width","stroke-linecap","stroke-linejoin"];function Qot(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M27.824 5.203A.1.1 0 0 1 28 5.27V21h10.782a.1.1 0 0 1 .075.165L20.176 42.797A.1.1 0 0 1 20 42.73V27H9.219a.1.1 0 0 1-.076-.165L27.824 5.203Z"},null,-1)]),14,Jot)}var XB=Ve(Zot,[["render",Qot]]);const est=Object.assign(XB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+XB.name,XB)}}),tst=Se({name:"IconTool",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-tool`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),nst=["stroke-width","stroke-linecap","stroke-linejoin"];function rst(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M19.994 11.035c3.66-3.659 9.094-4.46 13.531-2.405a.1.1 0 0 1 .028.16l-6.488 6.488a1 1 0 0 0 0 1.414l4.243 4.243a1 1 0 0 0 1.414 0l6.488-6.488a.1.1 0 0 1 .16.028c2.056 4.437 1.254 9.872-2.405 13.53-3.695 3.696-9.2 4.477-13.66 2.347L12.923 40.733a1 1 0 0 1-1.414 0L7.266 36.49a1 1 0 0 1 0-1.414l10.382-10.382c-2.13-4.46-1.349-9.965 2.346-13.66Z"},null,-1)]),14,nst)}var ZB=Ve(tst,[["render",rst]]);const ist=Object.assign(ZB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+ZB.name,ZB)}}),ost=Se({name:"IconTrophy",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-trophy`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),sst=["stroke-width","stroke-linecap","stroke-linejoin"];function ast(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24 33c-6.075 0-11-4.925-11-11m11 11c6.075 0 11-4.925 11-11M24 33v8M13 22V7h22v15m-22 0V9H7v7a6 6 0 0 0 6 6Zm22 0V9h6v7a6 6 0 0 1-6 6ZM12 41h24"},null,-1)]),14,sst)}var JB=Ve(ost,[["render",ast]]);const lst=Object.assign(JB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+JB.name,JB)}}),ust=Se({name:"IconUnlock",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-unlock`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),cst=["stroke-width","stroke-linecap","stroke-linejoin"];function dst(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("rect",{x:"7",y:"21",width:"34",height:"20",rx:"1"},null,-1),I("path",{d:"M44 15a9 9 0 1 0-18 0v6M24 35v-8"},null,-1)]),14,cst)}var QB=Ve(ust,[["render",dst]]);const fst=Object.assign(QB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+QB.name,QB)}}),hst=Se({name:"IconUserAdd",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-user-add`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),pst=["stroke-width","stroke-linecap","stroke-linejoin"];function vst(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M25 27h-8c-5.523 0-10 4.477-10 10v4h18m11-14v8m0 0v8m0-8h8m-8 0h-8m3-21a7 7 0 1 1-14 0 7 7 0 0 1 14 0Z"},null,-1)]),14,pst)}var eN=Ve(hst,[["render",vst]]);const mst=Object.assign(eN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+eN.name,eN)}}),gst=Se({name:"IconUserGroup",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-user-group`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),yst=["stroke-width","stroke-linecap","stroke-linejoin"];function bst(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("circle",{cx:"18",cy:"15",r:"7"},null,-1),I("circle",{cx:"34",cy:"19",r:"4"},null,-1),I("path",{d:"M6 34a6 6 0 0 1 6-6h12a6 6 0 0 1 6 6v6H6v-6ZM34 30h4a4 4 0 0 1 4 4v4h-8"},null,-1)]),14,yst)}var tN=Ve(gst,[["render",bst]]);const _st=Object.assign(tN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+tN.name,tN)}}),Sst=Se({name:"IconUser",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-user`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),kst=["stroke-width","stroke-linecap","stroke-linejoin"];function xst(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M7 37c0-4.97 4.03-8 9-8h16c4.97 0 9 3.03 9 8v3a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1v-3Z"},null,-1),I("circle",{cx:"24",cy:"15",r:"8"},null,-1)]),14,kst)}var nN=Ve(Sst,[["render",xst]]);const Cst=Object.assign(nN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+nN.name,nN)}}),wst=Se({name:"IconVideoCamera",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-video-camera`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Est=["stroke-width","stroke-linecap","stroke-linejoin"];function Tst(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M33 18v12m0-12v-6a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1v24a1 1 0 0 0 1 1h25a1 1 0 0 0 1-1v-6m0-12 8.713-2.614a1 1 0 0 1 1.287.958v15.312a1 1 0 0 1-1.287.958L33 30M11 19h6"},null,-1)]),14,Est)}var rN=Ve(wst,[["render",Tst]]);const $ve=Object.assign(rN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+rN.name,rN)}}),Ast=Se({name:"IconWifi",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-wifi`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Ist=["stroke-width","stroke-linecap","stroke-linejoin"];function Lst(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M31.587 31.485A9.978 9.978 0 0 0 24 28a9.977 9.977 0 0 0-7.586 3.485M37.255 25.822A17.953 17.953 0 0 0 24 20a17.953 17.953 0 0 0-13.256 5.822M43.618 19.449C38.696 14.246 31.728 11 24 11c-7.727 0-14.696 3.246-19.617 8.449"},null,-1),I("path",{d:"M27.535 35.465a5 5 0 0 0-7.07 0L24 39l3.535-3.535Z",fill:"currentColor",stroke:"none"},null,-1)]),14,Ist)}var iN=Ve(Ast,[["render",Lst]]);const Dst=Object.assign(iN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+iN.name,iN)}}),Pst=Se({name:"IconWoman",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-woman`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Rst=["stroke-width","stroke-linecap","stroke-linejoin"];function Mst(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ke(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24 29c6.075 0 11-4.925 11-11S30.075 7 24 7s-11 4.925-11 11 4.925 11 11 11Zm0 0v15M15 36h18"},null,-1)]),14,Rst)}var oN=Ve(Pst,[["render",Mst]]);const Ost=Object.assign(oN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+oN.name,oN)}}),_V={IconArrowDown:gV,IconArrowFall:zHe,IconArrowLeft:qH,IconArrowRight:YHe,IconArrowRise:QHe,IconArrowUp:yV,IconCaretDown:FH,IconCaretLeft:SH,IconCaretRight:_H,IconCaretUp:Q0e,IconDoubleDown:sWe,IconDoubleLeft:zpe,IconDoubleRight:Upe,IconDoubleUp:cWe,IconDownCircle:pWe,IconDown:Zh,IconDragArrow:yve,IconExpand:SWe,IconLeftCircle:wWe,IconLeft:Al,IconMenuFold:O0e,IconMenuUnfold:$0e,IconRightCircle:IWe,IconRight:Hi,IconRotateLeft:g0e,IconRotateRight:y0e,IconShrink:RWe,IconSwap:bve,IconToBottom:jWe,IconToLeft:HWe,IconToRight:qWe,IconToTop:ape,IconUpCircle:JWe,IconUp:Z_,IconCheckCircleFill:Yh,IconCloseCircleFill:Zm,IconExclamationCircleFill:If,IconExclamationPolygonFill:nGe,IconInfoCircleFill:i3,IconMinusCircleFill:sGe,IconPlusCircleFill:cGe,IconQuestionCircleFill:pGe,IconCheckCircle:nc,IconCheckSquare:SGe,IconCheck:eg,IconClockCircle:o_,IconCloseCircle:wGe,IconClose:ds,IconExclamationCircle:Sd,IconExclamation:OH,IconInfoCircle:Pc,IconInfo:U0e,IconMinusCircle:OGe,IconMinus:Rm,IconPlusCircle:FGe,IconPlus:Cf,IconQuestionCircle:AH,IconQuestion:UGe,IconStop:KGe,IconHeartFill:YH,IconStarFill:$H,IconThumbDownFill:eKe,IconThumbUpFill:iKe,IconAt:lKe,IconCloudDownload:fKe,IconCodeBlock:_ve,IconCodeSquare:bKe,IconCode:E0,IconCustomerService:EKe,IconDownload:mm,IconExport:Z5,IconEyeInvisible:tpe,IconEye:k0,IconHeart:J5,IconHistory:My,IconHome:c3,IconImport:Q5,IconLaunch:Sve,IconList:XH,IconMessageBanned:eqe,IconMessage:iqe,IconMoreVertical:lqe,IconMore:F0,IconPoweroff:fqe,IconRefresh:Ed,IconReply:bqe,IconSave:zp,IconScan:Eqe,IconSearch:Lm,IconSelectAll:Lqe,IconSend:Mqe,IconSettings:Lf,IconShareAlt:Vqe,IconShareExternal:Wqe,IconShareInternal:Yqe,IconStar:eA,IconSync:nYe,IconThumbDown:sYe,IconThumbUp:cYe,IconTranslate:pYe,IconUpload:w0,IconVoice:yYe,IconAlignCenter:kYe,IconAlignLeft:EYe,IconAlignRight:LYe,IconAttachment:MYe,IconBgColors:kve,IconBold:VYe,IconBrush:WYe,IconCopy:Y5,IconDelete:fc,IconEdit:HH,IconEraser:YYe,IconFilter:jH,IconFindReplace:QYe,IconFontColors:xve,IconFormula:sXe,IconH1:cXe,IconH2:pXe,IconH3:yXe,IconH4:kXe,IconH5:EXe,IconH6:LXe,IconH7:MXe,IconHighlight:NXe,IconItalic:zXe,IconLineHeight:GXe,IconLink:Mc,IconObliqueLine:upe,IconOrderedList:XXe,IconOriginalSize:b0e,IconPaste:eZe,IconQuote:iZe,IconRedo:lZe,IconScissor:fZe,IconSortAscending:Cve,IconSortDescending:wve,IconSort:kZe,IconStrikethrough:EZe,IconUnderline:LZe,IconUndo:MZe,IconUnorderedList:NZe,IconZoomIn:m0e,IconZoomOut:v0e,IconMuteFill:zZe,IconPauseCircleFill:GZe,IconPlayArrowFill:cve,IconPlayCircleFill:XZe,IconSkipNextFill:eJe,IconSkipPreviousFill:iJe,IconSoundFill:lJe,IconBackward:fJe,IconForward:mJe,IconFullscreenExit:ZH,IconFullscreen:z5,IconLiveBroadcast:s_,IconMusic:EJe,IconMute:LJe,IconPauseCircle:MJe,IconPause:uve,IconPlayArrow:qa,IconPlayCircle:Oy,IconRecordStop:HJe,IconRecord:qJe,IconSkipNext:JJe,IconSkipPrevious:nQe,IconSound:Eve,IconBytedanceColor:uQe,IconLarkColor:hQe,IconTiktokColor:gQe,IconXiguaColor:SQe,IconFaceBookCircleFill:wQe,IconFacebookSquareFill:IQe,IconGoogleCircleFill:RQe,IconQqCircleFill:BQe,IconTwitterCircleFill:VQe,IconWeiboCircleFill:WQe,IconAlipayCircle:YQe,IconCodeSandbox:QQe,IconCodepen:ret,IconFacebook:aet,IconGithub:Tve,IconGitlab:vet,IconGoogle:bet,IconQqZone:Cet,IconQq:Aet,IconTwitter:Pet,IconWechat:$et,IconWechatpay:jet,IconWeibo:Het,IconChineseFill:qet,IconEnglishFill:Jet,IconFaceFrownFill:z0e,IconFaceMehFill:uV,IconFaceSmileFill:V0e,IconMoonFill:ntt,IconPenFill:stt,IconSunFill:ctt,IconApps:Ave,IconArchive:gtt,IconBarChart:Ive,IconBook:tA,IconBookmark:Ttt,IconBranch:Dtt,IconBug:$y,IconBulb:Ntt,IconCalendarClock:ztt,IconCalendar:tS,IconCamera:Gtt,IconCloud:Xtt,IconCommand:ent,IconCommon:int,IconCompass:lnt,IconComputer:JH,IconCopyright:Lve,IconDashboard:ynt,IconDesktop:q8,IconDice:wnt,IconDragDotVertical:U5,IconDragDot:w0e,IconDriveFile:Int,IconEar:Rnt,IconEmail:Bnt,IconEmpty:aH,IconExperiment:Vnt,IconFileAudio:vve,IconFileImage:hve,IconFilePdf:fve,IconFileVideo:pve,IconFile:q5,IconFire:Dve,IconFolderAdd:qnt,IconFolderDelete:Jnt,IconFolder:Pve,IconGift:ort,IconIdcard:urt,IconImageClose:M5,IconImage:nA,IconInteraction:mrt,IconLanguage:Rve,IconLayers:xrt,IconLayout:Trt,IconLoading:Xa,IconLocation:Drt,IconLock:Ort,IconLoop:Frt,IconMan:Urt,IconMenu:Mve,IconMindMapping:Xrt,IconMobile:Ove,IconMoon:rit,IconMosaic:ait,IconNav:dit,IconNotificationClose:vit,IconNotification:bit,IconPalette:QH,IconPen:Eit,IconPhone:Lit,IconPrinter:Mit,IconPublic:Nit,IconPushpin:zit,IconQrcode:Git,IconRelation:Xit,IconRobotAdd:eot,IconRobot:iot,IconSafe:bf,IconSchedule:dot,IconShake:vot,IconSkin:bot,IconStamp:xot,IconStorage:bV,IconSubscribeAdd:Lot,IconSubscribe:Mot,IconSubscribed:Not,IconSun:zot,IconTag:Got,IconTags:Xot,IconThunderbolt:est,IconTool:ist,IconTrophy:lst,IconUnlock:fst,IconUserAdd:mst,IconUserGroup:_st,IconUser:Cst,IconVideoCamera:$ve,IconWifi:Dst,IconWoman:Ost},$st=(e,t)=>{for(const n of Object.keys(_V))e.use(_V[n],t)},Bst={..._V,install:$st},xr=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},Nst=Se({components:{},setup(){const e=fe(!1),t=()=>{try{const o=localStorage.getItem("appSettings");if(o)return JSON.parse(o).searchAggregation||!1}catch(o){console.error("获取聚搜状态失败:",o)}return!1},n=fe(t()),r=()=>{n.value=t()};return window.addEventListener("storage",r),setInterval(r,1e3),{showConfirmModal:e,searchAggregationEnabled:n}},methods:{goBack(){Et.info("前进按钮")},goForward(){Et.info("后退按钮")},refreshPage(){Et.info("刷新页面"),window.location.reload()},onSearch(e){Et.info(`搜索内容: ${e}`)},minimize(){Et.info("最小化窗口"),this.exitFullScreen()},maximize(){Et.info("最大化窗口"),this.enterFullScreen()},showCloseConfirm(){this.showConfirmModal=!0},hideCloseConfirm(){this.showConfirmModal=!1},confirmClose(){this.showConfirmModal=!1,Et.info("正在关闭应用...");try{window.opener||window.open("about:blank","_self"),window.close(),setTimeout(()=>{window.closed||(Et.warning("无法自动关闭窗口,请手动关闭浏览器标签页"),window.location.href="about:blank")},500)}catch(e){console.error("关闭窗口失败:",e),Et.error("关闭失败,请手动关闭浏览器标签页")}},enterFullScreen(){let e=document.documentElement;e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen&&e.msRequestFullscreen()},exitFullScreen(){document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen()}}}),Fst={class:"header-left"},jst={key:0,class:"header-center"},Vst={class:"header-right"},zst={class:"modal-header"},Ust={class:"modal-footer"};function Hst(e,t,n,r,o,a){const s=Ie("icon-left"),l=Ie("a-button"),c=Ie("icon-right"),d=Ie("icon-refresh"),h=Ie("a-input-search"),p=Ie("icon-shrink"),v=Ie("icon-expand"),g=Ie("icon-close"),y=Ie("icon-exclamation-circle-fill"),S=Ie("a-layout-header");return z(),Ye(S,{class:"header"},{default:de(()=>[I("div",Fst,[O(l,{shape:"circle",onClick:e.goBack},{icon:de(()=>[O(s)]),_:1},8,["onClick"]),O(l,{shape:"circle",onClick:e.goForward},{icon:de(()=>[O(c)]),_:1},8,["onClick"]),O(l,{shape:"circle",onClick:e.refreshPage},{icon:de(()=>[O(d)]),_:1},8,["onClick"])]),e.searchAggregationEnabled?(z(),Q("div",jst,[O(h,{placeholder:"搜索内容...","enter-button":"搜索",onSearch:e.onSearch},null,8,["onSearch"])])):Le("",!0),I("div",Vst,[O(l,{shape:"circle",onClick:e.minimize},{icon:de(()=>[O(p)]),_:1},8,["onClick"]),O(l,{shape:"circle",onClick:e.maximize},{icon:de(()=>[O(v)]),_:1},8,["onClick"]),O(l,{shape:"circle",onClick:e.showCloseConfirm},{icon:de(()=>[O(g)]),_:1},8,["onClick"])]),e.showConfirmModal?(z(),Q("div",{key:1,class:"confirm-modal-overlay",onClick:t[1]||(t[1]=(...k)=>e.hideCloseConfirm&&e.hideCloseConfirm(...k))},[I("div",{class:"confirm-modal",onClick:t[0]||(t[0]=us(()=>{},["stop"]))},[I("div",zst,[O(y,{class:"warning-icon"}),t[2]||(t[2]=I("h3",{class:"modal-title"},"确认关闭",-1))]),t[5]||(t[5]=I("div",{class:"modal-content"},[I("p",{class:"modal-message"},"你确认要关闭当前应用吗?"),I("p",{class:"modal-submessage"},"关闭后将退出应用程序")],-1)),I("div",Ust,[O(l,{class:"cancel-btn",onClick:e.hideCloseConfirm},{default:de(()=>[...t[3]||(t[3]=[We(" 取消 ",-1)])]),_:1},8,["onClick"]),O(l,{type:"primary",status:"danger",class:"confirm-btn",onClick:e.confirmClose},{default:de(()=>[...t[4]||(t[4]=[We(" 确认关闭 ",-1)])]),_:1},8,["onClick"])])])])):Le("",!0)]),_:1})}const Wst=xr(Nst,[["render",Hst],["__scopeId","data-v-98f3d1c0"]]);/*! * pinia v2.3.1 * (c) 2025 Eduardo San Martin Morote * @license MIT */let Bve;const rA=e=>Bve=e,Nve=Symbol();function SV(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var fb;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(fb||(fb={}));function Gst(){const e=TU(!0),t=e.run(()=>fe({}));let n=[],r=[];const o=f5({install(a){rA(o),o._a=a,a.provide(Nve,o),a.config.globalProperties.$pinia=o,r.forEach(s=>n.push(s)),r=[]},use(a){return this._a?n.push(a):r.push(a),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return o}const Fve=()=>{};function Kre(e,t,n,r=Fve){e.push(t);const o=()=>{const a=e.indexOf(t);a>-1&&(e.splice(a,1),r())};return!n&&s5()&&AU(o),o}function l1(e,...t){e.slice().forEach(n=>{n(...t)})}const Kst=e=>e(),qre=Symbol(),sN=Symbol();function kV(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,r)=>e.set(r,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],o=e[n];SV(o)&&SV(r)&&e.hasOwnProperty(n)&&!Bo(r)&&!gf(r)?e[n]=kV(o,r):e[n]=r}return e}const qst=Symbol();function Yst(e){return!SV(e)||!e.hasOwnProperty(qst)}const{assign:Up}=Object;function Xst(e){return!!(Bo(e)&&e.effect)}function Zst(e,t,n,r){const{state:o,actions:a,getters:s}=t,l=n.state.value[e];let c;function d(){l||(n.state.value[e]=o?o():{});const h=nn(n.state.value[e]);return Up(h,a,Object.keys(s||{}).reduce((p,v)=>(p[v]=f5(j(()=>{rA(n);const g=n._s.get(e);return s[v].call(g,g)})),p),{}))}return c=jve(e,d,t,n,r,!0),c}function jve(e,t,n={},r,o,a){let s;const l=Up({actions:{}},n),c={deep:!0};let d,h,p=[],v=[],g;const y=r.state.value[e];!a&&!y&&(r.state.value[e]={}),fe({});let S;function k(M){let $;d=h=!1,typeof M=="function"?(M(r.state.value[e]),$={type:fb.patchFunction,storeId:e,events:g}):(kV(r.state.value[e],M),$={type:fb.patchObject,payload:M,storeId:e,events:g});const L=S=Symbol();Cn().then(()=>{S===L&&(d=!0)}),h=!0,l1(p,$,r.state.value[e])}const C=a?function(){const{state:$}=n,L=$?$():{};this.$patch(B=>{Up(B,L)})}:Fve;function x(){s.stop(),p=[],v=[],r._s.delete(e)}const E=(M,$="")=>{if(qre in M)return M[sN]=$,M;const L=function(){rA(r);const B=Array.from(arguments),F=[],W=[];function U(oe){F.push(oe)}function G(oe){W.push(oe)}l1(v,{args:B,name:L[sN],store:T,after:U,onError:G});let X;try{X=M.apply(this&&this.$id===e?this:T,B)}catch(oe){throw l1(W,oe),oe}return X instanceof Promise?X.then(oe=>(l1(F,oe),oe)).catch(oe=>(l1(W,oe),Promise.reject(oe))):(l1(F,X),X)};return L[qre]=!0,L[sN]=$,L},_={_p:r,$id:e,$onAction:Kre.bind(null,v),$patch:k,$reset:C,$subscribe(M,$={}){const L=Kre(p,M,$.detached,()=>B()),B=s.run(()=>Rt(()=>r.state.value[e],F=>{($.flush==="sync"?h:d)&&M({storeId:e,type:fb.direct,events:g},F)},Up({},c,$)));return L},$dispose:x},T=Xt(_);r._s.set(e,T);const P=(r._a&&r._a.runWithContext||Kst)(()=>r._e.run(()=>(s=TU()).run(()=>t({action:E}))));for(const M in P){const $=P[M];if(Bo($)&&!Xst($)||gf($))a||(y&&Yst($)&&(Bo($)?$.value=y[M]:kV($,y[M])),r.state.value[e][M]=$);else if(typeof $=="function"){const L=E($,M);P[M]=L,l.actions[M]=$}}return Up(T,P),Up(Bi(T),P),Object.defineProperty(T,"$state",{get:()=>r.state.value[e],set:M=>{k($=>{Up($,M)})}}),r._p.forEach(M=>{Up(T,s.run(()=>M({store:T,app:r._a,pinia:r,options:l})))}),y&&a&&n.hydrate&&n.hydrate(T.$state,y),d=!0,h=!0,T}/*! #__NO_SIDE_EFFECTS__ */function tg(e,t,n){let r,o;const a=typeof t=="function";typeof e=="string"?(r=e,o=a?n:t):(o=e,r=e.id);function s(l,c){const d=Cfe();return l=l||(d?On(Nve,null):null),l&&rA(l),l=Bve,l._s.has(r)||(a?jve(r,t,o,l):Zst(r,o,l)),l._s.get(r)}return s.$id=r,s}const iS=tg("pagination",{state:()=>({statsText:"",isVisible:!1,currentRoute:""}),actions:{updateStats(e){this.statsText=e,this.isVisible=!!e},clearStats(){this.statsText="",this.isVisible=!1},setCurrentRoute(e){this.currentRoute=e,e!=="/video"&&this.clearStats()}},getters:{shouldShow:e=>e.isVisible&&e.currentRoute==="/video"}}),Jst={class:"footer-content"},Qst={key:0,class:"pagination-stats"},eat={class:"stats-text"},tat={key:1,class:"default-footer"},nat={class:"footer-info"},rat={class:"copyright-section"},iat={class:"copyright-text"},oat={class:"project-section"},sat={class:"license-section"},aat={__name:"Footer",setup(e){const t=iS(),n=j(()=>new Date().getFullYear()),r=()=>{Et.success("正在跳转到项目主页...")};return(o,a)=>(z(),Q("div",Jst,[et(t).shouldShow?(z(),Q("div",Qst,[I("span",eat,ze(et(t).statsText),1)])):(z(),Q("div",tat,[I("div",nat,[I("div",rat,[O(et(Lve),{class:"footer-icon"}),I("span",iat,ze(n.value)+" DrPlayer",1)]),a[1]||(a[1]=I("div",{class:"separator"},"|",-1)),I("div",oat,[O(et(Tve),{class:"footer-icon"}),I("a",{href:"https://github.com/hjdhnx/DrPlayer",target:"_blank",class:"project-link",onClick:r}," GitHub ")]),a[2]||(a[2]=I("div",{class:"separator"},"|",-1)),I("div",sat,[O(et(bf),{class:"footer-icon"}),a[0]||(a[0]=I("span",{class:"license-text"},"hjdhnx",-1))])])]))]))}},lat=xr(aat,[["__scopeId","data-v-3b2cc39c"]]),uat="/apps/drplayer/assets/logo-5LtmOeIe.png";window._iconfont_svg_string_5032989='',(e=>{var t=(n=(n=document.getElementsByTagName("script"))[n.length-1]).getAttribute("data-injectcss"),n=n.getAttribute("data-disable-injectsvg");if(!n){var r,o,a,s,l,c=function(p,v){v.parentNode.insertBefore(p,v)};if(t&&!e.__iconfont__svg__cssinject__){e.__iconfont__svg__cssinject__=!0;try{document.write("")}catch(p){console&&console.log(p)}}r=function(){var p,v=document.createElement("div");v.innerHTML=e._iconfont_svg_string_5032989,(v=v.getElementsByTagName("svg")[0])&&(v.setAttribute("aria-hidden","true"),v.style.position="absolute",v.style.width=0,v.style.height=0,v.style.overflow="hidden",v=v,(p=document.body).firstChild?c(v,p.firstChild):p.appendChild(v))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(r,0):(o=function(){document.removeEventListener("DOMContentLoaded",o,!1),r()},document.addEventListener("DOMContentLoaded",o,!1)):document.attachEvent&&(a=r,s=e.document,l=!1,h(),s.onreadystatechange=function(){s.readyState=="complete"&&(s.onreadystatechange=null,d())})}function d(){l||(l=!0,a())}function h(){try{s.documentElement.doScroll("left")}catch{return void setTimeout(h,50)}d()}})(window);const cat=Se({components:{IconCaretRight:_H,IconCaretLeft:SH,IconHome:c3,IconCalendar:tS,Header:Wst,Footer:lat},setup(){const e=k5(),t=iS(),n=fe(!1),r=fe([{id:1,name:"主页",icon:"icon-zhuye",route:"/"},{id:2,name:"点播",icon:"icon-dianbo",route:"/video"},{id:4,name:"直播",icon:"icon-shipinzhibo",route:"/live"},{id:5,name:"书画柜",icon:"icon-shugui",route:"/book-gallery"},{id:6,name:"解析",icon:"icon-jiexi",route:"/parser"},{id:7,name:"收藏",icon:"icon-shoucang",route:"/collection"},{id:8,name:"历史",icon:"icon-lishi",route:"/history"},{id:10,name:"测试",icon:"icon-ceshi",route:"/action-test"},{id:9,name:"设置",icon:"icon-shezhi",route:"/settings"}]),o=fe(uat),a=fe("欢迎使用DrPlayer");return Rt(()=>e.path,c=>{t.setCurrentRoute(c)},{immediate:!0}),{siderCollapsed:n,menuItems:r,logoSrc:o,logoDesc:a,onClickMenuItem:c=>{let d=r.value.find(p=>p.id===c).name,h=`You select ${c},${d}`;console.log(h)},onSiderCollapse:c=>{n.value=c,console.log("侧边栏折叠状态:",c)}}}}),dat={class:"app-container"},fat={class:"fixed-header"},hat={class:"logo"},pat={style:{width:"20px",height:"20px","margin-right":"8px"}},vat=["href"],mat={class:"content-wrapper"},gat={class:"fixed-footer"};function yat(e,t,n,r,o,a){const s=Ie("Header"),l=Ie("a-image"),c=Ie("a-popover"),d=Ie("a-menu-item"),h=Ie("router-link"),p=Ie("a-menu"),v=Ie("IconCaretRight"),g=Ie("IconCaretLeft"),y=Ie("a-layout-sider"),S=Ie("Footer"),k=Ie("a-layout");return z(),Q("div",dat,[I("div",fat,[O(s)]),O(k,{class:"layout-demo"},{default:de(()=>[O(y,{collapsible:"",breakpoint:"xl",class:"fixed-sider",onCollapse:e.onSiderCollapse},{trigger:de(({collapsed:C})=>[C?(z(),Ye(v,{key:0})):(z(),Ye(g,{key:1}))]),default:de(()=>[I("div",hat,[O(c,{title:"道长: 您好!"},{content:de(()=>[I("p",null,ze(e.logoDesc),1)]),default:de(()=>[O(l,{width:"100%",src:e.logoSrc,alt:e.logoDesc,preview:!1,onClick:t[0]||(t[0]=()=>this.$message.success("欢迎使用Hipy定制版壳子"))},null,8,["src","alt"])]),_:1})]),O(p,{"default-open-keys":["1"],"default-selected-keys":["1"],style:{width:"100%"},onMenuItemClick:e.onClickMenuItem},{default:de(()=>[(z(!0),Q(Nt,null,gn(e.menuItems,(C,x)=>(z(),Ye(h,{key:x,to:C.route,class:"menu-item"},{default:de(()=>[(z(),Ye(d,{key:C.id},{default:de(()=>[(z(),Q("svg",pat,[I("use",{href:`#${C.icon}`},null,8,vat)])),We(" "+ze(C.name),1)]),_:2},1024))]),_:2},1032,["to"]))),128))]),_:1},8,["onMenuItemClick"])]),_:1},8,["onCollapse"]),I("div",{class:ue(["main-content",{"sider-collapsed":e.siderCollapsed}])},[I("div",mat,[vt(e.$slots,"default",{},void 0,!0)]),I("div",gat,[O(S)])],2)]),_:3})])}const bat=xr(cat,[["render",yat],["__scopeId","data-v-7cb7a4e5"]]),hb=fe({show:!1,message:"",type:"success",duration:3e3});function ar(e,t="success",n=3e3){hb.value={show:!0,message:e,type:t,duration:n},setTimeout(()=>{_at()},n)}function _at(){hb.value.show=!1}const Sat={__name:"GlobalToast",setup(e){return(t,n)=>(z(),Ye(qm,{to:"body"},[O(Cs,{name:"action-toast"},{default:de(()=>[et(hb).show?(z(),Q("div",{key:0,class:ue(["action-toast",et(hb).type])},ze(et(hb).message),3)):Le("",!0)]),_:1})]))}},kat=xr(Sat,[["__scopeId","data-v-0de7c39c"]]),iA=tg("visited",{state:()=>({lastClickedVideoId:null,lastClickedVideoName:null}),getters:{isLastClicked:e=>t=>e.lastClickedVideoId===t},actions:{setLastClicked(e,t){e&&(this.lastClickedVideoId=e,this.lastClickedVideoName=t,this.saveToStorage())},clear(){this.lastClickedVideoId=null,this.lastClickedVideoName=null,localStorage.removeItem("last-clicked-video")},saveToStorage(){try{const e={videoId:this.lastClickedVideoId,videoName:this.lastClickedVideoName};localStorage.setItem("last-clicked-video",JSON.stringify(e))}catch(e){console.warn("保存最后点击视频失败:",e)}},loadFromStorage(){try{const e=localStorage.getItem("last-clicked-video");if(e){const t=JSON.parse(e);this.lastClickedVideoId=t.videoId,this.lastClickedVideoName=t.videoName}}catch(e){console.warn("加载最后点击视频失败:",e),this.clear()}}}}),xat={name:"App",components:{Layout:bat,GlobalToast:kat},setup(){const e=iA();return bn(()=>{e.loadFromStorage()}),{}}};function Cat(e,t,n,r,o,a){const s=Ie("router-view"),l=Ie("Layout"),c=Ie("GlobalToast");return z(),Q(Nt,null,[O(l,null,{default:de(()=>[O(s)]),_:1}),O(c)],64)}const wat=xr(xat,[["render",Cat]]);/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */var xV=function(e,t){return xV=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},xV(e,t)};function Vn(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");xV(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Eat=(function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e})(),Tat=(function(){function e(){this.browser=new Eat,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return e})(),zr=new Tat;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(zr.wxa=!0,zr.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?zr.worker=!0:!zr.hasGlobalWindow||"Deno"in window?(zr.node=!0,zr.svgSupported=!0):Aat(navigator.userAgent,zr);function Aat(e,t){var n=t.browser,r=e.match(/Firefox\/([\d.]+)/),o=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),s=/micromessenger/i.test(e);r&&(n.firefox=!0,n.version=r[1]),o&&(n.ie=!0,n.version=o[1]),a&&(n.edge=!0,n.version=a[1],n.newEdge=+a[1].split(".")[0]>18),s&&(n.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,t.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),t.domSupported=typeof document<"u";var l=document.documentElement.style;t.transform3dSupported=(n.ie&&"transition"in l||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),t.transformSupported=t.transform3dSupported||n.ie&&+n.version>=9}var eW=12,Iat="sans-serif",Mm=eW+"px "+Iat,Lat=20,Dat=100,Pat="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function Rat(e){var t={};if(typeof JSON>"u")return t;for(var n=0;n=0)l=s*n.length;else for(var c=0;c>1)%2;l.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[c]+":0",o[d]+":0",r[1-c]+":auto",o[1-d]+":auto",""].join("!important;"),e.appendChild(s),n.push(s)}return n}function rlt(e,t,n){for(var r=n?"invTrans":"trans",o=t[r],a=t.srcCoords,s=[],l=[],c=!0,d=0;d<4;d++){var h=e[d].getBoundingClientRect(),p=2*d,v=h.left,g=h.top;s.push(v,g),c=c&&a&&v===a[p]&&g===a[p+1],l.push(e[d].offsetLeft,e[d].offsetTop)}return c&&o?o:(t.srcCoords=s,t[r]=n?Jre(l,s):Jre(s,l))}function qve(e){return e.nodeName.toUpperCase()==="CANVAS"}var ilt=/([&<>"'])/g,olt={"&":"&","<":"<",">":">",'"':""","'":"'"};function yu(e){return e==null?"":(e+"").replace(ilt,function(t,n){return olt[n]})}var slt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,cN=[],alt=zr.browser.firefox&&+zr.browser.version.split(".")[0]<39;function LV(e,t,n,r){return n=n||{},r?eie(e,t,n):alt&&t.layerX!=null&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):t.offsetX!=null?(n.zrX=t.offsetX,n.zrY=t.offsetY):eie(e,t,n),n}function eie(e,t,n){if(zr.domSupported&&e.getBoundingClientRect){var r=t.clientX,o=t.clientY;if(qve(e)){var a=e.getBoundingClientRect();n.zrX=r-a.left,n.zrY=o-a.top;return}else if(IV(cN,e,r,o)){n.zrX=cN[0],n.zrY=cN[1];return}}n.zrX=n.zrY=0}function oW(e){return e||window.event}function Lc(e,t,n){if(t=oW(t),t.zrX!=null)return t;var r=t.type,o=r&&r.indexOf("touch")>=0;if(o){var s=r!=="touchend"?t.targetTouches[0]:t.changedTouches[0];s&&LV(e,s,t,n)}else{LV(e,t,t,n);var a=llt(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var l=t.button;return t.which==null&&l!==void 0&&slt.test(t.type)&&(t.which=l&1?1:l&2?3:l&4?2:0),t}function llt(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,r=e.deltaY;if(n==null||r==null)return t;var o=Math.abs(r!==0?r:n),a=r>0?-1:r<0?1:n>0?-1:1;return 3*o*a}function ult(e,t,n,r){e.addEventListener(t,n,r)}function clt(e,t,n,r){e.removeEventListener(t,n,r)}var Yve=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},dlt=(function(){function e(){this._track=[]}return e.prototype.recognize=function(t,n,r){return this._doTrack(t,n,r),this._recognize(t)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(t,n,r){var o=t.touches;if(o){for(var a={points:[],touches:[],target:n,event:t},s=0,l=o.length;s1&&r&&r.length>1){var a=tie(r)/tie(o);!isFinite(a)&&(a=1),t.pinchScale=a;var s=flt(r);return t.pinchX=s[0],t.pinchY=s[1],{type:"pinch",target:e[0].target,event:t}}}}};function dy(){return[1,0,0,1,0,0]}function sW(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function hlt(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function fy(e,t,n){var r=t[0]*n[0]+t[2]*n[1],o=t[1]*n[0]+t[3]*n[1],a=t[0]*n[2]+t[2]*n[3],s=t[1]*n[2]+t[3]*n[3],l=t[0]*n[4]+t[2]*n[5]+t[4],c=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=r,e[1]=o,e[2]=a,e[3]=s,e[4]=l,e[5]=c,e}function DV(e,t,n){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+n[0],e[5]=t[5]+n[1],e}function aW(e,t,n,r){r===void 0&&(r=[0,0]);var o=t[0],a=t[2],s=t[4],l=t[1],c=t[3],d=t[5],h=Math.sin(n),p=Math.cos(n);return e[0]=o*p+l*h,e[1]=-o*h+l*p,e[2]=a*p+c*h,e[3]=-a*h+p*c,e[4]=p*(s-r[0])+h*(d-r[1])+r[0],e[5]=p*(d-r[1])-h*(s-r[0])+r[1],e}function plt(e,t,n){var r=n[0],o=n[1];return e[0]=t[0]*r,e[1]=t[1]*o,e[2]=t[2]*r,e[3]=t[3]*o,e[4]=t[4]*r,e[5]=t[5]*o,e}function lW(e,t){var n=t[0],r=t[2],o=t[4],a=t[1],s=t[3],l=t[5],c=n*s-a*r;return c?(c=1/c,e[0]=s*c,e[1]=-a*c,e[2]=-r*c,e[3]=n*c,e[4]=(r*l-s*o)*c,e[5]=(a*o-n*l)*c,e):null}var Wr=(function(){function e(t,n){this.x=t||0,this.y=n||0}return e.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(t,n){return this.x=t,this.y=n,this},e.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},e.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.prototype.scale=function(t){this.x*=t,this.y*=t},e.prototype.scaleAndAdd=function(t,n){this.x+=t.x*n,this.y+=t.y*n},e.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},e.prototype.dot=function(t){return this.x*t.x+this.y*t.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},e.prototype.distance=function(t){var n=this.x-t.x,r=this.y-t.y;return Math.sqrt(n*n+r*r)},e.prototype.distanceSquare=function(t){var n=this.x-t.x,r=this.y-t.y;return n*n+r*r},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(t){if(t){var n=this.x,r=this.y;return this.x=t[0]*n+t[2]*r+t[4],this.y=t[1]*n+t[3]*r+t[5],this}},e.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},e.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},e.set=function(t,n,r){t.x=n,t.y=r},e.copy=function(t,n){t.x=n.x,t.y=n.y},e.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.lenSquare=function(t){return t.x*t.x+t.y*t.y},e.dot=function(t,n){return t.x*n.x+t.y*n.y},e.add=function(t,n,r){t.x=n.x+r.x,t.y=n.y+r.y},e.sub=function(t,n,r){t.x=n.x-r.x,t.y=n.y-r.y},e.scale=function(t,n,r){t.x=n.x*r,t.y=n.y*r},e.scaleAndAdd=function(t,n,r,o){t.x=n.x+r.x*o,t.y=n.y+r.y*o},e.lerp=function(t,n,r,o){var a=1-o;t.x=a*n.x+o*r.x,t.y=a*n.y+o*r.y},e})(),Cx=Math.min,Ex=Math.max,gv=new Wr,yv=new Wr,bv=new Wr,_v=new Wr,q2=new Wr,Y2=new Wr,lo=(function(){function e(t,n,r,o){r<0&&(t=t+r,r=-r),o<0&&(n=n+o,o=-o),this.x=t,this.y=n,this.width=r,this.height=o}return e.prototype.union=function(t){var n=Cx(t.x,this.x),r=Cx(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Ex(t.x+t.width,this.x+this.width)-n:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Ex(t.y+t.height,this.y+this.height)-r:this.height=t.height,this.x=n,this.y=r},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(t){var n=this,r=t.width/n.width,o=t.height/n.height,a=dy();return DV(a,a,[-n.x,-n.y]),plt(a,a,[r,o]),DV(a,a,[t.x,t.y]),a},e.prototype.intersect=function(t,n){if(!t)return!1;t instanceof e||(t=e.create(t));var r=this,o=r.x,a=r.x+r.width,s=r.y,l=r.y+r.height,c=t.x,d=t.x+t.width,h=t.y,p=t.y+t.height,v=!(ay&&(y=E,Sy&&(y=_,C=r.x&&t<=r.x+r.width&&n>=r.y&&n<=r.y+r.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(t,n){t.x=n.x,t.y=n.y,t.width=n.width,t.height=n.height},e.applyTransform=function(t,n,r){if(!r){t!==n&&e.copy(t,n);return}if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var o=r[0],a=r[3],s=r[4],l=r[5];t.x=n.x*o+s,t.y=n.y*a+l,t.width=n.width*o,t.height=n.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}gv.x=bv.x=n.x,gv.y=_v.y=n.y,yv.x=_v.x=n.x+n.width,yv.y=bv.y=n.y+n.height,gv.transform(r),_v.transform(r),yv.transform(r),bv.transform(r),t.x=Cx(gv.x,yv.x,bv.x,_v.x),t.y=Cx(gv.y,yv.y,bv.y,_v.y);var c=Ex(gv.x,yv.x,bv.x,_v.x),d=Ex(gv.y,yv.y,bv.y,_v.y);t.width=c-t.x,t.height=d-t.y},e})(),Xve="silent";function vlt(e,t,n){return{type:e,event:n,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:mlt}}function mlt(){Yve(this.event)}var glt=(function(e){Vn(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.handler=null,n}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t})(Pf),X2=(function(){function e(t,n){this.x=t,this.y=n}return e})(),ylt=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],fN=new lo(0,0,0,0),Zve=(function(e){Vn(t,e);function t(n,r,o,a,s){var l=e.call(this)||this;return l._hovered=new X2(0,0),l.storage=n,l.painter=r,l.painterRoot=a,l._pointerSize=s,o=o||new glt,l.proxy=null,l.setHandlerProxy(o),l._draggingMgr=new Qat(l),l}return t.prototype.setHandlerProxy=function(n){this.proxy&&this.proxy.dispose(),n&&(At(ylt,function(r){n.on&&n.on(r,this[r],this)},this),n.handler=this),this.proxy=n},t.prototype.mousemove=function(n){var r=n.zrX,o=n.zrY,a=Jve(this,r,o),s=this._hovered,l=s.target;l&&!l.__zr&&(s=this.findHover(s.x,s.y),l=s.target);var c=this._hovered=a?new X2(r,o):this.findHover(r,o),d=c.target,h=this.proxy;h.setCursor&&h.setCursor(d?d.cursor:"default"),l&&d!==l&&this.dispatchToElement(s,"mouseout",n),this.dispatchToElement(c,"mousemove",n),d&&d!==l&&this.dispatchToElement(c,"mouseover",n)},t.prototype.mouseout=function(n){var r=n.zrEventControl;r!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",n),r!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:n})},t.prototype.resize=function(){this._hovered=new X2(0,0)},t.prototype.dispatch=function(n,r){var o=this[n];o&&o.call(this,r)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(n){var r=this.proxy;r.setCursor&&r.setCursor(n)},t.prototype.dispatchToElement=function(n,r,o){n=n||{};var a=n.target;if(!(a&&a.silent)){for(var s="on"+r,l=vlt(r,n,o);a&&(a[s]&&(l.cancelBubble=!!a[s].call(a,l)),a.trigger(r,l),a=a.__hostTarget?a.__hostTarget:a.parent,!l.cancelBubble););l.cancelBubble||(this.trigger(r,l),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(c){typeof c[s]=="function"&&c[s].call(c,l),c.trigger&&c.trigger(r,l)}))}},t.prototype.findHover=function(n,r,o){var a=this.storage.getDisplayList(),s=new X2(n,r);if(nie(a,s,n,r,o),this._pointerSize&&!s.target){for(var l=[],c=this._pointerSize,d=c/2,h=new lo(n-d,r-d,c,c),p=a.length-1;p>=0;p--){var v=a[p];v!==o&&!v.ignore&&!v.ignoreCoarsePointer&&(!v.parent||!v.parent.ignoreCoarsePointer)&&(fN.copy(v.getBoundingRect()),v.transform&&fN.applyTransform(v.transform),fN.intersect(h)&&l.push(v))}if(l.length)for(var g=4,y=Math.PI/12,S=Math.PI*2,k=0;k4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function blt(e,t,n){if(e[e.rectHover?"rectContain":"contain"](t,n)){for(var r=e,o=void 0,a=!1;r;){if(r.ignoreClip&&(a=!0),!a){var s=r.getClipPath();if(s&&!s.contain(t,n))return!1}r.silent&&(o=!0);var l=r.__hostTarget;r=l||r.parent}return o?Xve:!0}return!1}function nie(e,t,n,r,o){for(var a=e.length-1;a>=0;a--){var s=e[a],l=void 0;if(s!==o&&!s.ignore&&(l=blt(s,n,r))&&(!t.topTarget&&(t.topTarget=s),l!==Xve)){t.target=s;break}}}function Jve(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var Qve=32,Z2=7;function _lt(e){for(var t=0;e>=Qve;)t|=e&1,e>>=1;return e+t}function rie(e,t,n,r){var o=t+1;if(o===n)return 1;if(r(e[o++],e[t])<0){for(;o=0;)o++;return o-t}function Slt(e,t,n){for(n--;t>>1,o(a,e[c])<0?l=c:s=c+1;var d=r-s;switch(d){case 3:e[s+3]=e[s+2];case 2:e[s+2]=e[s+1];case 1:e[s+1]=e[s];break;default:for(;d>0;)e[s+d]=e[s+d-1],d--}e[s]=a}}function hN(e,t,n,r,o,a){var s=0,l=0,c=1;if(a(e,t[n+o])>0){for(l=r-o;c0;)s=c,c=(c<<1)+1,c<=0&&(c=l);c>l&&(c=l),s+=o,c+=o}else{for(l=o+1;cl&&(c=l);var d=s;s=o-c,c=o-d}for(s++;s>>1);a(e,t[n+h])>0?s=h+1:c=h}return c}function pN(e,t,n,r,o,a){var s=0,l=0,c=1;if(a(e,t[n+o])<0){for(l=o+1;cl&&(c=l);var d=s;s=o-c,c=o-d}else{for(l=r-o;c=0;)s=c,c=(c<<1)+1,c<=0&&(c=l);c>l&&(c=l),s+=o,c+=o}for(s++;s>>1);a(e,t[n+h])<0?c=h:s=h+1}return c}function klt(e,t){var n=Z2,r,o,a=0,s=[];r=[],o=[];function l(g,y){r[a]=g,o[a]=y,a+=1}function c(){for(;a>1;){var g=a-2;if(g>=1&&o[g-1]<=o[g]+o[g+1]||g>=2&&o[g-2]<=o[g]+o[g-1])o[g-1]o[g+1])break;h(g)}}function d(){for(;a>1;){var g=a-2;g>0&&o[g-1]=Z2||P>=Z2);if(M)break;T<0&&(T=0),T+=2}if(n=T,n<1&&(n=1),y===1){for(C=0;C=0;C--)e[D+C]=e[T+C];e[_]=s[E];return}for(var P=n;;){var M=0,$=0,L=!1;do if(t(s[E],e[x])<0){if(e[_--]=e[x--],M++,$=0,--y===0){L=!0;break}}else if(e[_--]=s[E--],$++,M=0,--k===1){L=!0;break}while((M|$)=0;C--)e[D+C]=e[T+C];if(y===0){L=!0;break}}if(e[_--]=s[E--],--k===1){L=!0;break}if($=k-hN(e[x],s,0,k,k-1,t),$!==0){for(_-=$,E-=$,k-=$,D=_+1,T=E+1,C=0;C<$;C++)e[D+C]=s[T+C];if(k<=1){L=!0;break}}if(e[_--]=e[x--],--y===0){L=!0;break}P--}while(M>=Z2||$>=Z2);if(L)break;P<0&&(P=0),P+=2}if(n=P,n<1&&(n=1),k===1){for(_-=y,x-=y,D=_+1,T=x+1,C=y-1;C>=0;C--)e[D+C]=e[T+C];e[_]=s[E]}else{if(k===0)throw new Error;for(T=_-(k-1),C=0;Cl&&(c=l),iie(e,n,n+c,n+a,t),a=c}s.pushRun(n,a),s.mergeRuns(),o-=a,n+=a}while(o!==0);s.forceMergeRuns()}}var oc=1,I4=2,B1=4,oie=!1;function vN(){oie||(oie=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function sie(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var xlt=(function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=sie}return e.prototype.traverse=function(t,n){for(var r=0;r0&&(h.__clipPaths=[]),isNaN(h.z)&&(vN(),h.z=0),isNaN(h.z2)&&(vN(),h.z2=0),isNaN(h.zlevel)&&(vN(),h.zlevel=0),this._displayList[this._displayListLen++]=h}var p=t.getDecalElement&&t.getDecalElement();p&&this._updateAndAddDisplayable(p,n,r);var v=t.getTextGuideLine();v&&this._updateAndAddDisplayable(v,n,r);var g=t.getTextContent();g&&this._updateAndAddDisplayable(g,n,r)}},e.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},e.prototype.delRoot=function(t){if(t instanceof Array){for(var n=0,r=t.length;n=0&&this._roots.splice(o,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e})(),X8;X8=zr.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};var mb={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:Math.pow(1024,e-1)},exponentialOut:function(e){return e===1?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),-(n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)))},elasticOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/r)+1)},elasticInOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?-.5*(n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)):n*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-mb.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?mb.bounceIn(e*2)*.5:mb.bounceOut(e*2-1)*.5+.5}},Tx=Math.pow,p0=Math.sqrt,Z8=1e-8,eme=1e-4,aie=p0(3),Ax=1/3,lf=f3(),Oc=f3(),hy=f3();function i0(e){return e>-Z8&&eZ8||e<-Z8}function Va(e,t,n,r,o){var a=1-o;return a*a*(a*e+3*o*t)+o*o*(o*r+3*a*n)}function lie(e,t,n,r,o){var a=1-o;return 3*(((t-e)*a+2*(n-t)*o)*a+(r-n)*o*o)}function J8(e,t,n,r,o,a){var s=r+3*(t-n)-e,l=3*(n-t*2+e),c=3*(t-e),d=e-o,h=l*l-3*s*c,p=l*c-9*s*d,v=c*c-3*l*d,g=0;if(i0(h)&&i0(p))if(i0(l))a[0]=0;else{var y=-c/l;y>=0&&y<=1&&(a[g++]=y)}else{var S=p*p-4*h*v;if(i0(S)){var k=p/h,y=-l/s+k,C=-k/2;y>=0&&y<=1&&(a[g++]=y),C>=0&&C<=1&&(a[g++]=C)}else if(S>0){var x=p0(S),E=h*l+1.5*s*(-p+x),_=h*l+1.5*s*(-p-x);E<0?E=-Tx(-E,Ax):E=Tx(E,Ax),_<0?_=-Tx(-_,Ax):_=Tx(_,Ax);var y=(-l-(E+_))/(3*s);y>=0&&y<=1&&(a[g++]=y)}else{var T=(2*h*l-3*s*p)/(2*p0(h*h*h)),D=Math.acos(T)/3,P=p0(h),M=Math.cos(D),y=(-l-2*P*M)/(3*s),C=(-l+P*(M+aie*Math.sin(D)))/(3*s),$=(-l+P*(M-aie*Math.sin(D)))/(3*s);y>=0&&y<=1&&(a[g++]=y),C>=0&&C<=1&&(a[g++]=C),$>=0&&$<=1&&(a[g++]=$)}}return g}function nme(e,t,n,r,o){var a=6*n-12*t+6*e,s=9*t+3*r-3*e-9*n,l=3*t-3*e,c=0;if(i0(s)){if(tme(a)){var d=-l/a;d>=0&&d<=1&&(o[c++]=d)}}else{var h=a*a-4*s*l;if(i0(h))o[0]=-a/(2*s);else if(h>0){var p=p0(h),d=(-a+p)/(2*s),v=(-a-p)/(2*s);d>=0&&d<=1&&(o[c++]=d),v>=0&&v<=1&&(o[c++]=v)}}return c}function Q8(e,t,n,r,o,a){var s=(t-e)*o+e,l=(n-t)*o+t,c=(r-n)*o+n,d=(l-s)*o+s,h=(c-l)*o+l,p=(h-d)*o+d;a[0]=e,a[1]=s,a[2]=d,a[3]=p,a[4]=p,a[5]=h,a[6]=c,a[7]=r}function Clt(e,t,n,r,o,a,s,l,c,d,h){var p,v=.005,g=1/0,y,S,k,C;lf[0]=c,lf[1]=d;for(var x=0;x<1;x+=.05)Oc[0]=Va(e,n,o,s,x),Oc[1]=Va(t,r,a,l,x),k=cy(lf,Oc),k=0&&k=0&&d<=1&&(o[c++]=d)}}else{var h=s*s-4*a*l;if(i0(h)){var d=-s/(2*a);d>=0&&d<=1&&(o[c++]=d)}else if(h>0){var p=p0(h),d=(-s+p)/(2*a),v=(-s-p)/(2*a);d>=0&&d<=1&&(o[c++]=d),v>=0&&v<=1&&(o[c++]=v)}}return c}function rme(e,t,n){var r=e+n-2*t;return r===0?.5:(e-t)/r}function eT(e,t,n,r,o){var a=(t-e)*r+e,s=(n-t)*r+t,l=(s-a)*r+a;o[0]=e,o[1]=a,o[2]=l,o[3]=l,o[4]=s,o[5]=n}function Tlt(e,t,n,r,o,a,s,l,c){var d,h=.005,p=1/0;lf[0]=s,lf[1]=l;for(var v=0;v<1;v+=.05){Oc[0]=bu(e,n,o,v),Oc[1]=bu(t,r,a,v);var g=cy(lf,Oc);g=0&&g=1?1:J8(0,r,a,1,c,l)&&Va(0,o,s,1,l[0])}}}var Llt=(function(){function e(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||Tu,this.ondestroy=t.ondestroy||Tu,this.onrestart=t.onrestart||Tu,t.easing&&this.setEasing(t.easing)}return e.prototype.step=function(t,n){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=n;return}var r=this._life,o=t-this._startTime-this._pausedTime,a=o/r;a<0&&(a=0),a=Math.min(a,1);var s=this.easingFunc,l=s?s(a):a;if(this.onframe(l),a===1)if(this.loop){var c=o%r;this._startTime=t-c,this._pausedTime=0,this.onrestart()}else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(t){this.easing=t,this.easingFunc=ni(t)?t:mb[t]||ime(t)},e})(),ome=(function(){function e(t){this.value=t}return e})(),Dlt=(function(){function e(){this._len=0}return e.prototype.insert=function(t){var n=new ome(t);return this.insertEntry(n),n},e.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},e.prototype.remove=function(t){var n=t.prev,r=t.next;n?n.next=r:this.head=r,r?r.prev=n:this.tail=n,t.next=t.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e})(),sS=(function(){function e(t){this._list=new Dlt,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,n){var r=this._list,o=this._map,a=null;if(o[t]==null){var s=r.len(),l=this._lastRemovedEntry;if(s>=this._maxSize&&s>0){var c=r.head;r.remove(c),delete o[c.key],a=c.value,this._lastRemovedEntry=c}l?l.value=n:l=new ome(n),l.key=t,r.insertEntry(l),o[t]=l}return a},e.prototype.get=function(t){var n=this._map[t],r=this._list;if(n!=null)return n!==r.tail&&(r.remove(n),r.insertEntry(n)),n.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e})(),cie={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function v0(e){return e=Math.round(e),e<0?0:e>255?255:e}function PV(e){return e<0?0:e>1?1:e}function mN(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?v0(parseFloat(t)/100*255):v0(parseInt(t,10))}function gb(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?PV(parseFloat(t)/100):PV(parseFloat(t))}function gN(e,t,n){return n<0?n+=1:n>1&&(n-=1),n*6<1?e+(t-e)*n*6:n*2<1?t:n*3<2?e+(t-e)*(2/3-n)*6:e}function Ix(e,t,n){return e+(t-e)*n}function Ic(e,t,n,r,o){return e[0]=t,e[1]=n,e[2]=r,e[3]=o,e}function RV(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var sme=new sS(20),Lx=null;function c1(e,t){Lx&&RV(Lx,t),Lx=sme.put(e,Lx||t.slice())}function Rh(e,t){if(e){t=t||[];var n=sme.get(e);if(n)return RV(t,n);e=e+"";var r=e.replace(/ /g,"").toLowerCase();if(r in cie)return RV(t,cie[r]),c1(e,t),t;var o=r.length;if(r.charAt(0)==="#"){if(o===4||o===5){var a=parseInt(r.slice(1,4),16);if(!(a>=0&&a<=4095)){Ic(t,0,0,0,1);return}return Ic(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,o===5?parseInt(r.slice(4),16)/15:1),c1(e,t),t}else if(o===7||o===9){var a=parseInt(r.slice(1,7),16);if(!(a>=0&&a<=16777215)){Ic(t,0,0,0,1);return}return Ic(t,(a&16711680)>>16,(a&65280)>>8,a&255,o===9?parseInt(r.slice(7),16)/255:1),c1(e,t),t}return}var s=r.indexOf("("),l=r.indexOf(")");if(s!==-1&&l+1===o){var c=r.substr(0,s),d=r.substr(s+1,l-(s+1)).split(","),h=1;switch(c){case"rgba":if(d.length!==4)return d.length===3?Ic(t,+d[0],+d[1],+d[2],1):Ic(t,0,0,0,1);h=gb(d.pop());case"rgb":if(d.length>=3)return Ic(t,mN(d[0]),mN(d[1]),mN(d[2]),d.length===3?h:gb(d[3])),c1(e,t),t;Ic(t,0,0,0,1);return;case"hsla":if(d.length!==4){Ic(t,0,0,0,1);return}return d[3]=gb(d[3]),die(d,t),c1(e,t),t;case"hsl":if(d.length!==3){Ic(t,0,0,0,1);return}return die(d,t),c1(e,t),t;default:return}}Ic(t,0,0,0,1)}}function die(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=gb(e[1]),o=gb(e[2]),a=o<=.5?o*(r+1):o+r-o*r,s=o*2-a;return t=t||[],Ic(t,v0(gN(s,a,n+1/3)*255),v0(gN(s,a,n)*255),v0(gN(s,a,n-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function fie(e,t){var n=Rh(e);if(n){for(var r=0;r<3;r++)n[r]=n[r]*(1-t)|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return lA(n,n.length===4?"rgba":"rgb")}}function Plt(e,t,n){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var r=e*(t.length-1),o=Math.floor(r),a=Math.ceil(r),s=Rh(t[o]),l=Rh(t[a]),c=r-o,d=lA([v0(Ix(s[0],l[0],c)),v0(Ix(s[1],l[1],c)),v0(Ix(s[2],l[2],c)),PV(Ix(s[3],l[3],c))],"rgba");return n?{color:d,leftIndex:o,rightIndex:a,value:r}:d}}function lA(e,t){if(!(!e||!e.length)){var n=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(n+=","+e[3]),t+"("+n+")"}}function tT(e,t){var n=Rh(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}var hie=new sS(100);function pie(e){if(Sr(e)){var t=hie.get(e);return t||(t=fie(e,-.1),hie.put(e,t)),t}else if(sA(e)){var n=xn({},e);return n.colorStops=Er(e.colorStops,function(r){return{offset:r.offset,color:fie(r.color,-.1)}}),n}return e}function Rlt(e){return e.type==="linear"}function Mlt(e){return e.type==="radial"}(function(){return zr.hasGlobalWindow&&ni(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:typeof Buffer<"u"?function(e){return Buffer.from(e).toString("base64")}:function(e){return null}})();var MV=Array.prototype.slice;function vh(e,t,n){return(t-e)*n+e}function yN(e,t,n,r){for(var o=t.length,a=0;ar?t:e,a=Math.min(n,r),s=o[a-1]||{color:[0,0,0,0],offset:0},l=a;ls;if(l)r.length=s;else for(var c=a;c=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(t,n,r){this._needsSort=!0;var o=this.keyframes,a=o.length,s=!1,l=mie,c=n;if(Pu(n)){var d=Nlt(n);l=d,(d===1&&!Ao(n[0])||d===2&&!Ao(n[0][0]))&&(s=!0)}else if(Ao(n)&&!Y8(n))l=Px;else if(Sr(n))if(!isNaN(+n))l=Px;else{var h=Rh(n);h&&(c=h,l=L4)}else if(sA(n)){var p=xn({},c);p.colorStops=Er(n.colorStops,function(g){return{offset:g.offset,color:Rh(g.color)}}),Rlt(n)?l=OV:Mlt(n)&&(l=$V),c=p}a===0?this.valType=l:(l!==this.valType||l===mie)&&(s=!0),this.discrete=this.discrete||s;var v={time:t,value:c,rawValue:n,percent:0};return r&&(v.easing=r,v.easingFunc=ni(r)?r:mb[r]||ime(r)),o.push(v),v},e.prototype.prepare=function(t,n){var r=this.keyframes;this._needsSort&&r.sort(function(S,k){return S.time-k.time});for(var o=this.valType,a=r.length,s=r[a-1],l=this.discrete,c=Rx(o),d=gie(o),h=0;h=0&&!(s[h].percent<=n);h--);h=v(h,l-2)}else{for(h=p;hn);h++);h=v(h-1,l-2)}y=s[h+1],g=s[h]}if(g&&y){this._lastFr=h,this._lastFrP=n;var k=y.percent-g.percent,C=k===0?1:v((n-g.percent)/k,1);y.easingFunc&&(C=y.easingFunc(C));var x=r?this._additiveValue:d?J2:t[c];if((Rx(a)||d)&&!x&&(x=this._additiveValue=[]),this.discrete)t[c]=C<1?g.rawValue:y.rawValue;else if(Rx(a))a===eE?yN(x,g[o],y[o],C):Olt(x,g[o],y[o],C);else if(gie(a)){var E=g[o],_=y[o],T=a===OV;t[c]={type:T?"linear":"radial",x:vh(E.x,_.x,C),y:vh(E.y,_.y,C),colorStops:Er(E.colorStops,function(P,M){var $=_.colorStops[M];return{offset:vh(P.offset,$.offset,C),color:Qw(yN([],P.color,$.color,C))}}),global:_.global},T?(t[c].x2=vh(E.x2,_.x2,C),t[c].y2=vh(E.y2,_.y2,C)):t[c].r=vh(E.r,_.r,C)}else if(d)yN(x,g[o],y[o],C),r||(t[c]=Qw(x));else{var D=vh(g[o],y[o],C);r?this._additiveValue=D:t[c]=D}r&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var n=this.valType,r=this.propName,o=this._additiveValue;n===Px?t[r]=t[r]+o:n===L4?(Rh(t[r],J2),Dx(J2,J2,o,1),t[r]=Qw(J2)):n===eE?Dx(t[r],t[r],o,1):n===ame&&vie(t[r],t[r],o,1)},e})(),uW=(function(){function e(t,n,r,o){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=n,n&&o){rW("Can' use additive animation on looped animation.");return}this._additiveAnimators=o,this._allowDiscrete=r}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(t){this._target=t},e.prototype.when=function(t,n,r){return this.whenWithKeys(t,n,es(n),r)},e.prototype.whenWithKeys=function(t,n,r,o){for(var a=this._tracks,s=0;s0&&c.addKeyframe(0,Jw(d),o),this._trackKeys.push(l)}c.addKeyframe(t,Jw(n[l]),o)}return this._maxTime=Math.max(this._maxTime,t),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var n=t.length,r=0;r0)){this._started=1;for(var n=this,r=[],o=this._maxTime||0,a=0;a1){var l=s.pop();a.addKeyframe(l.time,t[o]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},e})();function G1(){return new Date().getTime()}var jlt=(function(e){Vn(t,e);function t(n){var r=e.call(this)||this;return r._running=!1,r._time=0,r._pausedTime=0,r._pauseStart=0,r._paused=!1,n=n||{},r.stage=n.stage||{},r}return t.prototype.addClip=function(n){n.animation&&this.removeClip(n),this._head?(this._tail.next=n,n.prev=this._tail,n.next=null,this._tail=n):this._head=this._tail=n,n.animation=this},t.prototype.addAnimator=function(n){n.animation=this;var r=n.getClip();r&&this.addClip(r)},t.prototype.removeClip=function(n){if(n.animation){var r=n.prev,o=n.next;r?r.next=o:this._head=o,o?o.prev=r:this._tail=r,n.next=n.prev=n.animation=null}},t.prototype.removeAnimator=function(n){var r=n.getClip();r&&this.removeClip(r),n.animation=null},t.prototype.update=function(n){for(var r=G1()-this._pausedTime,o=r-this._time,a=this._head;a;){var s=a.next,l=a.step(r,o);l&&(a.ondestroy(),this.removeClip(a)),a=s}this._time=r,n||(this.trigger("frame",o),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var n=this;this._running=!0;function r(){n._running&&(X8(r),!n._paused&&n.update())}X8(r)},t.prototype.start=function(){this._running||(this._time=G1(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=G1(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=G1()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var n=this._head;n;){var r=n.next;n.prev=n.next=n.animation=null,n=r}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(n,r){r=r||{},this.start();var o=new uW(n,r.loop);return this.addAnimator(o),o},t})(Pf),Vlt=300,bN=zr.domSupported,_N=(function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},r=Er(e,function(o){var a=o.replace("mouse","pointer");return n.hasOwnProperty(a)?a:o});return{mouse:e,touch:t,pointer:r}})(),yie={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},bie=!1;function BV(e){var t=e.pointerType;return t==="pen"||t==="touch"}function zlt(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function SN(e){e&&(e.zrByTouch=!0)}function Ult(e,t){return Lc(e.dom,new Hlt(e,t),!0)}function lme(e,t){for(var n=t,r=!1;n&&n.nodeType!==9&&!(r=n.domBelongToZr||n!==t&&n===e.painterRoot);)n=n.parentNode;return r}var Hlt=(function(){function e(t,n){this.stopPropagation=Tu,this.stopImmediatePropagation=Tu,this.preventDefault=Tu,this.type=n.type,this.target=this.currentTarget=t.dom,this.pointerType=n.pointerType,this.clientX=n.clientX,this.clientY=n.clientY}return e})(),gd={mousedown:function(e){e=Lc(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=Lc(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=Lc(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=Lc(this.dom,e);var t=e.toElement||e.relatedTarget;lme(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){bie=!0,e=Lc(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){bie||(e=Lc(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=Lc(this.dom,e),SN(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),gd.mousemove.call(this,e),gd.mousedown.call(this,e)},touchmove:function(e){e=Lc(this.dom,e),SN(e),this.handler.processGesture(e,"change"),gd.mousemove.call(this,e)},touchend:function(e){e=Lc(this.dom,e),SN(e),this.handler.processGesture(e,"end"),gd.mouseup.call(this,e),+new Date-+this.__lastTouchMomentkie||e<-kie}var kv=[],d1=[],xN=dy(),CN=Math.abs,cW=(function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},e.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},e.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},e.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},e.prototype.needLocalTransform=function(){return Sv(this.rotation)||Sv(this.x)||Sv(this.y)||Sv(this.scaleX-1)||Sv(this.scaleY-1)||Sv(this.skewX)||Sv(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,n=this.needLocalTransform(),r=this.transform;if(!(n||t)){r&&(Sie(r),this.invTransform=null);return}r=r||dy(),n?this.getLocalTransform(r):Sie(r),t&&(n?fy(r,t,r):hlt(r,t)),this.transform=r,this._resolveGlobalScaleRatio(r)},e.prototype._resolveGlobalScaleRatio=function(t){var n=this.globalScaleRatio;if(n!=null&&n!==1){this.getGlobalScale(kv);var r=kv[0]<0?-1:1,o=kv[1]<0?-1:1,a=((kv[0]-r)*n+r)/kv[0]||0,s=((kv[1]-o)*n+o)/kv[1]||0;t[0]*=a,t[1]*=a,t[2]*=s,t[3]*=s}this.invTransform=this.invTransform||dy(),lW(this.invTransform,t)},e.prototype.getComputedTransform=function(){for(var t=this,n=[];t;)n.push(t),t=t.parent;for(;t=n.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var n=t[0]*t[0]+t[1]*t[1],r=t[2]*t[2]+t[3]*t[3],o=Math.atan2(t[1],t[0]),a=Math.PI/2+o-Math.atan2(t[3],t[2]);r=Math.sqrt(r)*Math.cos(a),n=Math.sqrt(n),this.skewX=a,this.skewY=0,this.rotation=-o,this.x=+t[4],this.y=+t[5],this.scaleX=n,this.scaleY=r,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,n=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||dy(),fy(d1,t.invTransform,n),n=d1);var r=this.originX,o=this.originY;(r||o)&&(xN[4]=r,xN[5]=o,fy(d1,n,xN),d1[4]-=r,d1[5]-=o,n=d1),this.setLocalTransform(n)}},e.prototype.getGlobalScale=function(t){var n=this.transform;return t=t||[],n?(t[0]=Math.sqrt(n[0]*n[0]+n[1]*n[1]),t[1]=Math.sqrt(n[2]*n[2]+n[3]*n[3]),n[0]<0&&(t[0]=-t[0]),n[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},e.prototype.transformCoordToLocal=function(t,n){var r=[t,n],o=this.invTransform;return o&&Hc(r,r,o),r},e.prototype.transformCoordToGlobal=function(t,n){var r=[t,n],o=this.transform;return o&&Hc(r,r,o),r},e.prototype.getLineScale=function(){var t=this.transform;return t&&CN(t[0]-1)>1e-10&&CN(t[3]-1)>1e-10?Math.sqrt(CN(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){Ylt(this,t)},e.getLocalTransform=function(t,n){n=n||[];var r=t.originX||0,o=t.originY||0,a=t.scaleX,s=t.scaleY,l=t.anchorX,c=t.anchorY,d=t.rotation||0,h=t.x,p=t.y,v=t.skewX?Math.tan(t.skewX):0,g=t.skewY?Math.tan(-t.skewY):0;if(r||o||l||c){var y=r+l,S=o+c;n[4]=-y*a-v*S*s,n[5]=-S*s-g*y*a}else n[4]=n[5]=0;return n[0]=a,n[3]=s,n[1]=g*a,n[2]=v*s,d&&aW(n,n,d),n[4]+=r+h,n[5]+=o+p,n},e.initDefaultProps=(function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0})(),e})(),u_=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Ylt(e,t){for(var n=0;n=0?parseFloat(e)/100*t:parseFloat(e):e}function rT(e,t,n){var r=t.position||"inside",o=t.distance!=null?t.distance:5,a=n.height,s=n.width,l=a/2,c=n.x,d=n.y,h="left",p="top";if(r instanceof Array)c+=A0(r[0],n.width),d+=A0(r[1],n.height),h=null,p=null;else switch(r){case"left":c-=o,d+=l,h="right",p="middle";break;case"right":c+=o+s,d+=l,p="middle";break;case"top":c+=s/2,d-=o,h="center",p="bottom";break;case"bottom":c+=s/2,d+=a+o,h="center";break;case"inside":c+=s/2,d+=l,h="center",p="middle";break;case"insideLeft":c+=o,d+=l,p="middle";break;case"insideRight":c+=s-o,d+=l,h="right",p="middle";break;case"insideTop":c+=s/2,d+=o,h="center";break;case"insideBottom":c+=s/2,d+=a-o,h="center",p="bottom";break;case"insideTopLeft":c+=o,d+=o;break;case"insideTopRight":c+=s-o,d+=o,h="right";break;case"insideBottomLeft":c+=o,d+=a-o,p="bottom";break;case"insideBottomRight":c+=s-o,d+=a-o,h="right",p="bottom";break}return e=e||{},e.x=c,e.y=d,e.align=h,e.verticalAlign=p,e}var wN="__zr_normal__",EN=u_.concat(["ignore"]),Xlt=T0(u_,function(e,t){return e[t]=!0,e},{ignore:!1}),f1={},Zlt=new lo(0,0,0,0),uA=(function(){function e(t){this.id=Uve(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return e.prototype._init=function(t){this.attr(t)},e.prototype.drift=function(t,n,r){switch(this.draggable){case"horizontal":n=0;break;case"vertical":t=0;break}var o=this.transform;o||(o=this.transform=[1,0,0,1,0,0]),o[4]+=t,o[5]+=n,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(t){var n=this._textContent;if(n&&(!n.ignore||t)){this.textConfig||(this.textConfig={});var r=this.textConfig,o=r.local,a=n.innerTransformable,s=void 0,l=void 0,c=!1;a.parent=o?this:null;var d=!1;if(a.copyTransform(n),r.position!=null){var h=Zlt;r.layoutRect?h.copy(r.layoutRect):h.copy(this.getBoundingRect()),o||h.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(f1,r,h):rT(f1,r,h),a.x=f1.x,a.y=f1.y,s=f1.align,l=f1.verticalAlign;var p=r.origin;if(p&&r.rotation!=null){var v=void 0,g=void 0;p==="center"?(v=h.width*.5,g=h.height*.5):(v=A0(p[0],h.width),g=A0(p[1],h.height)),d=!0,a.originX=-a.x+v+(o?0:h.x),a.originY=-a.y+g+(o?0:h.y)}}r.rotation!=null&&(a.rotation=r.rotation);var y=r.offset;y&&(a.x+=y[0],a.y+=y[1],d||(a.originX=-y[0],a.originY=-y[1]));var S=r.inside==null?typeof r.position=="string"&&r.position.indexOf("inside")>=0:r.inside,k=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),C=void 0,x=void 0,E=void 0;S&&this.canBeInsideText()?(C=r.insideFill,x=r.insideStroke,(C==null||C==="auto")&&(C=this.getInsideTextFill()),(x==null||x==="auto")&&(x=this.getInsideTextStroke(C),E=!0)):(C=r.outsideFill,x=r.outsideStroke,(C==null||C==="auto")&&(C=this.getOutsideFill()),(x==null||x==="auto")&&(x=this.getOutsideStroke(C),E=!0)),C=C||"#000",(C!==k.fill||x!==k.stroke||E!==k.autoStroke||s!==k.align||l!==k.verticalAlign)&&(c=!0,k.fill=C,k.stroke=x,k.autoStroke=E,k.align=s,k.verticalAlign=l,n.setDefaultTextStyle(k)),n.__dirty|=oc,c&&n.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(t){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?VV:jV},e.prototype.getOutsideStroke=function(t){var n=this.__zr&&this.__zr.getBackgroundColor(),r=typeof n=="string"&&Rh(n);r||(r=[255,255,255,1]);for(var o=r[3],a=this.__zr.isDarkMode(),s=0;s<3;s++)r[s]=r[s]*o+(a?0:255)*(1-o);return r[3]=1,lA(r,"rgba")},e.prototype.traverse=function(t,n){},e.prototype.attrKV=function(t,n){t==="textConfig"?this.setTextConfig(n):t==="textContent"?this.setTextContent(n):t==="clipPath"?this.setClipPath(n):t==="extra"?(this.extra=this.extra||{},xn(this.extra,n)):this[t]=n},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(t,n){if(typeof t=="string")this.attrKV(t,n);else if(Lr(t))for(var r=t,o=es(r),a=0;a0},e.prototype.getState=function(t){return this.states[t]},e.prototype.ensureState=function(t){var n=this.states;return n[t]||(n[t]={}),n[t]},e.prototype.clearStates=function(t){this.useState(wN,!1,t)},e.prototype.useState=function(t,n,r,o){var a=t===wN,s=this.hasState();if(!(!s&&a)){var l=this.currentStates,c=this.stateTransition;if(!(go(l,t)>=0&&(n||l.length===1))){var d;if(this.stateProxy&&!a&&(d=this.stateProxy(t)),d||(d=this.states&&this.states[t]),!d&&!a){rW("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(d);var h=!!(d&&d.hoverLayer||o);h&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,d,this._normalState,n,!r&&!this.__inHover&&c&&c.duration>0,c);var p=this._textContent,v=this._textGuide;return p&&p.useState(t,n,r,h),v&&v.useState(t,n,r,h),a?(this.currentStates=[],this._normalState={}):n?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~oc),d}}},e.prototype.useStates=function(t,n,r){if(!t.length)this.clearStates();else{var o=[],a=this.currentStates,s=t.length,l=s===a.length;if(l){for(var c=0;c0,y);var S=this._textContent,k=this._textGuide;S&&S.useStates(t,n,v),k&&k.useStates(t,n,v),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!v&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~oc)}},e.prototype.isSilent=function(){for(var t=this.silent,n=this.parent;!t&&n;){if(n.silent){t=!0;break}n=n.parent}return t},e.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var r=this.currentStates.slice();r.splice(n,1),this.useStates(r)}},e.prototype.replaceState=function(t,n,r){var o=this.currentStates.slice(),a=go(o,t),s=go(o,n)>=0;a>=0?s?o.splice(a,1):o[a]=n:r&&!s&&o.push(n),this.useStates(o)},e.prototype.toggleState=function(t,n){n?this.useState(t,!0):this.removeState(t)},e.prototype._mergeStates=function(t){for(var n={},r,o=0;o=0&&a.splice(s,1)}),this.animators.push(t),r&&r.animation.addAnimator(t),r&&r.wakeUp()},e.prototype.updateDuringAnimation=function(t){this.markRedraw()},e.prototype.stopAnimation=function(t,n){for(var r=this.animators,o=r.length,a=[],s=0;s0&&n.during&&a[0].during(function(y,S){n.during(S)});for(var v=0;v0||o.force&&!s.length){var M=void 0,$=void 0,L=void 0;if(l){$={},v&&(M={});for(var _=0;_=0&&(o.splice(a,0,n),this._doAdd(n))}return this},t.prototype.replace=function(n,r){var o=go(this._children,n);return o>=0&&this.replaceAt(r,o),this},t.prototype.replaceAt=function(n,r){var o=this._children,a=o[r];if(n&&n!==this&&n.parent!==this&&n!==a){o[r]=n,a.parent=null;var s=this.__zr;s&&a.removeSelfFromZr(s),this._doAdd(n)}return this},t.prototype._doAdd=function(n){n.parent&&n.parent.remove(n),n.parent=this;var r=this.__zr;r&&r!==n.__zr&&n.addSelfToZr(r),r&&r.refresh()},t.prototype.remove=function(n){var r=this.__zr,o=this._children,a=go(o,n);return a<0?this:(o.splice(a,1),n.parent=null,r&&n.removeSelfFromZr(r),r&&r.refresh(),this)},t.prototype.removeAll=function(){for(var n=this._children,r=this.__zr,o=0;o0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},e.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},e.prototype.findHover=function(t,n){if(!this._disposed)return this.handler.findHover(t,n)},e.prototype.on=function(t,n,r){return this._disposed||this.handler.on(t,n,r),this},e.prototype.off=function(t,n){this._disposed||this.handler.off(t,n)},e.prototype.trigger=function(t,n){this._disposed||this.handler.trigger(t,n)},e.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),n=0;n0){if(e<=o)return s;if(e>=a)return l}else{if(e>=o)return s;if(e<=a)return l}else{if(e===o)return s;if(e===a)return l}return(e-o)/c*d+s}function Jo(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%";break}return Sr(e)?sut(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):e==null?NaN:+e}function Xs(e,t,n){return t==null&&(t=10),t=Math.min(Math.max(0,t),fme),e=(+e).toFixed(t),n?e:+e}function wh(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,n=0;n<15;n++,t*=10)if(Math.round(e*t)/t===e)return n}return aut(e)}function aut(e){var t=e.toString().toLowerCase(),n=t.indexOf("e"),r=n>0?+t.slice(n+1):0,o=n>0?n:t.length,a=t.indexOf("."),s=a<0?0:o-1-a;return Math.max(0,s-r)}function lut(e,t){var n=Math.log,r=Math.LN10,o=Math.floor(n(e[1]-e[0])/r),a=Math.round(n(Math.abs(t[1]-t[0]))/r),s=Math.min(Math.max(-o+a,0),20);return isFinite(s)?s:20}function uut(e,t){var n=T0(e,function(g,y){return g+(isNaN(y)?0:y)},0);if(n===0)return[];for(var r=Math.pow(10,t),o=Er(e,function(g){return(isNaN(g)?0:g)/n*r*100}),a=r*100,s=Er(o,function(g){return Math.floor(g)}),l=T0(s,function(g,y){return g+y},0),c=Er(o,function(g,y){return g-s[y]});ld&&(d=c[p],h=p);++s[h],c[h]=0,++l}return Er(s,function(g){return g/r})}function cut(e,t){var n=Math.max(wh(e),wh(t)),r=e+t;return n>fme?r:Xs(r,n)}function hme(e){var t=Math.PI*2;return(e%t+t)%t}function iT(e){return e>-Eie&&e=10&&t++,t}function pme(e,t){var n=hW(e),r=Math.pow(10,n),o=e/r,a;return o<1.5?a=1:o<2.5?a=2:o<4?a=3:o<7?a=5:a=10,e=a*r,n>=-20?+e.toFixed(n<0?-n:0):e}function oT(e){var t=parseFloat(e);return t==e&&(t!==0||!Sr(e)||e.indexOf("x")<=0)?t:NaN}function hut(e){return!isNaN(oT(e))}function vme(){return Math.round(Math.random()*9)}function mme(e,t){return t===0?e:mme(t,e%t)}function Tie(e,t){return e==null?t:t==null?e:e*t/mme(e,t)}function _u(e){throw new Error(e)}function Aie(e,t,n){return(t-e)*n+e}var gme="series\0",put="\0_ec_\0";function Zl(e){return e instanceof Array?e:e==null?[]:[e]}function UV(e,t,n){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var r=0,o=n.length;r=0||a&&go(a,c)<0)){var d=r.getShallow(c,t);d!=null&&(s[e[l][0]]=d)}}return s}}var But=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],Nut=d_(But),Fut=(function(){function e(){}return e.prototype.getAreaStyle=function(t,n){return Nut(this,t,n)},e})(),HV=new sS(50);function jut(e){if(typeof e=="string"){var t=HV.get(e);return t&&t.image}else return e}function kme(e,t,n,r,o){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!n)return t;var a=HV.get(e),s={hostEl:n,cb:r,cbPayload:o};return a?(t=a.image,!dA(t)&&a.pending.push(s)):(t=d3.loadImage(e,Lie,Lie),t.__zrImageSrc=e,HV.put(e,t.__cachedImgObj={image:t,pending:[s]})),t}else return e;else return t}function Lie(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t=s;c++)l-=s;var d=uc(n,t);return d>l&&(n="",d=0),l=e-d,o.ellipsis=n,o.ellipsisWidth=d,o.contentWidth=l,o.containerWidth=e,o}function Cme(e,t,n){var r=n.containerWidth,o=n.font,a=n.contentWidth;if(!r){e.textLine="",e.isTruncated=!1;return}var s=uc(t,o);if(s<=r){e.textLine=t,e.isTruncated=!1;return}for(var l=0;;l++){if(s<=a||l>=n.maxIterations){t+=n.ellipsis;break}var c=l===0?zut(t,a,n.ascCharWidth,n.cnCharWidth):s>0?Math.floor(t.length*a/s):0;t=t.substr(0,c),s=uc(t,o)}t===""&&(t=n.placeholder),e.textLine=t,e.isTruncated=!0}function zut(e,t,n,r){for(var o=0,a=0,s=e.length;ay&&d){var S=Math.floor(y/l);h=h||v.length>S,v=v.slice(0,S)}if(e&&a&&p!=null)for(var k=xme(p,o,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),C={},x=0;xl&&DN(n,e.substring(l,d),t,s),DN(n,c[2],t,s,c[1]),l=LN.lastIndex}lo){var W=n.lines.length;D>0?(E.tokens=E.tokens.slice(0,D),C(E,T,_),n.lines=n.lines.slice(0,x+1)):n.lines=n.lines.slice(0,x),n.isTruncated=n.isTruncated||n.lines.length0&&y+r.accumWidth>r.width&&(h=t.split(` `),d=!0),r.accumWidth=y}else{var S=wme(t,c,r.width,r.breakAll,r.accumWidth);r.accumWidth=S.accumWidth+g,p=S.linesWidths,h=S.lines}}else h=t.split(` `);for(var k=0;k=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var qut=T0(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function Yut(e){return Kut(e)?!!qut[e]:!0}function wme(e,t,n,r,o){for(var a=[],s=[],l="",c="",d=0,h=0,p=0;pn:o+h+g>n){h?(l||c)&&(y?(l||(l=c,c="",d=0,h=d),a.push(l),s.push(h-d),c+=v,d+=g,l="",h=d):(c&&(l+=c,c="",d=0),a.push(l),s.push(h),l=v,h=g)):y?(a.push(c),s.push(d),c=v,d=g):(a.push(v),s.push(g));continue}h+=g,y?(c+=v,d+=g):(c&&(l+=c,c="",d=0),l+=v)}return!a.length&&!l&&(l=e,c="",d=0),c&&(l+=c),l&&(a.push(l),s.push(h)),a.length===1&&(h+=o),{accumWidth:h,lines:a,linesWidths:s}}var WV="__zr_style_"+Math.round(Math.random()*10),gm={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},fA={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};gm[WV]=!0;var Pie=["z","z2","invisible"],Xut=["invisible"],uS=(function(e){Vn(t,e);function t(n){return e.call(this,n)||this}return t.prototype._init=function(n){for(var r=es(n),o=0;o1e-4){l[0]=e-n,l[1]=t-r,c[0]=e+n,c[1]=t+r;return}if(Mx[0]=ON(o)*n+e,Mx[1]=MN(o)*r+t,Ox[0]=ON(a)*n+e,Ox[1]=MN(a)*r+t,d(l,Mx,Ox),h(c,Mx,Ox),o=o%Cv,o<0&&(o=o+Cv),a=a%Cv,a<0&&(a=a+Cv),o>a&&!s?a+=Cv:oo&&($x[0]=ON(g)*n+e,$x[1]=MN(g)*r+t,d(l,$x,l),h(c,$x,c))}var oo={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},wv=[],Ev=[],qd=[],Tp=[],Yd=[],Xd=[],$N=Math.min,BN=Math.max,Tv=Math.cos,Av=Math.sin,lh=Math.abs,GV=Math.PI,Hp=GV*2,NN=typeof Float32Array<"u",Q2=[];function FN(e){var t=Math.round(e/GV*1e8)/1e8;return t%2*GV}function Eme(e,t){var n=FN(e[0]);n<0&&(n+=Hp);var r=n-e[0],o=e[1];o+=r,!t&&o-n>=Hp?o=n+Hp:t&&n-o>=Hp?o=n-Hp:!t&&n>o?o=n+(Hp-FN(n-o)):t&&n0&&(this._ux=lh(r/nT/t)||0,this._uy=lh(r/nT/n)||0)},e.prototype.setDPR=function(t){this.dpr=t},e.prototype.setContext=function(t){this._ctx=t},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(t,n){return this._drawPendingPt(),this.addData(oo.M,t,n),this._ctx&&this._ctx.moveTo(t,n),this._x0=t,this._y0=n,this._xi=t,this._yi=n,this},e.prototype.lineTo=function(t,n){var r=lh(t-this._xi),o=lh(n-this._yi),a=r>this._ux||o>this._uy;if(this.addData(oo.L,t,n),this._ctx&&a&&this._ctx.lineTo(t,n),a)this._xi=t,this._yi=n,this._pendingPtDist=0;else{var s=r*r+o*o;s>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=n,this._pendingPtDist=s)}return this},e.prototype.bezierCurveTo=function(t,n,r,o,a,s){return this._drawPendingPt(),this.addData(oo.C,t,n,r,o,a,s),this._ctx&&this._ctx.bezierCurveTo(t,n,r,o,a,s),this._xi=a,this._yi=s,this},e.prototype.quadraticCurveTo=function(t,n,r,o){return this._drawPendingPt(),this.addData(oo.Q,t,n,r,o),this._ctx&&this._ctx.quadraticCurveTo(t,n,r,o),this._xi=r,this._yi=o,this},e.prototype.arc=function(t,n,r,o,a,s){this._drawPendingPt(),Q2[0]=o,Q2[1]=a,Eme(Q2,s),o=Q2[0],a=Q2[1];var l=a-o;return this.addData(oo.A,t,n,r,r,o,l,0,s?0:1),this._ctx&&this._ctx.arc(t,n,r,o,a,s),this._xi=Tv(a)*r+t,this._yi=Av(a)*r+n,this},e.prototype.arcTo=function(t,n,r,o,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,n,r,o,a),this},e.prototype.rect=function(t,n,r,o){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,n,r,o),this.addData(oo.R,t,n,r,o),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(oo.Z);var t=this._ctx,n=this._x0,r=this._y0;return t&&t.closePath(),this._xi=n,this._yi=r,this},e.prototype.fill=function(t){t&&t.fill(),this.toStatic()},e.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(t){var n=t.length;!(this.data&&this.data.length===n)&&NN&&(this.data=new Float32Array(n));for(var r=0;rh.length&&(this._expandData(),h=this.data);for(var p=0;p0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],n=0;n11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){qd[0]=qd[1]=Yd[0]=Yd[1]=Number.MAX_VALUE,Tp[0]=Tp[1]=Xd[0]=Xd[1]=-Number.MAX_VALUE;var t=this.data,n=0,r=0,o=0,a=0,s;for(s=0;sr||lh(E)>o||v===n-1)&&(S=Math.sqrt(x*x+E*E),a=k,s=C);break}case oo.C:{var _=t[v++],T=t[v++],k=t[v++],C=t[v++],D=t[v++],P=t[v++];S=wlt(a,s,_,T,k,C,D,P,10),a=D,s=P;break}case oo.Q:{var _=t[v++],T=t[v++],k=t[v++],C=t[v++];S=Alt(a,s,_,T,k,C,10),a=k,s=C;break}case oo.A:var M=t[v++],$=t[v++],L=t[v++],B=t[v++],F=t[v++],W=t[v++],U=W+F;v+=1,y&&(l=Tv(F)*L+M,c=Av(F)*B+$),S=BN(L,B)*$N(Hp,Math.abs(W)),a=Tv(U)*L+M,s=Av(U)*B+$;break;case oo.R:{l=a=t[v++],c=s=t[v++];var G=t[v++],X=t[v++];S=G*2+X*2;break}case oo.Z:{var x=l-a,E=c-s;S=Math.sqrt(x*x+E*E),a=l,s=c;break}}S>=0&&(d[p++]=S,h+=S)}return this._pathLen=h,h},e.prototype.rebuildPath=function(t,n){var r=this.data,o=this._ux,a=this._uy,s=this._len,l,c,d,h,p,v,g=n<1,y,S,k=0,C=0,x,E=0,_,T;if(!(g&&(this._pathSegLen||this._calculateLength(),y=this._pathSegLen,S=this._pathLen,x=n*S,!x)))e:for(var D=0;D0&&(t.lineTo(_,T),E=0),P){case oo.M:l=d=r[D++],c=h=r[D++],t.moveTo(d,h);break;case oo.L:{p=r[D++],v=r[D++];var $=lh(p-d),L=lh(v-h);if($>o||L>a){if(g){var B=y[C++];if(k+B>x){var F=(x-k)/B;t.lineTo(d*(1-F)+p*F,h*(1-F)+v*F);break e}k+=B}t.lineTo(p,v),d=p,h=v,E=0}else{var W=$*$+L*L;W>E&&(_=p,T=v,E=W)}break}case oo.C:{var U=r[D++],G=r[D++],X=r[D++],oe=r[D++],Z=r[D++],H=r[D++];if(g){var B=y[C++];if(k+B>x){var F=(x-k)/B;Q8(d,U,X,Z,F,wv),Q8(h,G,oe,H,F,Ev),t.bezierCurveTo(wv[1],Ev[1],wv[2],Ev[2],wv[3],Ev[3]);break e}k+=B}t.bezierCurveTo(U,G,X,oe,Z,H),d=Z,h=H;break}case oo.Q:{var U=r[D++],G=r[D++],X=r[D++],oe=r[D++];if(g){var B=y[C++];if(k+B>x){var F=(x-k)/B;eT(d,U,X,F,wv),eT(h,G,oe,F,Ev),t.quadraticCurveTo(wv[1],Ev[1],wv[2],Ev[2]);break e}k+=B}t.quadraticCurveTo(U,G,X,oe),d=X,h=oe;break}case oo.A:var q=r[D++],ee=r[D++],ne=r[D++],ae=r[D++],re=r[D++],ke=r[D++],Ne=r[D++],me=!r[D++],_e=ne>ae?ne:ae,Ue=lh(ne-ae)>.001,Qe=re+ke,Me=!1;if(g){var B=y[C++];k+B>x&&(Qe=re+ke*(x-k)/B,Me=!0),k+=B}if(Ue&&t.ellipse?t.ellipse(q,ee,ne,ae,Ne,re,Qe,me):t.arc(q,ee,_e,re,Qe,me),Me)break e;M&&(l=Tv(re)*ne+q,c=Av(re)*ae+ee),d=Tv(Qe)*ne+q,h=Av(Qe)*ae+ee;break;case oo.R:l=d=r[D],c=h=r[D+1],p=r[D++],v=r[D++];var je=r[D++],ge=r[D++];if(g){var B=y[C++];if(k+B>x){var be=x-k;t.moveTo(p,v),t.lineTo(p+$N(be,je),v),be-=je,be>0&&t.lineTo(p+je,v+$N(be,ge)),be-=ge,be>0&&t.lineTo(p+BN(je-be,0),v+ge),be-=je,be>0&&t.lineTo(p,v+BN(ge-be,0));break e}k+=B}t.rect(p,v,je,ge);break;case oo.Z:if(g){var B=y[C++];if(k+B>x){var F=(x-k)/B;t.lineTo(d*(1-F)+l*F,h*(1-F)+c*F);break e}k+=B}t.closePath(),d=l,h=c}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.CMD=oo,e.initDefaultProps=(function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0})(),e})();function h1(e,t,n,r,o,a,s){if(o===0)return!1;var l=o,c=0,d=e;if(s>t+l&&s>r+l||se+l&&a>n+l||at+p&&h>r+p&&h>a+p&&h>l+p||he+p&&d>n+p&&d>o+p&&d>s+p||dt+d&&c>r+d&&c>a+d||ce+d&&l>n+d&&l>o+d||ln||h+do&&(o+=e4);var v=Math.atan2(c,l);return v<0&&(v+=e4),v>=r&&v<=o||v+e4>=r&&v+e4<=o}function Iv(e,t,n,r,o,a){if(a>t&&a>r||ao?l:0}var Ap=Bm.CMD,Lv=Math.PI*2,ict=1e-4;function oct(e,t){return Math.abs(e-t)t&&d>r&&d>a&&d>l||d1&&sct(),g=Va(t,r,a,l,Rc[0]),v>1&&(y=Va(t,r,a,l,Rc[1]))),v===2?kt&&l>r&&l>a||l=0&&d<=1){for(var h=0,p=bu(t,r,a,d),v=0;vn||l<-n)return 0;var c=Math.sqrt(n*n-l*l);jl[0]=-c,jl[1]=c;var d=Math.abs(r-o);if(d<1e-4)return 0;if(d>=Lv-1e-4){r=0,o=Lv;var h=a?1:-1;return s>=jl[0]+e&&s<=jl[1]+e?h:0}if(r>o){var p=r;r=o,o=p}r<0&&(r+=Lv,o+=Lv);for(var v=0,g=0;g<2;g++){var y=jl[g];if(y+e>s){var S=Math.atan2(l,y),h=a?1:-1;S<0&&(S=Lv+S),(S>=r&&S<=o||S+Lv>=r&&S+Lv<=o)&&(S>Math.PI/2&&S1&&(n||(l+=Iv(c,d,h,p,r,o))),k&&(c=a[y],d=a[y+1],h=c,p=d),S){case Ap.M:h=a[y++],p=a[y++],c=h,d=p;break;case Ap.L:if(n){if(h1(c,d,a[y],a[y+1],t,r,o))return!0}else l+=Iv(c,d,a[y],a[y+1],r,o)||0;c=a[y++],d=a[y++];break;case Ap.C:if(n){if(tct(c,d,a[y++],a[y++],a[y++],a[y++],a[y],a[y+1],t,r,o))return!0}else l+=act(c,d,a[y++],a[y++],a[y++],a[y++],a[y],a[y+1],r,o)||0;c=a[y++],d=a[y++];break;case Ap.Q:if(n){if(nct(c,d,a[y++],a[y++],a[y],a[y+1],t,r,o))return!0}else l+=lct(c,d,a[y++],a[y++],a[y],a[y+1],r,o)||0;c=a[y++],d=a[y++];break;case Ap.A:var C=a[y++],x=a[y++],E=a[y++],_=a[y++],T=a[y++],D=a[y++];y+=1;var P=!!(1-a[y++]);v=Math.cos(T)*E+C,g=Math.sin(T)*_+x,k?(h=v,p=g):l+=Iv(c,d,v,g,r,o);var M=(r-C)*_/E+C;if(n){if(rct(C,x,_,T,T+D,P,t,M,o))return!0}else l+=uct(C,x,_,T,T+D,P,M,o);c=Math.cos(T+D)*E+C,d=Math.sin(T+D)*_+x;break;case Ap.R:h=c=a[y++],p=d=a[y++];var $=a[y++],L=a[y++];if(v=h+$,g=p+L,n){if(h1(h,p,v,p,t,r,o)||h1(v,p,v,g,t,r,o)||h1(v,g,h,g,t,r,o)||h1(h,g,h,p,t,r,o))return!0}else l+=Iv(v,p,v,g,r,o),l+=Iv(h,g,h,p,r,o);break;case Ap.Z:if(n){if(h1(c,d,h,p,t,r,o))return!0}else l+=Iv(c,d,h,p,r,o);c=h,d=p;break}}return!n&&!oct(d,p)&&(l+=Iv(c,d,h,p,r,o)||0),l!==0}function cct(e,t,n){return Tme(e,0,!1,t,n)}function dct(e,t,n,r){return Tme(e,t,!0,n,r)}var Ame=uo({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},gm),fct={style:uo({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},fA.style)},jN=u_.concat(["invisible","culling","z","z2","zlevel","parent"]),vo=(function(e){Vn(t,e);function t(n){return e.call(this,n)||this}return t.prototype.update=function(){var n=this;e.prototype.update.call(this);var r=this.style;if(r.decal){var o=this._decalEl=this._decalEl||new t;o.buildPath===t.prototype.buildPath&&(o.buildPath=function(c){n.buildPath(c,n.shape)}),o.silent=!0;var a=o.style;for(var s in r)a[s]!==r[s]&&(a[s]=r[s]);a.fill=r.fill?r.decal:null,a.decal=null,a.shadowColor=null,r.strokeFirst&&(a.stroke=null);for(var l=0;l.5?jV:r>.2?qlt:VV}else if(n)return VV}return jV},t.prototype.getInsideTextStroke=function(n){var r=this.style.fill;if(Sr(r)){var o=this.__zr,a=!!(o&&o.isDarkMode()),s=tT(n,0)0))},t.prototype.hasFill=function(){var n=this.style,r=n.fill;return r!=null&&r!=="none"},t.prototype.getBoundingRect=function(){var n=this._rect,r=this.style,o=!n;if(o){var a=!1;this.path||(a=!0,this.createPathProxy());var s=this.path;(a||this.__dirty&B1)&&(s.beginPath(),this.buildPath(s,this.shape,!1),this.pathUpdated()),n=s.getBoundingRect()}if(this._rect=n,this.hasStroke()&&this.path&&this.path.len()>0){var l=this._rectStroke||(this._rectStroke=n.clone());if(this.__dirty||o){l.copy(n);var c=r.strokeNoScale?this.getLineScale():1,d=r.lineWidth;if(!this.hasFill()){var h=this.strokeContainThreshold;d=Math.max(d,h??4)}c>1e-10&&(l.width+=d/c,l.height+=d/c,l.x-=d/c/2,l.y-=d/c/2)}return l}return n},t.prototype.contain=function(n,r){var o=this.transformCoordToLocal(n,r),a=this.getBoundingRect(),s=this.style;if(n=o[0],r=o[1],a.contain(n,r)){var l=this.path;if(this.hasStroke()){var c=s.lineWidth,d=s.strokeNoScale?this.getLineScale():1;if(d>1e-10&&(this.hasFill()||(c=Math.max(c,this.strokeContainThreshold)),dct(l,c/d,n,r)))return!0}if(this.hasFill())return cct(l,n,r)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=B1,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(n){return this.animate("shape",n)},t.prototype.updateDuringAnimation=function(n){n==="style"?this.dirtyStyle():n==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(n,r){n==="shape"?this.setShape(r):e.prototype.attrKV.call(this,n,r)},t.prototype.setShape=function(n,r){var o=this.shape;return o||(o=this.shape={}),typeof n=="string"?o[n]=r:xn(o,n),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&B1)},t.prototype.createStyle=function(n){return aA(Ame,n)},t.prototype._innerSaveToNormal=function(n){e.prototype._innerSaveToNormal.call(this,n);var r=this._normalState;n.shape&&!r.shape&&(r.shape=xn({},this.shape))},t.prototype._applyStateObj=function(n,r,o,a,s,l){e.prototype._applyStateObj.call(this,n,r,o,a,s,l);var c=!(r&&a),d;if(r&&r.shape?s?a?d=r.shape:(d=xn({},o.shape),xn(d,r.shape)):(d=xn({},a?this.shape:o.shape),xn(d,r.shape)):c&&(d=o.shape),d)if(s){this.shape=xn({},this.shape);for(var h={},p=es(d),v=0;v0},t.prototype.hasFill=function(){var n=this.style,r=n.fill;return r!=null&&r!=="none"},t.prototype.createStyle=function(n){return aA(hct,n)},t.prototype.setBoundingRect=function(n){this._rect=n},t.prototype.getBoundingRect=function(){var n=this.style;if(!this._rect){var r=n.text;r!=null?r+="":r="";var o=dW(r,n.font,n.textAlign,n.textBaseline);if(o.x+=n.x||0,o.y+=n.y||0,this.hasStroke()){var a=n.lineWidth;o.x-=a/2,o.y-=a/2,o.width+=a,o.height+=a}this._rect=o}return this._rect},t.initDefaultProps=(function(){var n=t.prototype;n.dirtyRectTolerance=10})(),t})(uS);sT.prototype.type="tspan";var pct=uo({x:0,y:0},gm),vct={style:uo({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},fA.style)};function mct(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var j0=(function(e){Vn(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(n){return aA(pct,n)},t.prototype._getSize=function(n){var r=this.style,o=r[n];if(o!=null)return o;var a=mct(r.image)?r.image:this.__image;if(!a)return 0;var s=n==="width"?"height":"width",l=r[s];return l==null?a[n]:a[n]/a[s]*l},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return vct},t.prototype.getBoundingRect=function(){var n=this.style;return this._rect||(this._rect=new lo(n.x||0,n.y||0,this.getWidth(),this.getHeight())),this._rect},t})(uS);j0.prototype.type="image";function gct(e,t){var n=t.x,r=t.y,o=t.width,a=t.height,s=t.r,l,c,d,h;o<0&&(n=n+o,o=-o),a<0&&(r=r+a,a=-a),typeof s=="number"?l=c=d=h=s:s instanceof Array?s.length===1?l=c=d=h=s[0]:s.length===2?(l=d=s[0],c=h=s[1]):s.length===3?(l=s[0],c=h=s[1],d=s[2]):(l=s[0],c=s[1],d=s[2],h=s[3]):l=c=d=h=0;var p;l+c>o&&(p=l+c,l*=o/p,c*=o/p),d+h>o&&(p=d+h,d*=o/p,h*=o/p),c+d>a&&(p=c+d,c*=a/p,d*=a/p),l+h>a&&(p=l+h,l*=a/p,h*=a/p),e.moveTo(n+l,r),e.lineTo(n+o-c,r),c!==0&&e.arc(n+o-c,r+c,c,-Math.PI/2,0),e.lineTo(n+o,r+a-d),d!==0&&e.arc(n+o-d,r+a-d,d,0,Math.PI/2),e.lineTo(n+h,r+a),h!==0&&e.arc(n+h,r+a-h,h,Math.PI/2,Math.PI),e.lineTo(n,r+l),l!==0&&e.arc(n+l,r+l,l,Math.PI,Math.PI*1.5)}var K1=Math.round;function Ime(e,t,n){if(t){var r=t.x1,o=t.x2,a=t.y1,s=t.y2;e.x1=r,e.x2=o,e.y1=a,e.y2=s;var l=n&&n.lineWidth;return l&&(K1(r*2)===K1(o*2)&&(e.x1=e.x2=Jv(r,l,!0)),K1(a*2)===K1(s*2)&&(e.y1=e.y2=Jv(a,l,!0))),e}}function Lme(e,t,n){if(t){var r=t.x,o=t.y,a=t.width,s=t.height;e.x=r,e.y=o,e.width=a,e.height=s;var l=n&&n.lineWidth;return l&&(e.x=Jv(r,l,!0),e.y=Jv(o,l,!0),e.width=Math.max(Jv(r+a,l,!1)-e.x,a===0?0:1),e.height=Math.max(Jv(o+s,l,!1)-e.y,s===0?0:1)),e}}function Jv(e,t,n){if(!t)return e;var r=K1(e*2);return(r+K1(t))%2===0?r/2:(r+(n?1:-1))/2}var yct=(function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e})(),bct={},Zs=(function(e){Vn(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new yct},t.prototype.buildPath=function(n,r){var o,a,s,l;if(this.subPixelOptimize){var c=Lme(bct,r,this.style);o=c.x,a=c.y,s=c.width,l=c.height,c.r=r.r,r=c}else o=r.x,a=r.y,s=r.width,l=r.height;r.r?gct(n,r):n.rect(o,a,s,l)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t})(vo);Zs.prototype.type="rect";var Bie={fill:"#000"},Nie=2,_ct={style:uo({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},fA.style)},Ja=(function(e){Vn(t,e);function t(n){var r=e.call(this)||this;return r.type="text",r._children=[],r._defaultStyle=Bie,r.attr(n),r}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var n=0;n0,F=n.width!=null&&(n.overflow==="truncate"||n.overflow==="break"||n.overflow==="breakAll"),W=s.calculatedLineHeight,U=0;U=0&&(U=D[W],U.align==="right");)this._placeToken(U,n,M,C,F,"right",E),$-=U.width,F-=U.width,W--;for(B+=(a-(B-k)-(x-F)-$)/2;L<=W;)U=D[L],this._placeToken(U,n,M,C,B+U.width/2,"center",E),B+=U.width,L++;C+=M}},t.prototype._placeToken=function(n,r,o,a,s,l,c){var d=r.rich[n.styleName]||{};d.text=n.text;var h=n.verticalAlign,p=a+o/2;h==="top"?p=a+n.height/2:h==="bottom"&&(p=a+o-n.height/2);var v=!n.isLineHolder&&VN(d);v&&this._renderBackground(d,r,l==="right"?s-n.width:l==="center"?s-n.width/2:s,p-n.height/2,n.width,n.height);var g=!!d.backgroundColor,y=n.textPadding;y&&(s=Hie(s,l,y),p-=n.height/2-y[0]-n.innerHeight/2);var S=this._getOrCreateChild(sT),k=S.createStyle();S.useStyle(k);var C=this._defaultStyle,x=!1,E=0,_=Uie("fill"in d?d.fill:"fill"in r?r.fill:(x=!0,C.fill)),T=zie("stroke"in d?d.stroke:"stroke"in r?r.stroke:!g&&!c&&(!C.autoStroke||x)?(E=Nie,C.stroke):null),D=d.textShadowBlur>0||r.textShadowBlur>0;k.text=n.text,k.x=s,k.y=p,D&&(k.shadowBlur=d.textShadowBlur||r.textShadowBlur||0,k.shadowColor=d.textShadowColor||r.textShadowColor||"transparent",k.shadowOffsetX=d.textShadowOffsetX||r.textShadowOffsetX||0,k.shadowOffsetY=d.textShadowOffsetY||r.textShadowOffsetY||0),k.textAlign=l,k.textBaseline="middle",k.font=n.font||Mm,k.opacity=pb(d.opacity,r.opacity,1),jie(k,d),T&&(k.lineWidth=pb(d.lineWidth,r.lineWidth,E),k.lineDash=mi(d.lineDash,r.lineDash),k.lineDashOffset=r.lineDashOffset||0,k.stroke=T),_&&(k.fill=_);var P=n.contentWidth,M=n.contentHeight;S.setBoundingRect(new lo(D4(k.x,P,k.textAlign),N1(k.y,M,k.textBaseline),P,M))},t.prototype._renderBackground=function(n,r,o,a,s,l){var c=n.backgroundColor,d=n.borderWidth,h=n.borderColor,p=c&&c.image,v=c&&!p,g=n.borderRadius,y=this,S,k;if(v||n.lineHeight||d&&h){S=this._getOrCreateChild(Zs),S.useStyle(S.createStyle()),S.style.fill=null;var C=S.shape;C.x=o,C.y=a,C.width=s,C.height=l,C.r=g,S.dirtyShape()}if(v){var x=S.style;x.fill=c||null,x.fillOpacity=mi(n.fillOpacity,1)}else if(p){k=this._getOrCreateChild(j0),k.onload=function(){y.dirtyStyle()};var E=k.style;E.image=c.image,E.x=o,E.y=a,E.width=s,E.height=l}if(d&&h){var x=S.style;x.lineWidth=d,x.stroke=h,x.strokeOpacity=mi(n.strokeOpacity,1),x.lineDash=n.borderDash,x.lineDashOffset=n.borderDashOffset||0,S.strokeContainThreshold=0,S.hasFill()&&S.hasStroke()&&(x.strokeFirst=!0,x.lineWidth*=2)}var _=(S||k).style;_.shadowBlur=n.shadowBlur||0,_.shadowColor=n.shadowColor||"transparent",_.shadowOffsetX=n.shadowOffsetX||0,_.shadowOffsetY=n.shadowOffsetY||0,_.opacity=pb(n.opacity,r.opacity,1)},t.makeFont=function(n){var r="";return Cct(n)&&(r=[n.fontStyle,n.fontWeight,xct(n.fontSize),n.fontFamily||"sans-serif"].join(" ")),r&&ff(r)||n.textFont||n.font},t})(uS),Sct={left:!0,right:1,center:1},kct={top:1,bottom:1,middle:1},Fie=["fontStyle","fontWeight","fontSize","fontFamily"];function xct(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?eW+"px":e+"px"}function jie(e,t){for(var n=0;n=0,a=!1;if(e instanceof vo){var s=Dme(e),l=o&&s.selectFill||s.normalFill,c=o&&s.selectStroke||s.normalStroke;if(p1(l)||p1(c)){r=r||{};var d=r.style||{};d.fill==="inherit"?(a=!0,r=xn({},r),d=xn({},d),d.fill=l):!p1(d.fill)&&p1(l)?(a=!0,r=xn({},r),d=xn({},d),d.fill=pie(l)):!p1(d.stroke)&&p1(c)&&(a||(r=xn({},r),d=xn({},d)),d.stroke=pie(c)),r.style=d}}if(r&&r.z2==null){a||(r=xn({},r));var h=e.z2EmphasisLift;r.z2=e.z2+(h??Tct)}return r}function Rct(e,t,n){if(n&&n.z2==null){n=xn({},n);var r=e.z2SelectLift;n.z2=e.z2+(r??Act)}return n}function Mct(e,t,n){var r=go(e.currentStates,t)>=0,o=e.style.opacity,a=r?null:Dct(e,["opacity"],t,{opacity:1});n=n||{};var s=n.style||{};return s.opacity==null&&(n=xn({},n),s=xn({opacity:r?o:a.opacity*.1},s),n.style=s),n}function zN(e,t){var n=this.states[e];if(this.style){if(e==="emphasis")return Pct(this,e,t,n);if(e==="blur")return Mct(this,e,n);if(e==="select")return Rct(this,e,n)}return n}function Oct(e){e.stateProxy=zN;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=zN),n&&(n.stateProxy=zN)}function Xie(e,t){!Nme(e,t)&&!e.__highByOuter&&Qh(e,Pme)}function Zie(e,t){!Nme(e,t)&&!e.__highByOuter&&Qh(e,Rme)}function lT(e,t){e.__highByOuter|=1<<(t||0),Qh(e,Pme)}function uT(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&Qh(e,Rme)}function $ct(e){Qh(e,bW)}function Ome(e){Qh(e,Mme)}function $me(e){Qh(e,Ict)}function Bme(e){Qh(e,Lct)}function Nme(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function Fme(e){var t=e.getModel(),n=[],r=[];t.eachComponent(function(o,a){var s=gW(a),l=o==="series",c=l?e.getViewOfSeriesModel(a):e.getViewOfComponentModel(a);!l&&r.push(c),s.isBlured&&(c.group.traverse(function(d){Mme(d)}),l&&n.push(a)),s.isBlured=!1}),At(r,function(o){o&&o.toggleBlurSeries&&o.toggleBlurSeries(n,!1,t)})}function KV(e,t,n,r){var o=r.getModel();n=n||"coordinateSystem";function a(d,h){for(var p=0;p0){var l={dataIndex:s,seriesIndex:n.seriesIndex};a!=null&&(l.dataType=a),t.push(l)}})}),t}function YV(e,t,n){jme(e,!0),Qh(e,Oct),Uct(e,t,n)}function zct(e){jme(e,!1)}function f_(e,t,n,r){r?zct(e):YV(e,t,n)}function Uct(e,t,n){var r=Xi(e);t!=null?(r.focus=t,r.blurScope=n):r.focus&&(r.focus=null)}var Qie=["emphasis","blur","select"],Hct={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function cT(e,t,n,r){n=n||"itemStyle";for(var o=0;o1&&(s*=UN(y),l*=UN(y));var S=(o===a?-1:1)*UN((s*s*(l*l)-s*s*(g*g)-l*l*(v*v))/(s*s*(g*g)+l*l*(v*v)))||0,k=S*s*g/l,C=S*-l*v/s,x=(e+n)/2+Fx(p)*k-Nx(p)*C,E=(t+r)/2+Nx(p)*k+Fx(p)*C,_=roe([1,0],[(v-k)/s,(g-C)/l]),T=[(v-k)/s,(g-C)/l],D=[(-1*v-k)/s,(-1*g-C)/l],P=roe(T,D);if(JV(T,D)<=-1&&(P=t4),JV(T,D)>=1&&(P=0),P<0){var M=Math.round(P/t4*1e6)/1e6;P=t4*2+M%2*t4}h.addData(d,x,E,s,l,_,P,p,a)}var Xct=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,Zct=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Jct(e){var t=new Bm;if(!e)return t;var n=0,r=0,o=n,a=r,s,l=Bm.CMD,c=e.match(Xct);if(!c)return t;for(var d=0;dU*U+G*G&&(M=L,$=B),{cx:M,cy:$,x0:-h,y0:-p,x1:M*(o/T-1),y1:$*(o/T-1)}}function sdt(e){var t;if(rr(e)){var n=e.length;if(!n)return e;n===1?t=[e[0],e[0],0,0]:n===2?t=[e[0],e[0],e[1],e[1]]:n===3?t=e.concat(e[2]):t=e}else t=[e,e,e,e];return t}function adt(e,t){var n,r=P4(t.r,0),o=P4(t.r0||0,0),a=r>0,s=o>0;if(!(!a&&!s)){if(a||(r=o,o=0),o>r){var l=r;r=o,o=l}var c=t.startAngle,d=t.endAngle;if(!(isNaN(c)||isNaN(d))){var h=t.cx,p=t.cy,v=!!t.clockwise,g=ooe(d-c),y=g>HN&&g%HN;if(y>vd&&(g=y),!(r>vd))e.moveTo(h,p);else if(g>HN-vd)e.moveTo(h+r*m1(c),p+r*Dv(c)),e.arc(h,p,r,c,d,!v),o>vd&&(e.moveTo(h+o*m1(d),p+o*Dv(d)),e.arc(h,p,o,d,c,v));else{var S=void 0,k=void 0,C=void 0,x=void 0,E=void 0,_=void 0,T=void 0,D=void 0,P=void 0,M=void 0,$=void 0,L=void 0,B=void 0,F=void 0,W=void 0,U=void 0,G=r*m1(c),X=r*Dv(c),oe=o*m1(d),Z=o*Dv(d),H=g>vd;if(H){var q=t.cornerRadius;q&&(n=sdt(q),S=n[0],k=n[1],C=n[2],x=n[3]);var ee=ooe(r-o)/2;if(E=Zd(ee,C),_=Zd(ee,x),T=Zd(ee,S),D=Zd(ee,k),$=P=P4(E,_),L=M=P4(T,D),(P>vd||M>vd)&&(B=r*m1(d),F=r*Dv(d),W=o*m1(c),U=o*Dv(c),gvd){var Ue=Zd(C,$),Qe=Zd(x,$),Me=jx(W,U,G,X,r,Ue,v),je=jx(B,F,oe,Z,r,Qe,v);e.moveTo(h+Me.cx+Me.x0,p+Me.cy+Me.y0),$0&&e.arc(h+Me.cx,p+Me.cy,Ue,ll(Me.y0,Me.x0),ll(Me.y1,Me.x1),!v),e.arc(h,p,r,ll(Me.cy+Me.y1,Me.cx+Me.x1),ll(je.cy+je.y1,je.cx+je.x1),!v),Qe>0&&e.arc(h+je.cx,p+je.cy,Qe,ll(je.y1,je.x1),ll(je.y0,je.x0),!v))}else e.moveTo(h+G,p+X),e.arc(h,p,r,c,d,!v);if(!(o>vd)||!H)e.lineTo(h+oe,p+Z);else if(L>vd){var Ue=Zd(S,L),Qe=Zd(k,L),Me=jx(oe,Z,B,F,o,-Qe,v),je=jx(G,X,W,U,o,-Ue,v);e.lineTo(h+Me.cx+Me.x0,p+Me.cy+Me.y0),L0&&e.arc(h+Me.cx,p+Me.cy,Qe,ll(Me.y0,Me.x0),ll(Me.y1,Me.x1),!v),e.arc(h,p,o,ll(Me.cy+Me.y1,Me.cx+Me.x1),ll(je.cy+je.y1,je.cx+je.x1),v),Ue>0&&e.arc(h+je.cx,p+je.cy,Ue,ll(je.y1,je.x1),ll(je.y0,je.x0),!v))}else e.lineTo(h+oe,p+Z),e.arc(h,p,o,d,c,v)}e.closePath()}}}var ldt=(function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return e})(),V0=(function(e){Vn(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new ldt},t.prototype.buildPath=function(n,r){adt(n,r)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t})(vo);V0.prototype.type="sector";var udt=(function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e})(),kW=(function(e){Vn(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new udt},t.prototype.buildPath=function(n,r){var o=r.cx,a=r.cy,s=Math.PI*2;n.moveTo(o+r.r,a),n.arc(o,a,r.r,0,s,!1),n.moveTo(o+r.r0,a),n.arc(o,a,r.r0,0,s,!0)},t})(vo);kW.prototype.type="ring";function cdt(e,t,n,r){var o=[],a=[],s=[],l=[],c,d,h,p;if(r){h=[1/0,1/0],p=[-1/0,-1/0];for(var v=0,g=e.length;v=2){if(r){var a=cdt(o,r,n,t.smoothConstraint);e.moveTo(o[0][0],o[0][1]);for(var s=o.length,l=0;l<(n?s:s-1);l++){var c=a[l*2],d=a[l*2+1],h=o[(l+1)%s];e.bezierCurveTo(c[0],c[1],d[0],d[1],h[0],h[1])}}else{e.moveTo(o[0][0],o[0][1]);for(var l=1,p=o.length;lRv[1]){if(l=!1,a)return l;var h=Math.abs(Rv[0]-Pv[1]),p=Math.abs(Pv[0]-Rv[1]);Math.min(h,p)>o.len()&&(h0){var p=h.duration,v=h.delay,g=h.easing,y={duration:p,delay:v||0,easing:g,done:a,force:!!a||!!s,setToFinal:!d,scope:e,during:s};l?t.animateFrom(n,y):t.animateTo(n,y)}else t.stopAnimation(),!l&&t.attr(n),s&&s(1),a&&a()}function eu(e,t,n,r,o,a){wW("update",e,t,n,r,o,a)}function Wc(e,t,n,r,o,a){wW("enter",e,t,n,r,o,a)}function kb(e){if(!e.__zr)return!0;for(var t=0;tMath.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function loe(e){return!e.isGroup}function Pdt(e){return e.shape!=null}function Zme(e,t,n){if(!e||!t)return;function r(s){var l={};return s.traverse(function(c){loe(c)&&c.anid&&(l[c.anid]=c)}),l}function o(s){var l={x:s.x,y:s.y,rotation:s.rotation};return Pdt(s)&&(l.shape=xn({},s.shape)),l}var a=r(e);t.traverse(function(s){if(loe(s)&&s.anid){var l=a[s.anid];if(l){var c=o(s);s.attr(o(l)),eu(s,c,n,Xi(s).dataIndex)}}})}function Rdt(e,t){return Er(e,function(n){var r=n[0];r=pT(r,t.x),r=vT(r,t.x+t.width);var o=n[1];return o=pT(o,t.y),o=vT(o,t.y+t.height),[r,o]})}function Mdt(e,t){var n=pT(e.x,t.x),r=vT(e.x+e.width,t.x+t.width),o=pT(e.y,t.y),a=vT(e.y+e.height,t.y+t.height);if(r>=n&&a>=o)return{x:n,y:o,width:r-n,height:a-o}}function IW(e,t,n){var r=xn({rectHover:!0},t),o=r.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},e)return e.indexOf("image://")===0?(o.image=e.slice(8),uo(o,n),new j0(r)):TW(e.replace("path://",""),r,n,"center")}function Odt(e,t,n,r,o){for(var a=0,s=o[o.length-1];a1)return!1;var k=WN(g,y,h,p)/v;return!(k<0||k>1)}function WN(e,t,n,r){return e*r-n*t}function $dt(e){return e<=1e-6&&e>=-1e-6}function yA(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,o=Sr(t)?{formatter:t}:t,a=n.mainType,s=n.componentIndex,l={componentType:a,name:r,$vars:["name"]};l[a+"Index"]=s;var c=e.formatterParamsExtra;c&&At(es(c),function(h){Om(l,h)||(l[h]=c[h],l.$vars.push(h))});var d=Xi(e.el);d.componentMainType=a,d.componentIndex=s,d.tooltipConfig={name:r,option:uo({content:r,encodeHTMLContent:!0,formatterParams:l},o)}}function uoe(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function bA(e,t){if(e)if(rr(e))for(var n=0;n=0&&l.push(c)}),l}}function tge(e,t){return ao(ao({},e,!0),t,!0)}const Jdt={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},Qdt={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var mT="ZH",LW="EN",py=LW,oE={},DW={},nge=zr.domSupported?(function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage||py).toUpperCase();return e.indexOf(mT)>-1?mT:py})():py;function rge(e,t){e=e.toUpperCase(),DW[e]=new xs(t),oE[e]=t}function eft(e){if(Sr(e)){var t=oE[e.toUpperCase()]||{};return e===mT||e===LW?zi(t):ao(zi(t),zi(oE[py]),!1)}else return ao(zi(e),zi(oE[py]),!1)}function tft(e){return DW[e]}function nft(){return DW[py]}rge(LW,Jdt);rge(mT,Qdt);var PW=1e3,RW=PW*60,xb=RW*60,Fc=xb*24,moe=Fc*365,R4={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},Ux="{yyyy}-{MM}-{dd}",goe={year:"{yyyy}",month:"{yyyy}-{MM}",day:Ux,hour:Ux+" "+R4.hour,minute:Ux+" "+R4.minute,second:Ux+" "+R4.second,millisecond:R4.none},qN=["year","month","day","hour","minute","second","millisecond"],ige=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Ip(e,t){return e+="","0000".substr(0,t-e.length)+e}function vy(e){switch(e){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return e}}function rft(e){return e===vy(e)}function ift(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function xA(e,t,n,r){var o=Wh(e),a=o[MW(n)](),s=o[my(n)]()+1,l=Math.floor((s-1)/3)+1,c=o[CA(n)](),d=o["get"+(n?"UTC":"")+"Day"](),h=o[p_(n)](),p=(h-1)%12+1,v=o[wA(n)](),g=o[EA(n)](),y=o[TA(n)](),S=h>=12?"pm":"am",k=S.toUpperCase(),C=r instanceof xs?r:tft(r||nge)||nft(),x=C.getModel("time"),E=x.get("month"),_=x.get("monthAbbr"),T=x.get("dayOfWeek"),D=x.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,S+"").replace(/{A}/g,k+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,Ip(a%100+"",2)).replace(/{Q}/g,l+"").replace(/{MMMM}/g,E[s-1]).replace(/{MMM}/g,_[s-1]).replace(/{MM}/g,Ip(s,2)).replace(/{M}/g,s+"").replace(/{dd}/g,Ip(c,2)).replace(/{d}/g,c+"").replace(/{eeee}/g,T[d]).replace(/{ee}/g,D[d]).replace(/{e}/g,d+"").replace(/{HH}/g,Ip(h,2)).replace(/{H}/g,h+"").replace(/{hh}/g,Ip(p+"",2)).replace(/{h}/g,p+"").replace(/{mm}/g,Ip(v,2)).replace(/{m}/g,v+"").replace(/{ss}/g,Ip(g,2)).replace(/{s}/g,g+"").replace(/{SSS}/g,Ip(y,3)).replace(/{S}/g,y+"")}function oft(e,t,n,r,o){var a=null;if(Sr(n))a=n;else if(ni(n))a=n(e.value,t,{level:e.level});else{var s=xn({},R4);if(e.level>0)for(var l=0;l=0;--l)if(c[d]){a=c[d];break}a=a||s.none}if(rr(a)){var p=e.level==null?0:e.level>=0?e.level:a.length+e.level;p=Math.min(p,a.length-1),a=a[p]}}return xA(new Date(e.value),a,o,r)}function oge(e,t){var n=Wh(e),r=n[my(t)]()+1,o=n[CA(t)](),a=n[p_(t)](),s=n[wA(t)](),l=n[EA(t)](),c=n[TA(t)](),d=c===0,h=d&&l===0,p=h&&s===0,v=p&&a===0,g=v&&o===1,y=g&&r===1;return y?"year":g?"month":v?"day":p?"hour":h?"minute":d?"second":"millisecond"}function yoe(e,t,n){var r=Ao(e)?Wh(e):e;switch(t=t||oge(e,n),t){case"year":return r[MW(n)]();case"half-year":return r[my(n)]()>=6?1:0;case"quarter":return Math.floor((r[my(n)]()+1)/4);case"month":return r[my(n)]();case"day":return r[CA(n)]();case"half-day":return r[p_(n)]()/24;case"hour":return r[p_(n)]();case"minute":return r[wA(n)]();case"second":return r[EA(n)]();case"millisecond":return r[TA(n)]()}}function MW(e){return e?"getUTCFullYear":"getFullYear"}function my(e){return e?"getUTCMonth":"getMonth"}function CA(e){return e?"getUTCDate":"getDate"}function p_(e){return e?"getUTCHours":"getHours"}function wA(e){return e?"getUTCMinutes":"getMinutes"}function EA(e){return e?"getUTCSeconds":"getSeconds"}function TA(e){return e?"getUTCMilliseconds":"getMilliseconds"}function sft(e){return e?"setUTCFullYear":"setFullYear"}function sge(e){return e?"setUTCMonth":"setMonth"}function age(e){return e?"setUTCDate":"setDate"}function lge(e){return e?"setUTCHours":"setHours"}function uge(e){return e?"setUTCMinutes":"setMinutes"}function cge(e){return e?"setUTCSeconds":"setSeconds"}function dge(e){return e?"setUTCMilliseconds":"setMilliseconds"}function fge(e){if(!hut(e))return Sr(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function hge(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,function(n,r){return r.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var AA=Hve;function ez(e,t,n){var r="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function o(h){return h&&ff(h)?h:"-"}function a(h){return!!(h!=null&&!isNaN(h)&&isFinite(h))}var s=t==="time",l=e instanceof Date;if(s||l){var c=s?Wh(e):e;if(isNaN(+c)){if(l)return"-"}else return xA(c,r,n)}if(t==="ordinal")return CV(e)?o(e):Ao(e)&&a(e)?e+"":"-";var d=oT(e);return a(d)?fge(d):CV(e)?o(e):typeof e=="boolean"?e+"":"-"}var boe=["a","b","c","d","e","f","g"],YN=function(e,t){return"{"+e+(t??"")+"}"};function pge(e,t,n){rr(t)||(t=[t]);var r=t.length;if(!r)return"";for(var o=t[0].$vars||[],a=0;a':'';var s=n.markerId||"markerX";return{renderMode:a,content:"{"+s+"|} ",style:o==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}}function Nm(e,t){return t=t||"transparent",Sr(e)?e:Lr(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function _oe(e,t){if(t==="_blank"||t==="blank"){var n=window.open();n.opener=null,n.location.href=e}else window.open(e,t)}var sE=At,lft=["left","right","top","bottom","width","height"],Hx=[["width","left","right"],["height","top","bottom"]];function OW(e,t,n,r,o){var a=0,s=0;r==null&&(r=1/0),o==null&&(o=1/0);var l=0;t.eachChild(function(c,d){var h=c.getBoundingRect(),p=t.childAt(d+1),v=p&&p.getBoundingRect(),g,y;if(e==="horizontal"){var S=h.width+(v?-v.x+h.x:0);g=a+S,g>r||c.newline?(a=0,g=S,s+=l+n,l=h.height):l=Math.max(l,h.height)}else{var k=h.height+(v?-v.y+h.y:0);y=s+k,y>o||c.newline?(a+=l+n,s=0,y=k,l=h.width):l=Math.max(l,h.width)}c.newline||(c.x=a,c.y=s,c.markRedraw(),e==="horizontal"?a=g+n:s=y+n)})}var Cb=OW;Ps(OW,"vertical");Ps(OW,"horizontal");function By(e,t,n){n=AA(n||0);var r=t.width,o=t.height,a=Jo(e.left,r),s=Jo(e.top,o),l=Jo(e.right,r),c=Jo(e.bottom,o),d=Jo(e.width,r),h=Jo(e.height,o),p=n[2]+n[0],v=n[1]+n[3],g=e.aspect;switch(isNaN(d)&&(d=r-l-v-a),isNaN(h)&&(h=o-c-p-s),g!=null&&(isNaN(d)&&isNaN(h)&&(g>r/o?d=r*.8:h=o*.8),isNaN(d)&&(d=g*h),isNaN(h)&&(h=d/g)),isNaN(a)&&(a=r-l-d-v),isNaN(s)&&(s=o-c-h-p),e.left||e.right){case"center":a=r/2-d/2-n[3];break;case"right":a=r-d-v;break}switch(e.top||e.bottom){case"middle":case"center":s=o/2-h/2-n[0];break;case"bottom":s=o-h-p;break}a=a||0,s=s||0,isNaN(d)&&(d=r-v-a-(l||0)),isNaN(h)&&(h=o-p-s-(c||0));var y=new lo(a+n[3],s+n[0],d,h);return y.margin=n,y}function v_(e){var t=e.layoutMode||e.constructor.layoutMode;return Lr(t)?t:t?{type:t}:null}function Ny(e,t,n){var r=n&&n.ignoreSize;!rr(r)&&(r=[r,r]);var o=s(Hx[0],0),a=s(Hx[1],1);d(Hx[0],e,o),d(Hx[1],e,a);function s(h,p){var v={},g=0,y={},S=0,k=2;if(sE(h,function(E){y[E]=e[E]}),sE(h,function(E){l(t,E)&&(v[E]=y[E]=t[E]),c(v,E)&&g++,c(y,E)&&S++}),r[p])return c(t,h[1])?y[h[2]]=null:c(t,h[2])&&(y[h[1]]=null),y;if(S===k||!g)return y;if(g>=k)return v;for(var C=0;C=0;c--)l=ao(l,o[c],!0);r.defaultOption=l}return r.defaultOption},t.prototype.getReferringComponents=function(n,r){var o=n+"Index",a=n+"Id";return lS(this.ecModel,n,{index:this.get(o,!0),id:this.get(a,!0)},r)},t.prototype.getBoxLayoutParams=function(){var n=this;return{left:n.get("left"),top:n.get("top"),right:n.get("right"),bottom:n.get("bottom"),width:n.get("width"),height:n.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(n){this.option.zlevel=n},t.protoInitialize=(function(){var n=t.prototype;n.type="component",n.id="",n.name="",n.mainType="",n.subType="",n.componentIndex=0})(),t})(xs);Sme(ho,xs);cA(ho);Xdt(ho);Zdt(ho,dft);function dft(e){var t=[];return At(ho.getClassesByMainType(e),function(n){t=t.concat(n.dependencies||n.prototype.dependencies||[])}),t=Er(t,function(n){return hf(n).main}),e!=="dataset"&&go(t,"dataset")<=0&&t.unshift("dataset"),t}var vge="";typeof navigator<"u"&&(vge=navigator.platform||"");var g1="rgba(0, 0, 0, 0.2)";const fft={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:g1,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:g1,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:g1,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:g1,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:g1,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:g1,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:vge.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var mge=xi(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),nd="original",Mu="arrayRows",Nd="objectRows",Rf="keyedColumns",m0="typedArray",gge="unknown",Mh="column",h3="row",$a={Must:1,Might:2,Not:3},yge=$s();function hft(e){yge(e).datasetMap=xi()}function pft(e,t,n){var r={},o=$W(t);if(!o||!e)return r;var a=[],s=[],l=t.ecModel,c=yge(l).datasetMap,d=o.uid+"_"+n.seriesLayoutBy,h,p;e=e.slice(),At(e,function(S,k){var C=Lr(S)?S:e[k]={name:S};C.type==="ordinal"&&h==null&&(h=k,p=y(C)),r[C.name]=[]});var v=c.get(d)||c.set(d,{categoryWayDim:p,valueWayDim:0});At(e,function(S,k){var C=S.name,x=y(S);if(h==null){var E=v.valueWayDim;g(r[C],E,x),g(s,E,x),v.valueWayDim+=x}else if(h===k)g(r[C],0,x),g(a,0,x);else{var E=v.categoryWayDim;g(r[C],E,x),g(s,E,x),v.categoryWayDim+=x}});function g(S,k,C){for(var x=0;xt)return e[r];return e[n-1]}function _ft(e,t,n,r,o,a,s){a=a||e;var l=t(a),c=l.paletteIdx||0,d=l.paletteNameMap=l.paletteNameMap||{};if(d.hasOwnProperty(o))return d[o];var h=s==null||!r?n:bft(r,s);if(h=h||n,!(!h||!h.length)){var p=h[c];return o&&(d[o]=p),l.paletteIdx=(c+1)%h.length,p}}function Sft(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var Wx,n4,koe,xoe="\0_ec_inner",kft=1,NW=(function(e){Vn(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(n,r,o,a,s,l){a=a||{},this.option=null,this._theme=new xs(a),this._locale=new xs(s),this._optionManager=l},t.prototype.setOption=function(n,r,o){var a=Eoe(r);this._optionManager.setOption(n,o,a),this._resetOption(null,a)},t.prototype.resetOption=function(n,r){return this._resetOption(n,Eoe(r))},t.prototype._resetOption=function(n,r){var o=!1,a=this._optionManager;if(!n||n==="recreate"){var s=a.mountOption(n==="recreate");!this.option||n==="recreate"?koe(this,s):(this.restoreData(),this._mergeOption(s,r)),o=!0}if((n==="timeline"||n==="media")&&this.restoreData(),!n||n==="recreate"||n==="timeline"){var l=a.getTimelineOption(this);l&&(o=!0,this._mergeOption(l,r))}if(!n||n==="recreate"||n==="media"){var c=a.getMediaOption(this);c.length&&At(c,function(d){o=!0,this._mergeOption(d,r)},this)}return o},t.prototype.mergeOption=function(n){this._mergeOption(n,null)},t.prototype._mergeOption=function(n,r){var o=this.option,a=this._componentsMap,s=this._componentsCount,l=[],c=xi(),d=r&&r.replaceMergeMainTypeMap;hft(this),At(n,function(p,v){p!=null&&(ho.hasClass(v)?v&&(l.push(v),c.set(v,!0)):o[v]=o[v]==null?zi(p):ao(o[v],p,!0))}),d&&d.each(function(p,v){ho.hasClass(v)&&!c.get(v)&&(l.push(v),c.set(v,!0))}),ho.topologicalTravel(l,ho.getAllClassMainTypes(),h,this);function h(p){var v=yft(this,p,Zl(n[p])),g=a.get(p),y=g?d&&d.get(p)?"replaceMerge":"normalMerge":"replaceAll",S=mut(g,v,y);xut(S,p,ho),o[p]=null,a.set(p,null),s.set(p,0);var k=[],C=[],x=0,E;At(S,function(_,T){var D=_.existing,P=_.newOption;if(!P)D&&(D.mergeOption({},this),D.optionUpdated({},!1));else{var M=p==="series",$=ho.getClass(p,_.keyInfo.subType,!M);if(!$)return;if(p==="tooltip"){if(E)return;E=!0}if(D&&D.constructor===$)D.name=_.keyInfo.name,D.mergeOption(P,this),D.optionUpdated(P,!1);else{var L=xn({componentIndex:T},_.keyInfo);D=new $(P,this,this,L),xn(D,L),_.brandNew&&(D.__requireNewView=!0),D.init(P,this,this),D.optionUpdated(null,!0)}}D?(k.push(D.option),C.push(D),x++):(k.push(void 0),C.push(void 0))},this),o[p]=k,a.set(p,C),s.set(p,x),p==="series"&&Wx(this)}this._seriesIndices||Wx(this)},t.prototype.getOption=function(){var n=zi(this.option);return At(n,function(r,o){if(ho.hasClass(o)){for(var a=Zl(r),s=a.length,l=!1,c=s-1;c>=0;c--)a[c]&&!c_(a[c])?l=!0:(a[c]=null,!l&&s--);a.length=s,n[o]=a}}),delete n[xoe],n},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(n){this._payload=n},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(n,r){var o=this._componentsMap.get(n);if(o){var a=o[r||0];if(a)return a;if(r==null){for(var s=0;s=t:n==="max"?e<=t:e===t}function Dft(e,t){return e.join(",")===t.join(",")}var cd=At,m_=Lr,Toe=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function ZN(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=Toe.length;n=0;k--){var C=e[k];if(l||(y=C.data.rawIndexOf(C.stackedByDimension,g)),y>=0){var x=C.data.getByRawIndex(C.stackResultDimension,y);if(c==="all"||c==="positive"&&x>0||c==="negative"&&x<0||c==="samesign"&&v>=0&&x>0||c==="samesign"&&v<=0&&x<0){v=cut(v,x),S=x;break}}}return r[0]=v,r[1]=S,r})})}var LA=(function(){function e(t){this.data=t.data||(t.sourceFormat===Rf?{}:[]),this.sourceFormat=t.sourceFormat||gge,this.seriesLayoutBy=t.seriesLayoutBy||Mh,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var n=this.dimensionsDefine=t.dimensionsDefine;if(n)for(var r=0;rS&&(S=E)}g[0]=y,g[1]=S}},o=function(){return this._data?this._data.length/this._dimSize:0};Moe=(t={},t[Mu+"_"+Mh]={pure:!0,appendData:a},t[Mu+"_"+h3]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Nd]={pure:!0,appendData:a},t[Rf]={pure:!0,appendData:function(s){var l=this._data;At(s,function(c,d){for(var h=l[d]||(l[d]=[]),p=0;p<(c||[]).length;p++)h.push(c[p])})}},t[nd]={appendData:a},t[m0]={persistent:!1,pure:!0,appendData:function(s){this._data=s},clean:function(){this._offset+=this.count(),this._data=null}},t);function a(s){for(var l=0;l=0&&(S=s.interpolatedValue[k])}return S!=null?S+"":""})}},e.prototype.getRawValue=function(t,n){return Fy(this.getData(n),t)},e.prototype.formatTooltip=function(t,n,r){},e})();function Noe(e){var t,n;return Lr(e)?e.type&&(n=e):t=e,{text:t,frag:n}}function wb(e){return new Yft(e)}var Yft=(function(){function e(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return e.prototype.perform=function(t){var n=this._upstream,r=t&&t.skip;if(this._dirty&&n){var o=this.context;o.data=o.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!r&&(a=this._plan(this.context));var s=h(this._modBy),l=this._modDataCount||0,c=h(t&&t.modBy),d=t&&t.modDataCount||0;(s!==c||l!==d)&&(a="reset");function h(x){return!(x>=1)&&(x=1),x}var p;(this._dirty||a==="reset")&&(this._dirty=!1,p=this._doReset(r)),this._modBy=c,this._modDataCount=d;var v=t&&t.step;if(n?this._dueEnd=n._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var g=this._dueIndex,y=Math.min(v!=null?this._dueIndex+v:1/0,this._dueEnd);if(!r&&(p||g1&&r>0?l:s}};return a;function s(){return t=e?null:co?-this._resultLT:0},e})(),Zft=(function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(t){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(t){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(t,n){},e.prototype.retrieveValueFromItem=function(t,n){},e.prototype.convertValue=function(t,n){return aE(t,n)},e})();function Jft(e,t){var n=new Zft,r=e.data,o=n.sourceFormat=e.sourceFormat,a=e.startIndex,s="";e.seriesLayoutBy!==Mh&&_u(s);var l=[],c={},d=e.dimensionsDefine;if(d)At(d,function(S,k){var C=S.name,x={index:k,name:C,displayName:S.displayName};if(l.push(x),C!=null){var E="";Om(c,C)&&_u(E),c[C]=x}});else for(var h=0;h65535?sht:aht}function b1(){return[1/0,-1/0]}function lht(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function Voe(e,t,n,r,o){var a=Rge[n||"float"];if(o){var s=e[t],l=s&&s.length;if(l!==r){for(var c=new a(r),d=0;dk[1]&&(k[1]=S)}return this._rawCount=this._count=c,{start:l,end:c}},e.prototype._initDataFromProvider=function(t,n,r){for(var o=this._provider,a=this._chunks,s=this._dimensions,l=s.length,c=this._rawExtent,d=Er(s,function(x){return x.property}),h=0;hC[1]&&(C[1]=k)}}!o.persistent&&o.clean&&o.clean(),this._rawCount=this._count=n,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(t,n){if(!(n>=0&&n=0&&n=this._rawCount||t<0)return-1;if(!this._indices)return t;var n=this._indices,r=n[t];if(r!=null&&rt)a=s-1;else return s}return-1},e.prototype.indicesOfNearest=function(t,n,r){var o=this._chunks,a=o[t],s=[];if(!a)return s;r==null&&(r=1/0);for(var l=1/0,c=-1,d=0,h=0,p=this.count();h=0&&c<0)&&(l=y,c=g,d=0),g===c&&(s[d++]=h))}return s.length=d,s},e.prototype.getIndices=function(){var t,n=this._indices;if(n){var r=n.constructor,o=this._count;if(r===Array){t=new r(o);for(var a=0;a=p&&x<=v||isNaN(x))&&(c[d++]=S),S++}y=!0}else if(a===2){for(var k=g[o[0]],E=g[o[1]],_=t[o[1]][0],T=t[o[1]][1],C=0;C=p&&x<=v||isNaN(x))&&(D>=_&&D<=T||isNaN(D))&&(c[d++]=S),S++}y=!0}}if(!y)if(a===1)for(var C=0;C=p&&x<=v||isNaN(x))&&(c[d++]=P)}else for(var C=0;Ct[L][1])&&(M=!1)}M&&(c[d++]=n.getRawIndex(C))}return dC[1]&&(C[1]=k)}}}},e.prototype.lttbDownSample=function(t,n){var r=this.clone([t],!0),o=r._chunks,a=o[t],s=this.count(),l=0,c=Math.floor(1/n),d=this.getRawIndex(0),h,p,v,g=new(y1(this._rawCount))(Math.min((Math.ceil(s/c)+2)*2,s));g[l++]=d;for(var y=1;yh&&(h=p,v=_)}B>0&&Bl&&(S=l-h);for(var k=0;ky&&(y=x,g=h+k)}var E=this.getRawIndex(p),_=this.getRawIndex(g);ph-y&&(c=h-y,l.length=c);for(var S=0;Sp[1]&&(p[1]=C),v[g++]=x}return a._count=g,a._indices=v,a._updateGetRawIdx(),a},e.prototype.each=function(t,n){if(this._count)for(var r=t.length,o=this._chunks,a=0,s=this.count();ac&&(c=p)}return s=[l,c],this._extent[t]=s,s},e.prototype.getRawDataItem=function(t){var n=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(n);for(var r=[],o=this._chunks,a=0;a=0?this._indices[t]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=(function(){function t(n,r,o,a){return aE(n[a],this._dimensions[a])}eF={arrayRows:t,objectRows:function(n,r,o,a){return aE(n[r],this._dimensions[a])},keyedColumns:t,original:function(n,r,o,a){var s=n&&(n.value==null?n:n.value);return aE(s instanceof Array?s[a]:s,this._dimensions[a])},typedArray:function(n,r,o,a){return n[a]}}})(),e})(),uht=(function(){function e(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(t,n){this._sourceList=t,this._upstreamSignList=n,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,n=this._getUpstreamSourceManagers(),r=!!n.length,o,a;if(Gx(t)){var s=t,l=void 0,c=void 0,d=void 0;if(r){var h=n[0];h.prepareSource(),d=h.getSource(),l=d.data,c=d.sourceFormat,a=[h._getVersionSign()]}else l=s.get("data",!0),c=Ru(l)?m0:nd,a=[];var p=this._getSourceMetaRawOption()||{},v=d&&d.metaRawOption||{},g=mi(p.seriesLayoutBy,v.seriesLayoutBy)||null,y=mi(p.sourceHeader,v.sourceHeader),S=mi(p.dimensions,v.dimensions),k=g!==v.seriesLayoutBy||!!y!=!!v.sourceHeader||S;o=k?[tz(l,{seriesLayoutBy:g,sourceHeader:y,dimensions:S},c)]:[]}else{var C=t;if(r){var x=this._applyTransform(n);o=x.sourceList,a=x.upstreamSignList}else{var E=C.get("source",!0);o=[tz(E,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(o,a)},e.prototype._applyTransform=function(t){var n=this._sourceHost,r=n.get("transform",!0),o=n.get("fromTransformResult",!0);if(o!=null){var a="";t.length!==1&&zoe(a)}var s,l=[],c=[];return At(t,function(d){d.prepareSource();var h=d.getSource(o||0),p="";o!=null&&!h&&zoe(p),l.push(h),c.push(d._getVersionSign())}),r?s=iht(r,l,{datasetIndex:n.componentIndex}):o!=null&&(s=[Vft(l[0])]),{sourceList:s,upstreamSignList:c}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),n=0;n1||n>0&&!e.noHeader;return At(e.blocks,function(o){var a=Bge(o);a>=t&&(t=a+ +(r&&(!a||rz(o)&&!o.noHeader)))}),t}return 0}function hht(e,t,n,r){var o=t.noHeader,a=vht(Bge(t)),s=[],l=t.blocks||[];Hh(!l||rr(l)),l=l||[];var c=e.orderMode;if(t.sortBlocks&&c){l=l.slice();var d={valueAsc:"asc",valueDesc:"desc"};if(Om(d,c)){var h=new Xft(d[c],null);l.sort(function(S,k){return h.evaluate(S.sortParam,k.sortParam)})}else c==="seriesDesc"&&l.reverse()}At(l,function(S,k){var C=t.valueFormatter,x=$ge(S)(C?xn(xn({},e),{valueFormatter:C}):e,S,k>0?a.html:0,r);x!=null&&s.push(x)});var p=e.renderMode==="richText"?s.join(a.richText):iz(r,s.join(""),o?n:a.html);if(o)return p;var v=ez(t.header,"ordinal",e.useUTC),g=Oge(r,e.renderMode).nameStyle,y=Mge(r);return e.renderMode==="richText"?Nge(e,v,g)+a.richText+p:iz(r,'
'+yu(v)+"
"+p,n)}function pht(e,t,n,r){var o=e.renderMode,a=t.noName,s=t.noValue,l=!t.markerType,c=t.name,d=e.useUTC,h=t.valueFormatter||e.valueFormatter||function(_){return _=rr(_)?_:[_],Er(_,function(T,D){return ez(T,rr(g)?g[D]:g,d)})};if(!(a&&s)){var p=l?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",o),v=a?"":ez(c,"ordinal",d),g=t.valueType,y=s?[]:h(t.value,t.dataIndex),S=!l||!a,k=!l&&a,C=Oge(r,o),x=C.nameStyle,E=C.valueStyle;return o==="richText"?(l?"":p)+(a?"":Nge(e,v,x))+(s?"":yht(e,y,S,k,E)):iz(r,(l?"":p)+(a?"":mht(v,!l,x))+(s?"":ght(y,S,k,E)),n)}}function Uoe(e,t,n,r,o,a){if(e){var s=$ge(e),l={useUTC:o,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter};return s(l,e,0,a)}}function vht(e){return{html:dht[e],richText:fht[e]}}function iz(e,t,n){var r='
',o="margin: "+n+"px 0 0",a=Mge(e);return'
'+t+r+"
"}function mht(e,t,n){var r=t?"margin-left:2px":"";return''+yu(e)+""}function ght(e,t,n,r){var o=n?"10px":"20px",a=t?"float:right;margin-left:"+o:"";return e=rr(e)?e:[e],''+Er(e,function(s){return yu(s)}).join("  ")+""}function Nge(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function yht(e,t,n,r,o){var a=[o],s=r?10:20;return n&&a.push({padding:[0,0,0,s],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(rr(t)?t.join(" "):t,a)}function bht(e,t){var n=e.getData().getItemVisual(t,"style"),r=n[e.visualDrawType];return Nm(r)}function Fge(e,t){var n=e.get("padding");return n??(t==="richText"?[8,10]:10)}var tF=(function(){function e(){this.richTextStyles={},this._nextStyleNameId=vme()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,n,r){var o=r==="richText"?this._generateStyleName():null,a=aft({color:n,type:t,renderMode:r,markerId:o});return Sr(a)?a:(this.richTextStyles[o]=a.style,a.content)},e.prototype.wrapRichTextStyle=function(t,n){var r={};rr(n)?At(n,function(a){return xn(r,a)}):xn(r,n);var o=this._generateStyleName();return this.richTextStyles[o]=r,"{"+o+"|"+t+"}"},e})();function _ht(e){var t=e.series,n=e.dataIndex,r=e.multipleSeries,o=t.getData(),a=o.mapDimensionsAll("defaultedTooltip"),s=a.length,l=t.getRawValue(n),c=rr(l),d=bht(t,n),h,p,v,g;if(s>1||c&&!s){var y=Sht(l,t,n,a,d);h=y.inlineValues,p=y.inlineValueTypes,v=y.blocks,g=y.inlineValues[0]}else if(s){var S=o.getDimensionInfo(a[0]);g=h=Fy(o,n,a[0]),p=S.type}else g=h=c?l[0]:l;var k=pW(t),C=k&&t.name||"",x=o.getName(n),E=r?C:x;return g_("section",{header:C,noHeader:r||!k,sortParam:g,blocks:[g_("nameValue",{markerType:"item",markerColor:d,name:E,noName:!ff(E),value:h,valueType:p,dataIndex:n})].concat(v||[])})}function Sht(e,t,n,r,o){var a=t.getData(),s=T0(e,function(p,v,g){var y=a.getDimensionInfo(g);return p=p||y&&y.tooltip!==!1&&y.displayName!=null},!1),l=[],c=[],d=[];r.length?At(r,function(p){h(Fy(a,n,p),p)}):At(e,h);function h(p,v){var g=a.getDimensionInfo(v);!g||g.otherDims.tooltip===!1||(s?d.push(g_("nameValue",{markerType:"subItem",markerColor:o,name:g.displayName,value:p,valueType:g.type})):(l.push(p),c.push(g.type)))}return{inlineValues:l,inlineValueTypes:c,blocks:d}}var Lp=$s();function Kx(e,t){return e.getName(t)||e.getId(t)}var kht="__universalTransitionEnabled",Md=(function(e){Vn(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n._selectedDataIndicesMap={},n}return t.prototype.init=function(n,r,o){this.seriesIndex=this.componentIndex,this.dataTask=wb({count:Cht,reset:wht}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(n,o);var a=Lp(this).sourceManager=new uht(this);a.prepareSource();var s=this.getInitialData(n,o);Woe(s,this),this.dataTask.context.data=s,Lp(this).dataBeforeProcessed=s,Hoe(this),this._initSelectedMapFromData(s)},t.prototype.mergeDefaultAndTheme=function(n,r){var o=v_(this),a=o?IA(n):{},s=this.subType;ho.hasClass(s)&&(s+="Series"),ao(n,r.getTheme().get(this.subType)),ao(n,this.getDefaultOption()),UV(n,"label",["show"]),this.fillDataTextStyle(n.data),o&&Ny(n,a,o)},t.prototype.mergeOption=function(n,r){n=ao(this.option,n,!0),this.fillDataTextStyle(n.data);var o=v_(this);o&&Ny(this.option,n,o);var a=Lp(this).sourceManager;a.dirty(),a.prepareSource();var s=this.getInitialData(n,r);Woe(s,this),this.dataTask.dirty(),this.dataTask.context.data=s,Lp(this).dataBeforeProcessed=s,Hoe(this),this._initSelectedMapFromData(s)},t.prototype.fillDataTextStyle=function(n){if(n&&!Ru(n))for(var r=["show"],o=0;othis.getShallow("animationThreshold")&&(r=!1),!!r},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(n,r,o){var a=this.ecModel,s=BW.prototype.getColorFromPalette.call(this,n,r,o);return s||(s=a.getColorFromPalette(n,r,o)),s},t.prototype.coordDimToDataDim=function(n){return this.getRawData().mapDimensionsAll(n)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(n,r){this._innerSelect(this.getData(r),n)},t.prototype.unselect=function(n,r){var o=this.option.selectedMap;if(o){var a=this.option.selectedMode,s=this.getData(r);if(a==="series"||o==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var l=0;l=0&&o.push(s)}return o},t.prototype.isSelected=function(n,r){var o=this.option.selectedMap;if(!o)return!1;var a=this.getData(r);return(o==="all"||o[Kx(a,n)])&&!a.getItemModel(n).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[kht])return!0;var n=this.option.universalTransition;return n?n===!0?!0:n&&n.enabled:!1},t.prototype._innerSelect=function(n,r){var o,a,s=this.option,l=s.selectedMode,c=r.length;if(!(!l||!c)){if(l==="series")s.selectedMap="all";else if(l==="multiple"){Lr(s.selectedMap)||(s.selectedMap={});for(var d=s.selectedMap,h=0;h0&&this._innerSelect(n,r)}},t.registerClass=function(n){return ho.registerClass(n)},t.protoInitialize=(function(){var n=t.prototype;n.type="series.__base__",n.seriesIndex=0,n.ignoreStyleOnData=!1,n.hasSymbolVisual=!1,n.defaultSymbol="circle",n.visualStyleAccessPath="itemStyle",n.visualDrawType="fill"})(),t})(ho);Df(Md,qft);Df(Md,BW);Sme(Md,ho);function Hoe(e){var t=e.name;pW(e)||(e.name=xht(e)||t)}function xht(e){var t=e.getRawData(),n=t.mapDimensionsAll("seriesName"),r=[];return At(n,function(o){var a=t.getDimensionInfo(o);a.displayName&&r.push(a.displayName)}),r.join(" ")}function Cht(e){return e.model.getRawData().count()}function wht(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),Eht}function Eht(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function Woe(e,t){At(Wat(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,Ps(Tht,t))})}function Tht(e,t){var n=oz(e);return n&&n.setOutputEnd((t||this).count()),t}function oz(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var r=n.currentTask;if(r){var o=r.agentStubMap;o&&(r=o.get(e.uid))}return r}}var Od=(function(){function e(){this.group=new Za,this.uid=kA("viewComponent")}return e.prototype.init=function(t,n){},e.prototype.render=function(t,n,r,o){},e.prototype.dispose=function(t,n){},e.prototype.updateView=function(t,n,r,o){},e.prototype.updateLayout=function(t,n,r,o){},e.prototype.updateVisual=function(t,n,r,o){},e.prototype.toggleBlurSeries=function(t,n,r){},e.prototype.eachRendered=function(t){var n=this.group;n&&n.traverse(t)},e})();mW(Od);cA(Od);function UW(){var e=$s();return function(t){var n=e(t),r=t.pipelineContext,o=!!n.large,a=!!n.progressiveRender,s=n.large=!!(r&&r.large),l=n.progressiveRender=!!(r&&r.progressiveRender);return(o!==s||a!==l)&&"reset"}}var jge=$s(),Aht=UW(),Gc=(function(){function e(){this.group=new Za,this.uid=kA("viewChart"),this.renderTask=wb({plan:Iht,reset:Lht}),this.renderTask.context={view:this}}return e.prototype.init=function(t,n){},e.prototype.render=function(t,n,r,o){},e.prototype.highlight=function(t,n,r,o){var a=t.getData(o&&o.dataType);a&&Koe(a,o,"emphasis")},e.prototype.downplay=function(t,n,r,o){var a=t.getData(o&&o.dataType);a&&Koe(a,o,"normal")},e.prototype.remove=function(t,n){this.group.removeAll()},e.prototype.dispose=function(t,n){},e.prototype.updateView=function(t,n,r,o){this.render(t,n,r,o)},e.prototype.updateLayout=function(t,n,r,o){this.render(t,n,r,o)},e.prototype.updateVisual=function(t,n,r,o){this.render(t,n,r,o)},e.prototype.eachRendered=function(t){bA(this.group,t)},e.markUpdateMethod=function(t,n){jge(t).updateMethod=n},e.protoInitialize=(function(){var t=e.prototype;t.type="chart"})(),e})();function Goe(e,t,n){e&&XV(e)&&(t==="emphasis"?lT:uT)(e,n)}function Koe(e,t,n){var r=$m(e,t),o=t&&t.highlightKey!=null?Wct(t.highlightKey):null;r!=null?At(Zl(r),function(a){Goe(e.getItemGraphicEl(a),n,o)}):e.eachItemGraphicEl(function(a){Goe(a,n,o)})}mW(Gc);cA(Gc);function Iht(e){return Aht(e.model)}function Lht(e){var t=e.model,n=e.ecModel,r=e.api,o=e.payload,a=t.pipelineContext.progressiveRender,s=e.view,l=o&&jge(o).updateMethod,c=a?"incrementalPrepareRender":l&&s[l]?l:"render";return c!=="render"&&s[c](t,n,r,o),Dht[c]}var Dht={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},gT="\0__throttleOriginMethod",qoe="\0__throttleRate",Yoe="\0__throttleType";function PA(e,t,n){var r,o=0,a=0,s=null,l,c,d,h;t=t||0;function p(){a=new Date().getTime(),s=null,e.apply(c,d||[])}var v=function(){for(var g=[],y=0;y=0?p():s=setTimeout(p,-l),o=r};return v.clear=function(){s&&(clearTimeout(s),s=null)},v.debounceNextCall=function(g){h=g},v}function Vge(e,t,n,r){var o=e[t];if(o){var a=o[gT]||o,s=o[Yoe],l=o[qoe];if(l!==n||s!==r){if(n==null||!r)return e[t]=a;o=e[t]=PA(a,n,r==="debounce"),o[gT]=a,o[Yoe]=r,o[qoe]=n}return o}}function sz(e,t){var n=e[t];n&&n[gT]&&(n.clear&&n.clear(),e[t]=n[gT])}var Xoe=$s(),Zoe={itemStyle:d_(ege,!0),lineStyle:d_(Qme,!0)},Pht={lineStyle:"stroke",itemStyle:"fill"};function zge(e,t){var n=e.visualStyleMapper||Zoe[t];return n||(console.warn("Unknown style type '"+t+"'."),Zoe.itemStyle)}function Uge(e,t){var n=e.visualDrawType||Pht[t];return n||(console.warn("Unknown style type '"+t+"'."),"fill")}var Rht={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",o=e.getModel(r),a=zge(e,r),s=a(o),l=o.getShallow("decal");l&&(n.setVisual("decal",l),l.dirty=!0);var c=Uge(e,r),d=s[c],h=ni(d)?d:null,p=s.fill==="auto"||s.stroke==="auto";if(!s[c]||h||p){var v=e.getColorFromPalette(e.name,null,t.getSeriesCount());s[c]||(s[c]=v,n.setVisual("colorFromPalette",!0)),s.fill=s.fill==="auto"||ni(s.fill)?v:s.fill,s.stroke=s.stroke==="auto"||ni(s.stroke)?v:s.stroke}if(n.setVisual("style",s),n.setVisual("drawType",c),!t.isSeriesFiltered(e)&&h)return n.setVisual("colorFromPalette",!1),{dataEach:function(g,y){var S=e.getDataParams(y),k=xn({},s);k[c]=h(S),g.setItemVisual(y,"style",k)}}}},i4=new xs,Mht={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",o=zge(e,r),a=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(s,l){var c=s.getRawDataItem(l);if(c&&c[r]){i4.option=c[r];var d=o(i4),h=s.ensureUniqueItemVisual(l,"style");xn(h,d),i4.option.decal&&(s.setItemVisual(l,"decal",i4.option.decal),i4.option.decal.dirty=!0),a in d&&s.setItemVisual(l,"colorFromPalette",!1)}}:null}}}},Oht={performRawSeries:!0,overallReset:function(e){var t=xi();e.eachSeries(function(n){var r=n.getColorBy();if(!n.isColorBySeries()){var o=n.type+"-"+r,a=t.get(o);a||(a={},t.set(o,a)),Xoe(n).scope=a}}),e.eachSeries(function(n){if(!(n.isColorBySeries()||e.isSeriesFiltered(n))){var r=n.getRawData(),o={},a=n.getData(),s=Xoe(n).scope,l=n.visualStyleAccessPath||"itemStyle",c=Uge(n,l);a.each(function(d){var h=a.getRawIndex(d);o[h]=d}),r.each(function(d){var h=o[d],p=a.getItemVisual(h,"colorFromPalette");if(p){var v=a.ensureUniqueItemVisual(h,"style"),g=r.getName(d)||d+"",y=r.count();v[c]=n.getColorFromPalette(g,s,y)}})}})}},qx=Math.PI;function $ht(e,t){t=t||{},uo(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new Za,r=new Zs({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var o=new Ja({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new Zs({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});n.add(a);var s;return t.showSpinner&&(s=new gA({shape:{startAngle:-qx/2,endAngle:-qx/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),s.animateShape(!0).when(1e3,{endAngle:qx*3/2}).start("circularInOut"),s.animateShape(!0).when(1e3,{startAngle:qx*3/2}).delay(300).start("circularInOut"),n.add(s)),n.resize=function(){var l=o.getBoundingRect().width,c=t.showSpinner?t.spinnerRadius:0,d=(e.getWidth()-c*2-(t.showSpinner&&l?10:0)-l)/2-(t.showSpinner&&l?0:5+l/2)+(t.showSpinner?0:l/2)+(l?0:c),h=e.getHeight()/2;t.showSpinner&&s.setShape({cx:d,cy:h}),a.setShape({x:d-c,y:h-c,width:c*2,height:c*2}),r.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n}var Hge=(function(){function e(t,n,r,o){this._stageTaskMap=xi(),this.ecInstance=t,this.api=n,r=this._dataProcessorHandlers=r.slice(),o=this._visualHandlers=o.slice(),this._allHandlers=r.concat(o)}return e.prototype.restoreData=function(t,n){t.restoreData(n),this._stageTaskMap.each(function(r){var o=r.overallTask;o&&o.dirty()})},e.prototype.getPerformArgs=function(t,n){if(t.__pipeline){var r=this._pipelineMap.get(t.__pipeline.id),o=r.context,a=!n&&r.progressiveEnabled&&(!o||o.progressiveRender)&&t.__idxInPipeline>r.blockIndex,s=a?r.step:null,l=o&&o.modDataCount,c=l!=null?Math.ceil(l/s):null;return{step:s,modBy:c,modDataCount:l}}},e.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},e.prototype.updateStreamModes=function(t,n){var r=this._pipelineMap.get(t.uid),o=t.getData(),a=o.count(),s=r.progressiveEnabled&&n.incrementalPrepareRender&&a>=r.threshold,l=t.get("large")&&a>=t.get("largeThreshold"),c=t.get("progressiveChunkMode")==="mod"?a:null;t.pipelineContext=r.context={progressiveRender:s,modDataCount:c,large:l}},e.prototype.restorePipelines=function(t){var n=this,r=n._pipelineMap=xi();t.eachSeries(function(o){var a=o.getProgressive(),s=o.uid;r.set(s,{id:s,head:null,tail:null,threshold:o.getProgressiveThreshold(),progressiveEnabled:a&&!(o.preventIncremental&&o.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),n._pipe(o,o.dataTask)})},e.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,n=this.api.getModel(),r=this.api;At(this._allHandlers,function(o){var a=t.get(o.uid)||t.set(o.uid,{}),s="";Hh(!(o.reset&&o.overallReset),s),o.reset&&this._createSeriesStageTask(o,a,n,r),o.overallReset&&this._createOverallStageTask(o,a,n,r)},this)},e.prototype.prepareView=function(t,n,r,o){var a=t.renderTask,s=a.context;s.model=n,s.ecModel=r,s.api=o,a.__block=!t.incrementalPrepareRender,this._pipe(n,a)},e.prototype.performDataProcessorTasks=function(t,n){this._performStageTasks(this._dataProcessorHandlers,t,n,{block:!0})},e.prototype.performVisualTasks=function(t,n,r){this._performStageTasks(this._visualHandlers,t,n,r)},e.prototype._performStageTasks=function(t,n,r,o){o=o||{};var a=!1,s=this;At(t,function(c,d){if(!(o.visualType&&o.visualType!==c.visualType)){var h=s._stageTaskMap.get(c.uid),p=h.seriesTaskMap,v=h.overallTask;if(v){var g,y=v.agentStubMap;y.each(function(k){l(o,k)&&(k.dirty(),g=!0)}),g&&v.dirty(),s.updatePayload(v,r);var S=s.getPerformArgs(v,o.block);y.each(function(k){k.perform(S)}),v.perform(S)&&(a=!0)}else p&&p.each(function(k,C){l(o,k)&&k.dirty();var x=s.getPerformArgs(k,o.block);x.skip=!c.performRawSeries&&n.isSeriesFiltered(k.context.model),s.updatePayload(k,r),k.perform(x)&&(a=!0)})}});function l(c,d){return c.setDirty&&(!c.dirtyMap||c.dirtyMap.get(d.__pipeline.id))}this.unfinished=a||this.unfinished},e.prototype.performSeriesTasks=function(t){var n;t.eachSeries(function(r){n=r.dataTask.perform()||n}),this.unfinished=n||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(t){var n=t.tail;do{if(n.__block){t.blockIndex=n.__idxInPipeline;break}n=n.getUpstream()}while(n)})},e.prototype.updatePayload=function(t,n){n!=="remain"&&(t.context.payload=n)},e.prototype._createSeriesStageTask=function(t,n,r,o){var a=this,s=n.seriesTaskMap,l=n.seriesTaskMap=xi(),c=t.seriesType,d=t.getTargetSeries;t.createOnAllSeries?r.eachRawSeries(h):c?r.eachRawSeriesByType(c,h):d&&d(r,o).each(h);function h(p){var v=p.uid,g=l.set(v,s&&s.get(v)||wb({plan:Vht,reset:zht,count:Hht}));g.context={model:p,ecModel:r,api:o,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(p,g)}},e.prototype._createOverallStageTask=function(t,n,r,o){var a=this,s=n.overallTask=n.overallTask||wb({reset:Bht});s.context={ecModel:r,api:o,overallReset:t.overallReset,scheduler:a};var l=s.agentStubMap,c=s.agentStubMap=xi(),d=t.seriesType,h=t.getTargetSeries,p=!0,v=!1,g="";Hh(!t.createOnAllSeries,g),d?r.eachRawSeriesByType(d,y):h?h(r,o).each(y):(p=!1,At(r.getSeries(),y));function y(S){var k=S.uid,C=c.set(k,l&&l.get(k)||(v=!0,wb({reset:Nht,onDirty:jht})));C.context={model:S,overallProgress:p},C.agent=s,C.__block=p,a._pipe(S,C)}v&&s.dirty()},e.prototype._pipe=function(t,n){var r=t.uid,o=this._pipelineMap.get(r);!o.head&&(o.head=n),o.tail&&o.tail.pipe(n),o.tail=n,n.__idxInPipeline=o.count++,n.__pipeline=o},e.wrapStageHandler=function(t,n){return ni(t)&&(t={overallReset:t,seriesType:Wht(t)}),t.uid=kA("stageHandler"),n&&(t.visualType=n),t},e})();function Bht(e){e.overallReset(e.ecModel,e.api,e.payload)}function Nht(e){return e.overallProgress&&Fht}function Fht(){this.agent.dirty(),this.getDownstream().dirty()}function jht(){this.agent&&this.agent.dirty()}function Vht(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function zht(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=Zl(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?Er(t,function(n,r){return Wge(r)}):Uht}var Uht=Wge(0);function Wge(e){return function(t,n){var r=n.data,o=n.resetDefines[e];if(o&&o.dataEach)for(var a=t.start;a0&&g===d.length-v.length){var y=d.slice(0,g);y!=="data"&&(n.mainType=y,n[v.toLowerCase()]=c,h=!0)}}l.hasOwnProperty(d)&&(r[d]=c,h=!0),h||(o[d]=c)})}return{cptQuery:n,dataQuery:r,otherQuery:o}},e.prototype.filter=function(t,n){var r=this.eventInfo;if(!r)return!0;var o=r.targetEl,a=r.packedEvent,s=r.model,l=r.view;if(!s||!l)return!0;var c=n.cptQuery,d=n.dataQuery;return h(c,s,"mainType")&&h(c,s,"subType")&&h(c,s,"index","componentIndex")&&h(c,s,"name")&&h(c,s,"id")&&h(d,a,"name")&&h(d,a,"dataIndex")&&h(d,a,"dataType")&&(!l.filterForExposedEvent||l.filterForExposedEvent(t,n.otherQuery,o,a));function h(p,v,g,y){return p[g]==null||v[y||g]===p[g]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e})(),az=["symbol","symbolSize","symbolRotate","symbolOffset"],tse=az.concat(["symbolKeepAspect"]),qht={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual("legendIcon",e.legendIcon),!e.hasSymbolVisual)return;for(var r={},o={},a=!1,s=0;s=0&&Qv(c)?c:.5;var d=e.createRadialGradient(s,l,0,s,l,c);return d}function uz(e,t,n){for(var r=t.type==="radial"?hpt(e,t,n):fpt(e,t,n),o=t.colorStops,a=0;a0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:Ao(e)?[e]:rr(e)?e:null}function Xge(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&vpt(t.lineDash,t.lineWidth),r=t.lineDashOffset;if(n){var o=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;o&&o!==1&&(n=Er(n,function(a){return a/o}),r/=o)}return[n,r]}var mpt=new Bm(!0);function bT(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function nse(e){return typeof e=="string"&&e!=="none"}function _T(e){var t=e.fill;return t!=null&&t!=="none"}function rse(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=n}else e.fill()}function ise(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=n}else e.stroke()}function cz(e,t,n){var r=kme(t.image,t.__image,n);if(dA(r)){var o=e.createPattern(r,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&o&&o.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*Gat),a.scaleSelf(t.scaleX||1,t.scaleY||1),o.setTransform(a)}return o}}function gpt(e,t,n,r){var o,a=bT(n),s=_T(n),l=n.strokePercent,c=l<1,d=!t.path;(!t.silent||c)&&d&&t.createPathProxy();var h=t.path||mpt,p=t.__dirty;if(!r){var v=n.fill,g=n.stroke,y=s&&!!v.colorStops,S=a&&!!g.colorStops,k=s&&!!v.image,C=a&&!!g.image,x=void 0,E=void 0,_=void 0,T=void 0,D=void 0;(y||S)&&(D=t.getBoundingRect()),y&&(x=p?uz(e,v,D):t.__canvasFillGradient,t.__canvasFillGradient=x),S&&(E=p?uz(e,g,D):t.__canvasStrokeGradient,t.__canvasStrokeGradient=E),k&&(_=p||!t.__canvasFillPattern?cz(e,v,t):t.__canvasFillPattern,t.__canvasFillPattern=_),C&&(T=p||!t.__canvasStrokePattern?cz(e,g,t):t.__canvasStrokePattern,t.__canvasStrokePattern=_),y?e.fillStyle=x:k&&(_?e.fillStyle=_:s=!1),S?e.strokeStyle=E:C&&(T?e.strokeStyle=T:a=!1)}var P=t.getGlobalScale();h.setScale(P[0],P[1],t.segmentIgnoreThreshold);var M,$;e.setLineDash&&n.lineDash&&(o=Xge(t),M=o[0],$=o[1]);var L=!0;(d||p&B1)&&(h.setDPR(e.dpr),c?h.setContext(null):(h.setContext(e),L=!1),h.reset(),t.buildPath(h,t.shape,r),h.toStatic(),t.pathUpdated()),L&&h.rebuildPath(e,c?l:1),M&&(e.setLineDash(M),e.lineDashOffset=$),r||(n.strokeFirst?(a&&ise(e,n),s&&rse(e,n)):(s&&rse(e,n),a&&ise(e,n))),M&&e.setLineDash([])}function ypt(e,t,n){var r=t.__image=kme(n.image,t.__image,t,t.onload);if(!(!r||!dA(r))){var o=n.x||0,a=n.y||0,s=t.getWidth(),l=t.getHeight(),c=r.width/r.height;if(s==null&&l!=null?s=l*c:l==null&&s!=null?l=s/c:s==null&&l==null&&(s=r.width,l=r.height),n.sWidth&&n.sHeight){var d=n.sx||0,h=n.sy||0;e.drawImage(r,d,h,n.sWidth,n.sHeight,o,a,s,l)}else if(n.sx&&n.sy){var d=n.sx,h=n.sy,p=s-d,v=l-h;e.drawImage(r,d,h,p,v,o,a,s,l)}else e.drawImage(r,o,a,s,l)}}function bpt(e,t,n){var r,o=n.text;if(o!=null&&(o+=""),o){e.font=n.font||Mm,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var a=void 0,s=void 0;e.setLineDash&&n.lineDash&&(r=Xge(t),a=r[0],s=r[1]),a&&(e.setLineDash(a),e.lineDashOffset=s),n.strokeFirst?(bT(n)&&e.strokeText(o,n.x,n.y),_T(n)&&e.fillText(o,n.x,n.y)):(_T(n)&&e.fillText(o,n.x,n.y),bT(n)&&e.strokeText(o,n.x,n.y)),a&&e.setLineDash([])}}var ose=["shadowBlur","shadowOffsetX","shadowOffsetY"],sse=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Zge(e,t,n,r,o){var a=!1;if(!r&&(n=n||{},t===n))return!1;if(r||t.opacity!==n.opacity){Su(e,o),a=!0;var s=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(s)?gm.opacity:s}(r||t.blend!==n.blend)&&(a||(Su(e,o),a=!0),e.globalCompositeOperation=t.blend||gm.blend);for(var l=0;l0&&n.unfinished);n.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(n,r,o){if(!this[ul]){if(this._disposed){this.id;return}var a,s,l;if(Lr(r)&&(o=r.lazyUpdate,a=r.silent,s=r.replaceMerge,l=r.transition,r=r.notMerge),this[ul]=!0,!this._model||r){var c=new Tft(this._api),d=this._theme,h=this._model=new NW;h.scheduler=this._scheduler,h.ssr=this._ssr,h.init(null,null,null,d,this._locale,c)}this._model.setOption(n,{replaceMerge:s},hz);var p={seriesTransition:l,optionChanged:!0};if(o)this[du]={silent:a,updateParams:p},this[ul]=!1,this.getZr().wakeUp();else{try{S1(this),Dp.update.call(this,null,p)}catch(v){throw this[du]=null,this[ul]=!1,v}this._ssr||this._zr.flush(),this[du]=null,this[ul]=!1,o4.call(this,a),s4.call(this,a)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||zr.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(n){return this.renderToCanvas(n)},t.prototype.renderToCanvas=function(n){n=n||{};var r=this._zr.painter;return r.getRenderedCanvas({backgroundColor:n.backgroundColor||this._model.get("backgroundColor"),pixelRatio:n.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(n){n=n||{};var r=this._zr.painter;return r.renderToString({useViewBox:n.useViewBox})},t.prototype.getSvgDataURL=function(){if(zr.svgSupported){var n=this._zr,r=n.storage.getDisplayList();return At(r,function(o){o.stopAnimation(null,!0)}),n.painter.toDataURL()}},t.prototype.getDataURL=function(n){if(this._disposed){this.id;return}n=n||{};var r=n.excludeComponents,o=this._model,a=[],s=this;At(r,function(c){o.eachComponent({mainType:c},function(d){var h=s._componentsMap[d.__viewId];h.group.ignore||(a.push(h),h.group.ignore=!0)})});var l=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(n).toDataURL("image/"+(n&&n.type||"png"));return At(a,function(c){c.group.ignore=!1}),l},t.prototype.getConnectedDataURL=function(n){if(this._disposed){this.id;return}var r=n.type==="svg",o=this.group,a=Math.min,s=Math.max,l=1/0;if(Sse[o]){var c=l,d=l,h=-l,p=-l,v=[],g=n&&n.pixelRatio||this.getDevicePixelRatio();At(Tb,function(E,_){if(E.group===o){var T=r?E.getZr().painter.getSvgDom().innerHTML:E.renderToCanvas(zi(n)),D=E.getDom().getBoundingClientRect();c=a(D.left,c),d=a(D.top,d),h=s(D.right,h),p=s(D.bottom,p),v.push({dom:T,left:D.left,top:D.top})}}),c*=g,d*=g,h*=g,p*=g;var y=h-c,S=p-d,k=d3.createCanvas(),C=wie(k,{renderer:r?"svg":"canvas"});if(C.resize({width:y,height:S}),r){var x="";return At(v,function(E){var _=E.left-c,T=E.top-d;x+=''+E.dom+""}),C.painter.getSvgRoot().innerHTML=x,n.connectedBackgroundColor&&C.painter.setBackgroundColor(n.connectedBackgroundColor),C.refreshImmediately(),C.painter.toDataURL()}else return n.connectedBackgroundColor&&C.add(new Zs({shape:{x:0,y:0,width:y,height:S},style:{fill:n.connectedBackgroundColor}})),At(v,function(E){var _=new j0({style:{x:E.left*g-c,y:E.top*g-d,image:E.dom}});C.add(_)}),C.refreshImmediately(),k.toDataURL("image/"+(n&&n.type||"png"))}else return this.getDataURL(n)},t.prototype.convertToPixel=function(n,r){return sF(this,"convertToPixel",n,r)},t.prototype.convertFromPixel=function(n,r){return sF(this,"convertFromPixel",n,r)},t.prototype.containPixel=function(n,r){if(this._disposed){this.id;return}var o=this._model,a,s=IN(o,n);return At(s,function(l,c){c.indexOf("Models")>=0&&At(l,function(d){var h=d.coordinateSystem;if(h&&h.containPoint)a=a||!!h.containPoint(r);else if(c==="seriesModels"){var p=this._chartsMap[d.__viewId];p&&p.containPoint&&(a=a||p.containPoint(r,d))}},this)},this),!!a},t.prototype.getVisual=function(n,r){var o=this._model,a=IN(o,n,{defaultMainType:"series"}),s=a.seriesModel,l=s.getData(),c=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?l.indexOfRawIndex(a.dataIndex):null;return c!=null?Xht(l,c,r):Zht(l,r)},t.prototype.getViewOfComponentModel=function(n){return this._componentsMap[n.__viewId]},t.prototype.getViewOfSeriesModel=function(n){return this._chartsMap[n.__viewId]},t.prototype._initEvents=function(){var n=this;At(Hpt,function(r){var o=function(a){var s=n.getModel(),l=a.target,c,d=r==="globalout";if(d?c={}:l&&O4(l,function(y){var S=Xi(y);if(S&&S.dataIndex!=null){var k=S.dataModel||s.getSeriesByIndex(S.seriesIndex);return c=k&&k.getDataParams(S.dataIndex,S.dataType,l)||{},!0}else if(S.eventData)return c=xn({},S.eventData),!0},!0),c){var h=c.componentType,p=c.componentIndex;(h==="markLine"||h==="markPoint"||h==="markArea")&&(h="series",p=c.seriesIndex);var v=h&&p!=null&&s.getComponent(h,p),g=v&&n[v.mainType==="series"?"_chartsMap":"_componentsMap"][v.__viewId];c.event=a,c.type=r,n._$eventProcessor.eventInfo={targetEl:l,packedEvent:c,model:v,view:g},n.trigger(r,c)}};o.zrEventfulCallAtLast=!0,n._zr.on(r,o,n)}),At(Eb,function(r,o){n._messageCenter.on(o,function(a){this.trigger(o,a)},n)}),At(["selectchanged"],function(r){n._messageCenter.on(r,function(o){this.trigger(r,o)},n)}),Qht(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var n=this.getDom();n&&bme(this.getDom(),GW,"");var r=this,o=r._api,a=r._model;At(r._componentsViews,function(s){s.dispose(a,o)}),At(r._chartsViews,function(s){s.dispose(a,o)}),r._zr.dispose(),r._dom=r._model=r._chartsMap=r._componentsMap=r._chartsViews=r._componentsViews=r._scheduler=r._api=r._zr=r._throttledZrFlush=r._theme=r._coordSysMgr=r._messageCenter=null,delete Tb[r.id]},t.prototype.resize=function(n){if(!this[ul]){if(this._disposed){this.id;return}this._zr.resize(n);var r=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!r){var o=r.resetOption("media"),a=n&&n.silent;this[du]&&(a==null&&(a=this[du].silent),o=!0,this[du]=null),this[ul]=!0;try{o&&S1(this),Dp.update.call(this,{type:"resize",animation:xn({duration:0},n&&n.animation)})}catch(s){throw this[ul]=!1,s}this[ul]=!1,o4.call(this,a),s4.call(this,a)}}},t.prototype.showLoading=function(n,r){if(this._disposed){this.id;return}if(Lr(n)&&(r=n,n=""),n=n||"default",this.hideLoading(),!!pz[n]){var o=pz[n](this._api,r),a=this._zr;this._loadingFX=o,a.add(o)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(n){var r=xn({},n);return r.type=Eb[n.type],r},t.prototype.dispatchAction=function(n,r){if(this._disposed){this.id;return}if(Lr(r)||(r={silent:!!r}),!!ST[n.type]&&this._model){if(this[ul]){this._pendingActions.push(n);return}var o=r.silent;lF.call(this,n,o);var a=r.flush;a?this._zr.flush():a!==!1&&zr.browser.weChat&&this._throttledZrFlush(),o4.call(this,o),s4.call(this,o)}},t.prototype.updateLabelLayout=function(){yd.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(n){if(this._disposed){this.id;return}var r=n.seriesIndex,o=this.getModel(),a=o.getSeriesByIndex(r);a.appendData(n),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=(function(){S1=function(p){var v=p._scheduler;v.restorePipelines(p._model),v.prepareStageTasks(),oF(p,!0),oF(p,!1),v.plan()},oF=function(p,v){for(var g=p._model,y=p._scheduler,S=v?p._componentsViews:p._chartsViews,k=v?p._componentsMap:p._chartsMap,C=p._zr,x=p._api,E=0;Ev.get("hoverLayerThreshold")&&!zr.node&&!zr.worker&&v.eachSeries(function(k){if(!k.preventUsingHoverLayer){var C=p._chartsMap[k.__viewId];C.__alive&&C.eachRendered(function(x){x.states.emphasis&&(x.states.emphasis.hoverLayer=!0)})}})}function s(p,v){var g=p.get("blendMode")||null;v.eachRendered(function(y){y.isGroup||(y.style.blend=g)})}function l(p,v){if(!p.preventAutoZ){var g=p.get("z")||0,y=p.get("zlevel")||0;v.eachRendered(function(S){return c(S,g,y,-1/0),!0})}}function c(p,v,g,y){var S=p.getTextContent(),k=p.getTextGuideLine(),C=p.isGroup;if(C)for(var x=p.childrenRef(),E=0;E0?{duration:S,delay:g.get("delay"),easing:g.get("easing")}:null;v.eachRendered(function(C){if(C.states&&C.states.emphasis){if(kb(C))return;if(C instanceof vo&&Gct(C),C.__dirty){var x=C.prevStates;x&&C.useStates(x)}if(y){C.stateTransition=k;var E=C.getTextContent(),_=C.getTextGuideLine();E&&(E.stateTransition=k),_&&(_.stateTransition=k)}C.__dirty&&o(C)}})}bse=function(p){return new((function(v){Vn(g,v);function g(){return v!==null&&v.apply(this,arguments)||this}return g.prototype.getCoordinateSystems=function(){return p._coordSysMgr.getCoordinateSystems()},g.prototype.getComponentByElement=function(y){for(;y;){var S=y.__ecComponentInfo;if(S!=null)return p._model.getComponent(S.mainType,S.index);y=y.parent}},g.prototype.enterEmphasis=function(y,S){lT(y,S),wc(p)},g.prototype.leaveEmphasis=function(y,S){uT(y,S),wc(p)},g.prototype.enterBlur=function(y){$ct(y),wc(p)},g.prototype.leaveBlur=function(y){Ome(y),wc(p)},g.prototype.enterSelect=function(y){$me(y),wc(p)},g.prototype.leaveSelect=function(y){Bme(y),wc(p)},g.prototype.getModel=function(){return p.getModel()},g.prototype.getViewOfComponentModel=function(y){return p.getViewOfComponentModel(y)},g.prototype.getViewOfSeriesModel=function(y){return p.getViewOfSeriesModel(y)},g})(Sge))(p)},f1e=function(p){function v(g,y){for(var S=0;S=0)){kse.push(n);var a=Hge.wrapStageHandler(n,o);a.__prio=t,a.__raw=n,e.push(a)}}function y1e(e,t){pz[e]=t}function Jpt(e,t,n){var r=Ipt("registerMap");r&&r(e,t,n)}var Qpt=rht;ng(HW,Rht);ng(RA,Mht);ng(RA,Oht);ng(HW,qht);ng(RA,Yht);ng(s1e,Tpt);m1e(xge);g1e(Ppt,Fft);y1e("default",$ht);p3({type:ym,event:ym,update:ym},Tu);p3({type:rE,event:rE,update:rE},Tu);p3({type:bb,event:bb,update:bb},Tu);p3({type:iE,event:iE,update:iE},Tu);p3({type:_b,event:_b,update:_b},Tu);v1e("light",Ght);v1e("dark",qge);function a4(e){return e==null?0:e.length||1}function xse(e){return e}var e0t=(function(){function e(t,n,r,o,a,s){this._old=t,this._new=n,this._oldKeyGetter=r||xse,this._newKeyGetter=o||xse,this.context=a,this._diffModeMultiple=s==="multiple"}return e.prototype.add=function(t){return this._add=t,this},e.prototype.update=function(t){return this._update=t,this},e.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},e.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},e.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},e.prototype.remove=function(t){return this._remove=t,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var t=this._old,n=this._new,r={},o=new Array(t.length),a=new Array(n.length);this._initIndexMap(t,null,o,"_oldKeyGetter"),this._initIndexMap(n,r,a,"_newKeyGetter");for(var s=0;s1){var h=c.shift();c.length===1&&(r[l]=c[0]),this._update&&this._update(h,s)}else d===1?(r[l]=null,this._update&&this._update(c,s)):this._remove&&this._remove(s)}this._performRestAdd(a,r)},e.prototype._executeMultiple=function(){var t=this._old,n=this._new,r={},o={},a=[],s=[];this._initIndexMap(t,r,a,"_oldKeyGetter"),this._initIndexMap(n,o,s,"_newKeyGetter");for(var l=0;l1&&v===1)this._updateManyToOne&&this._updateManyToOne(h,d),o[c]=null;else if(p===1&&v>1)this._updateOneToMany&&this._updateOneToMany(h,d),o[c]=null;else if(p===1&&v===1)this._update&&this._update(h,d),o[c]=null;else if(p>1&&v>1)this._updateManyToMany&&this._updateManyToMany(h,d),o[c]=null;else if(p>1)for(var g=0;g1)for(var l=0;l30}var l4=Lr,Pp=Er,a0t=typeof Int32Array>"u"?Array:Int32Array,l0t="e\0\0",Cse=-1,u0t=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],c0t=["_approximateExtent"],wse,eC,u4,c4,dF,d4,fF,C1e=(function(){function e(t,n){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var r,o=!1;_1e(t)?(r=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(o=!0,r=t),r=r||["x","y"];for(var a={},s=[],l={},c=!1,d={},h=0;h=n)){var r=this._store,o=r.getProvider();this._updateOrdinalMeta();var a=this._nameList,s=this._idList,l=o.getSource().sourceFormat,c=l===nd;if(c&&!o.pure)for(var d=[],h=t;h0},e.prototype.ensureUniqueItemVisual=function(t,n){var r=this._itemVisuals,o=r[t];o||(o=r[t]={});var a=o[n];return a==null&&(a=this.getVisual(n),rr(a)?a=a.slice():l4(a)&&(a=xn({},a)),o[n]=a),a},e.prototype.setItemVisual=function(t,n,r){var o=this._itemVisuals[t]||{};this._itemVisuals[t]=o,l4(n)?xn(o,n):o[n]=r},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,n){l4(t)?xn(this._layout,t):this._layout[t]=n},e.prototype.getLayout=function(t){return this._layout[t]},e.prototype.getItemLayout=function(t){return this._itemLayouts[t]},e.prototype.setItemLayout=function(t,n,r){this._itemLayouts[t]=r?xn(this._itemLayouts[t]||{},n):n},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(t,n){var r=this.hostModel&&this.hostModel.seriesIndex;Ect(r,this.dataType,t,n),this._graphicEls[t]=n},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,n){At(this._graphicEls,function(r,o){r&&t&&t.call(n,r,o)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:Pp(this.dimensions,this._getDimInfo,this),this.hostModel)),dF(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,n){var r=this[t];ni(r)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var o=r.apply(this,arguments);return n.apply(this,[o].concat(iW(arguments)))})},e.internalField=(function(){wse=function(t){var n=t._invertedIndicesMap;At(n,function(r,o){var a=t._dimInfos[o],s=a.ordinalMeta,l=t._store;if(s){r=n[o]=new a0t(s.categories.length);for(var c=0;c1&&(c+="__ec__"+h),o[n]=c}}})(),e})();function w1e(e,t){jW(e)||(e=Cge(e)),t=t||{};var n=t.coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],o=xi(),a=[],s=f0t(e,n,r,t.dimensionsCount),l=t.canOmitUnusedDimensions&&x1e(s),c=r===e.dimensionsDefine,d=c?k1e(e):S1e(r),h=t.encodeDefine;!h&&t.encodeDefaulter&&(h=t.encodeDefaulter(e,s));for(var p=xi(h),v=new Pge(s),g=0;g0&&(r.name=o+(a-1)),a++,t.set(o,a)}}function f0t(e,t,n,r){var o=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return At(t,function(a){var s;Lr(a)&&(s=a.dimsDef)&&(o=Math.max(o,s.length))}),o}function h0t(e,t,n){if(n||t.hasKey(e)){for(var r=0;t.hasKey(e+r);)r++;e+=r}return t.set(e,!0),e}var p0t=(function(){function e(t){this.coordSysDims=[],this.axisMap=xi(),this.categoryAxisMap=xi(),this.coordSysName=t}return e})();function v0t(e){var t=e.get("coordinateSystem"),n=new p0t(t),r=m0t[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}var m0t={cartesian2d:function(e,t,n,r){var o=e.getReferringComponents("xAxis",Td).models[0],a=e.getReferringComponents("yAxis",Td).models[0];t.coordSysDims=["x","y"],n.set("x",o),n.set("y",a),k1(o)&&(r.set("x",o),t.firstCategoryDimIndex=0),k1(a)&&(r.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,n,r){var o=e.getReferringComponents("singleAxis",Td).models[0];t.coordSysDims=["single"],n.set("single",o),k1(o)&&(r.set("single",o),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var o=e.getReferringComponents("polar",Td).models[0],a=o.findAxisModel("radiusAxis"),s=o.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],n.set("radius",a),n.set("angle",s),k1(a)&&(r.set("radius",a),t.firstCategoryDimIndex=0),k1(s)&&(r.set("angle",s),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(e,t,n,r){t.coordSysDims=["lng","lat"]},parallel:function(e,t,n,r){var o=e.ecModel,a=o.getComponent("parallel",e.get("parallelIndex")),s=t.coordSysDims=a.dimensions.slice();At(a.parallelAxisIndex,function(l,c){var d=o.getComponent("parallelAxis",l),h=s[c];n.set(h,d),k1(d)&&(r.set(h,d),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=c))})}};function k1(e){return e.get("type")==="category"}function g0t(e,t,n){n=n||{};var r=n.byIndex,o=n.stackedCoordDimension,a,s,l;y0t(t)?a=t:(s=t.schema,a=s.dimensions,l=t.store);var c=!!(e&&e.get("stack")),d,h,p,v;if(At(a,function(x,E){Sr(x)&&(a[E]=x={name:x}),c&&!x.isExtraCoord&&(!r&&!d&&x.ordinalMeta&&(d=x),!h&&x.type!=="ordinal"&&x.type!=="time"&&(!o||o===x.coordDim)&&(h=x))}),h&&!r&&!d&&(r=!0),h){p="__\0ecstackresult_"+e.id,v="__\0ecstackedover_"+e.id,d&&(d.createInvertedIndices=!0);var g=h.coordDim,y=h.type,S=0;At(a,function(x){x.coordDim===g&&S++});var k={name:p,coordDim:g,coordDimIndex:S,type:y,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},C={name:v,coordDim:v,coordDimIndex:S+1,type:y,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};s?(l&&(k.storeDimIndex=l.ensureCalculationDimension(v,y),C.storeDimIndex=l.ensureCalculationDimension(p,y)),s.appendCalculationDimension(k),s.appendCalculationDimension(C)):(a.push(k),a.push(C))}return{stackedDimension:h&&h.name,stackedByDimension:d&&d.name,isStackedByIndex:r,stackedOverDimension:v,stackResultDimension:p}}function y0t(e){return!_1e(e.schema)}function Vy(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function b0t(e,t){return Vy(e,t)?e.getCalculationInfo("stackResultDimension"):t}function _0t(e,t){var n=e.get("coordinateSystem"),r=FW.get(n),o;return t&&t.coordSysDims&&(o=Er(t.coordSysDims,function(a){var s={name:a},l=t.axisMap.get(a);if(l){var c=l.get("type");s.type=r0t(c)}return s})),o||(o=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),o}function S0t(e,t,n){var r,o;return n&&At(e,function(a,s){var l=a.coordDim,c=n.categoryAxisMap.get(l);c&&(r==null&&(r=s),a.ordinalMeta=c.getOrdinalMeta(),t&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(o=!0)}),!o&&r!=null&&(e[r].otherDims.itemName=0),r}function YW(e,t,n){n=n||{};var r=t.getSourceManager(),o,a=!1;o=r.getSource(),a=o.sourceFormat===nd;var s=v0t(t),l=_0t(t,s),c=n.useEncodeDefaulter,d=ni(c)?c:c?Ps(pft,l,t):null,h={coordDimensions:l,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:d,canOmitUnusedDimensions:!a},p=w1e(o,h),v=S0t(p.dimensions,n.createInvertedIndices,s),g=a?null:r.getSharedDataStore(p),y=g0t(t,{schema:p,store:g}),S=new C1e(p,t);S.setCalculationInfo(y);var k=v!=null&&k0t(o)?function(C,x,E,_){return _===v?E:this.defaultDimValueGetter(C,x,E,_)}:null;return S.hasItemOption=!1,S.initData(a?o:g,null,k),S}function k0t(e){if(e.sourceFormat===nd){var t=x0t(e.data||[]);return!rr(aS(t))}}function x0t(e){for(var t=0;tn[1]&&(n[1]=t[1])},e.prototype.unionExtentFromData=function(t,n){this.unionExtent(t.getApproximateExtent(n))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(t,n){var r=this._extent;isNaN(t)||(r[0]=t),isNaN(n)||(r[1]=n)},e.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(t){this._isBlank=t},e})();cA(Mf);var C0t=0,vz=(function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++C0t}return e.createByAxisModel=function(t){var n=t.option,r=n.data,o=r&&Er(r,w0t);return new e({categories:o,needCollect:!o,deduplication:n.dedplication!==!1})},e.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},e.prototype.parseAndCollect=function(t){var n,r=this._needCollect;if(!Sr(t)&&!r)return t;if(r&&!this._deduplication)return n=this.categories.length,this.categories[n]=t,n;var o=this._getOrCreateMap();return n=o.get(t),n==null&&(r?(n=this.categories.length,this.categories[n]=t,o.set(t,n)):n=NaN),n},e.prototype._getOrCreateMap=function(){return this._map||(this._map=xi(this.categories))},e})();function w0t(e){return Lr(e)&&e.value!=null?e.value:e+""}function mz(e){return e.type==="interval"||e.type==="log"}function E0t(e,t,n,r){var o={},a=e[1]-e[0],s=o.interval=pme(a/t);n!=null&&sr&&(s=o.interval=r);var l=o.intervalPrecision=E1e(s),c=o.niceTickExtent=[Xs(Math.ceil(e[0]/s)*s,l),Xs(Math.floor(e[1]/s)*s,l)];return T0t(c,e),o}function hF(e){var t=Math.pow(10,hW(e)),n=e/t;return n?n===2?n=3:n===3?n=5:n*=2:n=1,Xs(n*t)}function E1e(e){return wh(e)+2}function Ese(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function T0t(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),Ese(e,0,t),Ese(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function MA(e,t){return e>=t[0]&&e<=t[1]}function OA(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function $A(e,t){return e*(t[1]-t[0])+t[0]}var XW=(function(e){Vn(t,e);function t(n){var r=e.call(this,n)||this;r.type="ordinal";var o=r.getSetting("ordinalMeta");return o||(o=new vz({})),rr(o)&&(o=new vz({categories:Er(o,function(a){return Lr(a)?a.value:a})})),r._ordinalMeta=o,r._extent=r.getSetting("extent")||[0,o.categories.length-1],r}return t.prototype.parse=function(n){return n==null?NaN:Sr(n)?this._ordinalMeta.getOrdinal(n):Math.round(n)},t.prototype.contain=function(n){return n=this.parse(n),MA(n,this._extent)&&this._ordinalMeta.categories[n]!=null},t.prototype.normalize=function(n){return n=this._getTickNumber(this.parse(n)),OA(n,this._extent)},t.prototype.scale=function(n){return n=Math.round($A(n,this._extent)),this.getRawOrdinalNumber(n)},t.prototype.getTicks=function(){for(var n=[],r=this._extent,o=r[0];o<=r[1];)n.push({value:o}),o++;return n},t.prototype.getMinorTicks=function(n){},t.prototype.setSortInfo=function(n){if(n==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var r=n.ordinalNumbers,o=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],s=0,l=this._ordinalMeta.categories.length,c=Math.min(l,r.length);s=0&&n=0&&n=n},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t})(Mf);Mf.registerClass(XW);var Bv=Xs,v3=(function(e){Vn(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="interval",n._interval=0,n._intervalPrecision=2,n}return t.prototype.parse=function(n){return n},t.prototype.contain=function(n){return MA(n,this._extent)},t.prototype.normalize=function(n){return OA(n,this._extent)},t.prototype.scale=function(n){return $A(n,this._extent)},t.prototype.setExtent=function(n,r){var o=this._extent;isNaN(n)||(o[0]=parseFloat(n)),isNaN(r)||(o[1]=parseFloat(r))},t.prototype.unionExtent=function(n){var r=this._extent;n[0]r[1]&&(r[1]=n[1]),this.setExtent(r[0],r[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(n){this._interval=n,this._niceExtent=this._extent.slice(),this._intervalPrecision=E1e(n)},t.prototype.getTicks=function(n){var r=this._interval,o=this._extent,a=this._niceExtent,s=this._intervalPrecision,l=[];if(!r)return l;var c=1e4;o[0]c)return[];var h=l.length?l[l.length-1].value:a[1];return o[1]>h&&(n?l.push({value:Bv(h+r,s)}):l.push({value:o[1]})),l},t.prototype.getMinorTicks=function(n){for(var r=this.getTicks(!0),o=[],a=this.getExtent(),s=1;sa[0]&&g0&&(a=a===null?l:Math.min(a,l))}n[r]=a}}return n}function L1e(e){var t=L0t(e),n=[];return At(e,function(r){var o=r.coordinateSystem,a=o.getBaseAxis(),s=a.getExtent(),l;if(a.type==="category")l=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var c=a.dim+"_"+a.index,d=t[c],h=Math.abs(s[1]-s[0]),p=a.scale.getExtent(),v=Math.abs(p[1]-p[0]);l=d?h/v*d:h}else{var g=r.getData();l=Math.abs(s[1]-s[0])/g.count()}var y=Jo(r.get("barWidth"),l),S=Jo(r.get("barMaxWidth"),l),k=Jo(r.get("barMinWidth")||(P1e(r)?.5:1),l),C=r.get("barGap"),x=r.get("barCategoryGap");n.push({bandWidth:l,barWidth:y,barMaxWidth:S,barMinWidth:k,barGap:C,barCategoryGap:x,axisKey:ZW(a),stackId:A1e(r)})}),D0t(n)}function D0t(e){var t={};At(e,function(r,o){var a=r.axisKey,s=r.bandWidth,l=t[a]||{bandWidth:s,remainedWidth:s,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},c=l.stacks;t[a]=l;var d=r.stackId;c[d]||l.autoWidthCount++,c[d]=c[d]||{width:0,maxWidth:0};var h=r.barWidth;h&&!c[d].width&&(c[d].width=h,h=Math.min(l.remainedWidth,h),l.remainedWidth-=h);var p=r.barMaxWidth;p&&(c[d].maxWidth=p);var v=r.barMinWidth;v&&(c[d].minWidth=v);var g=r.barGap;g!=null&&(l.gap=g);var y=r.barCategoryGap;y!=null&&(l.categoryGap=y)});var n={};return At(t,function(r,o){n[o]={};var a=r.stacks,s=r.bandWidth,l=r.categoryGap;if(l==null){var c=es(a).length;l=Math.max(35-c*4,15)+"%"}var d=Jo(l,s),h=Jo(r.gap,1),p=r.remainedWidth,v=r.autoWidthCount,g=(p-d)/(v+(v-1)*h);g=Math.max(g,0),At(a,function(C){var x=C.maxWidth,E=C.minWidth;if(C.width){var _=C.width;x&&(_=Math.min(_,x)),E&&(_=Math.max(_,E)),C.width=_,p-=_+h*_,v--}else{var _=g;x&&x<_&&(_=Math.min(x,p)),E&&E>_&&(_=E),_!==g&&(C.width=_,p-=_+h*_,v--)}}),g=(p-d)/(v+(v-1)*h),g=Math.max(g,0);var y=0,S;At(a,function(C,x){C.width||(C.width=g),S=C,y+=C.width*(1+h)}),S&&(y-=S.width*h);var k=-y/2;At(a,function(C,x){n[o][x]=n[o][x]||{bandWidth:s,offset:k,width:C.width},k+=C.width*(1+h)})}),n}function P0t(e,t,n){if(e&&t){var r=e[ZW(t)];return r}}function R0t(e,t){var n=I1e(e,t),r=L1e(n);At(n,function(o){var a=o.getData(),s=o.coordinateSystem,l=s.getBaseAxis(),c=A1e(o),d=r[ZW(l)][c],h=d.offset,p=d.width;a.setLayout({bandWidth:d.bandWidth,offset:h,size:p})})}function M0t(e){return{seriesType:e,plan:UW(),reset:function(t){if(D1e(t)){var n=t.getData(),r=t.coordinateSystem,o=r.getBaseAxis(),a=r.getOtherAxis(o),s=n.getDimensionIndex(n.mapDimension(a.dim)),l=n.getDimensionIndex(n.mapDimension(o.dim)),c=t.get("showBackground",!0),d=n.mapDimension(a.dim),h=n.getCalculationInfo("stackResultDimension"),p=Vy(n,d)&&!!n.getCalculationInfo("stackedOnSeries"),v=a.isHorizontal(),g=O0t(o,a),y=P1e(t),S=t.get("barMinHeight")||0,k=h&&n.getDimensionIndex(h),C=n.getLayout("size"),x=n.getLayout("offset");return{progress:function(E,_){for(var T=E.count,D=y&&Eh(T*3),P=y&&c&&Eh(T*3),M=y&&Eh(T),$=r.master.getRect(),L=v?$.width:$.height,B,F=_.getStore(),W=0;(B=E.next())!=null;){var U=F.get(p?k:s,B),G=F.get(l,B),X=g,oe=void 0;p&&(oe=+U-F.get(s,B));var Z=void 0,H=void 0,q=void 0,ee=void 0;if(v){var ne=r.dataToPoint([U,G]);if(p){var ae=r.dataToPoint([oe,G]);X=ae[0]}Z=X,H=ne[1]+x,q=ne[0]-X,ee=C,Math.abs(q)0?n:1:n))}var $0t=function(e,t,n,r){for(;n>>1;e[o][1]o&&(this._approxInterval=o);var l=tC.length,c=Math.min($0t(tC,this._approxInterval,0,l),l-1);this._interval=tC[c][1],this._minLevelUnit=tC[Math.max(c-1,0)][0]},t.prototype.parse=function(n){return Ao(n)?n:+Wh(n)},t.prototype.contain=function(n){return MA(this.parse(n),this._extent)},t.prototype.normalize=function(n){return OA(this.parse(n),this._extent)},t.prototype.scale=function(n){return $A(n,this._extent)},t.type="time",t})(v3),tC=[["second",PW],["minute",RW],["hour",xb],["quarter-day",xb*6],["half-day",xb*12],["day",Fc*1.2],["half-week",Fc*3.5],["week",Fc*7],["month",Fc*31],["quarter",Fc*95],["half-year",moe/2],["year",moe]];function B0t(e,t,n,r){var o=Wh(t),a=Wh(n),s=function(y){return yoe(o,y,r)===yoe(a,y,r)},l=function(){return s("year")},c=function(){return l()&&s("month")},d=function(){return c()&&s("day")},h=function(){return d()&&s("hour")},p=function(){return h()&&s("minute")},v=function(){return p()&&s("second")},g=function(){return v()&&s("millisecond")};switch(e){case"year":return l();case"month":return c();case"day":return d();case"hour":return h();case"minute":return p();case"second":return v();case"millisecond":return g()}}function N0t(e,t){return e/=Fc,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function F0t(e){var t=30*Fc;return e/=t,e>6?6:e>3?3:e>2?2:1}function j0t(e){return e/=xb,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function Tse(e,t){return e/=t?RW:PW,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function V0t(e){return pme(e)}function z0t(e,t,n){var r=new Date(e);switch(vy(t)){case"year":case"month":r[sge(n)](0);case"day":r[age(n)](1);case"hour":r[lge(n)](0);case"minute":r[uge(n)](0);case"second":r[cge(n)](0),r[dge(n)](0)}return r.getTime()}function U0t(e,t,n,r){var o=1e4,a=ige,s=0;function l(L,B,F,W,U,G,X){for(var oe=new Date(B),Z=B,H=oe[W]();Z1&&G===0&&F.unshift({value:F[0].value-Z})}}for(var G=0;G=r[0]&&x<=r[1]&&p++)}var E=(r[1]-r[0])/t;if(p>E*1.5&&v>E/1.5||(d.push(k),p>E||e===a[g]))break}h=[]}}}for(var _=ja(Er(d,function(L){return ja(L,function(B){return B.value>=r[0]&&B.value<=r[1]&&!B.notAdd})}),function(L){return L.length>0}),T=[],D=_.length-1,g=0;g<_.length;++g)for(var P=_[g],M=0;M0;)a*=10;var l=[Xs(G0t(r[0]/a)*a),Xs(W0t(r[1]/a)*a)];this._interval=a,this._niceExtent=l}},t.prototype.calcNiceExtent=function(n){Ab.calcNiceExtent.call(this,n),this._fixMin=n.fixMin,this._fixMax=n.fixMax},t.prototype.parse=function(n){return n},t.prototype.contain=function(n){return n=dd(n)/dd(this.base),MA(n,this._extent)},t.prototype.normalize=function(n){return n=dd(n)/dd(this.base),OA(n,this._extent)},t.prototype.scale=function(n){return n=$A(n,this._extent),nC(this.base,n)},t.type="log",t})(Mf),M1e=JW.prototype;M1e.getMinorTicks=Ab.getMinorTicks;M1e.getLabel=Ab.getLabel;function rC(e,t){return H0t(e,wh(t))}Mf.registerClass(JW);var K0t=(function(){function e(t,n,r){this._prepareParams(t,n,r)}return e.prototype._prepareParams=function(t,n,r){r[1]0&&c>0&&!d&&(l=0),l<0&&c<0&&!h&&(c=0));var v=this._determinedMin,g=this._determinedMax;return v!=null&&(l=v,d=!0),g!=null&&(c=g,h=!0),{min:l,max:c,minFixed:d,maxFixed:h,isBlank:p}},e.prototype.modifyDataMinMax=function(t,n){this[Y0t[t]]=n},e.prototype.setDeterminedMinMax=function(t,n){var r=q0t[t];this[r]=n},e.prototype.freeze=function(){this.frozen=!0},e})(),q0t={min:"_determinedMin",max:"_determinedMax"},Y0t={min:"_dataMin",max:"_dataMax"};function X0t(e,t,n){var r=e.rawExtentInfo;return r||(r=new K0t(e,t,n),e.rawExtentInfo=r,r)}function iC(e,t){return t==null?null:Y8(t)?NaN:e.parse(t)}function O1e(e,t){var n=e.type,r=X0t(e,t,e.getExtent()).calculate();e.setBlank(r.isBlank);var o=r.min,a=r.max,s=t.ecModel;if(s&&n==="time"){var l=I1e("bar",s),c=!1;if(At(l,function(p){c=c||p.getBaseAxis()===t.axis}),c){var d=L1e(l),h=Z0t(o,a,t,d);o=h.min,a=h.max}}return{extent:[o,a],fixMin:r.minFixed,fixMax:r.maxFixed}}function Z0t(e,t,n,r){var o=n.axis.getExtent(),a=Math.abs(o[1]-o[0]),s=P0t(r,n.axis);if(s===void 0)return{min:e,max:t};var l=1/0;At(s,function(g){l=Math.min(g.offset,l)});var c=-1/0;At(s,function(g){c=Math.max(g.offset+g.width,c)}),l=Math.abs(l),c=Math.abs(c);var d=l+c,h=t-e,p=1-(l+c)/a,v=h/p-h;return t+=v*(c/d),e-=v*(l/d),{min:e,max:t}}function Ise(e,t){var n=t,r=O1e(e,n),o=r.extent,a=n.get("splitNumber");e instanceof JW&&(e.base=n.get("logBase"));var s=e.type,l=n.get("interval"),c=s==="interval"||s==="time";e.setExtent(o[0],o[1]),e.calcNiceExtent({splitNumber:a,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:c?n.get("minInterval"):null,maxInterval:c?n.get("maxInterval"):null}),l!=null&&e.setInterval&&e.setInterval(l)}function J0t(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new XW({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new R1e({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(Mf.getClass(t)||v3)}}function Q0t(e){var t=e.scale.getExtent(),n=t[0],r=t[1];return!(n>0&&r>0||n<0&&r<0)}function m3(e){var t=e.getLabelModel().get("formatter"),n=e.type==="category"?e.scale.getExtent()[0]:null;return e.scale.type==="time"?(function(r){return function(o,a){return e.scale.getFormattedLabel(o,a,r)}})(t):Sr(t)?(function(r){return function(o){var a=e.scale.getLabel(o),s=r.replace("{value}",a??"");return s}})(t):ni(t)?(function(r){return function(o,a){return n!=null&&(a=o.value-n),r(QW(e,o),a,o.level!=null?{level:o.level}:null)}})(t):function(r){return e.scale.getLabel(r)}}function QW(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function evt(e){var t=e.model,n=e.scale;if(!(!t.get(["axisLabel","show"])||n.isBlank())){var r,o,a=n.getExtent();n instanceof XW?o=n.count():(r=n.getTicks(),o=r.length);var s=e.getLabelModel(),l=m3(e),c,d=1;o>40&&(d=Math.ceil(o/40));for(var h=0;h=0||(Lse.push(e),ni(e)&&(e={install:e}),e.install(ivt))}var __=$s();function B1e(e,t){var n=Er(t,function(r){return e.scale.parse(r)});return e.type==="time"&&n.length>0&&(n.sort(),n.unshift(n[0]),n.push(n[n.length-1])),n}function ovt(e){var t=e.getLabelModel().get("customValues");if(t){var n=m3(e),r=e.scale.getExtent(),o=B1e(e,t),a=ja(o,function(s){return s>=r[0]&&s<=r[1]});return{labels:Er(a,function(s){var l={value:s};return{formattedLabel:n(l),rawLabel:e.scale.getLabel(l),tickValue:s}})}}return e.type==="category"?avt(e):uvt(e)}function svt(e,t){var n=e.getTickModel().get("customValues");if(n){var r=e.scale.getExtent(),o=B1e(e,n);return{ticks:ja(o,function(a){return a>=r[0]&&a<=r[1]})}}return e.type==="category"?lvt(e,t):{ticks:Er(e.scale.getTicks(),function(a){return a.value})}}function avt(e){var t=e.getLabelModel(),n=N1e(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function N1e(e,t){var n=F1e(e,"labels"),r=eG(t),o=j1e(n,r);if(o)return o;var a,s;return ni(r)?a=U1e(e,r):(s=r==="auto"?cvt(e):r,a=z1e(e,s)),V1e(n,r,{labels:a,labelCategoryInterval:s})}function lvt(e,t){var n=F1e(e,"ticks"),r=eG(t),o=j1e(n,r);if(o)return o;var a,s;if((!t.get("show")||e.scale.isBlank())&&(a=[]),ni(r))a=U1e(e,r,!0);else if(r==="auto"){var l=N1e(e,e.getLabelModel());s=l.labelCategoryInterval,a=Er(l.labels,function(c){return c.tickValue})}else s=r,a=z1e(e,s,!0);return V1e(n,r,{ticks:a,tickCategoryInterval:s})}function uvt(e){var t=e.scale.getTicks(),n=m3(e);return{labels:Er(t,function(r,o){return{level:r.level,formattedLabel:n(r,o),rawLabel:e.scale.getLabel(r),tickValue:r.value}})}}function F1e(e,t){return __(e)[t]||(__(e)[t]=[])}function j1e(e,t){for(var n=0;n40&&(l=Math.max(1,Math.floor(s/40)));for(var c=a[0],d=e.dataToCoord(c+1)-e.dataToCoord(c),h=Math.abs(d*Math.cos(r)),p=Math.abs(d*Math.sin(r)),v=0,g=0;c<=a[1];c+=l){var y=0,S=0,k=dW(n({value:c}),t.font,"center","top");y=k.width*1.3,S=k.height*1.3,v=Math.max(v,y,7),g=Math.max(g,S,7)}var C=v/h,x=g/p;isNaN(C)&&(C=1/0),isNaN(x)&&(x=1/0);var E=Math.max(0,Math.floor(Math.min(C,x))),_=__(e.model),T=e.getExtent(),D=_.lastAutoInterval,P=_.lastTickCount;return D!=null&&P!=null&&Math.abs(D-E)<=1&&Math.abs(P-s)<=1&&D>E&&_.axisExtent0===T[0]&&_.axisExtent1===T[1]?E=D:(_.lastTickCount=s,_.lastAutoInterval=E,_.axisExtent0=T[0],_.axisExtent1=T[1]),E}function fvt(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function z1e(e,t,n){var r=m3(e),o=e.scale,a=o.getExtent(),s=e.getLabelModel(),l=[],c=Math.max((t||0)+1,1),d=a[0],h=o.count();d!==0&&c>1&&h/c>2&&(d=Math.round(Math.ceil(d/c)*c));var p=$1e(e),v=s.get("showMinLabel")||p,g=s.get("showMaxLabel")||p;v&&d!==a[0]&&S(a[0]);for(var y=d;y<=a[1];y+=c)S(y);g&&y-c!==a[1]&&S(a[1]);function S(k){var C={value:k};l.push(n?k:{formattedLabel:r(C),rawLabel:o.getLabel(C),tickValue:k})}return l}function U1e(e,t,n){var r=e.scale,o=m3(e),a=[];return At(r.getTicks(),function(s){var l=r.getLabel(s),c=s.value;t(s.value,l)&&a.push(n?c:{formattedLabel:o(s),rawLabel:l,tickValue:c})}),a}var Dse=[0,1],hvt=(function(){function e(t,n,r){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=n,this._extent=r||[0,0]}return e.prototype.contain=function(t){var n=this._extent,r=Math.min(n[0],n[1]),o=Math.max(n[0],n[1]);return t>=r&&t<=o},e.prototype.containData=function(t){return this.scale.contain(t)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(t){return lut(t||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(t,n){var r=this._extent;r[0]=t,r[1]=n},e.prototype.dataToCoord=function(t,n){var r=this._extent,o=this.scale;return t=o.normalize(t),this.onBand&&o.type==="ordinal"&&(r=r.slice(),Pse(r,o.count())),zV(t,Dse,r,n)},e.prototype.coordToData=function(t,n){var r=this._extent,o=this.scale;this.onBand&&o.type==="ordinal"&&(r=r.slice(),Pse(r,o.count()));var a=zV(t,r,Dse,n);return this.scale.scale(a)},e.prototype.pointToData=function(t,n){},e.prototype.getTicksCoords=function(t){t=t||{};var n=t.tickModel||this.getTickModel(),r=svt(this,n),o=r.ticks,a=Er(o,function(l){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(l):l),tickValue:l}},this),s=n.get("alignWithLabel");return pvt(this,a,s,t.clamp),a},e.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),n=t.get("splitNumber");n>0&&n<100||(n=5);var r=this.scale.getMinorTicks(n),o=Er(r,function(a){return Er(a,function(s){return{coord:this.dataToCoord(s),tickValue:s}},this)},this);return o},e.prototype.getViewLabels=function(){return ovt(this).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var t=this._extent,n=this.scale.getExtent(),r=n[1]-n[0]+(this.onBand?1:0);r===0&&(r=1);var o=Math.abs(t[1]-t[0]);return Math.abs(o)/r},e.prototype.calculateCategoryInterval=function(){return dvt(this)},e})();function Pse(e,t){var n=e[1]-e[0],r=t,o=n/r/2;e[0]+=o,e[1]-=o}function pvt(e,t,n,r){var o=t.length;if(!e.onBand||n||!o)return;var a=e.getExtent(),s,l;if(o===1)t[0].coord=a[0],s=t[1]={coord:a[1],tickValue:t[0].tickValue};else{var c=t[o-1].tickValue-t[0].tickValue,d=(t[o-1].coord-t[0].coord)/c;At(t,function(g){g.coord-=d/2});var h=e.scale.getExtent();l=1+h[1]-t[o-1].tickValue,s={coord:t[o-1].coord+d*l,tickValue:h[1]+1},t.push(s)}var p=a[0]>a[1];v(t[0].coord,a[0])&&(r?t[0].coord=a[0]:t.shift()),r&&v(a[0],t[0].coord)&&t.unshift({coord:a[0]}),v(a[1],s.coord)&&(r?s.coord=a[1]:t.pop()),r&&v(s.coord,a[1])&&t.push({coord:a[1]});function v(g,y){return g=Xs(g),y=Xs(y),p?g>y:g0){t=t/180*Math.PI,o0.fromArray(e[0]),ys.fromArray(e[1]),Na.fromArray(e[2]),Wr.sub(s0,o0,ys),Wr.sub(uf,Na,ys);var n=s0.len(),r=uf.len();if(!(n<.001||r<.001)){s0.scale(1/n),uf.scale(1/r);var o=s0.dot(uf),a=Math.cos(t);if(a1&&Wr.copy(Vl,Na),Vl.toArray(e[1])}}}}function mvt(e,t,n){if(n<=180&&n>0){n=n/180*Math.PI,o0.fromArray(e[0]),ys.fromArray(e[1]),Na.fromArray(e[2]),Wr.sub(s0,ys,o0),Wr.sub(uf,Na,ys);var r=s0.len(),o=uf.len();if(!(r<.001||o<.001)){s0.scale(1/r),uf.scale(1/o);var a=s0.dot(t),s=Math.cos(n);if(a=c)Wr.copy(Vl,Na);else{Vl.scaleAndAdd(uf,l/Math.tan(Math.PI/2-h));var p=Na.x!==ys.x?(Vl.x-ys.x)/(Na.x-ys.x):(Vl.y-ys.y)/(Na.y-ys.y);if(isNaN(p))return;p<0?Wr.copy(Vl,ys):p>1&&Wr.copy(Vl,Na)}Vl.toArray(e[1])}}}}function pF(e,t,n,r){var o=n==="normal",a=o?e:e.ensureState(n);a.ignore=t;var s=r.get("smooth");s&&s===!0&&(s=.3),a.shape=a.shape||{},s>0&&(a.shape.smooth=s);var l=r.getModel("lineStyle").getLineStyle();o?e.useStyle(l):a.style=l}function gvt(e,t){var n=t.smooth,r=t.points;if(r)if(e.moveTo(r[0][0],r[0][1]),n>0&&r.length>=3){var o=TV(r[0],r[1]),a=TV(r[1],r[2]);if(!o||!a){e.lineTo(r[1][0],r[1][1]),e.lineTo(r[2][0],r[2][1]);return}var s=Math.min(o,a)*n,l=lN([],r[1],r[0],s/o),c=lN([],r[1],r[2],s/a),d=lN([],l,c,.5);e.bezierCurveTo(l[0],l[1],l[0],l[1],d[0],d[1]),e.bezierCurveTo(c[0],c[1],c[0],c[1],r[2][0],r[2][1])}else for(var h=1;h0){E($*M,0,s);var L=$+D;L<0&&_(-L*M,1)}else _(-D*M,1)}}function E(D,P,M){D!==0&&(d=!0);for(var $=P;$0)for(var L=0;L0;L--){var U=M[L-1]*W;E(-U,L,s)}}}function T(D){var P=D<0?-1:1;D=Math.abs(D);for(var M=Math.ceil(D/(s-1)),$=0;$0?E(M,0,$+1):E(-M,s-$-1,s),D-=M,D<=0)return}return d}function kvt(e,t,n,r){return Svt(e,"y","height",t,n)}function xvt(e){var t=[];e.sort(function(S,k){return k.priority-S.priority});var n=new lo(0,0,0,0);function r(S){if(!S.ignore){var k=S.ensureState("emphasis");k.ignore==null&&(k.ignore=!1)}S.ignore=!0}for(var o=0;o=l)}}for(var p=this.__startIndex;p15)break}}U.prevElClipPaths&&C.restore()};if(x)if(x.length===0)M=k.__endIndex;else for(var L=g.dpr,B=0;B0&&t>o[0]){for(c=0;ct);c++);l=r[o[c]]}if(o.splice(c+1,0,t),r[t]=n,!n.virtual)if(l){var d=l.dom;d.nextSibling?s.insertBefore(n.dom,d.nextSibling):s.appendChild(n.dom)}else s.firstChild?s.insertBefore(n.dom,s.firstChild):s.appendChild(n.dom);n.painter||(n.painter=this)}},e.prototype.eachLayer=function(t,n){for(var r=this._zlevelList,o=0;o0?oC:0),this._needsManuallyCompositing),h.__builtin__||rW("ZLevel "+d+" has been used by unkown layer "+h.id),h!==a&&(h.__used=!0,h.__startIndex!==c&&(h.__dirty=!0),h.__startIndex=c,h.incremental?h.__drawIndex=-1:h.__drawIndex=c,n(c),a=h),o.__dirty&oc&&!o.__inHover&&(h.__dirty=!0,h.incremental&&h.__drawIndex<0&&(h.__drawIndex=c))}n(c),this.eachBuiltinLayer(function(p,v){!p.__used&&p.getElementCount()>0&&(p.__dirty=!0,p.__startIndex=p.__endIndex=p.__drawIndex=0),p.__dirty&&p.__drawIndex<0&&(p.__drawIndex=p.__startIndex)})},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(t){t.clear()},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t,At(this._layers,function(n){n.setUnpainted()})},e.prototype.configLayer=function(t,n){if(n){var r=this._layerConfig;r[t]?ao(r[t],n,!0):r[t]=n;for(var o=0;o-1&&(d.style.stroke=d.style.fill,d.style.fill="#fff",d.style.lineWidth=2),r},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t})(Md);function tG(e,t){var n=e.mapDimensionsAll("defaultedLabel"),r=n.length;if(r===1){var o=Fy(e,t,n[0]);return o!=null?o+"":null}else if(r){for(var a=[],s=0;s=0&&r.push(t[a])}return r.join(" ")}var nG=(function(e){Vn(t,e);function t(n,r,o,a){var s=e.call(this)||this;return s.updateData(n,r,o,a),s}return t.prototype._createSymbol=function(n,r,o,a,s){this.removeAll();var l=jy(n,-1,-1,2,2,null,s);l.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),l.drift=Ivt,this._symbolType=n,this.add(l)},t.prototype.stopSymbolAnimation=function(n){this.childAt(0).stopAnimation(null,n)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){lT(this.childAt(0))},t.prototype.downplay=function(){uT(this.childAt(0))},t.prototype.setZ=function(n,r){var o=this.childAt(0);o.zlevel=n,o.z=r},t.prototype.setDraggable=function(n,r){var o=this.childAt(0);o.draggable=n,o.cursor=!r&&n?"move":o.cursor},t.prototype.updateData=function(n,r,o,a){this.silent=!1;var s=n.getItemVisual(r,"symbol")||"circle",l=n.hostModel,c=t.getSymbolSize(n,r),d=s!==this._symbolType,h=a&&a.disableAnimation;if(d){var p=n.getItemVisual(r,"symbolKeepAspect");this._createSymbol(s,n,r,c,p)}else{var v=this.childAt(0);v.silent=!1;var g={scaleX:c[0]/2,scaleY:c[1]/2};h?v.attr(g):eu(v,g,l,r),EW(v)}if(this._updateCommon(n,r,c,o,a),d){var v=this.childAt(0);if(!h){var g={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:v.style.opacity}};v.scaleX=v.scaleY=0,v.style.opacity=0,Wc(v,g,l,r)}}h&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(n,r,o,a,s){var l=this.childAt(0),c=n.hostModel,d,h,p,v,g,y,S,k,C;if(a&&(d=a.emphasisItemStyle,h=a.blurItemStyle,p=a.selectItemStyle,v=a.focus,g=a.blurScope,S=a.labelStatesModels,k=a.hoverScale,C=a.cursorStyle,y=a.emphasisDisabled),!a||n.hasItemOption){var x=a&&a.itemModel?a.itemModel:n.getItemModel(r),E=x.getModel("emphasis");d=E.getModel("itemStyle").getItemStyle(),p=x.getModel(["select","itemStyle"]).getItemStyle(),h=x.getModel(["blur","itemStyle"]).getItemStyle(),v=E.get("focus"),g=E.get("blurScope"),y=E.get("disabled"),S=fS(x),k=E.getShallow("scale"),C=x.getShallow("cursor")}var _=n.getItemVisual(r,"symbolRotate");l.attr("rotation",(_||0)*Math.PI/180||0);var T=Yge(n.getItemVisual(r,"symbolOffset"),o);T&&(l.x=T[0],l.y=T[1]),C&&l.attr("cursor",C);var D=n.getItemVisual(r,"style"),P=D.fill;if(l instanceof j0){var M=l.style;l.useStyle(xn({image:M.image,x:M.x,y:M.y,width:M.width,height:M.height},D))}else l.__isEmptyBrush?l.useStyle(xn({},D)):l.useStyle(D),l.style.decal=null,l.setColor(P,s&&s.symbolInnerColor),l.style.strokeNoScale=!0;var $=n.getItemVisual(r,"liftZ"),L=this._z2;$!=null?L==null&&(this._z2=l.z2,l.z2+=$):L!=null&&(l.z2=L,this._z2=null);var B=s&&s.useNameLabel;dS(l,S,{labelFetcher:c,labelDataIndex:r,defaultText:F,inheritColor:P,defaultOpacity:D.opacity});function F(G){return B?n.getName(G):tG(n,G)}this._sizeX=o[0]/2,this._sizeY=o[1]/2;var W=l.ensureState("emphasis");W.style=d,l.ensureState("select").style=p,l.ensureState("blur").style=h;var U=k==null||k===!0?Math.max(1.1,3/this._sizeY):isFinite(k)&&k>0?+k:1;W.scaleX=this._sizeX*U,W.scaleY=this._sizeY*U,this.setSymbolScale(1),f_(this,v,g,y)},t.prototype.setSymbolScale=function(n){this.scaleX=this.scaleY=n},t.prototype.fadeOut=function(n,r,o){var a=this.childAt(0),s=Xi(this).dataIndex,l=o&&o.animation;if(this.silent=a.silent=!0,o&&o.fadeLabel){var c=a.getTextContent();c&&fT(c,{style:{opacity:0}},r,{dataIndex:s,removeOpt:l,cb:function(){a.removeTextContent()}})}else a.removeTextContent();fT(a,{style:{opacity:0},scaleX:0,scaleY:0},r,{dataIndex:s,cb:n,removeOpt:l})},t.getSymbolSize=function(n,r){return dpt(n.getItemVisual(r,"symbolSize"))},t})(Za);function Ivt(e,t){this.parent.drift(e,t)}function mF(e,t,n,r){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(r.isIgnore&&r.isIgnore(n))&&!(r.clipShape&&!r.clipShape.contain(t[0],t[1]))&&e.getItemVisual(n,"symbol")!=="none"}function Ose(e){return e!=null&&!Lr(e)&&(e={isIgnore:e}),e||{}}function $se(e){var t=e.hostModel,n=t.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:fS(t),cursorStyle:t.get("cursor")}}var Lvt=(function(){function e(t){this.group=new Za,this._SymbolCtor=t||nG}return e.prototype.updateData=function(t,n){this._progressiveEls=null,n=Ose(n);var r=this.group,o=t.hostModel,a=this._data,s=this._SymbolCtor,l=n.disableAnimation,c=$se(t),d={disableAnimation:l},h=n.getSymbolPoint||function(p){return t.getItemLayout(p)};a||r.removeAll(),t.diff(a).add(function(p){var v=h(p);if(mF(t,v,p,n)){var g=new s(t,p,c,d);g.setPosition(v),t.setItemGraphicEl(p,g),r.add(g)}}).update(function(p,v){var g=a.getItemGraphicEl(v),y=h(p);if(!mF(t,y,p,n)){r.remove(g);return}var S=t.getItemVisual(p,"symbol")||"circle",k=g&&g.getSymbolType&&g.getSymbolType();if(!g||k&&k!==S)r.remove(g),g=new s(t,p,c,d),g.setPosition(y);else{g.updateData(t,p,c,d);var C={x:y[0],y:y[1]};l?g.attr(C):eu(g,C,o)}r.add(g),t.setItemGraphicEl(p,g)}).remove(function(p){var v=a.getItemGraphicEl(p);v&&v.fadeOut(function(){r.remove(v)},o)}).execute(),this._getSymbolPoint=h,this._data=t},e.prototype.updateLayout=function(){var t=this,n=this._data;n&&n.eachItemGraphicEl(function(r,o){var a=t._getSymbolPoint(o);r.setPosition(a),r.markRedraw()})},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=$se(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,n,r){this._progressiveEls=[],r=Ose(r);function o(c){c.isGroup||(c.incremental=!0,c.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a0?n=r[0]:r[1]<0&&(n=r[1]),n}function q1e(e,t,n,r){var o=NaN;e.stacked&&(o=n.get(n.getCalculationInfo("stackedOverDimension"),r)),isNaN(o)&&(o=e.valueStart);var a=e.baseDataOffset,s=[];return s[a]=n.get(e.baseDim,r),s[1-a]=o,t.dataToPoint(s)}function Pvt(e,t){var n=[];return t.diff(e).add(function(r){n.push({cmd:"+",idx:r})}).update(function(r,o){n.push({cmd:"=",idx:o,idx1:r})}).remove(function(r){n.push({cmd:"-",idx:r})}).execute(),n}function Rvt(e,t,n,r,o,a,s,l){for(var c=Pvt(e,t),d=[],h=[],p=[],v=[],g=[],y=[],S=[],k=K1e(o,t,s),C=e.getLayout("points")||[],x=t.getLayout("points")||[],E=0;E=o||S<0)break;if(bm(C,x)){if(c){S+=a;continue}break}if(S===n)e[a>0?"moveTo":"lineTo"](C,x),p=C,v=x;else{var E=C-d,_=x-h;if(E*E+_*_<.5){S+=a;continue}if(s>0){for(var T=S+a,D=t[T*2],P=t[T*2+1];D===C&&P===x&&k=r||bm(D,P))g=C,y=x;else{L=D-d,B=P-h;var U=C-d,G=D-C,X=x-h,oe=P-x,Z=void 0,H=void 0;if(l==="x"){Z=Math.abs(U),H=Math.abs(G);var q=L>0?1:-1;g=C-q*Z*s,y=x,F=C+q*H*s,W=x}else if(l==="y"){Z=Math.abs(X),H=Math.abs(oe);var ee=B>0?1:-1;g=C,y=x-ee*Z*s,F=C,W=x+ee*H*s}else Z=Math.sqrt(U*U+X*X),H=Math.sqrt(G*G+oe*oe),$=H/(H+Z),g=C-L*s*(1-$),y=x-B*s*(1-$),F=C+L*s*$,W=x+B*s*$,F=Rp(F,Mp(D,C)),W=Rp(W,Mp(P,x)),F=Mp(F,Rp(D,C)),W=Mp(W,Rp(P,x)),L=F-C,B=W-x,g=C-L*Z/H,y=x-B*Z/H,g=Rp(g,Mp(d,C)),y=Rp(y,Mp(h,x)),g=Mp(g,Rp(d,C)),y=Mp(y,Rp(h,x)),L=C-g,B=x-y,F=C+L*H/Z,W=x+B*H/Z}e.bezierCurveTo(p,v,g,y,C,x),p=F,v=W}else e.lineTo(C,x)}d=C,h=x,S+=a}return k}var Y1e=(function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e})(),Mvt=(function(e){Vn(t,e);function t(n){var r=e.call(this,n)||this;return r.type="ec-polyline",r}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Y1e},t.prototype.buildPath=function(n,r){var o=r.points,a=0,s=o.length/2;if(r.connectNulls){for(;s>0&&bm(o[s*2-2],o[s*2-1]);s--);for(;a=0){var _=d?(y-c)*E+c:(g-l)*E+l;return d?[n,_]:[_,n]}l=g,c=y;break;case s.C:g=a[p++],y=a[p++],S=a[p++],k=a[p++],C=a[p++],x=a[p++];var T=d?J8(l,g,S,C,n,h):J8(c,y,k,x,n,h);if(T>0)for(var D=0;D=0){var _=d?Va(c,y,k,x,P):Va(l,g,S,C,P);return d?[n,_]:[_,n]}}l=C,c=x;break}}},t})(vo),Ovt=(function(e){Vn(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(Y1e),$vt=(function(e){Vn(t,e);function t(n){var r=e.call(this,n)||this;return r.type="ec-polygon",r}return t.prototype.getDefaultShape=function(){return new Ovt},t.prototype.buildPath=function(n,r){var o=r.points,a=r.stackedOnPoints,s=0,l=o.length/2,c=r.smoothMonotone;if(r.connectNulls){for(;l>0&&bm(o[l*2-2],o[l*2-1]);l--);for(;st){a?n.push(s(a,c,t)):o&&n.push(s(o,c,0),s(o,c,t));break}else o&&(n.push(s(o,c,0)),o=null),n.push(c),a=c}return n}function jvt(e,t,n){var r=e.getVisual("visualMeta");if(!(!r||!r.length||!e.count())&&t.type==="cartesian2d"){for(var o,a,s=r.length-1;s>=0;s--){var l=e.getDimensionInfo(r[s].dimension);if(o=l&&l.coordDim,o==="x"||o==="y"){a=r[s];break}}if(a){var c=t.getAxis(o),d=Er(a.stops,function(E){return{coord:c.toGlobalCoord(c.dataToCoord(E.value)),color:E.color}}),h=d.length,p=a.outerColors.slice();h&&d[0].coord>d[h-1].coord&&(d.reverse(),p.reverse());var v=Fvt(d,o==="x"?n.getWidth():n.getHeight()),g=v.length;if(!g&&h)return d[0].coord<0?p[1]?p[1]:d[h-1].color:p[0]?p[0]:d[0].color;var y=10,S=v[0].coord-y,k=v[g-1].coord+y,C=k-S;if(C<.001)return"transparent";At(v,function(E){E.offset=(E.coord-S)/C}),v.push({offset:g?v[g-1].offset:.5,color:p[1]||"transparent"}),v.unshift({offset:g?v[0].offset:.5,color:p[0]||"transparent"});var x=new Kme(0,0,0,0,v,!0);return x[o]=S,x[o+"2"]=k,x}}}function Vvt(e,t,n){var r=e.get("showAllSymbol"),o=r==="auto";if(!(r&&!o)){var a=n.getAxesByScale("ordinal")[0];if(a&&!(o&&zvt(a,t))){var s=t.mapDimension(a.dim),l={};return At(a.getViewLabels(),function(c){var d=a.scale.getRawOrdinalNumber(c.tickValue);l[d]=1}),function(c){return!l.hasOwnProperty(t.get(s,c))}}}}function zvt(e,t){var n=e.getExtent(),r=Math.abs(n[1]-n[0])/e.scale.count();isNaN(r)&&(r=0);for(var o=t.count(),a=Math.max(1,Math.round(o/5)),s=0;sr)return!1;return!0}function Uvt(e,t){return isNaN(e)||isNaN(t)}function Hvt(e){for(var t=e.length/2;t>0&&Uvt(e[t*2-2],e[t*2-1]);t--);return t-1}function Vse(e,t){return[e[t*2],e[t*2+1]]}function Wvt(e,t,n){for(var r=e.length/2,o=n==="x"?0:1,a,s,l=0,c=-1,d=0;d=t||a>=t&&s<=t){c=d;break}l=d,a=s}return{range:[l,c],t:(t-a)/(s-a)}}function J1e(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t0&&n.get(["emphasis","lineStyle","width"])==="bolder"){var H=y.getState("emphasis").style;H.lineWidth=+y.style.lineWidth+1}Xi(y).seriesIndex=n.seriesIndex,f_(y,X,oe,Z);var q=jse(n.get("smooth")),ee=n.get("smoothMonotone");if(y.setShape({smooth:q,smoothMonotone:ee,connectNulls:P}),S){var ne=l.getCalculationInfo("stackedOnSeries"),ae=0;S.useStyle(uo(d.getAreaStyle(),{fill:F,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),ne&&(ae=jse(ne.get("smooth"))),S.setShape({smooth:q,stackedOnSmooth:ae,smoothMonotone:ee,connectNulls:P}),cT(S,n,"areaStyle"),Xi(S).seriesIndex=n.seriesIndex,f_(S,X,oe,Z)}var re=this._changePolyState;l.eachItemGraphicEl(function(ke){ke&&(ke.onHoverStateChange=re)}),this._polyline.onHoverStateChange=re,this._data=l,this._coordSys=a,this._stackedOnPoints=T,this._points=h,this._step=L,this._valueOrigin=E,n.get("triggerLineEvent")&&(this.packEventData(n,y),S&&this.packEventData(n,S))},t.prototype.packEventData=function(n,r){Xi(r).eventData={componentType:"series",componentSubType:"line",componentIndex:n.componentIndex,seriesIndex:n.seriesIndex,seriesName:n.name,seriesType:"line"}},t.prototype.highlight=function(n,r,o,a){var s=n.getData(),l=$m(s,a);if(this._changePolyState("emphasis"),!(l instanceof Array)&&l!=null&&l>=0){var c=s.getLayout("points"),d=s.getItemGraphicEl(l);if(!d){var h=c[l*2],p=c[l*2+1];if(isNaN(h)||isNaN(p)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(h,p))return;var v=n.get("zlevel")||0,g=n.get("z")||0;d=new nG(s,l),d.x=h,d.y=p,d.setZ(v,g);var y=d.getSymbolPath().getTextContent();y&&(y.zlevel=v,y.z=g,y.z2=this._polyline.z2+1),d.__temp=!0,s.setItemGraphicEl(l,d),d.stopSymbolAnimation(!0),this.group.add(d)}d.highlight()}else Gc.prototype.highlight.call(this,n,r,o,a)},t.prototype.downplay=function(n,r,o,a){var s=n.getData(),l=$m(s,a);if(this._changePolyState("normal"),l!=null&&l>=0){var c=s.getItemGraphicEl(l);c&&(c.__temp?(s.setItemGraphicEl(l,null),this.group.remove(c)):c.downplay())}else Gc.prototype.downplay.call(this,n,r,o,a)},t.prototype._changePolyState=function(n){var r=this._polygon;Yie(this._polyline,n),r&&Yie(r,n)},t.prototype._newPolyline=function(n){var r=this._polyline;return r&&this._lineGroup.remove(r),r=new Mvt({shape:{points:n},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(r),this._polyline=r,r},t.prototype._newPolygon=function(n,r){var o=this._polygon;return o&&this._lineGroup.remove(o),o=new $vt({shape:{points:n,stackedOnPoints:r},segmentIgnoreThreshold:2}),this._lineGroup.add(o),this._polygon=o,o},t.prototype._initSymbolLabelAnimation=function(n,r,o){var a,s,l=r.getBaseAxis(),c=l.inverse;r.type==="cartesian2d"?(a=l.isHorizontal(),s=!1):r.type==="polar"&&(a=l.dim==="angle",s=!0);var d=n.hostModel,h=d.get("animationDuration");ni(h)&&(h=h(null));var p=d.get("animationDelay")||0,v=ni(p)?p(null):p;n.eachItemGraphicEl(function(g,y){var S=g;if(S){var k=[g.x,g.y],C=void 0,x=void 0,E=void 0;if(o)if(s){var _=o,T=r.pointToCoord(k);a?(C=_.startAngle,x=_.endAngle,E=-T[1]/180*Math.PI):(C=_.r0,x=_.r,E=T[0])}else{var D=o;a?(C=D.x,x=D.x+D.width,E=g.x):(C=D.y+D.height,x=D.y,E=g.y)}var P=x===C?0:(E-C)/(x-C);c&&(P=1-P);var M=ni(p)?p(y):h*P+v,$=S.getSymbolPath(),L=$.getTextContent();S.attr({scaleX:0,scaleY:0}),S.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:M}),L&&L.animateFrom({style:{opacity:0}},{duration:300,delay:M}),$.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(n,r,o){var a=n.getModel("endLabel");if(J1e(n)){var s=n.getData(),l=this._polyline,c=s.getLayout("points");if(!c){l.removeTextContent(),this._endLabel=null;return}var d=this._endLabel;d||(d=this._endLabel=new Ja({z2:200}),d.ignoreClip=!0,l.setTextContent(this._endLabel),l.disableLabelAnimation=!0);var h=Hvt(c);h>=0&&(dS(l,fS(n,"endLabel"),{inheritColor:o,labelFetcher:n,labelDataIndex:h,defaultText:function(p,v,g){return g!=null?G1e(s,g):tG(s,p)},enableTextSetter:!0},Gvt(a,r)),l.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(n,r,o,a,s,l,c){var d=this._endLabel,h=this._polyline;if(d){n<1&&a.originalX==null&&(a.originalX=d.x,a.originalY=d.y);var p=o.getLayout("points"),v=o.hostModel,g=v.get("connectNulls"),y=l.get("precision"),S=l.get("distance")||0,k=c.getBaseAxis(),C=k.isHorizontal(),x=k.inverse,E=r.shape,_=x?C?E.x:E.y+E.height:C?E.x+E.width:E.y,T=(C?S:0)*(x?-1:1),D=(C?0:-S)*(x?-1:1),P=C?"x":"y",M=Wvt(p,_,P),$=M.range,L=$[1]-$[0],B=void 0;if(L>=1){if(L>1&&!g){var F=Vse(p,$[0]);d.attr({x:F[0]+T,y:F[1]+D}),s&&(B=v.getRawValue($[0]))}else{var F=h.getPointOn(_,P);F&&d.attr({x:F[0]+T,y:F[1]+D});var W=v.getRawValue($[0]),U=v.getRawValue($[1]);s&&(B=Aut(o,y,W,U,M.t))}a.lastFrameIndex=$[0]}else{var G=n===1||a.lastFrameIndex>0?$[0]:0,F=Vse(p,G);s&&(B=v.getRawValue(G)),d.attr({x:F[0]+T,y:F[1]+D})}if(s){var X=SA(d);typeof X.setLabelText=="function"&&X.setLabelText(B)}}},t.prototype._doUpdateAnimation=function(n,r,o,a,s,l,c){var d=this._polyline,h=this._polygon,p=n.hostModel,v=Rvt(this._data,n,this._stackedOnPoints,r,this._coordSys,o,this._valueOrigin),g=v.current,y=v.stackedOnCurrent,S=v.next,k=v.stackedOnNext;if(s&&(y=Op(v.stackedOnCurrent,v.current,o,s,c),g=Op(v.current,null,o,s,c),k=Op(v.stackedOnNext,v.next,o,s,c),S=Op(v.next,null,o,s,c)),Fse(g,S)>3e3||h&&Fse(y,k)>3e3){d.stopAnimation(),d.setShape({points:S}),h&&(h.stopAnimation(),h.setShape({points:S,stackedOnPoints:k}));return}d.shape.__points=v.current,d.shape.points=g;var C={shape:{points:S}};v.current!==g&&(C.shape.__points=v.next),d.stopAnimation(),eu(d,C,p),h&&(h.setShape({points:g,stackedOnPoints:y}),h.stopAnimation(),eu(h,{shape:{stackedOnPoints:k}},p),d.shape.points!==h.shape.points&&(h.shape.points=d.shape.points));for(var x=[],E=v.status,_=0;_t&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n10&&s.type==="cartesian2d"&&a){var c=s.getBaseAxis(),d=s.getOtherAxis(c),h=c.getExtent(),p=r.getDevicePixelRatio(),v=Math.abs(h[1]-h[0])*(p||1),g=Math.round(l/v);if(isFinite(g)&&g>1){a==="lttb"?t.setData(o.lttbDownSample(o.mapDimension(d.dim),1/g)):a==="minmax"&&t.setData(o.minmaxDownSample(o.mapDimension(d.dim),1/g));var y=void 0;Sr(a)?y=Yvt[a]:ni(a)&&(y=a),y&&t.setData(o.downSample(o.mapDimension(d.dim),1/g,y,Xvt))}}}}}function eye(e){e.registerChartView(Kvt),e.registerSeriesModel(Avt),e.registerLayout(qvt("line")),e.registerVisual({seriesType:"line",reset:function(t){var n=t.getData(),r=t.getModel("lineStyle").getLineStyle();r&&!r.stroke&&(r.stroke=n.getVisual("style").fill),n.setVisual("legendLineStyle",r)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,Q1e("line"))}var yz=(function(e){Vn(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(n,r){return YW(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(n,r,o){var a=this.coordinateSystem;if(a&&a.clampData){var s=a.clampData(n),l=a.dataToPoint(s);if(o)At(a.getAxes(),function(v,g){if(v.type==="category"&&r!=null){var y=v.getTicksCoords(),S=v.getTickModel().get("alignWithLabel"),k=s[g],C=r[g]==="x1"||r[g]==="y1";if(C&&!S&&(k+=1),y.length<2)return;if(y.length===2){l[g]=v.toGlobalCoord(v.getExtent()[C?1:0]);return}for(var x=void 0,E=void 0,_=1,T=0;Tk){E=(D+x)/2;break}T===1&&(_=P-y[0].tickValue)}E==null&&(x?x&&(E=y[y.length-1].coord):E=y[0].coord),l[g]=v.toGlobalCoord(E)}});else{var c=this.getData(),d=c.getLayout("offset"),h=c.getLayout("size"),p=a.getBaseAxis().isHorizontal()?0:1;l[p]+=d+h/2}return l}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t})(Md);Md.registerClass(yz);var Zvt=(function(e){Vn(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(){return YW(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var n=this.get("progressiveThreshold"),r=this.get("largeThreshold");return r>n&&(n=r),n},t.prototype.brushSelector=function(n,r,o){return o.rect(r.getItemLayout(n))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=tge(yz.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t})(yz),Jvt=(function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e})(),zse=(function(e){Vn(t,e);function t(n){var r=e.call(this,n)||this;return r.type="sausage",r}return t.prototype.getDefaultShape=function(){return new Jvt},t.prototype.buildPath=function(n,r){var o=r.cx,a=r.cy,s=Math.max(r.r0||0,0),l=Math.max(r.r,0),c=(l-s)*.5,d=s+c,h=r.startAngle,p=r.endAngle,v=r.clockwise,g=Math.PI*2,y=v?p-hMath.PI/2&&hl)return!0;l=p}return!1},t.prototype._isOrderDifferentInView=function(n,r){for(var o=r.scale,a=o.getExtent(),s=Math.max(0,a[0]),l=Math.min(a[1],o.getOrdinalMeta().categories.length-1);s<=l;++s)if(n.ordinalNumbers[s]!==o.getRawOrdinalNumber(s))return!0},t.prototype._updateSortWithinSameData=function(n,r,o,a){if(this._isOrderChangedWithinSameData(n,r,o)){var s=this._dataSort(n,o,r);this._isOrderDifferentInView(s,o)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:o.dim+"Axis",axisId:o.index,sortInfo:s}))}},t.prototype._dispatchInitSort=function(n,r,o){var a=r.baseAxis,s=this._dataSort(n,a,function(l){return n.get(n.mapDimension(r.otherAxis.dim),l)});o.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:s})},t.prototype.remove=function(n,r){this._clear(this._model),this._removeOnRenderedListener(r)},t.prototype.dispose=function(n,r){this._removeOnRenderedListener(r)},t.prototype._removeOnRenderedListener=function(n){this._onRendered&&(n.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(n){var r=this.group,o=this._data;n&&n.isAnimationEnabled()&&o&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],o.eachItemGraphicEl(function(a){hT(a,n,Xi(a).dataIndex)})):r.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t})(Gc),Use={cartesian2d:function(e,t){var n=t.width<0?-1:1,r=t.height<0?-1:1;n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height);var o=e.x+e.width,a=e.y+e.height,s=yF(t.x,e.x),l=bF(t.x+t.width,o),c=yF(t.y,e.y),d=bF(t.y+t.height,a),h=lo?l:s,t.y=p&&c>a?d:c,t.width=h?0:l-s,t.height=p?0:d-c,n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height),h||p},polar:function(e,t){var n=t.r0<=t.r?1:-1;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}var o=bF(t.r,e.r),a=yF(t.r0,e.r0);t.r=o,t.r0=a;var s=o-a<0;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}return s}},Hse={cartesian2d:function(e,t,n,r,o,a,s,l,c){var d=new Zs({shape:xn({},r),z2:1});if(d.__dataIndex=n,d.name="item",a){var h=d.shape,p=o?"height":"width";h[p]=0}return d},polar:function(e,t,n,r,o,a,s,l,c){var d=!o&&c?zse:V0,h=new d({shape:r,z2:1});h.name="item";var p=tye(o);if(h.calculateTextPosition=Qvt(p,{isRoundCap:d===zse}),a){var v=h.shape,g=o?"r":"endAngle",y={};v[g]=o?r.r0:r.startAngle,y[g]=r[g],(l?eu:Wc)(h,{shape:y},a)}return h}};function rmt(e,t){var n=e.get("realtimeSort",!0),r=t.getBaseAxis();if(n&&r.type==="category"&&t.type==="cartesian2d")return{baseAxis:r,otherAxis:t.getOtherAxis(r)}}function Wse(e,t,n,r,o,a,s,l){var c,d;a?(d={x:r.x,width:r.width},c={y:r.y,height:r.height}):(d={y:r.y,height:r.height},c={x:r.x,width:r.width}),l||(s?eu:Wc)(n,{shape:c},t,o,null);var h=t?e.baseAxis.model:null;(s?eu:Wc)(n,{shape:d},h,o)}function Gse(e,t){for(var n=0;n0?1:-1,s=r.height>0?1:-1;return{x:r.x+a*o/2,y:r.y+s*o/2,width:r.width-a*o,height:r.height-s*o}},polar:function(e,t,n){var r=e.getItemLayout(t);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function smt(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function tye(e){return(function(t){var n=t?"Arc":"Angle";return function(r){switch(r){case"start":case"insideStart":case"end":case"insideEnd":return r+n;default:return r}}})(e)}function qse(e,t,n,r,o,a,s,l){var c=t.getItemVisual(n,"style");if(l){if(!a.get("roundCap")){var h=e.shape,p=$4(r.getModel("itemStyle"),h,!0);xn(h,p),e.setShape(h)}}else{var d=r.get(["itemStyle","borderRadius"])||0;e.setShape("r",d)}e.useStyle(c);var v=r.getShallow("cursor");v&&e.attr("cursor",v);var g=l?s?o.r>=o.r0?"endArc":"startArc":o.endAngle>=o.startAngle?"endAngle":"startAngle":s?o.height>=0?"bottom":"top":o.width>=0?"right":"left",y=fS(r);dS(e,y,{labelFetcher:a,labelDataIndex:n,defaultText:tG(a.getData(),n),inheritColor:c.fill,defaultOpacity:c.opacity,defaultOutsidePosition:g});var S=e.getTextContent();if(l&&S){var k=r.get(["label","position"]);e.textConfig.inside=k==="middle"?!0:null,emt(e,k==="outside"?g:k,tye(s),r.get(["label","rotate"]))}zdt(S,y,a.getRawValue(n),function(x){return G1e(t,x)});var C=r.getModel(["emphasis"]);f_(e,C.get("focus"),C.get("blurScope"),C.get("disabled")),cT(e,r),smt(o)&&(e.style.fill="none",e.style.stroke="none",At(e.states,function(x){x.style&&(x.style.fill=x.style.stroke="none")}))}function amt(e,t){var n=e.get(["itemStyle","borderColor"]);if(!n||n==="none")return 0;var r=e.get(["itemStyle","borderWidth"])||0,o=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(r,o,a)}var lmt=(function(){function e(){}return e})(),Yse=(function(e){Vn(t,e);function t(n){var r=e.call(this,n)||this;return r.type="largeBar",r}return t.prototype.getDefaultShape=function(){return new lmt},t.prototype.buildPath=function(n,r){for(var o=r.points,a=this.baseDimIdx,s=1-this.baseDimIdx,l=[],c=[],d=this.barWidth,h=0;h=0?n:null},30,!1);function umt(e,t,n){for(var r=e.baseDimIdx,o=1-r,a=e.shape.points,s=e.largeDataIndices,l=[],c=[],d=e.barWidth,h=0,p=a.length/3;h=l[0]&&t<=l[0]+c[0]&&n>=l[1]&&n<=l[1]+c[1])return s[h]}return-1}function nye(e,t,n){if(rG(n,"cartesian2d")){var r=t,o=n.getArea();return{x:e?r.x:o.x,y:e?o.y:r.y,width:e?r.width:o.width,height:e?o.height:r.height}}else{var o=n.getArea(),a=t;return{cx:o.cx,cy:o.cy,r0:e?o.r0:a.r0,r:e?o.r:a.r,startAngle:e?a.startAngle:0,endAngle:e?a.endAngle:Math.PI*2}}}function cmt(e,t,n){var r=e.type==="polar"?V0:Zs;return new r({shape:nye(t,n,e),silent:!0,z2:0})}function rye(e){e.registerChartView(nmt),e.registerSeriesModel(Zvt),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Ps(R0t,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,M0t("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,Q1e("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,n){var r=t.componentType||"series";n.eachComponent({mainType:r,query:t},function(o){t.sortInfo&&o.axis.setCategorySortInfo(t.sortInfo)})})}var Jse=Math.PI*2,uC=Math.PI/180;function iye(e,t){return By(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function oye(e,t){var n=iye(e,t),r=e.get("center"),o=e.get("radius");rr(o)||(o=[0,o]);var a=Jo(n.width,t.getWidth()),s=Jo(n.height,t.getHeight()),l=Math.min(a,s),c=Jo(o[0],l/2),d=Jo(o[1],l/2),h,p,v=e.coordinateSystem;if(v){var g=v.dataToPoint(r);h=g[0]||0,p=g[1]||0}else rr(r)||(r=[r,r]),h=Jo(r[0],a)+n.x,p=Jo(r[1],s)+n.y;return{cx:h,cy:p,r0:c,r:d}}function dmt(e,t,n){t.eachSeriesByType(e,function(r){var o=r.getData(),a=o.mapDimension("value"),s=iye(r,n),l=oye(r,n),c=l.cx,d=l.cy,h=l.r,p=l.r0,v=-r.get("startAngle")*uC,g=r.get("endAngle"),y=r.get("padAngle")*uC;g=g==="auto"?v-Jse:-g*uC;var S=r.get("minAngle")*uC,k=S+y,C=0;o.each(a,function(oe){!isNaN(oe)&&C++});var x=o.getSum(a),E=Math.PI/(x||C)*2,_=r.get("clockwise"),T=r.get("roseType"),D=r.get("stillShowZeroSum"),P=o.getDataExtent(a);P[0]=0;var M=_?1:-1,$=[v,g],L=M*y/2;Eme($,!_),v=$[0],g=$[1];var B=sye(r);B.startAngle=v,B.endAngle=g,B.clockwise=_;var F=Math.abs(g-v),W=F,U=0,G=v;if(o.setLayout({viewRect:s,r:h}),o.each(a,function(oe,Z){var H;if(isNaN(oe)){o.setItemLayout(Z,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:_,cx:c,cy:d,r0:p,r:T?NaN:h});return}T!=="area"?H=x===0&&D?E:oe*E:H=F/C,HH?(ee=G+M*H/2,ne=ee):(ee=G+L,ne=q-L),o.setItemLayout(Z,{angle:H,startAngle:ee,endAngle:ne,clockwise:_,cx:c,cy:d,r0:p,r:T?zV(oe,P,[p,h]):h}),G=q}),Wn?C:k,T=Math.abs(E.label.y-n);if(T>=_.maxY){var D=E.label.x-t-E.len2*o,P=r+E.len,M=Math.abs(D)e.unconstrainedWidth?null:g:null;r.setStyle("width",y)}var S=r.getBoundingRect();a.width=S.width;var k=(r.style.margin||0)+2.1;a.height=S.height+k,a.y-=(a.height-p)/2}}}function _F(e){return e.position==="center"}function vmt(e){var t=e.getData(),n=[],r,o,a=!1,s=(e.get("minShowLabelAngle")||0)*hmt,l=t.getLayout("viewRect"),c=t.getLayout("r"),d=l.width,h=l.x,p=l.y,v=l.height;function g(D){D.ignore=!0}function y(D){if(!D.ignore)return!0;for(var P in D.states)if(D.states[P].ignore===!1)return!0;return!1}t.each(function(D){var P=t.getItemGraphicEl(D),M=P.shape,$=P.getTextContent(),L=P.getTextGuideLine(),B=t.getItemModel(D),F=B.getModel("label"),W=F.get("position")||B.get(["emphasis","label","position"]),U=F.get("distanceToLabelLine"),G=F.get("alignTo"),X=Jo(F.get("edgeDistance"),d),oe=F.get("bleedMargin"),Z=B.getModel("labelLine"),H=Z.get("length");H=Jo(H,d);var q=Z.get("length2");if(q=Jo(q,d),Math.abs(M.endAngle-M.startAngle)0?"right":"left":ne>0?"left":"right"}var Fe=Math.PI,He=0,Je=F.get("rotate");if(Ao(Je))He=Je*(Fe/180);else if(W==="center")He=0;else if(Je==="radial"||Je===!0){var rt=ne<0?-ee+Fe:-ee;He=rt}else if(Je==="tangential"&&W!=="outside"&&W!=="outer"){var ht=Math.atan2(ne,ae);ht<0&&(ht=Fe*2+ht);var ut=ae>0;ut&&(ht=Fe+ht),He=ht-Fe}if(a=!!He,$.x=re,$.y=ke,$.rotation=He,$.setStyle({verticalAlign:"middle"}),_e){$.setStyle({align:me});var Gt=$.states.select;Gt&&(Gt.x+=$.x,Gt.y+=$.y)}else{var Ct=$.getBoundingRect().clone();Ct.applyTransform($.getComputedTransform());var St=($.style.margin||0)+2.1;Ct.y-=St/2,Ct.height+=St,n.push({label:$,labelLine:L,position:W,len:H,len2:q,minTurnAngle:Z.get("minTurnAngle"),maxSurfaceAngle:Z.get("maxSurfaceAngle"),surfaceNormal:new Wr(ne,ae),linePoints:Ne,textAlign:me,labelDistance:U,labelAlignTo:G,edgeDistance:X,bleedMargin:oe,rect:Ct,unconstrainedWidth:Ct.width,labelStyleWidth:$.style.width})}P.setTextConfig({inside:_e})}}),!a&&e.get("avoidLabelOverlap")&&pmt(n,r,o,c,d,v,h,p);for(var S=0;S0){for(var h=s.getItemLayout(0),p=1;isNaN(h&&h.startAngle)&&p=a.r0}},t.type="pie",t})(Gc);function ymt(e,t,n){t=rr(t)&&{coordDimensions:t}||xn({encodeDefine:e.getEncode()},t);var r=e.getSource(),o=w1e(r,t).dimensions,a=new C1e(o,e);return a.initData(r,n),a}var bmt=(function(){function e(t,n){this._getDataWithEncodedVisual=t,this._getRawData=n}return e.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},e.prototype.containName=function(t){var n=this._getRawData();return n.indexOfName(t)>=0},e.prototype.indexOfName=function(t){var n=this._getDataWithEncodedVisual();return n.indexOfName(t)},e.prototype.getItemVisual=function(t,n){var r=this._getDataWithEncodedVisual();return r.getItemVisual(t,n)},e})(),_mt=$s(),Smt=(function(e){Vn(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(n){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new bmt(Mo(this.getData,this),Mo(this.getRawData,this)),this._defaultLabelLine(n)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return ymt(this,{coordDimensions:["value"],encodeDefaulter:Ps(vft,this)})},t.prototype.getDataParams=function(n){var r=this.getData(),o=_mt(r),a=o.seats;if(!a){var s=[];r.each(r.mapDimension("value"),function(c){s.push(c)}),a=o.seats=uut(s,r.hostModel.get("percentPrecision"))}var l=e.prototype.getDataParams.call(this,n);return l.percent=a[n]||0,l.$vars.push("percent"),l},t.prototype._defaultLabelLine=function(n){UV(n,"labelLine",["show"]);var r=n.labelLine,o=n.emphasis.labelLine;r.show=r.show&&n.label.show,o.show=o.show&&n.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t})(Md);function kmt(e){return{seriesType:e,reset:function(t,n){var r=t.getData();r.filterSelf(function(o){var a=r.mapDimension("value"),s=r.get(a,o);return!(Ao(s)&&!isNaN(s)&&s<0)})}}}function lye(e){e.registerChartView(gmt),e.registerSeriesModel(Smt),Jht("pie",e.registerAction),e.registerLayout(Ps(dmt,"pie")),e.registerProcessor(fmt("pie")),e.registerProcessor(kmt("pie"))}var xmt=(function(e){Vn(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t})(ho),bz=(function(e){Vn(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Td).models[0]},t.type="cartesian2dAxis",t})(ho);Df(bz,rvt);var uye={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},Cmt=ao({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},uye),iG=ao({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},uye),wmt=ao({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},iG),Emt=uo({logBase:10},iG);const Tmt={category:Cmt,value:iG,time:wmt,log:Emt};var Amt={value:1,category:1,time:1,log:1};function eae(e,t,n,r){At(Amt,function(o,a){var s=ao(ao({},Tmt[a],!0),r,!0),l=(function(c){Vn(d,c);function d(){var h=c!==null&&c.apply(this,arguments)||this;return h.type=t+"Axis."+a,h}return d.prototype.mergeDefaultAndTheme=function(h,p){var v=v_(this),g=v?IA(h):{},y=p.getTheme();ao(h,y.get(a+"Axis")),ao(h,this.getDefaultOption()),h.type=tae(h),v&&Ny(h,g,v)},d.prototype.optionUpdated=function(){var h=this.option;h.type==="category"&&(this.__ordinalMeta=vz.createByAxisModel(this))},d.prototype.getCategories=function(h){var p=this.option;if(p.type==="category")return h?p.data:this.__ordinalMeta.categories},d.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},d.type=t+"Axis."+a,d.defaultOption=s,d})(n);e.registerComponentModel(l)}),e.registerSubTypeDefaulter(t+"Axis",tae)}function tae(e){return e.type||(e.data?"category":"value")}var Imt=(function(){function e(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return e.prototype.getAxis=function(t){return this._axes[t]},e.prototype.getAxes=function(){return Er(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),ja(this.getAxes(),function(n){return n.scale.type===t})},e.prototype.addAxis=function(t){var n=t.dim;this._axes[n]=t,this._dimList.push(n)},e})(),_z=["x","y"];function nae(e){return e.type==="interval"||e.type==="time"}var Lmt=(function(e){Vn(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="cartesian2d",n.dimensions=_z,n}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var n=this.getAxis("x").scale,r=this.getAxis("y").scale;if(!(!nae(n)||!nae(r))){var o=n.getExtent(),a=r.getExtent(),s=this.dataToPoint([o[0],a[0]]),l=this.dataToPoint([o[1],a[1]]),c=o[1]-o[0],d=a[1]-a[0];if(!(!c||!d)){var h=(l[0]-s[0])/c,p=(l[1]-s[1])/d,v=s[0]-o[0]*h,g=s[1]-a[0]*p,y=this._transform=[h,0,0,p,v,g];this._invTransform=lW([],y)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(n){var r=this.getAxis("x"),o=this.getAxis("y");return r.contain(r.toLocalCoord(n[0]))&&o.contain(o.toLocalCoord(n[1]))},t.prototype.containData=function(n){return this.getAxis("x").containData(n[0])&&this.getAxis("y").containData(n[1])},t.prototype.containZone=function(n,r){var o=this.dataToPoint(n),a=this.dataToPoint(r),s=this.getArea(),l=new lo(o[0],o[1],a[0]-o[0],a[1]-o[1]);return s.intersect(l)},t.prototype.dataToPoint=function(n,r,o){o=o||[];var a=n[0],s=n[1];if(this._transform&&a!=null&&isFinite(a)&&s!=null&&isFinite(s))return Hc(o,n,this._transform);var l=this.getAxis("x"),c=this.getAxis("y");return o[0]=l.toGlobalCoord(l.dataToCoord(a,r)),o[1]=c.toGlobalCoord(c.dataToCoord(s,r)),o},t.prototype.clampData=function(n,r){var o=this.getAxis("x").scale,a=this.getAxis("y").scale,s=o.getExtent(),l=a.getExtent(),c=o.parse(n[0]),d=a.parse(n[1]);return r=r||[],r[0]=Math.min(Math.max(Math.min(s[0],s[1]),c),Math.max(s[0],s[1])),r[1]=Math.min(Math.max(Math.min(l[0],l[1]),d),Math.max(l[0],l[1])),r},t.prototype.pointToData=function(n,r){var o=[];if(this._invTransform)return Hc(o,n,this._invTransform);var a=this.getAxis("x"),s=this.getAxis("y");return o[0]=a.coordToData(a.toLocalCoord(n[0]),r),o[1]=s.coordToData(s.toLocalCoord(n[1]),r),o},t.prototype.getOtherAxis=function(n){return this.getAxis(n.dim==="x"?"y":"x")},t.prototype.getArea=function(n){n=n||0;var r=this.getAxis("x").getGlobalExtent(),o=this.getAxis("y").getGlobalExtent(),a=Math.min(r[0],r[1])-n,s=Math.min(o[0],o[1])-n,l=Math.max(r[0],r[1])-a+n,c=Math.max(o[0],o[1])-s+n;return new lo(a,s,l,c)},t})(Imt),Dmt=(function(e){Vn(t,e);function t(n,r,o,a,s){var l=e.call(this,n,r,o)||this;return l.index=0,l.type=a||"value",l.position=s||"bottom",l}return t.prototype.isHorizontal=function(){var n=this.position;return n==="top"||n==="bottom"},t.prototype.getGlobalExtent=function(n){var r=this.getExtent();return r[0]=this.toGlobalCoord(r[0]),r[1]=this.toGlobalCoord(r[1]),n&&r[0]>r[1]&&r.reverse(),r},t.prototype.pointToData=function(n,r){return this.coordToData(this.toLocalCoord(n[this.dim==="x"?0:1]),r)},t.prototype.setCategorySortInfo=function(n){if(this.type!=="category")return!1;this.model.option.categorySortInfo=n,this.scale.setSortInfo(n)},t})(hvt);function Sz(e,t,n){n=n||{};var r=e.coordinateSystem,o=t.axis,a={},s=o.getAxesOnZeroOf()[0],l=o.position,c=s?"onZero":l,d=o.dim,h=r.getRect(),p=[h.x,h.x+h.width,h.y,h.y+h.height],v={left:0,right:1,top:0,bottom:1,onZero:2},g=t.get("offset")||0,y=d==="x"?[p[2]-g,p[3]+g]:[p[0]-g,p[1]+g];if(s){var S=s.toGlobalCoord(s.dataToCoord(0));y[v.onZero]=Math.max(Math.min(S,y[1]),y[0])}a.position=[d==="y"?y[v[c]]:p[0],d==="x"?y[v[c]]:p[3]],a.rotation=Math.PI/2*(d==="x"?0:1);var k={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=k[l],a.labelOffset=s?y[v[l]]-y[v.onZero]:0,t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),l_(n.labelInside,t.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var C=t.get(["axisLabel","rotate"]);return a.labelRotate=c==="top"?-C:C,a.z2=1,a}function rae(e){return e.get("coordinateSystem")==="cartesian2d"}function iae(e){var t={xAxisModel:null,yAxisModel:null};return At(t,function(n,r){var o=r.replace(/Model$/,""),a=e.getReferringComponents(o,Td).models[0];t[r]=a}),t}var SF=Math.log;function Pmt(e,t,n){var r=v3.prototype,o=r.getTicks.call(n),a=r.getTicks.call(n,!0),s=o.length-1,l=r.getInterval.call(n),c=O1e(e,t),d=c.extent,h=c.fixMin,p=c.fixMax;if(e.type==="log"){var v=SF(e.base);d=[SF(d[0])/v,SF(d[1])/v]}e.setExtent(d[0],d[1]),e.calcNiceExtent({splitNumber:s,fixMin:h,fixMax:p});var g=r.getExtent.call(e);h&&(d[0]=g[0]),p&&(d[1]=g[1]);var y=r.getInterval.call(e),S=d[0],k=d[1];if(h&&p)y=(k-S)/s;else if(h)for(k=d[0]+y*s;kd[0]&&isFinite(S)&&isFinite(d[0]);)y=hF(y),S=d[1]-y*s;else{var C=e.getTicks().length-1;C>s&&(y=hF(y));var x=y*s;k=Math.ceil(d[1]/y)*y,S=Xs(k-x),S<0&&d[0]>=0?(S=0,k=Xs(x)):k>0&&d[1]<=0&&(k=0,S=-Xs(x))}var E=(o[0].value-a[0].value)/l,_=(o[s].value-a[s].value)/l;r.setExtent.call(e,S+y*E,k+y*_),r.setInterval.call(e,y),(E||_)&&r.setNiceExtent.call(e,S+y,k-y)}var Rmt=(function(){function e(t,n,r){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=_z,this._initCartesian(t,n,r),this.model=t}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(t,n){var r=this._axesMap;this._updateScale(t,this.model);function o(s){var l,c=es(s),d=c.length;if(d){for(var h=[],p=d-1;p>=0;p--){var v=+c[p],g=s[v],y=g.model,S=g.scale;mz(S)&&y.get("alignTicks")&&y.get("interval")==null?h.push(g):(Ise(S,y),mz(S)&&(l=g))}h.length&&(l||(l=h.pop(),Ise(l.scale,l.model)),At(h,function(k){Pmt(k.scale,k.model,l.scale)}))}}o(r.x),o(r.y);var a={};At(r.x,function(s){oae(r,"y",s,a)}),At(r.y,function(s){oae(r,"x",s,a)}),this.resize(this.model,n)},e.prototype.resize=function(t,n,r){var o=t.getBoxLayoutParams(),a=!r&&t.get("containLabel"),s=By(o,{width:n.getWidth(),height:n.getHeight()});this._rect=s;var l=this._axesList;c(),a&&(At(l,function(d){if(!d.model.get(["axisLabel","inside"])){var h=evt(d);if(h){var p=d.isHorizontal()?"height":"width",v=d.model.get(["axisLabel","margin"]);s[p]-=h[p]+v,d.position==="top"?s.y+=h.height+v:d.position==="left"&&(s.x+=h.width+v)}}}),c()),At(this._coordsList,function(d){d.calcAffineTransform()});function c(){At(l,function(d){var h=d.isHorizontal(),p=h?[0,s.width]:[0,s.height],v=d.inverse?1:0;d.setExtent(p[v],p[1-v]),Mmt(d,h?s.x:s.y)})}},e.prototype.getAxis=function(t,n){var r=this._axesMap[t];if(r!=null)return r[n||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(t,n){if(t!=null&&n!=null){var r="x"+t+"y"+n;return this._coordsMap[r]}Lr(t)&&(n=t.yAxisIndex,t=t.xAxisIndex);for(var o=0,a=this._coordsList;o0?"top":"bottom",a="center"):iT(o-a0)?(s=r>0?"bottom":"top",a="center"):(s="middle",o>0&&o0?"right":"left":a=r>0?"left":"right"),{rotation:o,textAlign:a,textVerticalAlign:s}},e.makeAxisEventDataBase=function(t){var n={componentType:t.mainType,componentIndex:t.componentIndex};return n[t.mainType+"Index"]=t.componentIndex,n},e.isLabelSilent=function(t){var n=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||n&&n.show)},e})(),aae={axisLine:function(e,t,n,r){var o=t.get(["axisLine","show"]);if(o==="auto"&&e.handleAutoShown&&(o=e.handleAutoShown("axisLine")),!!o){var a=t.axis.getExtent(),s=r.transform,l=[a[0],0],c=[a[1],0],d=l[0]>c[0];s&&(Hc(l,l,s),Hc(c,c,s));var h=xn({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),p=new I0({shape:{x1:l[0],y1:l[1],x2:c[0],y2:c[1]},style:h,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});h_(p.shape,p.style.lineWidth),p.anid="line",n.add(p);var v=t.get(["axisLine","symbol"]);if(v!=null){var g=t.get(["axisLine","symbolSize"]);Sr(v)&&(v=[v,v]),(Sr(g)||Ao(g))&&(g=[g,g]);var y=Yge(t.get(["axisLine","symbolOffset"])||0,g),S=g[0],k=g[1];At([{rotate:e.rotation+Math.PI/2,offset:y[0],r:0},{rotate:e.rotation-Math.PI/2,offset:y[1],r:Math.sqrt((l[0]-c[0])*(l[0]-c[0])+(l[1]-c[1])*(l[1]-c[1]))}],function(C,x){if(v[x]!=="none"&&v[x]!=null){var E=jy(v[x],-S/2,-k/2,S,k,h.stroke,!0),_=C.r+C.offset,T=d?c:l;E.attr({rotation:C.rotate,x:T[0]+_*Math.cos(e.rotation),y:T[1]-_*Math.sin(e.rotation),silent:!0,z2:11}),n.add(E)}})}}},axisTickLabel:function(e,t,n,r){var o=Bmt(n,r,t,e),a=Fmt(n,r,t,e);if($mt(t,a,o),Nmt(n,r,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var s=_vt(Er(a,function(l){return{label:l,priority:l.z2,defaultAttr:{ignore:l.ignore}}}));xvt(s)}},axisName:function(e,t,n,r){var o=l_(e.axisName,t.get("name"));if(o){var a=t.get("nameLocation"),s=e.nameDirection,l=t.getModel("nameTextStyle"),c=t.get("nameGap")||0,d=t.axis.getExtent(),h=d[0]>d[1]?-1:1,p=[a==="start"?d[0]-h*c:a==="end"?d[1]+h*c:(d[0]+d[1])/2,uae(a)?e.labelOffset+s*c:0],v,g=t.get("nameRotate");g!=null&&(g=g*a0/180);var y;uae(a)?v=g0.innerTextLayout(e.rotation,g??e.rotation,s):(v=Omt(e.rotation,a,g||0,d),y=e.axisNameAvailableWidth,y!=null&&(y=Math.abs(y/Math.sin(v.rotation)),!isFinite(y)&&(y=null)));var S=l.getFont(),k=t.get("nameTruncate",!0)||{},C=k.ellipsis,x=l_(e.nameTruncateMaxWidth,k.maxWidth,y),E=new Ja({x:p[0],y:p[1],rotation:v.rotation,silent:g0.isLabelSilent(t),style:L0(l,{text:o,font:S,overflow:"truncate",width:x,ellipsis:C,fill:l.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:l.get("align")||v.textAlign,verticalAlign:l.get("verticalAlign")||v.textVerticalAlign}),z2:1});if(yA({el:E,componentModel:t,itemName:o}),E.__fullText=o,E.anid="name",t.get("triggerEvent")){var _=g0.makeAxisEventDataBase(t);_.targetType="axisName",_.name=o,Xi(E).eventData=_}r.add(E),E.updateTransform(),n.add(E),E.decomposeTransform()}}};function Omt(e,t,n,r){var o=hme(n-e),a,s,l=r[0]>r[1],c=t==="start"&&!l||t!=="start"&&l;return iT(o-a0/2)?(s=c?"bottom":"top",a="center"):iT(o-a0*1.5)?(s=c?"top":"bottom",a="center"):(s="middle",oa0/2?a=c?"left":"right":a=c?"right":"left"),{rotation:o,textAlign:a,textVerticalAlign:s}}function $mt(e,t,n){if(!$1e(e.axis)){var r=e.get(["axisLabel","showMinLabel"]),o=e.get(["axisLabel","showMaxLabel"]);t=t||[],n=n||[];var a=t[0],s=t[1],l=t[t.length-1],c=t[t.length-2],d=n[0],h=n[1],p=n[n.length-1],v=n[n.length-2];r===!1?(Ec(a),Ec(d)):lae(a,s)&&(r?(Ec(s),Ec(h)):(Ec(a),Ec(d))),o===!1?(Ec(l),Ec(p)):lae(c,l)&&(o?(Ec(c),Ec(v)):(Ec(l),Ec(p)))}}function Ec(e){e&&(e.ignore=!0)}function lae(e,t){var n=e&&e.getBoundingRect().clone(),r=t&&t.getBoundingRect().clone();if(!(!n||!r)){var o=sW([]);return aW(o,o,-e.rotation),n.applyTransform(fy([],o,e.getLocalTransform())),r.applyTransform(fy([],o,t.getLocalTransform())),n.intersect(r)}}function uae(e){return e==="middle"||e==="center"}function cye(e,t,n,r,o){for(var a=[],s=[],l=[],c=0;c=0||e===t}function Wmt(e){var t=oG(e);if(t){var n=t.axisPointerModel,r=t.axis.scale,o=n.option,a=n.get("status"),s=n.get("value");s!=null&&(s=r.parse(s));var l=kz(n);a==null&&(o.status=l?"show":"hide");var c=r.getExtent().slice();c[0]>c[1]&&c.reverse(),(s==null||s>c[1])&&(s=c[1]),sl)return!0;if(s){var c=oG(t).seriesDataCount,d=o.getExtent();return Math.abs(d[0]-d[1])/c>l}return!1}return r===!0},e.prototype.makeElOption=function(t,n,r,o,a){},e.prototype.createPointerEl=function(t,n,r,o){var a=n.pointer;if(a){var s=Kv(t).pointerEl=new Bdt[a.type](fae(n.pointer));t.add(s)}},e.prototype.createLabelEl=function(t,n,r,o){if(n.label){var a=Kv(t).labelEl=new Ja(fae(n.label));t.add(a),pae(a,o)}},e.prototype.updatePointerEl=function(t,n,r){var o=Kv(t).pointerEl;o&&n.pointer&&(o.setStyle(n.pointer.style),r(o,{shape:n.pointer.shape}))},e.prototype.updateLabelEl=function(t,n,r,o){var a=Kv(t).labelEl;a&&(a.setStyle(n.label.style),r(a,{x:n.label.x,y:n.label.y}),pae(a,o))},e.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var n=this._axisPointerModel,r=this._api.getZr(),o=this._handle,a=n.getModel("handle"),s=n.get("status");if(!a.get("show")||!s||s==="hide"){o&&r.remove(o),this._handle=null;return}var l;this._handle||(l=!0,o=this._handle=IW(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(d){Yve(d.event)},onmousedown:CF(this._onHandleDragMove,this,0,0),drift:CF(this._onHandleDragMove,this),ondragend:CF(this._onHandleDragEnd,this)}),r.add(o)),vae(o,n,!1),o.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var c=a.get("size");rr(c)||(c=[c,c]),o.scaleX=c[0]/2,o.scaleY=c[1]/2,Vge(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,l)}},e.prototype._moveHandleToValue=function(t,n){hae(this._axisPointerModel,!n&&this._moveAnimation,this._handle,wF(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(t,n){var r=this._handle;if(r){this._dragging=!0;var o=this.updateHandleTransform(wF(r),[t,n],this._axisModel,this._axisPointerModel);this._payloadInfo=o,r.stopAnimation(),r.attr(wF(o)),Kv(r).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var n=this._payloadInfo,r=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:n.cursorPoint[0],y:n.cursorPoint[1],tooltipOption:n.tooltipOption,axesInfo:[{axisDim:r.axis.dim,axisIndex:r.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var n=this._axisPointerModel.get("value");this._moveHandleToValue(n),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var n=t.getZr(),r=this._group,o=this._handle;n&&r&&(this._lastGraphicKey=null,r&&n.remove(r),o&&n.remove(o),this._group=null,this._handle=null,this._payloadInfo=null),sz(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(t,n,r){return r=r||0,{x:t[r],y:t[1-r],width:n[r],height:n[1-r]}},e})();function hae(e,t,n,r){pye(Kv(n).lastProp,r)||(Kv(n).lastProp=r,t?eu(n,r,e):(n.stopAnimation(),n.attr(r)))}function pye(e,t){if(Lr(e)&&Lr(t)){var n=!0;return At(t,function(r,o){n=n&&pye(e[o],r)}),!!n}else return e===t}function pae(e,t){e[t.get(["label","show"])?"show":"hide"]()}function wF(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function vae(e,t,n){var r=t.get("z"),o=t.get("zlevel");e&&e.traverse(function(a){a.type!=="group"&&(r!=null&&(a.z=r),o!=null&&(a.zlevel=o),a.silent=n)})}function ngt(e){var t=e.get("type"),n=e.getModel(t+"Style"),r;return t==="line"?(r=n.getLineStyle(),r.fill=null):t==="shadow"&&(r=n.getAreaStyle(),r.stroke=null),r}function rgt(e,t,n,r,o){var a=n.get("value"),s=vye(a,t.axis,t.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),l=n.getModel("label"),c=AA(l.get("padding")||0),d=l.getFont(),h=dW(s,d),p=o.position,v=h.width+c[1]+c[3],g=h.height+c[0]+c[2],y=o.align;y==="right"&&(p[0]-=v),y==="center"&&(p[0]-=v/2);var S=o.verticalAlign;S==="bottom"&&(p[1]-=g),S==="middle"&&(p[1]-=g/2),igt(p,v,g,r);var k=l.get("backgroundColor");(!k||k==="auto")&&(k=t.get(["axisLine","lineStyle","color"])),e.label={x:p[0],y:p[1],style:L0(l,{text:s,font:d,fill:l.getTextColor(),padding:c,backgroundColor:k}),z2:10}}function igt(e,t,n,r){var o=r.getWidth(),a=r.getHeight();e[0]=Math.min(e[0]+t,o)-t,e[1]=Math.min(e[1]+n,a)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function vye(e,t,n,r,o){e=t.scale.parse(e);var a=t.scale.getLabel({value:e},{precision:o.precision}),s=o.formatter;if(s){var l={value:QW(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};At(r,function(c){var d=n.getSeriesByIndex(c.seriesIndex),h=c.dataIndexInside,p=d&&d.getDataParams(h);p&&l.seriesData.push(p)}),Sr(s)?a=s.replace("{value}",a):ni(s)&&(a=s(l))}return a}function mye(e,t,n){var r=dy();return aW(r,r,n.rotation),DV(r,r,n.position),AW([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function ogt(e,t,n,r,o,a){var s=g0.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=o.get(["label","margin"]),rgt(t,r,o,a,{position:mye(r.axis,e,n),align:s.textAlign,verticalAlign:s.textVerticalAlign})}function sgt(e,t,n){return n=n||0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function agt(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}var lgt=(function(e){Vn(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(n,r,o,a,s){var l=o.axis,c=l.grid,d=a.get("type"),h=mae(c,l).getOtherAxis(l).getGlobalExtent(),p=l.toGlobalCoord(l.dataToCoord(r,!0));if(d&&d!=="none"){var v=ngt(a),g=ugt[d](l,p,h);g.style=v,n.graphicKey=g.type,n.pointer=g}var y=Sz(c.model,o);ogt(r,n,y,o,a,s)},t.prototype.getHandleTransform=function(n,r,o){var a=Sz(r.axis.grid.model,r,{labelInside:!1});a.labelMargin=o.get(["handle","margin"]);var s=mye(r.axis,n,a);return{x:s[0],y:s[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(n,r,o,a){var s=o.axis,l=s.grid,c=s.getGlobalExtent(!0),d=mae(l,s).getOtherAxis(s).getGlobalExtent(),h=s.dim==="x"?0:1,p=[n.x,n.y];p[h]+=r[h],p[h]=Math.min(c[1],p[h]),p[h]=Math.max(c[0],p[h]);var v=(d[1]+d[0])/2,g=[v,v];g[h]=p[h];var y=[{verticalAlign:"middle"},{align:"center"}];return{x:p[0],y:p[1],rotation:n.rotation,cursorPoint:g,tooltipOption:y[h]}},t})(tgt);function mae(e,t){var n={};return n[t.dim+"AxisIndex"]=t.index,e.getCartesian(n)}var ugt={line:function(e,t,n){var r=sgt([t,n[0]],[t,n[1]],gae(e));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(e,t,n){var r=Math.max(1,e.getBandWidth()),o=n[1]-n[0];return{type:"Rect",shape:agt([t-r/2,n[0]],[r,o],gae(e))}}};function gae(e){return e.dim==="x"?0:1}var cgt=(function(e){Vn(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t})(ho),Th=$s(),dgt=At;function gye(e,t,n){if(!zr.node){var r=t.getZr();Th(r).records||(Th(r).records={}),fgt(r,t);var o=Th(r).records[e]||(Th(r).records[e]={});o.handler=n}}function fgt(e,t){if(Th(e).initialized)return;Th(e).initialized=!0,n("click",Ps(yae,"click")),n("mousemove",Ps(yae,"mousemove")),n("globalout",pgt);function n(r,o){e.on(r,function(a){var s=vgt(t);dgt(Th(e).records,function(l){l&&o(l,a,s.dispatchAction)}),hgt(s.pendings,t)})}}function hgt(e,t){var n=e.showTip.length,r=e.hideTip.length,o;n?o=e.showTip[n-1]:r&&(o=e.hideTip[r-1]),o&&(o.dispatchAction=null,t.dispatchAction(o))}function pgt(e,t,n){e.handler("leave",null,n)}function yae(e,t,n,r){t.handler(e,n,r)}function vgt(e){var t={showTip:[],hideTip:[]},n=function(r){var o=t[r.type];o?o.push(r):(r.dispatchAction=n,e.dispatchAction(r))};return{dispatchAction:n,pendings:t}}function Cz(e,t){if(!zr.node){var n=t.getZr(),r=(Th(n).records||{})[e];r&&(Th(n).records[e]=null)}}var mgt=(function(e){Vn(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,o){var a=r.getComponent("tooltip"),s=n.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";gye("axisPointer",o,function(l,c,d){s!=="none"&&(l==="leave"||s.indexOf(l)>=0)&&d({type:"updateAxisPointer",currTrigger:l,x:c&&c.offsetX,y:c&&c.offsetY})})},t.prototype.remove=function(n,r){Cz("axisPointer",r)},t.prototype.dispose=function(n,r){Cz("axisPointer",r)},t.type="axisPointer",t})(Od);function yye(e,t){var n=[],r=e.seriesIndex,o;if(r==null||!(o=t.getSeriesByIndex(r)))return{point:[]};var a=o.getData(),s=$m(a,e);if(s==null||s<0||rr(s))return{point:[]};var l=a.getItemGraphicEl(s),c=o.coordinateSystem;if(o.getTooltipPosition)n=o.getTooltipPosition(s)||[];else if(c&&c.dataToPoint)if(e.isStacked){var d=c.getBaseAxis(),h=c.getOtherAxis(d),p=h.dim,v=d.dim,g=p==="x"||p==="radius"?1:0,y=a.mapDimension(v),S=[];S[g]=a.get(y,s),S[1-g]=a.get(a.getCalculationInfo("stackResultDimension"),s),n=c.dataToPoint(S)||[]}else n=c.dataToPoint(a.getValues(Er(c.dimensions,function(C){return a.mapDimension(C)}),s))||[];else if(l){var k=l.getBoundingRect().clone();k.applyTransform(l.transform),n=[k.x+k.width/2,k.y+k.height/2]}return{point:n,el:l}}var bae=$s();function ggt(e,t,n){var r=e.currTrigger,o=[e.x,e.y],a=e,s=e.dispatchAction||Mo(n.dispatchAction,n),l=t.getComponent("axisPointer").coordSysAxesInfo;if(l){uE(o)&&(o=yye({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var c=uE(o),d=a.axesInfo,h=l.axesInfo,p=r==="leave"||uE(o),v={},g={},y={list:[],map:{}},S={showPointer:Ps(bgt,g),showTooltip:Ps(_gt,y)};At(l.coordSysMap,function(C,x){var E=c||C.containPoint(o);At(l.coordSysAxesInfo[x],function(_,T){var D=_.axis,P=Cgt(d,_);if(!p&&E&&(!d||P)){var M=P&&P.value;M==null&&!c&&(M=D.pointToData(o)),M!=null&&_ae(_,M,S,!1,v)}})});var k={};return At(h,function(C,x){var E=C.linkGroup;E&&!g[x]&&At(E.axesInfo,function(_,T){var D=g[T];if(_!==C&&D){var P=D.value;E.mapper&&(P=C.axis.scale.parse(E.mapper(P,Sae(_),Sae(C)))),k[C.key]=P}})}),At(k,function(C,x){_ae(h[x],C,S,!0,v)}),Sgt(g,h,v),kgt(y,o,e,s),xgt(h,s,n),v}}function _ae(e,t,n,r,o){var a=e.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!e.involveSeries){n.showPointer(e,t);return}var s=ygt(t,e),l=s.payloadBatch,c=s.snapToValue;l[0]&&o.seriesIndex==null&&xn(o,l[0]),!r&&e.snap&&a.containData(c)&&c!=null&&(t=c),n.showPointer(e,t,l),n.showTooltip(e,s,c)}}function ygt(e,t){var n=t.axis,r=n.dim,o=e,a=[],s=Number.MAX_VALUE,l=-1;return At(t.seriesModels,function(c,d){var h=c.getData().mapDimensionsAll(r),p,v;if(c.getAxisTooltipData){var g=c.getAxisTooltipData(h,e,n);v=g.dataIndices,p=g.nestestValue}else{if(v=c.getData().indicesOfNearest(h[0],e,n.type==="category"?.5:null),!v.length)return;p=c.getData().get(h[0],v[0])}if(!(p==null||!isFinite(p))){var y=e-p,S=Math.abs(y);S<=s&&((S=0&&l<0)&&(s=S,l=y,o=p,a.length=0),At(v,function(k){a.push({seriesIndex:c.seriesIndex,dataIndexInside:k,dataIndex:c.getData().getRawIndex(k)})}))}}),{payloadBatch:a,snapToValue:o}}function bgt(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function _gt(e,t,n,r){var o=n.payloadBatch,a=t.axis,s=a.model,l=t.axisPointerModel;if(!(!t.triggerTooltip||!o.length)){var c=t.coordSys.model,d=S_(c),h=e.map[d];h||(h=e.map[d]={coordSysId:c.id,coordSysIndex:c.componentIndex,coordSysType:c.type,coordSysMainType:c.mainType,dataByAxis:[]},e.list.push(h)),h.dataByAxis.push({axisDim:a.dim,axisIndex:s.componentIndex,axisType:s.type,axisId:s.id,value:r,valueLabelOpt:{precision:l.get(["label","precision"]),formatter:l.get(["label","formatter"])},seriesDataIndices:o.slice()})}}function Sgt(e,t,n){var r=n.axesInfo=[];At(t,function(o,a){var s=o.axisPointerModel.option,l=e[a];l?(!o.useHandle&&(s.status="show"),s.value=l.value,s.seriesDataIndices=(l.payloadBatch||[]).slice()):!o.useHandle&&(s.status="hide"),s.status==="show"&&r.push({axisDim:o.axis.dim,axisIndex:o.axis.model.componentIndex,value:s.value})})}function kgt(e,t,n,r){if(uE(t)||!e.list.length){r({type:"hideTip"});return}var o=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:o.dataIndexInside,dataIndex:o.dataIndex,seriesIndex:o.seriesIndex,dataByCoordSys:e.list})}function xgt(e,t,n){var r=n.getZr(),o="axisPointerLastHighlights",a=bae(r)[o]||{},s=bae(r)[o]={};At(e,function(d,h){var p=d.axisPointerModel.option;p.status==="show"&&d.triggerEmphasis&&At(p.seriesDataIndices,function(v){var g=v.seriesIndex+" | "+v.dataIndex;s[g]=v})});var l=[],c=[];At(a,function(d,h){!s[h]&&c.push(d)}),At(s,function(d,h){!a[h]&&l.push(d)}),c.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:c}),l.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:l})}function Cgt(e,t){for(var n=0;n<(e||[]).length;n++){var r=e[n];if(t.axis.dim===r.axisDim&&t.axis.model.componentIndex===r.axisIndex)return r}}function Sae(e){var t=e.axis.model,n={},r=n.axisDim=e.axis.dim;return n.axisIndex=n[r+"AxisIndex"]=t.componentIndex,n.axisName=n[r+"AxisName"]=t.name,n.axisId=n[r+"AxisId"]=t.id,n}function uE(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function bye(e){dye.registerAxisPointerClass("CartesianAxisPointer",lgt),e.registerComponentModel(cgt),e.registerComponentView(mgt),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var n=t.axisPointer.link;n&&!rr(n)&&(t.axisPointer.link=[n])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,n){t.getComponent("axisPointer").coordSysAxesInfo=jmt(t,n)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},ggt)}function _ye(e){Gh(egt),Gh(bye)}function wgt(e,t){var n=AA(t.get("padding")),r=t.getItemStyle(["color","opacity"]);return r.fill=t.get("backgroundColor"),e=new Zs({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get("borderRadius")},style:r,silent:!0,z2:-1}),e}var Egt=(function(e){Vn(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t})(ho);function Sye(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function kye(e){if(zr.domSupported){for(var t=document.documentElement.style,n=0,r=e.length;n-1?(l+="top:50%",c+="translateY(-50%) rotate("+(d=a==="left"?-225:-45)+"deg)"):(l+="left:50%",c+="translateX(-50%) rotate("+(d=a==="top"?225:45)+"deg)");var h=d*Math.PI/180,p=s+o,v=p*Math.abs(Math.cos(h))+p*Math.abs(Math.sin(h)),g=Math.round(((v-Math.SQRT2*o)/2+Math.SQRT2*o-(v-p)/2)*100)/100;l+=";"+a+":-"+g+"px";var y=t+" solid "+o+"px;",S=["position:absolute;width:"+s+"px;height:"+s+"px;z-index:-1;",l+";"+c+";","border-bottom:"+y,"border-right:"+y,"background-color:"+r+";"];return'
'}function Rgt(e,t){var n="cubic-bezier(0.23,1,0.32,1)",r=" "+e/2+"s "+n,o="opacity"+r+",visibility"+r;return t||(r=" "+e+"s "+n,o+=zr.transformSupported?","+sG+r:",left"+r+",top"+r),Igt+":"+o}function kae(e,t,n){var r=e.toFixed(0)+"px",o=t.toFixed(0)+"px";if(!zr.transformSupported)return n?"top:"+o+";left:"+r+";":[["top",o],["left",r]];var a=zr.transform3dSupported,s="translate"+(a?"3d":"")+"("+r+","+o+(a?",0":"")+")";return n?"top:0;left:0;"+sG+":"+s+";":[["top",0],["left",0],[xye,s]]}function Mgt(e){var t=[],n=e.get("fontSize"),r=e.getTextColor();r&&t.push("color:"+r),t.push("font:"+e.getFont());var o=mi(e.get("lineHeight"),Math.round(n*3/2));n&&t.push("line-height:"+o+"px");var a=e.get("textShadowColor"),s=e.get("textShadowBlur")||0,l=e.get("textShadowOffsetX")||0,c=e.get("textShadowOffsetY")||0;return a&&s&&t.push("text-shadow:"+l+"px "+c+"px "+s+"px "+a),At(["decoration","align"],function(d){var h=e.get(d);h&&t.push("text-"+d+":"+h)}),t.join(";")}function Ogt(e,t,n){var r=[],o=e.get("transitionDuration"),a=e.get("backgroundColor"),s=e.get("shadowBlur"),l=e.get("shadowColor"),c=e.get("shadowOffsetX"),d=e.get("shadowOffsetY"),h=e.getModel("textStyle"),p=Fge(e,"html"),v=c+"px "+d+"px "+s+"px "+l;return r.push("box-shadow:"+v),t&&o&&r.push(Rgt(o,n)),a&&r.push("background-color:"+a),At(["width","color","radius"],function(g){var y="border-"+g,S=hge(y),k=e.get(S);k!=null&&r.push(y+":"+k+(g==="color"?"":"px"))}),r.push(Mgt(h)),p!=null&&r.push("padding:"+AA(p).join("px ")+"px"),r.join(";")+";"}function xae(e,t,n,r,o){var a=t&&t.painter;if(n){var s=a&&a.getViewportRoot();s&&tlt(e,s,n,r,o)}else{e[0]=r,e[1]=o;var l=a&&a.getViewportRootOffset();l&&(e[0]+=l.offsetLeft,e[1]+=l.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var $gt=(function(){function e(t,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,zr.wxa)return null;var r=document.createElement("div");r.domBelongToZr=!0,this.el=r;var o=this._zr=t.getZr(),a=n.appendTo,s=a&&(Sr(a)?document.querySelector(a):a_(a)?a:ni(a)&&a(t.getDom()));xae(this._styleCoord,o,s,t.getWidth()/2,t.getHeight()/2),(s||t.getDom()).appendChild(r),this._api=t,this._container=s;var l=this;r.onmouseenter=function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0},r.onmousemove=function(c){if(c=c||window.event,!l._enterable){var d=o.handler,h=o.painter.getViewportRoot();Lc(h,c,!0),d.dispatch("mousemove",c)}},r.onmouseleave=function(){l._inContent=!1,l._enterable&&l._show&&l.hideLater(l._hideDelay)}}return e.prototype.update=function(t){if(!this._container){var n=this._api.getDom(),r=Agt(n,"position"),o=n.style;o.position!=="absolute"&&r!=="absolute"&&(o.position="relative")}var a=t.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this.el.className=t.get("className")||""},e.prototype.show=function(t,n){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var r=this.el,o=r.style,a=this._styleCoord;r.innerHTML?o.cssText=Lgt+Ogt(t,!this._firstShow,this._longHide)+kae(a[0],a[1],!0)+("border-color:"+Nm(n)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):o.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(t,n,r,o,a){var s=this.el;if(t==null){s.innerHTML="";return}var l="";if(Sr(a)&&r.get("trigger")==="item"&&!Sye(r)&&(l=Pgt(r,o,a)),Sr(t))s.innerHTML=t+l;else if(t){s.innerHTML="",rr(t)||(t=[t]);for(var c=0;c=0?this._tryShow(a,s):o==="leave"&&this._hide(s))},this))},t.prototype._keepShow=function(){var n=this._tooltipModel,r=this._ecModel,o=this._api,a=n.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var s=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!o.isDisposed()&&s.manuallyShowTip(n,r,o,{x:s._lastX,y:s._lastY,dataByCoordSys:s._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(n,r,o,a){if(!(a.from===this.uid||zr.node||!o.getDom())){var s=Eae(a,o);this._ticket="";var l=a.dataByCoordSys,c=Ugt(a,r,o);if(c){var d=c.el.getBoundingRect().clone();d.applyTransform(c.el.transform),this._tryShow({offsetX:d.x+d.width/2,offsetY:d.y+d.height/2,target:c.el,position:a.position,positionDefault:"bottom"},s)}else if(a.tooltip&&a.x!=null&&a.y!=null){var h=Ngt;h.x=a.x,h.y=a.y,h.update(),Xi(h).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:h},s)}else if(l)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:l,tooltipOption:a.tooltipOption},s);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(n,r,o,a))return;var p=yye(a,r),v=p.point[0],g=p.point[1];v!=null&&g!=null&&this._tryShow({offsetX:v,offsetY:g,target:p.el,position:a.position,positionDefault:"bottom"},s)}else a.x!=null&&a.y!=null&&(o.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:o.getZr().findHover(a.x,a.y).target},s))}},t.prototype.manuallyHideTip=function(n,r,o,a){var s=this._tooltipContent;this._tooltipModel&&s.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(Eae(a,o))},t.prototype._manuallyAxisShowTip=function(n,r,o,a){var s=a.seriesIndex,l=a.dataIndex,c=r.getComponent("axisPointer").coordSysAxesInfo;if(!(s==null||l==null||c==null)){var d=r.getSeriesByIndex(s);if(d){var h=d.getData(),p=f4([h.getItemModel(l),d,(d.coordinateSystem||{}).model],this._tooltipModel);if(p.get("trigger")==="axis")return o.dispatchAction({type:"updateAxisPointer",seriesIndex:s,dataIndex:l,position:a.position}),!0}}},t.prototype._tryShow=function(n,r){var o=n.target,a=this._tooltipModel;if(a){this._lastX=n.offsetX,this._lastY=n.offsetY;var s=n.dataByCoordSys;if(s&&s.length)this._showAxisTooltip(s,n);else if(o){var l=Xi(o);if(l.ssrType==="legend")return;this._lastDataByCoordSys=null;var c,d;O4(o,function(h){if(Xi(h).dataIndex!=null)return c=h,!0;if(Xi(h).tooltipConfig!=null)return d=h,!0},!0),c?this._showSeriesItemTooltip(n,c,r):d?this._showComponentItemTooltip(n,d,r):this._hide(r)}else this._lastDataByCoordSys=null,this._hide(r)}},t.prototype._showOrMove=function(n,r){var o=n.get("showDelay");r=Mo(r,this),clearTimeout(this._showTimout),o>0?this._showTimout=setTimeout(r,o):r()},t.prototype._showAxisTooltip=function(n,r){var o=this._ecModel,a=this._tooltipModel,s=[r.offsetX,r.offsetY],l=f4([r.tooltipOption],a),c=this._renderMode,d=[],h=g_("section",{blocks:[],noHeader:!0}),p=[],v=new tF;At(n,function(x){At(x.dataByAxis,function(E){var _=o.getComponent(E.axisDim+"Axis",E.axisIndex),T=E.value;if(!(!_||T==null)){var D=vye(T,_.axis,o,E.seriesDataIndices,E.valueLabelOpt),P=g_("section",{header:D,noHeader:!ff(D),sortBlocks:!0,blocks:[]});h.blocks.push(P),At(E.seriesDataIndices,function(M){var $=o.getSeriesByIndex(M.seriesIndex),L=M.dataIndexInside,B=$.getDataParams(L);if(!(B.dataIndex<0)){B.axisDim=E.axisDim,B.axisIndex=E.axisIndex,B.axisType=E.axisType,B.axisId=E.axisId,B.axisValue=QW(_.axis,{value:T}),B.axisValueLabel=D,B.marker=v.makeTooltipMarker("item",Nm(B.color),c);var F=Noe($.formatTooltip(L,!0,null)),W=F.frag;if(W){var U=f4([$],a).get("valueFormatter");P.blocks.push(U?xn({valueFormatter:U},W):W)}F.text&&p.push(F.text),d.push(B)}})}})}),h.blocks.reverse(),p.reverse();var g=r.position,y=l.get("order"),S=Uoe(h,v,c,y,o.get("useUTC"),l.get("textStyle"));S&&p.unshift(S);var k=c==="richText"?` `:"
",C=p.join(k);this._showOrMove(l,function(){this._updateContentNotChangedOnAxis(n,d)?this._updatePosition(l,g,s[0],s[1],this._tooltipContent,d):this._showTooltipContent(l,C,d,Math.random()+"",s[0],s[1],g,null,v)})},t.prototype._showSeriesItemTooltip=function(n,r,o){var a=this._ecModel,s=Xi(r),l=s.seriesIndex,c=a.getSeriesByIndex(l),d=s.dataModel||c,h=s.dataIndex,p=s.dataType,v=d.getData(p),g=this._renderMode,y=n.positionDefault,S=f4([v.getItemModel(h),d,c&&(c.coordinateSystem||{}).model],this._tooltipModel,y?{position:y}:null),k=S.get("trigger");if(!(k!=null&&k!=="item")){var C=d.getDataParams(h,p),x=new tF;C.marker=x.makeTooltipMarker("item",Nm(C.color),g);var E=Noe(d.formatTooltip(h,!1,p)),_=S.get("order"),T=S.get("valueFormatter"),D=E.frag,P=D?Uoe(T?xn({valueFormatter:T},D):D,x,g,_,a.get("useUTC"),S.get("textStyle")):E.text,M="item_"+d.name+"_"+h;this._showOrMove(S,function(){this._showTooltipContent(S,P,C,M,n.offsetX,n.offsetY,n.position,n.target,x)}),o({type:"showTip",dataIndexInside:h,dataIndex:v.getRawIndex(h),seriesIndex:l,from:this.uid})}},t.prototype._showComponentItemTooltip=function(n,r,o){var a=this._renderMode==="html",s=Xi(r),l=s.tooltipConfig,c=l.option||{},d=c.encodeHTMLContent;if(Sr(c)){var h=c;c={content:h,formatter:h},d=!0}d&&a&&c.content&&(c=zi(c),c.content=yu(c.content));var p=[c],v=this._ecModel.getComponent(s.componentMainType,s.componentIndex);v&&p.push(v),p.push({formatter:c.content});var g=n.positionDefault,y=f4(p,this._tooltipModel,g?{position:g}:null),S=y.get("content"),k=Math.random()+"",C=new tF;this._showOrMove(y,function(){var x=zi(y.get("formatterParams")||{});this._showTooltipContent(y,S,x,k,n.offsetX,n.offsetY,n.position,r,C)}),o({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(n,r,o,a,s,l,c,d,h){if(this._ticket="",!(!n.get("showContent")||!n.get("show"))){var p=this._tooltipContent;p.setEnterable(n.get("enterable"));var v=n.get("formatter");c=c||n.get("position");var g=r,y=this._getNearestPoint([s,l],o,n.get("trigger"),n.get("borderColor")),S=y.color;if(v)if(Sr(v)){var k=n.ecModel.get("useUTC"),C=rr(o)?o[0]:o,x=C&&C.axisType&&C.axisType.indexOf("time")>=0;g=v,x&&(g=xA(C.axisValue,g,k)),g=pge(g,o,!0)}else if(ni(v)){var E=Mo(function(_,T){_===this._ticket&&(p.setContent(T,h,n,S,c),this._updatePosition(n,c,s,l,p,o,d))},this);this._ticket=a,g=v(o,a,E)}else g=v;p.setContent(g,h,n,S,c),p.show(n,S),this._updatePosition(n,c,s,l,p,o,d)}},t.prototype._getNearestPoint=function(n,r,o,a){if(o==="axis"||rr(r))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!rr(r))return{color:a||r.color||r.borderColor}},t.prototype._updatePosition=function(n,r,o,a,s,l,c){var d=this._api.getWidth(),h=this._api.getHeight();r=r||n.get("position");var p=s.getSize(),v=n.get("align"),g=n.get("verticalAlign"),y=c&&c.getBoundingRect().clone();if(c&&y.applyTransform(c.transform),ni(r)&&(r=r([o,a],l,s.el,y,{viewSize:[d,h],contentSize:p.slice()})),rr(r))o=Jo(r[0],d),a=Jo(r[1],h);else if(Lr(r)){var S=r;S.width=p[0],S.height=p[1];var k=By(S,{width:d,height:h});o=k.x,a=k.y,v=null,g=null}else if(Sr(r)&&c){var C=zgt(r,y,p,n.get("borderWidth"));o=C[0],a=C[1]}else{var C=jgt(o,a,s,d,h,v?null:20,g?null:20);o=C[0],a=C[1]}if(v&&(o-=Tae(v)?p[0]/2:v==="right"?p[0]:0),g&&(a-=Tae(g)?p[1]/2:g==="bottom"?p[1]:0),Sye(n)){var C=Vgt(o,a,s,d,h);o=C[0],a=C[1]}s.moveTo(o,a)},t.prototype._updateContentNotChangedOnAxis=function(n,r){var o=this._lastDataByCoordSys,a=this._cbParamsList,s=!!o&&o.length===n.length;return s&&At(o,function(l,c){var d=l.dataByAxis||[],h=n[c]||{},p=h.dataByAxis||[];s=s&&d.length===p.length,s&&At(d,function(v,g){var y=p[g]||{},S=v.seriesDataIndices||[],k=y.seriesDataIndices||[];s=s&&v.value===y.value&&v.axisType===y.axisType&&v.axisId===y.axisId&&S.length===k.length,s&&At(S,function(C,x){var E=k[x];s=s&&C.seriesIndex===E.seriesIndex&&C.dataIndex===E.dataIndex}),a&&At(v.seriesDataIndices,function(C){var x=C.seriesIndex,E=r[x],_=a[x];E&&_&&_.data!==E.data&&(s=!1)})})}),this._lastDataByCoordSys=n,this._cbParamsList=r,!!s},t.prototype._hide=function(n){this._lastDataByCoordSys=null,n({type:"hideTip",from:this.uid})},t.prototype.dispose=function(n,r){zr.node||!r.getDom()||(sz(this,"_updatePosition"),this._tooltipContent.dispose(),Cz("itemTooltip",r))},t.type="tooltip",t})(Od);function f4(e,t,n){var r=t.ecModel,o;n?(o=new xs(n,r,r),o=new xs(t.option,o,r)):o=t;for(var a=e.length-1;a>=0;a--){var s=e[a];s&&(s instanceof xs&&(s=s.get("tooltip",!0)),Sr(s)&&(s={formatter:s}),s&&(o=new xs(s,o,r)))}return o}function Eae(e,t){return e.dispatchAction||Mo(t.dispatchAction,t)}function jgt(e,t,n,r,o,a,s){var l=n.getSize(),c=l[0],d=l[1];return a!=null&&(e+c+a+2>r?e-=c+a:e+=a),s!=null&&(t+d+s>o?t-=d+s:t+=s),[e,t]}function Vgt(e,t,n,r,o){var a=n.getSize(),s=a[0],l=a[1];return e=Math.min(e+s,r)-s,t=Math.min(t+l,o)-l,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function zgt(e,t,n,r){var o=n[0],a=n[1],s=Math.ceil(Math.SQRT2*r)+8,l=0,c=0,d=t.width,h=t.height;switch(e){case"inside":l=t.x+d/2-o/2,c=t.y+h/2-a/2;break;case"top":l=t.x+d/2-o/2,c=t.y-a-s;break;case"bottom":l=t.x+d/2-o/2,c=t.y+h+s;break;case"left":l=t.x-o-s,c=t.y+h/2-a/2;break;case"right":l=t.x+d+s,c=t.y+h/2-a/2}return[l,c]}function Tae(e){return e==="center"||e==="middle"}function Ugt(e,t,n){var r=vW(e).queryOptionMap,o=r.keys()[0];if(!(!o||o==="series")){var a=lS(t,o,r.get(o),{useDefault:!1,enableAll:!1,enableNone:!1}),s=a.models[0];if(s){var l=n.getViewOfComponentModel(s),c;if(l.group.traverse(function(d){var h=Xi(d).tooltipConfig;if(h&&h.name===e.name)return c=d,!0}),c)return{componentMainType:o,componentIndex:s.componentIndex,el:c}}}}function wye(e){Gh(bye),e.registerComponentModel(Egt),e.registerComponentView(Fgt),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Tu),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Tu)}var Hgt=(function(e){Vn(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t})(ho),Wgt=(function(e){Vn(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,o){if(this.group.removeAll(),!!n.get("show")){var a=this.group,s=n.getModel("textStyle"),l=n.getModel("subtextStyle"),c=n.get("textAlign"),d=mi(n.get("textBaseline"),n.get("textVerticalAlign")),h=new Ja({style:L0(s,{text:n.get("text"),fill:s.getTextColor()},{disableBox:!0}),z2:10}),p=h.getBoundingRect(),v=n.get("subtext"),g=new Ja({style:L0(l,{text:v,fill:l.getTextColor(),y:p.height+n.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),y=n.get("link"),S=n.get("sublink"),k=n.get("triggerEvent",!0);h.silent=!y&&!k,g.silent=!S&&!k,y&&h.on("click",function(){_oe(y,"_"+n.get("target"))}),S&&g.on("click",function(){_oe(S,"_"+n.get("subtarget"))}),Xi(h).eventData=Xi(g).eventData=k?{componentType:"title",componentIndex:n.componentIndex}:null,a.add(h),v&&a.add(g);var C=a.getBoundingRect(),x=n.getBoxLayoutParams();x.width=C.width,x.height=C.height;var E=By(x,{width:o.getWidth(),height:o.getHeight()},n.get("padding"));c||(c=n.get("left")||n.get("right"),c==="middle"&&(c="center"),c==="right"?E.x+=E.width:c==="center"&&(E.x+=E.width/2)),d||(d=n.get("top")||n.get("bottom"),d==="center"&&(d="middle"),d==="bottom"?E.y+=E.height:d==="middle"&&(E.y+=E.height/2),d=d||"top"),a.x=E.x,a.y=E.y,a.markRedraw();var _={align:c,verticalAlign:d};h.setStyle(_),g.setStyle(_),C=a.getBoundingRect();var T=E.margin,D=n.getItemStyle(["color","opacity"]);D.fill=n.get("backgroundColor");var P=new Zs({shape:{x:C.x-T[3],y:C.y-T[0],width:C.width+T[1]+T[3],height:C.height+T[0]+T[2],r:n.get("borderRadius")},style:D,subPixelOptimize:!0,silent:!0});a.add(P)}},t.type="title",t})(Od);function Eye(e){e.registerComponentModel(Hgt),e.registerComponentView(Wgt)}var Ggt=function(e,t){if(t==="all")return{type:"all",title:e.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:e.getLocaleModel().get(["legend","selector","inverse"])}},wz=(function(e){Vn(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}return t.prototype.init=function(n,r,o){this.mergeDefaultAndTheme(n,o),n.selected=n.selected||{},this._updateSelector(n)},t.prototype.mergeOption=function(n,r){e.prototype.mergeOption.call(this,n,r),this._updateSelector(n)},t.prototype._updateSelector=function(n){var r=n.selector,o=this.ecModel;r===!0&&(r=n.selector=["all","inverse"]),rr(r)&&At(r,function(a,s){Sr(a)&&(a={type:a}),r[s]=ao(a,Ggt(o,a.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var n=this._data;if(n[0]&&this.get("selectedMode")==="single"){for(var r=!1,o=0;o=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t})(ho),x1=Ps,Ez=At,cC=Za,Tye=(function(e){Vn(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return t.prototype.init=function(){this.group.add(this._contentGroup=new cC),this.group.add(this._selectorGroup=new cC),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(n,r,o){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!n.get("show",!0)){var s=n.get("align"),l=n.get("orient");(!s||s==="auto")&&(s=n.get("left")==="right"&&l==="vertical"?"right":"left");var c=n.get("selector",!0),d=n.get("selectorPosition",!0);c&&(!d||d==="auto")&&(d=l==="horizontal"?"end":"start"),this.renderInner(s,n,r,o,c,l,d);var h=n.getBoxLayoutParams(),p={width:o.getWidth(),height:o.getHeight()},v=n.get("padding"),g=By(h,p,v),y=this.layoutInner(n,s,g,a,c,d),S=By(uo({width:y.width,height:y.height},h),p,v);this.group.x=S.x-y.x,this.group.y=S.y-y.y,this.group.markRedraw(),this.group.add(this._backgroundEl=wgt(y,n))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(n,r,o,a,s,l,c){var d=this.getContentGroup(),h=xi(),p=r.get("selectedMode"),v=[];o.eachRawSeries(function(g){!g.get("legendHoverLink")&&v.push(g.id)}),Ez(r.getData(),function(g,y){var S=g.get("name");if(!this.newlineDisabled&&(S===""||S===` `)){var k=new cC;k.newline=!0,d.add(k);return}var C=o.getSeriesByName(S)[0];if(!h.get(S))if(C){var x=C.getData(),E=x.getVisual("legendLineStyle")||{},_=x.getVisual("legendIcon"),T=x.getVisual("style"),D=this._createItem(C,S,y,g,r,n,E,T,_,p,a);D.on("click",x1(Aae,S,null,a,v)).on("mouseover",x1(Tz,C.name,null,a,v)).on("mouseout",x1(Az,C.name,null,a,v)),o.ssr&&D.eachChild(function(P){var M=Xi(P);M.seriesIndex=C.seriesIndex,M.dataIndex=y,M.ssrType="legend"}),h.set(S,!0)}else o.eachRawSeries(function(P){if(!h.get(S)&&P.legendVisualProvider){var M=P.legendVisualProvider;if(!M.containName(S))return;var $=M.indexOfName(S),L=M.getItemVisual($,"style"),B=M.getItemVisual($,"legendIcon"),F=Rh(L.fill);F&&F[3]===0&&(F[3]=.2,L=xn(xn({},L),{fill:lA(F,"rgba")}));var W=this._createItem(P,S,y,g,r,n,{},L,B,p,a);W.on("click",x1(Aae,null,S,a,v)).on("mouseover",x1(Tz,null,S,a,v)).on("mouseout",x1(Az,null,S,a,v)),o.ssr&&W.eachChild(function(U){var G=Xi(U);G.seriesIndex=P.seriesIndex,G.dataIndex=y,G.ssrType="legend"}),h.set(S,!0)}},this)},this),s&&this._createSelector(s,r,a,l,c)},t.prototype._createSelector=function(n,r,o,a,s){var l=this.getSelectorGroup();Ez(n,function(d){var h=d.type,p=new Ja({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){o.dispatchAction({type:h==="all"?"legendAllSelect":"legendInverseSelect",legendId:r.id})}});l.add(p);var v=r.getModel("selectorLabel"),g=r.getModel(["emphasis","selectorLabel"]);dS(p,{normal:v,emphasis:g},{defaultText:d.title}),YV(p)})},t.prototype._createItem=function(n,r,o,a,s,l,c,d,h,p,v){var g=n.visualDrawType,y=s.get("itemWidth"),S=s.get("itemHeight"),k=s.isSelected(r),C=a.get("symbolRotate"),x=a.get("symbolKeepAspect"),E=a.get("icon");h=E||h||"roundRect";var _=Kgt(h,a,c,d,g,k,v),T=new cC,D=a.getModel("textStyle");if(ni(n.getLegendIcon)&&(!E||E==="inherit"))T.add(n.getLegendIcon({itemWidth:y,itemHeight:S,icon:h,iconRotate:C,itemStyle:_.itemStyle,lineStyle:_.lineStyle,symbolKeepAspect:x}));else{var P=E==="inherit"&&n.getData().getVisual("symbol")?C==="inherit"?n.getData().getVisual("symbolRotate"):C:0;T.add(qgt({itemWidth:y,itemHeight:S,icon:h,iconRotate:P,itemStyle:_.itemStyle,symbolKeepAspect:x}))}var M=l==="left"?y+5:-5,$=l,L=s.get("formatter"),B=r;Sr(L)&&L?B=L.replace("{name}",r??""):ni(L)&&(B=L(r));var F=k?D.getTextColor():a.get("inactiveColor");T.add(new Ja({style:L0(D,{text:B,x:M,y:S/2,fill:F,align:$,verticalAlign:"middle"},{inheritColor:F})}));var W=new Zs({shape:T.getBoundingRect(),style:{fill:"transparent"}}),U=a.getModel("tooltip");return U.get("show")&&yA({el:W,componentModel:s,itemName:r,itemTooltipOption:U.option}),T.add(W),T.eachChild(function(G){G.silent=!0}),W.silent=!p,this.getContentGroup().add(T),YV(T),T.__legendDataIndex=o,T},t.prototype.layoutInner=function(n,r,o,a,s,l){var c=this.getContentGroup(),d=this.getSelectorGroup();Cb(n.get("orient"),c,n.get("itemGap"),o.width,o.height);var h=c.getBoundingRect(),p=[-h.x,-h.y];if(d.markRedraw(),c.markRedraw(),s){Cb("horizontal",d,n.get("selectorItemGap",!0));var v=d.getBoundingRect(),g=[-v.x,-v.y],y=n.get("selectorButtonGap",!0),S=n.getOrient().index,k=S===0?"width":"height",C=S===0?"height":"width",x=S===0?"y":"x";l==="end"?g[S]+=h[k]+y:p[S]+=v[k]+y,g[1-S]+=h[C]/2-v[C]/2,d.x=g[0],d.y=g[1],c.x=p[0],c.y=p[1];var E={x:0,y:0};return E[k]=h[k]+y+v[k],E[C]=Math.max(h[C],v[C]),E[x]=Math.min(0,v[x]+g[1-S]),E}else return c.x=p[0],c.y=p[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t})(Od);function Kgt(e,t,n,r,o,a,s){function l(k,C){k.lineWidth==="auto"&&(k.lineWidth=C.lineWidth>0?2:0),Ez(k,function(x,E){k[E]==="inherit"&&(k[E]=C[E])})}var c=t.getModel("itemStyle"),d=c.getItemStyle(),h=e.lastIndexOf("empty",0)===0?"fill":"stroke",p=c.getShallow("decal");d.decal=!p||p==="inherit"?r.decal:dz(p,s),d.fill==="inherit"&&(d.fill=r[o]),d.stroke==="inherit"&&(d.stroke=r[h]),d.opacity==="inherit"&&(d.opacity=(o==="fill"?r:n).opacity),l(d,r);var v=t.getModel("lineStyle"),g=v.getLineStyle();if(l(g,n),d.fill==="auto"&&(d.fill=r.fill),d.stroke==="auto"&&(d.stroke=r.fill),g.stroke==="auto"&&(g.stroke=r.fill),!a){var y=t.get("inactiveBorderWidth"),S=d[h];d.lineWidth=y==="auto"?r.lineWidth>0&&S?2:0:d.lineWidth,d.fill=t.get("inactiveColor"),d.stroke=t.get("inactiveBorderColor"),g.stroke=v.get("inactiveColor"),g.lineWidth=v.get("inactiveWidth")}return{itemStyle:d,lineStyle:g}}function qgt(e){var t=e.icon||"roundRect",n=jy(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return n.setStyle(e.itemStyle),n.rotation=(e.iconRotate||0)*Math.PI/180,n.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n}function Aae(e,t,n,r){Az(e,t,n,r),n.dispatchAction({type:"legendToggleSelect",name:e??t}),Tz(e,t,n,r)}function Aye(e){for(var t=e.getZr().storage.getDisplayList(),n,r=0,o=t.length;ro[s],k=[-g.x,-g.y];r||(k[a]=h[d]);var C=[0,0],x=[-y.x,-y.y],E=mi(n.get("pageButtonGap",!0),n.get("itemGap",!0));if(S){var _=n.get("pageButtonPosition",!0);_==="end"?x[a]+=o[s]-y[s]:C[a]+=y[s]+E}x[1-a]+=g[l]/2-y[l]/2,h.setPosition(k),p.setPosition(C),v.setPosition(x);var T={x:0,y:0};if(T[s]=S?o[s]:g[s],T[l]=Math.max(g[l],y[l]),T[c]=Math.min(0,y[c]+x[1-a]),p.__rectSize=o[s],S){var D={x:0,y:0};D[s]=Math.max(o[s]-y[s]-E,0),D[l]=T[l],p.setClipPath(new Zs({shape:D})),p.__rectSize=D[s]}else v.eachChild(function(M){M.attr({invisible:!0,silent:!0})});var P=this._getPageInfo(n);return P.pageIndex!=null&&eu(h,{x:P.contentPosition[0],y:P.contentPosition[1]},S?n:null),this._updatePageInfoView(n,P),T},t.prototype._pageGo=function(n,r,o){var a=this._getPageInfo(r)[n];a!=null&&o.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:r.id})},t.prototype._updatePageInfoView=function(n,r){var o=this._controllerGroup;At(["pagePrev","pageNext"],function(h){var p=h+"DataIndex",v=r[p]!=null,g=o.childOfName(h);g&&(g.setStyle("fill",v?n.get("pageIconColor",!0):n.get("pageIconInactiveColor",!0)),g.cursor=v?"pointer":"default")});var a=o.childOfName("pageText"),s=n.get("pageFormatter"),l=r.pageIndex,c=l!=null?l+1:0,d=r.pageCount;a&&s&&a.setStyle("text",Sr(s)?s.replace("{current}",c==null?"":c+"").replace("{total}",d==null?"":d+""):s({current:c,total:d}))},t.prototype._getPageInfo=function(n){var r=n.get("scrollDataIndex",!0),o=this.getContentGroup(),a=this._containerGroup.__rectSize,s=n.getOrient().index,l=EF[s],c=TF[s],d=this._findTargetItemIndex(r),h=o.children(),p=h[d],v=h.length,g=v?1:0,y={contentPosition:[o.x,o.y],pageCount:g,pageIndex:g-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!p)return y;var S=_(p);y.contentPosition[s]=-S.s;for(var k=d+1,C=S,x=S,E=null;k<=v;++k)E=_(h[k]),(!E&&x.e>C.s+a||E&&!T(E,C.s))&&(x.i>C.i?C=x:C=E,C&&(y.pageNextDataIndex==null&&(y.pageNextDataIndex=C.i),++y.pageCount)),x=E;for(var k=d-1,C=S,x=S,E=null;k>=-1;--k)E=_(h[k]),(!E||!T(x,E.s))&&C.i=P&&D.s<=P+a}},t.prototype._findTargetItemIndex=function(n){if(!this._showController)return 0;var r,o=this.getContentGroup(),a;return o.eachChild(function(s,l){var c=s.__legendDataIndex;a==null&&c!=null&&(a=l),c===n&&(r=l)}),r??a},t.type="legend.scroll",t})(Tye);function Qgt(e){e.registerAction("legendScroll","legendscroll",function(t,n){var r=t.scrollDataIndex;r!=null&&n.eachComponent({mainType:"legend",subType:"scroll",query:t},function(o){o.setScrollDataIndex(r)})})}function e1t(e){Gh(Iye),e.registerComponentModel(Zgt),e.registerComponentView(Jgt),Qgt(e)}function Lye(e){Gh(Iye),Gh(e1t)}const t1t=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function n1t(e){function t(r){return(...o)=>{if(!e.value)throw new Error("ECharts is not initialized yet.");return e.value[r].apply(e.value,o)}}function n(){const r=Object.create(null);return t1t.forEach(o=>{r[o]=t(o)}),r}return n()}function r1t(e,t,n){Rt([n,e,t],([r,o,a],s,l)=>{let c=null;if(r&&o&&a){const{offsetWidth:d,offsetHeight:h}=r,p=a===!0?{}:a,{throttle:v=100,onResize:g}=p;let y=!1;const S=()=>{o.resize(),g?.()},k=v?PA(S,v):S;c=new ResizeObserver(()=>{!y&&(y=!0,r.offsetWidth===d&&r.offsetHeight===h)||k()}),c.observe(r)}l(()=>{c&&(c.disconnect(),c=null)})})}const i1t={autoresize:[Boolean,Object]},o1t=/^on[^a-z]/,Dye=e=>o1t.test(e);function s1t(e){const t={};for(const n in e)Dye(n)||(t[n]=e[n]);return t}function cE(e,t){const n=Bo(e)?et(e):e;return n&&typeof n=="object"&&"value"in n?n.value||t:n||t}const a1t="ecLoadingOptions";function l1t(e,t,n){const r=On(a1t,{}),o=j(()=>({...cE(r,{}),...n?.value}));Os(()=>{const a=e.value;a&&(t.value?a.showLoading(o.value):a.hideLoading())})}const u1t={loading:Boolean,loadingOptions:Object};let p4=null;const Pye="x-vue-echarts";function c1t(){if(p4!=null)return p4;if(typeof HTMLElement>"u"||typeof customElements>"u")return p4=!1;try{new Function("tag","class EChartsElement extends HTMLElement{__dispose=null;disconnectedCallback(){this.__dispose&&(this.__dispose(),this.__dispose=null)}}customElements.get(tag)==null&&customElements.define(tag,EChartsElement);")(Pye)}catch{return p4=!1}return p4=!0}document.head.appendChild(document.createElement("style")).textContent=`x-vue-echarts{display:block;width:100%;height:100%;min-width:0} `;const d1t=c1t(),f1t="ecTheme",h1t="ecInitOptions",p1t="ecUpdateOptions",Pae=/(^&?~?!?)native:/;var Rye=Se({name:"echarts",props:{option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean,...i1t,...u1t},emits:{},inheritAttrs:!1,setup(e,{attrs:t}){const n=d0(),r=d0(),o=d0(),a=On(f1t,null),s=On(h1t,null),l=On(p1t,null),{autoresize:c,manualUpdate:d,loading:h,loadingOptions:p}=nn(e),v=j(()=>o.value||e.option||null),g=j(()=>e.theme||cE(a,{})),y=j(()=>e.initOptions||cE(s,{})),S=j(()=>e.updateOptions||cE(l,{})),k=j(()=>s1t(t)),C={},x=_o().proxy.$listeners,E={};x?Object.keys(x).forEach($=>{Pae.test($)?C[$.replace(Pae,"$1")]=x[$]:E[$]=x[$]}):Object.keys(t).filter($=>Dye($)).forEach($=>{let L=$.charAt(2).toLowerCase()+$.slice(3);if(L.indexOf("native:")===0){const B=`on${L.charAt(7).toUpperCase()}${L.slice(8)}`;C[B]=t[$];return}L.substring(L.length-4)==="Once"&&(L=`~${L.substring(0,L.length-4)}`),E[L]=t[$]});function _($){if(!n.value)return;const L=r.value=Gpt(n.value,g.value,y.value);e.group&&(L.group=e.group),Object.keys(E).forEach(W=>{let U=E[W];if(!U)return;let G=W.toLowerCase();G.charAt(0)==="~"&&(G=G.substring(1),U.__once__=!0);let X=L;if(G.indexOf("zr:")===0&&(X=L.getZr(),G=G.substring(3)),U.__once__){delete U.__once__;const oe=U;U=(...Z)=>{oe(...Z),X.off(G,U)}}X.on(G,U)});function B(){L&&!L.isDisposed()&&L.resize()}function F(){const W=$||v.value;W&&L.setOption(W,S.value)}c.value?Cn(()=>{B(),F()}):F()}function T($,L){e.manualUpdate&&(o.value=$),r.value?r.value.setOption($,L||{}):_($)}function D(){r.value&&(r.value.dispose(),r.value=void 0)}let P=null;Rt(d,$=>{typeof P=="function"&&(P(),P=null),$||(P=Rt(()=>e.option,(L,B)=>{L&&(r.value?r.value.setOption(L,{notMerge:L!==B,...S.value}):_())},{deep:!0}))},{immediate:!0}),Rt([g,y],()=>{D(),_()},{deep:!0}),Os(()=>{e.group&&r.value&&(r.value.group=e.group)});const M=n1t(r);return l1t(r,h,p),r1t(r,c,n),bn(()=>{_()}),Io(()=>{d1t&&n.value?n.value.__dispose=D:D()}),{chart:r,root:n,setOption:T,nonEventAttrs:k,nativeListeners:C,...M}},render(){const e={...this.nonEventAttrs,...this.nativeListeners};return e.ref="root",e.class=e.class?["echarts"].concat(e.class):"echarts",da(Pye,e)}});const Cu={WATCH_HISTORY:"drplayer_watch_history",DAILY_STATS:"drplayer_daily_stats"},Mye=()=>new Date().toISOString().split("T")[0],v1t=()=>{const e=new Date;return e.setDate(e.getDate()-1),e.toISOString().split("T")[0]},m1t=()=>{const e=new Date,t=e.getDay(),n=new Date(e);n.setDate(e.getDate()-t);const r=[];for(let o=0;o<7;o++){const a=new Date(n);a.setDate(n.getDate()+o),r.push(a.toISOString().split("T")[0])}return r},wf=(e,t={})=>{try{const n=localStorage.getItem(e);return n?JSON.parse(n):t}catch(n){return console.error("获取存储数据失败:",n),t}},CT=(e,t)=>{try{localStorage.setItem(e,JSON.stringify(t))}catch(n){console.error("保存存储数据失败:",n)}},Oye=e=>{const t=Mye(),n=new Date().toISOString(),r=wf(Cu.WATCH_HISTORY,[]),o={id:Date.now(),videoId:e.id,videoTitle:e.title,episode:e.episode||1,duration:e.duration||0,watchTime:e.watchTime||0,date:t,timestamp:n};return r.push(o),r.length>1e3&&r.splice(0,r.length-1e3),CT(Cu.WATCH_HISTORY,r),aG(t),o},aG=e=>{const t=wf(Cu.DAILY_STATS,{}),n=wf(Cu.WATCH_HISTORY,[]),r=n.filter(o=>o.date===e).length;t[e]={date:e,watchCount:r,totalWatchTime:n.filter(o=>o.date===e).reduce((o,a)=>o+(a.watchTime||0),0),updatedAt:new Date().toISOString()},CT(Cu.DAILY_STATS,t)},$ye=()=>{const e=Mye(),t=wf(Cu.DAILY_STATS,{});return t[e]?t[e]:(aG(e),t[e]||{date:e,watchCount:0,totalWatchTime:0})},Bye=()=>{const e=v1t(),t=wf(Cu.DAILY_STATS,{});return t[e]?t[e]:(aG(e),t[e]||{date:e,watchCount:0,totalWatchTime:0})},g1t=()=>{const e=m1t(),t=wf(Cu.DAILY_STATS,{});return e.map((r,o)=>{const a=["周日","周一","周二","周三","周四","周五","周六"],s=t[r]||{watchCount:0,totalWatchTime:0};return{day:a[o],date:r,count:s.watchCount,totalWatchTime:s.totalWatchTime}})},y1t=()=>{const e=$ye(),t=Bye();if(t.watchCount===0)return e.watchCount>0?100:0;const n=(e.watchCount-t.watchCount)/t.watchCount*100;return Math.round(n)},b1t=(e=50)=>wf(Cu.WATCH_HISTORY,[]).sort((n,r)=>new Date(r.timestamp)-new Date(n.timestamp)).slice(0,e),_1t=(e=10)=>{const t=wf(Cu.WATCH_HISTORY,[]),n={};return t.forEach(r=>{const o=r.videoId;n[o]||(n[o]={videoId:r.videoId,videoTitle:r.videoTitle,watchCount:0,lastWatched:r.timestamp}),n[o].watchCount++,new Date(r.timestamp)>new Date(n[o].lastWatched)&&(n[o].lastWatched=r.timestamp)}),Object.values(n).sort((r,o)=>o.watchCount-r.watchCount).slice(0,e)},S1t=(e=30)=>{const t=new Date;t.setDate(t.getDate()-e);const n=t.toISOString().split("T")[0],o=wf(Cu.WATCH_HISTORY,[]).filter(l=>l.date>=n);CT(Cu.WATCH_HISTORY,o);const a=wf(Cu.DAILY_STATS,{}),s={};Object.keys(a).forEach(l=>{l>=n&&(s[l]=a[l])}),CT(Cu.DAILY_STATS,s),console.log(`清理了 ${e} 天前的数据`)},k1t=()=>{const e=[{id:"video_1",title:"斗罗大陆",episode:1},{id:"video_2",title:"庆余年",episode:2},{id:"video_3",title:"流浪地球2",episode:1},{id:"video_4",title:"鬼灭之刃",episode:5},{id:"video_5",title:"三体",episode:3}];for(let t=6;t>=0;t--){const n=new Date;n.setDate(n.getDate()-t);const r=Math.floor(Math.random()*5)+1;for(let o=0;o({feature:{label:"新功能",color:"#00b42a",icon:"🚀"},improvement:{label:"功能优化",color:"#165dff",icon:"⚡"},optimization:{label:"性能优化",color:"#ff7d00",icon:"🔧"},security:{label:"安全更新",color:"#f53f3f",icon:"🔒"},bugfix:{label:"Bug修复",color:"#722ed1",icon:"🐛"},release:{label:"版本发布",color:"#f7ba1e",icon:"🎉"}}),Fye=()=>({critical:{label:"紧急",color:"#f53f3f",priority:4},major:{label:"重要",color:"#ff7d00",priority:3},minor:{label:"一般",color:"#165dff",priority:2},trivial:{label:"轻微",color:"#86909c",priority:1}}),x1t=()=>Nc.sort((e,t)=>new Date(t.date)-new Date(e.date)),C1t=e=>Nc.filter(t=>t.type===e).sort((t,n)=>new Date(n.date)-new Date(t.date)),w1t=e=>Nc.filter(t=>t.importance===e).sort((t,n)=>new Date(n.date)-new Date(t.date)),E1t=(e=5)=>Nc.sort((t,n)=>new Date(n.date)-new Date(t.date)).slice(0,e),T1t=(e,t)=>{const n=new Date(e),r=new Date(t);return Nc.filter(o=>{const a=new Date(o.date);return a>=n&&a<=r}).sort((o,a)=>new Date(a.date)-new Date(o.date))},A1t=e=>{const t=e.toLowerCase();return Nc.filter(n=>n.title.toLowerCase().includes(t)||n.description.toLowerCase().includes(t)||n.version.toLowerCase().includes(t)||n.changes.some(r=>r.toLowerCase().includes(t))).sort((n,r)=>new Date(r.date)-new Date(n.date))},I1t=()=>{const e=Nye(),t=Fye(),n={};Object.keys(e).forEach(a=>{n[a]=Nc.filter(s=>s.type===a).length});const r={};Object.keys(t).forEach(a=>{r[a]=Nc.filter(s=>s.importance===a).length});const o={};return Nc.forEach(a=>{const s=a.date.substring(0,7);o[s]=(o[s]||0)+1}),{total:Nc.length,byType:n,byImportance:r,byMonth:o,latestVersion:Nc[0]?.version||"v1.0.0",latestDate:Nc[0]?.date||new Date().toISOString().split("T")[0]}},L1t=e=>{const t=new Date(e),r=Math.abs(new Date-t),o=Math.ceil(r/(1e3*60*60*24));return o===1?"昨天":o<=7?`${o}天前`:o<=30?`${Math.floor(o/7)}周前`:t.toLocaleDateString("zh-CN",{year:"numeric",month:"long",day:"numeric"})},D1t=(e,t)=>{const n=e.replace("v","").split(".").map(Number),r=t.replace("v","").split(".").map(Number);for(let o=0;os)return 1;if(aRi,R1t=e=>Ri[e]||[],M1t=(e=12)=>[...Ri.movies,...Ri.tvShows,...Ri.anime,...Ri.novels].sort((n,r)=>r.hotScore-n.hotScore).slice(0,e),O1t=(e=8)=>[...Ri.movies,...Ri.tvShows,...Ri.anime,...Ri.novels].filter(n=>n.trending).sort((n,r)=>r.hotScore-n.hotScore).slice(0,e),$1t=(e,t=6)=>[...Ri.movies,...Ri.tvShows,...Ri.anime,...Ri.novels].filter(r=>r.category===e).sort((r,o)=>o.hotScore-r.hotScore).slice(0,t),B1t=(e,t=6)=>[...Ri.movies,...Ri.tvShows,...Ri.anime,...Ri.novels].filter(r=>r.tags.includes(e)).sort((r,o)=>o.hotScore-r.hotScore).slice(0,t),N1t=e=>{const t=e.toLowerCase();return[...Ri.movies,...Ri.tvShows,...Ri.anime,...Ri.novels].filter(r=>r.title.toLowerCase().includes(t)||r.description.toLowerCase().includes(t)||r.tags.some(o=>o.toLowerCase().includes(t))||r.author&&r.author.toLowerCase().includes(t)).sort((r,o)=>o.hotScore-r.hotScore)},F1t=()=>BA.sort((e,t)=>t.count-e.count),j1t=(e=10)=>BA.sort((t,n)=>n.count-t.count).slice(0,e),V1t=(e=5)=>BA.filter(t=>t.trend==="up").sort((t,n)=>n.count-t.count).slice(0,e),z1t=(e=[],t=8)=>{const n=U1t();return[...Ri.movies,...Ri.tvShows,...Ri.anime,...Ri.novels].map(a=>{let s=a.hotScore;return n.types[a.type]&&(s+=n.types[a.type]*10),n.categories[a.category]&&(s+=n.categories[a.category]*15),a.tags.forEach(l=>{n.tags[l]&&(s+=n.tags[l]*5)}),{...a,recommendScore:s}}).sort((a,s)=>s.recommendScore-a.recommendScore).slice(0,t)},U1t=e=>({types:{电视剧:3,动漫:2,电影:2,小说:1},categories:{科幻:3,悬疑:2,热血:2,剧情:1},tags:{国产:2,日本:1,热血:2,科幻:3}}),H1t=()=>{const e=[...Ri.movies,...Ri.tvShows,...Ri.anime,...Ri.novels],t={};Object.keys(Ri).forEach(a=>{t[a]=Ri[a].length});const n={};e.forEach(a=>{n[a.category]=(n[a.category]||0)+1});const r=e.filter(a=>a.trending).length,o=e.reduce((a,s)=>a+s.rating,0)/e.length;return{total:e.length,byType:t,byCategory:n,trending:r,averageRating:Math.round(o*10)/10,hotKeywords:BA.length}},W1t=(e=6)=>[...Ri.movies,...Ri.tvShows,...Ri.anime,...Ri.novels].sort(()=>.5-Math.random()).slice(0,e),m4={getAllRecommendations:P1t,getRecommendationsByType:R1t,getHotRecommendations:M1t,getTrendingRecommendations:O1t,getRecommendationsByCategory:$1t,getRecommendationsByTag:B1t,searchRecommendations:N1t,getAllKeywords:F1t,getHotKeywords:j1t,getTrendingUpKeywords:V1t,getPersonalizedRecommendations:z1t,getRecommendationStats:H1t,getRandomRecommendations:W1t},NA=tg("pageState",{state:()=>({pageStates:{video:{activeKey:"",currentPage:1,videos:[],hasMore:!0,loading:!1,scrollPosition:0,lastUpdateTime:null},home:{scrollPosition:0,lastUpdateTime:null},search:{keyword:"",currentPage:1,videos:[],hasMore:!0,loading:!1,scrollPosition:0,lastUpdateTime:null}}}),actions:{savePageState(e,t){this.pageStates[e]||(this.pageStates[e]={}),this.pageStates[e]={...this.pageStates[e],...t,lastUpdateTime:Date.now()},console.log(`保存页面状态 [${e}]:`,this.pageStates[e])},getPageState(e){const t=this.pageStates[e];return console.log(`获取页面状态 [${e}]:`,t),t||{}},clearPageState(e){this.pageStates[e]&&(this.pageStates[e]={},console.log(`清除页面状态 [${e}]`))},isStateExpired(e,t=1800*1e3){const n=this.pageStates[e];return!n||!n.lastUpdateTime?!0:Date.now()-n.lastUpdateTime>t},saveVideoState(e,t,n,r,o,a=0){this.savePageState("video",{activeKey:e,currentPage:t,videos:[...n],hasMore:r,loading:o,scrollPosition:a})},saveSearchState(e,t,n,r,o,a=0){this.savePageState("search",{keyword:e,currentPage:t,videos:[...n],hasMore:r,loading:o,scrollPosition:a})},saveScrollPosition(e,t){this.pageStates[e]&&(this.pageStates[e].scrollPosition=t,this.pageStates[e].lastUpdateTime=Date.now())},getScrollPosition(e){const t=this.pageStates[e];return t&&t.scrollPosition||0}},getters:{videoState:e=>e.pageStates.video||{},searchState:e=>e.pageStates.search||{},homeState:e=>e.pageStates.home||{}}}),G1t="识别动作的路由ID或专项动作指令,必须。字符型。",K1t="动作的类型。input(单项输入)/edit(单项多行编辑)/multiInput(少于5个的多项输入)/multiInputX(增强的多项输入)/menu(单项选择)/select(多项选择)/msgbox(消息弹窗)等。字符型。",q1t="弹出窗口是否允许触摸窗口外时取消窗口。逻辑型。",Y1t="标题。字符型。",X1t="宽度。整型。",Z1t="高度。整型。",J1t="文本消息内容。字符型。",Q1t="msgbox类动作的简单html消息内容。字符型。",eyt="input、multiInput、multiInputX类动作的帮助说明内容,在窗口右上角显示帮助图标,点击显示帮助说明,可支持简易的HTML内容。支持的HTML标签,b(加粗)、i(斜体)、u(下划线)、strike(删除线)、em(强调)、strong(加强强调)、p(段落)、div(分区)、br(换行)、font(颜色/大小/字体)、h1~h6(标题层级)、small(小号字体)、tt(打字机字体)、blockquote(引用块)。",tyt="按键的数量。0-无按键,1-取消,2-确定/取消, 3-确定/取消/重置。整型。",nyt="图片URL。字符型。",ryt="图片高度。整型。",iyt="是否检测图片的点击坐标输入。逻辑型。",oyt="生成二维码的URL。字符型。",syt="二维码的大小。整型。",ayt="超时时间(秒)。超时自动关闭窗口。整型。",lyt="T4源的动作网络访问超时时间(秒)。",uyt="输入确认后,窗口是否保持。逻辑型。",cyt="窗口弹出时自动发送的初始化动作指令。字符型。",dyt="窗口弹出时自动发送的初始化指令值。字符型。",fyt="按窗口的取消键时发送的取消动作指令。字符型。",hyt="按窗口的取消键时发送的取消动作指令值。字符型。",pyt="单项输入的输入提示,单项输入时必须。字符型。",vyt="单项输入的初始化值。字符型。",myt="单项输入的预定义选项,用于常见值的快速选择输入。各选项间用“,”分隔,选项值可使用“名称:=值”方式。字符型。",gyt=`多项输入的项目定义JSON数组。每个输入项目使用一个JSON对象进行定义。 [#id]:项目id。 [#name]:项目名称。 [#tip]:项目输入提示。 [#value]:项目初始值。 [#selectData]:项目输入预定义选项。各选项间用“,”分隔,选项值可使用“名称:=值”方式。特殊的输入选择:[folder]-选择文件夹,[file]-选择文件,[calendar]-选择日期,[image]-选择图像文件转为BASE64。multiInputX。 [#quickSelect]:是否能快速选择。单项选择时有效。quickSelect为true且inputType为0时,只输入快速选择项目不显示输入框等。multiInputX。 [#onlyQuickSelect]:是否只快速选择,隐藏输入框等。单项选择时有效。multiInputX。 [#selectWidth]:选择窗的宽度。multiInputX。 [#multiSelect]:是否多选。multiInputX。 [#selectColumn]:选择窗的列数。multiInputX。 [#inputType]:项目输入类型。0-项目输入框只读,但可通过选项输入。129-密码输入。inputType为0且quickSelect为true时,只输入快速选择项目不显示输入框等。multiInputX。 [#multiLine]:项目输入框的行数(多行编辑)。multiInputX。 [#validation]:提交时项目输入值校验正则表达式。multiInputX。 [#help]:项目输入的帮助说明,可支持简易的HTML内容。支持的HTML标签,b(加粗)、i(斜体)、u(下划线)、strike(删除线)、em(强调)、strong(加强强调)、p(段落)、div(分区)、br(换行)、font(颜色/大小/字体)、h1~h6(标题层级)、small(小号字体)、tt(打字机字体)、blockquote(引用块)。multiInputX。`,yyt="设置窗口背景暗化效果,用于调整背景的暗化程度(透明度)。其值范围为0.0到1.0。",byt="底部对齐和底边距。整型。",_yt="单项选择或多项选择窗口的列数。整型。",Syt=`单项选择或多项选择的选项定义JSON数组。每个选项使用一个JSON对象进行定义。 [#name]:选项名称。 [#action]:选项动作值。 [#selected]:选项默认是否已选。多项选择是可用。`,kyt=`源内搜索。 [#skey]:目标源key,可选,未设置或为空则使用当前源。 [#name]:搜索分类名称。 [#tid]:使用分类ID传递的搜索值。 [#flag]:列表视图参数。 [#folder]:多个分类切换搜索的配置,设置此项则忽略name、tid和flag。folder可多项合并设置为一个字符,各项间使用“#”分隔,每项中的name、tid和flag使用“$”分隔。floder也可使用JSON数组,每项分别设置name、tid和flag。`,xyt=`跳转到指定站源解析详情页播放。 [#skey]:目标源key。 [#ids]:传递给详情页的视频ids。`,Cyt=`跳转到KTV播放器播放指定链接。 [#name]:歌名。 [#id]:歌曲的直链。`,wyt="刷新当前分类的列表。无其它参数。",Eyt="把返回的内容复制到剪贴板。content:复制的内容",Tyt=`保持窗口不关闭。 [#msg]:更新窗口里的文本消息内容。 [#reset]:窗口中的输入项目内容是否清空。`,Ayt={使用帮助:`本帮助。长按则分项选择查看。 系统多数功能按键和选项,短按和长按有不同的功能。 [#影图根目录]:安全起见,影图的根目录为tvbox(/storage/emulated/0/tvbox),未说明情况下文件或文件夹都是相对于此目录。`,交互动作:"影图APP与站源接口间交互的动作指令(action)。用户在APP主动发出动作请求,接口根据指令返回数据或返回构建信息输入窗口的配置JSON,具有连续交互的机制。",动作指令:`接口回传给APP的动作指令,按用户交互起点分为静态动作和动态动作。 [#静态动作]:用户通过视频分类列表主动发起交互的起点动作。动作指令以分类列表的视频JSON数据为基础,属于静态数据。所有交互动作的起始都是静态动作。 [#动态动作]:静态动作构建的信息输入窗口提交动作(action)数据后,接口如果再次需要用户输入数据,可以返回新的动作配置JSON数据,此数据是交互过程中动态生成的,属于动态动作。数据结构: {  "action":{   动作指令结构...  },  "toast":"Toast显示消息" }`,动作类型:"基础动作、单项输入、多行编辑、多项输入、增强多项输入、单项选择、多项选择、消息弹窗、专项动作等。",视频VOD:`动作入口的视频分类列表VOD的JSON,vod_id字段值为字符型动作指令数据(json结构的需要转为字符型),vod_tag字段值固定为action,其它字段与视频类一致。例如: {  "vod_id":"动作指令结构...",  "vod_name":"显示名称",  "vod_tag":"action" }`,接口action:"接口接收动作指令的方法action。以js代码为例:function action(action, value) {...}。传参action为动作指令,value为动作指令值。返回结果消息或新的动作指令数据(动态动作)。",基础动作:`简单的动作指令字符串(非JSON结构),用户点击时无信息输入窗口,直接发送指令。 {  "vod_id":"hello world",  "vod_name":"基础动作",  "vod_tag":"action" }`,JSON动作:"JSON结构的动作指令。通过JSON结构数据,配置更丰富的动作指令。通过选择配置不同的字段,定义不同的动作表现。",actionId:G1t,type:K1t,canceledOnTouchOutside:q1t,title:Y1t,width:X1t,height:Z1t,msg:J1t,htmlMsg:Q1t,help:eyt,button:tyt,imageUrl:nyt,imageHeight:ryt,imageClickCoord:iyt,qrcode:oyt,qrcodeSize:syt,timeout:ayt,httpTimeout:lyt,keep:uyt,initAction:cyt,initValue:dyt,cancelAction:fyt,cancelValue:hyt,tip:pyt,value:vyt,selectData:myt,input:gyt,dimAmount:yyt,bottom:byt,column:_yt,option:Syt,单项输入:`type为input。要求用户输入一个字段的动作,JSON结构,部分字段根据需要选用。 {  actionId:'动作路由ID',  id:'输入项目id',  type:'input',  width:450,  title:'输入窗口标题',  tip:'输入提示',  value:'输入初始值',  msg:'窗口文本说明',  imageUrl:'窗口显示图片的URL',  imageHeight:200,  qrcode:'生成二维码的URL',  qrcodeSize:'300',  initAction:'initAction',  initValue:requestId,  button:2,  selectData:'1:=快速输入一,2:=快速输入二,3:=快速输入三' }`,多行编辑:"type为edit。要求用户在一个多行编辑区输入单个字段内容的动作,JSON结构。",多项输入:"type为multiInput。要求用户输入多个字段(5个以内)的动作,JSON结构。建议使用“增强多项输入”动作。",增强多项输入:"type为multiInputX。要求用户输入多个字段(不限制个数)的动作,JSON结构。",单项选择:"type为menu。要求用户在列表中选择一个项目的动作,JSON结构。",多项选择:"type为select。要求用户在列表中选择多个项目的动作,JSON结构。",消息弹窗:"type为msgbox。弹出窗口显示消息,JSON结构。",专项动作:"专项动作为动态动作,接口让APP执行一些特定的行为动作。actionId值为行为特定的标识。__self_search__(源内搜索)、__detail__(详情页)、__ktvplayer__(KTV播放)、__refresh_list__(刷新列表)、__copy__(复制)、__keep__(保持窗口)。",__self_search__:kyt,__detail__:xyt,__ktvplayer__:Cyt,__refresh_list__:wyt,__copy__:Eyt,__keep__:Tyt,图片坐标示例:`获取在图片点击的位置坐标用于验证输入的js示例。  {   vod_id: JSON.stringify({    actionId: '图片点击坐标',    id: 'coord',    type: 'input',    title: '图片点击坐标',    tip: '请输入图片中文字的坐标',    value: '',    msg: '点击图片上文字获取坐标',    imageUrl: 'https://pic.imgdb.cn/item/667ce9f4d9c307b7e9f9d052.webp',    imageHeight: 300,    imageClickCoord: true,    button: 3,   }),   vod_name: '图片点击坐标',   vod_pic: 'https://pic.imgdb.cn/item/667ce9f4d9c307b7e9f9d052.webp',   vod_tag:'action'  }`,多项输入示例:`多个不同类型输入项的js示例。  {   vod_id: JSON.stringify({    actionId: '多项输入',    type: 'multiInputX',    canceledOnTouchOutside: true,    title: '多项输入(multiInputX)',    width: 716,    bottom: 1,    dimAmount: 0.3,    button: 3,    input: [     {      id: 'item1',      name: '文件夹路径(文件夹选择器)',      tip: '请输入文件夹路径',      value: '',      selectData: '[folder]',      inputType: 0,     },     {      id: 'item2',      name: '日期(日期选择器)',      tip: '请输入项目2内容',      value: '',      selectData: '[calendar]',      inputType: 0,           },     {      id: 'item3',      name: '文件路径(文件选择器)',      tip: '请输入文件路径',      value: '',      selectData: '[file]',      inputType: 0,     },     {      id: 'item4',      name: '多项选择',      tip: '请输入多项内容,以“,”分隔',      value: '',      selectData: '[请选择字母]a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z',      selectWidth: 640,      multiSelect: true,      selectColumn: 4,      inputType: 0,     },     {      id: 'item5',      name: '多行输入',      tip: '请输入项目5内容',      value: '',      multiLine: 5,     },     {      id: 'item6',      name: '密码输入',      tip: '请输入项目6内容',      value: '',      inputType: 129,     },     {      id: 'item7',      name: '图像base64(图像文件选择器)',      tip: '请输入项目7内容',      value: '',      selectData: '[image]',      multiLine: 3,      inputType: 0,     },     {      id: 'item8',      name: '单项选择',      tip: '请输入项目8内容',      value: '',      selectData: '[请选择地方]a,b,c,d'     },     {      id: 'item9',      name: '单行输入并校验',      tip: '请输入项目9内容',      value: '',      validation: '[0-9]{6,12}',     }    ]   }),   vod_name: '多项输入',   vod_tag:'action'  }`},Iyt={class:"action-doc-card"},Lyt={class:"card-title"},Dyt={class:"card-content"},Pyt={class:"overview-section"},Ryt={class:"overview-item"},Myt={class:"overview-value"},Oyt={class:"overview-item"},$yt={class:"overview-value"},Byt={class:"overview-item"},Nyt={class:"overview-value"},Fyt={key:0,class:"quick-nav"},jyt={key:1,class:"expanded-content"},Vyt={class:"section",id:"basic-concepts"},zyt={class:"section-title"},Uyt={class:"concept-grid"},Hyt={class:"concept-title"},Wyt={class:"concept-desc"},Gyt={class:"section",id:"action-types"},Kyt={class:"section-title"},qyt={class:"action-types-grid"},Yyt={class:"action-type-header"},Xyt={class:"action-type-code"},Zyt={class:"action-type-desc"},Jyt={key:0,class:"action-type-usage"},Qyt={class:"section",id:"special-actions"},e3t={class:"section-title"},t3t={class:"special-actions-list"},n3t={class:"special-action-header"},r3t={class:"action-id"},i3t={class:"action-name"},o3t={class:"special-action-desc"},s3t={key:0,class:"special-action-params"},a3t={class:"section",id:"config-params"},l3t={class:"section-title"},u3t={class:"params-grid"},c3t={class:"param-header"},d3t={class:"param-name"},f3t={class:"param-desc"},h3t={class:"section",id:"examples"},p3t={class:"section-title"},v3t={class:"code-block"},m3t={class:"code-block"},g3t={class:"code-block"},y3t={__name:"ActionDocCard",setup(e){const t=fe(!1),n=fe(Ayt),r=()=>{t.value=!t.value},o=k=>{t.value=!0,setTimeout(()=>{const C=document.getElementById(k);C&&C.scrollIntoView({behavior:"smooth"})},100)};bn(()=>{});const a=j(()=>Object.keys(n.value).length),s=j(()=>{const k=new Set;return Object.values(n.value).forEach(C=>{C.type&&k.add(C.type)}),Array.from(k)}),l=j(()=>Object.entries(n.value).filter(([k,C])=>C.special===!0).map(([k,C])=>({key:k,...C}))),c=fe([{key:"basic-concepts",name:"基础概念",color:"blue"},{key:"action-types",name:"动作类型",color:"green"},{key:"special-actions",name:"专项动作",color:"orange"},{key:"config-params",name:"配置参数",color:"purple"},{key:"examples",name:"示例代码",color:"red"}]),d=j(()=>[{key:"interaction",title:"交互动作",description:n.value.交互动作||""},{key:"action-command",title:"动作指令",description:n.value.动作指令?.split(` `)[0]||""},{key:"video-vod",title:"视频VOD",description:n.value.视频VOD?.split("例如:")[0]||""},{key:"interface-action",title:"接口action",description:n.value.接口action||""}]),h=fe([{key:"basic",name:"基础动作",type:"string",color:"blue",description:"简单的动作指令字符串,用户点击时无信息输入窗口",usage:"直接发送指令"},{key:"input",name:"单项输入",type:"input",color:"green",description:"要求用户输入一个字段的动作",usage:"获取用户单个输入值"},{key:"edit",name:"多行编辑",type:"edit",color:"cyan",description:"要求用户在多行编辑区输入单个字段内容",usage:"长文本输入"},{key:"multiInput",name:"多项输入",type:"multiInput",color:"purple",description:"要求用户输入多个字段(5个以内)",usage:"少量多字段输入"},{key:"multiInputX",name:"增强多项输入",type:"multiInputX",color:"orange",description:"要求用户输入多个字段(不限制个数)",usage:"复杂表单输入"},{key:"menu",name:"单项选择",type:"menu",color:"lime",description:"要求用户在列表中选择一个项目",usage:"单选操作"},{key:"select",name:"多项选择",type:"select",color:"gold",description:"要求用户在列表中选择多个项目",usage:"多选操作"},{key:"msgbox",name:"消息弹窗",type:"msgbox",color:"red",description:"弹出窗口显示消息",usage:"信息展示"}]),p=j(()=>[{key:"self_search",actionId:"__self_search__",name:"源内搜索",description:n.value.__self_search__?.split(` `)[0]||"",params:["skey","name","tid","flag","folder"]},{key:"detail",actionId:"__detail__",name:"详情页跳转",description:n.value.__detail__?.split(` `)[0]||"",params:["skey","ids"]},{key:"ktvplayer",actionId:"__ktvplayer__",name:"KTV播放",description:n.value.__ktvplayer__?.split(` `)[0]||"",params:["name","id"]},{key:"refresh_list",actionId:"__refresh_list__",name:"刷新列表",description:n.value.__refresh_list__||"",params:[]},{key:"copy",actionId:"__copy__",name:"复制内容",description:n.value.__copy__||"",params:["content"]},{key:"keep",actionId:"__keep__",name:"保持窗口",description:n.value.__keep__?.split(` `)[0]||"",params:["msg","reset"]}]),v=fe([{key:"actionId",name:"actionId",type:"字符型",typeColor:"blue",description:"识别动作的路由ID或专项动作指令,必须"},{key:"type",name:"type",type:"字符型",typeColor:"blue",description:"动作的类型"},{key:"title",name:"title",type:"字符型",typeColor:"blue",description:"标题"},{key:"width",name:"width",type:"整型",typeColor:"green",description:"宽度"},{key:"height",name:"height",type:"整型",typeColor:"green",description:"高度"},{key:"msg",name:"msg",type:"字符型",typeColor:"blue",description:"文本消息内容"},{key:"button",name:"button",type:"整型",typeColor:"green",description:"按键的数量。0-无按键,1-取消,2-确定/取消, 3-确定/取消/重置"},{key:"timeout",name:"timeout",type:"整型",typeColor:"green",description:"超时时间(秒)。超时自动关闭窗口"},{key:"keep",name:"keep",type:"逻辑型",typeColor:"purple",description:"输入确认后,窗口是否保持"},{key:"tip",name:"tip",type:"字符型",typeColor:"blue",description:"单项输入的输入提示,单项输入时必须"}]),g=fe(`{ "vod_id": "hello world", "vod_name": "基础动作", "vod_tag": "action" }`),y=fe(`{ "actionId": "动作路由ID", "type": "input", "width": 450, "title": "输入窗口标题", "tip": "输入提示", "value": "输入初始值", "msg": "窗口文本说明", "button": 2, "selectData": "1:=快速输入一,2:=快速输入二,3:=快速输入三" }`),S=fe(`{ "actionId": "多项输入", "type": "multiInputX", "title": "多项输入(multiInputX)", "width": 716, "button": 3, "input": [ { "id": "item1", "name": "文件夹路径", "tip": "请输入文件夹路径", "selectData": "[folder]", "inputType": 0 }, { "id": "item2", "name": "多行输入", "tip": "请输入内容", "multiLine": 5 } ] }`);return(k,C)=>{const x=Ie("a-button"),E=Ie("a-tag"),_=Ie("a-card"),T=Ie("a-tab-pane"),D=Ie("a-tabs");return z(),Q("div",Iyt,[O(_,{bordered:!1,class:"card-container","body-style":{padding:"20px"}},{title:de(()=>[I("div",Lyt,[O(et(tA),{class:"title-icon"}),C[0]||(C[0]=I("span",null,"Action 动作指令文档",-1))])]),extra:de(()=>[O(x,{type:"text",size:"small",onClick:r,class:"expand-btn"},{default:de(()=>[t.value?Le("",!0):(z(),Ye(et(Zh),{key:0})),t.value?(z(),Ye(et(Z_),{key:1})):Le("",!0),We(" "+ze(t.value?"收起":"展开"),1)]),_:1})]),default:de(()=>[I("div",Dyt,[I("div",Pyt,[I("div",Ryt,[C[1]||(C[1]=I("div",{class:"overview-label"},"总条目数",-1)),I("div",Myt,ze(a.value),1)]),I("div",Oyt,[C[2]||(C[2]=I("div",{class:"overview-label"},"动作类型",-1)),I("div",$yt,ze(s.value.length),1)]),I("div",Byt,[C[3]||(C[3]=I("div",{class:"overview-label"},"专项动作",-1)),I("div",Nyt,ze(l.value.length),1)])]),t.value?Le("",!0):(z(),Q("div",Fyt,[(z(!0),Q(Nt,null,gn(c.value,P=>(z(),Ye(E,{key:P.key,color:P.color,class:"nav-tag",onClick:M=>o(P.key)},{default:de(()=>[We(ze(P.name),1)]),_:2},1032,["color","onClick"]))),128))])),t.value?(z(),Q("div",jyt,[I("div",Vyt,[I("h3",zyt,[O(et(Pc),{class:"section-icon"}),C[4]||(C[4]=We(" 基础概念 ",-1))]),I("div",Uyt,[(z(!0),Q(Nt,null,gn(d.value,P=>(z(),Q("div",{class:"concept-item",key:P.key},[I("div",Hyt,ze(P.title),1),I("div",Wyt,ze(P.description),1)]))),128))])]),I("div",Gyt,[I("h3",Kyt,[O(et(Lf),{class:"section-icon"}),C[5]||(C[5]=We(" 动作类型 ",-1))]),I("div",qyt,[(z(!0),Q(Nt,null,gn(h.value,P=>(z(),Ye(_,{key:P.key,size:"small",class:"action-type-card",hoverable:!0},{default:de(()=>[I("div",Yyt,[O(E,{color:P.color},{default:de(()=>[We(ze(P.name),1)]),_:2},1032,["color"]),I("span",Xyt,ze(P.type),1)]),I("div",Zyt,ze(P.description),1),P.usage?(z(),Q("div",Jyt,[C[6]||(C[6]=I("strong",null,"用途:",-1)),We(ze(P.usage),1)])):Le("",!0)]),_:2},1024))),128))])]),I("div",Qyt,[I("h3",e3t,[O(et(eA),{class:"section-icon"}),C[7]||(C[7]=We(" 专项动作 ",-1))]),I("div",t3t,[(z(!0),Q(Nt,null,gn(p.value,P=>(z(),Q("div",{key:P.key,class:"special-action-item"},[I("div",n3t,[I("code",r3t,ze(P.actionId),1),I("span",i3t,ze(P.name),1)]),I("div",o3t,ze(P.description),1),P.params?(z(),Q("div",s3t,[C[8]||(C[8]=I("strong",null,"参数:",-1)),(z(!0),Q(Nt,null,gn(P.params,M=>(z(),Q("span",{key:M,class:"param-tag"},ze(M),1))),128))])):Le("",!0)]))),128))])]),I("div",a3t,[I("h3",l3t,[O(et(E0),{class:"section-icon"}),C[9]||(C[9]=We(" 配置参数 ",-1))]),I("div",u3t,[(z(!0),Q(Nt,null,gn(v.value,P=>(z(),Q("div",{key:P.key,class:"param-item"},[I("div",c3t,[I("code",d3t,ze(P.name),1),O(E,{size:"small",color:P.typeColor},{default:de(()=>[We(ze(P.type),1)]),_:2},1032,["color"])]),I("div",f3t,ze(P.description),1)]))),128))])]),I("div",h3t,[I("h3",p3t,[O(et(_ve),{class:"section-icon"}),C[10]||(C[10]=We(" 示例代码 ",-1))]),O(D,{type:"card",class:"example-tabs"},{default:de(()=>[O(T,{key:"basic",title:"基础动作"},{default:de(()=>[I("pre",v3t,ze(g.value),1)]),_:1}),O(T,{key:"input",title:"单项输入"},{default:de(()=>[I("pre",m3t,ze(y.value),1)]),_:1}),O(T,{key:"multi",title:"多项输入"},{default:de(()=>[I("pre",g3t,ze(S.value),1)]),_:1})]),_:1})])])):Le("",!0)])]),_:1})])}}},b3t=xr(y3t,[["__scopeId","data-v-d143db2b"]]),_3t={class:"home-container"},S3t={class:"dashboard-header"},k3t={class:"header-content"},x3t={class:"welcome-section"},C3t={class:"dashboard-title"},w3t={class:"quick-stats"},E3t={class:"stat-item"},T3t={class:"stat-value"},A3t={class:"stat-item"},I3t={class:"stat-value"},L3t={class:"stat-item"},D3t={class:"dashboard-content"},P3t={class:"content-grid"},R3t={class:"dashboard-card watch-stats-card"},M3t={class:"card-header"},O3t={class:"card-title"},$3t={class:"card-content"},B3t={class:"dashboard-card update-log-card"},N3t={class:"card-header"},F3t={class:"card-title"},j3t={class:"card-content"},V3t={class:"timeline-content"},z3t={class:"timeline-header"},U3t={class:"version-tag"},H3t={class:"update-date"},W3t={class:"update-title"},G3t={class:"update-description"},K3t={class:"update-changes"},q3t={key:0,class:"more-changes"},Y3t={class:"dashboard-card recommend-card"},X3t={class:"card-header"},Z3t={class:"card-title"},J3t={class:"card-content"},Q3t={class:"recommend-grid"},e2t=["onClick"],t2t={class:"recommend-poster"},n2t={class:"recommend-overlay"},r2t={key:0,class:"trending-badge"},i2t={class:"recommend-info"},o2t={class:"recommend-title"},s2t={class:"recommend-meta"},a2t={class:"recommend-rating"},l2t={class:"recommend-tags"},u2t={class:"dashboard-card keywords-card"},c2t={class:"card-header"},d2t={class:"card-title"},f2t={class:"card-content"},h2t={class:"keywords-list"},p2t=["onClick"],v2t={class:"keyword-content"},m2t={class:"keyword-text"},g2t={class:"keyword-meta"},y2t={class:"keyword-count"},b2t={class:"dashboard-card system-status-card"},_2t={class:"card-header"},S2t={class:"card-title"},k2t={class:"card-content"},x2t={class:"status-grid"},C2t={class:"status-item"},w2t={class:"status-icon online"},E2t={class:"status-item"},T2t={class:"status-icon online"},A2t={class:"status-item"},I2t={class:"status-icon warning"},L2t={class:"status-item"},D2t={class:"status-icon online"},P2t={class:"update-log-modal"},R2t={class:"timeline-content"},M2t={class:"timeline-header"},O2t={class:"version-tag"},$2t={class:"update-date"},B2t={class:"update-title"},N2t={class:"update-description"},F2t={class:"update-changes"},j2t={class:"keywords-modal"},V2t={class:"keywords-list"},z2t=["onClick"],U2t={class:"keyword-content"},H2t={class:"keyword-text"},W2t={class:"keyword-meta"},G2t={class:"keyword-count"},K2t={__name:"Home",setup(e){Gh([W1e,rye,eye,lye,_ye,wye,Lye,Eye]);const t=NA(),n=k5(),r=el(),o=fe("week"),a=fe("hot"),s=fe({watchCount:0,totalWatchTime:0}),l=fe({watchCount:0,totalWatchTime:0}),c=fe([]),d=fe(0),h=fe([]),p=fe([]),v=fe([]),g=j(()=>{const Z=c.value.map(q=>q.count),H=c.value.map(q=>q.day);return{title:{text:o.value==="week"?"本周观看统计":"本月观看统计",textStyle:{fontSize:14,color:"#1D2129"}},tooltip:{trigger:"axis",axisPointer:{type:"shadow"},formatter:function(q){const ee=q[0];return`${ee.name}
${ee.seriesName}: ${ee.value}集`}},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:{type:"category",data:H,axisLabel:{color:"#86909C"}},yAxis:{type:"value",axisLabel:{color:"#86909C"}},series:[{name:"观看集数",type:"bar",data:Z,itemStyle:{color:"#165DFF"},barWidth:"60%"}]}}),y=Z=>v4.getUpdateTypeConfig()[Z]?.color||"#86909c",S=()=>v4.getUpdateTypeConfig(),k=Z=>({feature:"green",improvement:"blue",optimization:"orange",security:"red",bugfix:"purple",release:"gold"})[Z]||"gray",C=Z=>({电影:"#4A90E2",电视剧:"#50C878",动漫:"#FF6B6B",小说:"#9B59B6"})[Z]||"#86909C",x=Z=>({电影:"blue",电视剧:"green",动漫:"orange",小说:"purple"})[Z]||"gray",E=Z=>v4.formatDate(Z),_=Z=>Z>=1e4?(Z/1e4).toFixed(1)+"w":Z>=1e3?(Z/1e3).toFixed(1)+"k":Z.toString(),T=()=>{console.log("更新统计图表:",o.value)},D=()=>{switch(a.value){case"hot":p.value=m4.getHotRecommendations(8);break;case"trending":p.value=m4.getTrendingRecommendations(8);break;case"random":p.value=m4.getRandomRecommendations(8);break}},P=Z=>{console.log("点击推荐内容:",Z)},M=Z=>{console.log("点击热搜关键词:",Z)},$=fe(!1),L=fe(!1),B=fe([]),F=fe([]),W=()=>{B.value=v4.getAllUpdateLogs(),$.value=!0},U=()=>{F.value=m4.getAllKeywords(),L.value=!0},G=()=>{$.value=!1},X=()=>{L.value=!1},oe=()=>{s.value=dC.getTodayStats(),l.value=dC.getYesterdayStats(),c.value=dC.getWeekStats(),d.value=dC.calculateGrowthRate(),h.value=v4.getRecentUpdateLogs(4),D(),v.value=m4.getHotKeywords(8)};return bn(()=>{if(n.query._restoreSearch==="true"){const H=t.getPageState("search");if(H&&H.keyword&&!t.isStateExpired("search")){console.log("Home页面恢复搜索状态:",H),r.replace({name:"Video",query:{_restoreSearch:"true"}});return}const q={...n.query};delete q._restoreSearch,r.replace({query:q})}oe(),console.log("主页看板加载完成")}),(Z,H)=>{const q=Ie("a-option"),ee=Ie("a-select"),ne=Ie("a-link"),ae=Ie("a-tag"),re=Ie("a-timeline-item"),ke=Ie("a-timeline"),Ne=Ie("a-modal");return z(),Q(Nt,null,[I("div",_3t,[I("div",S3t,[I("div",k3t,[I("div",x3t,[I("h1",C3t,[O(et(c3),{class:"title-icon"}),H[4]||(H[4]=We(" 数据看板 ",-1))]),H[5]||(H[5]=I("p",{class:"dashboard-subtitle"},"欢迎回来,今天也要愉快地追剧哦~",-1))]),I("div",w3t,[I("div",E3t,[I("div",T3t,ze(s.value.watchCount),1),H[6]||(H[6]=I("div",{class:"stat-label"},"今日观看",-1))]),I("div",A3t,[I("div",I3t,ze(Math.round(s.value.totalWatchTime/60)),1),H[7]||(H[7]=I("div",{class:"stat-label"},"总时长(分钟)",-1))]),I("div",L3t,[I("div",{class:ue(["stat-value",{positive:d.value>0,negative:d.value<0}])},ze(d.value>0?"+":"")+ze(d.value)+"% ",3),H[8]||(H[8]=I("div",{class:"stat-label"},"增长率",-1))])])])]),I("div",D3t,[I("div",P3t,[I("div",R3t,[I("div",M3t,[I("h3",O3t,[O(et(Ive),{class:"card-icon"}),H[9]||(H[9]=We(" 最近观看统计 ",-1))]),O(ee,{modelValue:o.value,"onUpdate:modelValue":H[0]||(H[0]=me=>o.value=me),size:"small",style:{width:"100px"},onChange:T},{default:de(()=>[O(q,{value:"week"},{default:de(()=>[...H[10]||(H[10]=[We("本周",-1)])]),_:1}),O(q,{value:"month"},{default:de(()=>[...H[11]||(H[11]=[We("本月",-1)])]),_:1})]),_:1},8,["modelValue"])]),I("div",$3t,[O(et(Rye),{class:"chart",option:g.value},null,8,["option"])])]),I("div",B3t,[I("div",N3t,[I("h3",F3t,[O(et(My),{class:"card-icon"}),H[12]||(H[12]=We(" 更新日志 ",-1))]),O(ne,{onClick:W,size:"small"},{default:de(()=>[...H[13]||(H[13]=[We("查看全部",-1)])]),_:1})]),I("div",j3t,[O(ke,null,{default:de(()=>[(z(!0),Q(Nt,null,gn(h.value,me=>(z(),Ye(re,{key:me.id,"dot-color":y(me.type)},{default:de(()=>[I("div",V3t,[I("div",z3t,[I("span",U3t,ze(me.version),1),I("span",H3t,ze(E(me.date)),1)]),I("h4",W3t,ze(me.title),1),I("p",G3t,ze(me.description),1),I("div",K3t,[(z(!0),Q(Nt,null,gn(me.changes.slice(0,2),(_e,Ue)=>(z(),Ye(ae,{key:Ue,size:"small",color:k(me.type)},{default:de(()=>[We(ze(_e),1)]),_:2},1032,["color"]))),128)),me.changes.length>2?(z(),Q("span",q3t," +"+ze(me.changes.length-2)+"项更新 ",1)):Le("",!0)])])]),_:2},1032,["dot-color"]))),128))]),_:1})])]),I("div",Y3t,[I("div",X3t,[I("h3",Z3t,[O(et(J5),{class:"card-icon"}),H[14]||(H[14]=We(" 猜你喜欢 ",-1))]),O(ee,{modelValue:a.value,"onUpdate:modelValue":H[1]||(H[1]=me=>a.value=me),size:"small",style:{width:"80px"},onChange:D},{default:de(()=>[O(q,{value:"hot"},{default:de(()=>[...H[15]||(H[15]=[We("热门",-1)])]),_:1}),O(q,{value:"trending"},{default:de(()=>[...H[16]||(H[16]=[We("趋势",-1)])]),_:1}),O(q,{value:"random"},{default:de(()=>[...H[17]||(H[17]=[We("随机",-1)])]),_:1})]),_:1},8,["modelValue"])]),I("div",J3t,[I("div",Q3t,[(z(!0),Q(Nt,null,gn(p.value,me=>(z(),Q("div",{key:me.id,class:"recommend-item",onClick:_e=>P(me)},[I("div",t2t,[I("div",{class:"poster-placeholder",style:Ke({backgroundColor:C(me.type)})},ze(me.title.substring(0,2)),5),I("div",n2t,[O(et(qa),{class:"play-icon"})]),me.trending?(z(),Q("div",r2t," 🔥 热门 ")):Le("",!0)]),I("div",i2t,[I("h4",o2t,ze(me.title),1),I("div",s2t,[O(ae,{size:"small",color:x(me.type)},{default:de(()=>[We(ze(me.type),1)]),_:2},1032,["color"]),I("span",a2t,[O(et($H)),We(" "+ze(me.rating),1)])]),I("div",l2t,[(z(!0),Q(Nt,null,gn(me.tags.slice(0,2),_e=>(z(),Ye(ae,{key:_e,size:"mini",color:"gray"},{default:de(()=>[We(ze(_e),1)]),_:2},1024))),128))])])],8,e2t))),128))])])]),I("div",u2t,[I("div",c2t,[I("h3",d2t,[O(et(Dve),{class:"card-icon"}),H[18]||(H[18]=We(" 热搜关键词 ",-1))]),O(ne,{onClick:U,size:"small"},{default:de(()=>[...H[19]||(H[19]=[We("更多",-1)])]),_:1})]),I("div",f2t,[I("div",h2t,[(z(!0),Q(Nt,null,gn(v.value,(me,_e)=>(z(),Q("div",{key:me.keyword,class:"keyword-item",onClick:Ue=>M(me)},[I("div",{class:ue(["keyword-rank",{"top-three":_e<3}])},ze(_e+1),3),I("div",v2t,[I("span",m2t,ze(me.keyword),1),I("div",g2t,[I("span",y2t,ze(_(me.count)),1),I("span",{class:ue(["keyword-trend",me.trend])},[me.trend==="up"?(z(),Ye(et(yV),{key:0})):me.trend==="down"?(z(),Ye(et(gV),{key:1})):(z(),Ye(et(Rm),{key:2}))],2)])])],8,p2t))),128))])])]),I("div",b2t,[I("div",_2t,[I("h3",S2t,[O(et(JH),{class:"card-icon"}),H[20]||(H[20]=We(" 系统状态 ",-1))])]),I("div",k2t,[I("div",x2t,[I("div",C2t,[I("div",w2t,[O(et(nc))]),H[21]||(H[21]=I("div",{class:"status-info"},[I("div",{class:"status-label"},"播放服务"),I("div",{class:"status-value"},"正常")],-1))]),I("div",E2t,[I("div",T2t,[O(et(nc))]),H[22]||(H[22]=I("div",{class:"status-info"},[I("div",{class:"status-label"},"数据同步"),I("div",{class:"status-value"},"正常")],-1))]),I("div",A2t,[I("div",I2t,[O(et(Sd))]),H[23]||(H[23]=I("div",{class:"status-info"},[I("div",{class:"status-label"},"存储空间"),I("div",{class:"status-value"},"85%")],-1))]),I("div",L2t,[I("div",D2t,[O(et(nc))]),H[24]||(H[24]=I("div",{class:"status-info"},[I("div",{class:"status-label"},"网络连接"),I("div",{class:"status-value"},"良好")],-1))])])])]),O(b3t)])])]),O(Ne,{visible:$.value,"onUpdate:visible":H[2]||(H[2]=me=>$.value=me),title:"更新日志",width:"800px",footer:!1,onCancel:G},{default:de(()=>[I("div",P2t,[O(ke,null,{default:de(()=>[(z(!0),Q(Nt,null,gn(B.value,me=>(z(),Ye(re,{key:me.id,"dot-color":y(me.type)},{default:de(()=>[I("div",R2t,[I("div",M2t,[I("span",O2t,ze(me.version),1),I("span",$2t,ze(E(me.date)),1),O(ae,{size:"small",color:k(me.type),class:"type-tag"},{default:de(()=>[We(ze(S()[me.type]?.label||me.type),1)]),_:2},1032,["color"])]),I("h4",B2t,ze(me.title),1),I("p",N2t,ze(me.description),1),I("div",F2t,[(z(!0),Q(Nt,null,gn(me.changes,(_e,Ue)=>(z(),Ye(ae,{key:Ue,size:"small",color:k(me.type),class:"change-tag"},{default:de(()=>[We(ze(_e),1)]),_:2},1032,["color"]))),128))])])]),_:2},1032,["dot-color"]))),128))]),_:1})])]),_:1},8,["visible"]),O(Ne,{visible:L.value,"onUpdate:visible":H[3]||(H[3]=me=>L.value=me),title:"热搜关键词",width:"600px",footer:!1,onCancel:X},{default:de(()=>[I("div",j2t,[I("div",V2t,[(z(!0),Q(Nt,null,gn(F.value,(me,_e)=>(z(),Q("div",{key:me.keyword,class:"keyword-item",onClick:Ue=>M(me)},[I("div",{class:ue(["keyword-rank",{"top-three":_e<3}])},ze(_e+1),3),I("div",U2t,[I("span",H2t,ze(me.keyword),1),I("div",W2t,[I("span",G2t,ze(_(me.count)),1),I("span",{class:ue(["keyword-trend",me.trend])},[me.trend==="up"?(z(),Ye(et(yV),{key:0})):me.trend==="down"?(z(),Ye(et(gV),{key:1})):(z(),Ye(et(Rm),{key:2}))],2)])])],8,z2t))),128))])])]),_:1},8,["visible"])],64)}}},q2t=xr(K2t,[["__scopeId","data-v-217d9b8b"]]),Y2t={class:"tag-container"},X2t={class:"search-section"},Z2t={class:"search-row"},J2t={class:"source-count"},Q2t={class:"sources-section"},e4t={key:0,class:"empty-state"},t4t={key:1,class:"button-container"},n4t={class:"source-info"},r4t={class:"source-name"},i4t={key:0,class:"current-icon"},o4t={class:"dialog-footer"},s4t={class:"footer-left"},a4t={class:"footer-right"},l4t={__name:"SourceDialog",props:{visible:Boolean,title:String,sites:Array,currentSiteKey:String},emits:["update:visible","confirm-clear","confirm-change","change-rule"],setup(e,{emit:t}){const n=e,r=t,o=fe(""),a=fe({new_site:{}}),s=fe(null),l=fe(!1),c=E=>{const _=E.match(/\[(.*?)\]/);return _?_[1]:null},d={ds:"(DS)",hipy:"(hipy)",cat:"(cat)"},h=j(()=>{const E=n.sites.filter(T=>T.type===4).map(T=>c(T.name)).filter(T=>T!==null);return[...[...new Set(E)],"ds","hipy","cat"]}),p=E=>{E==="全部"?o.value="":d[E]?o.value=d[E]:o.value=`[${E}]`,l.value=!1},v=j(()=>{const E=o.value.toLowerCase();return n.sites.filter(_=>_.type===4).filter(_=>_.name.toLowerCase().includes(E))}),g=j(()=>window.innerWidth<768?"95%":"700px"),y=E=>{a.value.new_site=E,r("change-rule",E)},S=()=>{r("confirm-clear"),r("update:visible",!1)},k=()=>{a.value.new_site.key&&(r("confirm-change",a.value.new_site),r("update:visible",!1))},C=()=>{r("update:visible",!1)},x=()=>{Cn(()=>{if(s.value&&s.value.length>0){const E=s.value[0];E&&E.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})}})};return Rt(()=>n.visible,E=>{E&&n.currentSiteKey&&setTimeout(()=>{x()},100)}),Rt(v,()=>{n.visible&&n.currentSiteKey&&o.value.trim()!==""&&v.value.some(_=>_.key===n.currentSiteKey)&&setTimeout(()=>{x()},50)}),(E,_)=>{const T=Ie("a-button"),D=Ie("a-modal"),P=Ie("a-input");return z(),Q(Nt,null,[O(D,{visible:l.value,title:`TAG [${h.value.length}]`,width:g.value,class:"tag_dialog","append-to-body":"",onCancel:_[1]||(_[1]=M=>l.value=!1)},{default:de(()=>[I("div",Y2t,[O(T,{type:"secondary",class:"tag-item",onClick:_[0]||(_[0]=M=>p("全部"))},{default:de(()=>[..._[4]||(_[4]=[We(" 全部 ",-1)])]),_:1}),(z(!0),Q(Nt,null,gn(h.value,(M,$)=>(z(),Ye(T,{key:$,type:"secondary",class:"tag-item",onClick:L=>p(M)},{default:de(()=>[We(ze(M),1)]),_:2},1032,["onClick"]))),128))])]),_:1},8,["visible","title","width"]),O(D,{visible:e.visible,title:e.title,width:g.value,class:"change_rule_dialog","append-to-body":"","on-before-cancel":S},{footer:de(()=>[I("div",o4t,[I("div",s4t,[O(T,{type:"outline",status:"danger",onClick:S},{default:de(()=>[O(et(Ed)),_[7]||(_[7]=We(" 清除缓存 ",-1))]),_:1})]),I("div",a4t,[O(T,{onClick:C},{default:de(()=>[..._[8]||(_[8]=[We("取消",-1)])]),_:1}),O(T,{type:"primary",onClick:k,disabled:!a.value.new_site.key},{default:de(()=>[..._[9]||(_[9]=[We(" 确认换源 ",-1)])]),_:1},8,["disabled"])])])]),default:de(()=>[I("div",X2t,[I("div",Z2t,[O(P,{modelValue:o.value,"onUpdate:modelValue":_[2]||(_[2]=M=>o.value=M),placeholder:"搜索数据源名称...",class:"site_filter_input","allow-clear":""},{prefix:de(()=>[O(et(Lm))]),_:1},8,["modelValue"]),O(T,{type:"primary",status:"success",class:"tag-button",onClick:_[3]||(_[3]=M=>l.value=!0)},{default:de(()=>[..._[5]||(_[5]=[We(" TAG ",-1)])]),_:1})]),I("div",J2t," 共 "+ze(v.value.length)+" 个可用数据源 ",1)]),I("div",Q2t,[v.value.length===0?(z(),Q("div",e4t,[O(et(aH)),_[6]||(_[6]=I("p",null,"未找到匹配的数据源",-1))])):(z(),Q("div",t4t,[(z(!0),Q(Nt,null,gn(v.value,(M,$)=>(z(),Q("div",{key:M.key||$,ref_for:!0,ref:M.key===e.currentSiteKey?"currentSourceRef":null,class:ue(["btn-item",{selected:a.value.new_site.key===M.key,"current-source":M.key===e.currentSiteKey}])},[O(T,{type:"primary",status:a.value.new_site.key===M.key?"success":"primary",size:"medium",onClick:L=>y(M),class:ue(["source-button",{"current-source-button":M.key===e.currentSiteKey}])},{default:de(()=>[I("div",n4t,[I("div",r4t,ze(M.name),1),M.key===e.currentSiteKey?(z(),Q("div",i4t,[O(et(Yh))])):Le("",!0)])]),_:2},1032,["status","onClick","class"])],2))),128))]))])]),_:1},8,["visible","title","width"])],64)}}},u4t=xr(l4t,[["__scopeId","data-v-105ac4df"]]),c4t={class:"breadcrumb-container"},d4t={class:"header-left"},f4t={class:"navigation-title"},h4t={class:"header-center"},p4t={class:"header-right"},v4t={class:"push-modal-content"},m4t={class:"push-description"},g4t={class:"push-hint"},y4t={class:"hint-item"},b4t={class:"hint-item"},_4t={__name:"Breadcrumb",props:{navigation_title:{type:String,default:"Video"},now_site_title:String},emits:["handleOpenForm","refreshPage","onSearch","handlePush","minimize","maximize","closeWindow"],setup(e,{emit:t}){const n=t,r=fe(""),o=fe(!1),a=fe(""),s=()=>{n("handleOpenForm")},l=()=>{n("refreshPage")},c=g=>{const y=typeof g=="string"?g:r.value;y&&typeof y=="string"&&y.trim()&&n("onSearch",y.trim())},d=()=>{o.value=!0,a.value=""},h=()=>{Et.info({content:"全局动作功能开发中,敬请期待!",duration:3e3})},p=()=>{if(!a.value.trim()){Et.error("推送内容不能为空");return}const g=a.value.split(` `).map(S=>S.trim()).filter(S=>S);if(g.length===0){Et.error("请输入有效的推送内容");return}const y=g[0];g.length>1&&Et.info(`检测到多行输入,将使用第一行内容: ${y}`),n("handlePush",y),o.value=!1,a.value=""},v=()=>{o.value=!1,a.value=""};return(g,y)=>{const S=Ie("icon-apps"),k=Ie("a-button"),C=Ie("icon-refresh"),x=Ie("a-input-search"),E=Ie("icon-send"),_=Ie("icon-thunderbolt"),T=Ie("a-textarea"),D=Ie("icon-info-circle"),P=Ie("icon-bulb"),M=Ie("a-modal");return z(),Q(Nt,null,[I("div",c4t,[I("div",d4t,[I("span",f4t,ze(e.navigation_title),1),O(k,{type:"outline",status:"success",shape:"round",onClick:s},{icon:de(()=>[O(S)]),default:de(()=>[We(ze(e.now_site_title),1)]),_:1}),O(k,{type:"outline",status:"success",shape:"round",onClick:l},{icon:de(()=>[O(C)]),default:de(()=>[...y[3]||(y[3]=[We("重载源",-1)])]),_:1})]),I("div",h4t,[O(x,{modelValue:r.value,"onUpdate:modelValue":y[0]||(y[0]=$=>r.value=$),placeholder:"搜索视频","enter-button":"",onSearch:c,onPressEnter:c},null,8,["modelValue"])]),I("div",p4t,[O(k,{type:"outline",status:"success",shape:"round",onClick:d},{icon:de(()=>[O(E)]),default:de(()=>[...y[4]||(y[4]=[We("推送",-1)])]),_:1}),O(k,{type:"outline",status:"success",shape:"round",onClick:h},{icon:de(()=>[O(_)]),default:de(()=>[...y[5]||(y[5]=[We("全局动作",-1)])]),_:1}),vt(g.$slots,"default",{},void 0,!0)])]),O(M,{visible:o.value,"onUpdate:visible":y[2]||(y[2]=$=>o.value=$),title:"推送内容",width:600,onOk:p,onCancel:v,"ok-text":"确认推送","cancel-text":"取消","ok-button-props":{disabled:!a.value.trim()}},{default:de(()=>[I("div",v4t,[I("div",m4t,[O(E,{class:"push-icon"}),y[6]||(y[6]=I("span",null,"请输入要推送的内容(vod_id):",-1))]),O(T,{modelValue:a.value,"onUpdate:modelValue":y[1]||(y[1]=$=>a.value=$),placeholder:`请输入要推送的内容... 支持多行输入,每行一个vod_id`,rows:6,"max-length":1e3,"show-word-limit":"","allow-clear":"",autofocus:"",class:"push-textarea"},null,8,["modelValue"]),I("div",g4t,[I("div",y4t,[O(D,{class:"hint-icon"}),y[7]||(y[7]=I("span",null,"输入的内容将作为vod_id调用push_agent源的详情接口",-1))]),I("div",b4t,[O(P,{class:"hint-icon"}),y[8]||(y[8]=I("span",null,"支持多行输入,系统将使用第一行非空内容作为vod_id",-1))])])])]),_:1},8,["visible","ok-button-props"])],64)}}},S4t=xr(_4t,[["__scopeId","data-v-20e05b46"]]);function jye(e,t){return function(){return e.apply(t,arguments)}}const{toString:k4t}=Object.prototype,{getPrototypeOf:lG}=Object,{iterator:FA,toStringTag:Vye}=Symbol,jA=(e=>t=>{const n=k4t.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Fd=e=>(e=e.toLowerCase(),t=>jA(t)===e),VA=e=>t=>typeof t===e,{isArray:g3}=Array,zy=VA("undefined");function hS(e){return e!==null&&!zy(e)&&e.constructor!==null&&!zy(e.constructor)&&Au(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const zye=Fd("ArrayBuffer");function x4t(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&zye(e.buffer),t}const C4t=VA("string"),Au=VA("function"),Uye=VA("number"),pS=e=>e!==null&&typeof e=="object",w4t=e=>e===!0||e===!1,dE=e=>{if(jA(e)!=="object")return!1;const t=lG(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Vye in e)&&!(FA in e)},E4t=e=>{if(!pS(e)||hS(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},T4t=Fd("Date"),A4t=Fd("File"),I4t=Fd("Blob"),L4t=Fd("FileList"),D4t=e=>pS(e)&&Au(e.pipe),P4t=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Au(e.append)&&((t=jA(e))==="formdata"||t==="object"&&Au(e.toString)&&e.toString()==="[object FormData]"))},R4t=Fd("URLSearchParams"),[M4t,O4t,$4t,B4t]=["ReadableStream","Request","Response","Headers"].map(Fd),N4t=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function vS(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),g3(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const tm=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Wye=e=>!zy(e)&&e!==tm;function Iz(){const{caseless:e,skipUndefined:t}=Wye(this)&&this||{},n={},r=(o,a)=>{const s=e&&Hye(n,a)||a;dE(n[s])&&dE(o)?n[s]=Iz(n[s],o):dE(o)?n[s]=Iz({},o):g3(o)?n[s]=o.slice():(!t||!zy(o))&&(n[s]=o)};for(let o=0,a=arguments.length;o(vS(t,(o,a)=>{n&&Au(o)?e[a]=jye(o,n):e[a]=o},{allOwnKeys:r}),e),j4t=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),V4t=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},z4t=(e,t,n,r)=>{let o,a,s;const l={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),a=o.length;a-- >0;)s=o[a],(!r||r(s,e,t))&&!l[s]&&(t[s]=e[s],l[s]=!0);e=n!==!1&&lG(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},U4t=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},H4t=e=>{if(!e)return null;if(g3(e))return e;let t=e.length;if(!Uye(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},W4t=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&lG(Uint8Array)),G4t=(e,t)=>{const r=(e&&e[FA]).call(e);let o;for(;(o=r.next())&&!o.done;){const a=o.value;t.call(e,a[0],a[1])}},K4t=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},q4t=Fd("HTMLFormElement"),Y4t=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),Rae=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),X4t=Fd("RegExp"),Gye=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};vS(n,(o,a)=>{let s;(s=t(o,a,e))!==!1&&(r[a]=s||o)}),Object.defineProperties(e,r)},Z4t=e=>{Gye(e,(t,n)=>{if(Au(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Au(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},J4t=(e,t)=>{const n={},r=o=>{o.forEach(a=>{n[a]=!0})};return g3(e)?r(e):r(String(e).split(t)),n},Q4t=()=>{},ebt=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function tbt(e){return!!(e&&Au(e.append)&&e[Vye]==="FormData"&&e[FA])}const nbt=e=>{const t=new Array(10),n=(r,o)=>{if(pS(r)){if(t.indexOf(r)>=0)return;if(hS(r))return r;if(!("toJSON"in r)){t[o]=r;const a=g3(r)?[]:{};return vS(r,(s,l)=>{const c=n(s,o+1);!zy(c)&&(a[l]=c)}),t[o]=void 0,a}}return r};return n(e,0)},rbt=Fd("AsyncFunction"),ibt=e=>e&&(pS(e)||Au(e))&&Au(e.then)&&Au(e.catch),Kye=((e,t)=>e?setImmediate:t?((n,r)=>(tm.addEventListener("message",({source:o,data:a})=>{o===tm&&a===n&&r.length&&r.shift()()},!1),o=>{r.push(o),tm.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Au(tm.postMessage)),obt=typeof queueMicrotask<"u"?queueMicrotask.bind(tm):typeof process<"u"&&process.nextTick||Kye,sbt=e=>e!=null&&Au(e[FA]),en={isArray:g3,isArrayBuffer:zye,isBuffer:hS,isFormData:P4t,isArrayBufferView:x4t,isString:C4t,isNumber:Uye,isBoolean:w4t,isObject:pS,isPlainObject:dE,isEmptyObject:E4t,isReadableStream:M4t,isRequest:O4t,isResponse:$4t,isHeaders:B4t,isUndefined:zy,isDate:T4t,isFile:A4t,isBlob:I4t,isRegExp:X4t,isFunction:Au,isStream:D4t,isURLSearchParams:R4t,isTypedArray:W4t,isFileList:L4t,forEach:vS,merge:Iz,extend:F4t,trim:N4t,stripBOM:j4t,inherits:V4t,toFlatObject:z4t,kindOf:jA,kindOfTest:Fd,endsWith:U4t,toArray:H4t,forEachEntry:G4t,matchAll:K4t,isHTMLForm:q4t,hasOwnProperty:Rae,hasOwnProp:Rae,reduceDescriptors:Gye,freezeMethods:Z4t,toObjectSet:J4t,toCamelCase:Y4t,noop:Q4t,toFiniteNumber:ebt,findKey:Hye,global:tm,isContextDefined:Wye,isSpecCompliantForm:tbt,toJSONObject:nbt,isAsyncFn:rbt,isThenable:ibt,setImmediate:Kye,asap:obt,isIterable:sbt};function ti(e,t,n,r,o){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),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}en.inherits(ti,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:en.toJSONObject(this.config),code:this.code,status:this.status}}});const qye=ti.prototype,Yye={};["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=>{Yye[e]={value:e}});Object.defineProperties(ti,Yye);Object.defineProperty(qye,"isAxiosError",{value:!0});ti.from=(e,t,n,r,o,a)=>{const s=Object.create(qye);en.toFlatObject(e,s,function(h){return h!==Error.prototype},d=>d!=="isAxiosError");const l=e&&e.message?e.message:"Error",c=t==null&&e?e.code:t;return ti.call(s,l,c,n,r,o),e&&s.cause==null&&Object.defineProperty(s,"cause",{value:e,configurable:!0}),s.name=e&&e.name||"Error",a&&Object.assign(s,a),s};const abt=null;function Lz(e){return en.isPlainObject(e)||en.isArray(e)}function Xye(e){return en.endsWith(e,"[]")?e.slice(0,-2):e}function Mae(e,t,n){return e?e.concat(t).map(function(o,a){return o=Xye(o),!n&&a?"["+o+"]":o}).join(n?".":""):t}function lbt(e){return en.isArray(e)&&!e.some(Lz)}const ubt=en.toFlatObject(en,{},null,function(t){return/^is[A-Z]/.test(t)});function zA(e,t,n){if(!en.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=en.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(S,k){return!en.isUndefined(k[S])});const r=n.metaTokens,o=n.visitor||h,a=n.dots,s=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&en.isSpecCompliantForm(t);if(!en.isFunction(o))throw new TypeError("visitor must be a function");function d(y){if(y===null)return"";if(en.isDate(y))return y.toISOString();if(en.isBoolean(y))return y.toString();if(!c&&en.isBlob(y))throw new ti("Blob is not supported. Use a Buffer instead.");return en.isArrayBuffer(y)||en.isTypedArray(y)?c&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function h(y,S,k){let C=y;if(y&&!k&&typeof y=="object"){if(en.endsWith(S,"{}"))S=r?S:S.slice(0,-2),y=JSON.stringify(y);else if(en.isArray(y)&&lbt(y)||(en.isFileList(y)||en.endsWith(S,"[]"))&&(C=en.toArray(y)))return S=Xye(S),C.forEach(function(E,_){!(en.isUndefined(E)||E===null)&&t.append(s===!0?Mae([S],_,a):s===null?S:S+"[]",d(E))}),!1}return Lz(y)?!0:(t.append(Mae(k,S,a),d(y)),!1)}const p=[],v=Object.assign(ubt,{defaultVisitor:h,convertValue:d,isVisitable:Lz});function g(y,S){if(!en.isUndefined(y)){if(p.indexOf(y)!==-1)throw Error("Circular reference detected in "+S.join("."));p.push(y),en.forEach(y,function(C,x){(!(en.isUndefined(C)||C===null)&&o.call(t,C,en.isString(x)?x.trim():x,S,v))===!0&&g(C,S?S.concat(x):[x])}),p.pop()}}if(!en.isObject(e))throw new TypeError("data must be an object");return g(e),t}function Oae(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function uG(e,t){this._pairs=[],e&&zA(e,this,t)}const Zye=uG.prototype;Zye.append=function(t,n){this._pairs.push([t,n])};Zye.toString=function(t){const n=t?function(r){return t.call(this,r,Oae)}:Oae;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function cbt(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Jye(e,t,n){if(!t)return e;const r=n&&n.encode||cbt;en.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let a;if(o?a=o(t,n):a=en.isURLSearchParams(t)?t.toString():new uG(t,n).toString(r),a){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class $ae{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){en.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Qye={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},dbt=typeof URLSearchParams<"u"?URLSearchParams:uG,fbt=typeof FormData<"u"?FormData:null,hbt=typeof Blob<"u"?Blob:null,pbt={isBrowser:!0,classes:{URLSearchParams:dbt,FormData:fbt,Blob:hbt},protocols:["http","https","file","blob","url","data"]},cG=typeof window<"u"&&typeof document<"u",Dz=typeof navigator=="object"&&navigator||void 0,vbt=cG&&(!Dz||["ReactNative","NativeScript","NS"].indexOf(Dz.product)<0),mbt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",gbt=cG&&window.location.href||"http://localhost",ybt=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:cG,hasStandardBrowserEnv:vbt,hasStandardBrowserWebWorkerEnv:mbt,navigator:Dz,origin:gbt},Symbol.toStringTag,{value:"Module"})),Sl={...ybt,...pbt};function bbt(e,t){return zA(e,new Sl.classes.URLSearchParams,{visitor:function(n,r,o,a){return Sl.isNode&&en.isBuffer(n)?(this.append(r,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)},...t})}function _bt(e){return en.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Sbt(e){const t={},n=Object.keys(e);let r;const o=n.length;let a;for(r=0;r=n.length;return s=!s&&en.isArray(o)?o.length:s,c?(en.hasOwnProp(o,s)?o[s]=[o[s],r]:o[s]=r,!l):((!o[s]||!en.isObject(o[s]))&&(o[s]=[]),t(n,r,o[s],a)&&en.isArray(o[s])&&(o[s]=Sbt(o[s])),!l)}if(en.isFormData(e)&&en.isFunction(e.entries)){const n={};return en.forEachEntry(e,(r,o)=>{t(_bt(r),o,n,0)}),n}return null}function kbt(e,t,n){if(en.isString(e))try{return(t||JSON.parse)(e),en.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const mS={transitional:Qye,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,a=en.isObject(t);if(a&&en.isHTMLForm(t)&&(t=new FormData(t)),en.isFormData(t))return o?JSON.stringify(e3e(t)):t;if(en.isArrayBuffer(t)||en.isBuffer(t)||en.isStream(t)||en.isFile(t)||en.isBlob(t)||en.isReadableStream(t))return t;if(en.isArrayBufferView(t))return t.buffer;if(en.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(a){if(r.indexOf("application/x-www-form-urlencoded")>-1)return bbt(t,this.formSerializer).toString();if((l=en.isFileList(t))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return zA(l?{"files[]":t}:t,c&&new c,this.formSerializer)}}return a||o?(n.setContentType("application/json",!1),kbt(t)):t}],transformResponse:[function(t){const n=this.transitional||mS.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(en.isResponse(t)||en.isReadableStream(t))return t;if(t&&en.isString(t)&&(r&&!this.responseType||o)){const s=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t,this.parseReviver)}catch(l){if(s)throw l.name==="SyntaxError"?ti.from(l,ti.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Sl.classes.FormData,Blob:Sl.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};en.forEach(["delete","get","head","post","put","patch"],e=>{mS.headers[e]={}});const xbt=en.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"]),Cbt=e=>{const t={};let n,r,o;return e&&e.split(` `).forEach(function(s){o=s.indexOf(":"),n=s.substring(0,o).trim().toLowerCase(),r=s.substring(o+1).trim(),!(!n||t[n]&&xbt[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Bae=Symbol("internals");function g4(e){return e&&String(e).trim().toLowerCase()}function fE(e){return e===!1||e==null?e:en.isArray(e)?e.map(fE):String(e)}function wbt(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const Ebt=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function AF(e,t,n,r,o){if(en.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!en.isString(t)){if(en.isString(r))return t.indexOf(r)!==-1;if(en.isRegExp(r))return r.test(t)}}function Tbt(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Abt(e,t){const n=en.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,a,s){return this[r].call(this,t,o,a,s)},configurable:!0})})}let Iu=class{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function a(l,c,d){const h=g4(c);if(!h)throw new Error("header name must be a non-empty string");const p=en.findKey(o,h);(!p||o[p]===void 0||d===!0||d===void 0&&o[p]!==!1)&&(o[p||c]=fE(l))}const s=(l,c)=>en.forEach(l,(d,h)=>a(d,h,c));if(en.isPlainObject(t)||t instanceof this.constructor)s(t,n);else if(en.isString(t)&&(t=t.trim())&&!Ebt(t))s(Cbt(t),n);else if(en.isObject(t)&&en.isIterable(t)){let l={},c,d;for(const h of t){if(!en.isArray(h))throw TypeError("Object iterator must return a key-value pair");l[d=h[0]]=(c=l[d])?en.isArray(c)?[...c,h[1]]:[c,h[1]]:h[1]}s(l,n)}else t!=null&&a(n,t,r);return this}get(t,n){if(t=g4(t),t){const r=en.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return wbt(o);if(en.isFunction(n))return n.call(this,o,r);if(en.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=g4(t),t){const r=en.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||AF(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function a(s){if(s=g4(s),s){const l=en.findKey(r,s);l&&(!n||AF(r,r[l],l,n))&&(delete r[l],o=!0)}}return en.isArray(t)?t.forEach(a):a(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const a=n[r];(!t||AF(this,this[a],a,t,!0))&&(delete this[a],o=!0)}return o}normalize(t){const n=this,r={};return en.forEach(this,(o,a)=>{const s=en.findKey(r,a);if(s){n[s]=fE(o),delete n[a];return}const l=t?Tbt(a):String(a).trim();l!==a&&delete n[a],n[l]=fE(o),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return en.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&en.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[Bae]=this[Bae]={accessors:{}}).accessors,o=this.prototype;function a(s){const l=g4(s);r[l]||(Abt(o,s),r[l]=!0)}return en.isArray(t)?t.forEach(a):a(t),this}};Iu.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);en.reduceDescriptors(Iu.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});en.freezeMethods(Iu);function IF(e,t){const n=this||mS,r=t||n,o=Iu.from(r.headers);let a=r.data;return en.forEach(e,function(l){a=l.call(n,a,o.normalize(),t?t.status:void 0)}),o.normalize(),a}function t3e(e){return!!(e&&e.__CANCEL__)}function y3(e,t,n){ti.call(this,e??"canceled",ti.ERR_CANCELED,t,n),this.name="CanceledError"}en.inherits(y3,ti,{__CANCEL__:!0});function n3e(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new ti("Request failed with status code "+n.status,[ti.ERR_BAD_REQUEST,ti.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Ibt(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Lbt(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,a=0,s;return t=t!==void 0?t:1e3,function(c){const d=Date.now(),h=r[a];s||(s=d),n[o]=c,r[o]=d;let p=a,v=0;for(;p!==o;)v+=n[p++],p=p%e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),d-s{n=h,o=null,a&&(clearTimeout(a),a=null),e(...d)};return[(...d)=>{const h=Date.now(),p=h-n;p>=r?s(d,h):(o=d,a||(a=setTimeout(()=>{a=null,s(o)},r-p)))},()=>o&&s(o)]}const wT=(e,t,n=3)=>{let r=0;const o=Lbt(50,250);return Dbt(a=>{const s=a.loaded,l=a.lengthComputable?a.total:void 0,c=s-r,d=o(c),h=s<=l;r=s;const p={loaded:s,total:l,progress:l?s/l:void 0,bytes:c,rate:d||void 0,estimated:d&&l&&h?(l-s)/d:void 0,event:a,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(p)},n)},Nae=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Fae=e=>(...t)=>en.asap(()=>e(...t)),Pbt=Sl.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Sl.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Sl.origin),Sl.navigator&&/(msie|trident)/i.test(Sl.navigator.userAgent)):()=>!0,Rbt=Sl.hasStandardBrowserEnv?{write(e,t,n,r,o,a){const s=[e+"="+encodeURIComponent(t)];en.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),en.isString(r)&&s.push("path="+r),en.isString(o)&&s.push("domain="+o),a===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Mbt(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Obt(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function r3e(e,t,n){let r=!Mbt(t);return e&&(r||n==!1)?Obt(e,t):t}const jae=e=>e instanceof Iu?{...e}:e;function Fm(e,t){t=t||{};const n={};function r(d,h,p,v){return en.isPlainObject(d)&&en.isPlainObject(h)?en.merge.call({caseless:v},d,h):en.isPlainObject(h)?en.merge({},h):en.isArray(h)?h.slice():h}function o(d,h,p,v){if(en.isUndefined(h)){if(!en.isUndefined(d))return r(void 0,d,p,v)}else return r(d,h,p,v)}function a(d,h){if(!en.isUndefined(h))return r(void 0,h)}function s(d,h){if(en.isUndefined(h)){if(!en.isUndefined(d))return r(void 0,d)}else return r(void 0,h)}function l(d,h,p){if(p in t)return r(d,h);if(p in e)return r(void 0,d)}const c={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l,headers:(d,h,p)=>o(jae(d),jae(h),p,!0)};return en.forEach(Object.keys({...e,...t}),function(h){const p=c[h]||o,v=p(e[h],t[h],h);en.isUndefined(v)&&p!==l||(n[h]=v)}),n}const i3e=e=>{const t=Fm({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:a,headers:s,auth:l}=t;if(t.headers=s=Iu.from(s),t.url=Jye(r3e(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),en.isFormData(n)){if(Sl.hasStandardBrowserEnv||Sl.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(en.isFunction(n.getHeaders)){const c=n.getHeaders(),d=["content-type","content-length"];Object.entries(c).forEach(([h,p])=>{d.includes(h.toLowerCase())&&s.set(h,p)})}}if(Sl.hasStandardBrowserEnv&&(r&&en.isFunction(r)&&(r=r(t)),r||r!==!1&&Pbt(t.url))){const c=o&&a&&Rbt.read(a);c&&s.set(o,c)}return t},$bt=typeof XMLHttpRequest<"u",Bbt=$bt&&function(e){return new Promise(function(n,r){const o=i3e(e);let a=o.data;const s=Iu.from(o.headers).normalize();let{responseType:l,onUploadProgress:c,onDownloadProgress:d}=o,h,p,v,g,y;function S(){g&&g(),y&&y(),o.cancelToken&&o.cancelToken.unsubscribe(h),o.signal&&o.signal.removeEventListener("abort",h)}let k=new XMLHttpRequest;k.open(o.method.toUpperCase(),o.url,!0),k.timeout=o.timeout;function C(){if(!k)return;const E=Iu.from("getAllResponseHeaders"in k&&k.getAllResponseHeaders()),T={data:!l||l==="text"||l==="json"?k.responseText:k.response,status:k.status,statusText:k.statusText,headers:E,config:e,request:k};n3e(function(P){n(P),S()},function(P){r(P),S()},T),k=null}"onloadend"in k?k.onloadend=C:k.onreadystatechange=function(){!k||k.readyState!==4||k.status===0&&!(k.responseURL&&k.responseURL.indexOf("file:")===0)||setTimeout(C)},k.onabort=function(){k&&(r(new ti("Request aborted",ti.ECONNABORTED,e,k)),k=null)},k.onerror=function(_){const T=_&&_.message?_.message:"Network Error",D=new ti(T,ti.ERR_NETWORK,e,k);D.event=_||null,r(D),k=null},k.ontimeout=function(){let _=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const T=o.transitional||Qye;o.timeoutErrorMessage&&(_=o.timeoutErrorMessage),r(new ti(_,T.clarifyTimeoutError?ti.ETIMEDOUT:ti.ECONNABORTED,e,k)),k=null},a===void 0&&s.setContentType(null),"setRequestHeader"in k&&en.forEach(s.toJSON(),function(_,T){k.setRequestHeader(T,_)}),en.isUndefined(o.withCredentials)||(k.withCredentials=!!o.withCredentials),l&&l!=="json"&&(k.responseType=o.responseType),d&&([v,y]=wT(d,!0),k.addEventListener("progress",v)),c&&k.upload&&([p,g]=wT(c),k.upload.addEventListener("progress",p),k.upload.addEventListener("loadend",g)),(o.cancelToken||o.signal)&&(h=E=>{k&&(r(!E||E.type?new y3(null,e,k):E),k.abort(),k=null)},o.cancelToken&&o.cancelToken.subscribe(h),o.signal&&(o.signal.aborted?h():o.signal.addEventListener("abort",h)));const x=Ibt(o.url);if(x&&Sl.protocols.indexOf(x)===-1){r(new ti("Unsupported protocol "+x+":",ti.ERR_BAD_REQUEST,e));return}k.send(a||null)})},Nbt=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const a=function(d){if(!o){o=!0,l();const h=d instanceof Error?d:this.reason;r.abort(h instanceof ti?h:new y3(h instanceof Error?h.message:h))}};let s=t&&setTimeout(()=>{s=null,a(new ti(`timeout ${t} of ms exceeded`,ti.ETIMEDOUT))},t);const l=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(d=>{d.unsubscribe?d.unsubscribe(a):d.removeEventListener("abort",a)}),e=null)};e.forEach(d=>d.addEventListener("abort",a));const{signal:c}=r;return c.unsubscribe=()=>en.asap(l),c}},Fbt=function*(e,t){let n=e.byteLength;if(n{const o=jbt(e,t);let a=0,s,l=c=>{s||(s=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:d,value:h}=await o.next();if(d){l(),c.close();return}let p=h.byteLength;if(n){let v=a+=p;n(v)}c.enqueue(new Uint8Array(h))}catch(d){throw l(d),d}},cancel(c){return l(c),o.return()}},{highWaterMark:2})},zae=64*1024,{isFunction:fC}=en,o3e=(({fetch:e,Request:t,Response:n})=>({fetch:e,Request:t,Response:n}))(en.global),{ReadableStream:Uae,TextEncoder:Hae}=en.global,Wae=(e,...t)=>{try{return!!e(...t)}catch{return!1}},zbt=e=>{const{fetch:t,Request:n,Response:r}=Object.assign({},o3e,e),o=fC(t),a=fC(n),s=fC(r);if(!o)return!1;const l=o&&fC(Uae),c=o&&(typeof Hae=="function"?(y=>S=>y.encode(S))(new Hae):async y=>new Uint8Array(await new n(y).arrayBuffer())),d=a&&l&&Wae(()=>{let y=!1;const S=new n(Sl.origin,{body:new Uae,method:"POST",get duplex(){return y=!0,"half"}}).headers.has("Content-Type");return y&&!S}),h=s&&l&&Wae(()=>en.isReadableStream(new r("").body)),p={stream:h&&(y=>y.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(y=>{!p[y]&&(p[y]=(S,k)=>{let C=S&&S[y];if(C)return C.call(S);throw new ti(`Response type '${y}' is not supported`,ti.ERR_NOT_SUPPORT,k)})});const v=async y=>{if(y==null)return 0;if(en.isBlob(y))return y.size;if(en.isSpecCompliantForm(y))return(await new n(Sl.origin,{method:"POST",body:y}).arrayBuffer()).byteLength;if(en.isArrayBufferView(y)||en.isArrayBuffer(y))return y.byteLength;if(en.isURLSearchParams(y)&&(y=y+""),en.isString(y))return(await c(y)).byteLength},g=async(y,S)=>{const k=en.toFiniteNumber(y.getContentLength());return k??v(S)};return async y=>{let{url:S,method:k,data:C,signal:x,cancelToken:E,timeout:_,onDownloadProgress:T,onUploadProgress:D,responseType:P,headers:M,withCredentials:$="same-origin",fetchOptions:L}=i3e(y);P=P?(P+"").toLowerCase():"text";let B=Nbt([x,E&&E.toAbortSignal()],_),F=null;const W=B&&B.unsubscribe&&(()=>{B.unsubscribe()});let U;try{if(D&&d&&k!=="get"&&k!=="head"&&(U=await g(M,C))!==0){let q=new n(S,{method:"POST",body:C,duplex:"half"}),ee;if(en.isFormData(C)&&(ee=q.headers.get("content-type"))&&M.setContentType(ee),q.body){const[ne,ae]=Nae(U,wT(Fae(D)));C=Vae(q.body,zae,ne,ae)}}en.isString($)||($=$?"include":"omit");const G=a&&"credentials"in n.prototype,X={...L,signal:B,method:k.toUpperCase(),headers:M.normalize().toJSON(),body:C,duplex:"half",credentials:G?$:void 0};F=a&&new n(S,X);let oe=await(a?t(F,L):t(S,X));const Z=h&&(P==="stream"||P==="response");if(h&&(T||Z&&W)){const q={};["status","statusText","headers"].forEach(re=>{q[re]=oe[re]});const ee=en.toFiniteNumber(oe.headers.get("content-length")),[ne,ae]=T&&Nae(ee,wT(Fae(T),!0))||[];oe=new r(Vae(oe.body,zae,ne,()=>{ae&&ae(),W&&W()}),q)}P=P||"text";let H=await p[en.findKey(p,P)||"text"](oe,y);return!Z&&W&&W(),await new Promise((q,ee)=>{n3e(q,ee,{data:H,headers:Iu.from(oe.headers),status:oe.status,statusText:oe.statusText,config:y,request:F})})}catch(G){throw W&&W(),G&&G.name==="TypeError"&&/Load failed|fetch/i.test(G.message)?Object.assign(new ti("Network Error",ti.ERR_NETWORK,y,F),{cause:G.cause||G}):ti.from(G,G&&G.code,y,F)}}},Ubt=new Map,s3e=e=>{let t=en.merge.call({skipUndefined:!0},o3e,e?e.env:null);const{fetch:n,Request:r,Response:o}=t,a=[r,o,n];let s=a.length,l=s,c,d,h=Ubt;for(;l--;)c=a[l],d=h.get(c),d===void 0&&h.set(c,d=l?new Map:zbt(t)),h=d;return d};s3e();const Pz={http:abt,xhr:Bbt,fetch:{get:s3e}};en.forEach(Pz,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Gae=e=>`- ${e}`,Hbt=e=>en.isFunction(e)||e===null||e===!1,a3e={getAdapter:(e,t)=>{e=en.isArray(e)?e:[e];const{length:n}=e;let r,o;const a={};for(let s=0;s`adapter ${c} `+(d===!1?"is not supported by the environment":"is not available in the build"));let l=n?s.length>1?`since : `+s.map(Gae).join(` `):" "+Gae(s[0]):"as no adapter specified";throw new ti("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return o},adapters:Pz};function LF(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new y3(null,e)}function Kae(e){return LF(e),e.headers=Iu.from(e.headers),e.data=IF.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),a3e.getAdapter(e.adapter||mS.adapter,e)(e).then(function(r){return LF(e),r.data=IF.call(e,e.transformResponse,r),r.headers=Iu.from(r.headers),r},function(r){return t3e(r)||(LF(e),r&&r.response&&(r.response.data=IF.call(e,e.transformResponse,r.response),r.response.headers=Iu.from(r.response.headers))),Promise.reject(r)})}const l3e="1.12.0",UA={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{UA[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const qae={};UA.transitional=function(t,n,r){function o(a,s){return"[Axios v"+l3e+"] Transitional option '"+a+"'"+s+(r?". "+r:"")}return(a,s,l)=>{if(t===!1)throw new ti(o(s," has been removed"+(n?" in "+n:"")),ti.ERR_DEPRECATED);return n&&!qae[s]&&(qae[s]=!0,console.warn(o(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,s,l):!0}};UA.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function Wbt(e,t,n){if(typeof e!="object")throw new ti("options must be an object",ti.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const a=r[o],s=t[a];if(s){const l=e[a],c=l===void 0||s(l,a,e);if(c!==!0)throw new ti("option "+a+" must be "+c,ti.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ti("Unknown option "+a,ti.ERR_BAD_OPTION)}}const hE={assertOptions:Wbt,validators:UA},Jd=hE.validators;let _m=class{constructor(t){this.defaults=t||{},this.interceptors={request:new $ae,response:new $ae}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const a=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?a&&!String(r.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(r.stack+=` `+a):r.stack=a}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Fm(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:a}=n;r!==void 0&&hE.assertOptions(r,{silentJSONParsing:Jd.transitional(Jd.boolean),forcedJSONParsing:Jd.transitional(Jd.boolean),clarifyTimeoutError:Jd.transitional(Jd.boolean)},!1),o!=null&&(en.isFunction(o)?n.paramsSerializer={serialize:o}:hE.assertOptions(o,{encode:Jd.function,serialize:Jd.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),hE.assertOptions(n,{baseUrl:Jd.spelling("baseURL"),withXsrfToken:Jd.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=a&&en.merge(a.common,a[n.method]);a&&en.forEach(["delete","get","head","post","put","patch","common"],y=>{delete a[y]}),n.headers=Iu.concat(s,a);const l=[];let c=!0;this.interceptors.request.forEach(function(S){typeof S.runWhen=="function"&&S.runWhen(n)===!1||(c=c&&S.synchronous,l.unshift(S.fulfilled,S.rejected))});const d=[];this.interceptors.response.forEach(function(S){d.push(S.fulfilled,S.rejected)});let h,p=0,v;if(!c){const y=[Kae.bind(this),void 0];for(y.unshift(...l),y.push(...d),v=y.length,h=Promise.resolve(n);p{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](o);r._listeners=null}),this.promise.then=o=>{let a;const s=new Promise(l=>{r.subscribe(l),a=l}).then(o);return s.cancel=function(){r.unsubscribe(a)},s},t(function(a,s,l){r.reason||(r.reason=new y3(a,s,l),n(r.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)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new u3e(function(o){t=o}),cancel:t}}};function Kbt(e){return function(n){return e.apply(null,n)}}function qbt(e){return en.isObject(e)&&e.isAxiosError===!0}const Rz={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(Rz).forEach(([e,t])=>{Rz[t]=e});function c3e(e){const t=new _m(e),n=jye(_m.prototype.request,t);return en.extend(n,_m.prototype,t,{allOwnKeys:!0}),en.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return c3e(Fm(e,o))},n}const co=c3e(mS);co.Axios=_m;co.CanceledError=y3;co.CancelToken=Gbt;co.isCancel=t3e;co.VERSION=l3e;co.toFormData=zA;co.AxiosError=ti;co.Cancel=co.CanceledError;co.all=function(t){return Promise.all(t)};co.spread=Kbt;co.isAxiosError=qbt;co.mergeConfig=Fm;co.AxiosHeaders=Iu;co.formToJSON=e=>e3e(en.isHTMLForm(e)?new FormData(e):e);co.getAdapter=a3e.getAdapter;co.HttpStatusCode=Rz;co.default=co;const{Axios:Ybt,AxiosError:Xbt,CanceledError:Zbt,isCancel:Jbt,CancelToken:Qbt,VERSION:e_t,all:t_t,Cancel:n_t,isAxiosError:r_t,spread:i_t,toFormData:o_t,AxiosHeaders:s_t,HttpStatusCode:a_t,formToJSON:l_t,getAdapter:u_t,mergeConfig:c_t}=co,d3e=Object.freeze(Object.defineProperty({__proto__:null,Axios:Ybt,AxiosError:Xbt,AxiosHeaders:s_t,Cancel:n_t,CancelToken:Qbt,CanceledError:Zbt,HttpStatusCode:a_t,VERSION:e_t,all:t_t,default:co,formToJSON:l_t,getAdapter:u_t,isAxiosError:r_t,isCancel:Jbt,mergeConfig:c_t,spread:i_t,toFormData:o_t},Symbol.toStringTag,{value:"Module"})),d_t=()=>{try{return(JSON.parse(localStorage.getItem("addressSettings")||"{}").apiTimeout||30)*1e3}catch(e){return console.warn("Failed to get API timeout from settings, using default:",e),3e4}},f3e=()=>{try{const t=JSON.parse(localStorage.getItem("addressSettings")||"{}").apiTimeout||30;return Math.max(t*3,100)*1e3}catch(e){return console.warn("Failed to get Action timeout from settings, using default:",e),1e5}},y0={BASE_URL:"http://localhost:5707",get TIMEOUT(){return d_t()},HEADERS:{"Content-Type":"application/json",Accept:"application/json"}},dG={MODULE:"/api",PROXY:"/proxy",PARSE:"/parse"},HA={PLAY:"play",CATEGORY:"category",DETAIL:"detail",ACTION:"action"},f_t={SUCCESS:200},h3e={DEFAULT_PAGE:1},fG=co.create({baseURL:y0.BASE_URL,timeout:y0.TIMEOUT,headers:y0.HEADERS});fG.interceptors.request.use(e=>{const t=localStorage.getItem("token");return t&&(e.headers.Authorization=`Bearer ${t}`),e.method==="get"&&(e.params={...e.params,_t:Date.now()}),console.log("API Request:",e.method?.toUpperCase(),e.url,e.params||e.data),e},e=>(console.error("Request Error:",e),Promise.reject(e)));fG.interceptors.response.use(e=>{const{data:t,status:n}=e;if(console.log("API Response:",e.config.url,t),n!==200)throw new Error(`HTTP Error: ${n}`);if(t.code&&t.code!==f_t.SUCCESS)throw new Error(t.msg||`Business Error: ${t.code}`);return t},e=>{if(console.error("Response Error:",e),!e.response)throw new Error("网络连接失败,请检查网络设置");const{status:t}=e.response;switch(t){case 404:throw new Error("请求的资源不存在");case 500:throw new Error("服务器内部错误");case 401:throw new Error("未授权访问");case 403:throw new Error("访问被禁止");default:throw new Error(`请求失败: ${t}`)}});const WA=async(e,t={})=>{try{return await fG({url:e,...t})}catch(n){throw console.error("API Request Failed:",n.message),n}},z0=(e,t={})=>WA(e,{method:"GET",params:t}),p3e=(e,t={})=>WA(e,{method:"POST",data:t}),h_t=(e,t={})=>WA(e,{method:"PUT",data:t}),p_t=(e,t={})=>WA(e,{method:"DELETE",params:t}),ua=e=>{if(e){if(typeof e=="object"&&e!==null)try{return JSON.stringify(e)}catch(t){console.warn("extend参数JSON序列化失败:",t);return}return e}},hC=e=>{if(!e)return console.log("🔍 [Headers解析] 输入为空,返回空对象"),{};if(console.log("🔍 [Headers解析] 输入数据:",e,"类型:",typeof e),typeof e=="object"&&e!==null)return console.log("🔍 [Headers解析] 已是对象,直接返回:",e),e;if(typeof e=="string")try{const t=JSON.parse(e),n=typeof t=="object"&&t!==null?t:{};return console.log("🔍 [Headers解析] JSON字符串解析成功:",n),n}catch(t){return console.warn("🔍 [Headers解析] JSON字符串解析失败:",t,"原始数据:",e),{}}return console.log("🔍 [Headers解析] 未知类型,返回空对象"),{}},D0=e=>{const t=encodeURIComponent(e);return`${dG.MODULE}/${t}`},b3=async(e,t={})=>{try{return(await co.get(e,{params:t,timeout:y0.TIMEOUT,headers:{Accept:"application/json"}})).data}catch(n){throw console.error("直接API调用失败:",n),n}},v_t=async(e,t={})=>{const{filter:n=1,extend:r,apiUrl:o}=t,a={filter:n},s=ua(r);return s&&(a.extend=s),o?b3(o,a):z0(D0(e),a)},q1=async(e,t)=>{const{t:n,pg:r=h3e.DEFAULT_PAGE,ext:o,extend:a,apiUrl:s}=t,l={ac:HA.CATEGORY,t:n,pg:r};o&&(l.ext=o);const c=ua(a);return c&&(l.extend=c),s?b3(s,l):z0(D0(e),l)},m_t=async(e,t)=>{const{ids:n,extend:r,apiUrl:o}=t,a={ac:HA.DETAIL,ids:n},s=ua(r);return s&&(a.extend=s),o?b3(o,a):z0(D0(e),a)},v3e=async(e,t)=>{const{play:n,flag:r,extend:o,apiUrl:a}=t,s={ac:HA.PLAY,play:n};r&&(s.flag=r);const l=ua(o);return l&&(s.extend=l),a?b3(a,s):z0(D0(e),s)},g_t=async(e,t)=>{try{console.log("T4播放解析请求:",{module:e,params:t});const n=await v3e(e,t);console.log("T4播放解析响应:",n);const r=n?.headers||n?.header;r&&console.log("T4接口返回的原始headers:",r,"类型:",typeof r);const o={success:!0,data:n,playType:"direct",url:"",headers:{},needParse:!1,needSniff:!1,message:""};if(n&&typeof n=="object")if(n.jx===1)o.playType="parse",o.url=n.url||n.play_url||"",o.headers=hC(n.headers||n.header),o.needParse=!0,o.qualities=[],o.hasMultipleQualities=!1,o.message="需要解析才能播放,尽情期待";else if(n.parse===0){o.playType="direct";const a=n.url||n.play_url||"";if(Array.isArray(a)){console.log("检测到多画质URL数组:",a);const s=[];for(let l=0;l1,s.length>0?(o.url=s[0].url,o.currentQuality=s[0].name,o.message=`多画质播放 (当前: ${s[0].name})`):(o.url="",o.message="多画质数据解析失败")}else o.url=a,o.qualities=[],o.hasMultipleQualities=!1,o.currentQuality="默认",o.message="直链播放";o.headers=hC(n.headers||n.header),o.needParse=!1,o.needSniff=!1}else n.parse===1?(o.playType="sniff",o.url=n.url||n.play_url||"",o.headers=hC(n.headers||n.header),o.needSniff=!0,o.qualities=[],o.hasMultipleQualities=!1,o.message="需要嗅探才能播放,尽情期待"):(o.url=n.url||n.play_url||n,o.headers=hC(n.headers||n.header),o.qualities=[],o.hasMultipleQualities=!1,o.message="直链播放");else typeof n=="string"&&(o.url=n,o.headers={},o.qualities=[],o.hasMultipleQualities=!1,o.message="直链播放");return o}catch(n){return console.error("T4播放解析失败:",n),{success:!1,error:n.message||"播放解析失败",playType:"error",url:"",headers:{},needParse:!1,needSniff:!1,message:"播放解析失败: "+(n.message||"未知错误")}}},y_t=async(e,t)=>{const{wd:n,pg:r=h3e.DEFAULT_PAGE,extend:o,apiUrl:a}=t,s={wd:n,pg:r},l=ua(o);return l&&(s.extend=l),a?b3(a,s):z0(D0(e),s)},GA=async(e,t)=>{const{action:n,extend:r,apiUrl:o,...a}=t,s={ac:HA.ACTION,action:n,...a},l=ua(r);if(l&&(s.extend=l),console.log("executeAction调用参数:",{module:e,data:t,requestData:s,apiUrl:o}),o)if(console.log("直接调用API:",o,s),o.endsWith(".json")){const d=await co.get(o,{timeout:y0.TIMEOUT,headers:{Accept:"application/json"}});return console.log("API响应 (GET):",d.data),d.data}else{const d=await co.post(o,s,{timeout:y0.TIMEOUT,headers:{Accept:"application/json","Content-Type":"application/json;charset=UTF-8"}});return console.log("API响应 (POST):",d.data),d.data}console.log("使用代理方式调用:",D0(e),s);const c=await p3e(D0(e),s);return console.log("代理响应:",c),c},b_t=async(e,t,n)=>{const r={refresh:"1"},o=ua(t);return o&&(r.extend=o),n?b3(n,r):z0(D0(e),r)},__t=e=>`${dG.PARSE}/${e}`,S_t=async(e,t)=>{const{url:n,flag:r,headers:o,...a}=t;if(!n)throw new Error("视频URL不能为空");const s={url:n,...a};r&&(s.flag=r);const l={};return o&&(l.headers={...l.headers,...o}),z0(__t(e),s)};var pE={exports:{}};function k_t(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var vE={exports:{}};const x_t={},C_t=Object.freeze(Object.defineProperty({__proto__:null,default:x_t},Symbol.toStringTag,{value:"Module"})),w_t=X_(C_t);var E_t=vE.exports,Yae;function Ni(){return Yae||(Yae=1,(function(e,t){(function(n,r){e.exports=r()})(E_t,function(){var n=n||(function(r,o){var a;if(typeof window<"u"&&window.crypto&&(a=window.crypto),typeof self<"u"&&self.crypto&&(a=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(a=globalThis.crypto),!a&&typeof window<"u"&&window.msCrypto&&(a=window.msCrypto),!a&&typeof sw<"u"&&sw.crypto&&(a=sw.crypto),!a&&typeof k_t=="function")try{a=w_t}catch{}var s=function(){if(a){if(typeof a.getRandomValues=="function")try{return a.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof a.randomBytes=="function")try{return a.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},l=Object.create||(function(){function x(){}return function(E){var _;return x.prototype=E,_=new x,x.prototype=null,_}})(),c={},d=c.lib={},h=d.Base=(function(){return{extend:function(x){var E=l(this);return x&&E.mixIn(x),(!E.hasOwnProperty("init")||this.init===E.init)&&(E.init=function(){E.$super.init.apply(this,arguments)}),E.init.prototype=E,E.$super=this,E},create:function(){var x=this.extend();return x.init.apply(x,arguments),x},init:function(){},mixIn:function(x){for(var E in x)x.hasOwnProperty(E)&&(this[E]=x[E]);x.hasOwnProperty("toString")&&(this.toString=x.toString)},clone:function(){return this.init.prototype.extend(this)}}})(),p=d.WordArray=h.extend({init:function(x,E){x=this.words=x||[],E!=o?this.sigBytes=E:this.sigBytes=x.length*4},toString:function(x){return(x||g).stringify(this)},concat:function(x){var E=this.words,_=x.words,T=this.sigBytes,D=x.sigBytes;if(this.clamp(),T%4)for(var P=0;P>>2]>>>24-P%4*8&255;E[T+P>>>2]|=M<<24-(T+P)%4*8}else for(var $=0;$>>2]=_[$>>>2];return this.sigBytes+=D,this},clamp:function(){var x=this.words,E=this.sigBytes;x[E>>>2]&=4294967295<<32-E%4*8,x.length=r.ceil(E/4)},clone:function(){var x=h.clone.call(this);return x.words=this.words.slice(0),x},random:function(x){for(var E=[],_=0;_>>2]>>>24-D%4*8&255;T.push((P>>>4).toString(16)),T.push((P&15).toString(16))}return T.join("")},parse:function(x){for(var E=x.length,_=[],T=0;T>>3]|=parseInt(x.substr(T,2),16)<<24-T%8*4;return new p.init(_,E/2)}},y=v.Latin1={stringify:function(x){for(var E=x.words,_=x.sigBytes,T=[],D=0;D<_;D++){var P=E[D>>>2]>>>24-D%4*8&255;T.push(String.fromCharCode(P))}return T.join("")},parse:function(x){for(var E=x.length,_=[],T=0;T>>2]|=(x.charCodeAt(T)&255)<<24-T%4*8;return new p.init(_,E)}},S=v.Utf8={stringify:function(x){try{return decodeURIComponent(escape(y.stringify(x)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(x){return y.parse(unescape(encodeURIComponent(x)))}},k=d.BufferedBlockAlgorithm=h.extend({reset:function(){this._data=new p.init,this._nDataBytes=0},_append:function(x){typeof x=="string"&&(x=S.parse(x)),this._data.concat(x),this._nDataBytes+=x.sigBytes},_process:function(x){var E,_=this._data,T=_.words,D=_.sigBytes,P=this.blockSize,M=P*4,$=D/M;x?$=r.ceil($):$=r.max(($|0)-this._minBufferSize,0);var L=$*P,B=r.min(L*4,D);if(L){for(var F=0;F>>2]|=c[p]<<24-p%4*8;s.call(this,h,d)}else s.apply(this,arguments)};l.prototype=a}})(),n.lib.WordArray})})(gE)),gE.exports}var yE={exports:{}},L_t=yE.exports,Jae;function D_t(){return Jae||(Jae=1,(function(e,t){(function(n,r){e.exports=r(Ni())})(L_t,function(n){return(function(){var r=n,o=r.lib,a=o.WordArray,s=r.enc;s.Utf16=s.Utf16BE={stringify:function(c){for(var d=c.words,h=c.sigBytes,p=[],v=0;v>>2]>>>16-v%4*8&65535;p.push(String.fromCharCode(g))}return p.join("")},parse:function(c){for(var d=c.length,h=[],p=0;p>>1]|=c.charCodeAt(p)<<16-p%2*16;return a.create(h,d*2)}},s.Utf16LE={stringify:function(c){for(var d=c.words,h=c.sigBytes,p=[],v=0;v>>2]>>>16-v%4*8&65535);p.push(String.fromCharCode(g))}return p.join("")},parse:function(c){for(var d=c.length,h=[],p=0;p>>1]|=l(c.charCodeAt(p)<<16-p%2*16);return a.create(h,d*2)}};function l(c){return c<<8&4278255360|c>>>8&16711935}})(),n.enc.Utf16})})(yE)),yE.exports}var bE={exports:{}},P_t=bE.exports,Qae;function rg(){return Qae||(Qae=1,(function(e,t){(function(n,r){e.exports=r(Ni())})(P_t,function(n){return(function(){var r=n,o=r.lib,a=o.WordArray,s=r.enc;s.Base64={stringify:function(c){var d=c.words,h=c.sigBytes,p=this._map;c.clamp();for(var v=[],g=0;g>>2]>>>24-g%4*8&255,S=d[g+1>>>2]>>>24-(g+1)%4*8&255,k=d[g+2>>>2]>>>24-(g+2)%4*8&255,C=y<<16|S<<8|k,x=0;x<4&&g+x*.75>>6*(3-x)&63));var E=p.charAt(64);if(E)for(;v.length%4;)v.push(E);return v.join("")},parse:function(c){var d=c.length,h=this._map,p=this._reverseMap;if(!p){p=this._reverseMap=[];for(var v=0;v>>6-g%4*2,k=y|S;p[v>>>2]|=k<<24-v%4*8,v++}return a.create(p,v)}})(),n.enc.Base64})})(bE)),bE.exports}var _E={exports:{}},R_t=_E.exports,ele;function M_t(){return ele||(ele=1,(function(e,t){(function(n,r){e.exports=r(Ni())})(R_t,function(n){return(function(){var r=n,o=r.lib,a=o.WordArray,s=r.enc;s.Base64url={stringify:function(c,d){d===void 0&&(d=!0);var h=c.words,p=c.sigBytes,v=d?this._safe_map:this._map;c.clamp();for(var g=[],y=0;y>>2]>>>24-y%4*8&255,k=h[y+1>>>2]>>>24-(y+1)%4*8&255,C=h[y+2>>>2]>>>24-(y+2)%4*8&255,x=S<<16|k<<8|C,E=0;E<4&&y+E*.75>>6*(3-E)&63));var _=v.charAt(64);if(_)for(;g.length%4;)g.push(_);return g.join("")},parse:function(c,d){d===void 0&&(d=!0);var h=c.length,p=d?this._safe_map:this._map,v=this._reverseMap;if(!v){v=this._reverseMap=[];for(var g=0;g>>6-g%4*2,k=y|S;p[v>>>2]|=k<<24-v%4*8,v++}return a.create(p,v)}})(),n.enc.Base64url})})(_E)),_E.exports}var SE={exports:{}},O_t=SE.exports,tle;function ig(){return tle||(tle=1,(function(e,t){(function(n,r){e.exports=r(Ni())})(O_t,function(n){return(function(r){var o=n,a=o.lib,s=a.WordArray,l=a.Hasher,c=o.algo,d=[];(function(){for(var S=0;S<64;S++)d[S]=r.abs(r.sin(S+1))*4294967296|0})();var h=c.MD5=l.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(S,k){for(var C=0;C<16;C++){var x=k+C,E=S[x];S[x]=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360}var _=this._hash.words,T=S[k+0],D=S[k+1],P=S[k+2],M=S[k+3],$=S[k+4],L=S[k+5],B=S[k+6],F=S[k+7],W=S[k+8],U=S[k+9],G=S[k+10],X=S[k+11],oe=S[k+12],Z=S[k+13],H=S[k+14],q=S[k+15],ee=_[0],ne=_[1],ae=_[2],re=_[3];ee=p(ee,ne,ae,re,T,7,d[0]),re=p(re,ee,ne,ae,D,12,d[1]),ae=p(ae,re,ee,ne,P,17,d[2]),ne=p(ne,ae,re,ee,M,22,d[3]),ee=p(ee,ne,ae,re,$,7,d[4]),re=p(re,ee,ne,ae,L,12,d[5]),ae=p(ae,re,ee,ne,B,17,d[6]),ne=p(ne,ae,re,ee,F,22,d[7]),ee=p(ee,ne,ae,re,W,7,d[8]),re=p(re,ee,ne,ae,U,12,d[9]),ae=p(ae,re,ee,ne,G,17,d[10]),ne=p(ne,ae,re,ee,X,22,d[11]),ee=p(ee,ne,ae,re,oe,7,d[12]),re=p(re,ee,ne,ae,Z,12,d[13]),ae=p(ae,re,ee,ne,H,17,d[14]),ne=p(ne,ae,re,ee,q,22,d[15]),ee=v(ee,ne,ae,re,D,5,d[16]),re=v(re,ee,ne,ae,B,9,d[17]),ae=v(ae,re,ee,ne,X,14,d[18]),ne=v(ne,ae,re,ee,T,20,d[19]),ee=v(ee,ne,ae,re,L,5,d[20]),re=v(re,ee,ne,ae,G,9,d[21]),ae=v(ae,re,ee,ne,q,14,d[22]),ne=v(ne,ae,re,ee,$,20,d[23]),ee=v(ee,ne,ae,re,U,5,d[24]),re=v(re,ee,ne,ae,H,9,d[25]),ae=v(ae,re,ee,ne,M,14,d[26]),ne=v(ne,ae,re,ee,W,20,d[27]),ee=v(ee,ne,ae,re,Z,5,d[28]),re=v(re,ee,ne,ae,P,9,d[29]),ae=v(ae,re,ee,ne,F,14,d[30]),ne=v(ne,ae,re,ee,oe,20,d[31]),ee=g(ee,ne,ae,re,L,4,d[32]),re=g(re,ee,ne,ae,W,11,d[33]),ae=g(ae,re,ee,ne,X,16,d[34]),ne=g(ne,ae,re,ee,H,23,d[35]),ee=g(ee,ne,ae,re,D,4,d[36]),re=g(re,ee,ne,ae,$,11,d[37]),ae=g(ae,re,ee,ne,F,16,d[38]),ne=g(ne,ae,re,ee,G,23,d[39]),ee=g(ee,ne,ae,re,Z,4,d[40]),re=g(re,ee,ne,ae,T,11,d[41]),ae=g(ae,re,ee,ne,M,16,d[42]),ne=g(ne,ae,re,ee,B,23,d[43]),ee=g(ee,ne,ae,re,U,4,d[44]),re=g(re,ee,ne,ae,oe,11,d[45]),ae=g(ae,re,ee,ne,q,16,d[46]),ne=g(ne,ae,re,ee,P,23,d[47]),ee=y(ee,ne,ae,re,T,6,d[48]),re=y(re,ee,ne,ae,F,10,d[49]),ae=y(ae,re,ee,ne,H,15,d[50]),ne=y(ne,ae,re,ee,L,21,d[51]),ee=y(ee,ne,ae,re,oe,6,d[52]),re=y(re,ee,ne,ae,M,10,d[53]),ae=y(ae,re,ee,ne,G,15,d[54]),ne=y(ne,ae,re,ee,D,21,d[55]),ee=y(ee,ne,ae,re,W,6,d[56]),re=y(re,ee,ne,ae,q,10,d[57]),ae=y(ae,re,ee,ne,B,15,d[58]),ne=y(ne,ae,re,ee,Z,21,d[59]),ee=y(ee,ne,ae,re,$,6,d[60]),re=y(re,ee,ne,ae,X,10,d[61]),ae=y(ae,re,ee,ne,P,15,d[62]),ne=y(ne,ae,re,ee,U,21,d[63]),_[0]=_[0]+ee|0,_[1]=_[1]+ne|0,_[2]=_[2]+ae|0,_[3]=_[3]+re|0},_doFinalize:function(){var S=this._data,k=S.words,C=this._nDataBytes*8,x=S.sigBytes*8;k[x>>>5]|=128<<24-x%32;var E=r.floor(C/4294967296),_=C;k[(x+64>>>9<<4)+15]=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360,k[(x+64>>>9<<4)+14]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360,S.sigBytes=(k.length+1)*4,this._process();for(var T=this._hash,D=T.words,P=0;P<4;P++){var M=D[P];D[P]=(M<<8|M>>>24)&16711935|(M<<24|M>>>8)&4278255360}return T},clone:function(){var S=l.clone.call(this);return S._hash=this._hash.clone(),S}});function p(S,k,C,x,E,_,T){var D=S+(k&C|~k&x)+E+T;return(D<<_|D>>>32-_)+k}function v(S,k,C,x,E,_,T){var D=S+(k&x|C&~x)+E+T;return(D<<_|D>>>32-_)+k}function g(S,k,C,x,E,_,T){var D=S+(k^C^x)+E+T;return(D<<_|D>>>32-_)+k}function y(S,k,C,x,E,_,T){var D=S+(C^(k|~x))+E+T;return(D<<_|D>>>32-_)+k}o.MD5=l._createHelper(h),o.HmacMD5=l._createHmacHelper(h)})(Math),n.MD5})})(SE)),SE.exports}var kE={exports:{}},$_t=kE.exports,nle;function m3e(){return nle||(nle=1,(function(e,t){(function(n,r){e.exports=r(Ni())})($_t,function(n){return(function(){var r=n,o=r.lib,a=o.WordArray,s=o.Hasher,l=r.algo,c=[],d=l.SHA1=s.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(h,p){for(var v=this._hash.words,g=v[0],y=v[1],S=v[2],k=v[3],C=v[4],x=0;x<80;x++){if(x<16)c[x]=h[p+x]|0;else{var E=c[x-3]^c[x-8]^c[x-14]^c[x-16];c[x]=E<<1|E>>>31}var _=(g<<5|g>>>27)+C+c[x];x<20?_+=(y&S|~y&k)+1518500249:x<40?_+=(y^S^k)+1859775393:x<60?_+=(y&S|y&k|S&k)-1894007588:_+=(y^S^k)-899497514,C=k,k=S,S=y<<30|y>>>2,y=g,g=_}v[0]=v[0]+g|0,v[1]=v[1]+y|0,v[2]=v[2]+S|0,v[3]=v[3]+k|0,v[4]=v[4]+C|0},_doFinalize:function(){var h=this._data,p=h.words,v=this._nDataBytes*8,g=h.sigBytes*8;return p[g>>>5]|=128<<24-g%32,p[(g+64>>>9<<4)+14]=Math.floor(v/4294967296),p[(g+64>>>9<<4)+15]=v,h.sigBytes=p.length*4,this._process(),this._hash},clone:function(){var h=s.clone.call(this);return h._hash=this._hash.clone(),h}});r.SHA1=s._createHelper(d),r.HmacSHA1=s._createHmacHelper(d)})(),n.SHA1})})(kE)),kE.exports}var xE={exports:{}},B_t=xE.exports,rle;function hG(){return rle||(rle=1,(function(e,t){(function(n,r){e.exports=r(Ni())})(B_t,function(n){return(function(r){var o=n,a=o.lib,s=a.WordArray,l=a.Hasher,c=o.algo,d=[],h=[];(function(){function g(C){for(var x=r.sqrt(C),E=2;E<=x;E++)if(!(C%E))return!1;return!0}function y(C){return(C-(C|0))*4294967296|0}for(var S=2,k=0;k<64;)g(S)&&(k<8&&(d[k]=y(r.pow(S,1/2))),h[k]=y(r.pow(S,1/3)),k++),S++})();var p=[],v=c.SHA256=l.extend({_doReset:function(){this._hash=new s.init(d.slice(0))},_doProcessBlock:function(g,y){for(var S=this._hash.words,k=S[0],C=S[1],x=S[2],E=S[3],_=S[4],T=S[5],D=S[6],P=S[7],M=0;M<64;M++){if(M<16)p[M]=g[y+M]|0;else{var $=p[M-15],L=($<<25|$>>>7)^($<<14|$>>>18)^$>>>3,B=p[M-2],F=(B<<15|B>>>17)^(B<<13|B>>>19)^B>>>10;p[M]=L+p[M-7]+F+p[M-16]}var W=_&T^~_&D,U=k&C^k&x^C&x,G=(k<<30|k>>>2)^(k<<19|k>>>13)^(k<<10|k>>>22),X=(_<<26|_>>>6)^(_<<21|_>>>11)^(_<<7|_>>>25),oe=P+X+W+h[M]+p[M],Z=G+U;P=D,D=T,T=_,_=E+oe|0,E=x,x=C,C=k,k=oe+Z|0}S[0]=S[0]+k|0,S[1]=S[1]+C|0,S[2]=S[2]+x|0,S[3]=S[3]+E|0,S[4]=S[4]+_|0,S[5]=S[5]+T|0,S[6]=S[6]+D|0,S[7]=S[7]+P|0},_doFinalize:function(){var g=this._data,y=g.words,S=this._nDataBytes*8,k=g.sigBytes*8;return y[k>>>5]|=128<<24-k%32,y[(k+64>>>9<<4)+14]=r.floor(S/4294967296),y[(k+64>>>9<<4)+15]=S,g.sigBytes=y.length*4,this._process(),this._hash},clone:function(){var g=l.clone.call(this);return g._hash=this._hash.clone(),g}});o.SHA256=l._createHelper(v),o.HmacSHA256=l._createHmacHelper(v)})(Math),n.SHA256})})(xE)),xE.exports}var CE={exports:{}},N_t=CE.exports,ile;function F_t(){return ile||(ile=1,(function(e,t){(function(n,r,o){e.exports=r(Ni(),hG())})(N_t,function(n){return(function(){var r=n,o=r.lib,a=o.WordArray,s=r.algo,l=s.SHA256,c=s.SHA224=l.extend({_doReset:function(){this._hash=new a.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var d=l._doFinalize.call(this);return d.sigBytes-=4,d}});r.SHA224=l._createHelper(c),r.HmacSHA224=l._createHmacHelper(c)})(),n.SHA224})})(CE)),CE.exports}var wE={exports:{}},j_t=wE.exports,ole;function g3e(){return ole||(ole=1,(function(e,t){(function(n,r,o){e.exports=r(Ni(),KA())})(j_t,function(n){return(function(){var r=n,o=r.lib,a=o.Hasher,s=r.x64,l=s.Word,c=s.WordArray,d=r.algo;function h(){return l.create.apply(l,arguments)}var p=[h(1116352408,3609767458),h(1899447441,602891725),h(3049323471,3964484399),h(3921009573,2173295548),h(961987163,4081628472),h(1508970993,3053834265),h(2453635748,2937671579),h(2870763221,3664609560),h(3624381080,2734883394),h(310598401,1164996542),h(607225278,1323610764),h(1426881987,3590304994),h(1925078388,4068182383),h(2162078206,991336113),h(2614888103,633803317),h(3248222580,3479774868),h(3835390401,2666613458),h(4022224774,944711139),h(264347078,2341262773),h(604807628,2007800933),h(770255983,1495990901),h(1249150122,1856431235),h(1555081692,3175218132),h(1996064986,2198950837),h(2554220882,3999719339),h(2821834349,766784016),h(2952996808,2566594879),h(3210313671,3203337956),h(3336571891,1034457026),h(3584528711,2466948901),h(113926993,3758326383),h(338241895,168717936),h(666307205,1188179964),h(773529912,1546045734),h(1294757372,1522805485),h(1396182291,2643833823),h(1695183700,2343527390),h(1986661051,1014477480),h(2177026350,1206759142),h(2456956037,344077627),h(2730485921,1290863460),h(2820302411,3158454273),h(3259730800,3505952657),h(3345764771,106217008),h(3516065817,3606008344),h(3600352804,1432725776),h(4094571909,1467031594),h(275423344,851169720),h(430227734,3100823752),h(506948616,1363258195),h(659060556,3750685593),h(883997877,3785050280),h(958139571,3318307427),h(1322822218,3812723403),h(1537002063,2003034995),h(1747873779,3602036899),h(1955562222,1575990012),h(2024104815,1125592928),h(2227730452,2716904306),h(2361852424,442776044),h(2428436474,593698344),h(2756734187,3733110249),h(3204031479,2999351573),h(3329325298,3815920427),h(3391569614,3928383900),h(3515267271,566280711),h(3940187606,3454069534),h(4118630271,4000239992),h(116418474,1914138554),h(174292421,2731055270),h(289380356,3203993006),h(460393269,320620315),h(685471733,587496836),h(852142971,1086792851),h(1017036298,365543100),h(1126000580,2618297676),h(1288033470,3409855158),h(1501505948,4234509866),h(1607167915,987167468),h(1816402316,1246189591)],v=[];(function(){for(var y=0;y<80;y++)v[y]=h()})();var g=d.SHA512=a.extend({_doReset:function(){this._hash=new c.init([new l.init(1779033703,4089235720),new l.init(3144134277,2227873595),new l.init(1013904242,4271175723),new l.init(2773480762,1595750129),new l.init(1359893119,2917565137),new l.init(2600822924,725511199),new l.init(528734635,4215389547),new l.init(1541459225,327033209)])},_doProcessBlock:function(y,S){for(var k=this._hash.words,C=k[0],x=k[1],E=k[2],_=k[3],T=k[4],D=k[5],P=k[6],M=k[7],$=C.high,L=C.low,B=x.high,F=x.low,W=E.high,U=E.low,G=_.high,X=_.low,oe=T.high,Z=T.low,H=D.high,q=D.low,ee=P.high,ne=P.low,ae=M.high,re=M.low,ke=$,Ne=L,me=B,_e=F,Ue=W,Qe=U,Me=G,je=X,ge=oe,be=Z,Fe=H,He=q,Je=ee,rt=ne,ht=ae,ut=re,Ct=0;Ct<80;Ct++){var St,Gt,Tt=v[Ct];if(Ct<16)Gt=Tt.high=y[S+Ct*2]|0,St=Tt.low=y[S+Ct*2+1]|0;else{var Mt=v[Ct-15],sn=Mt.high,ct=Mt.low,Be=(sn>>>1|ct<<31)^(sn>>>8|ct<<24)^sn>>>7,Ae=(ct>>>1|sn<<31)^(ct>>>8|sn<<24)^(ct>>>7|sn<<25),Re=v[Ct-2],Xe=Re.high,dt=Re.low,Dt=(Xe>>>19|dt<<13)^(Xe<<3|dt>>>29)^Xe>>>6,pt=(dt>>>19|Xe<<13)^(dt<<3|Xe>>>29)^(dt>>>6|Xe<<26),Oe=v[Ct-7],xt=Oe.high,Zt=Oe.low,tn=v[Ct-16],Ft=tn.high,rn=tn.low;St=Ae+Zt,Gt=Be+xt+(St>>>0>>0?1:0),St=St+pt,Gt=Gt+Dt+(St>>>0>>0?1:0),St=St+rn,Gt=Gt+Ft+(St>>>0>>0?1:0),Tt.high=Gt,Tt.low=St}var Jn=ge&Fe^~ge&Je,mr=be&He^~be&rt,yi=ke&me^ke&Ue^me&Ue,Kt=Ne&_e^Ne&Qe^_e&Qe,st=(ke>>>28|Ne<<4)^(ke<<30|Ne>>>2)^(ke<<25|Ne>>>7),zt=(Ne>>>28|ke<<4)^(Ne<<30|ke>>>2)^(Ne<<25|ke>>>7),fn=(ge>>>14|be<<18)^(ge>>>18|be<<14)^(ge<<23|be>>>9),on=(be>>>14|ge<<18)^(be>>>18|ge<<14)^(be<<23|ge>>>9),pn=p[Ct],Qn=pn.high,Kr=pn.low,wt=ut+on,Wt=ht+fn+(wt>>>0>>0?1:0),wt=wt+mr,Wt=Wt+Jn+(wt>>>0>>0?1:0),wt=wt+Kr,Wt=Wt+Qn+(wt>>>0>>0?1:0),wt=wt+St,Wt=Wt+Gt+(wt>>>0>>0?1:0),hn=zt+Kt,mn=st+yi+(hn>>>0>>0?1:0);ht=Je,ut=rt,Je=Fe,rt=He,Fe=ge,He=be,be=je+wt|0,ge=Me+Wt+(be>>>0>>0?1:0)|0,Me=Ue,je=Qe,Ue=me,Qe=_e,me=ke,_e=Ne,Ne=wt+hn|0,ke=Wt+mn+(Ne>>>0>>0?1:0)|0}L=C.low=L+Ne,C.high=$+ke+(L>>>0>>0?1:0),F=x.low=F+_e,x.high=B+me+(F>>>0<_e>>>0?1:0),U=E.low=U+Qe,E.high=W+Ue+(U>>>0>>0?1:0),X=_.low=X+je,_.high=G+Me+(X>>>0>>0?1:0),Z=T.low=Z+be,T.high=oe+ge+(Z>>>0>>0?1:0),q=D.low=q+He,D.high=H+Fe+(q>>>0>>0?1:0),ne=P.low=ne+rt,P.high=ee+Je+(ne>>>0>>0?1:0),re=M.low=re+ut,M.high=ae+ht+(re>>>0>>0?1:0)},_doFinalize:function(){var y=this._data,S=y.words,k=this._nDataBytes*8,C=y.sigBytes*8;S[C>>>5]|=128<<24-C%32,S[(C+128>>>10<<5)+30]=Math.floor(k/4294967296),S[(C+128>>>10<<5)+31]=k,y.sigBytes=S.length*4,this._process();var x=this._hash.toX32();return x},clone:function(){var y=a.clone.call(this);return y._hash=this._hash.clone(),y},blockSize:1024/32});r.SHA512=a._createHelper(g),r.HmacSHA512=a._createHmacHelper(g)})(),n.SHA512})})(wE)),wE.exports}var EE={exports:{}},V_t=EE.exports,sle;function z_t(){return sle||(sle=1,(function(e,t){(function(n,r,o){e.exports=r(Ni(),KA(),g3e())})(V_t,function(n){return(function(){var r=n,o=r.x64,a=o.Word,s=o.WordArray,l=r.algo,c=l.SHA512,d=l.SHA384=c.extend({_doReset:function(){this._hash=new s.init([new a.init(3418070365,3238371032),new a.init(1654270250,914150663),new a.init(2438529370,812702999),new a.init(355462360,4144912697),new a.init(1731405415,4290775857),new a.init(2394180231,1750603025),new a.init(3675008525,1694076839),new a.init(1203062813,3204075428)])},_doFinalize:function(){var h=c._doFinalize.call(this);return h.sigBytes-=16,h}});r.SHA384=c._createHelper(d),r.HmacSHA384=c._createHmacHelper(d)})(),n.SHA384})})(EE)),EE.exports}var TE={exports:{}},U_t=TE.exports,ale;function H_t(){return ale||(ale=1,(function(e,t){(function(n,r,o){e.exports=r(Ni(),KA())})(U_t,function(n){return(function(r){var o=n,a=o.lib,s=a.WordArray,l=a.Hasher,c=o.x64,d=c.Word,h=o.algo,p=[],v=[],g=[];(function(){for(var k=1,C=0,x=0;x<24;x++){p[k+5*C]=(x+1)*(x+2)/2%64;var E=C%5,_=(2*k+3*C)%5;k=E,C=_}for(var k=0;k<5;k++)for(var C=0;C<5;C++)v[k+5*C]=C+(2*k+3*C)%5*5;for(var T=1,D=0;D<24;D++){for(var P=0,M=0,$=0;$<7;$++){if(T&1){var L=(1<<$)-1;L<32?M^=1<>>24)&16711935|(T<<24|T>>>8)&4278255360,D=(D<<8|D>>>24)&16711935|(D<<24|D>>>8)&4278255360;var P=x[_];P.high^=D,P.low^=T}for(var M=0;M<24;M++){for(var $=0;$<5;$++){for(var L=0,B=0,F=0;F<5;F++){var P=x[$+5*F];L^=P.high,B^=P.low}var W=y[$];W.high=L,W.low=B}for(var $=0;$<5;$++)for(var U=y[($+4)%5],G=y[($+1)%5],X=G.high,oe=G.low,L=U.high^(X<<1|oe>>>31),B=U.low^(oe<<1|X>>>31),F=0;F<5;F++){var P=x[$+5*F];P.high^=L,P.low^=B}for(var Z=1;Z<25;Z++){var L,B,P=x[Z],H=P.high,q=P.low,ee=p[Z];ee<32?(L=H<>>32-ee,B=q<>>32-ee):(L=q<>>64-ee,B=H<>>64-ee);var ne=y[v[Z]];ne.high=L,ne.low=B}var ae=y[0],re=x[0];ae.high=re.high,ae.low=re.low;for(var $=0;$<5;$++)for(var F=0;F<5;F++){var Z=$+5*F,P=x[Z],ke=y[Z],Ne=y[($+1)%5+5*F],me=y[($+2)%5+5*F];P.high=ke.high^~Ne.high&me.high,P.low=ke.low^~Ne.low&me.low}var P=x[0],_e=g[M];P.high^=_e.high,P.low^=_e.low}},_doFinalize:function(){var k=this._data,C=k.words;this._nDataBytes*8;var x=k.sigBytes*8,E=this.blockSize*32;C[x>>>5]|=1<<24-x%32,C[(r.ceil((x+1)/E)*E>>>5)-1]|=128,k.sigBytes=C.length*4,this._process();for(var _=this._state,T=this.cfg.outputLength/8,D=T/8,P=[],M=0;M>>24)&16711935|(L<<24|L>>>8)&4278255360,B=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360,P.push(B),P.push(L)}return new s.init(P,T)},clone:function(){for(var k=l.clone.call(this),C=k._state=this._state.slice(0),x=0;x<25;x++)C[x]=C[x].clone();return k}});o.SHA3=l._createHelper(S),o.HmacSHA3=l._createHmacHelper(S)})(Math),n.SHA3})})(TE)),TE.exports}var AE={exports:{}},W_t=AE.exports,lle;function G_t(){return lle||(lle=1,(function(e,t){(function(n,r){e.exports=r(Ni())})(W_t,function(n){/** @preserve (c) 2012 by Cédric Mesnil. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */return(function(r){var o=n,a=o.lib,s=a.WordArray,l=a.Hasher,c=o.algo,d=s.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),h=s.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),p=s.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),v=s.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),g=s.create([0,1518500249,1859775393,2400959708,2840853838]),y=s.create([1352829926,1548603684,1836072691,2053994217,0]),S=c.RIPEMD160=l.extend({_doReset:function(){this._hash=s.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(D,P){for(var M=0;M<16;M++){var $=P+M,L=D[$];D[$]=(L<<8|L>>>24)&16711935|(L<<24|L>>>8)&4278255360}var B=this._hash.words,F=g.words,W=y.words,U=d.words,G=h.words,X=p.words,oe=v.words,Z,H,q,ee,ne,ae,re,ke,Ne,me;ae=Z=B[0],re=H=B[1],ke=q=B[2],Ne=ee=B[3],me=ne=B[4];for(var _e,M=0;M<80;M+=1)_e=Z+D[P+U[M]]|0,M<16?_e+=k(H,q,ee)+F[0]:M<32?_e+=C(H,q,ee)+F[1]:M<48?_e+=x(H,q,ee)+F[2]:M<64?_e+=E(H,q,ee)+F[3]:_e+=_(H,q,ee)+F[4],_e=_e|0,_e=T(_e,X[M]),_e=_e+ne|0,Z=ne,ne=ee,ee=T(q,10),q=H,H=_e,_e=ae+D[P+G[M]]|0,M<16?_e+=_(re,ke,Ne)+W[0]:M<32?_e+=E(re,ke,Ne)+W[1]:M<48?_e+=x(re,ke,Ne)+W[2]:M<64?_e+=C(re,ke,Ne)+W[3]:_e+=k(re,ke,Ne)+W[4],_e=_e|0,_e=T(_e,oe[M]),_e=_e+me|0,ae=me,me=Ne,Ne=T(ke,10),ke=re,re=_e;_e=B[1]+q+Ne|0,B[1]=B[2]+ee+me|0,B[2]=B[3]+ne+ae|0,B[3]=B[4]+Z+re|0,B[4]=B[0]+H+ke|0,B[0]=_e},_doFinalize:function(){var D=this._data,P=D.words,M=this._nDataBytes*8,$=D.sigBytes*8;P[$>>>5]|=128<<24-$%32,P[($+64>>>9<<4)+14]=(M<<8|M>>>24)&16711935|(M<<24|M>>>8)&4278255360,D.sigBytes=(P.length+1)*4,this._process();for(var L=this._hash,B=L.words,F=0;F<5;F++){var W=B[F];B[F]=(W<<8|W>>>24)&16711935|(W<<24|W>>>8)&4278255360}return L},clone:function(){var D=l.clone.call(this);return D._hash=this._hash.clone(),D}});function k(D,P,M){return D^P^M}function C(D,P,M){return D&P|~D&M}function x(D,P,M){return(D|~P)^M}function E(D,P,M){return D&M|P&~M}function _(D,P,M){return D^(P|~M)}function T(D,P){return D<>>32-P}o.RIPEMD160=l._createHelper(S),o.HmacRIPEMD160=l._createHmacHelper(S)})(),n.RIPEMD160})})(AE)),AE.exports}var IE={exports:{}},K_t=IE.exports,ule;function pG(){return ule||(ule=1,(function(e,t){(function(n,r){e.exports=r(Ni())})(K_t,function(n){(function(){var r=n,o=r.lib,a=o.Base,s=r.enc,l=s.Utf8,c=r.algo;c.HMAC=a.extend({init:function(d,h){d=this._hasher=new d.init,typeof h=="string"&&(h=l.parse(h));var p=d.blockSize,v=p*4;h.sigBytes>v&&(h=d.finalize(h)),h.clamp();for(var g=this._oKey=h.clone(),y=this._iKey=h.clone(),S=g.words,k=y.words,C=0;C>>2]&255;L.sigBytes-=B}};a.BlockCipher=g.extend({cfg:g.cfg.extend({mode:k,padding:x}),reset:function(){var L;g.reset.call(this);var B=this.cfg,F=B.iv,W=B.mode;this._xformMode==this._ENC_XFORM_MODE?L=W.createEncryptor:(L=W.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==L?this._mode.init(this,F&&F.words):(this._mode=L.call(W,this,F&&F.words),this._mode.__creator=L)},_doProcessBlock:function(L,B){this._mode.processBlock(L,B)},_doFinalize:function(){var L,B=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(B.pad(this._data,this.blockSize),L=this._process(!0)):(L=this._process(!0),B.unpad(L)),L},blockSize:128/32});var E=a.CipherParams=s.extend({init:function(L){this.mixIn(L)},toString:function(L){return(L||this.formatter).stringify(this)}}),_=o.format={},T=_.OpenSSL={stringify:function(L){var B,F=L.ciphertext,W=L.salt;return W?B=l.create([1398893684,1701076831]).concat(W).concat(F):B=F,B.toString(h)},parse:function(L){var B,F=h.parse(L),W=F.words;return W[0]==1398893684&&W[1]==1701076831&&(B=l.create(W.slice(2,4)),W.splice(0,4),F.sigBytes-=16),E.create({ciphertext:F,salt:B})}},D=a.SerializableCipher=s.extend({cfg:s.extend({format:T}),encrypt:function(L,B,F,W){W=this.cfg.extend(W);var U=L.createEncryptor(F,W),G=U.finalize(B),X=U.cfg;return E.create({ciphertext:G,key:F,iv:X.iv,algorithm:L,mode:X.mode,padding:X.padding,blockSize:L.blockSize,formatter:W.format})},decrypt:function(L,B,F,W){W=this.cfg.extend(W),B=this._parse(B,W.format);var U=L.createDecryptor(F,W).finalize(B.ciphertext);return U},_parse:function(L,B){return typeof L=="string"?B.parse(L,this):L}}),P=o.kdf={},M=P.OpenSSL={execute:function(L,B,F,W,U){if(W||(W=l.random(64/8)),U)var G=v.create({keySize:B+F,hasher:U}).compute(L,W);else var G=v.create({keySize:B+F}).compute(L,W);var X=l.create(G.words.slice(B),F*4);return G.sigBytes=B*4,E.create({key:G,iv:X,salt:W})}},$=a.PasswordBasedCipher=D.extend({cfg:D.cfg.extend({kdf:M}),encrypt:function(L,B,F,W){W=this.cfg.extend(W);var U=W.kdf.execute(F,L.keySize,L.ivSize,W.salt,W.hasher);W.iv=U.iv;var G=D.encrypt.call(this,L,B,U.key,W);return G.mixIn(U),G},decrypt:function(L,B,F,W){W=this.cfg.extend(W),B=this._parse(B,W.format);var U=W.kdf.execute(F,L.keySize,L.ivSize,B.salt,W.hasher);W.iv=U.iv;var G=D.decrypt.call(this,L,B,U.key,W);return G}})})()})})(PE)),PE.exports}var RE={exports:{}},J_t=RE.exports,hle;function Q_t(){return hle||(hle=1,(function(e,t){(function(n,r,o){e.exports=r(Ni(),Ea())})(J_t,function(n){return n.mode.CFB=(function(){var r=n.lib.BlockCipherMode.extend();r.Encryptor=r.extend({processBlock:function(a,s){var l=this._cipher,c=l.blockSize;o.call(this,a,s,c,l),this._prevBlock=a.slice(s,s+c)}}),r.Decryptor=r.extend({processBlock:function(a,s){var l=this._cipher,c=l.blockSize,d=a.slice(s,s+c);o.call(this,a,s,c,l),this._prevBlock=d}});function o(a,s,l,c){var d,h=this._iv;h?(d=h.slice(0),this._iv=void 0):d=this._prevBlock,c.encryptBlock(d,0);for(var p=0;p>24&255)===255){var c=l>>16&255,d=l>>8&255,h=l&255;c===255?(c=0,d===255?(d=0,h===255?h=0:++h):++d):++c,l=0,l+=c<<16,l+=d<<8,l+=h}else l+=1<<24;return l}function a(l){return(l[0]=o(l[0]))===0&&(l[1]=o(l[1])),l}var s=r.Encryptor=r.extend({processBlock:function(l,c){var d=this._cipher,h=d.blockSize,p=this._iv,v=this._counter;p&&(v=this._counter=p.slice(0),this._iv=void 0),a(v);var g=v.slice(0);d.encryptBlock(g,0);for(var y=0;y>>2]|=l<<24-c%4*8,r.sigBytes+=l},unpad:function(r){var o=r.words[r.sigBytes-1>>>2]&255;r.sigBytes-=o}},n.pad.Ansix923})})(NE)),NE.exports}var FE={exports:{}},cSt=FE.exports,ble;function dSt(){return ble||(ble=1,(function(e,t){(function(n,r,o){e.exports=r(Ni(),Ea())})(cSt,function(n){return n.pad.Iso10126={pad:function(r,o){var a=o*4,s=a-r.sigBytes%a;r.concat(n.lib.WordArray.random(s-1)).concat(n.lib.WordArray.create([s<<24],1))},unpad:function(r){var o=r.words[r.sigBytes-1>>>2]&255;r.sigBytes-=o}},n.pad.Iso10126})})(FE)),FE.exports}var jE={exports:{}},fSt=jE.exports,_le;function hSt(){return _le||(_le=1,(function(e,t){(function(n,r,o){e.exports=r(Ni(),Ea())})(fSt,function(n){return n.pad.Iso97971={pad:function(r,o){r.concat(n.lib.WordArray.create([2147483648],1)),n.pad.ZeroPadding.pad(r,o)},unpad:function(r){n.pad.ZeroPadding.unpad(r),r.sigBytes--}},n.pad.Iso97971})})(jE)),jE.exports}var VE={exports:{}},pSt=VE.exports,Sle;function vSt(){return Sle||(Sle=1,(function(e,t){(function(n,r,o){e.exports=r(Ni(),Ea())})(pSt,function(n){return n.pad.ZeroPadding={pad:function(r,o){var a=o*4;r.clamp(),r.sigBytes+=a-(r.sigBytes%a||a)},unpad:function(r){for(var o=r.words,a=r.sigBytes-1,a=r.sigBytes-1;a>=0;a--)if(o[a>>>2]>>>24-a%4*8&255){r.sigBytes=a+1;break}}},n.pad.ZeroPadding})})(VE)),VE.exports}var zE={exports:{}},mSt=zE.exports,kle;function gSt(){return kle||(kle=1,(function(e,t){(function(n,r,o){e.exports=r(Ni(),Ea())})(mSt,function(n){return n.pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding})})(zE)),zE.exports}var UE={exports:{}},ySt=UE.exports,xle;function bSt(){return xle||(xle=1,(function(e,t){(function(n,r,o){e.exports=r(Ni(),Ea())})(ySt,function(n){return(function(r){var o=n,a=o.lib,s=a.CipherParams,l=o.enc,c=l.Hex,d=o.format;d.Hex={stringify:function(h){return h.ciphertext.toString(c)},parse:function(h){var p=c.parse(h);return s.create({ciphertext:p})}}})(),n.format.Hex})})(UE)),UE.exports}var HE={exports:{}},_St=HE.exports,Cle;function SSt(){return Cle||(Cle=1,(function(e,t){(function(n,r,o){e.exports=r(Ni(),rg(),ig(),U0(),Ea())})(_St,function(n){return(function(){var r=n,o=r.lib,a=o.BlockCipher,s=r.algo,l=[],c=[],d=[],h=[],p=[],v=[],g=[],y=[],S=[],k=[];(function(){for(var E=[],_=0;_<256;_++)_<128?E[_]=_<<1:E[_]=_<<1^283;for(var T=0,D=0,_=0;_<256;_++){var P=D^D<<1^D<<2^D<<3^D<<4;P=P>>>8^P&255^99,l[T]=P,c[P]=T;var M=E[T],$=E[M],L=E[$],B=E[P]*257^P*16843008;d[T]=B<<24|B>>>8,h[T]=B<<16|B>>>16,p[T]=B<<8|B>>>24,v[T]=B;var B=L*16843009^$*65537^M*257^T*16843008;g[P]=B<<24|B>>>8,y[P]=B<<16|B>>>16,S[P]=B<<8|B>>>24,k[P]=B,T?(T=M^E[E[E[L^M]]],D^=E[E[D]]):T=D=1}})();var C=[0,1,2,4,8,16,32,64,128,27,54],x=s.AES=a.extend({_doReset:function(){var E;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var _=this._keyPriorReset=this._key,T=_.words,D=_.sigBytes/4,P=this._nRounds=D+6,M=(P+1)*4,$=this._keySchedule=[],L=0;L6&&L%D==4&&(E=l[E>>>24]<<24|l[E>>>16&255]<<16|l[E>>>8&255]<<8|l[E&255]):(E=E<<8|E>>>24,E=l[E>>>24]<<24|l[E>>>16&255]<<16|l[E>>>8&255]<<8|l[E&255],E^=C[L/D|0]<<24),$[L]=$[L-D]^E);for(var B=this._invKeySchedule=[],F=0;F>>24]]^y[l[E>>>16&255]]^S[l[E>>>8&255]]^k[l[E&255]]}}},encryptBlock:function(E,_){this._doCryptBlock(E,_,this._keySchedule,d,h,p,v,l)},decryptBlock:function(E,_){var T=E[_+1];E[_+1]=E[_+3],E[_+3]=T,this._doCryptBlock(E,_,this._invKeySchedule,g,y,S,k,c);var T=E[_+1];E[_+1]=E[_+3],E[_+3]=T},_doCryptBlock:function(E,_,T,D,P,M,$,L){for(var B=this._nRounds,F=E[_]^T[0],W=E[_+1]^T[1],U=E[_+2]^T[2],G=E[_+3]^T[3],X=4,oe=1;oe>>24]^P[W>>>16&255]^M[U>>>8&255]^$[G&255]^T[X++],H=D[W>>>24]^P[U>>>16&255]^M[G>>>8&255]^$[F&255]^T[X++],q=D[U>>>24]^P[G>>>16&255]^M[F>>>8&255]^$[W&255]^T[X++],ee=D[G>>>24]^P[F>>>16&255]^M[W>>>8&255]^$[U&255]^T[X++];F=Z,W=H,U=q,G=ee}var Z=(L[F>>>24]<<24|L[W>>>16&255]<<16|L[U>>>8&255]<<8|L[G&255])^T[X++],H=(L[W>>>24]<<24|L[U>>>16&255]<<16|L[G>>>8&255]<<8|L[F&255])^T[X++],q=(L[U>>>24]<<24|L[G>>>16&255]<<16|L[F>>>8&255]<<8|L[W&255])^T[X++],ee=(L[G>>>24]<<24|L[F>>>16&255]<<16|L[W>>>8&255]<<8|L[U&255])^T[X++];E[_]=Z,E[_+1]=H,E[_+2]=q,E[_+3]=ee},keySize:256/32});r.AES=a._createHelper(x)})(),n.AES})})(HE)),HE.exports}var WE={exports:{}},kSt=WE.exports,wle;function xSt(){return wle||(wle=1,(function(e,t){(function(n,r,o){e.exports=r(Ni(),rg(),ig(),U0(),Ea())})(kSt,function(n){return(function(){var r=n,o=r.lib,a=o.WordArray,s=o.BlockCipher,l=r.algo,c=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],d=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],h=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],p=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],v=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],g=l.DES=s.extend({_doReset:function(){for(var C=this._key,x=C.words,E=[],_=0;_<56;_++){var T=c[_]-1;E[_]=x[T>>>5]>>>31-T%32&1}for(var D=this._subKeys=[],P=0;P<16;P++){for(var M=D[P]=[],$=h[P],_=0;_<24;_++)M[_/6|0]|=E[(d[_]-1+$)%28]<<31-_%6,M[4+(_/6|0)]|=E[28+(d[_+24]-1+$)%28]<<31-_%6;M[0]=M[0]<<1|M[0]>>>31;for(var _=1;_<7;_++)M[_]=M[_]>>>(_-1)*4+3;M[7]=M[7]<<5|M[7]>>>27}for(var L=this._invSubKeys=[],_=0;_<16;_++)L[_]=D[15-_]},encryptBlock:function(C,x){this._doCryptBlock(C,x,this._subKeys)},decryptBlock:function(C,x){this._doCryptBlock(C,x,this._invSubKeys)},_doCryptBlock:function(C,x,E){this._lBlock=C[x],this._rBlock=C[x+1],y.call(this,4,252645135),y.call(this,16,65535),S.call(this,2,858993459),S.call(this,8,16711935),y.call(this,1,1431655765);for(var _=0;_<16;_++){for(var T=E[_],D=this._lBlock,P=this._rBlock,M=0,$=0;$<8;$++)M|=p[$][((P^T[$])&v[$])>>>0];this._lBlock=P,this._rBlock=D^M}var L=this._lBlock;this._lBlock=this._rBlock,this._rBlock=L,y.call(this,1,1431655765),S.call(this,8,16711935),S.call(this,2,858993459),y.call(this,16,65535),y.call(this,4,252645135),C[x]=this._lBlock,C[x+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function y(C,x){var E=(this._lBlock>>>C^this._rBlock)&x;this._rBlock^=E,this._lBlock^=E<>>C^this._lBlock)&x;this._lBlock^=E,this._rBlock^=E<192.");var E=x.slice(0,2),_=x.length<4?x.slice(0,2):x.slice(2,4),T=x.length<6?x.slice(0,2):x.slice(4,6);this._des1=g.createEncryptor(a.create(E)),this._des2=g.createEncryptor(a.create(_)),this._des3=g.createEncryptor(a.create(T))},encryptBlock:function(C,x){this._des1.encryptBlock(C,x),this._des2.decryptBlock(C,x),this._des3.encryptBlock(C,x)},decryptBlock:function(C,x){this._des3.decryptBlock(C,x),this._des2.encryptBlock(C,x),this._des1.decryptBlock(C,x)},keySize:192/32,ivSize:64/32,blockSize:64/32});r.TripleDES=s._createHelper(k)})(),n.TripleDES})})(WE)),WE.exports}var GE={exports:{}},CSt=GE.exports,Ele;function wSt(){return Ele||(Ele=1,(function(e,t){(function(n,r,o){e.exports=r(Ni(),rg(),ig(),U0(),Ea())})(CSt,function(n){return(function(){var r=n,o=r.lib,a=o.StreamCipher,s=r.algo,l=s.RC4=a.extend({_doReset:function(){for(var h=this._key,p=h.words,v=h.sigBytes,g=this._S=[],y=0;y<256;y++)g[y]=y;for(var y=0,S=0;y<256;y++){var k=y%v,C=p[k>>>2]>>>24-k%4*8&255;S=(S+g[y]+C)%256;var x=g[y];g[y]=g[S],g[S]=x}this._i=this._j=0},_doProcessBlock:function(h,p){h[p]^=c.call(this)},keySize:256/32,ivSize:0});function c(){for(var h=this._S,p=this._i,v=this._j,g=0,y=0;y<4;y++){p=(p+1)%256,v=(v+h[p])%256;var S=h[p];h[p]=h[v],h[v]=S,g|=h[(h[p]+h[v])%256]<<24-y*8}return this._i=p,this._j=v,g}r.RC4=a._createHelper(l);var d=s.RC4Drop=l.extend({cfg:l.cfg.extend({drop:192}),_doReset:function(){l._doReset.call(this);for(var h=this.cfg.drop;h>0;h--)c.call(this)}});r.RC4Drop=a._createHelper(d)})(),n.RC4})})(GE)),GE.exports}var KE={exports:{}},ESt=KE.exports,Tle;function TSt(){return Tle||(Tle=1,(function(e,t){(function(n,r,o){e.exports=r(Ni(),rg(),ig(),U0(),Ea())})(ESt,function(n){return(function(){var r=n,o=r.lib,a=o.StreamCipher,s=r.algo,l=[],c=[],d=[],h=s.Rabbit=a.extend({_doReset:function(){for(var v=this._key.words,g=this.cfg.iv,y=0;y<4;y++)v[y]=(v[y]<<8|v[y]>>>24)&16711935|(v[y]<<24|v[y]>>>8)&4278255360;var S=this._X=[v[0],v[3]<<16|v[2]>>>16,v[1],v[0]<<16|v[3]>>>16,v[2],v[1]<<16|v[0]>>>16,v[3],v[2]<<16|v[1]>>>16],k=this._C=[v[2]<<16|v[2]>>>16,v[0]&4294901760|v[1]&65535,v[3]<<16|v[3]>>>16,v[1]&4294901760|v[2]&65535,v[0]<<16|v[0]>>>16,v[2]&4294901760|v[3]&65535,v[1]<<16|v[1]>>>16,v[3]&4294901760|v[0]&65535];this._b=0;for(var y=0;y<4;y++)p.call(this);for(var y=0;y<8;y++)k[y]^=S[y+4&7];if(g){var C=g.words,x=C[0],E=C[1],_=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360,T=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360,D=_>>>16|T&4294901760,P=T<<16|_&65535;k[0]^=_,k[1]^=D,k[2]^=T,k[3]^=P,k[4]^=_,k[5]^=D,k[6]^=T,k[7]^=P;for(var y=0;y<4;y++)p.call(this)}},_doProcessBlock:function(v,g){var y=this._X;p.call(this),l[0]=y[0]^y[5]>>>16^y[3]<<16,l[1]=y[2]^y[7]>>>16^y[5]<<16,l[2]=y[4]^y[1]>>>16^y[7]<<16,l[3]=y[6]^y[3]>>>16^y[1]<<16;for(var S=0;S<4;S++)l[S]=(l[S]<<8|l[S]>>>24)&16711935|(l[S]<<24|l[S]>>>8)&4278255360,v[g+S]^=l[S]},blockSize:128/32,ivSize:64/32});function p(){for(var v=this._X,g=this._C,y=0;y<8;y++)c[y]=g[y];g[0]=g[0]+1295307597+this._b|0,g[1]=g[1]+3545052371+(g[0]>>>0>>0?1:0)|0,g[2]=g[2]+886263092+(g[1]>>>0>>0?1:0)|0,g[3]=g[3]+1295307597+(g[2]>>>0>>0?1:0)|0,g[4]=g[4]+3545052371+(g[3]>>>0>>0?1:0)|0,g[5]=g[5]+886263092+(g[4]>>>0>>0?1:0)|0,g[6]=g[6]+1295307597+(g[5]>>>0>>0?1:0)|0,g[7]=g[7]+3545052371+(g[6]>>>0>>0?1:0)|0,this._b=g[7]>>>0>>0?1:0;for(var y=0;y<8;y++){var S=v[y]+g[y],k=S&65535,C=S>>>16,x=((k*k>>>17)+k*C>>>15)+C*C,E=((S&4294901760)*S|0)+((S&65535)*S|0);d[y]=x^E}v[0]=d[0]+(d[7]<<16|d[7]>>>16)+(d[6]<<16|d[6]>>>16)|0,v[1]=d[1]+(d[0]<<8|d[0]>>>24)+d[7]|0,v[2]=d[2]+(d[1]<<16|d[1]>>>16)+(d[0]<<16|d[0]>>>16)|0,v[3]=d[3]+(d[2]<<8|d[2]>>>24)+d[1]|0,v[4]=d[4]+(d[3]<<16|d[3]>>>16)+(d[2]<<16|d[2]>>>16)|0,v[5]=d[5]+(d[4]<<8|d[4]>>>24)+d[3]|0,v[6]=d[6]+(d[5]<<16|d[5]>>>16)+(d[4]<<16|d[4]>>>16)|0,v[7]=d[7]+(d[6]<<8|d[6]>>>24)+d[5]|0}r.Rabbit=a._createHelper(h)})(),n.Rabbit})})(KE)),KE.exports}var qE={exports:{}},ASt=qE.exports,Ale;function ISt(){return Ale||(Ale=1,(function(e,t){(function(n,r,o){e.exports=r(Ni(),rg(),ig(),U0(),Ea())})(ASt,function(n){return(function(){var r=n,o=r.lib,a=o.StreamCipher,s=r.algo,l=[],c=[],d=[],h=s.RabbitLegacy=a.extend({_doReset:function(){var v=this._key.words,g=this.cfg.iv,y=this._X=[v[0],v[3]<<16|v[2]>>>16,v[1],v[0]<<16|v[3]>>>16,v[2],v[1]<<16|v[0]>>>16,v[3],v[2]<<16|v[1]>>>16],S=this._C=[v[2]<<16|v[2]>>>16,v[0]&4294901760|v[1]&65535,v[3]<<16|v[3]>>>16,v[1]&4294901760|v[2]&65535,v[0]<<16|v[0]>>>16,v[2]&4294901760|v[3]&65535,v[1]<<16|v[1]>>>16,v[3]&4294901760|v[0]&65535];this._b=0;for(var k=0;k<4;k++)p.call(this);for(var k=0;k<8;k++)S[k]^=y[k+4&7];if(g){var C=g.words,x=C[0],E=C[1],_=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360,T=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360,D=_>>>16|T&4294901760,P=T<<16|_&65535;S[0]^=_,S[1]^=D,S[2]^=T,S[3]^=P,S[4]^=_,S[5]^=D,S[6]^=T,S[7]^=P;for(var k=0;k<4;k++)p.call(this)}},_doProcessBlock:function(v,g){var y=this._X;p.call(this),l[0]=y[0]^y[5]>>>16^y[3]<<16,l[1]=y[2]^y[7]>>>16^y[5]<<16,l[2]=y[4]^y[1]>>>16^y[7]<<16,l[3]=y[6]^y[3]>>>16^y[1]<<16;for(var S=0;S<4;S++)l[S]=(l[S]<<8|l[S]>>>24)&16711935|(l[S]<<24|l[S]>>>8)&4278255360,v[g+S]^=l[S]},blockSize:128/32,ivSize:64/32});function p(){for(var v=this._X,g=this._C,y=0;y<8;y++)c[y]=g[y];g[0]=g[0]+1295307597+this._b|0,g[1]=g[1]+3545052371+(g[0]>>>0>>0?1:0)|0,g[2]=g[2]+886263092+(g[1]>>>0>>0?1:0)|0,g[3]=g[3]+1295307597+(g[2]>>>0>>0?1:0)|0,g[4]=g[4]+3545052371+(g[3]>>>0>>0?1:0)|0,g[5]=g[5]+886263092+(g[4]>>>0>>0?1:0)|0,g[6]=g[6]+1295307597+(g[5]>>>0>>0?1:0)|0,g[7]=g[7]+3545052371+(g[6]>>>0>>0?1:0)|0,this._b=g[7]>>>0>>0?1:0;for(var y=0;y<8;y++){var S=v[y]+g[y],k=S&65535,C=S>>>16,x=((k*k>>>17)+k*C>>>15)+C*C,E=((S&4294901760)*S|0)+((S&65535)*S|0);d[y]=x^E}v[0]=d[0]+(d[7]<<16|d[7]>>>16)+(d[6]<<16|d[6]>>>16)|0,v[1]=d[1]+(d[0]<<8|d[0]>>>24)+d[7]|0,v[2]=d[2]+(d[1]<<16|d[1]>>>16)+(d[0]<<16|d[0]>>>16)|0,v[3]=d[3]+(d[2]<<8|d[2]>>>24)+d[1]|0,v[4]=d[4]+(d[3]<<16|d[3]>>>16)+(d[2]<<16|d[2]>>>16)|0,v[5]=d[5]+(d[4]<<8|d[4]>>>24)+d[3]|0,v[6]=d[6]+(d[5]<<16|d[5]>>>16)+(d[4]<<16|d[4]>>>16)|0,v[7]=d[7]+(d[6]<<8|d[6]>>>24)+d[5]|0}r.RabbitLegacy=a._createHelper(h)})(),n.RabbitLegacy})})(qE)),qE.exports}var YE={exports:{}},LSt=YE.exports,Ile;function DSt(){return Ile||(Ile=1,(function(e,t){(function(n,r,o){e.exports=r(Ni(),rg(),ig(),U0(),Ea())})(LSt,function(n){return(function(){var r=n,o=r.lib,a=o.BlockCipher,s=r.algo;const l=16,c=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],d=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var h={pbox:[],sbox:[]};function p(k,C){let x=C>>24&255,E=C>>16&255,_=C>>8&255,T=C&255,D=k.sbox[0][x]+k.sbox[1][E];return D=D^k.sbox[2][_],D=D+k.sbox[3][T],D}function v(k,C,x){let E=C,_=x,T;for(let D=0;D1;--D)E=E^k.pbox[D],_=p(k,E)^_,T=E,E=_,_=T;return T=E,E=_,_=T,_=_^k.pbox[1],E=E^k.pbox[0],{left:E,right:_}}function y(k,C,x){for(let P=0;P<4;P++){k.sbox[P]=[];for(let M=0;M<256;M++)k.sbox[P][M]=d[P][M]}let E=0;for(let P=0;P=x&&(E=0);let _=0,T=0,D=0;for(let P=0;PDle.enc.Base64.stringify(Dle.enc.Utf8.parse(e)),OSt=e=>{if(!e||typeof e!="object")return"";try{const t=JSON.stringify(e);return Mz(t)}catch(t){return console.error("筛选条件编码失败:",t),""}},$p=e=>!e||typeof e!="string"||e.trim().length===0||e.length>100?!1:!/[\x00-\x1F\x7F]/.test(e),$St=e=>{if(!e||typeof e!="string")return!1;const t=e.trim();return t.length===0||t==="no_data"?!1:e.length<=1024},BSt={NORMAL:"normal"},NSt=()=>({vod_id:"",vod_name:"",vod_pic:"",vod_remarks:"",vod_content:"",vod_play_from:"",vod_play_url:"",vod_time:"",vod_year:"",vod_area:"",vod_lang:"",vod_actor:"",vod_director:"",vod_writer:"",vod_blurb:"",vod_class:"",vod_tag:"",vod_score:"",vod_hits:0,vod_duration:"",vod_total:0,vod_serial:0,vod_tv:"",vod_weekday:"",vod_status:BSt.NORMAL}),FSt=()=>({page:1,pageSize:20,total:0,totalPages:0,hasNext:!1,hasPrev:!1}),jSt=()=>({key:"",name:"",type:0,api:"",searchable:1,quickSearch:1,filterable:1,order:0,ext:""});class VSt{constructor(){this.cache=new Map,this.cacheTimeout=300*1e3}async getRecommendVideos(t,n={}){if(!$p(t))throw new Error("无效的模块名称");const{apiUrl:r,...o}=n,a=`home_${t}_${JSON.stringify(n)}`;console.log("[VideoService] getRecommendVideos 缓存检查:",{module:t,cacheKey:a,cacheSize:this.cache.size,allCacheKeys:Array.from(this.cache.keys())});const s=this.getFromCache(a);if(s)return console.log("[VideoService] 使用缓存数据:",{module:t,videosCount:s.videos?.length||0,categoriesCount:s.categories?.length||0}),s;console.log("[VideoService] 缓存未命中,发起新请求:",t);try{const l={...o};r&&(l.apiUrl=r);const c=await v_t(t,l),d={categories:c.class||[],filters:c.filters||{},videos:(c.list||[]).map(this.formatVideoInfo),pagination:this.createPagination(c)};return console.log("[VideoService] 新数据已获取并缓存:",{module:t,videosCount:d.videos?.length||0,categoriesCount:d.categories?.length||0,cacheKey:a}),this.setCache(a,d),d}catch(l){throw console.error("获取首页推荐视频失败:",l),l}}async getCategoryVideos(t,n){if(!$p(t))throw new Error("无效的模块名称");const{typeId:r,page:o=1,filters:a={},apiUrl:s,extend:l}=n;if(!r)throw new Error("分类ID不能为空");const c=`category_${t}_${r}_${o}_${JSON.stringify(a)}`,d=this.getFromCache(c);if(d)return d;try{const h={t:r,pg:o};Object.keys(a).length>0&&(h.ext=OSt(a));const p=ua(l);p&&(h.extend=p),s&&(h.apiUrl=s);const v=await q1(t,h),g={videos:(v.list||[]).map(this.formatVideoInfo),pagination:this.createPagination(v,o),filters:v.filters||{},total:v.total||0};return this.setCache(c,g),g}catch(h){throw console.error("获取分类视频失败:",h),h}}async getVideoDetails(t,n,r,o=!1,a=null){if(!$p(t))throw new Error("无效的模块名称");if(!$St(n))throw new Error("无效的视频ID");const s=`detail_${t}_${n}`;if(o)console.log("跳过缓存,强制获取最新视频详情:",{module:t,videoId:n});else{const l=this.getFromCache(s);if(l)return console.log("使用缓存的视频详情:",{module:t,videoId:n}),l}try{const l={ids:n};r&&(l.apiUrl=r);const c=ua(a);c&&(l.extend=c);const d=await m_t(t,l);if(!d.list||d.list.length===0)throw new Error("视频不存在");const h=this.formatVideoInfo(d.list[0]);return h.vod_play_url&&(h.playList=this.parsePlayUrls(h.vod_play_url,h.vod_play_from)),this.setCache(s,h),h}catch(l){throw console.error("获取视频详情失败:",l),l}}async searchVideo(t,n){if(!$p(t))throw new Error("无效的模块名称");const{keyword:r,page:o=1,extend:a,apiUrl:s}=n;if(!r||r.trim().length===0)throw new Error("搜索关键词不能为空");try{const l={wd:r.trim(),pg:o},c=ua(a);c&&(l.extend=c),s&&(l.apiUrl=s);const d=await y_t(t,l);return{videos:(d.list||[]).map(this.formatVideoInfo),pagination:this.createPagination(d,o),keyword:r.trim(),total:d.total||0,rawResponse:d}}catch(l){throw console.error("搜索视频失败:",l),l}}async getPlayUrl(t,n,r,o=null){if(!$p(t))throw new Error("无效的模块名称");if(!n)throw new Error("播放地址不能为空");try{const a={play:n};r&&(a.apiUrl=r);const s=ua(o);s&&(a.extend=s);const l=await v3e(t,a);return{url:l.url||n,headers:l.headers||{},parse:l.parse||!1,jx:l.jx||""}}catch(a){throw console.error("获取播放地址失败:",a),a}}async parseVideoUrl(t,n,r={}){if(!t)throw new Error("解析器名称不能为空");if(!n)throw new Error("视频地址不能为空");try{const o=await S_t(t,{url:n,...r});return{url:o.url||n,type:o.type||"mp4",headers:o.headers||{},success:o.success!==!1}}catch(o){throw console.error("解析视频地址失败:",o),o}}async parseEpisodePlayUrl(t,n){if(!$p(t))throw new Error("无效的模块名称");const{play:r,flag:o,apiUrl:a,extend:s}=n;if(!r)throw new Error("播放地址不能为空");try{console.log("VideoService: 开始解析选集播放地址",{module:t,params:n});const l={play:r,extend:ua(s)};o&&(l.flag=o),a&&(l.apiUrl=a);const c=await g_t(t,l);return console.log("VideoService: 选集播放解析结果",c),c}catch(l){throw console.error("VideoService: 解析选集播放地址失败:",l),l}}async executeT4Action(t,n,r={}){if(!$p(t))throw new Error("无效的模块名称");if(!n||n.trim().length===0)throw new Error("动作名称不能为空");try{const o={action:n.trim(),value:r.value||"",extend:ua(r.extend),apiUrl:r.apiUrl};console.log("执行T4 action:",{module:t,actionData:o});const a=await GA(t,o);return console.log("T4 action执行结果:",a),a}catch(o){throw console.error("T4 action执行失败:",o),o}}async refreshModuleData(t,n=null,r=null){if(!$p(t))throw new Error("无效的模块名称");try{this.clearModuleCache(t);const o=ua(n),a=await b_t(t,o,r);return{success:!0,message:a.msg||"刷新成功",lastUpdate:a.data?.lastUpdate||new Date().toISOString()}}catch(o){throw console.error("刷新模块数据失败:",o),o}}formatVideoInfo(t){const n=NSt();return Object.keys(n).forEach(r=>{t[r]!==void 0&&(n[r]=t[r])}),t.vod_hits&&(n.vod_hits=parseInt(t.vod_hits)||0),t.vod_score&&(n.vod_score=parseFloat(t.vod_score)||0),n}parsePlayUrls(t,n){if(!t)return[];const r=n?n.split("$$$"):["默认"],o=t.split("$$$");return r.map((a,s)=>({from:a.trim(),urls:this.parseEpisodeUrls(o[s]||""),index:s}))}parseEpisodeUrls(t){return t?t.split("#").map((n,r)=>{const[o,a]=n.split("$");return{name:o||`第${r+1}集`,url:a||"",index:r}}).filter(n=>n.url):[]}createPagination(t,n=1){const r=FSt();r.page=n;const o=t.total||t.recordcount||0,a=t.pagecount||t.totalPages||0,s=t.limit||t.pagesize||20,l=t.list||[];return r.total=o,r.pageSize=s,a>0?(r.totalPages=a,r.hasNext=n0?(r.totalPages=Math.ceil(o/s),r.hasNext=nd.vod_id==="no_data"||d.vod_name==="no_data"||typeof d=="string"&&d.includes("no_data"))||l.length===0?(r.hasNext=!1,r.totalPages=n):(r.hasNext=!0,r.totalPages=n+1),r.hasPrev=n>1,r}getFromCache(t){const n=this.cache.get(t);return n&&Date.now()-n.timestamp{const n=`${dG.PROXY}/${e}`;return t?`${n}/${t}`:n},zSt=async(e,t="",n={})=>{const r=qA(e,t);return z0(r,n)},USt=async(e,t="",n={})=>{const r=qA(e,t);return p3e(r,n)},HSt=async(e,t="",n={})=>{const r=qA(e,t);return h_t(r,n)},WSt=async(e,t="",n={})=>{const r=qA(e,t);return p_t(r,n)},GSt=async(e,t="",n={})=>{const{method:r="GET",params:o,data:a}=n;switch(r.toUpperCase()){case"GET":return zSt(e,t,o);case"POST":return USt(e,t,a);case"PUT":return HSt(e,t,a);case"DELETE":return WSt(e,t,o);default:throw new Error(`不支持的请求方法: ${r}`)}};class KSt{constructor(){this.configUrl=null,this.configData=null,this.lastFetchTime=null,this.cacheExpiry=300*1e3,this.liveConfigUrl=null,this.loadConfigFromStorage()}async setConfigUrl(t){try{if(!t||typeof t!="string")throw new Error("配置地址不能为空");if(!/^https?:\/\/.+/.test(t))throw new Error("配置地址格式不正确,请输入有效的HTTP/HTTPS地址");if(!await this.validateConfigUrl(t))throw new Error("配置地址无法访问或数据格式不正确");return this.configUrl=t,this.saveConfigToStorage(),await this.autoSetLiveConfigUrl(),console.log("配置地址设置成功:",t),!0}catch(n){throw console.error("设置配置地址失败:",n),n}}async setLiveConfigUrl(t){try{if(!t||typeof t!="string")throw new Error("直播配置地址不能为空");if(!/^https?:\/\/.+/.test(t))throw new Error("直播配置地址格式不正确,请输入有效的HTTP/HTTPS地址");return this.liveConfigUrl=t,this.saveConfigToStorage(),console.log("直播配置地址设置成功:",t),!0}catch(n){throw console.error("设置直播配置地址失败:",n),n}}getLiveConfigUrl(){return this.liveConfigUrl}async autoSetLiveConfigUrl(){try{if(this.liveConfigUrl)return!1;const t=await this.getConfigData();if(!t||!t.lives||!Array.isArray(t.lives)||t.lives.length===0)return console.log("点播配置中未找到lives链接"),!1;const n=t.lives[0];return!n||!n.url?(console.log("lives配置中未找到有效的url"),!1):(this.liveConfigUrl=n.url,this.saveConfigToStorage(),console.log("自动设置直播配置地址成功:",n.url),!0)}catch(t){return console.error("自动设置直播配置地址失败:",t),!1}}async resetLiveConfigUrl(){try{const t=await this.getConfigData();if(!t||!t.lives||!Array.isArray(t.lives)||t.lives.length===0)return console.log("点播配置中未找到lives链接,无法重置"),!1;const n=t.lives[0];return!n||!n.url?(console.log("lives配置中未找到有效的url,无法重置"),!1):(this.liveConfigUrl=n.url,this.saveConfigToStorage(),console.log("直播配置地址重置成功:",n.url),!0)}catch(t){return console.error("重置直播配置地址失败:",t),!1}}getConfigUrl(){return this.configUrl}async validateConfigUrl(t){try{const n=await co.get(t,{timeout:1e4,headers:{Accept:"application/json"}});if(!n.data)return!1;const r=n.data;if(!r.sites||!Array.isArray(r.sites))return!1;if(r.sites.length>0){const o=r.sites[0];if(!o.key||!o.name||!o.api)return!1}return!0}catch(n){return console.error("验证配置地址失败:",n),!1}}async getConfigData(t=!1){try{if(!this.configUrl)throw new Error("未设置配置地址");const n=Date.now(),r=this.configData&&this.lastFetchTime&&n-this.lastFetchTime{try{this.addSite(r)?n.success++:(n.failed++,n.errors.push(`第${o+1}个站点添加失败`))}catch(a){n.failed++,n.errors.push(`第${o+1}个站点添加失败: ${a.message}`)}}),console.log("批量导入站点完成:",n),n}exportSites(){return this.getAllSites()}async testSiteConnection(t){const n=this.sites.get(t);if(!n)throw new Error("站点不存在");try{const r=await GSt(n.key,"",{method:"GET",params:{test:!0}});return{success:!0,message:"连接成功",responseTime:Date.now(),data:r}}catch(r){return{success:!1,message:r.message||"连接失败",error:r}}}getSiteStats(){const t=this.getAllSites();return{total:t.length,searchable:t.filter(n=>n.searchable).length,filterable:t.filter(n=>n.filterable).length,quickSearch:t.filter(n=>n.quickSearch).length,byType:this.groupSitesByType(t)}}groupSitesByType(t){const n={};return t.forEach(r=>{const o=r.type||0;n[o]||(n[o]=[]),n[o].push(r)}),n}searchSites(t){if(!t||t.trim().length===0)return this.getAllSites();const n=t.trim().toLowerCase();return this.getAllSites().filter(r=>r.name.toLowerCase().includes(n)||r.key.toLowerCase().includes(n)||r.api&&r.api.toLowerCase().includes(n))}formatSiteInfo(t){const n=jSt();return Object.keys(n).forEach(r=>{t[r]!==void 0&&(n[r]=t[r])}),n.searchable=t.searchable?1:0,n.quickSearch=t.quickSearch?1:0,n.filterable=t.filterable?1:0,n.type=parseInt(t.type)||0,n.order=parseInt(t.order)||0,n}loadSitesFromStorage(){try{const t=localStorage.getItem("drplayer_sites"),n=localStorage.getItem("drplayer_current_site");t&&JSON.parse(t).forEach(o=>{this.sites.set(o.key,o)}),n&&(this.currentSite=this.sites.get(n)),console.log("从本地存储加载站点配置成功")}catch(t){console.error("加载站点配置失败:",t)}}saveSitesToStorage(){try{const t=this.getAllSites();localStorage.setItem("drplayer_sites",JSON.stringify(t)),this.currentSite?localStorage.setItem("drplayer_current_site",this.currentSite.key):localStorage.removeItem("drplayer_current_site"),console.log("保存站点配置到本地存储成功")}catch(t){console.error("保存站点配置失败:",t)}}emitSiteChange(t){console.log("站点已切换:",t.name),typeof window<"u"&&window.dispatchEvent(new CustomEvent("siteChange",{detail:{site:t}}))}clearAllSites(){this.sites.clear(),this.currentSite=null,this.saveSitesToStorage(),console.log("已清空所有站点配置")}async initializeFromConfig(){try{gl.getConfigStatus().hasConfigUrl&&await this.loadSitesFromConfig()}catch(t){console.error("从配置服务初始化失败:",t)}}async loadSitesFromConfig(t=!1){try{const n=await gl.getSites(t);if(n&&n.length>0){const r=this.currentSite,o=Array.from(this.sites.values()).filter(a=>a.isLocal);return this.sites.clear(),o.forEach(a=>{this.sites.set(a.key,a)}),n.forEach(a=>{const s=this.formatSiteInfo(a);s.isFromConfig=!0,this.sites.set(s.key,s)}),this.handleSmartSiteSwitch(r),this.saveSitesToStorage(),console.log(`从配置加载了 ${n.length} 个站点`),this.emitSitesUpdate(),n}return[]}catch(n){throw console.error("从配置加载站点失败:",n),n}}async refreshConfig(){try{return await this.loadSitesFromConfig(!0)}catch(t){throw console.error("刷新配置失败:",t),t}}getConfigStatus(){return gl.getConfigStatus()}async setConfigUrl(t){try{const n=await gl.setConfigUrl(t);return n&&await this.loadSitesFromConfig(!0),n}catch(n){throw console.error("设置配置地址失败:",n),n}}getConfigUrl(){return gl.getConfigUrl()}emitSitesUpdate(){typeof window<"u"&&window.dispatchEvent(new CustomEvent("sitesUpdate",{detail:{sites:this.getAllSites(),count:this.sites.size}}))}handleSmartSiteSwitch(t){let n=!1;if(t&&t.key)if(this.sites.has(t.key))this.currentSite=this.sites.get(t.key),console.log("保持当前源:",this.currentSite.name);else{const o=this.getAllSites();if(o.length>0){const a=o.find(s=>s.type===4)||o[0];this.currentSite=a,n=!0,console.log("自动切换到新源:",this.currentSite.name),this.emitSiteChange(this.currentSite)}}else{const r=this.getAllSites();if(r.length>0){const o=r.find(a=>a.type===4)||r[0];this.currentSite=o,n=!0,console.log("设置默认源:",this.currentSite.name),this.emitSiteChange(this.currentSite)}}n&&this.emitReloadSource()}emitReloadSource(){typeof window<"u"&&(window.dispatchEvent(new CustomEvent("reloadSource",{detail:{site:this.currentSite,timestamp:Date.now()}})),console.log("触发重载源事件"))}}const _s=new qSt,YSt={key:0,class:"filter-section"},XSt={class:"filter-content"},ZSt={class:"filter-header-with-reset"},JSt={class:"filter-group-row"},QSt={class:"filter-group-title"},e6t={class:"filter-options-container"},t6t={class:"filter-options"},n6t={__name:"FilterSection",props:{filters:{type:Array,default:null},selectedFilters:{type:Object,default:()=>({})},visible:{type:Boolean,default:!1}},emits:["update:visible","update:selectedFilters","toggle-filter","reset-filters"],setup(e,{emit:t}){const n=e,r=t,o=j(()=>n.selectedFilters&&Object.keys(n.selectedFilters).length>0),a=(c,d)=>n.selectedFilters?.[c]===d,s=(c,d,h)=>{r("toggle-filter",{filterKey:c,filterValue:d,filterName:h})},l=()=>{r("reset-filters")};return(c,d)=>{const h=Ie("a-button"),p=Ie("a-tag");return e.filters?(z(),Q("div",YSt,[O(Cs,{name:"collapse"},{default:de(()=>[Ai(I("div",XSt,[I("div",ZSt,[o.value?(z(),Ye(h,{key:0,type:"text",size:"small",onClick:l,class:"filter-reset-btn",title:"重置所有筛选条件"},{icon:de(()=>[O(et(Ed))]),_:1})):Le("",!0)]),(z(!0),Q(Nt,null,gn(e.filters,v=>(z(),Q("div",{key:v.key,class:"filter-group"},[I("div",JSt,[I("div",QSt,ze(v.name),1),I("div",e6t,[I("div",t6t,[(z(!0),Q(Nt,null,gn(v.value,g=>(z(),Ye(p,{key:g.v,color:a(v.key,g.v)?"green":"",checkable:!0,checked:a(v.key,g.v),onCheck:y=>s(v.key,g.v,g.n),class:"filter-option-tag"},{default:de(()=>[We(ze(g.n),1)]),_:2},1032,["color","checked","onCheck"]))),128))])])])]))),128))],512),[[Qo,e.visible]])]),_:1})])):Le("",!0)}}},r6t=xr(n6t,[["__scopeId","data-v-90bc92fe"]]),i6t={class:"category-nav-container"},o6t={key:0,class:"special-category-header"},s6t={class:"special-category-title"},a6t={class:"category-name"},l6t=["onClick"],u6t={class:"category-name"},c6t={__name:"CategoryNavigation",props:{classList:{type:Object,default:()=>({})},trigger:{type:String,default:"click"},hasRecommendVideos:{type:Boolean,default:!1},activeKey:{type:String,default:""},filters:{type:Object,default:()=>({})},selectedFilters:{type:Object,default:()=>({})},filterVisible:{type:Object,default:()=>({})},specialCategoryState:{type:Object,default:()=>({isActive:!1,categoryData:null,originalClassList:null,originalRecommendVideos:null})}},emits:["tab-change","open-category-modal","toggle-filter","reset-filters","close-special-category","filter-visible-change"],setup(e,{emit:t}){const n=e,r=t,o=()=>n.hasRecommendVideos?"recommendTuijian404":n.classList?.class&&n.classList.class.length>0?n.classList.class[0].type_id:"recommendTuijian404",a=fe(n.activeKey||o()),s=fe(null);let l=null;const c=fe(!1);Rt(()=>[n.hasRecommendVideos,n.classList,n.activeKey],()=>{const C=n.activeKey||o();a.value!==C&&(a.value=C,n.activeKey||d(C))},{immediate:!0}),Rt(a,(C,x)=>{c.value&&x&&x!==C&&n.filterVisible[x]&&r("filter-visible-change",{categoryId:x,visible:!1})},{flush:"post"});const d=C=>{a.value=C,r("tab-change",C)},h=C=>{if(p(C)){const x=!n.filterVisible[C];r("filter-visible-change",{categoryId:C,visible:x})}},p=C=>{const x=n.filters[C];return x&&Object.keys(x).length>0},v=C=>n.filters[C]||null,g=C=>{r("toggle-filter",C)},y=()=>{r("reset-filters")},S=()=>{r("open-category-modal")},k=()=>{console.log("关闭特殊分类"),r("close-special-category")};return bn(()=>{const C=s.value;if(!C)return;const x=C.querySelector(".arco-tabs-nav-tab-list");x&&(l=E=>{Math.abs(E.deltaY)>Math.abs(E.deltaX)&&(x.scrollLeft+=E.deltaY,E.preventDefault())},x.addEventListener("wheel",l,{passive:!1}),setTimeout(()=>{c.value=!0},100))}),Io(()=>{const x=s.value?.querySelector?.(".arco-tabs-nav-tab-list");x&&l&&x.removeEventListener("wheel",l)}),(C,x)=>{const E=Ie("a-tab-pane"),_=Ie("a-tabs");return z(),Q("div",i6t,[I("div",{class:"category-nav-wrapper",ref_key:"navWrapperRef",ref:s},[e.specialCategoryState.isActive?(z(),Q("div",o6t,[I("div",s6t,[I("span",a6t,ze(e.specialCategoryState.categoryData?.type_name||"特殊分类"),1),x[1]||(x[1]=I("span",{class:"category-type"},"(源内搜索)",-1))])])):(z(),Ye(_,{key:1,"active-key":a.value,"onUpdate:activeKey":x[0]||(x[0]=T=>a.value=T),type:"line",position:"top",editable:!1,onChange:d},{default:de(()=>[e.hasRecommendVideos?(z(),Ye(E,{key:"recommendTuijian404"},{title:de(()=>[...x[2]||(x[2]=[I("span",null,"推荐",-1)])]),_:1})):Le("",!0),(z(!0),Q(Nt,null,gn(e.classList?.class||[],T=>(z(),Ye(E,{key:T.type_id},{title:de(()=>[I("div",{class:"category-tab-title",onClick:us(D=>T.type_id===a.value&&p(T.type_id)?h(T.type_id):d(T.type_id),["stop"])},[I("span",u6t,ze(T.type_name),1),T.type_id===a.value&&p(T.type_id)?(z(),Ye(et(jH),{key:0,class:ue(["filter-icon",{"filter-icon-active":e.filterVisible[T.type_id]}])},null,8,["class"])):Le("",!0)],8,l6t)]),_:2},1024))),128))]),_:1},8,["active-key"])),e.specialCategoryState.isActive?(z(),Q("div",{key:2,class:"special-category-close",onClick:k},[O(et(ds)),x[3]||(x[3]=I("span",null,"返回",-1))])):(z(),Q("div",{key:3,class:"category-manage",onClick:S},[O(et(Ave))]))],512),v(a.value)&&n.filterVisible[a.value]?(z(),Ye(r6t,{key:0,filters:v(a.value),selectedFilters:e.selectedFilters[a.value]||{},visible:!0,onToggleFilter:g,onResetFilters:y},null,8,["filters","selectedFilters"])):Le("",!0)])}}},d6t=xr(c6t,[["__scopeId","data-v-9076ce57"]]),f6t="modulepreload",h6t=function(e){return"/apps/drplayer/"+e},Ple={},Of=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){let d=function(h){return Promise.all(h.map(p=>Promise.resolve(p).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};var s=d;document.getElementsByTagName("link");const l=document.querySelector("meta[property=csp-nonce]"),c=l?.nonce||l?.getAttribute("nonce");o=d(n.map(h=>{if(h=h6t(h),h in Ple)return;Ple[h]=!0;const p=h.endsWith(".css"),v=p?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${v}`))return;const g=document.createElement("link");if(g.rel=p?"stylesheet":f6t,p||(g.as="script"),g.crossOrigin="",g.href=h,c&&g.setAttribute("nonce",c),document.head.appendChild(g),p)return new Promise((y,S)=>{g.addEventListener("load",y),g.addEventListener("error",()=>S(new Error(`Unable to preload CSS for ${h}`)))})}))}function a(l){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=l,window.dispatchEvent(c),!c.defaultPrevented)throw l}return o.then(l=>{for(const c of l||[])c.status==="rejected"&&a(c.reason);return t().catch(a)})},p6t={name:"ActionDialog",props:{visible:{type:Boolean,default:!1},title:{type:String,default:""},width:{type:[Number,String],default:400},height:{type:[Number,String],default:"auto"},bottom:{type:Number,default:0},canceledOnTouchOutside:{type:Boolean,default:!0},dimAmount:{type:Number,default:.45},showClose:{type:Boolean,default:!0},escapeToClose:{type:Boolean,default:!0},customClass:{type:String,default:""},module:{type:String,default:""},extend:{type:[Object,String],default:()=>({})},apiUrl:{type:String,default:""}},emits:["update:visible","close","open","opened","closed","toast","reset"],setup(e,{emit:t}){const n=fe(!1),r=fe(!1),o=()=>{r.value=window.innerWidth<=768},a=j(()=>{const p={};return r.value?(p.width="95vw",p.maxWidth="95vw",p.margin="0 auto"):(e.width&&(p.width=typeof e.width=="number"?`${e.width}px`:e.width,p.maxWidth="90vw"),e.height&&e.height!=="auto"&&(p.height=typeof e.height=="number"?`${e.height}px`:e.height)),e.bottom>0&&(p.marginBottom=`${e.bottom}px`),p}),s=j(()=>{const p={};return e.height&&e.height!=="auto"&&(p.maxHeight="calc(100% - 120px)",p.overflowY="auto"),p}),l=()=>{e.canceledOnTouchOutside&&c()},c=async()=>{n.value||(t("close"),n.value=!0,await new Promise(p=>setTimeout(p,300)),t("update:visible",!1),n.value=!1,t("closed"))},d=p=>{p.key==="Escape"&&e.escapeToClose&&e.visible&&c()};return Rt(()=>e.visible,p=>{p?(t("open"),o(),Cn(()=>{t("opened")}),document.addEventListener("keydown",d),window.addEventListener("resize",o),document.body.style.overflow="hidden"):(document.removeEventListener("keydown",d),window.removeEventListener("resize",o),document.body.style.overflow="")},{immediate:!0}),{isClosing:n,isMobile:r,dialogStyle:a,contentStyle:s,handleMaskClick:l,handleClose:c,cleanup:()=>{document.removeEventListener("keydown",d),window.removeEventListener("resize",o),document.body.style.overflow=""}}},beforeUnmount(){this.cleanup()}},v6t={key:1,class:"action-dialog-header"},m6t={class:"action-dialog-title"},g6t={key:2,class:"action-dialog-footer"};function y6t(e,t,n,r,o,a){return z(),Ye(qm,{to:"body"},[O(Cs,{name:"action-mask",appear:""},{default:de(()=>[n.visible?(z(),Q("div",{key:0,class:ue(["action-mask modal-backdrop",{closing:r.isClosing}]),style:Ke({"--dim-amount":n.dimAmount}),onClick:t[2]||(t[2]=(...s)=>r.handleMaskClick&&r.handleMaskClick(...s))},[O(Cs,{name:"action-dialog",appear:""},{default:de(()=>[n.visible&&!r.isClosing?(z(),Q("div",{key:0,class:ue(["action-dialog glass-effect card-modern animate-bounce-in",[n.customClass,{"action-dialog-mobile":r.isMobile}]]),style:Ke(r.dialogStyle),onClick:t[1]||(t[1]=us(()=>{},["stop"]))},[t[4]||(t[4]=I("div",{class:"action-dialog-bg gradient-primary"},null,-1)),n.showClose?(z(),Q("button",{key:0,class:"action-dialog-close btn-modern-icon",onClick:t[0]||(t[0]=(...s)=>r.handleClose&&r.handleClose(...s)),title:"关闭"},[...t[3]||(t[3]=[I("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),I("line",{x1:"6",y1:"6",x2:"18",y2:"18"})],-1)])])):Le("",!0),n.title||e.$slots.header?(z(),Q("div",v6t,[vt(e.$slots,"header",{},()=>[I("h3",m6t,ze(n.title),1)],!0)])):Le("",!0),I("div",{class:"action-dialog-content",style:Ke(r.contentStyle)},[vt(e.$slots,"default",{},void 0,!0)],4),e.$slots.footer?(z(),Q("div",g6t,[vt(e.$slots,"footer",{},void 0,!0)])):Le("",!0)],6)):Le("",!0)]),_:3})],6)):Le("",!0)]),_:3})])}const ep=xr(p6t,[["render",y6t],["__scopeId","data-v-36eb5ad8"]]),Ei={INPUT:"input",EDIT:"edit",MULTI_INPUT:"multiInput",MULTI_INPUT_X:"multiInputX",MENU:"menu",SELECT:"select",MSGBOX:"msgbox",WEBVIEW:"webview",HELP:"help",SPECIAL:"special"},Ah={PARSE_ERROR:"PARSE_ERROR",VALIDATION_ERROR:"VALIDATION_ERROR",NETWORK_ERROR:"NETWORK_ERROR",TIMEOUT_ERROR:"TIMEOUT_ERROR",USER_CANCEL:"USER_CANCEL"},vi={OK_CANCEL:0,OK_ONLY:1,CANCEL_ONLY:2,CUSTOM:3},Kc=e=>e==null?vi.OK_CANCEL:Object.values(vi).includes(e)?e:vi.CUSTOM,Ih=(e,t,n=null)=>({type:e,message:t,details:n}),vG=e=>{try{return typeof e=="string"?JSON.parse(e):e&&typeof e=="object"&&e.config?e.config:e}catch(t){throw Ih(Ah.PARSE_ERROR,"无法解析Action配置",t)}},y3e=e=>!e||typeof e!="object"?!1:!!(e.actionId==="__copy__"&&e.content||e.actionId&&e.actionId.startsWith("__")&&e.actionId.endsWith("__")),b6t=e=>{if(e.actionId==="__copy__"){if(!e.content)throw Ih(Ah.VALIDATION_ERROR,"剪贴板操作必须包含content字段");return!0}if(e.actionId&&e.actionId.startsWith("__")&&e.actionId.endsWith("__"))return!0;throw Ih(Ah.VALIDATION_ERROR,`未知的专项动作类型: ${e.actionId}`)},b3e=e=>{if(!e||typeof e!="object")throw Ih(Ah.VALIDATION_ERROR,"Action配置必须是一个对象");if(!e.actionId)throw Ih(Ah.VALIDATION_ERROR,"actionId是必需的");if(console.log("config:",e),y3e(e))return b6t(e);if(!e.type)throw Ih(Ah.VALIDATION_ERROR,"type字段是必需的(除非是专项动作)");if(!Object.values(Ei).includes(e.type))throw Ih(Ah.VALIDATION_ERROR,`不支持的Action类型: ${e.type}`);return!0},l0=e=>{if(!e)return[];try{if(e.match(/^\[(?:folder|calendar|file|image)\]$/)){const t=e.slice(1,-1).toLowerCase();return[{name:{calendar:"📅 选择日期",file:"📄 选择文件",folder:"📁 选择文件夹",image:"🖼️ 选择图片"}[t]||e,value:e}]}if(e.startsWith("[")&&e.includes("]")){const t=e.indexOf("]"),n=e.substring(1,t),r=e.substring(t+1);return r?r.split(",").map(o=>{const a=o.trim();return{name:a,value:a}}).filter(o=>o.name):[{name:n,value:e}]}if(e.startsWith("[")&&e.endsWith("]")||e.startsWith("{")&&e.endsWith("}"))try{return JSON.parse(e)}catch{}return e.includes(":=")?e.split(",").map(t=>{const n=t.trim(),[r,o]=n.split(":=");return{name:r?r.trim():n,value:o?o.trim():n}}).filter(t=>t.name):e.split("|").map(t=>{const[n,r]=t.split("=");return{name:n||t,value:r||t}})}catch(t){return console.warn("解析selectData失败:",t),[]}},_3e=(e,t="200x200")=>{const[n,r]=t.split("x").map(o=>parseInt(o)||200);return`https://api.qrserver.com/v1/create-qr-code/?size=${n}x${r}&data=${encodeURIComponent(e)}`},S3e=(e,t)=>{let n;return function(...o){const a=()=>{clearTimeout(n),e(...o)};clearTimeout(n),n=setTimeout(a,t)}},_6t=Ym(()=>Of(()=>Promise.resolve().then(()=>eNt),void 0)),S6t=Ym(()=>Of(()=>Promise.resolve().then(()=>pFt),void 0)),k6t=Ym(()=>Of(()=>Promise.resolve().then(()=>pjt),void 0)),x6t=Ym(()=>Of(()=>Promise.resolve().then(()=>oVt),void 0)),C6t=Ym(()=>Of(()=>Promise.resolve().then(()=>PVt),void 0)),w6t=Ym(()=>Of(()=>Promise.resolve().then(()=>jzt),void 0)),E6t={name:"ActionRenderer",components:{ActionDialog:ep,InputAction:_6t,MultiInputAction:S6t,MenuAction:k6t,MsgBoxAction:x6t,WebViewAction:C6t,HelpAction:w6t},props:{actionData:{type:[String,Object],default:null},visible:{type:Boolean,default:!0},autoShow:{type:Boolean,default:!0},module:{type:String,default:""},extend:{type:[Object,String],default:()=>({})},apiUrl:{type:String,default:""}},emits:["action","close","error","success","special-action"],setup(e,{emit:t}){const n=fe(null),r=fe(null),o=fe(!1),a=fe(e.visible),s={[Ei.INPUT]:"InputAction",[Ei.EDIT]:"InputAction",[Ei.MULTI_INPUT]:"MultiInputAction",[Ei.MULTI_INPUT_X]:"MultiInputAction",[Ei.MENU]:"MenuAction",[Ei.SELECT]:"MenuAction",[Ei.MSGBOX]:"MsgBoxAction",[Ei.WEBVIEW]:"WebViewAction",[Ei.HELP]:"HelpAction"},l=j(()=>{if(!n.value)return console.log("ActionRenderer currentComponent: parsedConfig.value 为空"),null;const T=s[n.value.type]||null;return console.log("ActionRenderer currentComponent:",{type:n.value.type,component:T,parsedConfig:n.value}),T}),c=async T=>{try{if(console.log("ActionRenderer parseConfig 开始解析:",T),!T){n.value=null;return}const D=vG(T);if(console.log("ActionRenderer parseConfig 解析后的配置:",D),b3e(D),y3e(D)){console.log("检测到特殊动作,立即执行:",D),await d(D);return}n.value=D,r.value=null,console.log("ActionRenderer parseConfig 设置 parsedConfig.value:",n.value),e.autoShow?(a.value=!0,console.log("ActionRenderer parseConfig 设置 isVisible.value = true, autoShow:",e.autoShow)):console.log("ActionRenderer parseConfig autoShow 为 false,不自动显示")}catch(D){console.error("解析Action配置失败:",D),r.value=D,n.value=null}},d=async T=>{const{actionId:D}=T;switch(D){case"__self_search__":if(console.log("🚀 [ActionRenderer DEBUG] 处理__self_search__专项动作"),console.log("🚀 [ActionRenderer DEBUG] actionData:",JSON.stringify(T,null,2)),!T.tid){console.error("🚀 [ActionRenderer ERROR] 源内搜索参数不完整:缺少tid"),ar("源内搜索参数不完整:缺少tid","error"),v();break}const P={tid:T.tid,type_id:T.tid,name:T.name,type_name:T.name||`搜索: ${T.tid}`,isSpecialCategory:!0,actionData:T};console.log("🚀 [ActionRenderer DEBUG] 构造的 specialCategory:",JSON.stringify(P,null,2)),console.log("🚀 [ActionRenderer DEBUG] 即将触发 special-action 事件"),ar(T.msg||"执行源内搜索","info"),t("special-action","__self_search__",P),console.log("🚀 [ActionRenderer DEBUG] special-action 事件已触发,关闭组件"),v();break;case"__detail__":ar("跳转到详情页","info"),t("special-action","detail",T),v();break;case"__ktvplayer__":ar("启动KTV播放","info"),t("special-action","ktv-player",T),v();break;case"__refresh_list__":ar("刷新列表","info"),t("special-action","refresh-list",T),v();break;case"__copy__":if(T.content)try{await navigator.clipboard.writeText(T.content),ar("已复制到剪切板","success")}catch{ar("复制失败","error")}v();break;case"__keep__":T.msg&&ar(T.msg,"info"),T.reset&&(n.value=null);break;default:ar(`未知的专项动作: ${D}`,"warning"),v();break}},h=async T=>{if(n.value)try{o.value=!0;const D={action:n.value.actionId,value:typeof T=="object"?JSON.stringify(T):T};e.extend&&(D.extend=e.extend),e.apiUrl&&(D.apiUrl=e.apiUrl),console.log("ActionRenderer准备调用T4接口:",{module:e.module,actionData:D,apiUrl:e.apiUrl});let P=null;if(e.module?(P=await x(e.module,D),console.log("T4接口返回结果:",P)):(P=await t("action",n.value.actionId,T),console.log("父组件处理结果:",P)),P){if(typeof P=="string")try{P=JSON.parse(P)}catch{ar(P,"success"),t("success",T),v();return}if(typeof P=="object"){if(console.log("处理API返回的对象结果:",P),P.error)throw Ih(Ah.NETWORK_ERROR,P.error);if(P.toast&&ar(P.toast,"success"),(P.message||P.msg)&&ar(P.message||P.msg,"success"),P.action){console.log("检测到动态action,重新解析:",P.action),await c(P.action);return}if(P.actionId){console.log("检测到专项动作:",P.actionId),await d(P);return}if(P.code!==void 0)if(P.code===0||P.code===200){if(P.data&&typeof P.data=="object"){const M={...P.data};if(M.action||M.actionId){if(console.log("在data字段中检测到action:",M),M.action){await c(M.action);return}if(M.actionId){await d(M);return}}}ar(P.message||P.msg||"操作成功","success")}else throw Ih(Ah.NETWORK_ERROR,P.message||P.msg||`操作失败,错误码: ${P.code}`)}}t("success",T),v()}catch(D){console.error("执行Action失败:",D),r.value=D,ar(D.message||"操作失败","error")}finally{o.value=!1}},p=()=>{v()},v=()=>{a.value=!1,n.value=null,t("close")},g=async(T,D)=>{if(typeof T=="object"&&T.type){console.log("ActionRenderer接收到新的动作配置:",T),a.value=!1,await new Promise(P=>setTimeout(P,100)),await c(T);return}await h({action:T,value:D})},y=()=>{r.value=null},S=(T,D)=>{console.log("🔗 [ActionRenderer DEBUG] 接收到子组件的 special-action 事件"),console.log("🔗 [ActionRenderer DEBUG] actionType:",T),console.log("🔗 [ActionRenderer DEBUG] actionData:",JSON.stringify(D,null,2)),console.log("🔗 [ActionRenderer DEBUG] 向父组件传递 special-action 事件"),t("special-action",T,D),v()};Rt(()=>e.actionData,async T=>{await c(T)},{immediate:!0}),Rt(()=>e.visible,T=>{a.value=T});const k=async T=>{T&&await c(T),a.value=!0},C=()=>{a.value=!1},x=async(T,D)=>{try{return o.value=!0,await t("action",T,D)}catch(P){throw r.value=P,P}finally{o.value=!1}};return{parsedConfig:n,currentComponent:l,error:r,isLoading:o,isVisible:a,handleSubmit:h,handleCancel:p,handleClose:v,handleAction:g,handleToast:(T,D="success")=>{ar(T,D)},handleReset:()=>{console.log("InputAction触发重置事件")},handleSpecialActionFromChild:S,clearError:y,show:k,hide:C,executeAction:x}}},T6t={class:"action-renderer"},A6t={class:"action-error"},I6t={key:0};function L6t(e,t,n,r,o,a){const s=Ie("ActionDialog");return z(),Q("div",T6t,[r.parsedConfig?(z(),Ye(Wa(r.currentComponent),{key:0,config:r.parsedConfig,visible:r.isVisible,module:n.module,extend:n.extend,"api-url":n.apiUrl,onSubmit:r.handleSubmit,onCancel:r.handleCancel,onClose:r.handleClose,onAction:r.handleAction,onToast:r.handleToast,onReset:r.handleReset,onSpecialAction:r.handleSpecialActionFromChild},null,40,["config","visible","module","extend","api-url","onSubmit","onCancel","onClose","onAction","onToast","onReset","onSpecialAction"])):Le("",!0),r.error?(z(),Ye(s,{key:1,visible:!!r.error,title:"错误",width:"400",onClose:r.clearError},{footer:de(()=>[I("button",{class:"action-button action-button-primary",onClick:t[0]||(t[0]=(...l)=>r.clearError&&r.clearError(...l))}," 确定 ")]),default:de(()=>[I("div",A6t,[I("p",null,[I("strong",null,ze(r.error.type),1)]),I("p",null,ze(r.error.message),1),r.error.details?(z(),Q("pre",I6t,ze(JSON.stringify(r.error.details,null,2)),1)):Le("",!0)])]),_:1},8,["visible","onClose"])):Le("",!0),r.isLoading?(z(),Ye(s,{key:2,visible:r.isLoading,title:"处理中",width:"300","show-close":!1},{default:de(()=>[...t[1]||(t[1]=[I("div",{class:"action-loading"}," 正在处理,请稍候... ",-1)])]),_:1},8,["visible"])):Le("",!0)])}const gS=xr(E6t,[["render",L6t],["__scopeId","data-v-3c8cada7"]]);function k3e(e){if(!e||typeof e!="string")return"icon-file";const t=e.toLowerCase().split(".").pop(),n={doc:"icon-file_word",docx:"icon-file_word",xls:"icon-file_excel",xlsx:"icon-file_excel",ppt:"icon-file_ppt",pptx:"icon-file_ppt",pdf:"icon-file_pdf",txt:"icon-file_txt",rtf:"icon-file_txt",md:"icon-file_txt"},r={jpg:"icon-file_img",jpeg:"icon-file_img",png:"icon-file_img",gif:"icon-file_img",bmp:"icon-file_img",svg:"icon-file_img",webp:"icon-file_img",ico:"icon-file_img"},o={mp4:"icon-file_video",avi:"icon-file_video",mkv:"icon-file_video",mov:"icon-file_video",wmv:"icon-file_video",flv:"icon-file_video",webm:"icon-file_video",m4v:"icon-file_video",rmvb:"icon-file_video",rm:"icon-file_video"},a={mp3:"icon-file_music",wav:"icon-file_music",flac:"icon-file_music",aac:"icon-file_music",ogg:"icon-file_music",wma:"icon-file_music",m4a:"icon-file_music"},s={zip:"icon-file_zip",rar:"icon-file_zip","7z":"icon-file_zip",tar:"icon-file_zip",gz:"icon-file_zip",bz2:"icon-file_zip"},l={exe:"icon-file_exe",msi:"icon-file_exe",dmg:"icon-file_exe",pkg:"icon-file_exe",deb:"icon-file_exe",rpm:"icon-file_exe"},c={html:"icon-file_html",htm:"icon-file_html",css:"icon-file_code",js:"icon-file_code",ts:"icon-file_code",vue:"icon-file_code",jsx:"icon-file_code",tsx:"icon-file_code",php:"icon-file_code",py:"icon-file_code",java:"icon-file_code",cpp:"icon-file_code",c:"icon-file_code",cs:"icon-file_code",go:"icon-file_code",rs:"icon-file_code",swift:"icon-file_code",kt:"icon-file_code",rb:"icon-file_code",json:"icon-file_code",xml:"icon-file_code",yaml:"icon-file_code",yml:"icon-file_code"},d={ai:"icon-file_ai",psd:"icon-file_psd",sketch:"icon-file_psd",fig:"icon-file_psd",xd:"icon-file_psd"},h={dwg:"icon-file_cad",dxf:"icon-file_cad",step:"icon-file_cad",iges:"icon-file_cad"},p={swf:"icon-file_flash",fla:"icon-file_flash"},v={iso:"icon-file_iso",img:"icon-file_iso",bin:"icon-file_iso"},g={torrent:"icon-file_bt"},y={cloud:"icon-file_cloud",gdoc:"icon-file_cloud",gsheet:"icon-file_cloud",gslides:"icon-file_cloud"};return n[t]?n[t]:r[t]?r[t]:o[t]?o[t]:a[t]?a[t]:s[t]?s[t]:l[t]?l[t]:c[t]?c[t]:d[t]?d[t]:h[t]?h[t]:p[t]?p[t]:v[t]?v[t]:g[t]?g[t]:y[t]?y[t]:"icon-file"}function D6t(e){return e&&e.vod_tag&&e.vod_tag.includes("folder")}function P6t(e){return e&&e.vod_tag&&!e.vod_tag.includes("folder")}const R6t=["onClick"],M6t={class:"video_list_item_img"},O6t={key:1,class:"folder-icon-container"},$6t={key:2,class:"file-icon-container"},B6t={style:{width:"30%"}},N6t=["href"],F6t=["innerHTML"],j6t={class:"video_list_item_title"},V6t={class:"title-text"},z6t={key:0,class:"loading-container"},U6t={key:1,class:"no-more-data"},H6t={key:2,class:"empty-state"},W6t={__name:"VideoGrid",props:{videos:{type:Array,default:()=>[]},loading:{type:Boolean,default:!1},hasMore:{type:Boolean,default:!1},statsText:{type:String,default:""},showStats:{type:Boolean,default:!1},sourceRoute:{type:Object,default:()=>({})},module:{type:String,default:""},extend:{type:[Object,String],default:()=>({})},apiUrl:{type:String,default:""},folderState:{type:Object,default:null}},emits:["load-more","scroll-bottom","refresh-list","special-action","folder-navigate"],setup(e,{expose:t,emit:n}){const r=e,o=n,a=el(),s=iA(),l=fe(null),c=fe(null);let d=600;const h=fe(0);let p=0,v=!1,g=null;const y=j(()=>(h.value,{height:d+"px",overflow:"auto"})),S=()=>{v||M||(v=!0,Cn(()=>{try{const Z=l.value;if(!Z)return;const H=Z.querySelector(".arco-scrollbar-container");if(!H)return;p=H.scrollHeight;const q=H.clientHeight,ee=window.innerHeight||document.documentElement.clientHeight||600,ne=Math.max(ee-200,400);if(p<=q&&r.videos&&r.videos.length>0)if(r.hasMore!==!1){const re=Math.min(670,p-10);re>470&&d>re?(d=re,h.value++,console.log("[DEBUG] 调整容器高度以产生滚动条:",{contentHeight:p,clientHeight:q,newContainerHeight:d}),g&&clearTimeout(g),g=setTimeout(()=>{k()},100)):(console.log("[DEBUG] 容器已达最小高度,直接触发加载更多"),k())}else console.log("[DEBUG] 没有更多数据可加载,保持当前状态");else p>q&&d=ne*.8&&(d=ne,h.value++,console.log("[DEBUG] 恢复容器高度到理想高度:",{contentHeight:p,clientHeight:q,idealHeight:ne,newContainerHeight:d}))}catch(Z){console.error("checkContentHeight error:",Z)}finally{v=!1}}))},k=()=>{if(!(M||$>=L))try{const Z=l.value;if(!Z)return;const H=Z.querySelector(".arco-scrollbar-container");if(!H)return;const q=H.scrollHeight,ee=H.clientHeight;q<=ee&&r.videos&&r.videos.length>0&&(console.log("[DEBUG] 自动触发加载更多数据 - 内容高度不足"),o("load-more"))}catch(Z){console.error("checkAutoLoadMore error:",Z)}},C=()=>{if(!M)try{const Z=l.value;if(!Z)return;const H=Z.querySelector(".arco-scrollbar-container");if(!H)return;const q=H.scrollHeight,ee=H.clientHeight,ne=window.innerHeight||document.documentElement.clientHeight||600,ae=Math.max(ne-200,400);q>ae*.8&&d{if(Z&&Z.vod_id){if(Z.vod_tag&&Z.vod_tag.includes("folder")){o("folder-navigate",{vod_id:Z.vod_id,vod_name:Z.vod_name,vod_tag:Z.vod_tag});return}if(Z.vod_tag==="action")try{const q=JSON.parse(Z.vod_id);_.value=q,E.value=!0;return}catch{await D(Z.vod_id);return}s.setLastClicked(Z.vod_id,Z.vod_name);const H={name:Z.vod_name,pic:Z.vod_pic,year:Z.vod_year,area:Z.vod_area,type:Z.vod_type,remarks:Z.vod_remarks,content:Z.vod_content,actor:Z.vod_actor,director:Z.vod_director,sourceRouteName:r.sourceRoute?.name||"",sourceRouteParams:JSON.stringify(r.sourceRoute?.params||{}),sourceRouteQuery:JSON.stringify(r.sourceRoute?.query||{}),sourcePic:Z.vod_pic};r.folderState&&r.folderState.isActive&&(H.folderState=JSON.stringify(r.folderState)),a.push({name:"VideoDetail",params:{id:Z.vod_id},query:H})}},D=async Z=>{try{const H=await Kl.executeT4Action(r.module||"default",Z,{apiUrl:r.apiUrl,extend:r.extend.ext});H&&H.action?(_.value=H.action,E.value=!0):H?ar(H,"success"):Et.error({content:`无法获取动作配置: ${Z}`,duration:3e3,closable:!0})}catch(H){console.error("T4 action执行失败:",H),Et.error({content:`动作执行失败: ${H.message}`,duration:3e3,closable:!0})}},P=/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor);let M=!1,$=0;const L=P?3:5;setInterval(()=>{$=0},1e3);const B=()=>{if(!(M||$>=L)){$++,M=!0;try{if(!l.value)return;const H=window.innerHeight||document.documentElement.clientHeight||600,q=Math.max(H-200,400);Math.abs(d-q)>50&&(d=q,h.value++)}catch(Z){console.error("updateScrollAreaHeight error:",Z)}finally{setTimeout(()=>{M=!1},100)}}},F=Z=>{const H=Z?.target||Z?.srcElement,q=H?.closest?H.closest(".arco-scrollbar-container"):H;if(!q)return;const ee=q.scrollHeight-q.clientHeight,ne=q.scrollTop;ee-ne<50&&(o("scroll-bottom"),o("load-more"),setTimeout(()=>{C()},200))},W=()=>{if(!(M||$>=L))try{const Z=document.querySelectorAll(".title-text");Z&&Z.length>0&&Z.forEach(H=>{H&&H.scrollWidth&&H.clientWidth&&H.scrollWidth>H.clientWidth&&H.setAttribute("title",H.textContent||"")})}catch(Z){console.error("checkTextOverflow error:",Z)}};bn(()=>{if(l.value){const Z=window.innerHeight||document.documentElement.clientHeight||600;d=Math.max(Z-200,400),h.value++,setTimeout(()=>{try{if(l.value){const ee=Math.max(window.innerHeight-200,400);Math.abs(d-ee)>50&&(d=ee,h.value++),setTimeout(()=>{S()},1e3)}}catch(ee){console.warn("Initial update failed:",ee)}},P?500:300)}});{let Z=null,H=0;const q=()=>{const ee=Date.now();ee-H<1e3||(H=ee,Z&&clearTimeout(Z),Z=setTimeout(()=>{!M&&l.value&&B()},800))};window.addEventListener("resize",q),Io(()=>{window.removeEventListener("resize",q),Z&&clearTimeout(Z)})}Io(()=>{window.removeEventListener("resize",B),g&&clearTimeout(g),l.value?._filterObserver&&l.value._filterObserver.disconnect()}),Rt([()=>r.videos,()=>r.showStats],([Z,H])=>{},{deep:!1,flush:"post"});const U=Z=>{Z&&c.value&&requestAnimationFrame(()=>{const H=c.value?.$el?.querySelector(".arco-scrollbar-container");H&&H.scrollTo({top:Z,behavior:"smooth"})})},G=()=>c.value&&c.value?.$el?.querySelector(".arco-scrollbar-container")?.scrollTop||0,X=()=>{E.value=!1,_.value=null},oe=(Z,H)=>{o("special-action",Z,H),E.value=!1,_.value=null};return t({checkTextOverflow:W,restoreScrollPosition:U,getCurrentScrollPosition:G,checkContentHeight:S,checkAutoLoadMore:k}),(Z,H)=>{const q=Ie("a-image"),ee=Ie("a-grid-item"),ne=Ie("a-grid"),ae=Ie("a-spin"),re=Ie("a-scrollbar");return z(),Q("div",{class:"video-grid-container",ref_key:"containerRef",ref:l},[O(re,{onScroll:F,class:"video-scroll-container",ref_key:"scrollbarRef",ref:c,style:Ke(y.value)},{default:de(()=>[O(ne,{cols:{xs:2,sm:3,md:4,lg:5,xl:6,xxl:8},rowGap:16,colGap:12},{default:de(()=>[(z(!0),Q(Nt,null,gn(e.videos,ke=>(z(),Ye(ee,{key:ke.vod_id,class:"video_list_hover"},{default:de(()=>[I("div",{class:"video_list_item",onClick:Ne=>T(ke)},[I("div",M6t,[ke.vod_pic&&ke.vod_pic.trim()!==""?(z(),Ye(q,{key:0,preview:!1,class:"video_list_item_img_cover",fit:"cover",src:ke.vod_pic},null,8,["src"])):ke.vod_tag&&ke.vod_tag.includes("folder")?(z(),Q("div",O6t,[...H[0]||(H[0]=[I("i",{class:"iconfont icon-wenjianjia folder-icon"},null,-1)])])):ke.vod_tag&&!ke.vod_tag.includes("folder")?(z(),Q("div",$6t,[(z(),Q("svg",B6t,[I("use",{href:`#${et(k3e)(ke.vod_name)}`},null,8,N6t)]))])):(z(),Ye(q,{key:3,preview:!1,class:"video_list_item_img_cover",fit:"cover",src:ke.vod_pic||"/default-poster.svg"},null,8,["src"])),ke.vod_remarks?(z(),Q("div",{key:4,class:"video_remarks_overlay",innerHTML:ke.vod_remarks},null,8,F6t)):Le("",!0)]),I("div",j6t,[I("span",V6t,ze(ke.vod_name),1)])],8,R6t)]),_:2},1024))),128))]),_:1}),e.loading?(z(),Q("div",z6t,[O(ae),H[1]||(H[1]=I("div",{class:"loading-text"},"加载更多...",-1))])):!e.hasMore&&e.videos.length>0?(z(),Q("div",U6t," 没有更多数据了 ")):e.videos.length===0&&!e.loading?(z(),Q("div",H6t," 暂无视频数据 ")):Le("",!0),H[2]||(H[2]=I("div",{class:"bottom-spacer"},null,-1))]),_:1},8,["style"]),E.value?(z(),Ye(gS,{key:0,ref_key:"actionRendererRef",ref:x,"action-data":_.value,module:r.module,extend:r.extend,"api-url":r.apiUrl,onClose:X,onSpecialAction:oe},null,8,["action-data","module","extend","api-url"])):Le("",!0)],512)}}},B4=xr(W6t,[["__scopeId","data-v-d8bcb43b"]]),G6t={class:"category-modal-content"},K6t=["onClick"],q6t={__name:"CategoryModal",props:{visible:{type:Boolean,default:!1},classList:{type:Object,required:!0},hasRecommendVideos:{type:Boolean,default:!1},activeKey:{type:String,required:!0}},emits:["update:visible","select-category"],setup(e,{emit:t}){const n=t,r=()=>{n("update:visible",!1)},o=a=>{n("select-category",a),r()};return(a,s)=>{const l=Ie("a-modal");return z(),Ye(l,{visible:e.visible,title:"全部分类",footer:!1,width:"80%",class:"category-modal",onCancel:r},{default:de(()=>[I("div",G6t,[e.hasRecommendVideos?(z(),Q("div",{key:0,class:ue(["category-item",{active:e.activeKey==="recommendTuijian404"}]),onClick:s[0]||(s[0]=c=>o("recommendTuijian404"))}," 推荐 ",2)):Le("",!0),(z(!0),Q(Nt,null,gn(e.classList.class,c=>(z(),Q("div",{key:c.type_id,class:ue(["category-item",{active:e.activeKey===c.type_id}]),onClick:d=>o(c.type_id)},ze(c.type_name),11,K6t))),128))])]),_:1},8,["visible"])}}},Y6t=xr(q6t,[["__scopeId","data-v-14f43b3d"]]),X6t={key:0,class:"folder-breadcrumb"},Z6t={class:"breadcrumb-container"},J6t={key:0,class:"current-item"},Q6t=["onClick"],ekt={class:"breadcrumb-actions"},tkt={__name:"FolderBreadcrumb",props:{breadcrumbs:{type:Array,default:()=>[]}},emits:["navigate","go-back","go-home","exit-folder"],setup(e,{emit:t}){const n=e,r=t,o=(c,d)=>{console.log("🗂️ [DEBUG] 面包屑点击:",c,d),r("navigate",c,d)},a=()=>{if(n.breadcrumbs.length>1){const c=n.breadcrumbs.length-2,d=n.breadcrumbs[c];console.log("🗂️ [DEBUG] 返回上级:",d),r("go-back",d,c)}},s=()=>{if(n.breadcrumbs.length>1){const c=n.breadcrumbs[0];console.log("🗂️ [DEBUG] 返回根目录:",c),r("go-home",c,0)}},l=()=>{console.log("🗂️ [DEBUG] 退出Folder模式"),r("exit-folder")};return(c,d)=>{const h=Ie("a-breadcrumb-item"),p=Ie("a-breadcrumb"),v=Ie("a-button");return e.breadcrumbs.length>0?(z(),Q("div",X6t,[I("div",Z6t,[O(p,{separator:">"},{default:de(()=>[(z(!0),Q(Nt,null,gn(e.breadcrumbs,(g,y)=>(z(),Ye(h,{key:g.vod_id,class:ue(["breadcrumb-item",{"is-current":y===e.breadcrumbs.length-1}])},{default:de(()=>[y===e.breadcrumbs.length-1?(z(),Q("span",J6t,ze(g.vod_name),1)):(z(),Q("a",{key:1,onClick:S=>o(g,y),class:"breadcrumb-link"},ze(g.vod_name),9,Q6t))]),_:2},1032,["class"]))),128))]),_:1})]),I("div",ekt,[O(v,{size:"small",type:"text",onClick:a,disabled:e.breadcrumbs.length<=1,class:"action-btn"},{icon:de(()=>[O(et(Al))]),default:de(()=>[d[0]||(d[0]=We(" 返回上级 ",-1))]),_:1},8,["disabled"]),e.breadcrumbs.length>1?(z(),Ye(v,{key:0,size:"small",type:"text",onClick:s,disabled:e.breadcrumbs.length<=1,class:"action-btn"},{icon:de(()=>[O(et(c3))]),default:de(()=>[d[1]||(d[1]=We(" 返回根目录 ",-1))]),_:1},8,["disabled"])):Le("",!0),O(v,{size:"small",type:"primary",onClick:l,class:"action-btn exit-btn"},{icon:de(()=>[O(et(ds))]),default:de(()=>[d[2]||(d[2]=We(" 退出目录模式 ",-1))]),_:1})])])):Le("",!0)}}},nkt=xr(tkt,[["__scopeId","data-v-670af4b8"]]),rkt={class:"video-list-container"},ikt={class:"content-area"},okt={key:0,class:"tab-content"},skt={key:1,class:"tab-content"},akt={key:0,class:"category-loading-container"},lkt={key:2,class:"tab-content"},ukt={key:0,class:"category-loading-container"},ckt={key:3,class:"tab-content"},dkt={key:0,class:"category-loading-container"},fkt=300,hkt={__name:"VideoList",props:{classList:Object,recommendVideos:{type:Array,default:()=>[]},trigger:{type:String,default:"click"},sourceRoute:{type:Object,default:()=>({})},returnToActiveKey:{type:String,default:""},module:{type:String,default:""},extend:{type:[Object,String],default:()=>({})},apiUrl:{type:String,default:""},specialCategoryState:{type:Object,default:()=>({isActive:!1,categoryData:null,originalClassList:null,originalRecommendVideos:null})},folderNavigationState:{type:Object,default:()=>({isActive:!1,breadcrumbs:[],currentData:[],currentBreadcrumb:null,loading:!1})}},emits:["activeKeyChange","special-action","close-special-category","folder-navigate"],setup(e,{expose:t,emit:n}){const r=e,o=n,a=el(),s=iS();let l=null;const c=fe(!1);let d="",h=0;const p=(Be,Ae=100)=>{Be===d||Date.now()-h<200||(l&&clearTimeout(l),l=setTimeout(()=>{if(!c.value){c.value=!0,d=Be,h=Date.now();try{s.updateStats(Be)}catch(Xe){console.error("更新统计信息失败:",Xe)}finally{c.value=!1}}},Ae))},v=fe(""),g=Xt({}),y=Xt({}),S=Xt({}),k=Xt({}),C=Xt({}),x=Xt({}),E=fe(!1),_=fe(null),T=()=>{const Be={...a.currentRoute.value.query};Object.keys(x).length>0?Be.filters=JSON.stringify(x):delete Be.filters,Object.keys(C).length>0?Be.filterVisible=JSON.stringify(C):delete Be.filterVisible,a.replace({query:Be}).catch(()=>{})},D=()=>{const Be=a.currentRoute.value.query.filters,Ae=a.currentRoute.value.query.filterVisible;if(Be)try{const Re=JSON.parse(Be);Object.keys(x).forEach(Xe=>{delete x[Xe]}),Object.assign(x,Re)}catch(Re){console.error("解析URL中的筛选条件失败:",Re)}if(Ae)try{const Re=JSON.parse(Ae);Object.keys(C).forEach(Xe=>{delete C[Xe]}),Object.assign(C,Re)}catch(Re){console.error("解析URL中的筛选展开状态失败:",Re)}},P=Xt({}),M=Xt({});let $=null;const L=Be=>{$&&clearTimeout($),$=setTimeout(Be,fkt)},B=j(()=>r.recommendVideos&&r.recommendVideos.length>0),F=j(()=>r.folderNavigationState?.isActive||!1),W=j(()=>r.folderNavigationState?.breadcrumbs||[]),U=j(()=>r.folderNavigationState?.currentData||[]),G=j(()=>r.folderNavigationState?.currentBreadcrumb||null),X=j(()=>{const Be=G.value?.vod_id;return r.folderNavigationState?.loading||M[Be]||!1}),oe=j(()=>{const Be=G.value?.vod_id;return P[Be]?.hasNext||!1}),Z=j(()=>ae({isActive:F.value,currentBreadcrumb:G.value,currentData:U.value})),H=()=>r.returnToActiveKey?r.returnToActiveKey:B.value?"recommendTuijian404":r.classList?.class&&r.classList.class.length>0?r.classList.class[0].type_id:"recommendTuijian404",q=(Be,Ae,Re)=>{x[v.value]||(x[v.value]={}),x[v.value][Be]===Ae?(delete x[v.value][Be],Object.keys(x[v.value]).length===0&&delete x[v.value]):x[v.value][Be]=Ae,T(),F.value&&G.value?Gt(G.value):ne(v.value)},ee=Be=>{delete x[Be],T(),F.value&&G.value?Gt(G.value):ne(Be)},ne=Be=>{delete g[Be],delete y[Be],S[Be]=!1,v.value===Be&&re(Be,!0)},ae=(Be,Ae=null)=>{const Re=r.classList?.class?.find(Oe=>Oe.type_id===Be)?.type_name||"",Xe=y[Be]?.page||1,dt=g[Be]?.length||0,Dt=y[Be]?.total;let pt=`${Re}:当前第 ${Xe} 页,已加载 ${dt} 条`;if(Dt&&(pt+=` / 共 ${Dt} 条`),Ae&&Ae.isActive&&Ae.currentBreadcrumb){const Oe=Ae.currentBreadcrumb.vod_name||"未知目录",xt=Ae.currentData?.length||0;pt+=`,当前目录:${Oe},项目数:${xt}`}return pt},re=async(Be,Ae=!1)=>{if(console.log(Be,"选中分类id"),k[Be]&&!Ae){console.log(`分类 ${Be} 正在加载中,跳过重复请求`);return}if(console.log("listData.hasOwnProperty(key):",g.hasOwnProperty(Be)),console.log("forceReload:",Ae),console.log("listData keys:",Object.keys(g)),console.log("listData[key]:",g[Be]),console.log("listData[key] length:",g[Be]?.length),!g.hasOwnProperty(Be)||Ae){k[Be]=!0;try{const Re=await _s.getCurrentSite();let Xe,dt;if(Be==="recommendTuijian404")console.log("recommendTuijian404 recommendVideos:",r.recommendVideos),Xe=r.recommendVideos||[],dt={page:1,hasNext:!1};else{const Dt=x[Be]||{},pt=await Kl.getCategoryVideos(Re.key,{typeId:Be,page:1,filters:Dt,extend:Re.ext,apiUrl:Re.api});Xe=pt.videos||[],dt=pt.pagination||{page:1,hasNext:!1},Xe.length>100&&(console.log(`检测到大数据集,分类 ${Be} 包含 ${Xe.length} 条数据`),Xe.length>200&&console.warn(`超大数据集警告:分类 ${Be} 包含 ${Xe.length} 条数据,可能影响性能`))}if(g[Be]=[...Xe],y[Be]=dt,S[Be]=!1,Be===v.value){const Dt=F.value?{isActive:F.value,currentBreadcrumb:G.value,currentData:U.value}:null;p(ae(Be,Dt))}}catch(Re){console.error("获取视频列表失败:",Re),g[Be]=[],y[Be]={page:1,hasNext:!1},S[Be]=!1}finally{k[Be]=!1}}},ke=Be=>!Be||Be.length===0?!0:Be.some(Ae=>Ae.vod_id==="no_data"),Ne=(Be,Ae)=>{if(!Ae||Ae.length===0)return!0;if(!Be||Be.length===0)return!1;const Re=Be.slice(-Ae.length).map(dt=>dt.vod_id),Xe=Ae.map(dt=>dt.vod_id);return JSON.stringify(Re)===JSON.stringify(Xe)},me=async Be=>{if(!(S[Be]||!y[Be]?.hasNext)){S[Be]=!0;try{const Ae=await _s.getCurrentSite(),Re=y[Be].page+1;let Xe=[],dt={page:Re,hasNext:!1};if(Be==="recommendTuijian404")return;{const Dt=x[Be]||{},pt=await Kl.getCategoryVideos(Ae.key,{typeId:Be,page:Re,filters:Dt,extend:Ae.ext,apiUrl:Ae.api});Xe=pt.videos||[],dt=pt.pagination||{page:Re,hasNext:!1}}if(ke(Xe)||Ne(g[Be],Xe)){console.log("检测到无效数据或重复数据,停止翻页"),y[Be]={...y[Be],hasNext:!1};return}if(g[Be]=[...g[Be],...Xe],y[Be]=dt,Be===v.value){const Dt=F.value?{isActive:F.value,currentBreadcrumb:G.value,currentData:U.value}:null;p(ae(Be,Dt))}}catch(Ae){console.error("加载更多数据失败:",Ae),y[Be]={...y[Be],hasNext:!1}}finally{S[Be]=!1}}},_e=async Be=>{if(!(M[Be]||!P[Be]?.hasNext)){M[Be]=!0;try{const Ae=P[Be].page+1,Re=await q1(r.module,{t:Be,pg:Ae,extend:ua(r.extend),apiUrl:r.apiUrl});if(Re&&Re.list&&Re.list.length>0){const Xe=Re.list;if(ke(Xe)||Ne(U.value,Xe)){console.log("目录翻页检测到无效数据或重复数据,停止翻页"),P[Be]={...P[Be],hasNext:!1};return}const dt=[...U.value,...Xe],Dt={isActive:F.value,breadcrumbs:W.value,currentBreadcrumb:G.value,currentData:dt,loading:!1,hasMore:!0};if(P[Be]={page:Ae,hasNext:Re.page{F.value&&sn(),v.value=Be,re(Be),o("activeKeyChange",Be)},Qe=Be=>{const{filterKey:Ae,filterValue:Re,filterName:Xe}=Be;q(Ae,Re)},Me=Be=>{const{categoryId:Ae,visible:Re}=Be;C[Ae]=Re,T()},je=()=>{ee(v.value)},ge=()=>{E.value=!0},be=Be=>{v.value=Be,re(Be),o("activeKeyChange",Be);const Ae=F.value?{isActive:F.value,currentBreadcrumb:G.value,currentData:U.value}:null;p(ae(Be,Ae),100)};Rt(()=>r.recommendVideos,Be=>{console.log("[VideoList] recommendVideos watch triggered:",Be?.length),Be&&Be.length>0?(g.recommendTuijian404=[...Be],y.recommendTuijian404={page:1,hasNext:!1},S.recommendTuijian404=!1,k.recommendTuijian404=!1,console.log("推荐数据已更新:",Be.length,"条")):(g.recommendTuijian404=[],y.recommendTuijian404={page:1,hasNext:!1},S.recommendTuijian404=!1,k.recommendTuijian404=!1),v.value==="recommendTuijian404"&&(console.log("[VideoList] 当前是推荐分类,强制更新界面"),v.value="recommendTuijian404")},{immediate:!0});let Fe=!1,He="";const Je=Be=>!Be||!Be.class?"":JSON.stringify(Be.class.map(Ae=>Ae.type_id||Ae.id||""));Rt(()=>r.classList,(Be,Ae)=>{if(Fe)return;const Re=Je(Be);if(Re!==He){console.log("🗂️ [DEBUG] ========== VideoList classList watch 触发 =========="),console.log("🗂️ [DEBUG] oldClassList:",Ae),console.log("🗂️ [DEBUG] newClassList:",Be),console.log("🗂️ [DEBUG] classList是否发生变化:",Be!==Ae),console.log("🗂️ [DEBUG] 当前activeKey.value:",v.value),console.log("🗂️ [DEBUG] 当前folderIsActive.value:",F.value),console.log("🗂️ [DEBUG] 当前folderNavigationState:",JSON.stringify(r.folderNavigationState,null,2)),Fe=!0,He=Re;try{const Xe=a.currentRoute.value.query,dt=Xe.filters||Xe.filterVisible;if(Be!==Ae&&!dt?(console.log("🗂️ [DEBUG] classList发生变化且URL中无筛选参数,清除筛选状态"),Object.keys(x).forEach(pt=>{delete x[pt]}),Object.keys(C).forEach(pt=>{delete C[pt]}),console.log("🗂️ [DEBUG] 筛选状态已清除")):dt&&console.log("🗂️ [DEBUG] URL中有筛选参数,跳过筛选状态清除"),F.value){console.log("🗂️ [DEBUG] 当前处于folder模式,跳过activeKey重置");return}const Dt=H();v.value!==Dt&&(v.value=Dt,re(Dt),o("activeKeyChange",Dt))}catch(Xe){console.error("classList watch处理失败:",Xe)}finally{Cn(()=>{Fe=!1})}}},{immediate:!0}),Rt(()=>r.folderNavigationState,(Be,Ae)=>{},{deep:!0,immediate:!0}),Rt(()=>r.sourceRoute?.query?.activeKey,Be=>{Be&&Be!==v.value&&(console.log("[DEBUG] sourceRoute activeKey changed:",Be,"current:",v.value),v.value=Be,(!g[Be]||g[Be].length===0)&&(console.log("[DEBUG] 重新加载分类数据:",Be),re(Be)),o("activeKeyChange",Be))},{immediate:!0}),bn(async()=>{D();const Be=r.sourceRoute?.query?.activeKey,Ae=Be||H();await Cn(),v.value=Ae,await Cn(),D(),Ae==="recommendTuijian404"?(k[Ae]=!1,r.recommendVideos&&r.recommendVideos.length>0?(g[Ae]=[...r.recommendVideos],y[Ae]={page:1,hasNext:!1},S[Ae]=!1):re(v.value)):re(v.value),Be||o("activeKeyChange",v.value)}),Io(()=>{l&&clearTimeout(l)}),t({getCurrentState:()=>({activeKey:v.value,currentPage:y[v.value]?.page||1,videos:g[v.value]||[],hasMore:y[v.value]?.hasNext||!1,hasData:g[v.value]&&g[v.value].length>0,scrollPosition:_.value?_.value.getCurrentScrollPosition():0}),restoreState:Be=>{Be.activeKey&&Be.activeKey!==v.value&&(v.value=Be.activeKey,o("activeKeyChange",Be.activeKey),(!g[Be.activeKey]||g[Be.activeKey].length===0)&&re(Be.activeKey))},restoreFullState:Be=>{if(Be.activeKey){v.value=Be.activeKey,Be.videos&&Be.videos.length>0?(g[Be.activeKey]=[...Be.videos],y[Be.activeKey]={page:Be.currentPage||1,hasNext:Be.hasMore||!1},console.log(`恢复分类 ${Be.activeKey} 的完整状态:`,{videos:Be.videos.length,page:Be.currentPage,hasMore:Be.hasMore,scrollPosition:Be.scrollPosition}),Be.scrollPosition&&_.value&&setTimeout(()=>{_.value.restoreScrollPosition(Be.scrollPosition)},200)):(console.log(`分类 ${Be.activeKey} 没有保存的数据,重新加载`),re(Be.activeKey)),o("activeKeyChange",Be.activeKey);const Ae=F.value?{isActive:F.value,currentBreadcrumb:G.value,currentData:U.value}:null;p(ae(Be.activeKey,Ae),100)}},refreshCurrentCategory:()=>{v.value&&(console.log("刷新当前分类:",v.value),g[v.value]=[],y[v.value]={page:1,hasNext:!0},S[v.value]=!1,re(v.value))},setSpecialCategoryData:(Be,Ae,Re)=>{console.log("设置特殊分类数据:",{categoryId:Be,videosCount:Ae?.length,pagination:Re}),g[Be]=Ae||[],y[Be]={page:Re?.page||1,hasNext:Re?.hasNext||!1,total:Re?.total||0},S[Be]=!1;const Xe=F.value?{isActive:F.value,currentBreadcrumb:G.value,currentData:U.value}:null;p(ae(Be,Xe),100)}});const rt=async Be=>{L(async()=>{await ht(Be)})},ht=async Be=>{let Ae=[];try{const Re=F.value?W.value:[],Xe=Re.findIndex(xt=>xt.vod_id===Be.vod_id);Xe>=0?Ae=Re.slice(0,Xe+1):Ae=[...Re,{vod_id:Be.vod_id,vod_name:Be.vod_name}];const dt={isActive:!0,breadcrumbs:Ae,currentData:[],currentBreadcrumb:{vod_id:Be.vod_id,vod_name:Be.vod_name},loading:!0};o("folder-navigate",dt),console.log("props.extend:",r.extend),console.log("processExtendParam(props.extend):",ua(r.extend));const Dt=x[v.value]||{};console.log("🗂️ [DEBUG] 目录模式应用筛选条件:",Dt);const pt={t:Be.vod_id,pg:1,extend:ua(r.extend),apiUrl:r.apiUrl};Object.keys(Dt).length>0&&console.log("🗂️ [DEBUG] 目录模式编码后的筛选条件:",pt.ext);const Oe=await q1(r.module,pt);if(Oe&&Oe.list&&Oe.list.length>0){const xt=Oe.list;P[Be.vod_id]={page:Oe.page||1,hasNext:Oe.page{const Re=Be;if(!Re||!Re.vod_id){console.error("handleFolderNavigate: 无效的breadcrumb参数",Re);return}if(console.log("🗂️ [DEBUG] handleFolderNavigate 接收参数:",{breadcrumb:Re,index:Ae}),ut){console.log("folder导航正在进行中,跳过重复调用");return}const Xe=Date.now();if(Xe-St<300){console.log("folder导航过于频繁,跳过");return}if(Ct===Re.vod_id&&Xe-St<1e3){console.log("短时间内相同的folder导航目标,跳过重复处理");return}ut=!0,Ct=Re.vod_id,St=Xe;try{const dt=W.value,Dt=dt.findIndex(Ft=>Ft.vod_id===Re.vod_id),pt=Dt>=0?dt.slice(0,Dt+1):dt,Oe={isActive:F.value,breadcrumbs:pt,currentBreadcrumb:Re,currentData:U.value,loading:!0,hasMore:oe.value};o("folder-navigate",Oe);const xt=x[v.value]||{},Zt={t:Re.vod_id,pg:1,extend:ua(r.extend),apiUrl:r.apiUrl};Object.keys(xt).length>0;const tn=await q1(r.module,Zt);if(tn&&tn.list&&tn.list.length>0){const Ft=tn.list;if(P[Re.vod_id]={page:tn.page||1,hasNext:tn.page{if(console.log("🗂️ [DEBUG] 返回上一级folder",{parentItem:Be,parentIndex:Ae}),Be&&Be.vod_id){Gt(Be,Ae);return}const Re=W.value;if(Re.length>1){const Xe=Re.slice(0,-1),dt=Xe[Xe.length-1];Gt(dt)}else Mt()},Mt=async(Be,Ae)=>{if(console.log("🗂️ [DEBUG] 返回folder根目录",{rootItem:Be,rootIndex:Ae}),Be&&Be.vod_id){Gt(Be,Ae);return}const Re=W.value;if(Re.length>0){const Xe=Re[0];o("folder-navigate",{isActive:!0,breadcrumbs:[Xe],currentData:[],currentBreadcrumb:Xe,loading:!0});try{const Dt=x[v.value]||{};console.log("🗂️ [DEBUG] 返回根目录,应用筛选条件:",Dt);const pt={t:Xe.vod_id,pg:1,extend:ua(r.extend),apiUrl:r.apiUrl};Object.keys(Dt).length>0;const Oe=await q1(r.module,pt);if(Oe&&Oe.list&&Oe.list.length>0){const xt=Oe.list;P[Xe.vod_id]={page:Oe.page||1,hasNext:Oe.page{if(o("folder-navigate",{isActive:!1,breadcrumbs:[],currentData:[],currentBreadcrumb:null,loading:!1}),v.value&&g[v.value]){const Ae=ae(v.value,null);p(Ae)}},ct=()=>{v.value&&(g[v.value]=[],y[v.value]={page:1,hasNext:!0},S[v.value]=!1,re(v.value))};return(Be,Ae)=>{const Re=Ie("a-spin");return z(),Q("div",rkt,[O(d6t,{classList:e.classList,trigger:e.trigger,hasRecommendVideos:B.value,activeKey:v.value,filters:r.classList?.filters||{},selectedFilters:x,filterVisible:C,specialCategoryState:r.specialCategoryState,onTabChange:Ue,onOpenCategoryModal:ge,onToggleFilter:Qe,onResetFilters:je,onFilterVisibleChange:Me,onCloseSpecialCategory:Ae[0]||(Ae[0]=()=>o("close-special-category"))},null,8,["classList","trigger","hasRecommendVideos","activeKey","filters","selectedFilters","filterVisible","specialCategoryState"]),F.value?(z(),Ye(nkt,{key:0,breadcrumbs:W.value,onNavigate:Gt,onGoBack:Tt,onGoHome:Mt,onExitFolder:sn},null,8,["breadcrumbs"])):Le("",!0),I("div",ikt,[F.value?(z(),Q("div",okt,[O(B4,{videos:U.value,loading:X.value,hasMore:oe.value,statsText:Z.value,sourceRoute:r.sourceRoute,module:r.module,extend:r.extend,"api-url":r.apiUrl,folderState:e.folderNavigationState,onLoadMore:Ae[1]||(Ae[1]=Xe=>_e(G.value?.vod_id)),onScrollBottom:Ae[2]||(Ae[2]=Xe=>_e(G.value?.vod_id)),onRefreshList:ct,onSpecialAction:Ae[3]||(Ae[3]=(Xe,dt)=>o("special-action",Xe,dt)),onFolderNavigate:rt},null,8,["videos","loading","hasMore","statsText","sourceRoute","module","extend","api-url","folderState"])])):e.specialCategoryState.isActive?(z(),Q("div",skt,[k[e.specialCategoryState.categoryData?.type_id]?(z(),Q("div",akt,[O(Re,{size:24}),Ae[12]||(Ae[12]=I("div",{class:"loading-text"},"正在加载分类数据...",-1))])):(z(),Ye(B4,{key:1,videos:g[e.specialCategoryState.categoryData?.type_id]||[],loading:S[e.specialCategoryState.categoryData?.type_id]||!1,hasMore:y[e.specialCategoryState.categoryData?.type_id]?.hasNext||!1,statsText:`${e.specialCategoryState.categoryData?.type_name||"特殊分类"}:共 ${g[e.specialCategoryState.categoryData?.type_id]?.length||0} 条`,sourceRoute:r.sourceRoute,module:r.module,extend:r.extend,"api-url":r.apiUrl,onLoadMore:Ae[4]||(Ae[4]=Xe=>me(e.specialCategoryState.categoryData?.type_id)),onScrollBottom:Ae[5]||(Ae[5]=Xe=>me(e.specialCategoryState.categoryData?.type_id)),onRefreshList:ct,onSpecialAction:Ae[6]||(Ae[6]=(Xe,dt)=>o("special-action",Xe,dt)),onFolderNavigate:rt},null,8,["videos","loading","hasMore","statsText","sourceRoute","module","extend","api-url"]))])):v.value==="recommendTuijian404"?(z(),Q("div",lkt,[k[v.value]?(z(),Q("div",ukt,[O(Re,{size:24}),Ae[13]||(Ae[13]=I("div",{class:"loading-text"},"正在加载分类数据...",-1))])):Le("",!0),k[v.value]?Le("",!0):(z(),Ye(B4,{key:1,videos:g[v.value]||[],loading:S[v.value]||!1,hasMore:!1,statsText:`推荐视频:共 ${g[v.value]?.length||0} 条`,sourceRoute:r.sourceRoute,module:r.module,extend:r.extend,"api-url":r.apiUrl,onRefreshList:ct,onSpecialAction:Ae[7]||(Ae[7]=(Xe,dt)=>o("special-action",Xe,dt))},null,8,["videos","loading","statsText","sourceRoute","module","extend","api-url"]))])):(z(),Q("div",ckt,[k[v.value]?(z(),Q("div",dkt,[O(Re,{size:24}),Ae[14]||(Ae[14]=I("div",{class:"loading-text"},"正在加载分类数据...",-1))])):(z(),Ye(B4,{key:1,ref_key:"videoGridRef",ref:_,videos:g[v.value]||[],loading:S[v.value]||!1,hasMore:y[v.value]?.hasNext||!1,sourceRoute:r.sourceRoute,module:r.module,extend:r.extend,"api-url":r.apiUrl,onLoadMore:Ae[8]||(Ae[8]=Xe=>me(v.value)),onScrollBottom:Ae[9]||(Ae[9]=Xe=>me(v.value)),onRefreshList:ct,onSpecialAction:Ae[10]||(Ae[10]=(Xe,dt)=>o("special-action",Xe,dt)),onFolderNavigate:rt},null,8,["videos","loading","hasMore","sourceRoute","module","extend","api-url"]))]))]),O(Y6t,{visible:E.value,"onUpdate:visible":Ae[11]||(Ae[11]=Xe=>E.value=Xe),classList:e.classList,hasRecommendVideos:B.value,activeKey:v.value,onSelectCategory:be},null,8,["visible","classList","hasRecommendVideos","activeKey"])])}}},pkt=xr(hkt,[["__scopeId","data-v-3be42daf"]]),vkt={class:"search-results-container"},mkt={class:"search-header"},gkt={class:"search-info"},ykt={key:0,class:"search-keyword"},bkt={key:1,class:"search-count"},_kt={class:"search-actions"},Skt={key:0,class:"error-container"},kkt={class:"error-text"},xkt={key:1,class:"loading-container"},Ckt=["onClick"],wkt={class:"video_list_item_img"},Ekt={key:1,class:"folder-icon-container"},Tkt={key:2,class:"file-icon-container"},Akt={style:{width:"30%"}},Ikt=["href"],Lkt=["innerHTML"],Dkt={class:"video_list_item_title"},Pkt={class:"title-text"},Rkt={key:3,class:"empty-state"},Mkt={key:4,class:"loading-container"},Okt={key:5,class:"no-more-data"},$kt={__name:"SearchResults",props:{keyword:{type:String,default:""},videos:{type:Array,default:()=>[]},loading:{type:Boolean,default:!1},error:{type:String,default:null},currentPage:{type:Number,default:1},totalPages:{type:Number,default:1},hasMore:{type:Boolean,default:!1},sourceRoute:{type:Object,default:()=>({})},scrollPosition:{type:Number,default:0},module:{type:String,default:""},extend:{type:String,default:""},apiUrl:{type:String,default:""}},emits:["video-click","exit-search","load-more","refresh-list"],setup(e,{emit:t}){const n=el(),r=iS(),o=NA(),a=iA(),s=e,l=t,c=fe(null),d=fe(null),h=fe(0),p=fe(null),v=fe(!1),g=fe(null),y=P=>{const M=P?.target||P?.srcElement,$=M?.closest?M.closest(".arco-scrollbar-container"):M;if(!$)return;const L=$.scrollHeight-$.clientHeight,B=$.scrollTop;L-B<50&&s.hasMore&&!s.loading&&l("load-more")},S=()=>{Cn(()=>{setTimeout(()=>{const P=c.value;if(!P)return;const M=P.closest(".content-area")||P.parentElement;let $=M?M.offsetHeight:0;$<=0&&($=Math.max(window.innerHeight-120,500));const L=document.querySelector(".search-header"),B=L?L.offsetHeight:60,F=s.videos?s.videos.length:0,W=P.offsetWidth||Math.max(window.innerWidth-240,800),G=Math.min(Math.floor(W/200),8),X=328,oe=F>0?Math.ceil(F/Math.max(G,1)):0,Z=oe*X+80;let H=4;const q=$-B;if(F===0)H=Math.min(q*.3,200),console.log(`无搜索结果数据,使用保守高度减值: ${H}px`);else if(Z{if(!s.keyword)return"";const P=s.videos.length,M=s.currentPage,$=s.hasMore;if(P===0)return`搜索"${s.keyword}":无结果`;let L=`搜索"${s.keyword}":第${M}页,共${P}条`;return $?L+=",可继续加载":L+=",已全部加载",L},C=()=>{const P=k();P&&r.updateStats(P)},x=()=>{Cn(()=>{setTimeout(()=>{document.querySelectorAll(".search-results-container .title-text").forEach(M=>{const L=M.parentElement.offsetWidth-16;M.scrollWidth>L?M.setAttribute("data-overflow","true"):M.removeAttribute("data-overflow")})},100)})},E=P=>{if(P&&P.vod_id){if(P.vod_tag==="action")try{const M=JSON.parse(P.vod_id);console.log("SearchResults解析action配置:",M),g.value=M,v.value=!0;return}catch{console.log("SearchResults vod_id不是JSON格式,作为普通文本处理:",P.vod_id),Et.info({content:P.vod_id,duration:3e3,closable:!0});return}if(a.setLastClicked(P.vod_id,P.vod_name),s.keyword){const $=d.value?.$el?.querySelector(".arco-scrollbar-container")?.scrollTop||0;o.saveSearchState(s.keyword,s.currentPage,s.videos,s.hasMore,s.loading,$),console.log("保存搜索状态:",{keyword:s.keyword,currentPage:s.currentPage,videosCount:s.videos.length,scrollPosition:$})}n.push({name:"VideoDetail",params:{id:P.vod_id},query:{name:P.vod_name,pic:P.vod_pic,year:P.vod_year,area:P.vod_area,type:P.vod_type,remarks:P.vod_remarks,content:P.vod_content,actor:P.vod_actor,director:P.vod_director,sourceRouteName:s.sourceRoute?.name,sourceRouteParams:JSON.stringify(s.sourceRoute?.params||{}),sourceRouteQuery:JSON.stringify(s.sourceRoute?.query||{}),fromSearch:"true",sourcePic:P.vod_pic}})}},_=()=>{r.clearStats(),l("exit-search")};bn(()=>{x(),S(),C(),window.addEventListener("resize",S),s.scrollPosition>0&&Cn(()=>{requestAnimationFrame(()=>{const P=d.value?.$el?.querySelector(".arco-scrollbar-container");P&&(P.scrollTo({top:s.scrollPosition,behavior:"smooth"}),console.log("SearchResults恢复滚动位置:",s.scrollPosition))})})}),Io(()=>{window.removeEventListener("resize",S)}),Rt(()=>s.videos,()=>{S(),x(),C()}),Rt([()=>s.keyword,()=>s.currentPage,()=>s.hasMore],()=>{C()});const T=()=>{v.value=!1,g.value=null},D=(P,M)=>{switch(console.log("处理专项动作:",P,M),P){case"__self_search__":console.log("执行源内搜索:",M);break;case"detail":console.log("跳转到详情页:",M);break;case"ktv-player":console.log("启动KTV播放:",M);break;case"refresh-list":console.log("刷新列表:",M),l("refresh-list");break;default:console.log("未知的专项动作:",P,M);break}};return(P,M)=>{const $=Ie("icon-close"),L=Ie("a-button"),B=Ie("icon-exclamation-circle"),F=Ie("a-spin"),W=Ie("a-image"),U=Ie("a-grid-item"),G=Ie("a-grid"),X=Ie("icon-search"),oe=Ie("a-scrollbar");return z(),Q("div",vkt,[I("div",mkt,[I("div",gkt,[e.keyword?(z(),Q("span",ykt," 搜索结果:"+ze(e.keyword),1)):Le("",!0),e.videos.length>0?(z(),Q("span",bkt," 共找到 "+ze(e.videos.length)+" 个结果 ",1)):Le("",!0)]),I("div",_kt,[O(L,{type:"outline",size:"small",onClick:_},{icon:de(()=>[O($)]),default:de(()=>[M[0]||(M[0]=We(" 清除搜索 ",-1))]),_:1})])]),I("div",{class:"search-grid-container",ref_key:"containerRef",ref:c},[O(oe,{ref_key:"scrollbarRef",ref:d,onScroll:y,class:"search-scroll-container",style:Ke("height:"+h.value+"px; overflow: auto;")},{default:de(()=>[e.error?(z(),Q("div",Skt,[O(B,{class:"error-icon"}),I("p",kkt,ze(e.error),1)])):e.loading&&e.videos.length===0?(z(),Q("div",xkt,[O(F,{size:32}),M[1]||(M[1]=I("p",{class:"loading-text"},"正在搜索...",-1))])):e.videos.length>0?(z(),Ye(G,{key:2,cols:{xs:2,sm:3,md:4,lg:5,xl:6,xxl:8},rowGap:16,colGap:12},{default:de(()=>[(z(!0),Q(Nt,null,gn(e.videos,Z=>(z(),Ye(U,{key:Z.vod_id,class:"video_list_hover"},{default:de(()=>[I("div",{class:"video_list_item",onClick:H=>E(Z)},[I("div",wkt,[Z.vod_pic&&Z.vod_pic.trim()!==""?(z(),Ye(W,{key:0,preview:!1,class:"video_list_item_img_cover",fit:"cover",src:Z.vod_pic},null,8,["src"])):et(D6t)(Z)?(z(),Q("div",Ekt,[...M[2]||(M[2]=[I("i",{class:"iconfont icon-wenjianjia folder-icon"},null,-1)])])):et(P6t)(Z)?(z(),Q("div",Tkt,[(z(),Q("svg",Akt,[I("use",{href:`#${et(k3e)(Z.vod_name)}`},null,8,Ikt)]))])):(z(),Ye(W,{key:3,preview:!1,class:"video_list_item_img_cover",fit:"cover",src:Z.vod_pic||"/default-poster.svg"},null,8,["src"])),Z.vod_remarks?(z(),Q("div",{key:4,class:"video_remarks_overlay",innerHTML:Z.vod_remarks},null,8,Lkt)):Le("",!0)]),I("div",Dkt,[I("span",Pkt,ze(Z.vod_name),1)])],8,Ckt)]),_:2},1024))),128))]),_:1})):!e.loading&&!e.error&&e.keyword?(z(),Q("div",Rkt,[O(X,{class:"empty-icon"}),M[3]||(M[3]=I("p",{class:"empty-text"},"没有找到相关内容",-1)),M[4]||(M[4]=I("p",{class:"empty-desc"},"尝试使用其他关键词搜索",-1))])):Le("",!0),e.loading&&e.videos.length>0?(z(),Q("div",Mkt,[O(F),M[5]||(M[5]=I("div",{class:"loading-text"},"加载更多...",-1))])):!e.hasMore&&e.videos.length>0?(z(),Q("div",Okt," 没有更多数据了 ")):Le("",!0),M[6]||(M[6]=I("div",{class:"bottom-spacer"},null,-1))]),_:1},8,["style"])],512),v.value?(z(),Ye(gS,{key:0,ref_key:"actionRendererRef",ref:p,"action-data":g.value,module:s.module,extend:s.extend,"api-url":s.apiUrl,onClose:T,onSpecialAction:D},null,8,["action-data","module","extend","api-url"])):Le("",!0)])}}},x3e=xr($kt,[["__scopeId","data-v-7a9e3b4a"]]),yS=tg("site",()=>{const e=fe(_s.getCurrentSite()||JSON.parse(localStorage.getItem("site-nowSite"))||null),t=r=>{e.value=r,localStorage.setItem("site-nowSite",JSON.stringify(r)),r&&r.key&&_s.setCurrentSite(r.key),console.log("站点已切换:",r)},n=()=>{const r=_s.getCurrentSite();r&&(!e.value||r.key!==e.value.key)&&(e.value=r,localStorage.setItem("site-nowSite",JSON.stringify(r)),console.log("从 siteService 同步站点:",r))};return typeof window<"u"&&window.addEventListener("siteChange",r=>{const{site:o}=r.detail;o&&(!e.value||o.key!==e.value.key)&&(e.value=o,localStorage.setItem("site-nowSite",JSON.stringify(o)),console.log("响应 siteService 站点变化:",o))}),n(),{nowSite:e,setCurrentSite:t,syncFromSiteService:n}}),Bkt={class:"current-time"},Nkt={class:"main-container"},Fkt={key:0,class:"global-loading-overlay"},jkt={class:"global-loading-content"},Vkt={__name:"Video",setup(e){const{nowSite:t,setCurrentSite:n}=yS();iS();const r=NA(),o=k5(),a=el(),s=Me=>{const je=Me.getFullYear(),ge=String(Me.getMonth()+1).padStart(2,"0"),be=String(Me.getDate()).padStart(2,"0"),Fe=String(Me.getHours()).padStart(2,"0"),He=String(Me.getMinutes()).padStart(2,"0"),Je=String(Me.getSeconds()).padStart(2,"0");return`${je}-${ge}-${be} ${Fe}:${He}:${Je}`},l=fe(s(new Date)),c=fe(o.query.activeKey||""),d=fe(null),h=Xt({sites:[],now_site_title:"hipy影视",now_site:{},visible:!1,form_title:"",recommendVideos:[],classList:{},videoList:{}}),p=Xt({isSearching:!1,searchKeyword:"",searchResults:[],searchLoading:!1,searchError:null,currentPage:1,totalPages:1,hasMore:!1,scrollPosition:0}),v=Xt({isActive:!1,categoryData:null,originalClassList:null,originalRecommendVideos:null}),g=d0({isActive:!1,breadcrumbs:[],currentData:[],currentBreadcrumb:null,loading:!1}),y=fe(!1),S=Xt({activeKey:null,scrollPosition:0,savedAt:null}),k=fe(null),C=async(Me=!1)=>{try{if(_s.getConfigStatus().hasConfigUrl)try{await _s.loadSitesFromConfig(Me)}catch(ge){console.error("从配置地址加载站点数据失败:",ge)}h.sites=_s.getAllSites(),h.sites.length}catch(je){console.error("获取站点配置失败:",je)}},x=()=>{const Me=_s.getCurrentSite();Me?(h.now_site=Me,h.now_site_title=Me.name,n(Me)):t&&t.name?(h.now_site=t,h.now_site_title=t.name,_s.setCurrentSite(t.key)):(h.now_site={},h.now_site_title="hipy影视")},E=()=>{if(!h.now_site||!h.now_site.key){const Me=_s.getCurrentSite();if(Me)h.now_site=Me,h.now_site_title=Me.name;else if(h.sites.length>0){const je=h.sites.find(ge=>ge.type===4)||h.sites[0];h.now_site=je,h.now_site_title=je.name,_s.setCurrentSite(je.key)}}else if(!h.sites.some(je=>je.key===h.now_site.key)&&h.sites.length>0){const je=h.sites.find(ge=>ge.type===4)||h.sites[0];h.now_site=je,h.now_site_title=je.name,_s.setCurrentSite(je.key)}h.new_site=h.now_site},_=()=>{k.value=setInterval(()=>{l.value=s(new Date)},1e3)},T=()=>{window.location.reload()},D=Me=>{console.log("收到重载源事件:",Me.detail),T()},P=()=>{},M=()=>{},$=()=>{},L=Me=>h.new_site=Me,B=()=>{h.now_site=h.new_site,n(h.now_site),h.visible=!1,C(!0),E()},F=Me=>{h.now_site=Me,n(Me),h.now_site_title=Me.name,h.visible=!1,g.value?.isActive&&(g.value={isActive:!1,breadcrumbs:[],currentData:[],currentBreadcrumb:null,loading:!1},S.activeKey=null,S.scrollPosition=0,S.savedAt=null),W(Me)},W=async Me=>{if(!(!Me||!Me.key)){y.value=!0,h.classList={class:[],filters:{}},h.recommendVideos=[];try{const je=h.sites.findIndex(be=>be.key===Me.key)===0;console.log("[Video.vue] 开始获取首页数据:",{siteKey:Me.key,siteName:Me.name,extend:Me.ext,apiUrl:Me.api,isFirstSite:je}),je&&(console.log("[Video.vue] 检测到第一个源,清除缓存"),Kl.clearModuleCache(Me.key));const ge=await Kl.getRecommendVideos(Me.key,{extend:Me.ext,apiUrl:Me.api});console.log("[Video.vue] 首页数据获取成功:",{siteKey:Me.key,categoriesCount:ge.categories?.length||0,videosCount:ge.videos?.length||0,hasVideos:!!(ge.videos&&ge.videos.length>0),firstVideo:ge.videos?.[0]}),h.classList={class:ge.categories,filters:ge.filters},h.recommendVideos=ge.videos||[],console.log("[Video.vue] 推荐数据已设置:",{siteKey:Me.key,recommendVideosLength:h.recommendVideos.length,isFirstSite:h.sites.findIndex(be=>be.key===Me.key)===0})}catch(je){console.error("获取分类列表失败:",je),h.classList={class:[],filters:{}},h.recommendVideos=[]}finally{y.value=!1}}},U=async Me=>{if(!Me||!Me.trim()){p.isSearching=!1,p.searchKeyword="",p.searchResults=[];return}const je=Me.trim();p.searchKeyword=je,p.isSearching=!0,p.searchLoading=!0,p.searchError=null,p.currentPage=1;try{if(!h.now_site||!h.now_site.key)throw new Error("请先选择数据源");const ge=await Kl.searchVideo(h.now_site.key,{keyword:je,page:1,extend:h.now_site.ext,apiUrl:h.now_site.api});p.searchResults=ge.videos||[],p.totalPages=ge.pagination?.totalPages||1,p.hasMore=ge.pagination?.hasNext||!1}catch(ge){console.error("搜索失败:",ge),p.searchError=ge.message||"搜索失败,请重试",p.searchResults=[]}finally{p.searchLoading=!1}},G=async()=>{if(p.searchLoading||!p.searchKeyword||!p.hasMore)return;p.searchLoading=!0;const Me=p.currentPage+1;try{const je=await Kl.searchVideo(h.now_site.key,{keyword:p.searchKeyword,page:Me,extend:h.now_site.ext,apiUrl:h.now_site.api}),ge=je.videos||[],be=new Set(p.searchResults.map(He=>He.vod_id)),Fe=ge.filter(He=>!be.has(He.vod_id)&&He.vod_id!=="no_data"&&He.vod_name!=="no_data");Fe.length===0?p.hasMore=!1:(p.searchResults=[...p.searchResults,...Fe],p.hasMore=je.pagination?.hasNext!==!1),p.currentPage=Me,p.totalPages=je.pagination?.totalPages||p.totalPages}catch(je){console.error("搜索加载更多失败:",je),p.searchError=je.message||"加载失败,请重试"}finally{p.searchLoading=!1}},X=()=>{p.isSearching=!1,p.searchKeyword="",p.searchResults=[],p.searchError=null,p.currentPage=1},oe=Me=>{c.value=Me;const je={...o.query};Me?je.activeKey=Me:delete je.activeKey,a.replace({name:o.name,params:o.params,query:je}),console.log("[DEBUG] 地址栏activeKey已更新:",Me)},Z=Me=>{if(Me&&Me.vod_id){let je="false";p.isSearching?je="true":c.value&&r.saveVideoState(c.value,1,[],!0,!1,window.scrollY);const ge={name:Me.vod_name,pic:Me.vod_pic,year:Me.vod_year,area:Me.vod_area,type:Me.vod_type,remarks:Me.vod_remarks,content:Me.vod_content,actor:Me.vod_actor,director:Me.vod_director,sourceRouteName:o.name,sourceRouteParams:JSON.stringify(o.params),sourceRouteQuery:JSON.stringify({...o.query,activeKey:c.value}),fromSearch:je,sourcePic:Me.vod_pic};g.value?.isActive&&(ge.folderState=JSON.stringify({isActive:g.value.isActive,breadcrumbs:g.value.breadcrumbs,currentBreadcrumb:g.value.currentBreadcrumb})),a.push({name:"VideoDetail",params:{id:Me.vod_id},query:ge})}},H=()=>{p.isSearching||d.value&&d.value.refreshCurrentCategory()},q=async(Me,je)=>{switch(Me){case"__self_search__":await ee(je);break;default:console.warn("🎯 [WARN] 未知的特殊动作类型:",Me);break}},ee=async Me=>{try{v.isActive||(v.originalClassList=h.classList,v.originalRecommendVideos=h.recommendVideos);const je=Me.tid||Me.type_id||Me.actionData?.tid,ge=Me.name||Me.type_name||`搜索: ${je}`;if(!je){console.error("🔍 [ERROR] 源内搜索参数不完整:缺少tid"),Et.error("源内搜索参数不完整:缺少tid");return}const be=await Kl.getCategoryVideos(h.now_site?.key||t?.key,{typeId:je,page:1,filters:{},apiUrl:h.now_site?.api,extend:h.now_site?.ext}),Fe={class:[{type_id:je,type_name:ge}],filters:{}};v.isActive=!0,v.categoryData={type_id:je,type_name:ge,originalData:Me,videos:be.videos||[],pagination:be.pagination||{}},h.classList=Fe,h.recommendVideos=[],c.value=je,await Cn(),d.value&&be.videos&&d.value.setSpecialCategoryData(je,be.videos,be.pagination)}catch(je){console.error("处理源内搜索失败:",je),Et.error(`源内搜索失败: ${je.message}`)}},ne=()=>{v.isActive&&(h.classList=v.originalClassList,h.recommendVideos=v.originalRecommendVideos,v.isActive=!1,v.categoryData=null,v.originalClassList=null,v.originalRecommendVideos=null,c.value="recommendTuijian404")};let ae=!1,re=null,ke=null,Ne=0;const me=async Me=>{if(!Me||typeof Me!="object"){console.error("navigationData 无效:",Me);return}if(ae){console.log("folder状态正在更新中,跳过重复调用");return}const je=Date.now();if(je-Ne<200){console.log("folder导航更新过于频繁,跳过");return}const ge=JSON.stringify(Me);if(ke===ge){console.log("相同的folder导航数据,跳过重复处理");return}re&&(clearTimeout(re),re=null),ae=!0,ke=ge,Ne=je;try{Me.isActive&&!g.value?.isActive&&(S.activeKey=c.value,S.scrollPosition=window.scrollY||0,S.savedAt=Date.now()),!Me.isActive&&g.value?.isActive&&(S.activeKey&&(c.value=S.activeKey),S.scrollPosition&&Cn(()=>{window.scrollTo(0,S.scrollPosition)}),S.activeKey=null,S.scrollPosition=0,S.savedAt=null),await Cn();const be=He=>{if(He===null||typeof He!="object")return He;if(He instanceof Date)return new Date(He.getTime());if(He instanceof Array)return He.map(Je=>be(Je));if(typeof He=="object"){const Je={};return Object.keys(He).forEach(rt=>{Je[rt]=be(He[rt])}),Je}return He},Fe={isActive:!!Me.isActive,breadcrumbs:be(Me.breadcrumbs||[]),currentData:be(Me.currentData||[]),currentBreadcrumb:be(Me.currentBreadcrumb||null),loading:!!Me.loading};g.value=Fe}catch(be){console.error("更新folder状态时出错:",be)}finally{ae=!1,re=null}},_e=()=>{h.visible=!0;const Me=h.sites.filter(je=>je.type===4);h.form_title=`请选择数据源(${Me.length})`,E()},Ue=()=>{y.value=!1},Qe=async Me=>{if(!Me||!Me.trim()){Et.error("推送内容不能为空");return}const je=h.sites.find(ge=>ge.key==="push_agent");if(!je){Et.error("没有找到push_agent服务,请检查源配置");return}try{a.push({name:"VideoDetail",params:{id:Me.trim()},query:{name:`推送内容-${Me.trim()}`,pic:"",year:"",area:"",type:"",type_name:"",remarks:"",content:"",actor:"",director:"",fromPush:"true",tempSiteName:je.name,tempSiteApi:je.api,tempSiteKey:je.key,sourceRouteName:o.name,sourceRouteParams:JSON.stringify(o.params),sourceRouteQuery:JSON.stringify(o.query),sourcePic:""}}),Et.success(`正在推送内容: ${Me.trim()}`)}catch(ge){console.error("推送失败:",ge),Et.error("推送失败,请重试")}};return Rt(()=>o.query.activeKey,Me=>{Me&&Me!==c.value&&(console.log("[DEBUG] URL activeKey changed:",Me,"current:",c.value),c.value=Me)},{immediate:!0}),bn(async()=>{await C(),x(),E(),window.addEventListener("reloadSource",D);const Me=o.query._restoreSearch,je=o.query._returnToActiveKey,ge=o.query.folderState;if(Me==="true"){const rt=r.getPageState("search");if(rt&&rt.keyword&&!r.isStateExpired("search")){p.isSearching=!0,p.searchKeyword=rt.keyword,p.searchResults=rt.videos||[],p.currentPage=rt.currentPage||1,p.hasMore=rt.hasMore||!1,p.searchLoading=!1,p.searchError=null,p.scrollPosition=rt.scrollPosition||0;const ht={...o.query};delete ht._restoreSearch,a.replace({query:ht}),await W(h.now_site),_();return}}const be=r.getPageState("video"),Fe=r.isStateExpired("video");let He=!1,Je=!1;if(je){if(c.value=je,ge)try{const ht=JSON.parse(ge),ut={isActive:ht.isActive,breadcrumbs:ht.breadcrumbs||[],currentBreadcrumb:ht.currentBreadcrumb,currentData:[],loading:!1};if(g.value=ut,ht.currentBreadcrumb&&ht.currentBreadcrumb.vod_id){g.value={...g.value,loading:!0};try{const Ct={t:ht.currentBreadcrumb.vod_id,apiUrl:h.now_site?.api,extend:h.now_site?.ext},St=await q1(h.now_site?.key||t?.key,Ct);if(St&&St.list){const Gt={...g.value,currentData:St.list,loading:!1};g.value=Gt}else g.value={...g.value,loading:!1}}catch(Ct){console.error("获取folder数据失败:",Ct),g.value={...g.value,loading:!1}}}Je=!0}catch(ht){console.error("解析folder状态失败:",ht)}Je||(He=!0);const rt={...o.query};delete rt._returnToActiveKey,delete rt.folderState,a.replace({query:rt})}else be&&be.activeKey&&!Fe&&(c.value=be.activeKey,He=!0);await W(h.now_site),_(),He&&!Je&&setTimeout(()=>{d.value&&d.value.restoreFullState({activeKey:c.value,currentPage:be?.currentPage||1,videos:be?.videos||[],hasMore:be?.hasMore||!0,scrollPosition:be?.scrollPosition||0})},100)}),Io(()=>{if(k.value&&clearInterval(k.value),window.removeEventListener("reloadSource",D),c.value&&d.value){const Me=d.value.getCurrentState();r.saveVideoState(c.value,Me.currentPage,Me.videos,Me.hasMore,!1,Me.scrollPosition)}}),(Me,je)=>{const ge=Ie("a-spin"),be=Ie("a-button"),Fe=Ie("a-layout-content");return z(),Q(Nt,null,[O(S4t,{onHandleOpenForm:_e,onRefreshPage:T,onMinimize:P,onMaximize:M,onCloseWindow:$,onOnSearch:U,onHandlePush:Qe,now_site_title:h.now_site_title},{default:de(()=>[I("div",Bkt,[I("span",null,ze(l.value),1)])]),_:1},8,["now_site_title"]),I("div",Nkt,[y.value?(z(),Q("div",Fkt,[I("div",jkt,[O(ge,{size:32}),je[2]||(je[2]=I("div",{class:"loading-text"},"正在切换数据源...",-1)),O(be,{type:"outline",size:"small",onClick:Ue,class:"close-loading-btn"},{default:de(()=>[...je[1]||(je[1]=[We(" 手动关闭 ",-1)])]),_:1})])])):Le("",!0),O(Fe,{class:"content"},{default:de(()=>[p.isSearching?(z(),Ye(x3e,{key:0,keyword:p.searchKeyword,videos:p.searchResults,loading:p.searchLoading,error:p.searchError,currentPage:p.currentPage,totalPages:p.totalPages,hasMore:p.hasMore,scrollPosition:p.scrollPosition,sourceRoute:{name:et(o).name,params:et(o).params,query:et(o).query},module:h.now_site?.key||et(t)?.key,extend:h.now_site?.ext,"api-url":h.now_site?.api,onLoadMore:G,onExitSearch:X,onVideoClick:Z,onRefreshList:H},null,8,["keyword","videos","loading","error","currentPage","totalPages","hasMore","scrollPosition","sourceRoute","module","extend","api-url"])):(z(),Ye(pkt,{key:1,ref_key:"videoListRef",ref:d,classList:h.classList,recommendVideos:h.recommendVideos,sourceRoute:{name:et(o).name,params:et(o).params,query:{...et(o).query,activeKey:c.value,folderState:g.value.value?.isActive?JSON.stringify({isActive:g.value.value.isActive,breadcrumbs:g.value.value.breadcrumbs,currentBreadcrumb:g.value.value.currentBreadcrumb}):void 0}},returnToActiveKey:et(o).query._returnToActiveKey,module:h.now_site?.key||et(t)?.key,extend:h.now_site?.ext,"api-url":h.now_site?.api,specialCategoryState:v,folderNavigationState:g.value,onActiveKeyChange:oe,onSpecialAction:q,onCloseSpecialCategory:ne,onFolderNavigate:me},null,8,["classList","recommendVideos","sourceRoute","returnToActiveKey","module","extend","api-url","specialCategoryState","folderNavigationState"]))]),_:1})]),O(u4t,{visible:h.visible,title:h.form_title,sites:h.sites,currentSiteKey:h.now_site.key,"onUpdate:visible":je[0]||(je[0]=He=>h.visible=He),onConfirmClear:B,onConfirmChange:F,onChangeRule:L},null,8,["visible","title","sites","currentSiteKey"])],64)}}},zkt=xr(Vkt,[["__scopeId","data-v-5f75d03d"]]),C3e=async(e,t={})=>{const{snifferUrl:n="http://localhost:57573/sniffer",timeout:r=10,mode:o="0",is_pc:a="0"}=t;if(!e)throw new Error("URL或解析数据参数不能为空");if(!n)throw new Error("嗅探器接口地址不能为空");try{let s;if(typeof e=="object"&&e.parse===1){const{url:p,js:v,parse_extra:g}=e;if(!p)throw new Error("T4解析数据中缺少URL");const y=typeof p=="string"?p:p.toString?p.toString():String(p);console.log("处理T4解析数据:",e),console.log("提取的URL:",y),console.log("=== 调试结束 ===");const S=new URLSearchParams({url:y,mode:o,is_pc:a,timeout:(r*1e3).toString()});v&&S.set("script",v),s=`${n}?${S.toString()}`,g&&(s+=g)}else{const p=typeof e=="string"?e:e.toString(),v=new URLSearchParams({url:p,mode:o,is_pc:a,timeout:(r*1e3).toString()});s=`${n}?${v.toString()}`}console.log("嗅探请求URL:",s);const l=new AbortController,c=setTimeout(()=>l.abort(),r*1e3+5e3),d=await fetch(s,{method:"GET",signal:l.signal,headers:{Accept:"application/json","Content-Type":"application/json"}});if(clearTimeout(c),!d.ok)throw new Error(`嗅探请求失败: ${d.status} ${d.statusText}`);const h=await d.json();if(console.log("嗅探响应结果:",h),h.code!==200)throw new Error(h.msg||"嗅探失败");return{success:!0,data:h.data,message:h.msg||"嗅探成功",timestamp:h.timestamp}}catch(s){throw console.error("嗅探请求失败:",s),s.name==="AbortError"?new Error(`嗅探超时(${r}秒)`):s.message.includes("Failed to fetch")?new Error("无法连接到嗅探器服务,请检查嗅探器是否正常运行"):s}},mG=()=>{try{const e=localStorage.getItem("addressSettings");if(e){const t=JSON.parse(e);return{enabled:t.proxySniffEnabled||!1,url:t.proxySniff||"http://localhost:57573/sniffer",timeout:t.snifferTimeout||10}}}catch(e){console.error("获取嗅探器配置失败:",e)}return{enabled:!1,url:"http://localhost:57573/sniffer",timeout:10}},ET=()=>{const e=mG();if(!(e.url&&e.url.trim()!==""&&e.url!=="undefined"))return!1;try{const n=localStorage.getItem("addressSettings");if(n)return JSON.parse(n).proxySniffEnabled===!0}catch(n){console.error("检查嗅探器配置失败:",n)}return!0},w3e=async(e,t={})=>{const n=mG();if(!n.enabled)throw new Error("嗅探功能未启用");if(!n.url)throw new Error("嗅探器接口地址未配置");const r={snifferUrl:n.url,timeout:n.timeout,...t};return await C3e(e,r)},Ukt=Object.freeze(Object.defineProperty({__proto__:null,getSnifferConfig:mG,isSnifferEnabled:ET,sniffVideo:C3e,sniffVideoWithConfig:w3e},Symbol.toStringTag,{value:"Module"}));class Rle{static validateParserConfig(t){const n=[];if(!t)return{valid:!1,errors:["解析器配置不能为空"]};if(t.name||n.push("解析器名称不能为空"),!t.url)n.push("解析器URL不能为空");else try{new URL(t.url)}catch{n.push("解析器URL格式无效")}return(!t.type||!["json","sniffer"].includes(t.type))&&n.push("解析器类型必须是 json 或 sniffer"),t.type==="json"&&(t.urlPath||n.push("JSON解析器必须配置URL提取路径(urlPath)")),t.type,{valid:n.length===0,errors:n}}static async testParserConfig(t,n="https://example.com/test.mp4"){try{console.log("🧪 [解析器测试] 开始测试解析器配置:",{parser:t.name,testUrl:n,isDefaultTestUrl:n==="https://example.com/test.mp4"});const r=this.validateParserConfig(t);if(!r.valid)return{success:!1,message:"配置验证失败: "+r.errors.join(", ")};let o;return t.type==="json"?(console.log("🧪 [解析器测试] 使用JSON解析器测试"),o=await this.parseWithJsonParser(t,{url:n})):t.type==="sniffer"&&(console.log("🧪 [解析器测试] 使用嗅探解析器测试"),o=await this.parseWithSnifferParser(t,{url:n})),{success:o.success,message:o.success?"解析器测试成功":o.message,testResult:o}}catch(r){return{success:!1,message:"解析器测试失败: "+r.message}}}static async parseWithJsonParser(t,n){try{if(console.log("🔍 [JSON解析] 开始解析:",{parser:t.name,data:n,dataType:typeof n,isTestUrl:n&&typeof n=="object"&&n.url==="https://example.com/test.mp4"}),!t.url)throw new Error("解析器URL未配置");let r;if(n&&typeof n=="object"?(r=n.url||n.play_url||n,console.log("从T4数据结构提取的目标URL:",r)):(r=n,console.log("直接使用的目标URL:",r)),!r||typeof r!="string")throw new Error("无效的视频URL");console.log("要解析的视频URL:",r);const o=t.url+encodeURIComponent(r);console.log("拼接后的解析地址:",o);const a=JSON.parse(localStorage.getItem("addressSettings")||"{}"),s=a.proxyAccessEnabled||!1,l=a.proxyAccess||"";let c=o;s&&l?(console.log("🔄 [代理访问] 使用代理访问接口:",l),l.includes("${url}")?(c=l.replace(/\$\{url\}/g,encodeURIComponent(o)),console.log("🔄 [代理访问] 替换占位符后的最终URL:",c)):console.warn("⚠️ [代理访问] 代理访问链接中未找到${url}占位符,将直接访问原地址")):console.log("🔄 [直接访问] 代理访问接口未启用,直接访问解析地址");const d={method:t.method||"GET",url:c,headers:{"User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36",Referer:o,...t.headers},timeout:y0.TIMEOUT},h=await co(d);console.log("JSON解析响应:",h.data);const p=this.parseJsonResponse(h.data,t);return{success:!0,url:p.url,headers:p.headers||{},qualities:p.qualities||[],message:"解析成功"}}catch(r){return console.error("JSON解析失败:",r),{success:!1,message:r.message||"JSON解析失败"}}}static async parseWithSnifferParser(t,n){try{if(console.log("开始嗅探解析:",{parser:t.name,data:n}),!t.url)throw new Error("解析器URL未配置");const r=this.buildSnifferUrl(t,n);console.log("嗅探URL:",r);const o=await co({method:"GET",url:r,headers:{"User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36",Referer:n.referer||"",...t.headers},timeout:y0.TIMEOUT,maxRedirects:5});console.log("嗅探解析响应状态:",o.status);const a=this.extractVideoUrlFromSniffer(o,t);if(!a)throw new Error("未能从嗅探响应中提取到视频URL");return{success:!0,url:a,headers:{Referer:t.url,"User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36"},qualities:[],message:"嗅探解析成功"}}catch(r){return console.error("嗅探解析失败:",r),{success:!1,message:r.message||"嗅探解析失败"}}}static parseJsonResponse(t,n){try{let r=t;typeof r=="string"&&(r=JSON.parse(r));const o={url:this.extractValueByPath(r,n.urlPath||"url"),headers:{},qualities:[]};if(n.headersPath&&(o.headers=this.extractValueByPath(r,n.headersPath)||{}),n.qualitiesPath){const a=this.extractValueByPath(r,n.qualitiesPath);Array.isArray(a)&&(o.qualities=a.map(s=>({name:s.name||s.quality||"Unknown",url:s.url||s.playUrl||s.src})))}return o}catch(r){throw console.error("解析JSON响应失败:",r),new Error("解析JSON响应失败: "+r.message)}}static buildSnifferUrl(t,n){let r=t.url,o;if(n&&typeof n=="object"?(o=n.url||n.play_url||n,console.log("从T4数据结构提取的嗅探目标URL:",o)):(o=n,console.log("直接使用的嗅探目标URL:",o)),!o||typeof o!="string")throw new Error("无效的视频URL");if(r.includes("{url}")?r=r.replace(/\{url\}/g,encodeURIComponent(o)):r=r+encodeURIComponent(o),r=r.replace(/\{time\}/g,Date.now()),t.params){const a=new URLSearchParams;Object.entries(t.params).forEach(([s,l])=>{a.append(s,l)}),r+=(r.includes("?")?"&":"?")+a.toString()}return r}static extractVideoUrlFromSniffer(t,n){try{if(t.headers.location){const r=t.headers.location;if(this.isVideoUrl(r))return r}if(t.data){let r=t.data;if(typeof r=="object"){const o=this.extractValueByPath(r,n.urlPath||"url");if(o&&this.isVideoUrl(o))return o}if(typeof r=="string"){const o=/(https?:\/\/[^\s"'<>]+\.(?:mp4|m3u8|flv|avi|mkv|mov|wmv|webm)(?:\?[^\s"'<>]*)?)/gi,a=r.match(o);if(a&&a.length>0)return a[0]}}if(n.extractRule){const r=new RegExp(n.extractRule,"gi"),o=t.data.match(r);if(o&&o.length>0)return o[0]}return null}catch(r){return console.error("提取视频URL失败:",r),null}}static extractValueByPath(t,n){try{return n.split(".").reduce((r,o)=>{const a=o.match(/^(\w+)\[(\d+)\]$/);if(a){const[,s,l]=a;return r?.[s]?.[parseInt(l)]}return r?.[o]},t)}catch(r){return console.error("提取路径值失败:",r,{path:n,obj:t}),null}}static isVideoUrl(t){if(!t||typeof t!="string")return!1;const n=[".mp4",".m3u8",".flv",".avi",".mkv",".mov",".wmv",".webm"],r=t.toLowerCase();return n.some(o=>r.includes(o))||r.includes("video")||r.includes("stream")}}const YA=tg("favorite",()=>{const e=fe([]),t=()=>{try{const v=localStorage.getItem("drplayer-favorites");v&&(e.value=JSON.parse(v))}catch(v){console.error("加载收藏数据失败:",v),e.value=[]}},n=()=>{try{localStorage.setItem("drplayer-favorites",JSON.stringify(e.value))}catch(v){console.error("保存收藏数据失败:",v)}},r=v=>{const g={id:v.vod_id,name:v.vod_name,pic:v.vod_pic,year:v.vod_year,area:v.vod_area,type_name:v.type_name,remarks:v.vod_remarks,director:v.vod_director,actor:v.vod_actor,api_info:{module:v.module||"",api_url:v.api_url||"",site_name:v.site_name||"",ext:v.ext||null},created_at:new Date().toISOString(),updated_at:new Date().toISOString()};return e.value.findIndex(S=>S.id===g.id&&S.api_info.api_url===g.api_info.api_url)===-1?(e.value.unshift(g),n(),!0):!1},o=(v,g)=>{const y=e.value.findIndex(S=>S.id===v&&S.api_info.api_url===g);return y!==-1?(e.value.splice(y,1),n(),!0):!1},a=(v,g)=>e.value.some(y=>y.id===v&&y.api_info.api_url===g),s=(v,g)=>e.value.find(y=>y.id===v&&y.api_info.api_url===g),l=()=>{e.value=[],n()},c=()=>{const v={version:"1.0",export_time:new Date().toISOString(),favorites:e.value},g=new Blob([JSON.stringify(v,null,2)],{type:"application/json"}),y=URL.createObjectURL(g),S=document.createElement("a");S.href=y,S.download=`drplayer-favorites-${new Date().toISOString().split("T")[0]}.json`,document.body.appendChild(S),S.click(),document.body.removeChild(S),URL.revokeObjectURL(y)},d=v=>new Promise((g,y)=>{const S=new FileReader;S.onload=k=>{try{const C=JSON.parse(k.target.result);if(!C.favorites||!Array.isArray(C.favorites))throw new Error("无效的收藏数据格式");let x=0;C.favorites.forEach(E=>{e.value.some(T=>T.id===E.id&&T.api_info.api_url===E.api_info.api_url)||(e.value.push({...E,updated_at:new Date().toISOString()}),x++)}),n(),g(x)}catch(C){y(C)}},S.onerror=()=>{y(new Error("文件读取失败"))},S.readAsText(v)}),h=j(()=>e.value.length),p=j(()=>{const v={};return e.value.forEach(g=>{const y=g.api_info?.site_name||"";let S="影视";y.includes("[书]")?S="小说":y.includes("[画]")?S="漫画":y.includes("[密]")?S="密":y.includes("[听]")?S="音频":y.includes("[儿]")&&(S="少儿"),v[S]||(v[S]=[]),v[S].push(g)}),v});return t(),{favorites:e,favoriteCount:h,favoritesByType:p,addFavorite:r,removeFavorite:o,isFavorited:a,getFavorite:s,clearFavorites:l,exportFavorites:c,importFavorites:d,loadFavorites:t,saveFavorites:n}}),gG=tg("history",()=>{const e=fe([]),t=j(()=>e.value.length),n=j(()=>[...e.value].sort((g,y)=>new Date(y.updated_at)-new Date(g.updated_at))),r=j(()=>{const g={};return e.value.forEach(y=>{const S=y.api_info?.site_name||"";let k="影视";S.includes("[书]")?k="小说":S.includes("[画]")?k="漫画":S.includes("[密]")?k="密":S.includes("[听]")?k="音频":S.includes("[儿]")&&(k="少儿"),g[k]||(g[k]=[]),g[k].push(y)}),g}),o=()=>{try{const g=localStorage.getItem("drplayer_histories");g&&(e.value=JSON.parse(g))}catch(g){console.error("加载观看历史失败:",g),e.value=[]}},a=()=>{try{localStorage.setItem("drplayer_histories",JSON.stringify(e.value))}catch(g){console.error("保存观看历史失败:",g)}},s=(g,y,S)=>{const k=new Date().toISOString();console.log("=== historyStore.addToHistory 调试 ==="),console.log("传入的videoInfo.api_info:",g.api_info),console.log("传入的videoInfo.api_info.ext:",g.api_info.ext);const C=e.value.findIndex(E=>E.id===g.id&&E.api_info.api_url===g.api_info.api_url),x={...g,current_route_name:y.name,current_route_index:y.index,current_episode_name:S.name,current_episode_index:S.index,current_episode_url:S.url,updated_at:k};C!==-1?(e.value[C]={...e.value[C],...x},console.log("更新后的历史记录api_info:",e.value[C].api_info)):(x.created_at=k,e.value.push(x),console.log("新添加的历史记录api_info:",x.api_info)),console.log("=== historyStore.addToHistory 调试结束 ==="),a()},l=g=>{if(!g||!g.id||!g.api_info||!g.api_info.api_url)return console.error("删除历史记录失败:参数无效",g),!1;const y=e.value.findIndex(S=>S.id===g.id&&S.api_info.api_url===g.api_info.api_url);return y!==-1?(e.value.splice(y,1),a(),console.log("删除历史记录成功:",g.name),!0):(console.warn("未找到要删除的历史记录:",g),!1)},c=()=>{e.value=[],a()},d=()=>{const g=JSON.stringify(e.value,null,2),y=new Blob([g],{type:"application/json"}),S=document.createElement("a");S.href=URL.createObjectURL(y),S.download=`drplayer_histories_${new Date().toISOString().split("T")[0]}.json`,document.body.appendChild(S),S.click(),document.body.removeChild(S)},h=g=>{try{const y=JSON.parse(g);if(!Array.isArray(y))throw new Error("导入的数据格式不正确");const S=y.filter(k=>k.id&&k.name&&k.pic&&k.api_info&&k.current_route_name&&k.current_episode_name);return S.forEach(k=>{const C=e.value.findIndex(x=>x.id===k.id&&x.api_info.api_url===k.api_info.api_url);if(C===-1)e.value.push(k);else{const x=e.value[C],E=new Date(k.updated_at),_=new Date(x.updated_at);E>_&&(e.value[C]=k)}}),a(),S.length}catch(y){throw new Error(`导入失败: ${y.message}`)}},p=(g,y)=>e.value.find(S=>S.id===g&&S.api_info.api_url===y);return{histories:e,historyCount:t,sortedHistories:n,historiesByType:r,loadHistories:o,saveHistories:a,addToHistory:s,removeFromHistory:l,clearHistories:c,exportHistories:d,importHistories:h,getHistoryByVideo:p,getWatchProgress:(g,y)=>{const S=p(g,y);return S?{routeName:S.current_route_name,routeIndex:S.current_route_index,episodeName:S.current_episode_name,episodeIndex:S.current_episode_index,episodeUrl:S.current_episode_url,lastWatchTime:S.updated_at}:null}}}),yG=tg("parser",()=>{const e=fe([]),t=fe(!1),n=fe(null),r=j(()=>e.value.filter(_=>_.enabled!==!1)),o=j(()=>e.value.filter(_=>_.enabled===!1)),a=j(()=>e.value.length),s=async _=>{t.value=!0,n.value=null;try{const T=await fetch(_);if(!T.ok)throw new Error(`HTTP ${T.status}: ${T.statusText}`);const D=await T.json();if(D.parses&&Array.isArray(D.parses))return e.value=D.parses.map((P,M)=>({...P,id:P.id||`parser_${Date.now()}_${M}`,enabled:P.enabled!==!1,order:M})),c(),!0;throw new Error("配置数据格式错误:缺少parses字段")}catch(T){return n.value=T.message,console.error("加载解析配置失败:",T),!1}finally{t.value=!1}},l=()=>{try{const _=localStorage.getItem("drplayer_parsers");if(_){const T=JSON.parse(_);if(Array.isArray(T))return e.value=T,!0}}catch(_){console.error("从本地存储加载解析配置失败:",_)}return!1},c=()=>{try{localStorage.setItem("drplayer_parsers",JSON.stringify(e.value))}catch(_){console.error("保存解析配置到本地存储失败:",_)}},d=_=>{const T={..._,id:`parser_${Date.now()}_${Math.random().toString(36).substr(2,9)}`,enabled:!0,order:e.value.length};return e.value.push(T),c(),T},h=(_,T)=>{const D=e.value.findIndex(P=>P.id===_);return D!==-1?(e.value[D]={...e.value[D],...T},c(),!0):!1},p=_=>{const T=e.value.findIndex(D=>D.id===_);return T!==-1?(e.value.splice(T,1),c(),!0):!1},v=_=>{const T=e.value.find(D=>D.id===_);return T?(T.enabled=!T.enabled,c(),T.enabled):!1},g=_=>{e.value=_.map((T,D)=>({...T,order:D})),c()},y=_=>{const T=[...e.value];T.forEach(D=>{_.has(D.id)&&(D.order=_.get(D.id))}),T.sort((D,P)=>D.order-P.order),T.forEach((D,P)=>{D.order=P}),e.value=T,c()},S=async(_,T)=>{try{const D=_.url.replace(/\{url\}/g,encodeURIComponent(T)),P=await fetch(D,{method:"GET",headers:_.header||{},timeout:1e4});if(!P.ok)throw new Error(`HTTP ${P.status}: ${P.statusText}`);const M=await P.text(),$=/https?:\/\/[^\s]+\.(mp4|m3u8|flv)/i.test(M);return{success:!0,hasVideoUrl:$,response:M,message:$?"解析成功,检测到视频链接":"解析完成,但未检测到视频链接"}}catch(D){return{success:!1,error:D.message,message:`解析失败: ${D.message}`}}},k=()=>{const _={parses:e.value.map(M=>({name:M.name,url:M.url,type:M.type,ext:M.ext,header:M.header})),exportTime:new Date().toISOString(),version:"1.0"},T=new Blob([JSON.stringify(_,null,2)],{type:"application/json"}),D=URL.createObjectURL(T),P=document.createElement("a");P.href=D,P.download=`drplayer_parsers_${new Date().toISOString().split("T")[0]}.json`,document.body.appendChild(P),P.click(),document.body.removeChild(P),URL.revokeObjectURL(D)},C=async _=>{try{const T=await _.text(),D=JSON.parse(T);if(D.parses&&Array.isArray(D.parses)){const P=D.parses.map((M,$)=>({...M,id:`imported_${Date.now()}_${$}`,enabled:!0,order:e.value.length+$}));return e.value.push(...P),c(),{success:!0,count:P.length}}else throw new Error("导入文件格式错误:缺少parses字段")}catch(T){return{success:!1,error:T.message}}},x=()=>{e.value=[],c()};return l(),{parsers:e,loading:t,error:n,enabledParsers:r,disabledParsers:o,parserCount:a,loadParsers:()=>{l()},loadParsersFromConfig:s,loadFromLocalStorage:l,saveToLocalStorage:c,addParser:d,updateParser:h,deleteParser:p,toggleParser:v,reorderParsers:g,reorderParsersById:y,testParser:S,exportParsers:k,importParsers:C,clearAllParsers:x}}),jn=Number.isFinite||function(e){return typeof e=="number"&&isFinite(e)},Hkt=Number.isSafeInteger||function(e){return typeof e=="number"&&Math.abs(e)<=Wkt},Wkt=Number.MAX_SAFE_INTEGER||9007199254740991;let dr=(function(e){return e.NETWORK_ERROR="networkError",e.MEDIA_ERROR="mediaError",e.KEY_SYSTEM_ERROR="keySystemError",e.MUX_ERROR="muxError",e.OTHER_ERROR="otherError",e})({}),Ht=(function(e){return e.KEY_SYSTEM_NO_KEYS="keySystemNoKeys",e.KEY_SYSTEM_NO_ACCESS="keySystemNoAccess",e.KEY_SYSTEM_NO_SESSION="keySystemNoSession",e.KEY_SYSTEM_NO_CONFIGURED_LICENSE="keySystemNoConfiguredLicense",e.KEY_SYSTEM_LICENSE_REQUEST_FAILED="keySystemLicenseRequestFailed",e.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED="keySystemServerCertificateRequestFailed",e.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED="keySystemServerCertificateUpdateFailed",e.KEY_SYSTEM_SESSION_UPDATE_FAILED="keySystemSessionUpdateFailed",e.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED="keySystemStatusOutputRestricted",e.KEY_SYSTEM_STATUS_INTERNAL_ERROR="keySystemStatusInternalError",e.KEY_SYSTEM_DESTROY_MEDIA_KEYS_ERROR="keySystemDestroyMediaKeysError",e.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR="keySystemDestroyCloseSessionError",e.KEY_SYSTEM_DESTROY_REMOVE_SESSION_ERROR="keySystemDestroyRemoveSessionError",e.MANIFEST_LOAD_ERROR="manifestLoadError",e.MANIFEST_LOAD_TIMEOUT="manifestLoadTimeOut",e.MANIFEST_PARSING_ERROR="manifestParsingError",e.MANIFEST_INCOMPATIBLE_CODECS_ERROR="manifestIncompatibleCodecsError",e.LEVEL_EMPTY_ERROR="levelEmptyError",e.LEVEL_LOAD_ERROR="levelLoadError",e.LEVEL_LOAD_TIMEOUT="levelLoadTimeOut",e.LEVEL_PARSING_ERROR="levelParsingError",e.LEVEL_SWITCH_ERROR="levelSwitchError",e.AUDIO_TRACK_LOAD_ERROR="audioTrackLoadError",e.AUDIO_TRACK_LOAD_TIMEOUT="audioTrackLoadTimeOut",e.SUBTITLE_LOAD_ERROR="subtitleTrackLoadError",e.SUBTITLE_TRACK_LOAD_TIMEOUT="subtitleTrackLoadTimeOut",e.FRAG_LOAD_ERROR="fragLoadError",e.FRAG_LOAD_TIMEOUT="fragLoadTimeOut",e.FRAG_DECRYPT_ERROR="fragDecryptError",e.FRAG_PARSING_ERROR="fragParsingError",e.FRAG_GAP="fragGap",e.REMUX_ALLOC_ERROR="remuxAllocError",e.KEY_LOAD_ERROR="keyLoadError",e.KEY_LOAD_TIMEOUT="keyLoadTimeOut",e.BUFFER_ADD_CODEC_ERROR="bufferAddCodecError",e.BUFFER_INCOMPATIBLE_CODECS_ERROR="bufferIncompatibleCodecsError",e.BUFFER_APPEND_ERROR="bufferAppendError",e.BUFFER_APPENDING_ERROR="bufferAppendingError",e.BUFFER_STALLED_ERROR="bufferStalledError",e.BUFFER_FULL_ERROR="bufferFullError",e.BUFFER_SEEK_OVER_HOLE="bufferSeekOverHole",e.BUFFER_NUDGE_ON_STALL="bufferNudgeOnStall",e.ASSET_LIST_LOAD_ERROR="assetListLoadError",e.ASSET_LIST_LOAD_TIMEOUT="assetListLoadTimeout",e.ASSET_LIST_PARSING_ERROR="assetListParsingError",e.INTERSTITIAL_ASSET_ITEM_ERROR="interstitialAssetItemError",e.INTERNAL_EXCEPTION="internalException",e.INTERNAL_ABORTED="aborted",e.ATTACH_MEDIA_ERROR="attachMediaError",e.UNKNOWN="unknown",e})({}),Ee=(function(e){return e.MEDIA_ATTACHING="hlsMediaAttaching",e.MEDIA_ATTACHED="hlsMediaAttached",e.MEDIA_DETACHING="hlsMediaDetaching",e.MEDIA_DETACHED="hlsMediaDetached",e.MEDIA_ENDED="hlsMediaEnded",e.STALL_RESOLVED="hlsStallResolved",e.BUFFER_RESET="hlsBufferReset",e.BUFFER_CODECS="hlsBufferCodecs",e.BUFFER_CREATED="hlsBufferCreated",e.BUFFER_APPENDING="hlsBufferAppending",e.BUFFER_APPENDED="hlsBufferAppended",e.BUFFER_EOS="hlsBufferEos",e.BUFFERED_TO_END="hlsBufferedToEnd",e.BUFFER_FLUSHING="hlsBufferFlushing",e.BUFFER_FLUSHED="hlsBufferFlushed",e.MANIFEST_LOADING="hlsManifestLoading",e.MANIFEST_LOADED="hlsManifestLoaded",e.MANIFEST_PARSED="hlsManifestParsed",e.LEVEL_SWITCHING="hlsLevelSwitching",e.LEVEL_SWITCHED="hlsLevelSwitched",e.LEVEL_LOADING="hlsLevelLoading",e.LEVEL_LOADED="hlsLevelLoaded",e.LEVEL_UPDATED="hlsLevelUpdated",e.LEVEL_PTS_UPDATED="hlsLevelPtsUpdated",e.LEVELS_UPDATED="hlsLevelsUpdated",e.AUDIO_TRACKS_UPDATED="hlsAudioTracksUpdated",e.AUDIO_TRACK_SWITCHING="hlsAudioTrackSwitching",e.AUDIO_TRACK_SWITCHED="hlsAudioTrackSwitched",e.AUDIO_TRACK_LOADING="hlsAudioTrackLoading",e.AUDIO_TRACK_LOADED="hlsAudioTrackLoaded",e.AUDIO_TRACK_UPDATED="hlsAudioTrackUpdated",e.SUBTITLE_TRACKS_UPDATED="hlsSubtitleTracksUpdated",e.SUBTITLE_TRACKS_CLEARED="hlsSubtitleTracksCleared",e.SUBTITLE_TRACK_SWITCH="hlsSubtitleTrackSwitch",e.SUBTITLE_TRACK_LOADING="hlsSubtitleTrackLoading",e.SUBTITLE_TRACK_LOADED="hlsSubtitleTrackLoaded",e.SUBTITLE_TRACK_UPDATED="hlsSubtitleTrackUpdated",e.SUBTITLE_FRAG_PROCESSED="hlsSubtitleFragProcessed",e.CUES_PARSED="hlsCuesParsed",e.NON_NATIVE_TEXT_TRACKS_FOUND="hlsNonNativeTextTracksFound",e.INIT_PTS_FOUND="hlsInitPtsFound",e.FRAG_LOADING="hlsFragLoading",e.FRAG_LOAD_EMERGENCY_ABORTED="hlsFragLoadEmergencyAborted",e.FRAG_LOADED="hlsFragLoaded",e.FRAG_DECRYPTED="hlsFragDecrypted",e.FRAG_PARSING_INIT_SEGMENT="hlsFragParsingInitSegment",e.FRAG_PARSING_USERDATA="hlsFragParsingUserdata",e.FRAG_PARSING_METADATA="hlsFragParsingMetadata",e.FRAG_PARSED="hlsFragParsed",e.FRAG_BUFFERED="hlsFragBuffered",e.FRAG_CHANGED="hlsFragChanged",e.FPS_DROP="hlsFpsDrop",e.FPS_DROP_LEVEL_CAPPING="hlsFpsDropLevelCapping",e.MAX_AUTO_LEVEL_UPDATED="hlsMaxAutoLevelUpdated",e.ERROR="hlsError",e.DESTROYING="hlsDestroying",e.KEY_LOADING="hlsKeyLoading",e.KEY_LOADED="hlsKeyLoaded",e.LIVE_BACK_BUFFER_REACHED="hlsLiveBackBufferReached",e.BACK_BUFFER_REACHED="hlsBackBufferReached",e.STEERING_MANIFEST_LOADED="hlsSteeringManifestLoaded",e.ASSET_LIST_LOADING="hlsAssetListLoading",e.ASSET_LIST_LOADED="hlsAssetListLoaded",e.INTERSTITIALS_UPDATED="hlsInterstitialsUpdated",e.INTERSTITIALS_BUFFERED_TO_BOUNDARY="hlsInterstitialsBufferedToBoundary",e.INTERSTITIAL_ASSET_PLAYER_CREATED="hlsInterstitialAssetPlayerCreated",e.INTERSTITIAL_STARTED="hlsInterstitialStarted",e.INTERSTITIAL_ASSET_STARTED="hlsInterstitialAssetStarted",e.INTERSTITIAL_ASSET_ENDED="hlsInterstitialAssetEnded",e.INTERSTITIAL_ASSET_ERROR="hlsInterstitialAssetError",e.INTERSTITIAL_ENDED="hlsInterstitialEnded",e.INTERSTITIALS_PRIMARY_RESUMED="hlsInterstitialsPrimaryResumed",e.PLAYOUT_LIMIT_REACHED="hlsPlayoutLimitReached",e.EVENT_CUE_ENTER="hlsEventCueEnter",e})({});var ki={MANIFEST:"manifest",LEVEL:"level",AUDIO_TRACK:"audioTrack",SUBTITLE_TRACK:"subtitleTrack"},nr={MAIN:"main",AUDIO:"audio",SUBTITLE:"subtitle"};class C1{constructor(t,n=0,r=0){this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=t,this.alpha_=t?Math.exp(Math.log(.5)/t):0,this.estimate_=n,this.totalWeight_=r}sample(t,n){const r=Math.pow(this.alpha_,t);this.estimate_=n*(1-r)+r*this.estimate_,this.totalWeight_+=t}getTotalWeight(){return this.totalWeight_}getEstimate(){if(this.alpha_){const t=1-Math.pow(this.alpha_,this.totalWeight_);if(t)return this.estimate_/t}return this.estimate_}}class Gkt{constructor(t,n,r,o=100){this.defaultEstimate_=void 0,this.minWeight_=void 0,this.minDelayMs_=void 0,this.slow_=void 0,this.fast_=void 0,this.defaultTTFB_=void 0,this.ttfb_=void 0,this.defaultEstimate_=r,this.minWeight_=.001,this.minDelayMs_=50,this.slow_=new C1(t),this.fast_=new C1(n),this.defaultTTFB_=o,this.ttfb_=new C1(t)}update(t,n){const{slow_:r,fast_:o,ttfb_:a}=this;r.halfLife!==t&&(this.slow_=new C1(t,r.getEstimate(),r.getTotalWeight())),o.halfLife!==n&&(this.fast_=new C1(n,o.getEstimate(),o.getTotalWeight())),a.halfLife!==t&&(this.ttfb_=new C1(t,a.getEstimate(),a.getTotalWeight()))}sample(t,n){t=Math.max(t,this.minDelayMs_);const r=8*n,o=t/1e3,a=r/o;this.fast_.sample(o,a),this.slow_.sample(o,a)}sampleTTFB(t){const n=t/1e3,r=Math.sqrt(2)*Math.exp(-Math.pow(n,2)/2);this.ttfb_.sample(r,Math.max(t,5))}canEstimate(){return this.fast_.getTotalWeight()>=this.minWeight_}getEstimate(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_}getEstimateTTFB(){return this.ttfb_.getTotalWeight()>=this.minWeight_?this.ttfb_.getEstimate():this.defaultTTFB_}get defaultEstimate(){return this.defaultEstimate_}destroy(){}}function Kkt(e,t,n){return(t=Ykt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bo(){return bo=Object.assign?Object.assign.bind():function(e){for(var t=1;t`):Zp}function Ole(e,t,n){return t[e]?t[e].bind(t):Zkt(e,n)}const $z=Oz();function Jkt(e,t,n){const r=Oz();if(typeof console=="object"&&e===!0||typeof e=="object"){const o=["debug","log","info","warn","error"];o.forEach(a=>{r[a]=Ole(a,e,n)});try{r.log(`Debug logs enabled for "${t}" in hls.js version 1.6.13`)}catch{return Oz()}o.forEach(a=>{$z[a]=Ole(a,e)})}else bo($z,r);return r}const po=$z;function P0(e=!0){return typeof self>"u"?void 0:(e||!self.MediaSource)&&self.ManagedMediaSource||self.MediaSource||self.WebKitMediaSource}function Qkt(e){return typeof self<"u"&&e===self.ManagedMediaSource}function E3e(e,t){const n=Object.keys(e),r=Object.keys(t),o=n.length,a=r.length;return!o||!a||o===a&&!n.some(s=>r.indexOf(s)===-1)}function cc(e,t=!1){if(typeof TextDecoder<"u"){const d=new TextDecoder("utf-8").decode(e);if(t){const h=d.indexOf("\0");return h!==-1?d.substring(0,h):d}return d.replace(/\0/g,"")}const n=e.length;let r,o,a,s="",l=0;for(;l>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:s+=String.fromCharCode(r);break;case 12:case 13:o=e[l++],s+=String.fromCharCode((r&31)<<6|o&63);break;case 14:o=e[l++],a=e[l++],s+=String.fromCharCode((r&15)<<12|(o&63)<<6|(a&63)<<0);break}}return s}function zl(e){let t="";for(let n=0;n1||o===1&&(n=this.levelkeys[r[0]])!=null&&n.encrypted)return!0}return!1}get programDateTime(){return this._programDateTime===null&&this.rawProgramDateTime&&(this.programDateTime=Date.parse(this.rawProgramDateTime)),this._programDateTime}set programDateTime(t){if(!jn(t)){this._programDateTime=this.rawProgramDateTime=null;return}this._programDateTime=t}get ref(){return Ks(this)?(this._ref||(this._ref={base:this.base,start:this.start,duration:this.duration,sn:this.sn,programDateTime:this.programDateTime}),this._ref):null}addStart(t){this.setStart(this.start+t)}setStart(t){this.start=t,this._ref&&(this._ref.start=t)}setDuration(t){this.duration=t,this._ref&&(this._ref.duration=t)}setKeyFormat(t){const n=this.levelkeys;if(n){var r;const o=n[t];o&&!((r=this._decryptdata)!=null&&r.keyId)&&(this._decryptdata=o.getDecryptData(this.sn,n))}}abortRequests(){var t,n;(t=this.loader)==null||t.abort(),(n=this.keyLoader)==null||n.abort()}setElementaryStreamInfo(t,n,r,o,a,s=!1){const{elementaryStreams:l}=this,c=l[t];if(!c){l[t]={startPTS:n,endPTS:r,startDTS:o,endDTS:a,partial:s};return}c.startPTS=Math.min(c.startPTS,n),c.endPTS=Math.max(c.endPTS,r),c.startDTS=Math.min(c.startDTS,o),c.endDTS=Math.max(c.endDTS,a)}}class nxt extends A3e{constructor(t,n,r,o,a){super(r),this.fragOffset=0,this.duration=0,this.gap=!1,this.independent=!1,this.relurl=void 0,this.fragment=void 0,this.index=void 0,this.duration=t.decimalFloatingPoint("DURATION"),this.gap=t.bool("GAP"),this.independent=t.bool("INDEPENDENT"),this.relurl=t.enumeratedString("URI"),this.fragment=n,this.index=o;const s=t.enumeratedString("BYTERANGE");s&&this.setByteRange(s,a),a&&(this.fragOffset=a.fragOffset+a.duration)}get start(){return this.fragment.start+this.fragOffset}get end(){return this.start+this.duration}get loaded(){const{elementaryStreams:t}=this;return!!(t.audio||t.video||t.audiovideo)}}function I3e(e,t){const n=Object.getPrototypeOf(e);if(n){const r=Object.getOwnPropertyDescriptor(n,t);return r||I3e(n,t)}}function rxt(e,t){const n=I3e(e,t);n&&(n.enumerable=!0,Object.defineProperty(e,t,n))}const Ble=Math.pow(2,32)-1,ixt=[].push,L3e={video:1,audio:2,id3:3,text:4};function aa(e){return String.fromCharCode.apply(null,e)}function D3e(e,t){const n=e[t]<<8|e[t+1];return n<0?65536+n:n}function Br(e,t){const n=P3e(e,t);return n<0?4294967296+n:n}function Nle(e,t){let n=Br(e,t);return n*=Math.pow(2,32),n+=Br(e,t+4),n}function P3e(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]}function oxt(e){const t=e.byteLength;for(let n=0;n8&&e[n+4]===109&&e[n+5]===111&&e[n+6]===111&&e[n+7]===102)return!0;n=r>1?n+r:t}return!1}function pi(e,t){const n=[];if(!t.length)return n;const r=e.byteLength;for(let o=0;o1?o+a:r;if(s===t[0])if(t.length===1)n.push(e.subarray(o+8,l));else{const c=pi(e.subarray(o+8,l),t.slice(1));c.length&&ixt.apply(n,c)}o=l}return n}function sxt(e){const t=[],n=e[0];let r=8;const o=Br(e,r);r+=4;let a=0,s=0;n===0?(a=Br(e,r),s=Br(e,r+4),r+=8):(a=Nle(e,r),s=Nle(e,r+8),r+=16),r+=2;let l=e.length+s;const c=D3e(e,r);r+=2;for(let d=0;d>>31===1)return po.warn("SIDX has hierarchical references (not supported)"),null;const y=Br(e,h);h+=4,t.push({referenceSize:v,subsegmentDuration:y,info:{duration:y/o,start:l,end:l+v-1}}),l+=v,h+=4,r=h}return{earliestPresentationTime:a,timescale:o,version:n,referencesCount:c,references:t}}function R3e(e){const t=[],n=pi(e,["moov","trak"]);for(let o=0;o{const a=Br(o,4),s=t[a];s&&(s.default={duration:Br(o,12),flags:Br(o,20)})}),t}function axt(e){const t=e.subarray(8),n=t.subarray(86),r=aa(t.subarray(4,8));let o=r,a;const s=r==="enca"||r==="encv";if(s){const d=pi(t,[r])[0].subarray(r==="enca"?28:78);pi(d,["sinf"]).forEach(p=>{const v=pi(p,["schm"])[0];if(v){const g=aa(v.subarray(4,8));if(g==="cbcs"||g==="cenc"){const y=pi(p,["frma"])[0];y&&(o=aa(y))}}})}const l=o;switch(o){case"avc1":case"avc2":case"avc3":case"avc4":{const c=pi(n,["avcC"])[0];c&&c.length>3&&(o+="."+vC(c[1])+vC(c[2])+vC(c[3]),a=pC(l==="avc1"?"dva1":"dvav",n));break}case"mp4a":{const c=pi(t,[r])[0],d=pi(c.subarray(28),["esds"])[0];if(d&&d.length>7){let h=4;if(d[h++]!==3)break;h=RF(d,h),h+=2;const p=d[h++];if(p&128&&(h+=2),p&64&&(h+=d[h++]),d[h++]!==4)break;h=RF(d,h);const v=d[h++];if(v===64)o+="."+vC(v);else break;if(h+=12,d[h++]!==5)break;h=RF(d,h);const g=d[h++];let y=(g&248)>>3;y===31&&(y+=1+((g&7)<<3)+((d[h]&224)>>5)),o+="."+y}break}case"hvc1":case"hev1":{const c=pi(n,["hvcC"])[0];if(c&&c.length>12){const d=c[1],h=["","A","B","C"][d>>6],p=d&31,v=Br(c,2),g=(d&32)>>5?"H":"L",y=c[12],S=c.subarray(6,12);o+="."+h+p,o+="."+lxt(v).toString(16).toUpperCase(),o+="."+g+y;let k="";for(let C=S.length;C--;){const x=S[C];(x||k)&&(k="."+x.toString(16).toUpperCase()+k)}o+=k}a=pC(l=="hev1"?"dvhe":"dvh1",n);break}case"dvh1":case"dvhe":case"dvav":case"dva1":case"dav1":{o=pC(o,n)||o;break}case"vp09":{const c=pi(n,["vpcC"])[0];if(c&&c.length>6){const d=c[4],h=c[5],p=c[6]>>4&15;o+="."+rf(d)+"."+rf(h)+"."+rf(p)}break}case"av01":{const c=pi(n,["av1C"])[0];if(c&&c.length>2){const d=c[1]>>>5,h=c[1]&31,p=c[2]>>>7?"H":"M",v=(c[2]&64)>>6,g=(c[2]&32)>>5,y=d===2&&v?g?12:10:v?10:8,S=(c[2]&16)>>4,k=(c[2]&8)>>3,C=(c[2]&4)>>2,x=c[2]&3;o+="."+d+"."+rf(h)+p+"."+rf(y)+"."+S+"."+k+C+x+"."+rf(1)+"."+rf(1)+"."+rf(1)+"."+0,a=pC("dav1",n)}break}}return{codec:o,encrypted:s,supplemental:a}}function pC(e,t){const n=pi(t,["dvvC"]),r=n.length?n[0]:pi(t,["dvcC"])[0];if(r){const o=r[2]>>1&127,a=r[2]<<5&32|r[3]>>3&31;return e+"."+rf(o)+"."+rf(a)}}function lxt(e){let t=0;for(let n=0;n<32;n++)t|=(e>>n&1)<<31-n;return t>>>0}function RF(e,t){const n=t+5;for(;e[t++]&128&&t{const a=r.subarray(8,24);a.some(s=>s!==0)||(po.log(`[eme] Patching keyId in 'enc${o?"a":"v"}>sinf>>tenc' box: ${zl(a)} -> ${zl(n)}`),r.set(n,8))})}function cxt(e){const t=[];return M3e(e,n=>t.push(n.subarray(8,24))),t}function M3e(e,t){pi(e,["moov","trak"]).forEach(r=>{const o=pi(r,["mdia","minf","stbl","stsd"])[0];if(!o)return;const a=o.subarray(8);let s=pi(a,["enca"]);const l=s.length>0;l||(s=pi(a,["encv"])),s.forEach(c=>{const d=l?c.subarray(28):c.subarray(78);pi(d,["sinf"]).forEach(p=>{const v=O3e(p);v&&t(v,l)})})})}function O3e(e){const t=pi(e,["schm"])[0];if(t){const n=aa(t.subarray(4,8));if(n==="cbcs"||n==="cenc"){const r=pi(e,["schi","tenc"])[0];if(r)return r}}}function dxt(e,t,n){const r={},o=pi(e,["moof","traf"]);for(let a=0;ar[a].duration)){let a=1/0,s=0;const l=pi(e,["sidx"]);for(let c=0;cp+v.info.duration||0,0);s=Math.max(s,h+d.earliestPresentationTime/d.timescale)}}s&&jn(s)&&Object.keys(r).forEach(c=>{r[c].duration||(r[c].duration=s*r[c].timescale-r[c].start)})}return r}function fxt(e){const t={valid:null,remainder:null},n=pi(e,["moof"]);if(n.length<2)return t.remainder=e,t;const r=n[n.length-1];return t.valid=e.slice(0,r.byteOffset-8),t.remainder=e.slice(r.byteOffset-8),t}function Qc(e,t){const n=new Uint8Array(e.length+t.length);return n.set(e),n.set(t,e.length),n}function Fle(e,t){const n=[],r=t.samples,o=t.timescale,a=t.id;let s=!1;return pi(r,["moof"]).map(c=>{const d=c.byteOffset-8;pi(c,["traf"]).map(p=>{const v=pi(p,["tfdt"]).map(g=>{const y=g[0];let S=Br(g,4);return y===1&&(S*=Math.pow(2,32),S+=Br(g,8)),S/o})[0];return v!==void 0&&(e=v),pi(p,["tfhd"]).map(g=>{const y=Br(g,4),S=Br(g,0)&16777215,k=(S&1)!==0,C=(S&2)!==0,x=(S&8)!==0;let E=0;const _=(S&16)!==0;let T=0;const D=(S&32)!==0;let P=8;y===a&&(k&&(P+=8),C&&(P+=4),x&&(E=Br(g,P),P+=4),_&&(T=Br(g,P),P+=4),D&&(P+=4),t.type==="video"&&(s=XA(t.codec)),pi(p,["trun"]).map(M=>{const $=M[0],L=Br(M,0)&16777215,B=(L&1)!==0;let F=0;const W=(L&4)!==0,U=(L&256)!==0;let G=0;const X=(L&512)!==0;let oe=0;const Z=(L&1024)!==0,H=(L&2048)!==0;let q=0;const ee=Br(M,4);let ne=8;B&&(F=Br(M,ne),ne+=4),W&&(ne+=4);let ae=F+d;for(let re=0;re>1&63;return n===39||n===40}else return(t&31)===6}function SG(e,t,n,r){const o=$3e(e);let a=0;a+=t;let s=0,l=0,c=0;for(;a=o.length)break;c=o[a++],s+=c}while(c===255);l=0;do{if(a>=o.length)break;c=o[a++],l+=c}while(c===255);const d=o.length-a;let h=a;if(ld){po.error(`Malformed SEI payload. ${l} is too small, only ${d} bytes left to parse.`);break}if(s===4){if(o[h++]===181){const v=D3e(o,h);if(h+=2,v===49){const g=Br(o,h);if(h+=4,g===1195456820){const y=o[h++];if(y===3){const S=o[h++],k=31&S,C=64&S,x=C?2+k*3:0,E=new Uint8Array(x);if(C){E[0]=S;for(let _=1;_16){const p=[];for(let y=0;y<16;y++){const S=o[h++].toString(16);p.push(S.length==1?"0"+S:S),(y===3||y===5||y===7||y===9)&&p.push("-")}const v=l-16,g=new Uint8Array(v);for(let y=0;y>24&255,a[1]=r>>16&255,a[2]=r>>8&255,a[3]=r&255,a.set(e,4),o=0,r=8;o0?(a=new Uint8Array(4),t.length>0&&new DataView(a.buffer).setUint32(0,t.length,!1)):a=new Uint8Array;const s=new Uint8Array(4);return n.byteLength>0&&new DataView(s.buffer).setUint32(0,n.byteLength,!1),vxt([112,115,115,104],new Uint8Array([r,0,0,0]),e,a,o,s,n)}function gxt(e){const t=[];if(e instanceof ArrayBuffer){const n=e.byteLength;let r=0;for(;r+32>>24;if(a!==0&&a!==1)return{offset:n,size:t};const s=e.buffer,l=zl(new Uint8Array(s,n+12,16));let c=null,d=null,h=0;if(a===0)h=28;else{const v=e.getUint32(28);if(!v||r<32+v*16)return{offset:n,size:t};c=[];for(let g=0;g/\(Windows.+Firefox\//i.test(navigator.userAgent),Uy={audio:{a3ds:1,"ac-3":.95,"ac-4":1,alac:.9,alaw:1,dra1:1,"dts+":1,"dts-":1,dtsc:1,dtse:1,dtsh:1,"ec-3":.9,enca:1,fLaC:.9,flac:.9,FLAC:.9,g719:1,g726:1,m4ae:1,mha1:1,mha2:1,mhm1:1,mhm2:1,mlpa:1,mp4a:1,"raw ":1,Opus:1,opus:1,samr:1,sawb:1,sawp:1,sevc:1,sqcp:1,ssmv:1,twos:1,ulaw:1},video:{avc1:1,avc2:1,avc3:1,avc4:1,avcp:1,av01:.8,dav1:.8,drac:1,dva1:1,dvav:1,dvh1:.7,dvhe:.7,encv:1,hev1:.75,hvc1:.75,mjp2:1,mp4v:1,mvc1:1,mvc2:1,mvc3:1,mvc4:1,resv:1,rv60:1,s263:1,svc1:1,svc2:1,"vc-1":1,vp08:1,vp09:.9},text:{stpp:1,wvtt:1}};function kG(e,t){const n=Uy[t];return!!n&&!!n[e.slice(0,4)]}function k_(e,t,n=!0){return!e.split(",").some(r=>!xG(r,t,n))}function xG(e,t,n=!0){var r;const o=P0(n);return(r=o?.isTypeSupported(x_(e,t)))!=null?r:!1}function x_(e,t){return`${t}/mp4;codecs=${e}`}function jle(e){if(e){const t=e.substring(0,4);return Uy.video[t]}return 2}function TT(e){const t=B3e();return e.split(",").reduce((n,r)=>{const a=t&&XA(r)?9:Uy.video[r];return a?(a*2+n)/(n?3:2):(Uy.audio[r]+n)/(n?2:1)},0)}const MF={};function bxt(e,t=!0){if(MF[e])return MF[e];const n={flac:["flac","fLaC","FLAC"],opus:["opus","Opus"],"mp4a.40.34":["mp3"]}[e];for(let o=0;obxt(n.toLowerCase(),t))}function Sxt(e,t){const n=[];if(e){const r=e.split(",");for(let o=0;o4||["ac-3","ec-3","alac","fLaC","Opus"].indexOf(e)!==-1)&&(Vle(e,"audio")||Vle(e,"video")))return e;if(t){const n=t.split(",");if(n.length>1){if(e){for(let r=n.length;r--;)if(n[r].substring(0,4)===e.substring(0,4))return n[r]}return n[0]}}return t||e}function Vle(e,t){return kG(e,t)&&xG(e,t)}function kxt(e){const t=e.split(",");for(let n=0;n2&&r[0]==="avc1"&&(t[n]=`avc1.${parseInt(r[1]).toString(16)}${("000"+parseInt(r[2]).toString(16)).slice(-4)}`)}return t.join(",")}function xxt(e){if(e.startsWith("av01.")){const t=e.split("."),n=["0","111","01","01","01","0"];for(let r=t.length;r>4&&r<10;r++)t[r]=n[r-4];return t.join(".")}return e}function zle(e){const t=P0(e)||{isTypeSupported:()=>!1};return{mpeg:t.isTypeSupported("audio/mpeg"),mp3:t.isTypeSupported('audio/mp4; codecs="mp3"'),ac3:t.isTypeSupported('audio/mp4; codecs="ac-3"')}}function Bz(e){return e.replace(/^.+codecs=["']?([^"']+).*$/,"$1")}const Cxt={supported:!0,powerEfficient:!0,smooth:!0},wxt={supported:!1,smooth:!1,powerEfficient:!1},N3e={supported:!0,configurations:[],decodingInfoResults:[Cxt]};function F3e(e,t){return{supported:!1,configurations:t,decodingInfoResults:[wxt],error:e}}function Ext(e,t,n,r,o,a){const s=e.videoCodec,l=e.audioCodec?e.audioGroups:null,c=a?.audioCodec,d=a?.channels,h=d?parseInt(d):c?1/0:2;let p=null;if(l!=null&&l.length)try{l.length===1&&l[0]?p=t.groups[l[0]].channels:p=l.reduce((v,g)=>{if(g){const y=t.groups[g];if(!y)throw new Error(`Audio track group ${g} not found`);Object.keys(y.channels).forEach(S=>{v[S]=(v[S]||0)+y.channels[S]})}return v},{2:0})}catch{return!0}return s!==void 0&&(s.split(",").some(v=>XA(v))||e.width>1920&&e.height>1088||e.height>1920&&e.width>1088||e.frameRate>Math.max(r,30)||e.videoRange!=="SDR"&&e.videoRange!==n||e.bitrate>Math.max(o,8e6))||!!p&&jn(h)&&Object.keys(p).some(v=>parseInt(v)>h)}function j3e(e,t,n,r={}){const o=e.videoCodec;if(!o&&!e.audioCodec||!n)return Promise.resolve(N3e);const a=[],s=Txt(e),l=s.length,c=Axt(e,t,l>0),d=c.length;for(let h=l||1*d||1;h--;){const p={type:"media-source"};if(l&&(p.video=s[h%l]),d){p.audio=c[h%d];const v=p.audio.bitrate;p.video&&v&&(p.video.bitrate-=v)}a.push(p)}if(o){const h=navigator.userAgent;if(o.split(",").some(p=>XA(p))&&B3e())return Promise.resolve(F3e(new Error(`Overriding Windows Firefox HEVC MediaCapabilities result based on user-agent string: (${h})`),a))}return Promise.all(a.map(h=>{const p=Lxt(h);return r[p]||(r[p]=n.decodingInfo(h))})).then(h=>({supported:!h.some(p=>!p.supported),configurations:a,decodingInfoResults:h})).catch(h=>({supported:!1,configurations:a,decodingInfoResults:[],error:h}))}function Txt(e){var t;const n=(t=e.videoCodec)==null?void 0:t.split(","),r=V3e(e),o=e.width||640,a=e.height||480,s=e.frameRate||30,l=e.videoRange.toLowerCase();return n?n.map(c=>{const d={contentType:x_(xxt(c),"video"),width:o,height:a,bitrate:r,framerate:s};return l!=="sdr"&&(d.transferFunction=l),d}):[]}function Axt(e,t,n){var r;const o=(r=e.audioCodec)==null?void 0:r.split(","),a=V3e(e);return o&&e.audioGroups?e.audioGroups.reduce((s,l)=>{var c;const d=l?(c=t.groups[l])==null?void 0:c.tracks:null;return d?d.reduce((h,p)=>{if(p.groupId===l){const v=parseFloat(p.channels||"");o.forEach(g=>{const y={contentType:x_(g,"audio"),bitrate:n?Ixt(g,a):a};v&&(y.channels=""+v),h.push(y)})}return h},s):s},[]):[]}function Ixt(e,t){if(t<=1)return 1;let n=128e3;return e==="ec-3"?n=768e3:e==="ac-3"&&(n=64e4),Math.min(t/2,n)}function V3e(e){return Math.ceil(Math.max(e.bitrate*.9,e.averageBitrate)/1e3)*1e3||1}function Lxt(e){let t="";const{audio:n,video:r}=e;if(r){const o=Bz(r.contentType);t+=`${o}_r${r.height}x${r.width}f${Math.ceil(r.framerate)}${r.transferFunction||"sd"}_${Math.ceil(r.bitrate/1e5)}`}if(n){const o=Bz(n.contentType);t+=`${r?"_":""}${o}_c${n.channels}`}return t}const Nz=["NONE","TYPE-0","TYPE-1",null];function Dxt(e){return Nz.indexOf(e)>-1}const IT=["SDR","PQ","HLG"];function Pxt(e){return!!e&&IT.indexOf(e)>-1}var ZE={No:"",Yes:"YES",v2:"v2"};function Ule(e){const{canSkipUntil:t,canSkipDateRanges:n,age:r}=e,o=r!!r).map(r=>r.substring(0,4)).join(","),"supplemental"in t){var n;this.supplemental=t.supplemental;const r=(n=t.supplemental)==null?void 0:n.videoCodec;r&&r!==t.videoCodec&&(this.codecSet+=`,${r.substring(0,4)}`)}this.addGroupId("audio",t.attrs.AUDIO),this.addGroupId("text",t.attrs.SUBTITLES)}get maxBitrate(){return Math.max(this.realBitrate,this.bitrate)}get averageBitrate(){return this._avgBitrate||this.realBitrate||this.bitrate}get attrs(){return this._attrs[0]}get codecs(){return this.attrs.CODECS||""}get pathwayId(){return this.attrs["PATHWAY-ID"]||"."}get videoRange(){return this.attrs["VIDEO-RANGE"]||"SDR"}get score(){return this.attrs.optionalFloat("SCORE",0)}get uri(){return this.url[0]||""}hasAudioGroup(t){return Wle(this._audioGroups,t)}hasSubtitleGroup(t){return Wle(this._subtitleGroups,t)}get audioGroups(){return this._audioGroups}get subtitleGroups(){return this._subtitleGroups}addGroupId(t,n){if(n){if(t==="audio"){let r=this._audioGroups;r||(r=this._audioGroups=[]),r.indexOf(n)===-1&&r.push(n)}else if(t==="text"){let r=this._subtitleGroups;r||(r=this._subtitleGroups=[]),r.indexOf(n)===-1&&r.push(n)}}}get urlId(){return 0}set urlId(t){}get audioGroupIds(){return this.audioGroups?[this.audioGroupId]:void 0}get textGroupIds(){return this.subtitleGroups?[this.textGroupId]:void 0}get audioGroupId(){var t;return(t=this.audioGroups)==null?void 0:t[0]}get textGroupId(){var t;return(t=this.subtitleGroups)==null?void 0:t[0]}addFallback(){}}function Wle(e,t){return!t||!e?!1:e.indexOf(t)!==-1}function Rxt(){if(typeof matchMedia=="function"){const e=matchMedia("(dynamic-range: high)"),t=matchMedia("bad query");if(e.media!==t.media)return e.matches===!0}return!1}function Mxt(e,t){let n=!1,r=[];if(e&&(n=e!=="SDR",r=[e]),t){r=t.allowedVideoRanges||IT.slice(0);const o=r.join("")!=="SDR"&&!t.videoCodec;n=t.preferHDR!==void 0?t.preferHDR:o&&Rxt(),n||(r=["SDR"])}return{preferHDR:n,allowedVideoRanges:r}}const Oxt=e=>{const t=new WeakSet;return(n,r)=>{if(e&&(r=e(n,r)),typeof r=="object"&&r!==null){if(t.has(r))return;t.add(r)}return r}},To=(e,t)=>JSON.stringify(e,Oxt(t));function $xt(e,t,n,r,o){const a=Object.keys(e),s=r?.channels,l=r?.audioCodec,c=o?.videoCodec,d=s&&parseInt(s)===2;let h=!1,p=!1,v=1/0,g=1/0,y=1/0,S=1/0,k=0,C=[];const{preferHDR:x,allowedVideoRanges:E}=Mxt(t,o);for(let M=a.length;M--;){const $=e[a[M]];h||(h=$.channels[2]>0),v=Math.min(v,$.minHeight),g=Math.min(g,$.minFramerate),y=Math.min(y,$.minBitrate),E.filter(B=>$.videoRanges[B]>0).length>0&&(p=!0)}v=jn(v)?v:0,g=jn(g)?g:0;const _=Math.max(1080,v),T=Math.max(30,g);y=jn(y)?y:n,n=Math.max(y,n),p||(t=void 0);const D=a.length>1;return{codecSet:a.reduce((M,$)=>{const L=e[$];if($===M)return M;if(C=p?E.filter(B=>L.videoRanges[B]>0):[],D){if(L.minBitrate>n)return Qd($,`min bitrate of ${L.minBitrate} > current estimate of ${n}`),M;if(!L.hasDefaultAudio)return Qd($,"no renditions with default or auto-select sound found"),M;if(l&&$.indexOf(l.substring(0,4))%5!==0)return Qd($,`audio codec preference "${l}" not found`),M;if(s&&!d){if(!L.channels[s])return Qd($,`no renditions with ${s} channel sound found (channels options: ${Object.keys(L.channels)})`),M}else if((!l||d)&&h&&L.channels[2]===0)return Qd($,"no renditions with stereo sound found"),M;if(L.minHeight>_)return Qd($,`min resolution of ${L.minHeight} > maximum of ${_}`),M;if(L.minFramerate>T)return Qd($,`min framerate of ${L.minFramerate} > maximum of ${T}`),M;if(!C.some(B=>L.videoRanges[B]>0))return Qd($,`no variants with VIDEO-RANGE of ${To(C)} found`),M;if(c&&$.indexOf(c.substring(0,4))%5!==0)return Qd($,`video codec preference "${c}" not found`),M;if(L.maxScore=TT(M)||L.fragmentError>e[M].fragmentError)?M:(S=L.minIndex,k=L.maxScore,$)},void 0),videoRanges:C,preferHDR:x,minFramerate:g,minBitrate:y,minIndex:S}}function Qd(e,t){po.log(`[abr] start candidates with "${e}" ignored because ${t}`)}function z3e(e){return e.reduce((t,n)=>{let r=t.groups[n.groupId];r||(r=t.groups[n.groupId]={tracks:[],channels:{2:0},hasDefault:!1,hasAutoSelect:!1}),r.tracks.push(n);const o=n.channels||"2";return r.channels[o]=(r.channels[o]||0)+1,r.hasDefault=r.hasDefault||n.default,r.hasAutoSelect=r.hasAutoSelect||n.autoselect,r.hasDefault&&(t.hasDefaultAudio=!0),r.hasAutoSelect&&(t.hasAutoSelectAudio=!0),t},{hasDefaultAudio:!1,hasAutoSelectAudio:!1,groups:{}})}function Bxt(e,t,n,r){return e.slice(n,r+1).reduce((o,a,s)=>{if(!a.codecSet)return o;const l=a.audioGroups;let c=o[a.codecSet];c||(o[a.codecSet]=c={minBitrate:1/0,minHeight:1/0,minFramerate:1/0,minIndex:s,maxScore:0,videoRanges:{SDR:0},channels:{2:0},hasDefaultAudio:!l,fragmentError:0}),c.minBitrate=Math.min(c.minBitrate,a.bitrate);const d=Math.min(a.height,a.width);return c.minHeight=Math.min(c.minHeight,d),c.minFramerate=Math.min(c.minFramerate,a.frameRate),c.minIndex=Math.min(c.minIndex,s),c.maxScore=Math.max(c.maxScore,a.score),c.fragmentError+=a.fragmentError,c.videoRanges[a.videoRange]=(c.videoRanges[a.videoRange]||0)+1,l&&l.forEach(h=>{if(!h)return;const p=t.groups[h];p&&(c.hasDefaultAudio=c.hasDefaultAudio||t.hasDefaultAudio?p.hasDefault:p.hasAutoSelect||!t.hasDefaultAudio&&!t.hasAutoSelectAudio,Object.keys(p.channels).forEach(v=>{c.channels[v]=(c.channels[v]||0)+p.channels[v]}))}),o},{})}function Gle(e){if(!e)return e;const{lang:t,assocLang:n,characteristics:r,channels:o,audioCodec:a}=e;return{lang:t,assocLang:n,characteristics:r,channels:o,audioCodec:a}}function pf(e,t,n){if("attrs"in e){const r=t.indexOf(e);if(r!==-1)return r}for(let r=0;rr.indexOf(o)===-1)}function Hv(e,t){const{audioCodec:n,channels:r}=e;return(n===void 0||(t.audioCodec||"").substring(0,4)===n.substring(0,4))&&(r===void 0||r===(t.channels||"2"))}function jxt(e,t,n,r,o){const a=t[r],l=t.reduce((v,g,y)=>{const S=g.uri;return(v[S]||(v[S]=[])).push(y),v},{})[a.uri];l.length>1&&(r=Math.max.apply(Math,l));const c=a.videoRange,d=a.frameRate,h=a.codecSet.substring(0,4),p=Kle(t,r,v=>{if(v.videoRange!==c||v.frameRate!==d||v.codecSet.substring(0,4)!==h)return!1;const g=v.audioGroups,y=n.filter(S=>!g||g.indexOf(S.groupId)!==-1);return pf(e,y,o)>-1});return p>-1?p:Kle(t,r,v=>{const g=v.audioGroups,y=n.filter(S=>!g||g.indexOf(S.groupId)!==-1);return pf(e,y,o)>-1})}function Kle(e,t,n){for(let r=t;r>-1;r--)if(n(e[r]))return r;for(let r=t+1;r{var r;const{fragCurrent:o,partCurrent:a,hls:s}=this,{autoLevelEnabled:l,media:c}=s;if(!o||!c)return;const d=performance.now(),h=a?a.stats:o.stats,p=a?a.duration:o.duration,v=d-h.loading.start,g=s.minAutoLevel,y=o.level,S=this._nextAutoLevel;if(h.aborted||h.loaded&&h.loaded===h.total||y<=g){this.clearTimer(),this._nextAutoLevel=-1;return}if(!l)return;const k=S>-1&&S!==y,C=!!n||k;if(!C&&(c.paused||!c.playbackRate||!c.readyState))return;const x=s.mainForwardBufferInfo;if(!C&&x===null)return;const E=this.bwEstimator.getEstimateTTFB(),_=Math.abs(c.playbackRate);if(v<=Math.max(E,1e3*(p/(_*2))))return;const T=x?x.len/_:0,D=h.loading.first?h.loading.first-h.loading.start:-1,P=h.loaded&&D>-1,M=this.getBwEstimate(),$=s.levels,L=$[y],B=Math.max(h.loaded,Math.round(p*(o.bitrate||L.averageBitrate)/8));let F=P?v-D:v;F<1&&P&&(F=Math.min(v,h.loaded*8/M));const W=P?h.loaded*1e3/F:0,U=E/1e3,G=W?(B-h.loaded)/W:B*8/M+U;if(G<=T)return;const X=W?W*8:M,oe=((r=n?.details||this.hls.latestLevelDetails)==null?void 0:r.live)===!0,Z=this.hls.config.abrBandWidthUpFactor;let H=Number.POSITIVE_INFINITY,q;for(q=y-1;q>g;q--){const re=$[q].maxBitrate,ke=!$[q].details||oe;if(H=this.getTimeToLoadFrag(U,X,p*re,ke),H=G||H>p*10)return;P?this.bwEstimator.sample(v-Math.min(E,D),h.loaded):this.bwEstimator.sampleTTFB(v);const ee=$[q].maxBitrate;this.getBwEstimate()*Z>ee&&this.resetEstimator(ee);const ne=this.findBestLevel(ee,g,q,0,T,1,1);ne>-1&&(q=ne),this.warn(`Fragment ${o.sn}${a?" part "+a.index:""} of level ${y} is loading too slowly; Fragment duration: ${o.duration.toFixed(3)} Time to underbuffer: ${T.toFixed(3)} s Estimated load time for current fragment: ${G.toFixed(3)} s Estimated load time for down switch fragment: ${H.toFixed(3)} s TTFB estimate: ${D|0} ms Current BW estimate: ${jn(M)?M|0:"Unknown"} bps New BW estimate: ${this.getBwEstimate()|0} bps Switching to level ${q} @ ${ee|0} bps`),s.nextLoadLevel=s.nextAutoLevel=q,this.clearTimer();const ae=()=>{if(this.clearTimer(),this.fragCurrent===o&&this.hls.loadLevel===q&&q>0){const re=this.getStarvationDelay();if(this.warn(`Aborting inflight request ${q>0?"and switching down":""} Fragment duration: ${o.duration.toFixed(3)} s Time to underbuffer: ${re.toFixed(3)} s`),o.abortRequests(),this.fragCurrent=this.partCurrent=null,q>g){let ke=this.findBestLevel(this.hls.levels[g].bitrate,g,q,0,re,1,1);ke===-1&&(ke=g),this.hls.nextLoadLevel=this.hls.nextAutoLevel=ke,this.resetEstimator(this.hls.levels[ke].bitrate)}}};k||G>H*2?ae():this.timer=self.setInterval(ae,H*1e3),s.trigger(Ee.FRAG_LOAD_EMERGENCY_ABORTED,{frag:o,part:a,stats:h})},this.hls=t,this.bwEstimator=this.initEstimator(),this.registerListeners()}resetEstimator(t){t&&(this.log(`setting initial bwe to ${t}`),this.hls.config.abrEwmaDefaultEstimate=t),this.firstSelection=-1,this.bwEstimator=this.initEstimator()}initEstimator(){const t=this.hls.config;return new Gkt(t.abrEwmaSlowVoD,t.abrEwmaFastVoD,t.abrEwmaDefaultEstimate)}registerListeners(){const{hls:t}=this;t.on(Ee.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Ee.FRAG_LOADING,this.onFragLoading,this),t.on(Ee.FRAG_LOADED,this.onFragLoaded,this),t.on(Ee.FRAG_BUFFERED,this.onFragBuffered,this),t.on(Ee.LEVEL_SWITCHING,this.onLevelSwitching,this),t.on(Ee.LEVEL_LOADED,this.onLevelLoaded,this),t.on(Ee.LEVELS_UPDATED,this.onLevelsUpdated,this),t.on(Ee.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),t.on(Ee.ERROR,this.onError,this)}unregisterListeners(){const{hls:t}=this;t&&(t.off(Ee.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Ee.FRAG_LOADING,this.onFragLoading,this),t.off(Ee.FRAG_LOADED,this.onFragLoaded,this),t.off(Ee.FRAG_BUFFERED,this.onFragBuffered,this),t.off(Ee.LEVEL_SWITCHING,this.onLevelSwitching,this),t.off(Ee.LEVEL_LOADED,this.onLevelLoaded,this),t.off(Ee.LEVELS_UPDATED,this.onLevelsUpdated,this),t.off(Ee.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),t.off(Ee.ERROR,this.onError,this))}destroy(){this.unregisterListeners(),this.clearTimer(),this.hls=this._abandonRulesCheck=this.supportedCache=null,this.fragCurrent=this.partCurrent=null}onManifestLoading(t,n){this.lastLoadedFragLevel=-1,this.firstSelection=-1,this.lastLevelLoadSec=0,this.supportedCache={},this.fragCurrent=this.partCurrent=null,this.onLevelsUpdated(),this.clearTimer()}onLevelsUpdated(){this.lastLoadedFragLevel>-1&&this.fragCurrent&&(this.lastLoadedFragLevel=this.fragCurrent.level),this._nextAutoLevel=-1,this.onMaxAutoLevelUpdated(),this.codecTiers=null,this.audioTracksByGroup=null}onMaxAutoLevelUpdated(){this.firstSelection=-1,this.nextAutoLevelKey=""}onFragLoading(t,n){const r=n.frag;if(!this.ignoreFragment(r)){if(!r.bitrateTest){var o;this.fragCurrent=r,this.partCurrent=(o=n.part)!=null?o:null}this.clearTimer(),this.timer=self.setInterval(this._abandonRulesCheck,100)}}onLevelSwitching(t,n){this.clearTimer()}onError(t,n){if(!n.fatal)switch(n.details){case Ht.BUFFER_ADD_CODEC_ERROR:case Ht.BUFFER_APPEND_ERROR:this.lastLoadedFragLevel=-1,this.firstSelection=-1;break;case Ht.FRAG_LOAD_TIMEOUT:{const r=n.frag,{fragCurrent:o,partCurrent:a}=this;if(r&&o&&r.sn===o.sn&&r.level===o.level){const s=performance.now(),l=a?a.stats:r.stats,c=s-l.loading.start,d=l.loading.first?l.loading.first-l.loading.start:-1;if(l.loaded&&d>-1){const p=this.bwEstimator.getEstimateTTFB();this.bwEstimator.sample(c-Math.min(p,d),l.loaded)}else this.bwEstimator.sampleTTFB(c)}break}}}getTimeToLoadFrag(t,n,r,o){const a=t+r/n,s=o?t+this.lastLevelLoadSec:0;return a+s}onLevelLoaded(t,n){const r=this.hls.config,{loading:o}=n.stats,a=o.end-o.first;jn(a)&&(this.lastLevelLoadSec=a/1e3),n.details.live?this.bwEstimator.update(r.abrEwmaSlowLive,r.abrEwmaFastLive):this.bwEstimator.update(r.abrEwmaSlowVoD,r.abrEwmaFastVoD),this.timer>-1&&this._abandonRulesCheck(n.levelInfo)}onFragLoaded(t,{frag:n,part:r}){const o=r?r.stats:n.stats;if(n.type===nr.MAIN&&this.bwEstimator.sampleTTFB(o.loading.first-o.loading.start),!this.ignoreFragment(n)){if(this.clearTimer(),n.level===this._nextAutoLevel&&(this._nextAutoLevel=-1),this.firstSelection=-1,this.hls.config.abrMaxWithRealBitrate){const a=r?r.duration:n.duration,s=this.hls.levels[n.level],l=(s.loaded?s.loaded.bytes:0)+o.loaded,c=(s.loaded?s.loaded.duration:0)+a;s.loaded={bytes:l,duration:c},s.realBitrate=Math.round(8*l/c)}if(n.bitrateTest){const a={stats:o,frag:n,part:r,id:n.type};this.onFragBuffered(Ee.FRAG_BUFFERED,a),n.bitrateTest=!1}else this.lastLoadedFragLevel=n.level}}onFragBuffered(t,n){const{frag:r,part:o}=n,a=o!=null&&o.stats.loaded?o.stats:r.stats;if(a.aborted||this.ignoreFragment(r))return;const s=a.parsing.end-a.loading.start-Math.min(a.loading.first-a.loading.start,this.bwEstimator.getEstimateTTFB());this.bwEstimator.sample(s,a.loaded),a.bwEstimate=this.getBwEstimate(),r.bitrateTest?this.bitrateTestDelay=s/1e3:this.bitrateTestDelay=0}ignoreFragment(t){return t.type!==nr.MAIN||t.sn==="initSegment"}clearTimer(){this.timer>-1&&(self.clearInterval(this.timer),this.timer=-1)}get firstAutoLevel(){const{maxAutoLevel:t,minAutoLevel:n}=this.hls,r=this.getBwEstimate(),o=this.hls.config.maxStarvationDelay,a=this.findBestLevel(r,n,t,0,o,1,1);if(a>-1)return a;const s=this.hls.firstLevel,l=Math.min(Math.max(s,n),t);return this.warn(`Could not find best starting auto level. Defaulting to first in playlist ${s} clamped to ${l}`),l}get forcedAutoLevel(){return this.nextAutoLevelKey?-1:this._nextAutoLevel}get nextAutoLevel(){const t=this.forcedAutoLevel,r=this.bwEstimator.canEstimate(),o=this.lastLoadedFragLevel>-1;if(t!==-1&&(!r||!o||this.nextAutoLevelKey===this.getAutoLevelKey()))return t;const a=r&&o?this.getNextABRAutoLevel():this.firstAutoLevel;if(t!==-1){const s=this.hls.levels;if(s.length>Math.max(t,a)&&s[t].loadError<=s[a].loadError)return t}return this._nextAutoLevel=a,this.nextAutoLevelKey=this.getAutoLevelKey(),a}getAutoLevelKey(){return`${this.getBwEstimate()}_${this.getStarvationDelay().toFixed(2)}`}getNextABRAutoLevel(){const{fragCurrent:t,partCurrent:n,hls:r}=this;if(r.levels.length<=1)return r.loadLevel;const{maxAutoLevel:o,config:a,minAutoLevel:s}=r,l=n?n.duration:t?t.duration:0,c=this.getBwEstimate(),d=this.getStarvationDelay();let h=a.abrBandWidthFactor,p=a.abrBandWidthUpFactor;if(d){const k=this.findBestLevel(c,s,o,d,0,h,p);if(k>=0)return this.rebufferNotice=-1,k}let v=l?Math.min(l,a.maxStarvationDelay):a.maxStarvationDelay;if(!d){const k=this.bitrateTestDelay;k&&(v=(l?Math.min(l,a.maxLoadingDelay):a.maxLoadingDelay)-k,this.info(`bitrate test took ${Math.round(1e3*k)}ms, set first fragment max fetchDuration to ${Math.round(1e3*v)} ms`),h=p=1)}const g=this.findBestLevel(c,s,o,d,v,h,p);if(this.rebufferNotice!==g&&(this.rebufferNotice=g,this.info(`${d?"rebuffering expected":"buffer is empty"}, optimal quality level ${g}`)),g>-1)return g;const y=r.levels[s],S=r.loadLevelObj;return S&&y?.bitrate=n;X--){var G;const oe=y[X],Z=X>p;if(!oe)continue;if(C.useMediaCapabilities&&!oe.supportedResult&&!oe.supportedPromise){const ke=navigator.mediaCapabilities;typeof ke?.decodingInfo=="function"&&Ext(oe,L,D,P,t,M)?(oe.supportedPromise=j3e(oe,L,ke,this.supportedCache),oe.supportedPromise.then(Ne=>{if(!this.hls)return;oe.supportedResult=Ne;const me=this.hls.levels,_e=me.indexOf(oe);Ne.error?this.warn(`MediaCapabilities decodingInfo error: "${Ne.error}" for level ${_e} ${To(Ne)}`):Ne.supported?Ne.decodingInfoResults.some(Ue=>Ue.smooth===!1||Ue.powerEfficient===!1)&&this.log(`MediaCapabilities decodingInfo for level ${_e} not smooth or powerEfficient: ${To(Ne)}`):(this.warn(`Unsupported MediaCapabilities decodingInfo result for level ${_e} ${To(Ne)}`),_e>-1&&me.length>1&&(this.log(`Removing unsupported level ${_e}`),this.hls.removeLevel(_e),this.hls.loadLevel===-1&&(this.hls.nextLoadLevel=0)))}).catch(Ne=>{this.warn(`Error handling MediaCapabilities decodingInfo: ${Ne}`)})):oe.supportedResult=N3e}if((T&&oe.codecSet!==T||D&&oe.videoRange!==D||Z&&P>oe.frameRate||!Z&&P>0&&Pke.smooth===!1))&&(!_||X!==B)){U.push(X);continue}const H=oe.details,q=(g?H?.partTarget:H?.averagetargetduration)||F;let ee;Z?ee=l*t:ee=s*t;const ne=F&&o>=F*2&&a===0?oe.averageBitrate:oe.maxBitrate,ae=this.getTimeToLoadFrag(W,ee,ne*q,H===void 0);if(ee>=ne&&(X===h||oe.loadError===0&&oe.fragmentError===0)&&(ae<=W||!jn(ae)||E&&!this.bitrateTestDelay||ae${X} adjustedbw(${Math.round(ee)})-bitrate=${Math.round(ee-ne)} ttfb:${W.toFixed(1)} avgDuration:${q.toFixed(1)} maxFetchDuration:${d.toFixed(1)} fetchDuration:${ae.toFixed(1)} firstSelection:${_} codecSet:${oe.codecSet} videoRange:${oe.videoRange} hls.loadLevel:${k}`)),_&&(this.firstSelection=X),X}}return-1}set nextAutoLevel(t){const n=this.deriveNextAutoLevel(t);this._nextAutoLevel!==n&&(this.nextAutoLevelKey="",this._nextAutoLevel=n)}deriveNextAutoLevel(t){const{maxAutoLevel:n,minAutoLevel:r}=this.hls;return Math.min(Math.max(t,r),n)}}const U3e={search:function(e,t){let n=0,r=e.length-1,o=null,a=null;for(;n<=r;){o=(n+r)/2|0,a=e[o];const s=t(a);if(s>0)n=o+1;else if(s<0)r=o-1;else return a}return null}};function zxt(e,t,n){if(t===null||!Array.isArray(e)||!e.length||!jn(t))return null;const r=e[0].programDateTime;if(t<(r||0))return null;const o=e[e.length-1].endProgramDateTime;if(t>=(o||0))return null;for(let a=0;a0&&l<15e-7&&(n+=15e-7),a&&e.level!==a.level&&a.end<=e.end&&(a=t[2+e.sn-t[0].sn]||null)}else n===0&&t[0].start===0&&(a=t[0]);if(a&&((!e||e.level===a.level)&&qle(n,r,a)===0||Uxt(a,e,Math.min(o,r))))return a;const s=U3e.search(t,qle.bind(null,n,r));return s&&(s!==e||!a)?s:a}function Uxt(e,t,n){if(t&&t.start===0&&t.level0){const r=t.tagList.reduce((o,a)=>(a[0]==="INF"&&(o+=parseFloat(a[1])),o),n);return e.start<=r}return!1}function qle(e=0,t=0,n){if(n.start<=e&&n.start+n.duration>e)return 0;const r=Math.min(t,n.duration+(n.deltaPTS?n.deltaPTS:0));return n.start+n.duration-r<=e?1:n.start-r>e&&n.start?-1:0}function Hxt(e,t,n){const r=Math.min(t,n.duration+(n.deltaPTS?n.deltaPTS:0))*1e3;return(n.endProgramDateTime||0)-r>e}function H3e(e,t,n){if(e&&e.startCC<=t&&e.endCC>=t){let r=e.fragments;const{fragmentHint:o}=e;o&&(r=r.concat(o));let a;return U3e.search(r,s=>s.cct?-1:(a=s,s.end<=n?1:s.start>n?-1:0)),a||null}return null}function DT(e){switch(e.details){case Ht.FRAG_LOAD_TIMEOUT:case Ht.KEY_LOAD_TIMEOUT:case Ht.LEVEL_LOAD_TIMEOUT:case Ht.MANIFEST_LOAD_TIMEOUT:return!0}return!1}function W3e(e){return e.details.startsWith("key")}function G3e(e){return W3e(e)&&!!e.frag&&!e.frag.decryptdata}function Yle(e,t){const n=DT(t);return e.default[`${n?"timeout":"error"}Retry`]}function CG(e,t){const n=e.backoff==="linear"?1:Math.pow(2,t);return Math.min(n*e.retryDelayMs,e.maxRetryDelayMs)}function Xle(e){return fo(fo({},e),{errorRetry:null,timeoutRetry:null})}function PT(e,t,n,r){if(!e)return!1;const o=r?.code,a=t499)}function Fz(e){return e===0&&navigator.onLine===!1}var Ba={DoNothing:0,SendAlternateToPenaltyBox:2,RemoveAlternatePermanently:3,RetryRequest:5},ec={None:0,MoveAllAlternatesMatchingHost:1,MoveAllAlternatesMatchingHDCP:2,MoveAllAlternatesMatchingKey:4};class Gxt extends rd{constructor(t){super("error-controller",t.logger),this.hls=void 0,this.playlistError=0,this.hls=t,this.registerListeners()}registerListeners(){const t=this.hls;t.on(Ee.ERROR,this.onError,this),t.on(Ee.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Ee.LEVEL_UPDATED,this.onLevelUpdated,this)}unregisterListeners(){const t=this.hls;t&&(t.off(Ee.ERROR,this.onError,this),t.off(Ee.ERROR,this.onErrorOut,this),t.off(Ee.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Ee.LEVEL_UPDATED,this.onLevelUpdated,this))}destroy(){this.unregisterListeners(),this.hls=null}startLoad(t){}stopLoad(){this.playlistError=0}getVariantLevelIndex(t){return t?.type===nr.MAIN?t.level:this.getVariantIndex()}getVariantIndex(){var t;const n=this.hls,r=n.currentLevel;return(t=n.loadLevelObj)!=null&&t.details||r===-1?n.loadLevel:r}variantHasKey(t,n){if(t){var r;if((r=t.details)!=null&&r.hasKey(n))return!0;const o=t.audioGroups;if(o)return this.hls.allAudioTracks.filter(s=>o.indexOf(s.groupId)>=0).some(s=>{var l;return(l=s.details)==null?void 0:l.hasKey(n)})}return!1}onManifestLoading(){this.playlistError=0}onLevelUpdated(){this.playlistError=0}onError(t,n){var r;if(n.fatal)return;const o=this.hls,a=n.context;switch(n.details){case Ht.FRAG_LOAD_ERROR:case Ht.FRAG_LOAD_TIMEOUT:case Ht.KEY_LOAD_ERROR:case Ht.KEY_LOAD_TIMEOUT:n.errorAction=this.getFragRetryOrSwitchAction(n);return;case Ht.FRAG_PARSING_ERROR:if((r=n.frag)!=null&&r.gap){n.errorAction=gy();return}case Ht.FRAG_GAP:case Ht.FRAG_DECRYPT_ERROR:{n.errorAction=this.getFragRetryOrSwitchAction(n),n.errorAction.action=Ba.SendAlternateToPenaltyBox;return}case Ht.LEVEL_EMPTY_ERROR:case Ht.LEVEL_PARSING_ERROR:{var s;const c=n.parent===nr.MAIN?n.level:o.loadLevel;n.details===Ht.LEVEL_EMPTY_ERROR&&((s=n.context)!=null&&(s=s.levelDetails)!=null&&s.live)?n.errorAction=this.getPlaylistRetryOrSwitchAction(n,c):(n.levelRetry=!1,n.errorAction=this.getLevelSwitchAction(n,c))}return;case Ht.LEVEL_LOAD_ERROR:case Ht.LEVEL_LOAD_TIMEOUT:typeof a?.level=="number"&&(n.errorAction=this.getPlaylistRetryOrSwitchAction(n,a.level));return;case Ht.AUDIO_TRACK_LOAD_ERROR:case Ht.AUDIO_TRACK_LOAD_TIMEOUT:case Ht.SUBTITLE_LOAD_ERROR:case Ht.SUBTITLE_TRACK_LOAD_TIMEOUT:if(a){const c=o.loadLevelObj;if(c&&(a.type===ki.AUDIO_TRACK&&c.hasAudioGroup(a.groupId)||a.type===ki.SUBTITLE_TRACK&&c.hasSubtitleGroup(a.groupId))){n.errorAction=this.getPlaylistRetryOrSwitchAction(n,o.loadLevel),n.errorAction.action=Ba.SendAlternateToPenaltyBox,n.errorAction.flags=ec.MoveAllAlternatesMatchingHost;return}}return;case Ht.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:n.errorAction={action:Ba.SendAlternateToPenaltyBox,flags:ec.MoveAllAlternatesMatchingHDCP};return;case Ht.KEY_SYSTEM_SESSION_UPDATE_FAILED:case Ht.KEY_SYSTEM_STATUS_INTERNAL_ERROR:case Ht.KEY_SYSTEM_NO_SESSION:n.errorAction={action:Ba.SendAlternateToPenaltyBox,flags:ec.MoveAllAlternatesMatchingKey};return;case Ht.BUFFER_ADD_CODEC_ERROR:case Ht.REMUX_ALLOC_ERROR:case Ht.BUFFER_APPEND_ERROR:if(!n.errorAction){var l;n.errorAction=this.getLevelSwitchAction(n,(l=n.level)!=null?l:o.loadLevel)}return;case Ht.INTERNAL_EXCEPTION:case Ht.BUFFER_APPENDING_ERROR:case Ht.BUFFER_FULL_ERROR:case Ht.LEVEL_SWITCH_ERROR:case Ht.BUFFER_STALLED_ERROR:case Ht.BUFFER_SEEK_OVER_HOLE:case Ht.BUFFER_NUDGE_ON_STALL:n.errorAction=gy();return}n.type===dr.KEY_SYSTEM_ERROR&&(n.levelRetry=!1,n.errorAction=gy())}getPlaylistRetryOrSwitchAction(t,n){const r=this.hls,o=Yle(r.config.playlistLoadPolicy,t),a=this.playlistError++;if(PT(o,a,DT(t),t.response))return{action:Ba.RetryRequest,flags:ec.None,retryConfig:o,retryCount:a};const l=this.getLevelSwitchAction(t,n);return o&&(l.retryConfig=o,l.retryCount=a),l}getFragRetryOrSwitchAction(t){const n=this.hls,r=this.getVariantLevelIndex(t.frag),o=n.levels[r],{fragLoadPolicy:a,keyLoadPolicy:s}=n.config,l=Yle(W3e(t)?s:a,t),c=n.levels.reduce((h,p)=>h+p.fragmentError,0);if(o&&(t.details!==Ht.FRAG_GAP&&o.fragmentError++,!G3e(t)&&PT(l,c,DT(t),t.response)))return{action:Ba.RetryRequest,flags:ec.None,retryConfig:l,retryCount:c};const d=this.getLevelSwitchAction(t,r);return l&&(d.retryConfig=l,d.retryCount=c),d}getLevelSwitchAction(t,n){const r=this.hls;n==null&&(n=r.loadLevel);const o=this.hls.levels[n];if(o){var a,s;const d=t.details;o.loadError++,d===Ht.BUFFER_APPEND_ERROR&&o.fragmentError++;let h=-1;const{levels:p,loadLevel:v,minAutoLevel:g,maxAutoLevel:y}=r;!r.autoLevelEnabled&&!r.config.preserveManualLevelOnError&&(r.loadLevel=-1);const S=(a=t.frag)==null?void 0:a.type,C=(S===nr.AUDIO&&d===Ht.FRAG_PARSING_ERROR||t.sourceBufferName==="audio"&&(d===Ht.BUFFER_ADD_CODEC_ERROR||d===Ht.BUFFER_APPEND_ERROR))&&p.some(({audioCodec:D})=>o.audioCodec!==D),E=t.sourceBufferName==="video"&&(d===Ht.BUFFER_ADD_CODEC_ERROR||d===Ht.BUFFER_APPEND_ERROR)&&p.some(({codecSet:D,audioCodec:P})=>o.codecSet!==D&&o.audioCodec===P),{type:_,groupId:T}=(s=t.context)!=null?s:{};for(let D=p.length;D--;){const P=(D+v)%p.length;if(P!==v&&P>=g&&P<=y&&p[P].loadError===0){var l,c;const M=p[P];if(d===Ht.FRAG_GAP&&S===nr.MAIN&&t.frag){const $=p[P].details;if($){const L=jm(t.frag,$.fragments,t.frag.start);if(L!=null&&L.gap)continue}}else{if(_===ki.AUDIO_TRACK&&M.hasAudioGroup(T)||_===ki.SUBTITLE_TRACK&&M.hasSubtitleGroup(T))continue;if(S===nr.AUDIO&&(l=o.audioGroups)!=null&&l.some($=>M.hasAudioGroup($))||S===nr.SUBTITLE&&(c=o.subtitleGroups)!=null&&c.some($=>M.hasSubtitleGroup($))||C&&o.audioCodec===M.audioCodec||E&&o.codecSet===M.codecSet||!C&&o.codecSet!==M.codecSet)continue}h=P;break}}if(h>-1&&r.loadLevel!==h)return t.levelRetry=!0,this.playlistError=0,{action:Ba.SendAlternateToPenaltyBox,flags:ec.None,nextAutoLevel:h}}return{action:Ba.SendAlternateToPenaltyBox,flags:ec.MoveAllAlternatesMatchingHost}}onErrorOut(t,n){var r;switch((r=n.errorAction)==null?void 0:r.action){case Ba.DoNothing:break;case Ba.SendAlternateToPenaltyBox:this.sendAlternateToPenaltyBox(n),!n.errorAction.resolved&&n.details!==Ht.FRAG_GAP?n.fatal=!0:/MediaSource readyState: ended/.test(n.error.message)&&(this.warn(`MediaSource ended after "${n.sourceBufferName}" sourceBuffer append error. Attempting to recover from media error.`),this.hls.recoverMediaError());break}if(n.fatal){this.hls.stopLoad();return}}sendAlternateToPenaltyBox(t){const n=this.hls,r=t.errorAction;if(!r)return;const{flags:o}=r,a=r.nextAutoLevel;switch(o){case ec.None:this.switchLevel(t,a);break;case ec.MoveAllAlternatesMatchingHDCP:{const c=this.getVariantLevelIndex(t.frag),d=n.levels[c],h=d?.attrs["HDCP-LEVEL"];if(r.hdcpLevel=h,h==="NONE")this.warn("HDCP policy resticted output with HDCP-LEVEL=NONE");else if(h){n.maxHdcpLevel=Nz[Nz.indexOf(h)-1],r.resolved=!0,this.warn(`Restricting playback to HDCP-LEVEL of "${n.maxHdcpLevel}" or lower`);break}}case ec.MoveAllAlternatesMatchingKey:{const c=t.decryptdata;if(c){const d=this.hls.levels,h=d.length;for(let v=h;v--;)if(this.variantHasKey(d[v],c)){var s,l;this.log(`Banned key found in level ${v} (${d[v].bitrate}bps) or audio group "${(s=d[v].audioGroups)==null?void 0:s.join(",")}" (${(l=t.frag)==null?void 0:l.type} fragment) ${zl(c.keyId||[])}`),d[v].fragmentError++,d[v].loadError++,this.log(`Removing level ${v} with key error (${t.error})`),this.hls.removeLevel(v)}const p=t.frag;if(this.hls.levels.length{const c=this.fragments[l];if(!c||s>=c.body.sn)return;if(!c.buffered&&(!c.loaded||a)){c.body.type===r&&this.removeFragment(c.body);return}const d=c.range[t];if(d){if(d.time.length===0){this.removeFragment(c.body);return}d.time.some(h=>{const p=!this.isTimeBuffered(h.startPTS,h.endPTS,n);return p&&this.removeFragment(c.body),p})}})}detectPartialFragments(t){const n=this.timeRanges;if(!n||t.frag.sn==="initSegment")return;const r=t.frag,o=w1(r),a=this.fragments[o];if(!a||a.buffered&&r.gap)return;const s=!r.relurl;Object.keys(n).forEach(l=>{const c=r.elementaryStreams[l];if(!c)return;const d=n[l],h=s||c.partial===!0;a.range[l]=this.getBufferedTimes(r,t.part,h,d)}),a.loaded=null,Object.keys(a.range).length?(a.buffered=!0,(a.body.endList=r.endList||a.body.endList)&&(this.endListFragments[a.body.type]=a),mC(a)||this.removeParts(r.sn-1,r.type)):this.removeFragment(a.body)}removeParts(t,n){const r=this.activePartLists[n];r&&(this.activePartLists[n]=Zle(r,o=>o.fragment.sn>=t))}fragBuffered(t,n){const r=w1(t);let o=this.fragments[r];!o&&n&&(o=this.fragments[r]={body:t,appendedPTS:null,loaded:null,buffered:!1,range:Object.create(null)},t.gap&&(this.hasGaps=!0)),o&&(o.loaded=null,o.buffered=!0)}getBufferedTimes(t,n,r,o){const a={time:[],partial:r},s=t.start,l=t.end,c=t.minEndPTS||l,d=t.maxStartPTS||s;for(let h=0;h=p&&c<=v){a.time.push({startPTS:Math.max(s,o.start(h)),endPTS:Math.min(l,o.end(h))});break}else if(sp){const g=Math.max(s,o.start(h)),y=Math.min(l,o.end(h));y>g&&(a.partial=!0,a.time.push({startPTS:g,endPTS:y}))}else if(l<=p)break}return a}getPartialFragment(t){let n=null,r,o,a,s=0;const{bufferPadding:l,fragments:c}=this;return Object.keys(c).forEach(d=>{const h=c[d];h&&mC(h)&&(o=h.body.start-l,a=h.body.end+l,t>=o&&t<=a&&(r=Math.min(t-o,a-t),s<=r&&(n=h.body,s=r)))}),n}isEndListAppended(t){const n=this.endListFragments[t];return n!==void 0&&(n.buffered||mC(n))}getState(t){const n=w1(t),r=this.fragments[n];return r?r.buffered?mC(r)?ca.PARTIAL:ca.OK:ca.APPENDING:ca.NOT_LOADED}isTimeBuffered(t,n,r){let o,a;for(let s=0;s=o&&n<=a)return!0;if(n<=o)return!1}return!1}onManifestLoading(){this.removeAllFragments()}onFragLoaded(t,n){if(n.frag.sn==="initSegment"||n.frag.bitrateTest)return;const r=n.frag,o=n.part?null:n,a=w1(r);this.fragments[a]={body:r,appendedPTS:null,loaded:o,buffered:!1,range:Object.create(null)}}onBufferAppended(t,n){const{frag:r,part:o,timeRanges:a,type:s}=n;if(r.sn==="initSegment")return;const l=r.type;if(o){let d=this.activePartLists[l];d||(this.activePartLists[l]=d=[]),d.push(o)}this.timeRanges=a;const c=a[s];this.detectEvictedFragments(s,c,l,o)}onFragBuffered(t,n){this.detectPartialFragments(n)}hasFragment(t){const n=w1(t);return!!this.fragments[n]}hasFragments(t){const{fragments:n}=this,r=Object.keys(n);if(!t)return r.length>0;for(let o=r.length;o--;){const a=n[r[o]];if(a?.body.type===t)return!0}return!1}hasParts(t){var n;return!!((n=this.activePartLists[t])!=null&&n.length)}removeFragmentsInRange(t,n,r,o,a){o&&!this.hasGaps||Object.keys(this.fragments).forEach(s=>{const l=this.fragments[s];if(!l)return;const c=l.body;c.type!==r||o&&!c.gap||c.startt&&(l.buffered||a)&&this.removeFragment(c)})}removeFragment(t){const n=w1(t);t.clearElementaryStreamInfo();const r=this.activePartLists[t.type];if(r){const o=t.sn;this.activePartLists[t.type]=Zle(r,a=>a.fragment.sn!==o)}delete this.fragments[n],t.endList&&delete this.endListFragments[t.type]}removeAllFragments(){var t;this.fragments=Object.create(null),this.endListFragments=Object.create(null),this.activePartLists=Object.create(null),this.hasGaps=!1;const n=(t=this.hls)==null||(t=t.latestLevelDetails)==null?void 0:t.partList;n&&n.forEach(r=>r.clearElementaryStreamInfo())}}function mC(e){var t,n,r;return e.buffered&&!!(e.body.gap||(t=e.range.video)!=null&&t.partial||(n=e.range.audio)!=null&&n.partial||(r=e.range.audiovideo)!=null&&r.partial)}function w1(e){return`${e.type}_${e.level}_${e.sn}`}function Zle(e,t){return e.filter(n=>{const r=t(n);return r||n.clearElementaryStreamInfo(),r})}var R0={cbc:0,ctr:1};class qxt{constructor(t,n,r){this.subtle=void 0,this.aesIV=void 0,this.aesMode=void 0,this.subtle=t,this.aesIV=n,this.aesMode=r}decrypt(t,n){switch(this.aesMode){case R0.cbc:return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},n,t);case R0.ctr:return this.subtle.decrypt({name:"AES-CTR",counter:this.aesIV,length:64},n,t);default:throw new Error(`[AESCrypto] invalid aes mode ${this.aesMode}`)}}}function Yxt(e){const t=e.byteLength,n=t&&new DataView(e.buffer).getUint8(t-1);return n?e.slice(0,t-n):e}class Xxt{constructor(){this.rcon=[0,1,2,4,8,16,32,64,128,27,54],this.subMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.invSubMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.sBox=new Uint32Array(256),this.invSBox=new Uint32Array(256),this.key=new Uint32Array(0),this.ksRows=0,this.keySize=0,this.keySchedule=void 0,this.invKeySchedule=void 0,this.initTable()}uint8ArrayToUint32Array_(t){const n=new DataView(t),r=new Uint32Array(4);for(let o=0;o<4;o++)r[o]=n.getUint32(o*4);return r}initTable(){const t=this.sBox,n=this.invSBox,r=this.subMix,o=r[0],a=r[1],s=r[2],l=r[3],c=this.invSubMix,d=c[0],h=c[1],p=c[2],v=c[3],g=new Uint32Array(256);let y=0,S=0,k=0;for(k=0;k<256;k++)k<128?g[k]=k<<1:g[k]=k<<1^283;for(k=0;k<256;k++){let C=S^S<<1^S<<2^S<<3^S<<4;C=C>>>8^C&255^99,t[y]=C,n[C]=y;const x=g[y],E=g[x],_=g[E];let T=g[C]*257^C*16843008;o[y]=T<<24|T>>>8,a[y]=T<<16|T>>>16,s[y]=T<<8|T>>>24,l[y]=T,T=_*16843009^E*65537^x*257^y*16843008,d[C]=T<<24|T>>>8,h[C]=T<<16|T>>>16,p[C]=T<<8|T>>>24,v[C]=T,y?(y=x^g[g[g[_^x]]],S^=g[g[S]]):y=S=1}}expandKey(t){const n=this.uint8ArrayToUint32Array_(t);let r=!0,o=0;for(;o{const l=ArrayBuffer.isView(t)?t:new Uint8Array(t);this.softwareDecrypt(l,n,r,o);const c=this.flush();c?a(c.buffer):s(new Error("[softwareDecrypt] Failed to decrypt data"))}):this.webCryptoDecrypt(new Uint8Array(t),n,r,o)}softwareDecrypt(t,n,r,o){const{currentIV:a,currentResult:s,remainderData:l}=this;if(o!==R0.cbc||n.byteLength!==16)return po.warn("SoftwareDecrypt: can only handle AES-128-CBC"),null;this.logOnce("JS AES decrypt"),l&&(t=Qc(l,t),this.remainderData=null);const c=this.getValidChunk(t);if(!c.length)return null;a&&(r=a);let d=this.softwareDecrypter;d||(d=this.softwareDecrypter=new Xxt),d.expandKey(n);const h=s;return this.currentResult=d.decrypt(c.buffer,0,r),this.currentIV=c.slice(-16).buffer,h||null}webCryptoDecrypt(t,n,r,o){if(this.key!==n||!this.fastAesKey){if(!this.subtle)return Promise.resolve(this.onWebCryptoError(t,n,r,o));this.key=n,this.fastAesKey=new Zxt(this.subtle,n,o)}return this.fastAesKey.expandKey().then(a=>this.subtle?(this.logOnce("WebCrypto AES decrypt"),new qxt(this.subtle,new Uint8Array(r),o).decrypt(t.buffer,a)):Promise.reject(new Error("web crypto not initialized"))).catch(a=>(po.warn(`[decrypter]: WebCrypto Error, disable WebCrypto API, ${a.name}: ${a.message}`),this.onWebCryptoError(t,n,r,o)))}onWebCryptoError(t,n,r,o){const a=this.enableSoftwareAES;if(a){this.useSoftware=!0,this.logEnabled=!0,this.softwareDecrypt(t,n,r,o);const s=this.flush();if(s)return s.buffer}throw new Error("WebCrypto"+(a?" and softwareDecrypt":"")+": failed to decrypt data")}getValidChunk(t){let n=t;const r=t.length-t.length%Qxt;return r!==t.length&&(n=t.slice(0,r),this.remainderData=t.slice(r)),n}logOnce(t){this.logEnabled&&(po.log(`[decrypter]: ${t}`),this.logEnabled=!1)}}const Jle=Math.pow(2,17);class eCt{constructor(t){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=t}destroy(){this.loader&&(this.loader.destroy(),this.loader=null)}abort(){this.loader&&this.loader.abort()}load(t,n){const r=t.url;if(!r)return Promise.reject(new mh({type:dr.NETWORK_ERROR,details:Ht.FRAG_LOAD_ERROR,fatal:!1,frag:t,error:new Error(`Fragment does not have a ${r?"part list":"url"}`),networkDetails:null}));this.abort();const o=this.config,a=o.fLoader,s=o.loader;return new Promise((l,c)=>{if(this.loader&&this.loader.destroy(),t.gap)if(t.tagList.some(y=>y[0]==="GAP")){c(eue(t));return}else t.gap=!1;const d=this.loader=a?new a(o):new s(o),h=Qle(t);t.loader=d;const p=Xle(o.fragLoadPolicy.default),v={loadPolicy:p,timeout:p.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:t.sn==="initSegment"?1/0:Jle};t.stats=d.stats;const g={onSuccess:(y,S,k,C)=>{this.resetLoader(t,d);let x=y.data;k.resetIV&&t.decryptdata&&(t.decryptdata.iv=new Uint8Array(x.slice(0,16)),x=x.slice(16)),l({frag:t,part:null,payload:x,networkDetails:C})},onError:(y,S,k,C)=>{this.resetLoader(t,d),c(new mh({type:dr.NETWORK_ERROR,details:Ht.FRAG_LOAD_ERROR,fatal:!1,frag:t,response:fo({url:r,data:void 0},y),error:new Error(`HTTP Error ${y.code} ${y.text}`),networkDetails:k,stats:C}))},onAbort:(y,S,k)=>{this.resetLoader(t,d),c(new mh({type:dr.NETWORK_ERROR,details:Ht.INTERNAL_ABORTED,fatal:!1,frag:t,error:new Error("Aborted"),networkDetails:k,stats:y}))},onTimeout:(y,S,k)=>{this.resetLoader(t,d),c(new mh({type:dr.NETWORK_ERROR,details:Ht.FRAG_LOAD_TIMEOUT,fatal:!1,frag:t,error:new Error(`Timeout after ${v.timeout}ms`),networkDetails:k,stats:y}))}};n&&(g.onProgress=(y,S,k,C)=>n({frag:t,part:null,payload:k,networkDetails:C})),d.load(h,v,g)})}loadPart(t,n,r){this.abort();const o=this.config,a=o.fLoader,s=o.loader;return new Promise((l,c)=>{if(this.loader&&this.loader.destroy(),t.gap||n.gap){c(eue(t,n));return}const d=this.loader=a?new a(o):new s(o),h=Qle(t,n);t.loader=d;const p=Xle(o.fragLoadPolicy.default),v={loadPolicy:p,timeout:p.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:Jle};n.stats=d.stats,d.load(h,v,{onSuccess:(g,y,S,k)=>{this.resetLoader(t,d),this.updateStatsFromPart(t,n);const C={frag:t,part:n,payload:g.data,networkDetails:k};r(C),l(C)},onError:(g,y,S,k)=>{this.resetLoader(t,d),c(new mh({type:dr.NETWORK_ERROR,details:Ht.FRAG_LOAD_ERROR,fatal:!1,frag:t,part:n,response:fo({url:h.url,data:void 0},g),error:new Error(`HTTP Error ${g.code} ${g.text}`),networkDetails:S,stats:k}))},onAbort:(g,y,S)=>{t.stats.aborted=n.stats.aborted,this.resetLoader(t,d),c(new mh({type:dr.NETWORK_ERROR,details:Ht.INTERNAL_ABORTED,fatal:!1,frag:t,part:n,error:new Error("Aborted"),networkDetails:S,stats:g}))},onTimeout:(g,y,S)=>{this.resetLoader(t,d),c(new mh({type:dr.NETWORK_ERROR,details:Ht.FRAG_LOAD_TIMEOUT,fatal:!1,frag:t,part:n,error:new Error(`Timeout after ${v.timeout}ms`),networkDetails:S,stats:g}))}})})}updateStatsFromPart(t,n){const r=t.stats,o=n.stats,a=o.total;if(r.loaded+=o.loaded,a){const c=Math.round(t.duration/n.duration),d=Math.min(Math.round(r.loaded/a),c),p=(c-d)*Math.round(r.loaded/d);r.total=r.loaded+p}else r.total=Math.max(r.loaded,r.total);const s=r.loading,l=o.loading;s.start?s.first+=l.first-l.start:(s.start=l.start,s.first=l.first),s.end=l.end}resetLoader(t,n){t.loader=null,this.loader===n&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),n.destroy()}}function Qle(e,t=null){const n=t||e,r={frag:e,part:t,responseType:"arraybuffer",url:n.url,headers:{},rangeStart:0,rangeEnd:0},o=n.byteRangeStartOffset,a=n.byteRangeEndOffset;if(jn(o)&&jn(a)){var s;let l=o,c=a;if(e.sn==="initSegment"&&tCt((s=e.decryptdata)==null?void 0:s.method)){const d=a-o;d%16&&(c=a+(16-d%16)),o!==0&&(r.resetIV=!0,l=o-16)}r.rangeStart=l,r.rangeEnd=c}return r}function eue(e,t){const n=new Error(`GAP ${e.gap?"tag":"attribute"} found`),r={type:dr.MEDIA_ERROR,details:Ht.FRAG_GAP,fatal:!1,frag:e,error:n,networkDetails:null};return t&&(r.part=t),(t||e).stats.aborted=!0,new mh(r)}function tCt(e){return e==="AES-128"||e==="AES-256"}class mh extends Error{constructor(t){super(t.error.message),this.data=void 0,this.data=t}}class K3e extends rd{constructor(t,n){super(t,n),this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}destroy(){this.onHandlerDestroying(),this.onHandlerDestroyed()}onHandlerDestroying(){this.clearNextTick(),this.clearInterval()}onHandlerDestroyed(){}hasInterval(){return!!this._tickInterval}hasNextTick(){return!!this._tickTimer}setInterval(t){return this._tickInterval?!1:(this._tickCallCount=0,this._tickInterval=self.setInterval(this._boundTick,t),!0)}clearInterval(){return this._tickInterval?(self.clearInterval(this._tickInterval),this._tickInterval=null,!0):!1}clearNextTick(){return this._tickTimer?(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0):!1}tick(){this._tickCallCount++,this._tickCallCount===1&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)}tickImmediate(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)}doTick(){}}class EG{constructor(t,n,r,o=0,a=-1,s=!1){this.level=void 0,this.sn=void 0,this.part=void 0,this.id=void 0,this.size=void 0,this.partial=void 0,this.transmuxing=gC(),this.buffering={audio:gC(),video:gC(),audiovideo:gC()},this.level=t,this.sn=n,this.id=r,this.size=o,this.part=a,this.partial=s}}function gC(){return{start:0,executeStart:0,executeEnd:0,end:0}}const tue={length:0,start:()=>0,end:()=>0};class Vr{static isBuffered(t,n){if(t){const r=Vr.getBuffered(t);for(let o=r.length;o--;)if(n>=r.start(o)&&n<=r.end(o))return!0}return!1}static bufferedRanges(t){if(t){const n=Vr.getBuffered(t);return Vr.timeRangesToArray(n)}return[]}static timeRangesToArray(t){const n=[];for(let r=0;r1&&t.sort((h,p)=>h.start-p.start||p.end-h.end);let o=-1,a=[];if(r)for(let h=0;h=t[h].start&&n<=t[h].end&&(o=h);const p=a.length;if(p){const v=a[p-1].end;t[h].start-vv&&(a[p-1].end=t[h].end):a.push(t[h])}else a.push(t[h])}else a=t;let s=0,l,c=n,d=n;for(let h=0;h=p&&n<=v&&(o=h),n+r>=p&&n{const o=r.substring(2,r.length-1),a=n?.[o];return a===void 0?(e.playlistParsingError||(e.playlistParsingError=new Error(`Missing preceding EXT-X-DEFINE tag for Variable Reference: "${o}"`)),r):a})}return t}function rue(e,t,n){let r=e.variableList;r||(e.variableList=r={});let o,a;if("QUERYPARAM"in t){o=t.QUERYPARAM;try{const s=new self.URL(n).searchParams;if(s.has(o))a=s.get(o);else throw new Error(`"${o}" does not match any query parameter in URI: "${n}"`)}catch(s){e.playlistParsingError||(e.playlistParsingError=new Error(`EXT-X-DEFINE QUERYPARAM: ${s.message}`))}}else o=t.NAME,a=t.VALUE;o in r?e.playlistParsingError||(e.playlistParsingError=new Error(`EXT-X-DEFINE duplicate Variable Name declarations: "${o}"`)):r[o]=a||""}function nCt(e,t,n){const r=t.IMPORT;if(n&&r in n){let o=e.variableList;o||(e.variableList=o={}),o[r]=n[r]}else e.playlistParsingError||(e.playlistParsingError=new Error(`EXT-X-DEFINE IMPORT attribute not found in Multivariant Playlist: "${r}"`))}const rCt=/^(\d+)x(\d+)$/,iue=/(.+?)=(".*?"|.*?)(?:,|$)/g;class os{constructor(t,n){typeof t=="string"&&(t=os.parseAttrList(t,n)),bo(this,t)}get clientAttrs(){return Object.keys(this).filter(t=>t.substring(0,2)==="X-")}decimalInteger(t){const n=parseInt(this[t],10);return n>Number.MAX_SAFE_INTEGER?1/0:n}hexadecimalInteger(t){if(this[t]){let n=(this[t]||"0x").slice(2);n=(n.length&1?"0":"")+n;const r=new Uint8Array(n.length/2);for(let o=0;oNumber.MAX_SAFE_INTEGER?1/0:n}decimalFloatingPoint(t){return parseFloat(this[t])}optionalFloat(t,n){const r=this[t];return r?parseFloat(r):n}enumeratedString(t){return this[t]}enumeratedStringList(t,n){const r=this[t];return(r?r.split(/[ ,]+/):[]).reduce((o,a)=>(o[a.toLowerCase()]=!0,o),n)}bool(t){return this[t]==="YES"}decimalResolution(t){const n=rCt.exec(this[t]);if(n!==null)return{width:parseInt(n[1],10),height:parseInt(n[2],10)}}static parseAttrList(t,n){let r;const o={};for(iue.lastIndex=0;(r=iue.exec(t))!==null;){const s=r[1].trim();let l=r[2];const c=l.indexOf('"')===0&&l.lastIndexOf('"')===l.length-1;let d=!1;if(c)l=l.slice(1,-1);else switch(s){case"IV":case"SCTE35-CMD":case"SCTE35-IN":case"SCTE35-OUT":d=!0}if(n&&(c||d))l=jz(n,l);else if(!d&&!c)switch(s){case"CLOSED-CAPTIONS":if(l==="NONE")break;case"ALLOWED-CPC":case"CLASS":case"ASSOC-LANGUAGE":case"AUDIO":case"BYTERANGE":case"CHANNELS":case"CHARACTERISTICS":case"CODECS":case"DATA-ID":case"END-DATE":case"GROUP-ID":case"ID":case"IMPORT":case"INSTREAM-ID":case"KEYFORMAT":case"KEYFORMATVERSIONS":case"LANGUAGE":case"NAME":case"PATHWAY-ID":case"QUERYPARAM":case"RECENTLY-REMOVED-DATERANGES":case"SERVER-URI":case"STABLE-RENDITION-ID":case"STABLE-VARIANT-ID":case"START-DATE":case"SUBTITLES":case"SUPPLEMENTAL-CODECS":case"URI":case"VALUE":case"VIDEO":case"X-ASSET-LIST":case"X-ASSET-URI":po.warn(`${t}: attribute ${s} is missing quotes`)}o[s]=l}return o}}const iCt="com.apple.hls.interstitial";function oCt(e){return e!=="ID"&&e!=="CLASS"&&e!=="CUE"&&e!=="START-DATE"&&e!=="DURATION"&&e!=="END-DATE"&&e!=="END-ON-NEXT"}function sCt(e){return e==="SCTE35-OUT"||e==="SCTE35-IN"||e==="SCTE35-CMD"}class Y3e{constructor(t,n,r=0){var o;if(this.attr=void 0,this.tagAnchor=void 0,this.tagOrder=void 0,this._startDate=void 0,this._endDate=void 0,this._dateAtEnd=void 0,this._cue=void 0,this._badValueForSameId=void 0,this.tagAnchor=n?.tagAnchor||null,this.tagOrder=(o=n?.tagOrder)!=null?o:r,n){const a=n.attr;for(const s in a)if(Object.prototype.hasOwnProperty.call(t,s)&&t[s]!==a[s]){po.warn(`DATERANGE tag attribute: "${s}" does not match for tags with ID: "${t.ID}"`),this._badValueForSameId=s;break}t=bo(new os({}),a,t)}if(this.attr=t,n?(this._startDate=n._startDate,this._cue=n._cue,this._endDate=n._endDate,this._dateAtEnd=n._dateAtEnd):this._startDate=new Date(t["START-DATE"]),"END-DATE"in this.attr){const a=n?.endDate||new Date(this.attr["END-DATE"]);jn(a.getTime())&&(this._endDate=a)}}get id(){return this.attr.ID}get class(){return this.attr.CLASS}get cue(){const t=this._cue;return t===void 0?this._cue=this.attr.enumeratedStringList(this.attr.CUE?"CUE":"X-CUE",{pre:!1,post:!1,once:!1}):t}get startTime(){const{tagAnchor:t}=this;return t===null||t.programDateTime===null?(po.warn(`Expected tagAnchor Fragment with PDT set for DateRange "${this.id}": ${t}`),NaN):t.start+(this.startDate.getTime()-t.programDateTime)/1e3}get startDate(){return this._startDate}get endDate(){const t=this._endDate||this._dateAtEnd;if(t)return t;const n=this.duration;return n!==null?this._dateAtEnd=new Date(this._startDate.getTime()+n*1e3):null}get duration(){if("DURATION"in this.attr){const t=this.attr.decimalFloatingPoint("DURATION");if(jn(t))return t}else if(this._endDate)return(this._endDate.getTime()-this._startDate.getTime())/1e3;return null}get plannedDuration(){return"PLANNED-DURATION"in this.attr?this.attr.decimalFloatingPoint("PLANNED-DURATION"):null}get endOnNext(){return this.attr.bool("END-ON-NEXT")}get isInterstitial(){return this.class===iCt}get isValid(){return!!this.id&&!this._badValueForSameId&&jn(this.startDate.getTime())&&(this.duration===null||this.duration>=0)&&(!this.endOnNext||!!this.class)&&(!this.attr.CUE||!this.cue.pre&&!this.cue.post||this.cue.pre!==this.cue.post)&&(!this.isInterstitial||"X-ASSET-URI"in this.attr||"X-ASSET-LIST"in this.attr)}}const aCt=10;class lCt{constructor(t){this.PTSKnown=!1,this.alignedSliding=!1,this.averagetargetduration=void 0,this.endCC=0,this.endSN=0,this.fragments=void 0,this.fragmentHint=void 0,this.partList=null,this.dateRanges=void 0,this.dateRangeTagCount=0,this.live=!0,this.requestScheduled=-1,this.ageHeader=0,this.advancedDateTime=void 0,this.updated=!0,this.advanced=!0,this.misses=0,this.startCC=0,this.startSN=0,this.startTimeOffset=null,this.targetduration=0,this.totalduration=0,this.type=null,this.url=void 0,this.m3u8="",this.version=null,this.canBlockReload=!1,this.canSkipUntil=0,this.canSkipDateRanges=!1,this.skippedSegments=0,this.recentlyRemovedDateranges=void 0,this.partHoldBack=0,this.holdBack=0,this.partTarget=0,this.preloadHint=void 0,this.renditionReports=void 0,this.tuneInGoal=0,this.deltaUpdateFailed=void 0,this.driftStartTime=0,this.driftEndTime=0,this.driftStart=0,this.driftEnd=0,this.encryptedFragments=void 0,this.playlistParsingError=null,this.variableList=null,this.hasVariableRefs=!1,this.appliedTimelineOffset=void 0,this.fragments=[],this.encryptedFragments=[],this.dateRanges={},this.url=t}reloaded(t){if(!t){this.advanced=!0,this.updated=!0;return}const n=this.lastPartSn-t.lastPartSn,r=this.lastPartIndex-t.lastPartIndex;this.updated=this.endSN!==t.endSN||!!r||!!n||!this.live,this.advanced=this.endSN>t.endSN||n>0||n===0&&r>0,this.updated||this.advanced?this.misses=Math.floor(t.misses*.6):this.misses=t.misses+1}hasKey(t){return this.encryptedFragments.some(n=>{let r=n.decryptdata;return r||(n.setKeyFormat(t.keyFormat),r=n.decryptdata),!!r&&t.matches(r)})}get hasProgramDateTime(){return this.fragments.length?jn(this.fragments[this.fragments.length-1].programDateTime):!1}get levelTargetDuration(){return this.averagetargetduration||this.targetduration||aCt}get drift(){const t=this.driftEndTime-this.driftStartTime;return t>0?(this.driftEnd-this.driftStart)*1e3/t:1}get edge(){return this.partEnd||this.fragmentEnd}get partEnd(){var t;return(t=this.partList)!=null&&t.length?this.partList[this.partList.length-1].end:this.fragmentEnd}get fragmentEnd(){return this.fragments.length?this.fragments[this.fragments.length-1].end:0}get fragmentStart(){return this.fragments.length?this.fragments[0].start:0}get age(){return this.advancedDateTime?Math.max(Date.now()-this.advancedDateTime,0)/1e3:0}get lastPartIndex(){var t;return(t=this.partList)!=null&&t.length?this.partList[this.partList.length-1].index:-1}get maxPartIndex(){const t=this.partList;if(t){const n=this.lastPartIndex;if(n!==-1){for(let r=t.length;r--;)if(t[r].index>n)return t[r].index;return n}}return 0}get lastPartSn(){var t;return(t=this.partList)!=null&&t.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}get expired(){if(this.live&&this.age&&this.misses<3){const t=this.partEnd-this.fragmentStart;return this.age>Math.max(t,this.totalduration)+this.levelTargetDuration}return!1}}function RT(e,t){return e.length===t.length?!e.some((n,r)=>n!==t[r]):!1}function oue(e,t){return!e&&!t?!0:!e||!t?!1:RT(e,t)}function yy(e){return e==="AES-128"||e==="AES-256"||e==="AES-256-CTR"}function TG(e){switch(e){case"AES-128":case"AES-256":return R0.cbc;case"AES-256-CTR":return R0.ctr;default:throw new Error(`invalid full segment method ${e}`)}}function AG(e){return Uint8Array.from(atob(e),t=>t.charCodeAt(0))}function Vz(e){return Uint8Array.from(unescape(encodeURIComponent(e)),t=>t.charCodeAt(0))}function uCt(e){const t=Vz(e).subarray(0,16),n=new Uint8Array(16);return n.set(t,16-t.length),n}function X3e(e){const t=function(r,o,a){const s=r[o];r[o]=r[a],r[a]=s};t(e,0,3),t(e,1,2),t(e,4,5),t(e,6,7)}function Z3e(e){const t=e.split(":");let n=null;if(t[0]==="data"&&t.length===2){const r=t[1].split(";"),o=r[r.length-1].split(",");if(o.length===2){const a=o[0]==="base64",s=o[1];a?(r.splice(-1,1),n=AG(s)):n=uCt(s)}}return n}const MT=typeof self<"u"?self:void 0;var ls={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.fps",PLAYREADY:"com.microsoft.playready",WIDEVINE:"com.widevine.alpha"},za={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.streamingkeydelivery",PLAYREADY:"com.microsoft.playready",WIDEVINE:"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"};function JE(e){switch(e){case za.FAIRPLAY:return ls.FAIRPLAY;case za.PLAYREADY:return ls.PLAYREADY;case za.WIDEVINE:return ls.WIDEVINE;case za.CLEARKEY:return ls.CLEARKEY}}function OF(e){switch(e){case ls.FAIRPLAY:return za.FAIRPLAY;case ls.PLAYREADY:return za.PLAYREADY;case ls.WIDEVINE:return za.WIDEVINE;case ls.CLEARKEY:return za.CLEARKEY}}function N4(e){const{drmSystems:t,widevineLicenseUrl:n}=e,r=t?[ls.FAIRPLAY,ls.WIDEVINE,ls.PLAYREADY,ls.CLEARKEY].filter(o=>!!t[o]):[];return!r[ls.WIDEVINE]&&n&&r.push(ls.WIDEVINE),r}const J3e=(function(e){return MT!=null&&(e=MT.navigator)!=null&&e.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null})();function cCt(e,t,n,r){let o;switch(e){case ls.FAIRPLAY:o=["cenc","sinf"];break;case ls.WIDEVINE:case ls.PLAYREADY:o=["cenc"];break;case ls.CLEARKEY:o=["cenc","keyids"];break;default:throw new Error(`Unknown key-system: ${e}`)}return dCt(o,t,n,r)}function dCt(e,t,n,r){return[{initDataTypes:e,persistentState:r.persistentState||"optional",distinctiveIdentifier:r.distinctiveIdentifier||"optional",sessionTypes:r.sessionTypes||[r.sessionType||"temporary"],audioCapabilities:t.map(a=>({contentType:`audio/mp4; codecs=${a}`,robustness:r.audioRobustness||"",encryptionScheme:r.audioEncryptionScheme||null})),videoCapabilities:n.map(a=>({contentType:`video/mp4; codecs=${a}`,robustness:r.videoRobustness||"",encryptionScheme:r.videoEncryptionScheme||null}))}]}function fCt(e){var t;return!!e&&(e.sessionType==="persistent-license"||!!((t=e.sessionTypes)!=null&&t.some(n=>n==="persistent-license")))}function Q3e(e){const t=new Uint16Array(e.buffer,e.byteOffset,e.byteLength/2),n=String.fromCharCode.apply(null,Array.from(t)),r=n.substring(n.indexOf("<"),n.length),s=new DOMParser().parseFromString(r,"text/xml").getElementsByTagName("KID")[0];if(s){const l=s.childNodes[0]?s.childNodes[0].nodeValue:s.getAttribute("VALUE");if(l){const c=AG(l).subarray(0,16);return X3e(c),c}}return null}let yC={};class km{static clearKeyUriToKeyIdMap(){yC={}}static setKeyIdForUri(t,n){yC[t]=n}constructor(t,n,r,o=[1],a=null,s){this.uri=void 0,this.method=void 0,this.keyFormat=void 0,this.keyFormatVersions=void 0,this.encrypted=void 0,this.isCommonEncryption=void 0,this.iv=null,this.key=null,this.keyId=null,this.pssh=null,this.method=t,this.uri=n,this.keyFormat=r,this.keyFormatVersions=o,this.iv=a,this.encrypted=t?t!=="NONE":!1,this.isCommonEncryption=this.encrypted&&!yy(t),s!=null&&s.startsWith("0x")&&(this.keyId=new Uint8Array(T3e(s)))}matches(t){return t.uri===this.uri&&t.method===this.method&&t.encrypted===this.encrypted&&t.keyFormat===this.keyFormat&&RT(t.keyFormatVersions,this.keyFormatVersions)&&oue(t.iv,this.iv)&&oue(t.keyId,this.keyId)}isSupported(){if(this.method){if(yy(this.method)||this.method==="NONE")return!0;if(this.keyFormat==="identity")return this.method==="SAMPLE-AES";switch(this.keyFormat){case za.FAIRPLAY:case za.WIDEVINE:case za.PLAYREADY:case za.CLEARKEY:return["SAMPLE-AES","SAMPLE-AES-CENC","SAMPLE-AES-CTR"].indexOf(this.method)!==-1}}return!1}getDecryptData(t,n){if(!this.encrypted||!this.uri)return null;if(yy(this.method)){let a=this.iv;return a||(typeof t!="number"&&(po.warn(`missing IV for initialization segment with method="${this.method}" - compliance issue`),t=0),a=pCt(t)),new km(this.method,this.uri,"identity",this.keyFormatVersions,a)}if(this.keyId){const a=yC[this.uri];if(a&&!RT(this.keyId,a)&&km.setKeyIdForUri(this.uri,this.keyId),this.pssh)return this}const r=Z3e(this.uri);if(r)switch(this.keyFormat){case za.WIDEVINE:if(this.pssh=r,!this.keyId){const a=gxt(r.buffer);if(a.length){var o;const s=a[0];this.keyId=(o=s.kids)!=null&&o.length?s.kids[0]:null}}this.keyId||(this.keyId=sue(n));break;case za.PLAYREADY:{const a=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);this.pssh=mxt(a,null,r),this.keyId=Q3e(r);break}default:{let a=r.subarray(0,16);if(a.length!==16){const s=new Uint8Array(16);s.set(a,16-a.length),a=s}this.keyId=a;break}}if(!this.keyId||this.keyId.byteLength!==16){let a;a=hCt(n),a||(a=sue(n),a||(a=yC[this.uri])),a&&(this.keyId=a,km.setKeyIdForUri(this.uri,a))}return this}}function hCt(e){const t=e?.[za.WIDEVINE];return t?t.keyId:null}function sue(e){const t=e?.[za.PLAYREADY];if(t){const n=Z3e(t.uri);if(n)return Q3e(n)}return null}function pCt(e){const t=new Uint8Array(16);for(let n=12;n<16;n++)t[n]=e>>8*(15-n)&255;return t}const aue=/#EXT-X-STREAM-INF:([^\r\n]*)(?:[\r\n](?:#[^\r\n]*)?)*([^\r\n]+)|#EXT-X-(SESSION-DATA|SESSION-KEY|DEFINE|CONTENT-STEERING|START):([^\r\n]*)[\r\n]+/g,lue=/#EXT-X-MEDIA:(.*)/g,vCt=/^#EXT(?:INF|-X-TARGETDURATION):/m,$F=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/(?!#) *(\S[^\r\n]*)/.source,/#.*/.source].join("|"),"g"),mCt=new RegExp([/#EXT-X-(PROGRAM-DATE-TIME|BYTERANGE|DATERANGE|DEFINE|KEY|MAP|PART|PART-INF|PLAYLIST-TYPE|PRELOAD-HINT|RENDITION-REPORT|SERVER-CONTROL|SKIP|START):(.+)/.source,/#EXT-X-(BITRATE|DISCONTINUITY-SEQUENCE|MEDIA-SEQUENCE|TARGETDURATION|VERSION): *(\d+)/.source,/#EXT-X-(DISCONTINUITY|ENDLIST|GAP|INDEPENDENT-SEGMENTS)/.source,/(#)([^:]*):(.*)/.source,/(#)(.*)(?:.*)\r?\n?/.source].join("|"));class vf{static findGroup(t,n){for(let r=0;r0&&a.length({id:d.attrs.AUDIO,audioCodec:d.audioCodec})),SUBTITLES:s.map(d=>({id:d.attrs.SUBTITLES,textCodec:d.textCodec})),"CLOSED-CAPTIONS":[]};let c=0;for(lue.lastIndex=0;(o=lue.exec(t))!==null;){const d=new os(o[1],r),h=d.TYPE;if(h){const p=l[h],v=a[h]||[];a[h]=v;const g=d.LANGUAGE,y=d["ASSOC-LANGUAGE"],S=d.CHANNELS,k=d.CHARACTERISTICS,C=d["INSTREAM-ID"],x={attrs:d,bitrate:0,id:c++,groupId:d["GROUP-ID"]||"",name:d.NAME||g||"",type:h,default:d.bool("DEFAULT"),autoselect:d.bool("AUTOSELECT"),forced:d.bool("FORCED"),lang:g,url:d.URI?vf.resolve(d.URI,n):""};if(y&&(x.assocLang=y),S&&(x.channels=S),k&&(x.characteristics=k),C&&(x.instreamId=C),p!=null&&p.length){const E=vf.findGroup(p,x.groupId)||p[0];fue(x,E,"audioCodec"),fue(x,E,"textCodec")}v.push(x)}}return a}static parseLevelPlaylist(t,n,r,o,a,s){var l;const c={url:n},d=new lCt(n),h=d.fragments,p=[];let v=null,g=0,y=0,S=0,k=0,C=0,x=null,E=new PF(o,c),_,T,D,P=-1,M=!1,$=null,L;if($F.lastIndex=0,d.m3u8=t,d.hasVariableRefs=nue(t),((l=$F.exec(t))==null?void 0:l[0])!=="#EXTM3U")return d.playlistParsingError=new Error("Missing format identifier #EXTM3U"),d;for(;(_=$F.exec(t))!==null;){M&&(M=!1,E=new PF(o,c),E.playlistOffset=S,E.setStart(S),E.sn=g,E.cc=k,C&&(E.bitrate=C),E.level=r,v&&(E.initSegment=v,v.rawProgramDateTime&&(E.rawProgramDateTime=v.rawProgramDateTime,v.rawProgramDateTime=null),$&&(E.setByteRange($),$=null)));const U=_[1];if(U){E.duration=parseFloat(U);const G=(" "+_[2]).slice(1);E.title=G||null,E.tagList.push(G?["INF",U,G]:["INF",U])}else if(_[3]){if(jn(E.duration)){E.playlistOffset=S,E.setStart(S),D&&pue(E,D,d),E.sn=g,E.level=r,E.cc=k,h.push(E);const G=(" "+_[3]).slice(1);E.relurl=jz(d,G),zz(E,x,p),x=E,S+=E.duration,g++,y=0,M=!0}}else{if(_=_[0].match(mCt),!_){po.warn("No matches on slow regex match for level playlist!");continue}for(T=1;T<_.length&&_[T]===void 0;T++);const G=(" "+_[T]).slice(1),X=(" "+_[T+1]).slice(1),oe=_[T+2]?(" "+_[T+2]).slice(1):null;switch(G){case"BYTERANGE":x?E.setByteRange(X,x):E.setByteRange(X);break;case"PROGRAM-DATE-TIME":E.rawProgramDateTime=X,E.tagList.push(["PROGRAM-DATE-TIME",X]),P===-1&&(P=h.length);break;case"PLAYLIST-TYPE":d.type&&ch(d,G,_),d.type=X.toUpperCase();break;case"MEDIA-SEQUENCE":d.startSN!==0?ch(d,G,_):h.length>0&&vue(d,G,_),g=d.startSN=parseInt(X);break;case"SKIP":{d.skippedSegments&&ch(d,G,_);const Z=new os(X,d),H=Z.decimalInteger("SKIPPED-SEGMENTS");if(jn(H)){d.skippedSegments+=H;for(let ee=H;ee--;)h.push(null);g+=H}const q=Z.enumeratedString("RECENTLY-REMOVED-DATERANGES");q&&(d.recentlyRemovedDateranges=(d.recentlyRemovedDateranges||[]).concat(q.split(" ")));break}case"TARGETDURATION":d.targetduration!==0&&ch(d,G,_),d.targetduration=Math.max(parseInt(X),1);break;case"VERSION":d.version!==null&&ch(d,G,_),d.version=parseInt(X);break;case"INDEPENDENT-SEGMENTS":break;case"ENDLIST":d.live||ch(d,G,_),d.live=!1;break;case"#":(X||oe)&&E.tagList.push(oe?[X,oe]:[X]);break;case"DISCONTINUITY":k++,E.tagList.push(["DIS"]);break;case"GAP":E.gap=!0,E.tagList.push([G]);break;case"BITRATE":E.tagList.push([G,X]),C=parseInt(X)*1e3,jn(C)?E.bitrate=C:C=0;break;case"DATERANGE":{const Z=new os(X,d),H=new Y3e(Z,d.dateRanges[Z.ID],d.dateRangeTagCount);d.dateRangeTagCount++,H.isValid||d.skippedSegments?d.dateRanges[H.id]=H:po.warn(`Ignoring invalid DATERANGE tag: "${X}"`),E.tagList.push(["EXT-X-DATERANGE",X]);break}case"DEFINE":{{const Z=new os(X,d);"IMPORT"in Z?nCt(d,Z,s):rue(d,Z,n)}break}case"DISCONTINUITY-SEQUENCE":d.startCC!==0?ch(d,G,_):h.length>0&&vue(d,G,_),d.startCC=k=parseInt(X);break;case"KEY":{const Z=uue(X,n,d);if(Z.isSupported()){if(Z.method==="NONE"){D=void 0;break}D||(D={});const H=D[Z.keyFormat];H!=null&&H.matches(Z)||(H&&(D=bo({},D)),D[Z.keyFormat]=Z)}else po.warn(`[Keys] Ignoring unsupported EXT-X-KEY tag: "${X}"`);break}case"START":d.startTimeOffset=cue(X);break;case"MAP":{const Z=new os(X,d);if(E.duration){const H=new PF(o,c);hue(H,Z,r,D),v=H,E.initSegment=v,v.rawProgramDateTime&&!E.rawProgramDateTime&&(E.rawProgramDateTime=v.rawProgramDateTime)}else{const H=E.byteRangeEndOffset;if(H){const q=E.byteRangeStartOffset;$=`${H-q}@${q}`}else $=null;hue(E,Z,r,D),v=E,M=!0}v.cc=k;break}case"SERVER-CONTROL":{L&&ch(d,G,_),L=new os(X),d.canBlockReload=L.bool("CAN-BLOCK-RELOAD"),d.canSkipUntil=L.optionalFloat("CAN-SKIP-UNTIL",0),d.canSkipDateRanges=d.canSkipUntil>0&&L.bool("CAN-SKIP-DATERANGES"),d.partHoldBack=L.optionalFloat("PART-HOLD-BACK",0),d.holdBack=L.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{d.partTarget&&ch(d,G,_);const Z=new os(X);d.partTarget=Z.decimalFloatingPoint("PART-TARGET");break}case"PART":{let Z=d.partList;Z||(Z=d.partList=[]);const H=y>0?Z[Z.length-1]:void 0,q=y++,ee=new os(X,d),ne=new nxt(ee,E,c,q,H);Z.push(ne),E.duration+=ne.duration;break}case"PRELOAD-HINT":{const Z=new os(X,d);d.preloadHint=Z;break}case"RENDITION-REPORT":{const Z=new os(X,d);d.renditionReports=d.renditionReports||[],d.renditionReports.push(Z);break}default:po.warn(`line parsed but not handled: ${_}`);break}}}x&&!x.relurl?(h.pop(),S-=x.duration,d.partList&&(d.fragmentHint=x)):d.partList&&(zz(E,x,p),E.cc=k,d.fragmentHint=E,D&&pue(E,D,d)),d.targetduration||(d.playlistParsingError=new Error("Missing Target Duration"));const B=h.length,F=h[0],W=h[B-1];if(S+=d.skippedSegments*d.targetduration,S>0&&B&&W){d.averagetargetduration=S/B;const U=W.sn;d.endSN=U!=="initSegment"?U:0,d.live||(W.endList=!0),P>0&&(yCt(h,P),F&&p.unshift(F))}return d.fragmentHint&&(S+=d.fragmentHint.duration),d.totalduration=S,p.length&&d.dateRangeTagCount&&F&&e2e(p,d),d.endCC=k,d}}function e2e(e,t){let n=e.length;if(!n)if(t.hasProgramDateTime){const l=t.fragments[t.fragments.length-1];e.push(l),n++}else return;const r=e[n-1],o=t.live?1/0:t.totalduration,a=Object.keys(t.dateRanges);for(let l=a.length;l--;){const c=t.dateRanges[a[l]],d=c.startDate.getTime();c.tagAnchor=r.ref;for(let h=n;h--;){var s;if(((s=e[h])==null?void 0:s.sn)=l||r===0){var s;const c=(((s=n[r+1])==null?void 0:s.start)||o)-a.start;if(t<=l+c*1e3){const d=n[r].sn-e.startSN;if(d<0)return-1;const h=e.fragments;if(h.length>n.length){const v=(n[r+1]||h[h.length-1]).sn-e.startSN;for(let g=v;g>d;g--){const y=h[g].programDateTime;if(t>=y&&tr);["video","audio","text"].forEach(r=>{const o=n.filter(a=>kG(a,r));o.length&&(t[`${r}Codec`]=o.map(a=>a.split("/")[0]).join(","),n=n.filter(a=>o.indexOf(a)===-1))}),t.unknownCodecs=n}function fue(e,t,n){const r=t[n];r&&(e[n]=r)}function yCt(e,t){let n=e[t];for(let r=t;r--;){const o=e[r];if(!o)return;o.programDateTime=n.programDateTime-o.duration*1e3,n=o}}function zz(e,t,n){e.rawProgramDateTime?n.push(e):t!=null&&t.programDateTime&&(e.programDateTime=t.endProgramDateTime)}function hue(e,t,n,r){e.relurl=t.URI,t.BYTERANGE&&e.setByteRange(t.BYTERANGE),e.level=n,e.sn="initSegment",r&&(e.levelkeys=r),e.initSegment=null}function pue(e,t,n){e.levelkeys=t;const{encryptedFragments:r}=n;(!r.length||r[r.length-1].levelkeys!==t)&&Object.keys(t).some(o=>t[o].isCommonEncryption)&&r.push(e)}function ch(e,t,n){e.playlistParsingError=new Error(`#EXT-X-${t} must not appear more than once (${n[0]})`)}function vue(e,t,n){e.playlistParsingError=new Error(`#EXT-X-${t} must appear before the first Media Segment (${n[0]})`)}function BF(e,t){const n=t.startPTS;if(jn(n)){let r=0,o;t.sn>e.sn?(r=n-e.start,o=e):(r=e.start-n,o=t),o.duration!==r&&o.setDuration(r)}else t.sn>e.sn?e.cc===t.cc&&e.minEndPTS?t.setStart(e.start+(e.minEndPTS-e.start)):t.setStart(e.start+e.duration):t.setStart(Math.max(e.start-t.duration,0))}function t2e(e,t,n,r,o,a,s){r-n<=0&&(s.warn("Fragment should have a positive duration",t),r=n+t.duration,a=o+t.duration);let c=n,d=r;const h=t.startPTS,p=t.endPTS;if(jn(h)){const C=Math.abs(h-n);e&&C>e.totalduration?s.warn(`media timestamps and playlist times differ by ${C}s for level ${t.level} ${e.url}`):jn(t.deltaPTS)?t.deltaPTS=Math.max(C,t.deltaPTS):t.deltaPTS=C,c=Math.max(n,h),n=Math.min(n,h),o=t.startDTS!==void 0?Math.min(o,t.startDTS):o,d=Math.min(r,p),r=Math.max(r,p),a=t.endDTS!==void 0?Math.max(a,t.endDTS):a}const v=n-t.start;t.start!==0&&t.setStart(n),t.setDuration(r-t.start),t.startPTS=n,t.maxStartPTS=c,t.startDTS=o,t.endPTS=r,t.minEndPTS=d,t.endDTS=a;const g=t.sn;if(!e||ge.endSN)return 0;let y;const S=g-e.startSN,k=e.fragments;for(k[S]=t,y=S;y>0;y--)BF(k[y],k[y-1]);for(y=S;y=0;h--){const p=o[h].initSegment;if(p){r=p;break}}e.fragmentHint&&delete e.fragmentHint.endPTS;let a;kCt(e,t,(h,p,v,g)=>{if((!t.startCC||t.skippedSegments)&&p.cc!==h.cc){const y=h.cc-p.cc;for(let S=v;S{var p;h&&(!h.initSegment||h.initSegment.relurl===((p=r)==null?void 0:p.relurl))&&(h.initSegment=r)}),t.skippedSegments){if(t.deltaUpdateFailed=s.some(h=>!h),t.deltaUpdateFailed){n.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(let h=t.skippedSegments;h--;)s.shift();t.startSN=s[0].sn}else{t.canSkipDateRanges&&(t.dateRanges=_Ct(e.dateRanges,t,n));const h=e.fragments.filter(p=>p.rawProgramDateTime);if(e.hasProgramDateTime&&!t.hasProgramDateTime)for(let p=1;p{p.elementaryStreams=h.elementaryStreams,p.stats=h.stats}),a?t2e(t,a,a.startPTS,a.endPTS,a.startDTS,a.endDTS,n):n2e(e,t),s.length&&(t.totalduration=t.edge-s[0].start),t.driftStartTime=e.driftStartTime,t.driftStart=e.driftStart;const d=t.advancedDateTime;if(t.advanced&&d){const h=t.edge;t.driftStart||(t.driftStartTime=d,t.driftStart=h),t.driftEndTime=d,t.driftEnd=h}else t.driftEndTime=e.driftEndTime,t.driftEnd=e.driftEnd,t.advancedDateTime=e.advancedDateTime;t.requestScheduled===-1&&(t.requestScheduled=e.requestScheduled)}function _Ct(e,t,n){const{dateRanges:r,recentlyRemovedDateranges:o}=t,a=bo({},e);o&&o.forEach(c=>{delete a[c]});const l=Object.keys(a).length;return l?(Object.keys(r).forEach(c=>{const d=a[c],h=new Y3e(r[c].attr,d);h.isValid?(a[c]=h,d||(h.tagOrder+=l)):n.warn(`Ignoring invalid Playlist Delta Update DATERANGE tag: "${To(r[c].attr)}"`)}),a):r}function SCt(e,t,n){if(e&&t){let r=0;for(let o=0,a=e.length;o<=a;o++){const s=e[o],l=t[o+r];s&&l&&s.index===l.index&&s.fragment.sn===l.fragment.sn?n(s,l):r--}}}function kCt(e,t,n){const r=t.skippedSegments,o=Math.max(e.startSN,t.startSN)-t.startSN,a=(e.fragmentHint?1:0)+(r?t.endSN:Math.min(e.endSN,t.endSN))-t.startSN,s=t.startSN-e.startSN,l=t.fragmentHint?t.fragments.concat(t.fragmentHint):t.fragments,c=e.fragmentHint?e.fragments.concat(e.fragmentHint):e.fragments;for(let d=o;d<=a;d++){const h=c[s+d];let p=l[d];if(r&&!p&&h&&(p=t.fragments[d]=h),h&&p){n(h,p,d,l);const v=h.relurl,g=p.relurl;if(v&&xCt(v,g)){t.playlistParsingError=mue(`media sequence mismatch ${p.sn}:`,e,t,h,p);return}else if(h.cc!==p.cc){t.playlistParsingError=mue(`discontinuity sequence mismatch (${h.cc}!=${p.cc})`,e,t,h,p);return}}}}function mue(e,t,n,r,o){return new Error(`${e} ${o.url} Playlist starting @${t.startSN} ${t.m3u8} Playlist starting @${n.startSN} ${n.m3u8}`)}function n2e(e,t,n=!0){const r=t.startSN+t.skippedSegments-e.startSN,o=e.fragments,a=r>=0;let s=0;if(a&&rt){const a=r[r.length-1].duration*1e3;a{var r;(r=t.details)==null||r.fragments.forEach(o=>{o.level=n,o.initSegment&&(o.initSegment.level=n)})})}function xCt(e,t){return e!==t&&t?yue(e)!==yue(t):!1}function yue(e){return e.replace(/\?[^?]*$/,"")}function Ib(e,t){for(let r=0,o=e.length;re.startCC)}function bue(e,t){const n=e.start+t;e.startPTS=n,e.setStart(n),e.endPTS=n+e.duration}function a2e(e,t){const n=t.fragments;for(let r=0,o=n.length;r{const{config:s,fragCurrent:l,media:c,mediaBuffer:d,state:h}=this,p=c?c.currentTime:0,v=Vr.bufferInfo(d||c,p,s.maxBufferHole),g=!v.len;if(this.log(`Media seeking to ${jn(p)?p.toFixed(3):p}, state: ${h}, ${g?"out of":"in"} buffer`),this.state===an.ENDED)this.resetLoadingState();else if(l){const y=s.maxFragLookUpTolerance,S=l.start-y,k=l.start+l.duration+y;if(g||kv.end){const C=p>k;(py&&(this.lastCurrentTime=p),!this.loadingParts){const S=Math.max(v.end,p),k=this.shouldLoadParts(this.getLevelDetails(),S);k&&(this.log(`LL-Part loading ON after seeking to ${p.toFixed(2)} with buffer @${S.toFixed(2)}`),this.loadingParts=k)}}this.hls.hasEnoughToStart||(this.log(`Setting ${g?"startPosition":"nextLoadPosition"} to ${p} for seek without enough to start`),this.nextLoadPosition=p,g&&(this.startPosition=p)),g&&this.state===an.IDLE&&this.tickImmediate()},this.onMediaEnded=()=>{this.log("setting startPosition to 0 because media ended"),this.startPosition=this.lastCurrentTime=0},this.playlistType=a,this.hls=t,this.fragmentLoader=new eCt(t.config),this.keyLoader=r,this.fragmentTracker=n,this.config=t.config,this.decrypter=new wG(t.config)}registerListeners(){const{hls:t}=this;t.on(Ee.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(Ee.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(Ee.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Ee.MANIFEST_LOADED,this.onManifestLoaded,this),t.on(Ee.ERROR,this.onError,this)}unregisterListeners(){const{hls:t}=this;t.off(Ee.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(Ee.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(Ee.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Ee.MANIFEST_LOADED,this.onManifestLoaded,this),t.off(Ee.ERROR,this.onError,this)}doTick(){this.onTickEnd()}onTickEnd(){}startLoad(t){}stopLoad(){if(this.state===an.STOPPED)return;this.fragmentLoader.abort(),this.keyLoader.abort(this.playlistType);const t=this.fragCurrent;t!=null&&t.loader&&(t.abortRequests(),this.fragmentTracker.removeFragment(t)),this.resetTransmuxer(),this.fragCurrent=null,this.fragPrevious=null,this.clearInterval(),this.clearNextTick(),this.state=an.STOPPED}get startPositionValue(){const{nextLoadPosition:t,startPosition:n}=this;return n===-1&&t?t:n}get bufferingEnabled(){return this.buffering}pauseBuffering(){this.buffering=!1}resumeBuffering(){this.buffering=!0}get inFlightFrag(){return{frag:this.fragCurrent,state:this.state}}_streamEnded(t,n){if(n.live||!this.media)return!1;const r=t.end||0,o=this.config.timelineOffset||0;if(r<=o)return!1;const a=t.buffered;this.config.maxBufferHole&&a&&a.length>1&&(t=Vr.bufferedInfo(a,t.start,0));const s=t.nextStart;if(s&&s>o&&s{const s=a.frag;if(this.fragContextChanged(s)){this.warn(`${s.type} sn: ${s.sn}${a.part?" part: "+a.part.index:""} of ${this.fragInfo(s,!1,a.part)}) was dropped during download.`),this.fragmentTracker.removeFragment(s);return}s.stats.chunkCount++,this._handleFragmentLoadProgress(a)};this._doFragLoad(t,n,r,o).then(a=>{if(!a)return;const s=this.state,l=a.frag;if(this.fragContextChanged(l)){(s===an.FRAG_LOADING||!this.fragCurrent&&s===an.PARSING)&&(this.fragmentTracker.removeFragment(l),this.state=an.IDLE);return}"payload"in a&&(this.log(`Loaded ${l.type} sn: ${l.sn} of ${this.playlistLabel()} ${l.level}`),this.hls.trigger(Ee.FRAG_LOADED,a)),this._handleFragmentLoadComplete(a)}).catch(a=>{this.state===an.STOPPED||this.state===an.ERROR||(this.warn(`Frag error: ${a?.message||a}`),this.resetFragmentLoading(t))})}clearTrackerIfNeeded(t){var n;const{fragmentTracker:r}=this;if(r.getState(t)===ca.APPENDING){const a=t.type,s=this.getFwdBufferInfo(this.mediaBuffer,a),l=Math.max(t.duration,s?s.len:this.config.maxBufferLength),c=this.backtrackFragment;((c?t.sn-c.sn:0)===1||this.reduceMaxBufferLength(l,t.duration))&&r.removeFragment(t)}else((n=this.mediaBuffer)==null?void 0:n.buffered.length)===0?r.removeAllFragments():r.hasParts(t.type)&&(r.detectPartialFragments({frag:t,part:null,stats:t.stats,id:t.type}),r.getState(t)===ca.PARTIAL&&r.removeFragment(t))}checkLiveUpdate(t){if(t.updated&&!t.live){const n=t.fragments[t.fragments.length-1];this.fragmentTracker.detectPartialFragments({frag:n,part:null,stats:n.stats,id:n.type})}t.fragments[0]||(t.deltaUpdateFailed=!0)}waitForLive(t){const n=t.details;return n?.live&&n.type!=="EVENT"&&(this.levelLastLoaded!==t||n.expired)}flushMainBuffer(t,n,r=null){if(!(t-n))return;const o={startOffset:t,endOffset:n,type:r};this.hls.trigger(Ee.BUFFER_FLUSHING,o)}_loadInitSegment(t,n){this._doFragLoad(t,n).then(r=>{const o=r?.frag;if(!o||this.fragContextChanged(o)||!this.levels)throw new Error("init load aborted");return r}).then(r=>{const{hls:o}=this,{frag:a,payload:s}=r,l=a.decryptdata;if(s&&s.byteLength>0&&l!=null&&l.key&&l.iv&&yy(l.method)){const c=self.performance.now();return this.decrypter.decrypt(new Uint8Array(s),l.key.buffer,l.iv.buffer,TG(l.method)).catch(d=>{throw o.trigger(Ee.ERROR,{type:dr.MEDIA_ERROR,details:Ht.FRAG_DECRYPT_ERROR,fatal:!1,error:d,reason:d.message,frag:a}),d}).then(d=>{const h=self.performance.now();return o.trigger(Ee.FRAG_DECRYPTED,{frag:a,payload:d,stats:{tstart:c,tdecrypt:h}}),r.payload=d,this.completeInitSegmentLoad(r)})}return this.completeInitSegmentLoad(r)}).catch(r=>{this.state===an.STOPPED||this.state===an.ERROR||(this.warn(r),this.resetFragmentLoading(t))})}completeInitSegmentLoad(t){const{levels:n}=this;if(!n)throw new Error("init load aborted, missing levels");const r=t.frag.stats;this.state!==an.STOPPED&&(this.state=an.IDLE),t.frag.data=new Uint8Array(t.payload),r.parsing.start=r.buffering.start=self.performance.now(),r.parsing.end=r.buffering.end=self.performance.now(),this.tick()}unhandledEncryptionError(t,n){var r,o;const a=t.tracks;if(a&&!n.encrypted&&((r=a.audio)!=null&&r.encrypted||(o=a.video)!=null&&o.encrypted)&&(!this.config.emeEnabled||!this.keyLoader.emeController)){const s=this.media,l=new Error(`Encrypted track with no key in ${this.fragInfo(n)} (media ${s?"attached mediaKeys: "+s.mediaKeys:"detached"})`);return this.warn(l.message),!s||s.mediaKeys?!1:(this.hls.trigger(Ee.ERROR,{type:dr.KEY_SYSTEM_ERROR,details:Ht.KEY_SYSTEM_NO_KEYS,fatal:!1,error:l,frag:n}),this.resetTransmuxer(),!0)}return!1}fragContextChanged(t){const{fragCurrent:n}=this;return!t||!n||t.sn!==n.sn||t.level!==n.level}fragBufferedComplete(t,n){const r=this.mediaBuffer?this.mediaBuffer:this.media;if(this.log(`Buffered ${t.type} sn: ${t.sn}${n?" part: "+n.index:""} of ${this.fragInfo(t,!1,n)} > buffer:${r?ECt.toString(Vr.getBuffered(r)):"(detached)"})`),Ks(t)){var o;if(t.type!==nr.SUBTITLE){const s=t.elementaryStreams;if(!Object.keys(s).some(l=>!!s[l])){this.state=an.IDLE;return}}const a=(o=this.levels)==null?void 0:o[t.level];a!=null&&a.fragmentError&&(this.log(`Resetting level fragment error count of ${a.fragmentError} on frag buffered`),a.fragmentError=0)}this.state=an.IDLE}_handleFragmentLoadComplete(t){const{transmuxer:n}=this;if(!n)return;const{frag:r,part:o,partsLoaded:a}=t,s=!a||a.length===0||a.some(c=>!c),l=new EG(r.level,r.sn,r.stats.chunkCount+1,0,o?o.index:-1,!s);n.flush(l)}_handleFragmentLoadProgress(t){}_doFragLoad(t,n,r=null,o){var a;this.fragCurrent=t;const s=n.details;if(!this.levels||!s)throw new Error(`frag load aborted, missing level${s?"":" detail"}s`);let l=null;if(t.encrypted&&!((a=t.decryptdata)!=null&&a.key)){if(this.log(`Loading key for ${t.sn} of [${s.startSN}-${s.endSN}], ${this.playlistLabel()} ${t.level}`),this.state=an.KEY_LOADING,this.fragCurrent=t,l=this.keyLoader.load(t).then(v=>{if(!this.fragContextChanged(v.frag))return this.hls.trigger(Ee.KEY_LOADED,v),this.state===an.KEY_LOADING&&(this.state=an.IDLE),v}),this.hls.trigger(Ee.KEY_LOADING,{frag:t}),this.fragCurrent===null)return this.log("context changed in KEY_LOADING"),Promise.resolve(null)}else t.encrypted||(l=this.keyLoader.loadClear(t,s.encryptedFragments,this.startFragRequested),l&&this.log("[eme] blocking frag load until media-keys acquired"));const c=this.fragPrevious;if(Ks(t)&&(!c||t.sn!==c.sn)){const v=this.shouldLoadParts(n.details,t.end);v!==this.loadingParts&&(this.log(`LL-Part loading ${v?"ON":"OFF"} loading sn ${c?.sn}->${t.sn}`),this.loadingParts=v)}if(r=Math.max(t.start,r||0),this.loadingParts&&Ks(t)){const v=s.partList;if(v&&o){r>s.fragmentEnd&&s.fragmentHint&&(t=s.fragmentHint);const g=this.getNextPart(v,t,r);if(g>-1){const y=v[g];t=this.fragCurrent=y.fragment,this.log(`Loading ${t.type} sn: ${t.sn} part: ${y.index} (${g}/${v.length-1}) of ${this.fragInfo(t,!1,y)}) cc: ${t.cc} [${s.startSN}-${s.endSN}], target: ${parseFloat(r.toFixed(3))}`),this.nextLoadPosition=y.start+y.duration,this.state=an.FRAG_LOADING;let S;return l?S=l.then(k=>!k||this.fragContextChanged(k.frag)?null:this.doFragPartsLoad(t,y,n,o)).catch(k=>this.handleFragLoadError(k)):S=this.doFragPartsLoad(t,y,n,o).catch(k=>this.handleFragLoadError(k)),this.hls.trigger(Ee.FRAG_LOADING,{frag:t,part:y,targetBufferTime:r}),this.fragCurrent===null?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING parts")):S}else if(!t.url||this.loadedEndOfParts(v,r))return Promise.resolve(null)}}if(Ks(t)&&this.loadingParts){var d;this.log(`LL-Part loading OFF after next part miss @${r.toFixed(2)} Check buffer at sn: ${t.sn} loaded parts: ${(d=s.partList)==null?void 0:d.filter(v=>v.loaded).map(v=>`[${v.start}-${v.end}]`)}`),this.loadingParts=!1}else if(!t.url)return Promise.resolve(null);this.log(`Loading ${t.type} sn: ${t.sn} of ${this.fragInfo(t,!1)}) cc: ${t.cc} ${"["+s.startSN+"-"+s.endSN+"]"}, target: ${parseFloat(r.toFixed(3))}`),jn(t.sn)&&!this.bitrateTest&&(this.nextLoadPosition=t.start+t.duration),this.state=an.FRAG_LOADING;const h=this.config.progressive;let p;return h&&l?p=l.then(v=>!v||this.fragContextChanged(v.frag)?null:this.fragmentLoader.load(t,o)).catch(v=>this.handleFragLoadError(v)):p=Promise.all([this.fragmentLoader.load(t,h?o:void 0),l]).then(([v])=>(!h&&o&&o(v),v)).catch(v=>this.handleFragLoadError(v)),this.hls.trigger(Ee.FRAG_LOADING,{frag:t,targetBufferTime:r}),this.fragCurrent===null?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING")):p}doFragPartsLoad(t,n,r,o){return new Promise((a,s)=>{var l;const c=[],d=(l=r.details)==null?void 0:l.partList,h=p=>{this.fragmentLoader.loadPart(t,p,o).then(v=>{c[p.index]=v;const g=v.part;this.hls.trigger(Ee.FRAG_LOADED,v);const y=gue(r.details,t.sn,p.index+1)||o2e(d,t.sn,p.index+1);if(y)h(y);else return a({frag:t,part:g,partsLoaded:c})}).catch(s)};h(n)})}handleFragLoadError(t){if("data"in t){const n=t.data;n.frag&&n.details===Ht.INTERNAL_ABORTED?this.handleFragLoadAborted(n.frag,n.part):n.frag&&n.type===dr.KEY_SYSTEM_ERROR?(n.frag.abortRequests(),this.resetStartWhenNotLoaded(),this.resetFragmentLoading(n.frag)):this.hls.trigger(Ee.ERROR,n)}else this.hls.trigger(Ee.ERROR,{type:dr.OTHER_ERROR,details:Ht.INTERNAL_EXCEPTION,err:t,error:t,fatal:!0});return null}_handleTransmuxerFlush(t){const n=this.getCurrentContext(t);if(!n||this.state!==an.PARSING){!this.fragCurrent&&this.state!==an.STOPPED&&this.state!==an.ERROR&&(this.state=an.IDLE);return}const{frag:r,part:o,level:a}=n,s=self.performance.now();r.stats.parsing.end=s,o&&(o.stats.parsing.end=s);const l=this.getLevelDetails(),d=l&&r.sn>l.endSN||this.shouldLoadParts(l,r.end);d!==this.loadingParts&&(this.log(`LL-Part loading ${d?"ON":"OFF"} after parsing segment ending @${r.end.toFixed(2)}`),this.loadingParts=d),this.updateLevelTiming(r,o,a,t.partial)}shouldLoadParts(t,n){if(this.config.lowLatencyMode){if(!t)return this.loadingParts;if(t.partList){var r;const a=t.partList[0];if(a.fragment.type===nr.SUBTITLE)return!1;const s=a.end+(((r=t.fragmentHint)==null?void 0:r.duration)||0);if(n>=s){var o;if((this.hls.hasEnoughToStart?((o=this.media)==null?void 0:o.currentTime)||this.lastCurrentTime:this.getLoadPosition())>a.start-a.fragment.duration)return!0}}}return!1}getCurrentContext(t){const{levels:n,fragCurrent:r}=this,{level:o,sn:a,part:s}=t;if(!(n!=null&&n[o]))return this.warn(`Levels object was unset while buffering fragment ${a} of ${this.playlistLabel()} ${o}. The current chunk will not be buffered.`),null;const l=n[o],c=l.details,d=s>-1?gue(c,a,s):null,h=d?d.fragment:i2e(c,a,r);return h?(r&&r!==h&&(h.stats=r.stats),{frag:h,part:d,level:l}):null}bufferFragmentData(t,n,r,o,a){if(this.state!==an.PARSING)return;const{data1:s,data2:l}=t;let c=s;if(l&&(c=Qc(s,l)),!c.length)return;const d=this.initPTS[n.cc],h=d?-d.baseTime/d.timescale:void 0,p={type:t.type,frag:n,part:r,chunkMeta:o,offset:h,parent:n.type,data:c};if(this.hls.trigger(Ee.BUFFER_APPENDING,p),t.dropped&&t.independent&&!r){if(a)return;this.flushBufferGap(n)}}flushBufferGap(t){const n=this.media;if(!n)return;if(!Vr.isBuffered(n,n.currentTime)){this.flushMainBuffer(0,t.start);return}const r=n.currentTime,o=Vr.bufferInfo(n,r,0),a=t.duration,s=Math.min(this.config.maxFragLookUpTolerance*2,a*.25),l=Math.max(Math.min(t.start-s,o.end-s),r+s);t.start-l>s&&this.flushMainBuffer(l,t.start)}getFwdBufferInfo(t,n){var r;const o=this.getLoadPosition();if(!jn(o))return null;const s=this.lastCurrentTime>o||(r=this.media)!=null&&r.paused?0:this.config.maxBufferHole;return this.getFwdBufferInfoAtPos(t,o,n,s)}getFwdBufferInfoAtPos(t,n,r,o){const a=Vr.bufferInfo(t,n,o);if(a.len===0&&a.nextStart!==void 0){const s=this.fragmentTracker.getBufferedFrag(n,r);if(s&&(a.nextStart<=s.end||s.gap)){const l=Math.max(Math.min(a.nextStart,s.end)-n,o);return Vr.bufferInfo(t,n,l)}}return a}getMaxBufferLength(t){const{config:n}=this;let r;return t?r=Math.max(8*n.maxBufferSize/t,n.maxBufferLength):r=n.maxBufferLength,Math.min(r,n.maxMaxBufferLength)}reduceMaxBufferLength(t,n){const r=this.config,o=Math.max(Math.min(t-n,r.maxBufferLength),n),a=Math.max(t-n*3,r.maxMaxBufferLength/2,o);return a>=o?(r.maxMaxBufferLength=a,this.warn(`Reduce max buffer length to ${a}s`),!0):!1}getAppendedFrag(t,n=nr.MAIN){const r=this.fragmentTracker?this.fragmentTracker.getAppendedFrag(t,n):null;return r&&"fragment"in r?r.fragment:r}getNextFragment(t,n){const r=n.fragments,o=r.length;if(!o)return null;const{config:a}=this,s=r[0].start,l=a.lowLatencyMode&&!!n.partList;let c=null;if(n.live){const p=a.initialLiveManifestSize;if(o=s?v:g)||c.start:t;this.log(`Setting startPosition to ${y} to match start frag at live edge. mainStart: ${v} liveSyncPosition: ${g} frag.start: ${(d=c)==null?void 0:d.start}`),this.startPosition=this.nextLoadPosition=y}}else t<=s&&(c=r[0]);if(!c){const p=this.loadingParts?n.partEnd:n.fragmentEnd;c=this.getFragmentAtPosition(t,p,n)}let h=this.filterReplacedPrimary(c,n);if(!h&&c){const p=c.sn-n.startSN;h=this.filterReplacedPrimary(r[p+1]||null,n)}return this.mapToInitFragWhenRequired(h)}isLoopLoading(t,n){const r=this.fragmentTracker.getState(t);return(r===ca.OK||r===ca.PARTIAL&&!!t.gap)&&this.nextLoadPosition>n}getNextFragmentLoopLoading(t,n,r,o,a){let s=null;if(t.gap&&(s=this.getNextFragment(this.nextLoadPosition,n),s&&!s.gap&&r.nextStart)){const l=this.getFwdBufferInfoAtPos(this.mediaBuffer?this.mediaBuffer:this.media,r.nextStart,o,0);if(l!==null&&r.len+l.len>=a){const c=s.sn;return this.loopSn!==c&&(this.log(`buffer full after gaps in "${o}" playlist starting at sn: ${c}`),this.loopSn=c),null}}return this.loopSn=void 0,s}get primaryPrefetch(){if(_ue(this.config)){var t;if((t=this.hls.interstitialsManager)==null||(t=t.playingItem)==null?void 0:t.event)return!0}return!1}filterReplacedPrimary(t,n){if(!t)return t;if(_ue(this.config)&&t.type!==nr.SUBTITLE){const r=this.hls.interstitialsManager,o=r?.bufferingItem;if(o){const s=o.event;if(s){if(s.appendInPlace||Math.abs(t.start-o.start)>1||o.start===0)return null}else if(t.end<=o.start&&n?.live===!1||t.start>o.end&&o.nextEvent&&(o.nextEvent.appendInPlace||t.start-o.end>1))return null}const a=r?.playerQueue;if(a)for(let s=a.length;s--;){const l=a[s].interstitial;if(l.appendInPlace&&t.start>=l.startTime&&t.end<=l.resumeTime)return null}}return t}mapToInitFragWhenRequired(t){return t!=null&&t.initSegment&&!t.initSegment.data&&!this.bitrateTest?t.initSegment:t}getNextPart(t,n,r){let o=-1,a=!1,s=!0;for(let l=0,c=t.length;l-1&&rr.start)return!0}return!1}getInitialLiveFragment(t){const n=t.fragments,r=this.fragPrevious;let o=null;if(r){if(t.hasProgramDateTime&&(this.log(`Live playlist, switching playlist, load frag with same PDT: ${r.programDateTime}`),o=zxt(n,r.endProgramDateTime,this.config.maxFragLookUpTolerance)),!o){const a=r.sn+1;if(a>=t.startSN&&a<=t.endSN){const s=n[a-t.startSN];r.cc===s.cc&&(o=s,this.log(`Live playlist, switching playlist, load frag with next SN: ${o.sn}`))}o||(o=H3e(t,r.cc,r.end),o&&this.log(`Live playlist, switching playlist, load frag with same CC: ${o.sn}`))}}else{const a=this.hls.liveSyncPosition;a!==null&&(o=this.getFragmentAtPosition(a,this.bitrateTest?t.fragmentEnd:t.edge,t))}return o}getFragmentAtPosition(t,n,r){const{config:o}=this;let{fragPrevious:a}=this,{fragments:s,endSN:l}=r;const{fragmentHint:c}=r,{maxFragLookUpTolerance:d}=o,h=r.partList,p=!!(this.loadingParts&&h!=null&&h.length&&c);p&&!this.bitrateTest&&h[h.length-1].fragment.sn===c.sn&&(s=s.concat(c),l=c.sn);let v;if(tn-d||(g=this.media)!=null&&g.paused||!this.startFragRequested?0:d;v=jm(a,s,t,S)}else v=s[s.length-1];if(v){const y=v.sn-r.startSN,S=this.fragmentTracker.getState(v);if((S===ca.OK||S===ca.PARTIAL&&v.gap)&&(a=v),a&&v.sn===a.sn&&(!p||h[0].fragment.sn>v.sn||!r.live)&&v.level===a.level){const C=s[y+1];v.sn${t.startSN} fragments: ${o}`),c}return a}waitForCdnTuneIn(t){return t.live&&t.canBlockReload&&t.partTarget&&t.tuneInGoal>Math.max(t.partHoldBack,t.partTarget*3)}setStartPosition(t,n){let r=this.startPosition;r=0&&(r=this.nextLoadPosition),r}handleFragLoadAborted(t,n){this.transmuxer&&t.type===this.playlistType&&Ks(t)&&t.stats.aborted&&(this.log(`Fragment ${t.sn}${n?" part "+n.index:""} of ${this.playlistLabel()} ${t.level} was aborted`),this.resetFragmentLoading(t))}resetFragmentLoading(t){(!this.fragCurrent||!this.fragContextChanged(t)&&this.state!==an.FRAG_LOADING_WAITING_RETRY)&&(this.state=an.IDLE)}onFragmentOrKeyLoadError(t,n){var r;if(n.chunkMeta&&!n.frag){const C=this.getCurrentContext(n.chunkMeta);C&&(n.frag=C.frag)}const o=n.frag;if(!o||o.type!==t||!this.levels)return;if(this.fragContextChanged(o)){var a;this.warn(`Frag load error must match current frag to retry ${o.url} > ${(a=this.fragCurrent)==null?void 0:a.url}`);return}const s=n.details===Ht.FRAG_GAP;s&&this.fragmentTracker.fragBuffered(o,!0);const l=n.errorAction;if(!l){this.state=an.ERROR;return}const{action:c,flags:d,retryCount:h=0,retryConfig:p}=l,v=!!p,g=v&&c===Ba.RetryRequest,y=v&&!l.resolved&&d===ec.MoveAllAlternatesMatchingHost,S=(r=this.hls.latestLevelDetails)==null?void 0:r.live;if(!g&&y&&Ks(o)&&!o.endList&&S&&!G3e(n))this.resetFragmentErrors(t),this.treatAsGap(o),l.resolved=!0;else if((g||y)&&h=n||r&&!Fz(0))&&(r&&this.log("Connection restored (online)"),this.resetStartWhenNotLoaded(),this.state=an.IDLE)}reduceLengthAndFlushBuffer(t){if(this.state===an.PARSING||this.state===an.PARSED){const n=t.frag,r=t.parent,o=this.getFwdBufferInfo(this.mediaBuffer,r),a=o&&o.len>.5;a&&this.reduceMaxBufferLength(o.len,n?.duration||10);const s=!a;return s&&this.warn(`Buffer full error while media.currentTime (${this.getLoadPosition()}) is not buffered, flush ${r} buffer`),n&&(this.fragmentTracker.removeFragment(n),this.nextLoadPosition=n.start),this.resetLoadingState(),s}return!1}resetFragmentErrors(t){t===nr.AUDIO&&(this.fragCurrent=null),this.hls.hasEnoughToStart||(this.startFragRequested=!1),this.state!==an.STOPPED&&(this.state=an.IDLE)}afterBufferFlushed(t,n,r){if(!t)return;const o=Vr.getBuffered(t);this.fragmentTracker.detectEvictedFragments(n,o,r),this.state===an.ENDED&&this.resetLoadingState()}resetLoadingState(){this.log("Reset loading state"),this.fragCurrent=null,this.fragPrevious=null,this.state!==an.STOPPED&&(this.state=an.IDLE)}resetStartWhenNotLoaded(){if(!this.hls.hasEnoughToStart){this.startFragRequested=!1;const t=this.levelLastLoaded,n=t?t.details:null;n!=null&&n.live?(this.log("resetting startPosition for live start"),this.startPosition=-1,this.setStartPosition(n,n.fragmentStart),this.resetLoadingState()):this.nextLoadPosition=this.startPosition}}resetWhenMissingContext(t){this.log(`Loading context changed while buffering sn ${t.sn} of ${this.playlistLabel()} ${t.level===-1?"":t.level}. This chunk will not be buffered.`),this.removeUnbufferedFrags(),this.resetStartWhenNotLoaded(),this.resetLoadingState()}removeUnbufferedFrags(t=0){this.fragmentTracker.removeFragmentsInRange(t,1/0,this.playlistType,!1,!0)}updateLevelTiming(t,n,r,o){const a=r.details;if(!a){this.warn("level.details undefined");return}if(!Object.keys(t.elementaryStreams).reduce((c,d)=>{const h=t.elementaryStreams[d];if(h){const p=h.endPTS-h.startPTS;if(p<=0)return this.warn(`Could not parse fragment ${t.sn} ${d} duration reliably (${p})`),c||!1;const v=o?0:t2e(a,t,h.startPTS,h.endPTS,h.startDTS,h.endDTS,this);return this.hls.trigger(Ee.LEVEL_PTS_UPDATED,{details:a,level:r,drift:v,type:d,frag:t,start:h.startPTS,end:h.endPTS}),!0}return c},!1)){var l;if(r.fragmentError===0&&this.treatAsGap(t,r),((l=this.transmuxer)==null?void 0:l.error)===null){const c=new Error(`Found no media in fragment ${t.sn} of ${this.playlistLabel()} ${t.level} resetting transmuxer to fallback to playlist timing`);if(this.warn(c.message),this.hls.trigger(Ee.ERROR,{type:dr.MEDIA_ERROR,details:Ht.FRAG_PARSING_ERROR,fatal:!1,error:c,frag:t,reason:`Found no media in msn ${t.sn} of ${this.playlistLabel()} "${r.url}"`}),!this.hls)return;this.resetTransmuxer()}}this.state=an.PARSED,this.log(`Parsed ${t.type} sn: ${t.sn}${n?" part: "+n.index:""} of ${this.fragInfo(t,!1,n)})`),this.hls.trigger(Ee.FRAG_PARSED,{frag:t,part:n})}playlistLabel(){return this.playlistType===nr.MAIN?"level":"track"}fragInfo(t,n=!0,r){var o,a;return`${this.playlistLabel()} ${t.level} (${r?"part":"frag"}:[${((o=n&&!r?t.startPTS:(r||t).start)!=null?o:NaN).toFixed(3)}-${((a=n&&!r?t.endPTS:(r||t).end)!=null?a:NaN).toFixed(3)}]${r&&t.type==="main"?"INDEPENDENT="+(r.independent?"YES":"NO"):""}`}treatAsGap(t,n){n&&n.fragmentError++,t.gap=!0,this.fragmentTracker.removeFragment(t),this.fragmentTracker.fragBuffered(t,!0)}resetTransmuxer(){var t;(t=this.transmuxer)==null||t.reset()}recoverWorkerError(t){t.event==="demuxerWorker"&&(this.fragmentTracker.removeAllFragments(),this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null),this.resetStartWhenNotLoaded(),this.resetLoadingState())}set state(t){const n=this._state;n!==t&&(this._state=t,this.log(`${n}->${t}`))}get state(){return this._state}}function _ue(e){return!!e.interstitialsController&&e.enableInterstitialPlayback!==!1}class u2e{constructor(){this.chunks=[],this.dataLength=0}push(t){this.chunks.push(t),this.dataLength+=t.length}flush(){const{chunks:t,dataLength:n}=this;let r;if(t.length)t.length===1?r=t[0]:r=TCt(t,n);else return new Uint8Array(0);return this.reset(),r}reset(){this.chunks.length=0,this.dataLength=0}}function TCt(e,t){const n=new Uint8Array(t);let r=0;for(let o=0;o0)return e.subarray(n,n+r)}function MCt(e,t,n,r){const o=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],a=t[n+2],s=a>>2&15;if(s>12){const g=new Error(`invalid ADTS sampling index:${s}`);e.emit(Ee.ERROR,Ee.ERROR,{type:dr.MEDIA_ERROR,details:Ht.FRAG_PARSING_ERROR,fatal:!0,error:g,reason:g.message});return}const l=(a>>6&3)+1,c=t[n+3]>>6&3|(a&1)<<2,d="mp4a.40."+l,h=o[s];let p=s;(l===5||l===29)&&(p-=3);const v=[l<<3|(p&14)>>1,(p&1)<<7|c<<3];return po.log(`manifest codec:${r}, parsed codec:${d}, channels:${c}, rate:${h} (ADTS object type:${l} sampling index:${s})`),{config:v,samplerate:h,channelCount:c,codec:d,parsedCodec:d,manifestCodec:r}}function d2e(e,t){return e[t]===255&&(e[t+1]&246)===240}function f2e(e,t){return e[t+1]&1?7:9}function PG(e,t){return(e[t+3]&3)<<11|e[t+4]<<3|(e[t+5]&224)>>>5}function OCt(e,t){return t+5=e.length)return!1;const r=PG(e,t);if(r<=n)return!1;const o=t+r;return o===e.length||$T(e,o)}return!1}function h2e(e,t,n,r,o){if(!e.samplerate){const a=MCt(t,n,r,o);if(!a)return;bo(e,a)}}function p2e(e){return 1024*9e4/e}function NCt(e,t){const n=f2e(e,t);if(t+n<=e.length){const r=PG(e,t)-n;if(r>0)return{headerLength:n,frameLength:r}}}function v2e(e,t,n,r,o){const a=p2e(e.samplerate),s=r+o*a,l=NCt(t,n);let c;if(l){const{frameLength:p,headerLength:v}=l,g=v+p,y=Math.max(0,n+g-t.length);y?(c=new Uint8Array(g-v),c.set(t.subarray(n+v,t.length),0)):c=t.subarray(n+v,n+g);const S={unit:c,pts:s};return y||e.samples.push(S),{sample:S,length:g,missing:y}}const d=t.length-n;return c=new Uint8Array(d),c.set(t.subarray(n,t.length),0),{sample:{unit:c,pts:s},length:d,missing:-1}}function FCt(e,t){return DG(e,t)&&ZA(e,t+6)+10<=e.length-t}function jCt(e){return e instanceof ArrayBuffer?e:e.byteOffset==0&&e.byteLength==e.buffer.byteLength?e.buffer:new Uint8Array(e).buffer}function FF(e,t=0,n=1/0){return VCt(e,t,n,Uint8Array)}function VCt(e,t,n,r){const o=zCt(e);let a=1;"BYTES_PER_ELEMENT"in r&&(a=r.BYTES_PER_ELEMENT);const s=UCt(e)?e.byteOffset:0,l=(s+e.byteLength)/a,c=(s+t)/a,d=Math.floor(Math.max(0,Math.min(c,l))),h=Math.floor(Math.min(d+Math.max(n,0),l));return new r(o,d,h-d)}function zCt(e){return e instanceof ArrayBuffer?e:e.buffer}function UCt(e){return e&&e.buffer instanceof ArrayBuffer&&e.byteLength!==void 0&&e.byteOffset!==void 0}function HCt(e){const t={key:e.type,description:"",data:"",mimeType:null,pictureType:null},n=3;if(e.size<2)return;if(e.data[0]!==n){console.log("Ignore frame with unrecognized character encoding");return}const r=e.data.subarray(1).indexOf(0);if(r===-1)return;const o=cc(FF(e.data,1,r)),a=e.data[2+r],s=e.data.subarray(3+r).indexOf(0);if(s===-1)return;const l=cc(FF(e.data,3+r,s));let c;return o==="-->"?c=cc(FF(e.data,4+r+s)):c=jCt(e.data.subarray(4+r+s)),t.mimeType=o,t.pictureType=a,t.description=l,t.data=c,t}function WCt(e){if(e.size<2)return;const t=cc(e.data,!0),n=new Uint8Array(e.data.subarray(t.length+1));return{key:e.type,info:t,data:n.buffer}}function GCt(e){if(e.size<2)return;if(e.type==="TXXX"){let n=1;const r=cc(e.data.subarray(n),!0);n+=r.length+1;const o=cc(e.data.subarray(n));return{key:e.type,info:r,data:o}}const t=cc(e.data.subarray(1));return{key:e.type,info:"",data:t}}function KCt(e){if(e.type==="WXXX"){if(e.size<2)return;let n=1;const r=cc(e.data.subarray(n),!0);n+=r.length+1;const o=cc(e.data.subarray(n));return{key:e.type,info:r,data:o}}const t=cc(e.data);return{key:e.type,info:"",data:t}}function qCt(e){return e.type==="PRIV"?WCt(e):e.type[0]==="W"?KCt(e):e.type==="APIC"?HCt(e):GCt(e)}function YCt(e){const t=String.fromCharCode(e[0],e[1],e[2],e[3]),n=ZA(e,4),r=10;return{type:t,size:n,data:e.subarray(r,r+n)}}const bC=10,XCt=10;function m2e(e){let t=0;const n=[];for(;DG(e,t);){const r=ZA(e,t+6);e[t+5]>>6&1&&(t+=bC),t+=bC;const o=t+r;for(;t+XCt0&&l.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:r,type:ic.audioId3,duration:Number.POSITIVE_INFINITY});o{if(jn(e))return e*90;const r=n?n.baseTime*9e4/n.timescale:0;return t*9e4+r};let _C=null;const QCt=[32,64,96,128,160,192,224,256,288,320,352,384,416,448,32,48,56,64,80,96,112,128,160,192,224,256,320,384,32,40,48,56,64,80,96,112,128,160,192,224,256,320,32,48,56,64,80,96,112,128,144,160,176,192,224,256,8,16,24,32,40,48,56,64,80,96,112,128,144,160],ewt=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],twt=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],nwt=[0,1,1,4];function y2e(e,t,n,r,o){if(n+24>t.length)return;const a=b2e(t,n);if(a&&n+a.frameLength<=t.length){const s=a.samplesPerFrame*9e4/a.sampleRate,l=r+o*s,c={unit:t.subarray(n,n+a.frameLength),pts:l,dts:l};return e.config=[],e.channelCount=a.channelCount,e.samplerate=a.sampleRate,e.samples.push(c),{sample:c,length:a.frameLength,missing:0}}}function b2e(e,t){const n=e[t+1]>>3&3,r=e[t+1]>>1&3,o=e[t+2]>>4&15,a=e[t+2]>>2&3;if(n!==1&&o!==0&&o!==15&&a!==3){const s=e[t+2]>>1&1,l=e[t+3]>>6,c=n===3?3-r:r===3?3:4,d=QCt[c*14+o-1]*1e3,p=ewt[(n===3?0:n===2?1:2)*3+a],v=l===3?1:2,g=twt[n][r],y=nwt[r],S=g*8*y,k=Math.floor(g*d/p+s)*y;if(_C===null){const E=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);_C=E?parseInt(E[1]):0}return!!_C&&_C<=87&&r===2&&d>=224e3&&l===0&&(e[t+3]=e[t+3]|128),{sampleRate:p,channelCount:v,frameLength:k,samplesPerFrame:S}}}function OG(e,t){return e[t]===255&&(e[t+1]&224)===224&&(e[t+1]&6)!==0}function _2e(e,t){return t+1{let n=0,r=5;t+=r;const o=new Uint32Array(1),a=new Uint32Array(1),s=new Uint8Array(1);for(;r>0;){s[0]=e[t];const l=Math.min(r,8),c=8-l;a[0]=4278190080>>>24+c<>c,n=n?n<t.length||t[n]!==11||t[n+1]!==119)return-1;const a=t[n+4]>>6;if(a>=3)return-1;const l=[48e3,44100,32e3][a],c=t[n+4]&63,h=[64,69,96,64,70,96,80,87,120,80,88,120,96,104,144,96,105,144,112,121,168,112,122,168,128,139,192,128,140,192,160,174,240,160,175,240,192,208,288,192,209,288,224,243,336,224,244,336,256,278,384,256,279,384,320,348,480,320,349,480,384,417,576,384,418,576,448,487,672,448,488,672,512,557,768,512,558,768,640,696,960,640,697,960,768,835,1152,768,836,1152,896,975,1344,896,976,1344,1024,1114,1536,1024,1115,1536,1152,1253,1728,1152,1254,1728,1280,1393,1920,1280,1394,1920][c*3+a]*2;if(n+h>t.length)return-1;const p=t[n+6]>>5;let v=0;p===2?v+=2:(p&1&&p!==1&&(v+=2),p&4&&(v+=2));const g=(t[n+6]<<8|t[n+7])>>12-v&1,S=[2,1,2,3,3,4,4,5][p]+g,k=t[n+5]>>3,C=t[n+5]&7,x=new Uint8Array([a<<6|k<<1|C>>2,(C&3)<<6|p<<3|g<<2|c>>4,c<<4&224]),E=1536/l*9e4,_=r+o*E,T=t.subarray(n,n+h);return e.config=x,e.channelCount=S,e.samplerate=l,e.samples.push({unit:T,pts:_}),h}class swt extends MG{resetInitSegment(t,n,r,o){super.resetInitSegment(t,n,r,o),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"mp3",samples:[],manifestCodec:n,duration:o,inputTimeScale:9e4,dropped:0}}static probe(t){if(!t)return!1;const n=E_(t,0);let r=n?.length||0;if(n&&t[r]===11&&t[r+1]===119&&RG(n)!==void 0&&k2e(t,r)<=16)return!1;for(let o=t.length;r{const s=pxt(a);if(awt.test(s.schemeIdUri)){const l=kue(s,n);let c=s.eventDuration===4294967295?Number.POSITIVE_INFINITY:s.eventDuration/s.timeScale;c<=.001&&(c=Number.POSITIVE_INFINITY);const d=s.payload;r.samples.push({data:d,len:d.byteLength,dts:l,pts:l,type:ic.emsg,duration:c})}else if(this.config.enableEmsgKLVMetadata&&s.schemeIdUri.startsWith("urn:misb:KLV:bin:1910.1")){const l=kue(s,n);r.samples.push({data:s.payload,len:s.payload.byteLength,dts:l,pts:l,type:ic.misbklv,duration:Number.POSITIVE_INFINITY})}})}return r}demuxSampleAes(t,n,r){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))}destroy(){this.config=null,this.remainderData=null,this.videoTrack=this.audioTrack=this.id3Track=this.txtTrack=void 0}}function kue(e,t){return jn(e.presentationTime)?e.presentationTime/e.timeScale:t+e.presentationTimeDelta/e.timeScale}class uwt{constructor(t,n,r){this.keyData=void 0,this.decrypter=void 0,this.keyData=r,this.decrypter=new wG(n,{removePKCS7Padding:!1})}decryptBuffer(t){return this.decrypter.decrypt(t,this.keyData.key.buffer,this.keyData.iv.buffer,R0.cbc)}decryptAacSample(t,n,r){const o=t[n].unit;if(o.length<=16)return;const a=o.subarray(16,o.length-o.length%16),s=a.buffer.slice(a.byteOffset,a.byteOffset+a.length);this.decryptBuffer(s).then(l=>{const c=new Uint8Array(l);o.set(c,16),this.decrypter.isSync()||this.decryptAacSamples(t,n+1,r)}).catch(r)}decryptAacSamples(t,n,r){for(;;n++){if(n>=t.length){r();return}if(!(t[n].unit.length<32)&&(this.decryptAacSample(t,n,r),!this.decrypter.isSync()))return}}getAvcEncryptedData(t){const n=Math.floor((t.length-48)/160)*16+16,r=new Int8Array(n);let o=0;for(let a=32;a{a.data=this.getAvcDecryptedUnit(s,c),this.decrypter.isSync()||this.decryptAvcSamples(t,n,r+1,o)}).catch(o)}decryptAvcSamples(t,n,r,o){if(t instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;n++,r=0){if(n>=t.length){o();return}const a=t[n].units;for(;!(r>=a.length);r++){const s=a[r];if(!(s.data.length<=48||s.type!==1&&s.type!==5)&&(this.decryptAvcSample(t,n,r,o,s),!this.decrypter.isSync()))return}}}}class C2e{constructor(){this.VideoSample=null}createVideoSample(t,n,r){return{key:t,frame:!1,pts:n,dts:r,units:[],length:0}}getLastNalUnit(t){var n;let r=this.VideoSample,o;if((!r||r.units.length===0)&&(r=t[t.length-1]),(n=r)!=null&&n.units){const a=r.units;o=a[a.length-1]}return o}pushAccessUnit(t,n){if(t.units.length&&t.frame){if(t.pts===void 0){const r=n.samples,o=r.length;if(o){const a=r[o-1];t.pts=a.pts,t.dts=a.dts}else{n.dropped++;return}}n.samples.push(t)}}parseNALu(t,n,r){const o=n.byteLength;let a=t.naluState||0;const s=a,l=[];let c=0,d,h,p,v=-1,g=0;for(a===-1&&(v=0,g=this.getNALuType(n,0),a=0,c=1);c=0){const y={data:n.subarray(v,h),type:g};l.push(y)}else{const y=this.getLastNalUnit(t.samples);y&&(s&&c<=4-s&&y.state&&(y.data=y.data.subarray(0,y.data.byteLength-s)),h>0&&(y.data=Qc(y.data,n.subarray(0,h)),y.state=0))}c=0&&a>=0){const y={data:n.subarray(v,o),type:g,state:a};l.push(y)}if(l.length===0){const y=this.getLastNalUnit(t.samples);y&&(y.data=Qc(y.data,n))}return t.naluState=a,l}}class Lb{constructor(t){this.data=void 0,this.bytesAvailable=void 0,this.word=void 0,this.bitsAvailable=void 0,this.data=t,this.bytesAvailable=t.byteLength,this.word=0,this.bitsAvailable=0}loadWord(){const t=this.data,n=this.bytesAvailable,r=t.byteLength-n,o=new Uint8Array(4),a=Math.min(4,n);if(a===0)throw new Error("no bytes available");o.set(t.subarray(r,r+a)),this.word=new DataView(o.buffer).getUint32(0),this.bitsAvailable=a*8,this.bytesAvailable-=a}skipBits(t){let n;t=Math.min(t,this.bytesAvailable*8+this.bitsAvailable),this.bitsAvailable>t?(this.word<<=t,this.bitsAvailable-=t):(t-=this.bitsAvailable,n=t>>3,t-=n<<3,this.bytesAvailable-=n,this.loadWord(),this.word<<=t,this.bitsAvailable-=t)}readBits(t){let n=Math.min(this.bitsAvailable,t);const r=this.word>>>32-n;if(t>32&&po.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=n,this.bitsAvailable>0)this.word<<=n;else if(this.bytesAvailable>0)this.loadWord();else throw new Error("no bits available");return n=t-n,n>0&&this.bitsAvailable?r<>>t)!==0)return this.word<<=t,this.bitsAvailable-=t,t;return this.loadWord(),t+this.skipLZ()}skipUEG(){this.skipBits(1+this.skipLZ())}skipEG(){this.skipBits(1+this.skipLZ())}readUEG(){const t=this.skipLZ();return this.readBits(t+1)-1}readEG(){const t=this.readUEG();return 1&t?1+t>>>1:-1*(t>>>1)}readBoolean(){return this.readBits(1)===1}readUByte(){return this.readBits(8)}readUShort(){return this.readBits(16)}readUInt(){return this.readBits(32)}}class cwt extends C2e{parsePES(t,n,r,o){const a=this.parseNALu(t,r.data,o);let s=this.VideoSample,l,c=!1;r.data=null,s&&a.length&&!t.audFound&&(this.pushAccessUnit(s,t),s=this.VideoSample=this.createVideoSample(!1,r.pts,r.dts)),a.forEach(d=>{var h,p;switch(d.type){case 1:{let S=!1;l=!0;const k=d.data;if(c&&k.length>4){const C=this.readSliceType(k);(C===2||C===4||C===7||C===9)&&(S=!0)}if(S){var v;(v=s)!=null&&v.frame&&!s.key&&(this.pushAccessUnit(s,t),s=this.VideoSample=null)}s||(s=this.VideoSample=this.createVideoSample(!0,r.pts,r.dts)),s.frame=!0,s.key=S;break}case 5:l=!0,(h=s)!=null&&h.frame&&!s.key&&(this.pushAccessUnit(s,t),s=this.VideoSample=null),s||(s=this.VideoSample=this.createVideoSample(!0,r.pts,r.dts)),s.key=!0,s.frame=!0;break;case 6:{l=!0,SG(d.data,1,r.pts,n.samples);break}case 7:{var g,y;l=!0,c=!0;const S=d.data,k=this.readSPS(S);if(!t.sps||t.width!==k.width||t.height!==k.height||((g=t.pixelRatio)==null?void 0:g[0])!==k.pixelRatio[0]||((y=t.pixelRatio)==null?void 0:y[1])!==k.pixelRatio[1]){t.width=k.width,t.height=k.height,t.pixelRatio=k.pixelRatio,t.sps=[S];const C=S.subarray(1,4);let x="avc1.";for(let E=0;E<3;E++){let _=C[E].toString(16);_.length<2&&(_="0"+_),x+=_}t.codec=x}break}case 8:l=!0,t.pps=[d.data];break;case 9:l=!0,t.audFound=!0,(p=s)!=null&&p.frame&&(this.pushAccessUnit(s,t),s=null),s||(s=this.VideoSample=this.createVideoSample(!1,r.pts,r.dts));break;case 12:l=!0;break;default:l=!1;break}s&&l&&s.units.push(d)}),o&&s&&(this.pushAccessUnit(s,t),this.VideoSample=null)}getNALuType(t,n){return t[n]&31}readSliceType(t){const n=new Lb(t);return n.readUByte(),n.readUEG(),n.readUEG()}skipScalingList(t,n){let r=8,o=8,a;for(let s=0;s{var h,p;switch(d.type){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:s||(s=this.VideoSample=this.createVideoSample(!1,r.pts,r.dts)),s.frame=!0,l=!0;break;case 16:case 17:case 18:case 21:if(l=!0,c){var v;(v=s)!=null&&v.frame&&!s.key&&(this.pushAccessUnit(s,t),s=this.VideoSample=null)}s||(s=this.VideoSample=this.createVideoSample(!0,r.pts,r.dts)),s.key=!0,s.frame=!0;break;case 19:case 20:l=!0,(h=s)!=null&&h.frame&&!s.key&&(this.pushAccessUnit(s,t),s=this.VideoSample=null),s||(s=this.VideoSample=this.createVideoSample(!0,r.pts,r.dts)),s.key=!0,s.frame=!0;break;case 39:l=!0,SG(d.data,2,r.pts,n.samples);break;case 32:l=!0,t.vps||(typeof t.params!="object"&&(t.params={}),t.params=bo(t.params,this.readVPS(d.data)),this.initVPS=d.data),t.vps=[d.data];break;case 33:if(l=!0,c=!0,t.vps!==void 0&&t.vps[0]!==this.initVPS&&t.sps!==void 0&&!this.matchSPS(t.sps[0],d.data)&&(this.initVPS=t.vps[0],t.sps=t.pps=void 0),!t.sps){const g=this.readSPS(d.data);t.width=g.width,t.height=g.height,t.pixelRatio=g.pixelRatio,t.codec=g.codecString,t.sps=[],typeof t.params!="object"&&(t.params={});for(const y in g.params)t.params[y]=g.params[y]}this.pushParameterSet(t.sps,d.data,t.vps),s||(s=this.VideoSample=this.createVideoSample(!0,r.pts,r.dts)),s.key=!0;break;case 34:if(l=!0,typeof t.params=="object"){if(!t.pps){t.pps=[];const g=this.readPPS(d.data);for(const y in g)t.params[y]=g[y]}this.pushParameterSet(t.pps,d.data,t.vps)}break;case 35:l=!0,t.audFound=!0,(p=s)!=null&&p.frame&&(this.pushAccessUnit(s,t),s=null),s||(s=this.VideoSample=this.createVideoSample(!1,r.pts,r.dts));break;default:l=!1;break}s&&l&&s.units.push(d)}),o&&s&&(this.pushAccessUnit(s,t),this.VideoSample=null)}pushParameterSet(t,n,r){(r&&r[0]===this.initVPS||!r&&!t.length)&&t.push(n)}getNALuType(t,n){return(t[n]&126)>>>1}ebsp2rbsp(t){const n=new Uint8Array(t.byteLength);let r=0;for(let o=0;o=2&&t[o]===3&&t[o-1]===0&&t[o-2]===0||(n[r]=t[o],r++);return new Uint8Array(n.buffer,0,r)}pushAccessUnit(t,n){super.pushAccessUnit(t,n),this.initVPS&&(this.initVPS=null)}readVPS(t){const n=new Lb(t);n.readUByte(),n.readUByte(),n.readBits(4),n.skipBits(2),n.readBits(6);const r=n.readBits(3),o=n.readBoolean();return{numTemporalLayers:r+1,temporalIdNested:o}}readSPS(t){const n=new Lb(this.ebsp2rbsp(t));n.readUByte(),n.readUByte(),n.readBits(4);const r=n.readBits(3);n.readBoolean();const o=n.readBits(2),a=n.readBoolean(),s=n.readBits(5),l=n.readUByte(),c=n.readUByte(),d=n.readUByte(),h=n.readUByte(),p=n.readUByte(),v=n.readUByte(),g=n.readUByte(),y=n.readUByte(),S=n.readUByte(),k=n.readUByte(),C=n.readUByte(),x=[],E=[];for(let He=0;He0)for(let He=r;He<8;He++)n.readBits(2);for(let He=0;He1&&n.readEG();for(let Ct=0;Ct0&&St<16?(ne=Gt[St-1],ae=Tt[St-1]):St===255&&(ne=n.readBits(16),ae=n.readBits(16))}if(n.readBoolean()&&n.readBoolean(),n.readBoolean()&&(n.readBits(3),n.readBoolean(),n.readBoolean()&&(n.readUByte(),n.readUByte(),n.readUByte())),n.readBoolean()&&(n.readUEG(),n.readUEG()),n.readBoolean(),n.readBoolean(),n.readBoolean(),me=n.readBoolean(),me&&(n.skipUEG(),n.skipUEG(),n.skipUEG(),n.skipUEG()),n.readBoolean()&&(ke=n.readBits(32),Ne=n.readBits(32),n.readBoolean()&&n.readUEG(),n.readBoolean())){const Tt=n.readBoolean(),Mt=n.readBoolean();let sn=!1;(Tt||Mt)&&(sn=n.readBoolean(),sn&&(n.readUByte(),n.readBits(5),n.readBoolean(),n.readBits(5)),n.readBits(4),n.readBits(4),sn&&n.readBits(4),n.readBits(5),n.readBits(5),n.readBits(5));for(let ct=0;ct<=r;ct++){re=n.readBoolean();const Be=re||n.readBoolean();let Ae=!1;Be?n.readEG():Ae=n.readBoolean();const Re=Ae?1:n.readUEG()+1;if(Tt)for(let Xe=0;Xe>He&1)<<31-He)>>>0;let be=ge.toString(16);return s===1&&be==="2"&&(be="6"),{codecString:`hvc1.${Me}${s}.${be}.${a?"H":"L"}${C}.B0`,params:{general_tier_flag:a,general_profile_idc:s,general_profile_space:o,general_profile_compatibility_flags:[l,c,d,h],general_constraint_indicator_flags:[p,v,g,y,S,k],general_level_idc:C,bit_depth:F+8,bit_depth_luma_minus8:F,bit_depth_chroma_minus8:W,min_spatial_segmentation_idc:ee,chroma_format_idc:_,frame_rate:{fixed:re,fps:Ne/ke}},width:Ue,height:Qe,pixelRatio:[ne,ae]}}readPPS(t){const n=new Lb(this.ebsp2rbsp(t));n.readUByte(),n.readUByte(),n.skipUEG(),n.skipUEG(),n.skipBits(2),n.skipBits(3),n.skipBits(2),n.skipUEG(),n.skipUEG(),n.skipEG(),n.skipBits(2),n.readBoolean()&&n.skipUEG(),n.skipEG(),n.skipEG(),n.skipBits(4);const o=n.readBoolean(),a=n.readBoolean();let s=1;return a&&o?s=0:a?s=3:o&&(s=2),{parallelismType:s}}matchSPS(t,n){return String.fromCharCode.apply(null,t).substr(3)===String.fromCharCode.apply(null,n).substr(3)}}const ba=188;class Jp{constructor(t,n,r,o){this.logger=void 0,this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.sampleAes=null,this.pmtParsed=!1,this.audioCodec=void 0,this.videoCodec=void 0,this._pmtId=-1,this._videoTrack=void 0,this._audioTrack=void 0,this._id3Track=void 0,this._txtTrack=void 0,this.aacOverFlow=null,this.remainderData=null,this.videoParser=void 0,this.observer=t,this.config=n,this.typeSupported=r,this.logger=o,this.videoParser=null}static probe(t,n){const r=Jp.syncOffset(t);return r>0&&n.warn(`MPEG2-TS detected but first sync word found @ offset ${r}`),r!==-1}static syncOffset(t){const n=t.length;let r=Math.min(ba*5,n-ba)+1,o=0;for(;o1&&(s===0&&l>2||c+ba>r))return s}else{if(l)return-1;break}o++}return-1}static createTrack(t,n){return{container:t==="video"||t==="audio"?"video/mp2t":void 0,type:t,id:L3e[t],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0,duration:t==="audio"?n:void 0}}resetInitSegment(t,n,r,o){this.pmtParsed=!1,this._pmtId=-1,this._videoTrack=Jp.createTrack("video"),this._videoTrack.duration=o,this._audioTrack=Jp.createTrack("audio",o),this._id3Track=Jp.createTrack("id3"),this._txtTrack=Jp.createTrack("text"),this._audioTrack.segmentCodec="aac",this.videoParser=null,this.aacOverFlow=null,this.remainderData=null,this.audioCodec=n,this.videoCodec=r}resetTimeStamp(){}resetContiguity(){const{_audioTrack:t,_videoTrack:n,_id3Track:r}=this;t&&(t.pesData=null),n&&(n.pesData=null),r&&(r.pesData=null),this.aacOverFlow=null,this.remainderData=null}demux(t,n,r=!1,o=!1){r||(this.sampleAes=null);let a;const s=this._videoTrack,l=this._audioTrack,c=this._id3Track,d=this._txtTrack;let h=s.pid,p=s.pesData,v=l.pid,g=c.pid,y=l.pesData,S=c.pesData,k=null,C=this.pmtParsed,x=this._pmtId,E=t.length;if(this.remainderData&&(t=Qc(this.remainderData,t),E=t.length,this.remainderData=null),E>4;let B;if(L>1){if(B=P+5+t[P+4],B===P+ba)continue}else B=P+4;switch($){case h:M&&(p&&(a=E1(p,this.logger))&&(this.readyVideoParser(s.segmentCodec),this.videoParser!==null&&this.videoParser.parsePES(s,d,a,!1)),p={data:[],size:0}),p&&(p.data.push(t.subarray(B,P+ba)),p.size+=P+ba-B);break;case v:if(M){if(y&&(a=E1(y,this.logger)))switch(l.segmentCodec){case"aac":this.parseAACPES(l,a);break;case"mp3":this.parseMPEGPES(l,a);break;case"ac3":this.parseAC3PES(l,a);break}y={data:[],size:0}}y&&(y.data.push(t.subarray(B,P+ba)),y.size+=P+ba-B);break;case g:M&&(S&&(a=E1(S,this.logger))&&this.parseID3PES(c,a),S={data:[],size:0}),S&&(S.data.push(t.subarray(B,P+ba)),S.size+=P+ba-B);break;case 0:M&&(B+=t[B]+1),x=this._pmtId=fwt(t,B);break;case x:{M&&(B+=t[B]+1);const F=hwt(t,B,this.typeSupported,r,this.observer,this.logger);h=F.videoPid,h>0&&(s.pid=h,s.segmentCodec=F.segmentVideoCodec),v=F.audioPid,v>0&&(l.pid=v,l.segmentCodec=F.segmentAudioCodec),g=F.id3Pid,g>0&&(c.pid=g),k!==null&&!C&&(this.logger.warn(`MPEG-TS PMT found at ${P} after unknown PID '${k}'. Backtracking to sync byte @${_} to parse all TS packets.`),k=null,P=_-188),C=this.pmtParsed=!0;break}case 17:case 8191:break;default:k=$;break}}else T++;T>0&&Wz(this.observer,new Error(`Found ${T} TS packet/s that do not start with 0x47`),void 0,this.logger),s.pesData=p,l.pesData=y,c.pesData=S;const D={audioTrack:l,videoTrack:s,id3Track:c,textTrack:d};return o&&this.extractRemainingSamples(D),D}flush(){const{remainderData:t}=this;this.remainderData=null;let n;return t?n=this.demux(t,-1,!1,!0):n={videoTrack:this._videoTrack,audioTrack:this._audioTrack,id3Track:this._id3Track,textTrack:this._txtTrack},this.extractRemainingSamples(n),this.sampleAes?this.decrypt(n,this.sampleAes):n}extractRemainingSamples(t){const{audioTrack:n,videoTrack:r,id3Track:o,textTrack:a}=t,s=r.pesData,l=n.pesData,c=o.pesData;let d;if(s&&(d=E1(s,this.logger))?(this.readyVideoParser(r.segmentCodec),this.videoParser!==null&&(this.videoParser.parsePES(r,a,d,!0),r.pesData=null)):r.pesData=s,l&&(d=E1(l,this.logger))){switch(n.segmentCodec){case"aac":this.parseAACPES(n,d);break;case"mp3":this.parseMPEGPES(n,d);break;case"ac3":this.parseAC3PES(n,d);break}n.pesData=null}else l!=null&&l.size&&this.logger.log("last AAC PES packet truncated,might overlap between fragments"),n.pesData=l;c&&(d=E1(c,this.logger))?(this.parseID3PES(o,d),o.pesData=null):o.pesData=c}demuxSampleAes(t,n,r){const o=this.demux(t,r,!0,!this.config.progressive),a=this.sampleAes=new uwt(this.observer,this.config,n);return this.decrypt(o,a)}readyVideoParser(t){this.videoParser===null&&(t==="avc"?this.videoParser=new cwt:t==="hevc"&&(this.videoParser=new dwt))}decrypt(t,n){return new Promise(r=>{const{audioTrack:o,videoTrack:a}=t;o.samples&&o.segmentCodec==="aac"?n.decryptAacSamples(o.samples,0,()=>{a.samples?n.decryptAvcSamples(a.samples,0,0,()=>{r(t)}):r(t)}):a.samples&&n.decryptAvcSamples(a.samples,0,0,()=>{r(t)})})}destroy(){this.observer&&this.observer.removeAllListeners(),this.config=this.logger=this.observer=null,this.aacOverFlow=this.videoParser=this.remainderData=this.sampleAes=null,this._videoTrack=this._audioTrack=this._id3Track=this._txtTrack=void 0}parseAACPES(t,n){let r=0;const o=this.aacOverFlow;let a=n.data;if(o){this.aacOverFlow=null;const p=o.missing,v=o.sample.unit.byteLength;if(p===-1)a=Qc(o.sample.unit,a);else{const g=v-p;o.sample.unit.set(a.subarray(0,p),g),t.samples.push(o.sample),r=o.missing}}let s,l;for(s=r,l=a.length;s0;)l+=c}}parseID3PES(t,n){if(n.pts===void 0){this.logger.warn("[tsdemuxer]: ID3 PES unknown PTS");return}const r=bo({},n,{type:this._videoTrack?ic.emsg:ic.audioId3,duration:Number.POSITIVE_INFINITY});t.samples.push(r)}}function Hz(e,t){return((e[t+1]&31)<<8)+e[t+2]}function fwt(e,t){return(e[t+10]&31)<<8|e[t+11]}function hwt(e,t,n,r,o,a){const s={audioPid:-1,videoPid:-1,id3Pid:-1,segmentVideoCodec:"avc",segmentAudioCodec:"aac"},l=(e[t+1]&15)<<8|e[t+2],c=t+3+l-4,d=(e[t+10]&15)<<8|e[t+11];for(t+=12+d;t0){let v=t+5,g=p;for(;g>2;){switch(e[v]){case 106:n.ac3!==!0?a.log("AC-3 audio found, not supported in this browser for now"):(s.audioPid=h,s.segmentAudioCodec="ac3");break}const S=e[v+1]+2;v+=S,g-=S}}break;case 194:case 135:return Wz(o,new Error("Unsupported EC-3 in M2TS found"),void 0,a),s;case 36:s.videoPid===-1&&(s.videoPid=h,s.segmentVideoCodec="hevc",a.log("HEVC in M2TS found"));break}t+=p+5}return s}function Wz(e,t,n,r){r.warn(`parsing error: ${t.message}`),e.emit(Ee.ERROR,Ee.ERROR,{type:dr.MEDIA_ERROR,details:Ht.FRAG_PARSING_ERROR,fatal:!1,levelRetry:n,error:t,reason:t.message})}function jF(e,t){t.log(`${e} with AES-128-CBC encryption found in unencrypted stream`)}function E1(e,t){let n=0,r,o,a,s,l;const c=e.data;if(!e||e.size===0)return null;for(;c[0].length<19&&c.length>1;)c[0]=Qc(c[0],c[1]),c.splice(1,1);if(r=c[0],(r[0]<<16)+(r[1]<<8)+r[2]===1){if(o=(r[4]<<8)+r[5],o&&o>e.size-6)return null;const h=r[7];h&192&&(s=(r[9]&14)*536870912+(r[10]&255)*4194304+(r[11]&254)*16384+(r[12]&255)*128+(r[13]&254)/2,h&64?(l=(r[14]&14)*536870912+(r[15]&255)*4194304+(r[16]&254)*16384+(r[17]&255)*128+(r[18]&254)/2,s-l>60*9e4&&(t.warn(`${Math.round((s-l)/9e4)}s delta between PTS and DTS, align them`),s=l)):l=s),a=r[8];let p=a+9;if(e.size<=p)return null;e.size-=p;const v=new Uint8Array(e.size);for(let g=0,y=c.length;gS){p-=S;continue}else r=r.subarray(p),S-=p,p=0;v.set(r,n),n+=S}return o&&(o-=a+3),{data:v,pts:s,dts:l,len:o}}return null}class pwt{static getSilentFrame(t,n){switch(t){case"mp4a.40.2":if(n===1)return new Uint8Array([0,200,0,128,35,128]);if(n===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(n===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(n===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(n===5)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(n===6)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224]);break;default:if(n===1)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(n===2)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(n===3)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);break}}}const Bp=Math.pow(2,32)-1;class Ut{static init(){Ut.types={avc1:[],avcC:[],hvc1:[],hvcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],".mp3":[],dac3:[],"ac-3":[],mvex:[],mvhd:[],pasp:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[]};let t;for(t in Ut.types)Ut.types.hasOwnProperty(t)&&(Ut.types[t]=[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3)]);const n=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]),r=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]);Ut.HDLR_TYPES={video:n,audio:r};const o=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),a=new Uint8Array([0,0,0,0,0,0,0,0]);Ut.STTS=Ut.STSC=Ut.STCO=a,Ut.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),Ut.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),Ut.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),Ut.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);const s=new Uint8Array([105,115,111,109]),l=new Uint8Array([97,118,99,49]),c=new Uint8Array([0,0,0,1]);Ut.FTYP=Ut.box(Ut.types.ftyp,s,c,s,l),Ut.DINF=Ut.box(Ut.types.dinf,Ut.box(Ut.types.dref,o))}static box(t,...n){let r=8,o=n.length;const a=o;for(;o--;)r+=n[o].byteLength;const s=new Uint8Array(r);for(s[0]=r>>24&255,s[1]=r>>16&255,s[2]=r>>8&255,s[3]=r&255,s.set(t,4),o=0,r=8;o>24&255,t>>16&255,t>>8&255,t&255,r>>24,r>>16&255,r>>8&255,r&255,o>>24,o>>16&255,o>>8&255,o&255,85,196,0,0]))}static mdia(t){return Ut.box(Ut.types.mdia,Ut.mdhd(t.timescale||0,t.duration||0),Ut.hdlr(t.type),Ut.minf(t))}static mfhd(t){return Ut.box(Ut.types.mfhd,new Uint8Array([0,0,0,0,t>>24,t>>16&255,t>>8&255,t&255]))}static minf(t){return t.type==="audio"?Ut.box(Ut.types.minf,Ut.box(Ut.types.smhd,Ut.SMHD),Ut.DINF,Ut.stbl(t)):Ut.box(Ut.types.minf,Ut.box(Ut.types.vmhd,Ut.VMHD),Ut.DINF,Ut.stbl(t))}static moof(t,n,r){return Ut.box(Ut.types.moof,Ut.mfhd(t),Ut.traf(r,n))}static moov(t){let n=t.length;const r=[];for(;n--;)r[n]=Ut.trak(t[n]);return Ut.box.apply(null,[Ut.types.moov,Ut.mvhd(t[0].timescale||0,t[0].duration||0)].concat(r).concat(Ut.mvex(t)))}static mvex(t){let n=t.length;const r=[];for(;n--;)r[n]=Ut.trex(t[n]);return Ut.box.apply(null,[Ut.types.mvex,...r])}static mvhd(t,n){n*=t;const r=Math.floor(n/(Bp+1)),o=Math.floor(n%(Bp+1)),a=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,t>>24&255,t>>16&255,t>>8&255,t&255,r>>24,r>>16&255,r>>8&255,r&255,o>>24,o>>16&255,o>>8&255,o&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 Ut.box(Ut.types.mvhd,a)}static sdtp(t){const n=t.samples||[],r=new Uint8Array(4+n.length);let o,a;for(o=0;o>>8&255),n.push(s&255),n=n.concat(Array.prototype.slice.call(a));for(o=0;o>>8&255),r.push(s&255),r=r.concat(Array.prototype.slice.call(a));const l=Ut.box(Ut.types.avcC,new Uint8Array([1,n[3],n[4],n[5],255,224|t.sps.length].concat(n).concat([t.pps.length]).concat(r))),c=t.width,d=t.height,h=t.pixelRatio[0],p=t.pixelRatio[1];return Ut.box(Ut.types.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,c>>8&255,c&255,d>>8&255,d&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),l,Ut.box(Ut.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),Ut.box(Ut.types.pasp,new Uint8Array([h>>24,h>>16&255,h>>8&255,h&255,p>>24,p>>16&255,p>>8&255,p&255])))}static esds(t){const n=t.config;return new Uint8Array([0,0,0,0,3,25,0,1,0,4,17,64,21,0,0,0,0,0,0,0,0,0,0,0,5,2,...n,6,1,2])}static audioStsd(t){const n=t.samplerate||0;return new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,t.channelCount||0,0,16,0,0,0,0,n>>8&255,n&255,0,0])}static mp4a(t){return Ut.box(Ut.types.mp4a,Ut.audioStsd(t),Ut.box(Ut.types.esds,Ut.esds(t)))}static mp3(t){return Ut.box(Ut.types[".mp3"],Ut.audioStsd(t))}static ac3(t){return Ut.box(Ut.types["ac-3"],Ut.audioStsd(t),Ut.box(Ut.types.dac3,t.config))}static stsd(t){const{segmentCodec:n}=t;if(t.type==="audio"){if(n==="aac")return Ut.box(Ut.types.stsd,Ut.STSD,Ut.mp4a(t));if(n==="ac3"&&t.config)return Ut.box(Ut.types.stsd,Ut.STSD,Ut.ac3(t));if(n==="mp3"&&t.codec==="mp3")return Ut.box(Ut.types.stsd,Ut.STSD,Ut.mp3(t))}else if(t.pps&&t.sps){if(n==="avc")return Ut.box(Ut.types.stsd,Ut.STSD,Ut.avc1(t));if(n==="hevc"&&t.vps)return Ut.box(Ut.types.stsd,Ut.STSD,Ut.hvc1(t))}else throw new Error("video track missing pps or sps");throw new Error(`unsupported ${t.type} segment codec (${n}/${t.codec})`)}static tkhd(t){const n=t.id,r=(t.duration||0)*(t.timescale||0),o=t.width||0,a=t.height||0,s=Math.floor(r/(Bp+1)),l=Math.floor(r%(Bp+1));return Ut.box(Ut.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,n>>24&255,n>>16&255,n>>8&255,n&255,0,0,0,0,s>>24,s>>16&255,s>>8&255,s&255,l>>24,l>>16&255,l>>8&255,l&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,o>>8&255,o&255,0,0,a>>8&255,a&255,0,0]))}static traf(t,n){const r=Ut.sdtp(t),o=t.id,a=Math.floor(n/(Bp+1)),s=Math.floor(n%(Bp+1));return Ut.box(Ut.types.traf,Ut.box(Ut.types.tfhd,new Uint8Array([0,0,0,0,o>>24,o>>16&255,o>>8&255,o&255])),Ut.box(Ut.types.tfdt,new Uint8Array([1,0,0,0,a>>24,a>>16&255,a>>8&255,a&255,s>>24,s>>16&255,s>>8&255,s&255])),Ut.trun(t,r.length+16+20+8+16+8+8),r)}static trak(t){return t.duration=t.duration||4294967295,Ut.box(Ut.types.trak,Ut.tkhd(t),Ut.mdia(t))}static trex(t){const n=t.id;return Ut.box(Ut.types.trex,new Uint8Array([0,0,0,0,n>>24,n>>16&255,n>>8&255,n&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))}static trun(t,n){const r=t.samples||[],o=r.length,a=12+16*o,s=new Uint8Array(a);let l,c,d,h,p,v;for(n+=8+a,s.set([t.type==="video"?1:0,0,15,1,o>>>24&255,o>>>16&255,o>>>8&255,o&255,n>>>24&255,n>>>16&255,n>>>8&255,n&255],0),l=0;l>>24&255,d>>>16&255,d>>>8&255,d&255,h>>>24&255,h>>>16&255,h>>>8&255,h&255,p.isLeading<<2|p.dependsOn,p.isDependedOn<<6|p.hasRedundancy<<4|p.paddingValue<<1|p.isNonSync,p.degradPrio&61440,p.degradPrio&15,v>>>24&255,v>>>16&255,v>>>8&255,v&255],12+16*l);return Ut.box(Ut.types.trun,s)}static initSegment(t){Ut.types||Ut.init();const n=Ut.moov(t);return Qc(Ut.FTYP,n)}static hvc1(t){const n=t.params,r=[t.vps,t.sps,t.pps],o=4,a=new Uint8Array([1,n.general_profile_space<<6|(n.general_tier_flag?32:0)|n.general_profile_idc,n.general_profile_compatibility_flags[0],n.general_profile_compatibility_flags[1],n.general_profile_compatibility_flags[2],n.general_profile_compatibility_flags[3],n.general_constraint_indicator_flags[0],n.general_constraint_indicator_flags[1],n.general_constraint_indicator_flags[2],n.general_constraint_indicator_flags[3],n.general_constraint_indicator_flags[4],n.general_constraint_indicator_flags[5],n.general_level_idc,240|n.min_spatial_segmentation_idc>>8,255&n.min_spatial_segmentation_idc,252|n.parallelismType,252|n.chroma_format_idc,248|n.bit_depth_luma_minus8,248|n.bit_depth_chroma_minus8,0,parseInt(n.frame_rate.fps),o-1|n.temporal_id_nested<<2|n.num_temporal_layers<<3|(n.frame_rate.fixed?64:0),r.length]);let s=a.length;for(let y=0;y>8,r[y][S].length&255]),s),s+=2,l.set(r[y][S],s),s+=r[y][S].length}const d=Ut.box(Ut.types.hvcC,l),h=t.width,p=t.height,v=t.pixelRatio[0],g=t.pixelRatio[1];return Ut.box(Ut.types.hvc1,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,h>>8&255,h&255,p>>8&255,p&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),d,Ut.box(Ut.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),Ut.box(Ut.types.pasp,new Uint8Array([v>>24,v>>16&255,v>>8&255,v&255,g>>24,g>>16&255,g>>8&255,g&255])))}}Ut.types=void 0;Ut.HDLR_TYPES=void 0;Ut.STTS=void 0;Ut.STSC=void 0;Ut.STCO=void 0;Ut.STSZ=void 0;Ut.VMHD=void 0;Ut.SMHD=void 0;Ut.STSD=void 0;Ut.FTYP=void 0;Ut.DINF=void 0;const w2e=9e4;function $G(e,t,n=1,r=!1){const o=e*t*n;return r?Math.round(o):o}function vwt(e,t,n=1,r=!1){return $G(e,t,1/n,r)}function y4(e,t=!1){return $G(e,1e3,1/w2e,t)}function mwt(e,t=1){return $G(e,w2e,1/t)}function xue(e){const{baseTime:t,timescale:n,trackId:r}=e;return`${t/n} (${t}/${n}) trackId: ${r}`}const gwt=10*1e3,ywt=1024,bwt=1152,_wt=1536;let T1=null,VF=null;function Cue(e,t,n,r){return{duration:t,size:n,cts:r,flags:{isLeading:0,isDependedOn:0,hasRedundancy:0,degradPrio:0,dependsOn:e?2:1,isNonSync:e?0:1}}}class QE extends rd{constructor(t,n,r,o){if(super("mp4-remuxer",o),this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.ISGenerated=!1,this._initPTS=null,this._initDTS=null,this.nextVideoTs=null,this.nextAudioTs=null,this.videoSampleDuration=null,this.isAudioContiguous=!1,this.isVideoContiguous=!1,this.videoTrackConfig=void 0,this.observer=t,this.config=n,this.typeSupported=r,this.ISGenerated=!1,T1===null){const s=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);T1=s?parseInt(s[1]):0}if(VF===null){const a=navigator.userAgent.match(/Safari\/(\d+)/i);VF=a?parseInt(a[1]):0}}destroy(){this.config=this.videoTrackConfig=this._initPTS=this._initDTS=null}resetTimeStamp(t){const n=this._initPTS;(!n||!t||t.trackId!==n.trackId||t.baseTime!==n.baseTime||t.timescale!==n.timescale)&&this.log(`Reset initPTS: ${n&&xue(n)} > ${t&&xue(t)}`),this._initPTS=this._initDTS=t}resetNextTimestamp(){this.log("reset next timestamp"),this.isVideoContiguous=!1,this.isAudioContiguous=!1}resetInitSegment(){this.log("ISGenerated flag reset"),this.ISGenerated=!1,this.videoTrackConfig=void 0}getVideoStartPts(t){let n=!1;const r=t[0].pts,o=t.reduce((a,s)=>{let l=s.pts,c=l-a;return c<-4294967296&&(n=!0,l=tc(l,r),c=l-a),c>0?a:l},r);return n&&this.debug("PTS rollover detected"),o}remux(t,n,r,o,a,s,l,c){let d,h,p,v,g,y,S=a,k=a;const C=t.pid>-1,x=n.pid>-1,E=n.samples.length,_=t.samples.length>0,T=l&&E>0||E>1;if((!C||_)&&(!x||T)||this.ISGenerated||l){if(this.ISGenerated){var P,M,$,L;const U=this.videoTrackConfig;(U&&(n.width!==U.width||n.height!==U.height||((P=n.pixelRatio)==null?void 0:P[0])!==((M=U.pixelRatio)==null?void 0:M[0])||(($=n.pixelRatio)==null?void 0:$[1])!==((L=U.pixelRatio)==null?void 0:L[1]))||!U&&T||this.nextAudioTs===null&&_)&&this.resetInitSegment()}this.ISGenerated||(p=this.generateIS(t,n,a,s));const B=this.isVideoContiguous;let F=-1,W;if(T&&(F=Swt(n.samples),!B&&this.config.forceKeyFrameOnDiscontinuity))if(y=!0,F>0){this.warn(`Dropped ${F} out of ${E} video samples due to a missing keyframe`);const U=this.getVideoStartPts(n.samples);n.samples=n.samples.slice(F),n.dropped+=F,k+=(n.samples[0].pts-U)/n.inputTimeScale,W=k}else F===-1&&(this.warn(`No keyframe found out of ${E} video samples`),y=!1);if(this.ISGenerated){if(_&&T){const U=this.getVideoStartPts(n.samples),X=(tc(t.samples[0].pts,U)-U)/n.inputTimeScale;S+=Math.max(0,X),k+=Math.max(0,-X)}if(_){if(t.samplerate||(this.warn("regenerate InitSegment as audio detected"),p=this.generateIS(t,n,a,s)),h=this.remuxAudio(t,S,this.isAudioContiguous,s,x||T||c===nr.AUDIO?k:void 0),T){const U=h?h.endPTS-h.startPTS:0;n.inputTimeScale||(this.warn("regenerate InitSegment as video detected"),p=this.generateIS(t,n,a,s)),d=this.remuxVideo(n,k,B,U)}}else T&&(d=this.remuxVideo(n,k,B,0));d&&(d.firstKeyFrame=F,d.independent=F!==-1,d.firstKeyFramePTS=W)}}return this.ISGenerated&&this._initPTS&&this._initDTS&&(r.samples.length&&(g=E2e(r,a,this._initPTS,this._initDTS)),o.samples.length&&(v=T2e(o,a,this._initPTS))),{audio:h,video:d,initSegment:p,independent:y,text:v,id3:g}}computeInitPts(t,n,r,o){const a=Math.round(r*n);let s=tc(t,a);if(s0?ee-1:ee].dts&&(x=!0)}x&&s.sort(function(ee,ne){const ae=ee.dts-ne.dts,re=ee.pts-ne.pts;return ae||re}),y=s[0].dts,S=s[s.length-1].dts;const _=S-y,T=_?Math.round(_/(c-1)):g||t.inputTimeScale/30;if(r){const ee=y-E,ne=ee>T,ae=ee<-1;if((ne||ae)&&(ne?this.warn(`${(t.segmentCodec||"").toUpperCase()}: ${y4(ee,!0)} ms (${ee}dts) hole between fragments detected at ${n.toFixed(3)}`):this.warn(`${(t.segmentCodec||"").toUpperCase()}: ${y4(-ee,!0)} ms (${ee}dts) overlapping between fragments detected at ${n.toFixed(3)}`),!ae||E>=s[0].pts||T1)){y=E;const re=s[0].pts-ee;if(ne)s[0].dts=y,s[0].pts=re;else{let ke=!0;for(let Ne=0;Nere&&ke);Ne++){const me=s[Ne].pts;if(s[Ne].dts-=ee,s[Ne].pts-=ee,Ne0?ne.dts-s[ee-1].dts:T;if(ke=ee>0?ne.pts-s[ee-1].pts:T,me.stretchShortVideoTrack&&this.nextAudioTs!==null){const Ue=Math.floor(me.maxBufferHole*a),Qe=(o?k+o*a:this.nextAudioTs+h)-ne.pts;Qe>Ue?(g=Qe-_e,g<0?g=_e:F=!0,this.log(`It is approximately ${Qe/90} ms to the next segment; using duration ${g/90} ms for the last video frame.`)):g=_e}else g=_e}const Ne=Math.round(ne.pts-ne.dts);W=Math.min(W,g),G=Math.max(G,g),U=Math.min(U,ke),X=Math.max(X,ke),l.push(Cue(ne.key,g,re,Ne))}if(l.length){if(T1){if(T1<70){const ee=l[0].flags;ee.dependsOn=2,ee.isNonSync=0}}else if(VF&&X-U0&&(o&&Math.abs(E-(C+x))<9e3||Math.abs(tc(S[0].pts,E)-(C+x))<20*h),S.forEach(function(X){X.pts=tc(X.pts,E)}),!r||C<0){const X=S.length;if(S=S.filter(oe=>oe.pts>=0),X!==S.length&&this.warn(`Removed ${S.length-X} of ${X} samples (initPTS ${x} / ${s})`),!S.length)return;a===0?C=0:o&&!y?C=Math.max(0,E-x):C=S[0].pts-x}if(t.segmentCodec==="aac"){const X=this.config.maxAudioFramesDrift;for(let oe=0,Z=C+x;oe=X*h&&ne0){P+=k;try{D=new Uint8Array(P)}catch(ne){this.observer.emit(Ee.ERROR,Ee.ERROR,{type:dr.MUX_ERROR,details:Ht.REMUX_ALLOC_ERROR,fatal:!1,error:ne,bytes:P,reason:`fail allocating audio mdat ${P}`});return}v||(new DataView(D.buffer).setUint32(0,P),D.set(Ut.types.mdat,4))}else return;D.set(H,k);const ee=H.byteLength;k+=ee,g.push(Cue(!0,d,ee,0)),T=q}const $=g.length;if(!$)return;const L=g[g.length-1];C=T-x,this.nextAudioTs=C+c*L.duration;const B=v?new Uint8Array(0):Ut.moof(t.sequenceNumber++,_/c,bo({},t,{samples:g}));t.samples=[];const F=(_-x)/s,W=C/s,G={data1:B,data2:D,startPTS:F,endPTS:W,startDTS:F,endDTS:W,type:"audio",hasAudio:!0,hasVideo:!1,nb:$};return this.isAudioContiguous=!0,G}}function tc(e,t){let n;if(t===null)return e;for(t4294967296;)e+=n;return e}function Swt(e){for(let t=0;ts.pts-l.pts);const a=e.samples;return e.samples=[],{samples:a}}class kwt extends rd{constructor(t,n,r,o){super("passthrough-remuxer",o),this.emitInitSegment=!1,this.audioCodec=void 0,this.videoCodec=void 0,this.initData=void 0,this.initPTS=null,this.initTracks=void 0,this.lastEndTime=null,this.isVideoContiguous=!1}destroy(){}resetTimeStamp(t){this.lastEndTime=null;const n=this.initPTS;n&&t&&n.baseTime===t.baseTime&&n.timescale===t.timescale||(this.initPTS=t)}resetNextTimestamp(){this.isVideoContiguous=!1,this.lastEndTime=null}resetInitSegment(t,n,r,o){this.audioCodec=n,this.videoCodec=r,this.generateInitSegment(t,o),this.emitInitSegment=!0}generateInitSegment(t,n){let{audioCodec:r,videoCodec:o}=this;if(!(t!=null&&t.byteLength)){this.initTracks=void 0,this.initData=void 0;return}const{audio:a,video:s}=this.initData=R3e(t);if(n)uxt(t,n);else{const c=a||s;c!=null&&c.encrypted&&this.warn(`Init segment with encrypted track with has no key ("${c.codec}")!`)}a&&(r=wue(a,Eo.AUDIO,this)),s&&(o=wue(s,Eo.VIDEO,this));const l={};a&&s?l.audiovideo={container:"video/mp4",codec:r+","+o,supplemental:s.supplemental,encrypted:s.encrypted,initSegment:t,id:"main"}:a?l.audio={container:"audio/mp4",codec:r,encrypted:a.encrypted,initSegment:t,id:"audio"}:s?l.video={container:"video/mp4",codec:o,supplemental:s.supplemental,encrypted:s.encrypted,initSegment:t,id:"main"}:this.warn("initSegment does not contain moov or trak boxes."),this.initTracks=l}remux(t,n,r,o,a,s){var l,c;let{initPTS:d,lastEndTime:h}=this;const p={audio:void 0,video:void 0,text:o,id3:r,initSegment:void 0};jn(h)||(h=this.lastEndTime=a||0);const v=n.samples;if(!v.length)return p;const g={initPTS:void 0,timescale:void 0,trackId:void 0};let y=this.initData;if((l=y)!=null&&l.length||(this.generateInitSegment(v),y=this.initData),!((c=y)!=null&&c.length))return this.warn("Failed to generate initSegment."),p;this.emitInitSegment&&(g.tracks=this.initTracks,this.emitInitSegment=!1);const S=dxt(v,y,this),k=y.audio?S[y.audio.id]:null,C=y.video?S[y.video.id]:null,x=SC(C,1/0),E=SC(k,1/0),_=SC(C,0,!0),T=SC(k,0,!0);let D=a,P=0;const M=k&&(!C||!d&&E0?this.lastEndTime=B:(this.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());const F=!!y.audio,W=!!y.video;let U="";F&&(U+="audio"),W&&(U+="video");const G=(y.audio?y.audio.encrypted:!1)||(y.video?y.video.encrypted:!1),X={data1:v,startPTS:L,startDTS:L,endPTS:B,endDTS:B,type:U,hasAudio:F,hasVideo:W,nb:1,dropped:0,encrypted:G};p.audio=F&&!W?X:void 0,p.video=W?X:void 0;const oe=C?.sampleCount;if(oe){const Z=C.keyFrameIndex,H=Z!==-1;X.nb=oe,X.dropped=Z===0||this.isVideoContiguous?0:H?Z:oe,X.independent=H,X.firstKeyFrame=Z,H&&C.keyFrameStart&&(X.firstKeyFramePTS=(C.keyFrameStart-d.baseTime)/d.timescale),this.isVideoContiguous||(p.independent=H),this.isVideoContiguous||(this.isVideoContiguous=H),X.dropped&&this.warn(`fmp4 does not start with IDR: firstIDR ${Z}/${oe} dropped: ${X.dropped} start: ${X.firstKeyFramePTS||"NA"}`)}return p.initSegment=g,p.id3=E2e(r,a,d,d),o.samples.length&&(p.text=T2e(o,a,d)),p}}function SC(e,t,n=!1){return e?.start!==void 0?(e.start+(n?e.duration:0))/e.timescale:t}function xwt(e,t,n,r){if(e===null)return!0;const o=Math.max(r,1),a=t-e.baseTime/e.timescale;return Math.abs(a-n)>o}function wue(e,t,n){const r=e.codec;return r&&r.length>4?r:t===Eo.AUDIO?r==="ec-3"||r==="ac-3"||r==="alac"?r:r==="fLaC"||r==="Opus"?AT(r,!1):(n.warn(`Unhandled audio codec "${r}" in mp4 MAP`),r||"mp4a"):(n.warn(`Unhandled video codec "${r}" in mp4 MAP`),r||"avc1")}let gh;try{gh=self.performance.now.bind(self.performance)}catch{gh=Date.now}const e8=[{demux:lwt,remux:kwt},{demux:Jp,remux:QE},{demux:iwt,remux:QE},{demux:swt,remux:QE}];e8.splice(2,0,{demux:owt,remux:QE});class Eue{constructor(t,n,r,o,a,s){this.asyncResult=!1,this.logger=void 0,this.observer=void 0,this.typeSupported=void 0,this.config=void 0,this.id=void 0,this.demuxer=void 0,this.remuxer=void 0,this.decrypter=void 0,this.probe=void 0,this.decryptionPromise=null,this.transmuxConfig=void 0,this.currentTransmuxState=void 0,this.observer=t,this.typeSupported=n,this.config=r,this.id=a,this.logger=s}configure(t){this.transmuxConfig=t,this.decrypter&&this.decrypter.reset()}push(t,n,r,o){const a=r.transmuxing;a.executeStart=gh();let s=new Uint8Array(t);const{currentTransmuxState:l,transmuxConfig:c}=this;o&&(this.currentTransmuxState=o);const{contiguous:d,discontinuity:h,trackSwitch:p,accurateTimeOffset:v,timeOffset:g,initSegmentChange:y}=o||l,{audioCodec:S,videoCodec:k,defaultInitPts:C,duration:x,initSegmentData:E}=c,_=Cwt(s,n);if(_&&yy(_.method)){const M=this.getDecrypter(),$=TG(_.method);if(M.isSync()){let L=M.softwareDecrypt(s,_.key.buffer,_.iv.buffer,$);if(r.part>-1){const F=M.flush();L=F&&F.buffer}if(!L)return a.executeEnd=gh(),zF(r);s=new Uint8Array(L)}else return this.asyncResult=!0,this.decryptionPromise=M.webCryptoDecrypt(s,_.key.buffer,_.iv.buffer,$).then(L=>{const B=this.push(L,null,r);return this.decryptionPromise=null,B}),this.decryptionPromise}const T=this.needsProbing(h,p);if(T){const M=this.configureTransmuxer(s);if(M)return this.logger.warn(`[transmuxer] ${M.message}`),this.observer.emit(Ee.ERROR,Ee.ERROR,{type:dr.MEDIA_ERROR,details:Ht.FRAG_PARSING_ERROR,fatal:!1,error:M,reason:M.message}),a.executeEnd=gh(),zF(r)}(h||p||y||T)&&this.resetInitSegment(E,S,k,x,n),(h||y||T)&&this.resetInitialTimestamp(C),d||this.resetContiguity();const D=this.transmux(s,_,g,v,r);this.asyncResult=T_(D);const P=this.currentTransmuxState;return P.contiguous=!0,P.discontinuity=!1,P.trackSwitch=!1,a.executeEnd=gh(),D}flush(t){const n=t.transmuxing;n.executeStart=gh();const{decrypter:r,currentTransmuxState:o,decryptionPromise:a}=this;if(a)return this.asyncResult=!0,a.then(()=>this.flush(t));const s=[],{timeOffset:l}=o;if(r){const p=r.flush();p&&s.push(this.push(p.buffer,null,t))}const{demuxer:c,remuxer:d}=this;if(!c||!d){n.executeEnd=gh();const p=[zF(t)];return this.asyncResult?Promise.resolve(p):p}const h=c.flush(l);return T_(h)?(this.asyncResult=!0,h.then(p=>(this.flushRemux(s,p,t),s))):(this.flushRemux(s,h,t),this.asyncResult?Promise.resolve(s):s)}flushRemux(t,n,r){const{audioTrack:o,videoTrack:a,id3Track:s,textTrack:l}=n,{accurateTimeOffset:c,timeOffset:d}=this.currentTransmuxState;this.logger.log(`[transmuxer.ts]: Flushed ${this.id} sn: ${r.sn}${r.part>-1?" part: "+r.part:""} of ${this.id===nr.MAIN?"level":"track"} ${r.level}`);const h=this.remuxer.remux(o,a,s,l,d,c,!0,this.id);t.push({remuxResult:h,chunkMeta:r}),r.transmuxing.executeEnd=gh()}resetInitialTimestamp(t){const{demuxer:n,remuxer:r}=this;!n||!r||(n.resetTimeStamp(t),r.resetTimeStamp(t))}resetContiguity(){const{demuxer:t,remuxer:n}=this;!t||!n||(t.resetContiguity(),n.resetNextTimestamp())}resetInitSegment(t,n,r,o,a){const{demuxer:s,remuxer:l}=this;!s||!l||(s.resetInitSegment(t,n,r,o),l.resetInitSegment(t,n,r,a))}destroy(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)}transmux(t,n,r,o,a){let s;return n&&n.method==="SAMPLE-AES"?s=this.transmuxSampleAes(t,n,r,o,a):s=this.transmuxUnencrypted(t,r,o,a),s}transmuxUnencrypted(t,n,r,o){const{audioTrack:a,videoTrack:s,id3Track:l,textTrack:c}=this.demuxer.demux(t,n,!1,!this.config.progressive);return{remuxResult:this.remuxer.remux(a,s,l,c,n,r,!1,this.id),chunkMeta:o}}transmuxSampleAes(t,n,r,o,a){return this.demuxer.demuxSampleAes(t,n,r).then(s=>({remuxResult:this.remuxer.remux(s.audioTrack,s.videoTrack,s.id3Track,s.textTrack,r,o,!1,this.id),chunkMeta:a}))}configureTransmuxer(t){const{config:n,observer:r,typeSupported:o}=this;let a;for(let p=0,v=e8.length;p0&&t?.key!=null&&t.iv!==null&&t.method!=null&&(n=t),n}const zF=e=>({remuxResult:{},chunkMeta:e});function T_(e){return"then"in e&&e.then instanceof Function}class wwt{constructor(t,n,r,o,a){this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=t,this.videoCodec=n,this.initSegmentData=r,this.duration=o,this.defaultInitPts=a||null}}class Ewt{constructor(t,n,r,o,a,s){this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.initSegmentChange=void 0,this.discontinuity=t,this.contiguous=n,this.accurateTimeOffset=r,this.trackSwitch=o,this.timeOffset=a,this.initSegmentChange=s}}let Tue=0;class A2e{constructor(t,n,r,o){this.error=null,this.hls=void 0,this.id=void 0,this.instanceNo=Tue++,this.observer=void 0,this.frag=null,this.part=null,this.useWorker=void 0,this.workerContext=null,this.transmuxer=null,this.onTransmuxComplete=void 0,this.onFlush=void 0,this.onWorkerMessage=c=>{const d=c.data,h=this.hls;if(!(!h||!(d!=null&&d.event)||d.instanceNo!==this.instanceNo))switch(d.event){case"init":{var p;const v=(p=this.workerContext)==null?void 0:p.objectURL;v&&self.URL.revokeObjectURL(v);break}case"transmuxComplete":{this.handleTransmuxComplete(d.data);break}case"flush":{this.onFlush(d.data);break}case"workerLog":{h.logger[d.data.logType]&&h.logger[d.data.logType](d.data.message);break}default:{d.data=d.data||{},d.data.frag=this.frag,d.data.part=this.part,d.data.id=this.id,h.trigger(d.event,d.data);break}}},this.onWorkerError=c=>{if(!this.hls)return;const d=new Error(`${c.message} (${c.filename}:${c.lineno})`);this.hls.config.enableWorker=!1,this.hls.logger.warn(`Error in "${this.id}" Web Worker, fallback to inline`),this.hls.trigger(Ee.ERROR,{type:dr.OTHER_ERROR,details:Ht.INTERNAL_EXCEPTION,fatal:!1,event:"demuxerWorker",error:d})};const a=t.config;this.hls=t,this.id=n,this.useWorker=!!a.enableWorker,this.onTransmuxComplete=r,this.onFlush=o;const s=(c,d)=>{d=d||{},d.frag=this.frag||void 0,c===Ee.ERROR&&(d=d,d.parent=this.id,d.part=this.part,this.error=d.error),this.hls.trigger(c,d)};this.observer=new LG,this.observer.on(Ee.FRAG_DECRYPTED,s),this.observer.on(Ee.ERROR,s);const l=zle(a.preferManagedMediaSource);if(this.useWorker&&typeof Worker<"u"){const c=this.hls.logger;if(a.workerPath||LCt()){try{a.workerPath?(c.log(`loading Web Worker ${a.workerPath} for "${n}"`),this.workerContext=PCt(a.workerPath)):(c.log(`injecting Web Worker for "${n}"`),this.workerContext=DCt());const{worker:h}=this.workerContext;h.addEventListener("message",this.onWorkerMessage),h.addEventListener("error",this.onWorkerError),h.postMessage({instanceNo:this.instanceNo,cmd:"init",typeSupported:l,id:n,config:To(a)})}catch(h){c.warn(`Error setting up "${n}" Web Worker, fallback to inline`,h),this.terminateWorker(),this.error=null,this.transmuxer=new Eue(this.observer,l,a,"",n,t.logger)}return}}this.transmuxer=new Eue(this.observer,l,a,"",n,t.logger)}reset(){if(this.frag=null,this.part=null,this.workerContext){const t=this.instanceNo;this.instanceNo=Tue++;const n=this.hls.config,r=zle(n.preferManagedMediaSource);this.workerContext.worker.postMessage({instanceNo:this.instanceNo,cmd:"reset",resetNo:t,typeSupported:r,id:this.id,config:To(n)})}}terminateWorker(){if(this.workerContext){const{worker:t}=this.workerContext;this.workerContext=null,t.removeEventListener("message",this.onWorkerMessage),t.removeEventListener("error",this.onWorkerError),RCt(this.hls.config.workerPath)}}destroy(){if(this.workerContext)this.terminateWorker(),this.onWorkerMessage=this.onWorkerError=null;else{const n=this.transmuxer;n&&(n.destroy(),this.transmuxer=null)}const t=this.observer;t&&t.removeAllListeners(),this.frag=null,this.part=null,this.observer=null,this.hls=null}push(t,n,r,o,a,s,l,c,d,h){var p,v;d.transmuxing.start=self.performance.now();const{instanceNo:g,transmuxer:y}=this,S=s?s.start:a.start,k=a.decryptdata,C=this.frag,x=!(C&&a.cc===C.cc),E=!(C&&d.level===C.level),_=C?d.sn-C.sn:-1,T=this.part?d.part-this.part.index:-1,D=_===0&&d.id>1&&d.id===C?.stats.chunkCount,P=!E&&(_===1||_===0&&(T===1||D&&T<=0)),M=self.performance.now();(E||_||a.stats.parsing.start===0)&&(a.stats.parsing.start=M),s&&(T||!P)&&(s.stats.parsing.start=M);const $=!(C&&((p=a.initSegment)==null?void 0:p.url)===((v=C.initSegment)==null?void 0:v.url)),L=new Ewt(x,P,c,E,S,$);if(!P||x||$){this.hls.logger.log(`[transmuxer-interface]: Starting new transmux session for ${a.type} sn: ${d.sn}${d.part>-1?" part: "+d.part:""} ${this.id===nr.MAIN?"level":"track"}: ${d.level} id: ${d.id} discontinuity: ${x} trackSwitch: ${E} contiguous: ${P} accurateTimeOffset: ${c} timeOffset: ${S} initSegmentChange: ${$}`);const B=new wwt(r,o,n,l,h);this.configureTransmuxer(B)}if(this.frag=a,this.part=s,this.workerContext)this.workerContext.worker.postMessage({instanceNo:g,cmd:"demux",data:t,decryptdata:k,chunkMeta:d,state:L},t instanceof ArrayBuffer?[t]:[]);else if(y){const B=y.push(t,k,d,L);T_(B)?B.then(F=>{this.handleTransmuxComplete(F)}).catch(F=>{this.transmuxerError(F,d,"transmuxer-interface push error")}):this.handleTransmuxComplete(B)}}flush(t){t.transmuxing.start=self.performance.now();const{instanceNo:n,transmuxer:r}=this;if(this.workerContext)this.workerContext.worker.postMessage({instanceNo:n,cmd:"flush",chunkMeta:t});else if(r){const o=r.flush(t);T_(o)?o.then(a=>{this.handleFlushResult(a,t)}).catch(a=>{this.transmuxerError(a,t,"transmuxer-interface flush error")}):this.handleFlushResult(o,t)}}transmuxerError(t,n,r){this.hls&&(this.error=t,this.hls.trigger(Ee.ERROR,{type:dr.MEDIA_ERROR,details:Ht.FRAG_PARSING_ERROR,chunkMeta:n,frag:this.frag||void 0,part:this.part||void 0,fatal:!1,error:t,err:t,reason:r}))}handleFlushResult(t,n){t.forEach(r=>{this.handleTransmuxComplete(r)}),this.onFlush(n)}configureTransmuxer(t){const{instanceNo:n,transmuxer:r}=this;this.workerContext?this.workerContext.worker.postMessage({instanceNo:n,cmd:"configure",config:t}):r&&r.configure(t)}handleTransmuxComplete(t){t.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(t)}}const Aue=100;class Twt extends IG{constructor(t,n,r){super(t,n,r,"audio-stream-controller",nr.AUDIO),this.mainAnchor=null,this.mainFragLoading=null,this.audioOnly=!1,this.bufferedTrack=null,this.switchingTrack=null,this.trackId=-1,this.waitingData=null,this.mainDetails=null,this.flushing=!1,this.bufferFlushed=!1,this.cachedTrackLoadedData=null,this.registerListeners()}onHandlerDestroying(){this.unregisterListeners(),super.onHandlerDestroying(),this.resetItem()}resetItem(){this.mainDetails=this.mainAnchor=this.mainFragLoading=this.bufferedTrack=this.switchingTrack=this.waitingData=this.cachedTrackLoadedData=null}registerListeners(){super.registerListeners();const{hls:t}=this;t.on(Ee.LEVEL_LOADED,this.onLevelLoaded,this),t.on(Ee.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),t.on(Ee.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.on(Ee.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),t.on(Ee.BUFFER_RESET,this.onBufferReset,this),t.on(Ee.BUFFER_CREATED,this.onBufferCreated,this),t.on(Ee.BUFFER_FLUSHING,this.onBufferFlushing,this),t.on(Ee.BUFFER_FLUSHED,this.onBufferFlushed,this),t.on(Ee.INIT_PTS_FOUND,this.onInitPtsFound,this),t.on(Ee.FRAG_LOADING,this.onFragLoading,this),t.on(Ee.FRAG_BUFFERED,this.onFragBuffered,this)}unregisterListeners(){const{hls:t}=this;t&&(super.unregisterListeners(),t.off(Ee.LEVEL_LOADED,this.onLevelLoaded,this),t.off(Ee.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),t.off(Ee.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.off(Ee.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),t.off(Ee.BUFFER_RESET,this.onBufferReset,this),t.off(Ee.BUFFER_CREATED,this.onBufferCreated,this),t.off(Ee.BUFFER_FLUSHING,this.onBufferFlushing,this),t.off(Ee.BUFFER_FLUSHED,this.onBufferFlushed,this),t.off(Ee.INIT_PTS_FOUND,this.onInitPtsFound,this),t.off(Ee.FRAG_LOADING,this.onFragLoading,this),t.off(Ee.FRAG_BUFFERED,this.onFragBuffered,this))}onInitPtsFound(t,{frag:n,id:r,initPTS:o,timescale:a,trackId:s}){if(r===nr.MAIN){const l=n.cc,c=this.fragCurrent;if(this.initPTS[l]={baseTime:o,timescale:a,trackId:s},this.log(`InitPTS for cc: ${l} found from main: ${o/a} (${o}/${a}) trackId: ${s}`),this.mainAnchor=n,this.state===an.WAITING_INIT_PTS){const d=this.waitingData;(!d&&!this.loadingParts||d&&d.frag.cc!==l)&&this.syncWithAnchor(n,d?.frag)}else!this.hls.hasEnoughToStart&&c&&c.cc!==l?(c.abortRequests(),this.syncWithAnchor(n,c)):this.state===an.IDLE&&this.tick()}}getLoadPosition(){return!this.startFragRequested&&this.nextLoadPosition>=0?this.nextLoadPosition:super.getLoadPosition()}syncWithAnchor(t,n){var r;const o=((r=this.mainFragLoading)==null?void 0:r.frag)||null;if(n&&o?.cc===n.cc)return;const a=(o||t).cc,s=this.getLevelDetails(),l=this.getLoadPosition(),c=H3e(s,a,l);c&&(this.log(`Syncing with main frag at ${c.start} cc ${c.cc}`),this.startFragRequested=!1,this.nextLoadPosition=c.start,this.resetLoadingState(),this.state===an.IDLE&&this.doTickIdle())}startLoad(t,n){if(!this.levels){this.startPosition=t,this.state=an.STOPPED;return}const r=this.lastCurrentTime;this.stopLoad(),this.setInterval(Aue),r>0&&t===-1?(this.log(`Override startPosition with lastCurrentTime @${r.toFixed(3)}`),t=r,this.state=an.IDLE):this.state=an.WAITING_TRACK,this.nextLoadPosition=this.lastCurrentTime=t+this.timelineOffset,this.startPosition=n?-1:t,this.tick()}doTick(){switch(this.state){case an.IDLE:this.doTickIdle();break;case an.WAITING_TRACK:{const{levels:t,trackId:n}=this,r=t?.[n],o=r?.details;if(o&&!this.waitForLive(r)){if(this.waitForCdnTuneIn(o))break;this.state=an.WAITING_INIT_PTS}break}case an.FRAG_LOADING_WAITING_RETRY:{this.checkRetryDate();break}case an.WAITING_INIT_PTS:{const t=this.waitingData;if(t){const{frag:n,part:r,cache:o,complete:a}=t,s=this.mainAnchor;if(this.initPTS[n.cc]!==void 0){this.waitingData=null,this.state=an.FRAG_LOADING;const l=o.flush().buffer,c={frag:n,part:r,payload:l,networkDetails:null};this._handleFragmentLoadProgress(c),a&&super._handleFragmentLoadComplete(c)}else s&&s.cc!==t.frag.cc&&this.syncWithAnchor(s,t.frag)}else this.state=an.IDLE}}this.onTickEnd()}resetLoadingState(){const t=this.waitingData;t&&(this.fragmentTracker.removeFragment(t.frag),this.waitingData=null),super.resetLoadingState()}onTickEnd(){const{media:t}=this;t!=null&&t.readyState&&(this.lastCurrentTime=t.currentTime)}doTickIdle(){var t;const{hls:n,levels:r,media:o,trackId:a}=this,s=n.config;if(!this.buffering||!o&&!this.primaryPrefetch&&(this.startFragRequested||!s.startFragPrefetch)||!(r!=null&&r[a]))return;const l=r[a],c=l.details;if(!c||this.waitForLive(l)||this.waitForCdnTuneIn(c)){this.state=an.WAITING_TRACK,this.startFragRequested=!1;return}const d=this.mediaBuffer?this.mediaBuffer:this.media;this.bufferFlushed&&d&&(this.bufferFlushed=!1,this.afterBufferFlushed(d,Eo.AUDIO,nr.AUDIO));const h=this.getFwdBufferInfo(d,nr.AUDIO);if(h===null)return;if(!this.switchingTrack&&this._streamEnded(h,c)){n.trigger(Ee.BUFFER_EOS,{type:"audio"}),this.state=an.ENDED;return}const p=h.len,v=n.maxBufferLength,g=c.fragments,y=g[0].start,S=this.getLoadPosition(),k=this.flushing?S:h.end;if(this.switchingTrack&&o){const E=S;c.PTSKnown&&Ey||h.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),o.currentTime=y+.05)}if(p>=v&&!this.switchingTrack&&kx.end){const _=this.fragmentTracker.getFragAtPos(k,nr.MAIN);_&&_.end>x.end&&(x=_,this.mainFragLoading={frag:_,targetBufferTime:null})}if(C.start>x.end)return}this.loadFragment(C,l,k)}onMediaDetaching(t,n){this.bufferFlushed=this.flushing=!1,super.onMediaDetaching(t,n)}onAudioTracksUpdated(t,{audioTracks:n}){this.resetTransmuxer(),this.levels=n.map(r=>new C_(r))}onAudioTrackSwitching(t,n){const r=!!n.url;this.trackId=n.id;const{fragCurrent:o}=this;o&&(o.abortRequests(),this.removeUnbufferedFrags(o.start)),this.resetLoadingState(),r?(this.switchingTrack=n,this.flushAudioIfNeeded(n),this.state!==an.STOPPED&&(this.setInterval(Aue),this.state=an.IDLE,this.tick())):(this.resetTransmuxer(),this.switchingTrack=null,this.bufferedTrack=n,this.clearInterval())}onManifestLoading(){super.onManifestLoading(),this.bufferFlushed=this.flushing=this.audioOnly=!1,this.resetItem(),this.trackId=-1}onLevelLoaded(t,n){this.mainDetails=n.details;const r=this.cachedTrackLoadedData;r&&(this.cachedTrackLoadedData=null,this.onAudioTrackLoaded(Ee.AUDIO_TRACK_LOADED,r))}onAudioTrackLoaded(t,n){var r;const{levels:o}=this,{details:a,id:s,groupId:l,track:c}=n;if(!o){this.warn(`Audio tracks reset while loading track ${s} "${c.name}" of "${l}"`);return}const d=this.mainDetails;if(!d||a.endCC>d.endCC||d.expired){this.cachedTrackLoadedData=n,this.state!==an.STOPPED&&(this.state=an.WAITING_TRACK);return}this.cachedTrackLoadedData=null,this.log(`Audio track ${s} "${c.name}" of "${l}" loaded [${a.startSN},${a.endSN}]${a.lastPartSn?`[part-${a.lastPartSn}-${a.lastPartIndex}]`:""},duration:${a.totalduration}`);const h=o[s];let p=0;if(a.live||(r=h.details)!=null&&r.live){if(this.checkLiveUpdate(a),a.deltaUpdateFailed)return;if(h.details){var v;p=this.alignPlaylists(a,h.details,(v=this.levelLastLoaded)==null?void 0:v.details)}a.alignedSliding||(l2e(a,d),a.alignedSliding||OT(a,d),p=a.fragmentStart)}h.details=a,this.levelLastLoaded=h,this.startFragRequested||this.setStartPosition(d,p),this.hls.trigger(Ee.AUDIO_TRACK_UPDATED,{details:a,id:s,groupId:n.groupId}),this.state===an.WAITING_TRACK&&!this.waitForCdnTuneIn(a)&&(this.state=an.IDLE),this.tick()}_handleFragmentLoadProgress(t){var n;const r=t.frag,{part:o,payload:a}=t,{config:s,trackId:l,levels:c}=this;if(!c){this.warn(`Audio tracks were reset while fragment load was in progress. Fragment ${r.sn} of level ${r.level} will not be buffered`);return}const d=c[l];if(!d){this.warn("Audio track is undefined on fragment load progress");return}const h=d.details;if(!h){this.warn("Audio track details undefined on fragment load progress"),this.removeUnbufferedFrags(r.start);return}const p=s.defaultAudioCodec||d.audioCodec||"mp4a.40.2";let v=this.transmuxer;v||(v=this.transmuxer=new A2e(this.hls,nr.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));const g=this.initPTS[r.cc],y=(n=r.initSegment)==null?void 0:n.data;if(g!==void 0){const k=o?o.index:-1,C=k!==-1,x=new EG(r.level,r.sn,r.stats.chunkCount,a.byteLength,k,C);v.push(a,y,p,"",r,o,h.totalduration,!1,x,g)}else{this.log(`Unknown video PTS for cc ${r.cc}, waiting for video PTS before demuxing audio frag ${r.sn} of [${h.startSN} ,${h.endSN}],track ${l}`);const{cache:S}=this.waitingData=this.waitingData||{frag:r,part:o,cache:new u2e,complete:!1};S.push(new Uint8Array(a)),this.state!==an.STOPPED&&(this.state=an.WAITING_INIT_PTS)}}_handleFragmentLoadComplete(t){if(this.waitingData){this.waitingData.complete=!0;return}super._handleFragmentLoadComplete(t)}onBufferReset(){this.mediaBuffer=null}onBufferCreated(t,n){this.bufferFlushed=this.flushing=!1;const r=n.tracks.audio;r&&(this.mediaBuffer=r.buffer||null)}onFragLoading(t,n){!this.audioOnly&&n.frag.type===nr.MAIN&&Ks(n.frag)&&(this.mainFragLoading=n,this.state===an.IDLE&&this.tick())}onFragBuffered(t,n){const{frag:r,part:o}=n;if(r.type!==nr.AUDIO){!this.audioOnly&&r.type===nr.MAIN&&!r.elementaryStreams.video&&!r.elementaryStreams.audiovideo&&(this.audioOnly=!0,this.mainFragLoading=null);return}if(this.fragContextChanged(r)){this.warn(`Fragment ${r.sn}${o?" p: "+o.index:""} of level ${r.level} finished buffering, but was aborted. state: ${this.state}, audioSwitch: ${this.switchingTrack?this.switchingTrack.name:"false"}`);return}if(Ks(r)){this.fragPrevious=r;const a=this.switchingTrack;a&&(this.bufferedTrack=a,this.switchingTrack=null,this.hls.trigger(Ee.AUDIO_TRACK_SWITCHED,fo({},a)))}this.fragBufferedComplete(r,o),this.media&&this.tick()}onError(t,n){var r;if(n.fatal){this.state=an.ERROR;return}switch(n.details){case Ht.FRAG_GAP:case Ht.FRAG_PARSING_ERROR:case Ht.FRAG_DECRYPT_ERROR:case Ht.FRAG_LOAD_ERROR:case Ht.FRAG_LOAD_TIMEOUT:case Ht.KEY_LOAD_ERROR:case Ht.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(nr.AUDIO,n);break;case Ht.AUDIO_TRACK_LOAD_ERROR:case Ht.AUDIO_TRACK_LOAD_TIMEOUT:case Ht.LEVEL_PARSING_ERROR:!n.levelRetry&&this.state===an.WAITING_TRACK&&((r=n.context)==null?void 0:r.type)===ki.AUDIO_TRACK&&(this.state=an.IDLE);break;case Ht.BUFFER_ADD_CODEC_ERROR:case Ht.BUFFER_APPEND_ERROR:if(n.parent!=="audio")return;this.reduceLengthAndFlushBuffer(n)||this.resetLoadingState();break;case Ht.BUFFER_FULL_ERROR:if(n.parent!=="audio")return;this.reduceLengthAndFlushBuffer(n)&&(this.bufferedTrack=null,super.flushMainBuffer(0,Number.POSITIVE_INFINITY,"audio"));break;case Ht.INTERNAL_EXCEPTION:this.recoverWorkerError(n);break}}onBufferFlushing(t,{type:n}){n!==Eo.VIDEO&&(this.flushing=!0)}onBufferFlushed(t,{type:n}){if(n!==Eo.VIDEO){this.flushing=!1,this.bufferFlushed=!0,this.state===an.ENDED&&(this.state=an.IDLE);const r=this.mediaBuffer||this.media;r&&(this.afterBufferFlushed(r,n,nr.AUDIO),this.tick())}}_handleTransmuxComplete(t){var n;const r="audio",{hls:o}=this,{remuxResult:a,chunkMeta:s}=t,l=this.getCurrentContext(s);if(!l){this.resetWhenMissingContext(s);return}const{frag:c,part:d,level:h}=l,{details:p}=h,{audio:v,text:g,id3:y,initSegment:S}=a;if(this.fragContextChanged(c)||!p){this.fragmentTracker.removeFragment(c);return}if(this.state=an.PARSING,this.switchingTrack&&v&&this.completeAudioSwitch(this.switchingTrack),S!=null&&S.tracks){const k=c.initSegment||c;if(this.unhandledEncryptionError(S,c))return;this._bufferInitSegment(h,S.tracks,k,s),o.trigger(Ee.FRAG_PARSING_INIT_SEGMENT,{frag:k,id:r,tracks:S.tracks})}if(v){const{startPTS:k,endPTS:C,startDTS:x,endDTS:E}=v;d&&(d.elementaryStreams[Eo.AUDIO]={startPTS:k,endPTS:C,startDTS:x,endDTS:E}),c.setElementaryStreamInfo(Eo.AUDIO,k,C,x,E),this.bufferFragmentData(v,c,d,s)}if(y!=null&&(n=y.samples)!=null&&n.length){const k=bo({id:r,frag:c,details:p},y);o.trigger(Ee.FRAG_PARSING_METADATA,k)}if(g){const k=bo({id:r,frag:c,details:p},g);o.trigger(Ee.FRAG_PARSING_USERDATA,k)}}_bufferInitSegment(t,n,r,o){if(this.state!==an.PARSING||(n.video&&delete n.video,n.audiovideo&&delete n.audiovideo,!n.audio))return;const a=n.audio;a.id=nr.AUDIO;const s=t.audioCodec;this.log(`Init audio buffer, container:${a.container}, codecs[level/parsed]=[${s}/${a.codec}]`),s&&s.split(",").length===1&&(a.levelCodec=s),this.hls.trigger(Ee.BUFFER_CODECS,n);const l=a.initSegment;if(l!=null&&l.byteLength){const c={type:"audio",frag:r,part:null,chunkMeta:o,parent:r.type,data:l};this.hls.trigger(Ee.BUFFER_APPENDING,c)}this.tickImmediate()}loadFragment(t,n,r){const o=this.fragmentTracker.getState(t);if(this.switchingTrack||o===ca.NOT_LOADED||o===ca.PARTIAL){var a;if(!Ks(t))this._loadInitSegment(t,n);else if((a=n.details)!=null&&a.live&&!this.initPTS[t.cc]){this.log(`Waiting for video PTS in continuity counter ${t.cc} of live stream before loading audio fragment ${t.sn} of level ${this.trackId}`),this.state=an.WAITING_INIT_PTS;const s=this.mainDetails;s&&s.fragmentStart!==n.details.fragmentStart&&OT(n.details,s)}else super.loadFragment(t,n,r)}else this.clearTrackerIfNeeded(t)}flushAudioIfNeeded(t){if(this.media&&this.bufferedTrack){const{name:n,lang:r,assocLang:o,characteristics:a,audioCodec:s,channels:l}=this.bufferedTrack;Sm({name:n,lang:r,assocLang:o,characteristics:a,audioCodec:s,channels:l},t,Hv)||(LT(t.url,this.hls)?(this.log("Switching audio track : flushing all audio"),super.flushMainBuffer(0,Number.POSITIVE_INFINITY,"audio"),this.bufferedTrack=null):this.bufferedTrack=t)}}completeAudioSwitch(t){const{hls:n}=this;this.flushAudioIfNeeded(t),this.bufferedTrack=t,this.switchingTrack=null,n.trigger(Ee.AUDIO_TRACK_SWITCHED,fo({},t))}}class BG extends rd{constructor(t,n){super(n,t.logger),this.hls=void 0,this.canLoad=!1,this.timer=-1,this.hls=t}destroy(){this.clearTimer(),this.hls=this.log=this.warn=null}clearTimer(){this.timer!==-1&&(self.clearTimeout(this.timer),this.timer=-1)}startLoad(){this.canLoad=!0,this.loadPlaylist()}stopLoad(){this.canLoad=!1,this.clearTimer()}switchParams(t,n,r){const o=n?.renditionReports;if(o){let a=-1;for(let s=0;s=0&&h>n.partTarget&&(c+=1)}const d=r&&Ule(r);return new Hle(l,c>=0?c:void 0,d)}}}loadPlaylist(t){this.clearTimer()}loadingPlaylist(t,n){this.clearTimer()}shouldLoadPlaylist(t){return this.canLoad&&!!t&&!!t.url&&(!t.details||t.details.live)}getUrlWithDirectives(t,n){if(n)try{return n.addDirectives(t)}catch(r){this.warn(`Could not construct new URL with HLS Delivery Directives: ${r}`)}return t}playlistLoaded(t,n,r){const{details:o,stats:a}=n,s=self.performance.now(),l=a.loading.first?Math.max(0,s-a.loading.first):0;o.advancedDateTime=Date.now()-l;const c=this.hls.config.timelineOffset;if(c!==o.appliedTimelineOffset){const h=Math.max(c||0,0);o.appliedTimelineOffset=h,o.fragments.forEach(p=>{p.setStart(p.playlistOffset+h)})}if(o.live||r!=null&&r.live){const h="levelInfo"in n?n.levelInfo:n.track;if(o.reloaded(r),r&&o.fragments.length>0){bCt(r,o,this);const x=o.playlistParsingError;if(x){this.warn(x);const E=this.hls;if(!E.config.ignorePlaylistParsingErrors){var d;const{networkDetails:_}=n;E.trigger(Ee.ERROR,{type:dr.NETWORK_ERROR,details:Ht.LEVEL_PARSING_ERROR,fatal:!1,url:o.url,error:x,reason:x.message,level:n.level||void 0,parent:(d=o.fragments[0])==null?void 0:d.type,networkDetails:_,stats:a});return}o.playlistParsingError=null}}o.requestScheduled===-1&&(o.requestScheduled=a.loading.start);const p=this.hls.mainForwardBufferInfo,v=p?p.end-p.len:0,g=(o.edge-v)*1e3,y=r2e(o,g);if(o.requestScheduled+y0){if($>o.targetduration*3)this.log(`Playlist last advanced ${M.toFixed(2)}s ago. Omitting segment and part directives.`),k=void 0,C=void 0;else if(r!=null&&r.tuneInGoal&&$-o.partTarget>r.tuneInGoal)this.warn(`CDN Tune-in goal increased from: ${r.tuneInGoal} to: ${L} with playlist age: ${o.age}`),L=0;else{const B=Math.floor(L/o.targetduration);if(k+=B,C!==void 0){const F=Math.round(L%o.targetduration/o.partTarget);C+=F}this.log(`CDN Tune-in age: ${o.ageHeader}s last advanced ${M.toFixed(2)}s goal: ${L} skip sn ${B} to part ${C}`)}o.tuneInGoal=L}if(S=this.getDeliveryDirectives(o,n.deliveryDirectives,k,C),x||!P){o.requestScheduled=s,this.loadingPlaylist(h,S);return}}else(o.canBlockReload||o.canSkipUntil)&&(S=this.getDeliveryDirectives(o,n.deliveryDirectives,k,C));S&&k!==void 0&&o.canBlockReload&&(o.requestScheduled=a.loading.first+Math.max(y-l*2,y/2)),this.scheduleLoading(h,S,o)}else this.clearTimer()}scheduleLoading(t,n,r){const o=r||t.details;if(!o){this.loadingPlaylist(t,n);return}const a=self.performance.now(),s=o.requestScheduled;if(a>=s){this.loadingPlaylist(t,n);return}const l=s-a;this.log(`reload live playlist ${t.name||t.bitrate+"bps"} in ${Math.round(l)} ms`),this.clearTimer(),this.timer=self.setTimeout(()=>this.loadingPlaylist(t,n),l)}getDeliveryDirectives(t,n,r,o){let a=Ule(t);return n!=null&&n.skip&&t.deltaUpdateFailed&&(r=n.msn,o=n.part,a=ZE.No),new Hle(r,o,a)}checkRetry(t){const n=t.details,r=DT(t),o=t.errorAction,{action:a,retryCount:s=0,retryConfig:l}=o||{},c=!!o&&!!l&&(a===Ba.RetryRequest||!o.resolved&&a===Ba.SendAlternateToPenaltyBox);if(c){var d;if(s>=l.maxNumRetry)return!1;if(r&&(d=t.context)!=null&&d.deliveryDirectives)this.warn(`Retrying playlist loading ${s+1}/${l.maxNumRetry} after "${n}" without delivery-directives`),this.loadPlaylist();else{const h=CG(l,s);this.clearTimer(),this.timer=self.setTimeout(()=>this.loadPlaylist(),h),this.warn(`Retrying playlist loading ${s+1}/${l.maxNumRetry} after "${n}" in ${h}ms`)}t.levelRetry=!0,o.resolved=!0}return c}}function I2e(e,t){if(e.length!==t.length)return!1;for(let n=0;ne[o]!==t[o])}function Gz(e,t){return t.label.toLowerCase()===e.name.toLowerCase()&&(!t.language||t.language.toLowerCase()===(e.lang||"").toLowerCase())}class Awt extends BG{constructor(t){super(t,"audio-track-controller"),this.tracks=[],this.groupIds=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0,this.registerListeners()}registerListeners(){const{hls:t}=this;t.on(Ee.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Ee.MANIFEST_PARSED,this.onManifestParsed,this),t.on(Ee.LEVEL_LOADING,this.onLevelLoading,this),t.on(Ee.LEVEL_SWITCHING,this.onLevelSwitching,this),t.on(Ee.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),t.on(Ee.ERROR,this.onError,this)}unregisterListeners(){const{hls:t}=this;t.off(Ee.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Ee.MANIFEST_PARSED,this.onManifestParsed,this),t.off(Ee.LEVEL_LOADING,this.onLevelLoading,this),t.off(Ee.LEVEL_SWITCHING,this.onLevelSwitching,this),t.off(Ee.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),t.off(Ee.ERROR,this.onError,this)}destroy(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.currentTrack=null,super.destroy()}onManifestLoading(){this.tracks=[],this.tracksInGroup=[],this.groupIds=null,this.currentTrack=null,this.trackId=-1,this.selectDefaultTrack=!0}onManifestParsed(t,n){this.tracks=n.audioTracks||[]}onAudioTrackLoaded(t,n){const{id:r,groupId:o,details:a}=n,s=this.tracksInGroup[r];if(!s||s.groupId!==o){this.warn(`Audio track with id:${r} and group:${o} not found in active group ${s?.groupId}`);return}const l=s.details;s.details=n.details,this.log(`Audio track ${r} "${s.name}" lang:${s.lang} group:${o} loaded [${a.startSN}-${a.endSN}]`),r===this.trackId&&this.playlistLoaded(r,n,l)}onLevelLoading(t,n){this.switchLevel(n.level)}onLevelSwitching(t,n){this.switchLevel(n.level)}switchLevel(t){const n=this.hls.levels[t];if(!n)return;const r=n.audioGroups||null,o=this.groupIds;let a=this.currentTrack;if(!r||o?.length!==r?.length||r!=null&&r.some(l=>o?.indexOf(l)===-1)){this.groupIds=r,this.trackId=-1,this.currentTrack=null;const l=this.tracks.filter(v=>!r||r.indexOf(v.groupId)!==-1);if(l.length)this.selectDefaultTrack&&!l.some(v=>v.default)&&(this.selectDefaultTrack=!1),l.forEach((v,g)=>{v.id=g});else if(!a&&!this.tracksInGroup.length)return;this.tracksInGroup=l;const c=this.hls.config.audioPreference;if(!a&&c){const v=pf(c,l,Hv);if(v>-1)a=l[v];else{const g=pf(c,this.tracks);a=this.tracks[g]}}let d=this.findTrackId(a);d===-1&&a&&(d=this.findTrackId(null));const h={audioTracks:l};this.log(`Updating audio tracks, ${l.length} track(s) found in group(s): ${r?.join(",")}`),this.hls.trigger(Ee.AUDIO_TRACKS_UPDATED,h);const p=this.trackId;if(d!==-1&&p===-1)this.setAudioTrack(d);else if(l.length&&p===-1){var s;const v=new Error(`No audio track selected for current audio group-ID(s): ${(s=this.groupIds)==null?void 0:s.join(",")} track count: ${l.length}`);this.warn(v.message),this.hls.trigger(Ee.ERROR,{type:dr.MEDIA_ERROR,details:Ht.AUDIO_TRACK_LOAD_ERROR,fatal:!0,error:v})}}}onError(t,n){n.fatal||!n.context||n.context.type===ki.AUDIO_TRACK&&n.context.id===this.trackId&&(!this.groupIds||this.groupIds.indexOf(n.context.groupId)!==-1)&&this.checkRetry(n)}get allAudioTracks(){return this.tracks}get audioTracks(){return this.tracksInGroup}get audioTrack(){return this.trackId}set audioTrack(t){this.selectDefaultTrack=!1,this.setAudioTrack(t)}setAudioOption(t){const n=this.hls;if(n.config.audioPreference=t,t){const r=this.allAudioTracks;if(this.selectDefaultTrack=!1,r.length){const o=this.currentTrack;if(o&&Sm(t,o,Hv))return o;const a=pf(t,this.tracksInGroup,Hv);if(a>-1){const s=this.tracksInGroup[a];return this.setAudioTrack(a),s}else if(o){let s=n.loadLevel;s===-1&&(s=n.firstAutoLevel);const l=jxt(t,n.levels,r,s,Hv);if(l===-1)return null;n.nextLoadLevel=l}if(t.channels||t.audioCodec){const s=pf(t,r);if(s>-1)return r[s]}}}return null}setAudioTrack(t){const n=this.tracksInGroup;if(t<0||t>=n.length){this.warn(`Invalid audio track id: ${t}`);return}this.selectDefaultTrack=!1;const r=this.currentTrack,o=n[t],a=o.details&&!o.details.live;if(t===this.trackId&&o===r&&a||(this.log(`Switching to audio-track ${t} "${o.name}" lang:${o.lang} group:${o.groupId} channels:${o.channels}`),this.trackId=t,this.currentTrack=o,this.hls.trigger(Ee.AUDIO_TRACK_SWITCHING,fo({},o)),a))return;const s=this.switchParams(o.url,r?.details,o.details);this.loadPlaylist(s)}findTrackId(t){const n=this.tracksInGroup;for(let r=0;r{const r={label:"async-blocker",execute:n,onStart:()=>{},onComplete:()=>{},onError:()=>{}};this.append(r,t)})}prependBlocker(t){return new Promise(n=>{if(this.queues){const r={label:"async-blocker-prepend",execute:n,onStart:()=>{},onComplete:()=>{},onError:()=>{}};this.queues[t].unshift(r)}})}removeBlockers(){this.queues!==null&&[this.queues.video,this.queues.audio,this.queues.audiovideo].forEach(t=>{var n;const r=(n=t[0])==null?void 0:n.label;(r==="async-blocker"||r==="async-blocker-prepend")&&(t[0].execute(),t.splice(0,1))})}unblockAudio(t){if(this.queues===null)return;this.queues.audio[0]===t&&this.shiftAndExecuteNext("audio")}executeNext(t){if(this.queues===null||this.tracks===null)return;const n=this.queues[t];if(n.length){const o=n[0];try{o.execute()}catch(a){var r;if(o.onError(a),this.queues===null||this.tracks===null)return;const s=(r=this.tracks[t])==null?void 0:r.buffer;s!=null&&s.updating||this.shiftAndExecuteNext(t)}}}shiftAndExecuteNext(t){this.queues!==null&&(this.queues[t].shift(),this.executeNext(t))}current(t){var n;return((n=this.queues)==null?void 0:n[t][0])||null}toString(){const{queues:t,tracks:n}=this;return t===null||n===null?"":` ${this.list("video")} ${this.list("audio")} ${this.list("audiovideo")}}`}list(t){var n,r;return(n=this.queues)!=null&&n[t]||(r=this.tracks)!=null&&r[t]?`${t}: (${this.listSbInfo(t)}) ${this.listOps(t)}`:""}listSbInfo(t){var n;const r=(n=this.tracks)==null?void 0:n[t],o=r?.buffer;return o?`SourceBuffer${o.updating?" updating":""}${r.ended?" ended":""}${r.ending?" ending":""}`:"none"}listOps(t){var n;return((n=this.queues)==null?void 0:n[t].map(r=>r.label).join(", "))||""}}const Iue=/(avc[1234]|hvc1|hev1|dvh[1e]|vp09|av01)(?:\.[^.,]+)+/,L2e="HlsJsTrackRemovedError";class Lwt extends Error{constructor(t){super(t),this.name=L2e}}class Dwt extends rd{constructor(t,n){super("buffer-controller",t.logger),this.hls=void 0,this.fragmentTracker=void 0,this.details=null,this._objectUrl=null,this.operationQueue=null,this.bufferCodecEventsTotal=0,this.media=null,this.mediaSource=null,this.lastMpegAudioChunk=null,this.blockedAudioAppend=null,this.lastVideoAppendEnd=0,this.appendSource=void 0,this.transferData=void 0,this.overrides=void 0,this.appendErrors={audio:0,video:0,audiovideo:0},this.tracks={},this.sourceBuffers=[[null,null],[null,null]],this._onEndStreaming=r=>{var o;this.hls&&((o=this.mediaSource)==null?void 0:o.readyState)==="open"&&this.hls.pauseBuffering()},this._onStartStreaming=r=>{this.hls&&this.hls.resumeBuffering()},this._onMediaSourceOpen=r=>{const{media:o,mediaSource:a}=this;r&&this.log("Media source opened"),!(!o||!a)&&(a.removeEventListener("sourceopen",this._onMediaSourceOpen),o.removeEventListener("emptied",this._onMediaEmptied),this.updateDuration(),this.hls.trigger(Ee.MEDIA_ATTACHED,{media:o,mediaSource:a}),this.mediaSource!==null&&this.checkPendingTracks())},this._onMediaSourceClose=()=>{this.log("Media source closed")},this._onMediaSourceEnded=()=>{this.log("Media source ended")},this._onMediaEmptied=()=>{const{mediaSrc:r,_objectUrl:o}=this;r!==o&&this.error(`Media element src was set while attaching MediaSource (${o} > ${r})`)},this.hls=t,this.fragmentTracker=n,this.appendSource=Qkt(P0(t.config.preferManagedMediaSource)),this.initTracks(),this.registerListeners()}hasSourceTypes(){return Object.keys(this.tracks).length>0}destroy(){this.unregisterListeners(),this.details=null,this.lastMpegAudioChunk=this.blockedAudioAppend=null,this.transferData=this.overrides=void 0,this.operationQueue&&(this.operationQueue.destroy(),this.operationQueue=null),this.hls=this.fragmentTracker=null,this._onMediaSourceOpen=this._onMediaSourceClose=null,this._onMediaSourceEnded=null,this._onStartStreaming=this._onEndStreaming=null}registerListeners(){const{hls:t}=this;t.on(Ee.MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(Ee.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(Ee.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Ee.MANIFEST_PARSED,this.onManifestParsed,this),t.on(Ee.BUFFER_RESET,this.onBufferReset,this),t.on(Ee.BUFFER_APPENDING,this.onBufferAppending,this),t.on(Ee.BUFFER_CODECS,this.onBufferCodecs,this),t.on(Ee.BUFFER_EOS,this.onBufferEos,this),t.on(Ee.BUFFER_FLUSHING,this.onBufferFlushing,this),t.on(Ee.LEVEL_UPDATED,this.onLevelUpdated,this),t.on(Ee.FRAG_PARSED,this.onFragParsed,this),t.on(Ee.FRAG_CHANGED,this.onFragChanged,this),t.on(Ee.ERROR,this.onError,this)}unregisterListeners(){const{hls:t}=this;t.off(Ee.MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(Ee.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(Ee.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Ee.MANIFEST_PARSED,this.onManifestParsed,this),t.off(Ee.BUFFER_RESET,this.onBufferReset,this),t.off(Ee.BUFFER_APPENDING,this.onBufferAppending,this),t.off(Ee.BUFFER_CODECS,this.onBufferCodecs,this),t.off(Ee.BUFFER_EOS,this.onBufferEos,this),t.off(Ee.BUFFER_FLUSHING,this.onBufferFlushing,this),t.off(Ee.LEVEL_UPDATED,this.onLevelUpdated,this),t.off(Ee.FRAG_PARSED,this.onFragParsed,this),t.off(Ee.FRAG_CHANGED,this.onFragChanged,this),t.off(Ee.ERROR,this.onError,this)}transferMedia(){const{media:t,mediaSource:n}=this;if(!t)return null;const r={};if(this.operationQueue){const a=this.isUpdating();a||this.operationQueue.removeBlockers();const s=this.isQueued();(a||s)&&this.warn(`Transfering MediaSource with${s?" operations in queue":""}${a?" updating SourceBuffer(s)":""} ${this.operationQueue}`),this.operationQueue.destroy()}const o=this.transferData;return!this.sourceBufferCount&&o&&o.mediaSource===n?bo(r,o.tracks):this.sourceBuffers.forEach(a=>{const[s]=a;s&&(r[s]=bo({},this.tracks[s]),this.removeBuffer(s)),a[0]=a[1]=null}),{media:t,mediaSource:n,tracks:r}}initTracks(){const t={};this.sourceBuffers=[[null,null],[null,null]],this.tracks=t,this.resetQueue(),this.resetAppendErrors(),this.lastMpegAudioChunk=this.blockedAudioAppend=null,this.lastVideoAppendEnd=0}onManifestLoading(){this.bufferCodecEventsTotal=0,this.details=null}onManifestParsed(t,n){var r;let o=2;(n.audio&&!n.video||!n.altAudio)&&(o=1),this.bufferCodecEventsTotal=o,this.log(`${o} bufferCodec event(s) expected.`),(r=this.transferData)!=null&&r.mediaSource&&this.sourceBufferCount&&o&&this.bufferCreated()}onMediaAttaching(t,n){const r=this.media=n.media;this.transferData=this.overrides=void 0;const o=P0(this.appendSource);if(o){const a=!!n.mediaSource;(a||n.overrides)&&(this.transferData=n,this.overrides=n.overrides);const s=this.mediaSource=n.mediaSource||new o;if(this.assignMediaSource(s),a)this._objectUrl=r.src,this.attachTransferred();else{const l=this._objectUrl=self.URL.createObjectURL(s);if(this.appendSource)try{r.removeAttribute("src");const c=self.ManagedMediaSource;r.disableRemotePlayback=r.disableRemotePlayback||c&&s instanceof c,Lue(r),Pwt(r,l),r.load()}catch{r.src=l}else r.src=l}r.addEventListener("emptied",this._onMediaEmptied)}}assignMediaSource(t){var n,r;this.log(`${((n=this.transferData)==null?void 0:n.mediaSource)===t?"transferred":"created"} media source: ${(r=t.constructor)==null?void 0:r.name}`),t.addEventListener("sourceopen",this._onMediaSourceOpen),t.addEventListener("sourceended",this._onMediaSourceEnded),t.addEventListener("sourceclose",this._onMediaSourceClose),this.appendSource&&(t.addEventListener("startstreaming",this._onStartStreaming),t.addEventListener("endstreaming",this._onEndStreaming))}attachTransferred(){const t=this.media,n=this.transferData;if(!n||!t)return;const r=this.tracks,o=n.tracks,a=o?Object.keys(o):null,s=a?a.length:0,l=()=>{Promise.resolve().then(()=>{this.media&&this.mediaSourceOpenOrEnded&&this._onMediaSourceOpen()})};if(o&&a&&s){if(!this.tracksReady){this.hls.config.startFragPrefetch=!0,this.log("attachTransferred: waiting for SourceBuffer track info");return}if(this.log(`attachTransferred: (bufferCodecEventsTotal ${this.bufferCodecEventsTotal}) required tracks: ${To(r,(c,d)=>c==="initSegment"?void 0:d)}; transfer tracks: ${To(o,(c,d)=>c==="initSegment"?void 0:d)}}`),!E3e(o,r)){n.mediaSource=null,n.tracks=void 0;const c=t.currentTime,d=this.details,h=Math.max(c,d?.fragments[0].start||0);if(h-c>1){this.log(`attachTransferred: waiting for playback to reach new tracks start time ${c} -> ${h}`);return}this.warn(`attachTransferred: resetting MediaSource for incompatible tracks ("${Object.keys(o)}"->"${Object.keys(r)}") start time: ${h} currentTime: ${c}`),this.onMediaDetaching(Ee.MEDIA_DETACHING,{}),this.onMediaAttaching(Ee.MEDIA_ATTACHING,n),t.currentTime=h;return}this.transferData=void 0,a.forEach(c=>{const d=c,h=o[d];if(h){const p=h.buffer;if(p){const v=this.fragmentTracker,g=h.id;if(v.hasFragments(g)||v.hasParts(g)){const k=Vr.getBuffered(p);v.detectEvictedFragments(d,k,g,null,!0)}const y=UF(d),S=[d,p];this.sourceBuffers[y]=S,p.updating&&this.operationQueue&&this.operationQueue.prependBlocker(d),this.trackSourceBuffer(d,h)}}}),l(),this.bufferCreated()}else this.log("attachTransferred: MediaSource w/o SourceBuffers"),l()}get mediaSourceOpenOrEnded(){var t;const n=(t=this.mediaSource)==null?void 0:t.readyState;return n==="open"||n==="ended"}onMediaDetaching(t,n){const r=!!n.transferMedia;this.transferData=this.overrides=void 0;const{media:o,mediaSource:a,_objectUrl:s}=this;if(a){if(this.log(`media source ${r?"transferring":"detaching"}`),r)this.sourceBuffers.forEach(([l])=>{l&&this.removeBuffer(l)}),this.resetQueue();else{if(this.mediaSourceOpenOrEnded){const l=a.readyState==="open";try{const c=a.sourceBuffers;for(let d=c.length;d--;)l&&c[d].abort(),a.removeSourceBuffer(c[d]);l&&a.endOfStream()}catch(c){this.warn(`onMediaDetaching: ${c.message} while calling endOfStream`)}}this.sourceBufferCount&&this.onBufferReset()}a.removeEventListener("sourceopen",this._onMediaSourceOpen),a.removeEventListener("sourceended",this._onMediaSourceEnded),a.removeEventListener("sourceclose",this._onMediaSourceClose),this.appendSource&&(a.removeEventListener("startstreaming",this._onStartStreaming),a.removeEventListener("endstreaming",this._onEndStreaming)),this.mediaSource=null,this._objectUrl=null}o&&(o.removeEventListener("emptied",this._onMediaEmptied),r||(s&&self.URL.revokeObjectURL(s),this.mediaSrc===s?(o.removeAttribute("src"),this.appendSource&&Lue(o),o.load()):this.warn("media|source.src was changed by a third party - skip cleanup")),this.media=null),this.hls.trigger(Ee.MEDIA_DETACHED,n)}onBufferReset(){this.sourceBuffers.forEach(([t])=>{t&&this.resetBuffer(t)}),this.initTracks()}resetBuffer(t){var n;const r=(n=this.tracks[t])==null?void 0:n.buffer;if(this.removeBuffer(t),r)try{var o;(o=this.mediaSource)!=null&&o.sourceBuffers.length&&this.mediaSource.removeSourceBuffer(r)}catch(a){this.warn(`onBufferReset ${t}`,a)}delete this.tracks[t]}removeBuffer(t){this.removeBufferListeners(t),this.sourceBuffers[UF(t)]=[null,null];const n=this.tracks[t];n&&(n.buffer=void 0)}resetQueue(){this.operationQueue&&this.operationQueue.destroy(),this.operationQueue=new Iwt(this.tracks)}onBufferCodecs(t,n){var r;const o=this.tracks,a=Object.keys(n);this.log(`BUFFER_CODECS: "${a}" (current SB count ${this.sourceBufferCount})`);const s="audiovideo"in n&&(o.audio||o.video)||o.audiovideo&&("audio"in n||"video"in n),l=!s&&this.sourceBufferCount&&this.media&&a.some(c=>!o[c]);if(s||l){this.warn(`Unsupported transition between "${Object.keys(o)}" and "${a}" SourceBuffers`);return}a.forEach(c=>{var d,h;const p=n[c],{id:v,codec:g,levelCodec:y,container:S,metadata:k,supplemental:C}=p;let x=o[c];const E=(d=this.transferData)==null||(d=d.tracks)==null?void 0:d[c],_=E!=null&&E.buffer?E:x,T=_?.pendingCodec||_?.codec,D=_?.levelCodec;x||(x=o[c]={buffer:void 0,listeners:[],codec:g,supplemental:C,container:S,levelCodec:y,metadata:k,id:v});const P=XE(T,D),M=P?.replace(Iue,"$1");let $=XE(g,y);const L=(h=$)==null?void 0:h.replace(Iue,"$1");$&&P&&M!==L&&(c.slice(0,5)==="audio"&&($=AT($,this.appendSource)),this.log(`switching codec ${T} to ${$}`),$!==(x.pendingCodec||x.codec)&&(x.pendingCodec=$),x.container=S,this.appendChangeType(c,S,$))}),(this.tracksReady||this.sourceBufferCount)&&(n.tracks=this.sourceBufferTracks),!this.sourceBufferCount&&(this.bufferCodecEventsTotal>1&&!this.tracks.video&&!n.video&&((r=n.audio)==null?void 0:r.id)==="main"&&(this.log("Main audio-only"),this.bufferCodecEventsTotal=1),this.mediaSourceOpenOrEnded&&this.checkPendingTracks())}get sourceBufferTracks(){return Object.keys(this.tracks).reduce((t,n)=>{const r=this.tracks[n];return t[n]={id:r.id,container:r.container,codec:r.codec,levelCodec:r.levelCodec},t},{})}appendChangeType(t,n,r){const o=`${n};codecs=${r}`,a={label:`change-type=${o}`,execute:()=>{const s=this.tracks[t];if(s){const l=s.buffer;l!=null&&l.changeType&&(this.log(`changing ${t} sourceBuffer type to ${o}`),l.changeType(o),s.codec=r,s.container=n)}this.shiftAndExecuteNext(t)},onStart:()=>{},onComplete:()=>{},onError:s=>{this.warn(`Failed to change ${t} SourceBuffer type`,s)}};this.append(a,t,this.isPending(this.tracks[t]))}blockAudio(t){var n;const r=t.start,o=r+t.duration*.05;if(((n=this.fragmentTracker.getAppendedFrag(r,nr.MAIN))==null?void 0:n.gap)===!0)return;const s={label:"block-audio",execute:()=>{var l;const c=this.tracks.video;(this.lastVideoAppendEnd>o||c!=null&&c.buffer&&Vr.isBuffered(c.buffer,o)||((l=this.fragmentTracker.getAppendedFrag(o,nr.MAIN))==null?void 0:l.gap)===!0)&&(this.blockedAudioAppend=null,this.shiftAndExecuteNext("audio"))},onStart:()=>{},onComplete:()=>{},onError:l=>{this.warn("Error executing block-audio operation",l)}};this.blockedAudioAppend={op:s,frag:t},this.append(s,"audio",!0)}unblockAudio(){const{blockedAudioAppend:t,operationQueue:n}=this;t&&n&&(this.blockedAudioAppend=null,n.unblockAudio(t.op))}onBufferAppending(t,n){const{tracks:r}=this,{data:o,type:a,parent:s,frag:l,part:c,chunkMeta:d,offset:h}=n,p=d.buffering[a],{sn:v,cc:g}=l,y=self.performance.now();p.start=y;const S=l.stats.buffering,k=c?c.stats.buffering:null;S.start===0&&(S.start=y),k&&k.start===0&&(k.start=y);const C=r.audio;let x=!1;a==="audio"&&C?.container==="audio/mpeg"&&(x=!this.lastMpegAudioChunk||d.id===1||this.lastMpegAudioChunk.sn!==d.sn,this.lastMpegAudioChunk=d);const E=r.video,_=E?.buffer;if(_&&v!=="initSegment"){const P=c||l,M=this.blockedAudioAppend;if(a==="audio"&&s!=="main"&&!this.blockedAudioAppend&&!(E.ending||E.ended)){const L=P.start+P.duration*.05,B=_.buffered,F=this.currentOp("video");!B.length&&!F?this.blockAudio(P):!F&&!Vr.isBuffered(_,L)&&this.lastVideoAppendEndL||${var P;p.executeStart=self.performance.now();const M=(P=this.tracks[a])==null?void 0:P.buffer;M&&(x?this.updateTimestampOffset(M,T,.1,a,v,g):h!==void 0&&jn(h)&&this.updateTimestampOffset(M,h,1e-6,a,v,g)),this.appendExecutor(o,a)},onStart:()=>{},onComplete:()=>{const P=self.performance.now();p.executeEnd=p.end=P,S.first===0&&(S.first=P),k&&k.first===0&&(k.first=P);const M={};this.sourceBuffers.forEach(([$,L])=>{$&&(M[$]=Vr.getBuffered(L))}),this.appendErrors[a]=0,a==="audio"||a==="video"?this.appendErrors.audiovideo=0:(this.appendErrors.audio=0,this.appendErrors.video=0),this.hls.trigger(Ee.BUFFER_APPENDED,{type:a,frag:l,part:c,chunkMeta:d,parent:l.type,timeRanges:M})},onError:P=>{var M;const $={type:dr.MEDIA_ERROR,parent:l.type,details:Ht.BUFFER_APPEND_ERROR,sourceBufferName:a,frag:l,part:c,chunkMeta:d,error:P,err:P,fatal:!1},L=(M=this.media)==null?void 0:M.error;if(P.code===DOMException.QUOTA_EXCEEDED_ERR||P.name=="QuotaExceededError"||"quota"in P)$.details=Ht.BUFFER_FULL_ERROR;else if(P.code===DOMException.INVALID_STATE_ERR&&this.mediaSourceOpenOrEnded&&!L)$.errorAction=gy(!0);else if(P.name===L2e&&this.sourceBufferCount===0)$.errorAction=gy(!0);else{const B=++this.appendErrors[a];this.warn(`Failed ${B}/${this.hls.config.appendErrorMaxRetry} times to append segment in "${a}" sourceBuffer (${L||"no media error"})`),(B>=this.hls.config.appendErrorMaxRetry||L)&&($.fatal=!0)}this.hls.trigger(Ee.ERROR,$)}};this.log(`queuing "${a}" append sn: ${v}${c?" p: "+c.index:""} of ${l.type===nr.MAIN?"level":"track"} ${l.level} cc: ${g}`),this.append(D,a,this.isPending(this.tracks[a]))}getFlushOp(t,n,r){return this.log(`queuing "${t}" remove ${n}-${r}`),{label:"remove",execute:()=>{this.removeExecutor(t,n,r)},onStart:()=>{},onComplete:()=>{this.hls.trigger(Ee.BUFFER_FLUSHED,{type:t})},onError:o=>{this.warn(`Failed to remove ${n}-${r} from "${t}" SourceBuffer`,o)}}}onBufferFlushing(t,n){const{type:r,startOffset:o,endOffset:a}=n;r?this.append(this.getFlushOp(r,o,a),r):this.sourceBuffers.forEach(([s])=>{s&&this.append(this.getFlushOp(s,o,a),s)})}onFragParsed(t,n){const{frag:r,part:o}=n,a=[],s=o?o.elementaryStreams:r.elementaryStreams;s[Eo.AUDIOVIDEO]?a.push("audiovideo"):(s[Eo.AUDIO]&&a.push("audio"),s[Eo.VIDEO]&&a.push("video"));const l=()=>{const c=self.performance.now();r.stats.buffering.end=c,o&&(o.stats.buffering.end=c);const d=o?o.stats:r.stats;this.hls.trigger(Ee.FRAG_BUFFERED,{frag:r,part:o,stats:d,id:r.type})};a.length===0&&this.warn(`Fragments must have at least one ElementaryStreamType set. type: ${r.type} level: ${r.level} sn: ${r.sn}`),this.blockBuffers(l,a).catch(c=>{this.warn(`Fragment buffered callback ${c}`),this.stepOperationQueue(this.sourceBufferTypes)})}onFragChanged(t,n){this.trimBuffers()}get bufferedToEnd(){return this.sourceBufferCount>0&&!this.sourceBuffers.some(([t])=>{if(t){const n=this.tracks[t];if(n)return!n.ended||n.ending}return!1})}onBufferEos(t,n){var r;this.sourceBuffers.forEach(([s])=>{if(s){const l=this.tracks[s];(!n.type||n.type===s)&&(l.ending=!0,l.ended||(l.ended=!0,this.log(`${s} buffer reached EOS`)))}});const o=((r=this.overrides)==null?void 0:r.endOfStream)!==!1;this.sourceBufferCount>0&&!this.sourceBuffers.some(([s])=>{var l;return s&&!((l=this.tracks[s])!=null&&l.ended)})?o?(this.log("Queueing EOS"),this.blockUntilOpen(()=>{this.tracksEnded();const{mediaSource:s}=this;if(!s||s.readyState!=="open"){s&&this.log(`Could not call mediaSource.endOfStream(). mediaSource.readyState: ${s.readyState}`);return}this.log("Calling mediaSource.endOfStream()"),s.endOfStream(),this.hls.trigger(Ee.BUFFERED_TO_END,void 0)})):(this.tracksEnded(),this.hls.trigger(Ee.BUFFERED_TO_END,void 0)):n.type==="video"&&this.unblockAudio()}tracksEnded(){this.sourceBuffers.forEach(([t])=>{if(t!==null){const n=this.tracks[t];n&&(n.ending=!1)}})}onLevelUpdated(t,{details:n}){n.fragments.length&&(this.details=n,this.updateDuration())}updateDuration(){this.blockUntilOpen(()=>{const t=this.getDurationAndRange();t&&this.updateMediaSource(t)})}onError(t,n){if(n.details===Ht.BUFFER_APPEND_ERROR&&n.frag){var r;const o=(r=n.errorAction)==null?void 0:r.nextAutoLevel;jn(o)&&o!==n.frag.level&&this.resetAppendErrors()}}resetAppendErrors(){this.appendErrors={audio:0,video:0,audiovideo:0}}trimBuffers(){const{hls:t,details:n,media:r}=this;if(!r||n===null||!this.sourceBufferCount)return;const o=t.config,a=r.currentTime,s=n.levelTargetDuration,l=n.live&&o.liveBackBufferLength!==null?o.liveBackBufferLength:o.backBufferLength;if(jn(l)&&l>=0){const d=Math.max(l,s),h=Math.floor(a/s)*s-d;this.flushBackBuffer(a,s,h)}const c=o.frontBufferFlushThreshold;if(jn(c)&&c>0){const d=Math.max(o.maxBufferLength,c),h=Math.max(d,s),p=Math.floor(a/s)*s+h;this.flushFrontBuffer(a,s,p)}}flushBackBuffer(t,n,r){this.sourceBuffers.forEach(([o,a])=>{if(a){const l=Vr.getBuffered(a);if(l.length>0&&r>l.start(0)){var s;this.hls.trigger(Ee.BACK_BUFFER_REACHED,{bufferEnd:r});const c=this.tracks[o];if((s=this.details)!=null&&s.live)this.hls.trigger(Ee.LIVE_BACK_BUFFER_REACHED,{bufferEnd:r});else if(c!=null&&c.ended){this.log(`Cannot flush ${o} back buffer while SourceBuffer is in ended state`);return}this.hls.trigger(Ee.BUFFER_FLUSHING,{startOffset:0,endOffset:r,type:o})}}})}flushFrontBuffer(t,n,r){this.sourceBuffers.forEach(([o,a])=>{if(a){const s=Vr.getBuffered(a),l=s.length;if(l<2)return;const c=s.start(l-1),d=s.end(l-1);if(r>c||t>=c&&t<=d)return;this.hls.trigger(Ee.BUFFER_FLUSHING,{startOffset:c,endOffset:1/0,type:o})}})}getDurationAndRange(){var t;const{details:n,mediaSource:r}=this;if(!n||!this.media||r?.readyState!=="open")return null;const o=n.edge;if(n.live&&this.hls.config.liveDurationInfinity){if(n.fragments.length&&r.setLiveSeekableRange){const d=Math.max(0,n.fragmentStart),h=Math.max(d,o);return{duration:1/0,start:d,end:h}}return{duration:1/0}}const a=(t=this.overrides)==null?void 0:t.duration;if(a)return jn(a)?{duration:a}:null;const s=this.media.duration,l=jn(r.duration)?r.duration:0;return o>l&&o>s||!jn(s)?{duration:o}:null}updateMediaSource({duration:t,start:n,end:r}){const o=this.mediaSource;!this.media||!o||o.readyState!=="open"||(o.duration!==t&&(jn(t)&&this.log(`Updating MediaSource duration to ${t.toFixed(3)}`),o.duration=t),n!==void 0&&r!==void 0&&(this.log(`MediaSource duration is set to ${o.duration}. Setting seekable range to ${n}-${r}.`),o.setLiveSeekableRange(n,r)))}get tracksReady(){const t=this.pendingTrackCount;return t>0&&(t>=this.bufferCodecEventsTotal||this.isPending(this.tracks.audiovideo))}checkPendingTracks(){const{bufferCodecEventsTotal:t,pendingTrackCount:n,tracks:r}=this;if(this.log(`checkPendingTracks (pending: ${n} codec events expected: ${t}) ${To(r)}`),this.tracksReady){var o;const a=(o=this.transferData)==null?void 0:o.tracks;a&&Object.keys(a).length?this.attachTransferred():this.createSourceBuffers()}}bufferCreated(){if(this.sourceBufferCount){const t={};this.sourceBuffers.forEach(([n,r])=>{if(n){const o=this.tracks[n];t[n]={buffer:r,container:o.container,codec:o.codec,supplemental:o.supplemental,levelCodec:o.levelCodec,id:o.id,metadata:o.metadata}}}),this.hls.trigger(Ee.BUFFER_CREATED,{tracks:t}),this.log(`SourceBuffers created. Running queue: ${this.operationQueue}`),this.sourceBuffers.forEach(([n])=>{this.executeNext(n)})}else{const t=new Error("could not create source buffer for media codec(s)");this.hls.trigger(Ee.ERROR,{type:dr.MEDIA_ERROR,details:Ht.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,error:t,reason:t.message})}}createSourceBuffers(){const{tracks:t,sourceBuffers:n,mediaSource:r}=this;if(!r)throw new Error("createSourceBuffers called when mediaSource was null");for(const a in t){const s=a,l=t[s];if(this.isPending(l)){const c=this.getTrackCodec(l,s),d=`${l.container};codecs=${c}`;l.codec=c,this.log(`creating sourceBuffer(${d})${this.currentOp(s)?" Queued":""} ${To(l)}`);try{const h=r.addSourceBuffer(d),p=UF(s),v=[s,h];n[p]=v,l.buffer=h}catch(h){var o;this.error(`error while trying to add sourceBuffer: ${h.message}`),this.shiftAndExecuteNext(s),(o=this.operationQueue)==null||o.removeBlockers(),delete this.tracks[s],this.hls.trigger(Ee.ERROR,{type:dr.MEDIA_ERROR,details:Ht.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:h,sourceBufferName:s,mimeType:d,parent:l.id});return}this.trackSourceBuffer(s,l)}}this.bufferCreated()}getTrackCodec(t,n){const r=t.supplemental;let o=t.codec;r&&(n==="video"||n==="audiovideo")&&k_(r,"video")&&(o=Sxt(o,r));const a=XE(o,t.levelCodec);return a?n.slice(0,5)==="audio"?AT(a,this.appendSource):a:""}trackSourceBuffer(t,n){const r=n.buffer;if(!r)return;const o=this.getTrackCodec(n,t);this.tracks[t]={buffer:r,codec:o,container:n.container,levelCodec:n.levelCodec,supplemental:n.supplemental,metadata:n.metadata,id:n.id,listeners:[]},this.removeBufferListeners(t),this.addBufferListener(t,"updatestart",this.onSBUpdateStart),this.addBufferListener(t,"updateend",this.onSBUpdateEnd),this.addBufferListener(t,"error",this.onSBUpdateError),this.appendSource&&this.addBufferListener(t,"bufferedchange",(a,s)=>{const l=s.removedRanges;l!=null&&l.length&&this.hls.trigger(Ee.BUFFER_FLUSHED,{type:a})})}get mediaSrc(){var t,n;const r=((t=this.media)==null||(n=t.querySelector)==null?void 0:n.call(t,"source"))||this.media;return r?.src}onSBUpdateStart(t){const n=this.currentOp(t);n&&n.onStart()}onSBUpdateEnd(t){var n;if(((n=this.mediaSource)==null?void 0:n.readyState)==="closed"){this.resetBuffer(t);return}const r=this.currentOp(t);r&&(r.onComplete(),this.shiftAndExecuteNext(t))}onSBUpdateError(t,n){var r;const o=new Error(`${t} SourceBuffer error. MediaSource readyState: ${(r=this.mediaSource)==null?void 0:r.readyState}`);this.error(`${o}`,n),this.hls.trigger(Ee.ERROR,{type:dr.MEDIA_ERROR,details:Ht.BUFFER_APPENDING_ERROR,sourceBufferName:t,error:o,fatal:!1});const a=this.currentOp(t);a&&a.onError(o)}updateTimestampOffset(t,n,r,o,a,s){const l=n-t.timestampOffset;Math.abs(l)>=r&&(this.log(`Updating ${o} SourceBuffer timestampOffset to ${n} (sn: ${a} cc: ${s})`),t.timestampOffset=n)}removeExecutor(t,n,r){const{media:o,mediaSource:a}=this,s=this.tracks[t],l=s?.buffer;if(!o||!a||!l){this.warn(`Attempting to remove from the ${t} SourceBuffer, but it does not exist`),this.shiftAndExecuteNext(t);return}const c=jn(o.duration)?o.duration:1/0,d=jn(a.duration)?a.duration:1/0,h=Math.max(0,n),p=Math.min(r,c,d);p>h&&(!s.ending||s.ended)?(s.ended=!1,this.log(`Removing [${h},${p}] from the ${t} SourceBuffer`),l.remove(h,p)):this.shiftAndExecuteNext(t)}appendExecutor(t,n){const r=this.tracks[n],o=r?.buffer;if(!o)throw new Lwt(`Attempting to append to the ${n} SourceBuffer, but it does not exist`);r.ending=!1,r.ended=!1,o.appendBuffer(t)}blockUntilOpen(t){if(this.isUpdating()||this.isQueued())this.blockBuffers(t).catch(n=>{this.warn(`SourceBuffer blocked callback ${n}`),this.stepOperationQueue(this.sourceBufferTypes)});else try{t()}catch(n){this.warn(`Callback run without blocking ${this.operationQueue} ${n}`)}}isUpdating(){return this.sourceBuffers.some(([t,n])=>t&&n.updating)}isQueued(){return this.sourceBuffers.some(([t])=>t&&!!this.currentOp(t))}isPending(t){return!!t&&!t.buffer}blockBuffers(t,n=this.sourceBufferTypes){if(!n.length)return this.log("Blocking operation requested, but no SourceBuffers exist"),Promise.resolve().then(t);const{operationQueue:r}=this,o=n.map(s=>this.appendBlocker(s));return n.length>1&&!!this.blockedAudioAppend&&this.unblockAudio(),Promise.all(o).then(s=>{r===this.operationQueue&&(t(),this.stepOperationQueue(this.sourceBufferTypes))})}stepOperationQueue(t){t.forEach(n=>{var r;const o=(r=this.tracks[n])==null?void 0:r.buffer;!o||o.updating||this.shiftAndExecuteNext(n)})}append(t,n,r){this.operationQueue&&this.operationQueue.append(t,n,r)}appendBlocker(t){if(this.operationQueue)return this.operationQueue.appendBlocker(t)}currentOp(t){return this.operationQueue?this.operationQueue.current(t):null}executeNext(t){t&&this.operationQueue&&this.operationQueue.executeNext(t)}shiftAndExecuteNext(t){this.operationQueue&&this.operationQueue.shiftAndExecuteNext(t)}get pendingTrackCount(){return Object.keys(this.tracks).reduce((t,n)=>t+(this.isPending(this.tracks[n])?1:0),0)}get sourceBufferCount(){return this.sourceBuffers.reduce((t,[n])=>t+(n?1:0),0)}get sourceBufferTypes(){return this.sourceBuffers.map(([t])=>t).filter(t=>!!t)}addBufferListener(t,n,r){const o=this.tracks[t];if(!o)return;const a=o.buffer;if(!a)return;const s=r.bind(this,t);o.listeners.push({event:n,listener:s}),a.addEventListener(n,s)}removeBufferListeners(t){const n=this.tracks[t];if(!n)return;const r=n.buffer;r&&(n.listeners.forEach(o=>{r.removeEventListener(o.event,o.listener)}),n.listeners.length=0)}}function Lue(e){const t=e.querySelectorAll("source");[].slice.call(t).forEach(n=>{e.removeChild(n)})}function Pwt(e,t){const n=self.document.createElement("source");n.type="video/mp4",n.src=t,e.appendChild(n)}function UF(e){return e==="audio"?1:0}class NG{constructor(t){this.hls=void 0,this.autoLevelCapping=void 0,this.firstLevel=void 0,this.media=void 0,this.restrictedLevels=void 0,this.timer=void 0,this.clientRect=void 0,this.streamController=void 0,this.hls=t,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.firstLevel=-1,this.media=null,this.restrictedLevels=[],this.timer=void 0,this.clientRect=null,this.registerListeners()}setStreamController(t){this.streamController=t}destroy(){this.hls&&this.unregisterListener(),this.timer&&this.stopCapping(),this.media=null,this.clientRect=null,this.hls=this.streamController=null}registerListeners(){const{hls:t}=this;t.on(Ee.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),t.on(Ee.MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(Ee.MANIFEST_PARSED,this.onManifestParsed,this),t.on(Ee.LEVELS_UPDATED,this.onLevelsUpdated,this),t.on(Ee.BUFFER_CODECS,this.onBufferCodecs,this),t.on(Ee.MEDIA_DETACHING,this.onMediaDetaching,this)}unregisterListener(){const{hls:t}=this;t.off(Ee.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),t.off(Ee.MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(Ee.MANIFEST_PARSED,this.onManifestParsed,this),t.off(Ee.LEVELS_UPDATED,this.onLevelsUpdated,this),t.off(Ee.BUFFER_CODECS,this.onBufferCodecs,this),t.off(Ee.MEDIA_DETACHING,this.onMediaDetaching,this)}onFpsDropLevelCapping(t,n){const r=this.hls.levels[n.droppedLevel];this.isLevelAllowed(r)&&this.restrictedLevels.push({bitrate:r.bitrate,height:r.height,width:r.width})}onMediaAttaching(t,n){this.media=n.media instanceof HTMLVideoElement?n.media:null,this.clientRect=null,this.timer&&this.hls.levels.length&&this.detectPlayerSize()}onManifestParsed(t,n){const r=this.hls;this.restrictedLevels=[],this.firstLevel=n.firstLevel,r.config.capLevelToPlayerSize&&n.video&&this.startCapping()}onLevelsUpdated(t,n){this.timer&&jn(this.autoLevelCapping)&&this.detectPlayerSize()}onBufferCodecs(t,n){this.hls.config.capLevelToPlayerSize&&n.video&&this.startCapping()}onMediaDetaching(){this.stopCapping(),this.media=null}detectPlayerSize(){if(this.media){if(this.mediaHeight<=0||this.mediaWidth<=0){this.clientRect=null;return}const t=this.hls.levels;if(t.length){const n=this.hls,r=this.getMaxLevel(t.length-1);r!==this.autoLevelCapping&&n.logger.log(`Setting autoLevelCapping to ${r}: ${t[r].height}p@${t[r].bitrate} for media ${this.mediaWidth}x${this.mediaHeight}`),n.autoLevelCapping=r,n.autoLevelEnabled&&n.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=n.autoLevelCapping}}}getMaxLevel(t){const n=this.hls.levels;if(!n.length)return-1;const r=n.filter((o,a)=>this.isLevelAllowed(o)&&a<=t);return this.clientRect=null,NG.getMaxLevelByMediaSize(r,this.mediaWidth,this.mediaHeight)}startCapping(){this.timer||(this.autoLevelCapping=Number.POSITIVE_INFINITY,self.clearInterval(this.timer),this.timer=self.setInterval(this.detectPlayerSize.bind(this),1e3),this.detectPlayerSize())}stopCapping(){this.restrictedLevels=[],this.firstLevel=-1,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(self.clearInterval(this.timer),this.timer=void 0)}getDimensions(){if(this.clientRect)return this.clientRect;const t=this.media,n={width:0,height:0};if(t){const r=t.getBoundingClientRect();n.width=r.width,n.height=r.height,!n.width&&!n.height&&(n.width=r.right-r.left||t.width||0,n.height=r.bottom-r.top||t.height||0)}return this.clientRect=n,n}get mediaWidth(){return this.getDimensions().width*this.contentScaleFactor}get mediaHeight(){return this.getDimensions().height*this.contentScaleFactor}get contentScaleFactor(){let t=1;if(!this.hls.config.ignoreDevicePixelRatio)try{t=self.devicePixelRatio}catch{}return Math.min(t,this.hls.config.maxDevicePixelRatio)}isLevelAllowed(t){return!this.restrictedLevels.some(r=>t.bitrate===r.bitrate&&t.width===r.width&&t.height===r.height)}static getMaxLevelByMediaSize(t,n,r){if(!(t!=null&&t.length))return-1;const o=(l,c)=>c?l.width!==c.width||l.height!==c.height:!0;let a=t.length-1;const s=Math.max(n,r);for(let l=0;l=s||c.height>=s)&&o(c,t[l+1])){a=l;break}}return a}}const Rwt={MANIFEST:"m",AUDIO:"a",VIDEO:"v",MUXED:"av",INIT:"i",CAPTION:"c",TIMED_TEXT:"tt",KEY:"k",OTHER:"o"},fu=Rwt,Mwt={HLS:"h"},Owt=Mwt;class Ef{constructor(t,n){Array.isArray(t)&&(t=t.map(r=>r instanceof Ef?r:new Ef(r))),this.value=t,this.params=n}}const $wt="Dict";function Bwt(e){return Array.isArray(e)?JSON.stringify(e):e instanceof Map?"Map{}":e instanceof Set?"Set{}":typeof e=="object"?JSON.stringify(e):String(e)}function Nwt(e,t,n,r){return new Error(`failed to ${e} "${Bwt(t)}" as ${n}`,{cause:r})}function Tf(e,t,n){return Nwt("serialize",e,t,n)}class D2e{constructor(t){this.description=t}}const Due="Bare Item",Fwt="Boolean";function jwt(e){if(typeof e!="boolean")throw Tf(e,Fwt);return e?"?1":"?0"}function Vwt(e){return btoa(String.fromCharCode(...e))}const zwt="Byte Sequence";function Uwt(e){if(ArrayBuffer.isView(e)===!1)throw Tf(e,zwt);return`:${Vwt(e)}:`}const Hwt="Integer";function Wwt(e){return e<-999999999999999||99999999999999912)throw Tf(e,Kwt);const n=t.toString();return n.includes(".")?n:`${n}.0`}const Ywt="String",Xwt=/[\x00-\x1f\x7f]+/;function Zwt(e){if(Xwt.test(e))throw Tf(e,Ywt);return`"${e.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`}function Jwt(e){return e.description||e.toString().slice(7,-1)}const Qwt="Token";function Pue(e){const t=Jwt(e);if(/^([a-zA-Z*])([!#$%&'*+\-.^_`|~\w:/]*)$/.test(t)===!1)throw Tf(t,Qwt);return t}function Kz(e){switch(typeof e){case"number":if(!jn(e))throw Tf(e,Due);return Number.isInteger(e)?P2e(e):qwt(e);case"string":return Zwt(e);case"symbol":return Pue(e);case"boolean":return jwt(e);case"object":if(e instanceof Date)return Gwt(e);if(e instanceof Uint8Array)return Uwt(e);if(e instanceof D2e)return Pue(e);default:throw Tf(e,Due)}}const eEt="Key";function qz(e){if(/^[a-z*][a-z0-9\-_.*]*$/.test(e)===!1)throw Tf(e,eEt);return e}function FG(e){return e==null?"":Object.entries(e).map(([t,n])=>n===!0?`;${qz(t)}`:`;${qz(t)}=${Kz(n)}`).join("")}function M2e(e){return e instanceof Ef?`${Kz(e.value)}${FG(e.params)}`:Kz(e)}function tEt(e){return`(${e.value.map(M2e).join(" ")})${FG(e.params)}`}function nEt(e,t={whitespace:!0}){if(typeof e!="object"||e==null)throw Tf(e,$wt);const n=e instanceof Map?e.entries():Object.entries(e),r=t?.whitespace?" ":"";return Array.from(n).map(([o,a])=>{a instanceof Ef||(a=new Ef(a));let s=qz(o);return a.value===!0?s+=FG(a.params):(s+="=",Array.isArray(a.value)?s+=tEt(a):s+=M2e(a)),s}).join(`,${r}`)}function O2e(e,t){return nEt(e,t)}const ef="CMCD-Object",ps="CMCD-Request",Fv="CMCD-Session",Np="CMCD-Status",rEt={br:ef,ab:ef,d:ef,ot:ef,tb:ef,tpb:ef,lb:ef,tab:ef,lab:ef,url:ef,pb:ps,bl:ps,tbl:ps,dl:ps,ltc:ps,mtp:ps,nor:ps,nrr:ps,rc:ps,sn:ps,sta:ps,su:ps,ttfb:ps,ttfbb:ps,ttlb:ps,cmsdd:ps,cmsds:ps,smrt:ps,df:ps,cs:ps,ts:ps,cid:Fv,pr:Fv,sf:Fv,sid:Fv,st:Fv,v:Fv,msd:Fv,bs:Np,bsd:Np,cdn:Np,rtp:Np,bg:Np,pt:Np,ec:Np,e:Np},iEt={REQUEST:ps};function oEt(e){return Object.keys(e).reduce((t,n)=>{var r;return(r=e[n])===null||r===void 0||r.forEach(o=>t[o]=n),t},{})}function sEt(e,t){const n={};if(!e)return n;const r=Object.keys(e),o=t?oEt(t):{};return r.reduce((a,s)=>{var l;const c=rEt[s]||o[s]||iEt.REQUEST,d=(l=a[c])!==null&&l!==void 0?l:a[c]={};return d[s]=e[s],a},n)}function aEt(e){return["ot","sf","st","e","sta"].includes(e)}function lEt(e){return typeof e=="number"?jn(e):e!=null&&e!==""&&e!==!1}const $2e="event";function uEt(e,t){const n=new URL(e),r=new URL(t);if(n.origin!==r.origin)return e;const o=n.pathname.split("/").slice(1),a=r.pathname.split("/").slice(1,-1);for(;o[0]===a[0];)o.shift(),a.shift();for(;a.length;)a.shift(),o.unshift("..");return o.join("/")+n.search+n.hash}const t8=e=>Math.round(e),Yz=(e,t)=>Array.isArray(e)?e.map(n=>Yz(n,t)):e instanceof Ef&&typeof e.value=="string"?new Ef(Yz(e.value,t),e.params):(t.baseUrl&&(e=uEt(e,t.baseUrl)),t.version===1?encodeURIComponent(e):e),kC=e=>t8(e/100)*100,cEt=(e,t)=>{let n=e;return t.version>=2&&(e instanceof Ef&&typeof e.value=="string"?n=new Ef([e]):typeof e=="string"&&(n=[e])),Yz(n,t)},dEt={br:t8,d:t8,bl:kC,dl:kC,mtp:kC,nor:cEt,rtp:kC,tb:t8},B2e="request",N2e="response",jG=["ab","bg","bl","br","bs","bsd","cdn","cid","cs","df","ec","lab","lb","ltc","msd","mtp","pb","pr","pt","sf","sid","sn","st","sta","tab","tb","tbl","tpb","ts","v"],fEt=["e"],hEt=/^[a-zA-Z0-9-.]+-[a-zA-Z0-9-.]+$/;function JA(e){return hEt.test(e)}function pEt(e){return jG.includes(e)||fEt.includes(e)||JA(e)}const F2e=["d","dl","nor","ot","rtp","su"];function vEt(e){return jG.includes(e)||F2e.includes(e)||JA(e)}const mEt=["cmsdd","cmsds","rc","smrt","ttfb","ttfbb","ttlb","url"];function gEt(e){return jG.includes(e)||F2e.includes(e)||mEt.includes(e)||JA(e)}const yEt=["bl","br","bs","cid","d","dl","mtp","nor","nrr","ot","pr","rtp","sf","sid","st","su","tb","v"];function bEt(e){return yEt.includes(e)||JA(e)}const _Et={[N2e]:gEt,[$2e]:pEt,[B2e]:vEt};function j2e(e,t={}){const n={};if(e==null||typeof e!="object")return n;const r=t.version||e.v||1,o=t.reportingMode||B2e,a=r===1?bEt:_Et[o];let s=Object.keys(e).filter(a);const l=t.filter;typeof l=="function"&&(s=s.filter(l));const c=o===N2e||o===$2e;c&&!s.includes("ts")&&s.push("ts"),r>1&&!s.includes("v")&&s.push("v");const d=bo({},dEt,t.formatters),h={version:r,reportingMode:o,baseUrl:t.baseUrl};return s.sort().forEach(p=>{let v=e[p];const g=d[p];if(typeof g=="function"&&(v=g(v,h)),p==="v"){if(r===1)return;v=r}p=="pr"&&v===1||(c&&p==="ts"&&!jn(v)&&(v=Date.now()),lEt(v)&&(aEt(p)&&typeof v=="string"&&(v=new D2e(v)),n[p]=v))}),n}function SEt(e,t={}){const n={};if(!e)return n;const r=j2e(e,t),o=sEt(r,t?.customHeaderMap);return Object.entries(o).reduce((a,[s,l])=>{const c=O2e(l,{whitespace:!1});return c&&(a[s]=c),a},n)}function kEt(e,t,n){return bo(e,SEt(t,n))}const xEt="CMCD";function CEt(e,t={}){return e?O2e(j2e(e,t),{whitespace:!1}):""}function wEt(e,t={}){if(!e)return"";const n=CEt(e,t);return encodeURIComponent(n)}function EEt(e,t={}){if(!e)return"";const n=wEt(e,t);return`${xEt}=${n}`}const Rue=/CMCD=[^&#]+/;function TEt(e,t,n){const r=EEt(t,n);if(!r)return e;if(Rue.test(e))return e.replace(Rue,r);const o=e.includes("?")?"&":"?";return`${e}${o}${r}`}class AEt{constructor(t){this.hls=void 0,this.config=void 0,this.media=void 0,this.sid=void 0,this.cid=void 0,this.useHeaders=!1,this.includeKeys=void 0,this.initialized=!1,this.starved=!1,this.buffering=!0,this.audioBuffer=void 0,this.videoBuffer=void 0,this.onWaiting=()=>{this.initialized&&(this.starved=!0),this.buffering=!0},this.onPlaying=()=>{this.initialized||(this.initialized=!0),this.buffering=!1},this.applyPlaylistData=o=>{try{this.apply(o,{ot:fu.MANIFEST,su:!this.initialized})}catch(a){this.hls.logger.warn("Could not generate manifest CMCD data.",a)}},this.applyFragmentData=o=>{try{const{frag:a,part:s}=o,l=this.hls.levels[a.level],c=this.getObjectType(a),d={d:(s||a).duration*1e3,ot:c};(c===fu.VIDEO||c===fu.AUDIO||c==fu.MUXED)&&(d.br=l.bitrate/1e3,d.tb=this.getTopBandwidth(c)/1e3,d.bl=this.getBufferLength(c));const h=s?this.getNextPart(s):this.getNextFrag(a);h!=null&&h.url&&h.url!==a.url&&(d.nor=h.url),this.apply(o,d)}catch(a){this.hls.logger.warn("Could not generate segment CMCD data.",a)}},this.hls=t;const n=this.config=t.config,{cmcd:r}=n;r!=null&&(n.pLoader=this.createPlaylistLoader(),n.fLoader=this.createFragmentLoader(),this.sid=r.sessionId||t.sessionId,this.cid=r.contentId,this.useHeaders=r.useHeaders===!0,this.includeKeys=r.includeKeys,this.registerListeners())}registerListeners(){const t=this.hls;t.on(Ee.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(Ee.MEDIA_DETACHED,this.onMediaDetached,this),t.on(Ee.BUFFER_CREATED,this.onBufferCreated,this)}unregisterListeners(){const t=this.hls;t.off(Ee.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(Ee.MEDIA_DETACHED,this.onMediaDetached,this),t.off(Ee.BUFFER_CREATED,this.onBufferCreated,this)}destroy(){this.unregisterListeners(),this.onMediaDetached(),this.hls=this.config=this.audioBuffer=this.videoBuffer=null,this.onWaiting=this.onPlaying=this.media=null}onMediaAttached(t,n){this.media=n.media,this.media.addEventListener("waiting",this.onWaiting),this.media.addEventListener("playing",this.onPlaying)}onMediaDetached(){this.media&&(this.media.removeEventListener("waiting",this.onWaiting),this.media.removeEventListener("playing",this.onPlaying),this.media=null)}onBufferCreated(t,n){var r,o;this.audioBuffer=(r=n.tracks.audio)==null?void 0:r.buffer,this.videoBuffer=(o=n.tracks.video)==null?void 0:o.buffer}createData(){var t;return{v:1,sf:Owt.HLS,sid:this.sid,cid:this.cid,pr:(t=this.media)==null?void 0:t.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}}apply(t,n={}){bo(n,this.createData());const r=n.ot===fu.INIT||n.ot===fu.VIDEO||n.ot===fu.MUXED;this.starved&&r&&(n.bs=!0,n.su=!0,this.starved=!1),n.su==null&&(n.su=this.buffering);const{includeKeys:o}=this;o&&(n=Object.keys(n).reduce((s,l)=>(o.includes(l)&&(s[l]=n[l]),s),{}));const a={baseUrl:t.url};this.useHeaders?(t.headers||(t.headers={}),kEt(t.headers,n,a)):t.url=TEt(t.url,n,a)}getNextFrag(t){var n;const r=(n=this.hls.levels[t.level])==null?void 0:n.details;if(r){const o=t.sn-r.startSN;return r.fragments[o+1]}}getNextPart(t){var n;const{index:r,fragment:o}=t,a=(n=this.hls.levels[o.level])==null||(n=n.details)==null?void 0:n.partList;if(a){const{sn:s}=o;for(let l=a.length-1;l>=0;l--){const c=a[l];if(c.index===r&&c.fragment.sn===s)return a[l+1]}}}getObjectType(t){const{type:n}=t;if(n==="subtitle")return fu.TIMED_TEXT;if(t.sn==="initSegment")return fu.INIT;if(n==="audio")return fu.AUDIO;if(n==="main")return this.hls.audioTracks.length?fu.VIDEO:fu.MUXED}getTopBandwidth(t){let n=0,r;const o=this.hls;if(t===fu.AUDIO)r=o.audioTracks;else{const a=o.maxAutoLevel,s=a>-1?a+1:o.levels.length;r=o.levels.slice(0,s)}return r.forEach(a=>{a.bitrate>n&&(n=a.bitrate)}),n>0?n:NaN}getBufferLength(t){const n=this.media,r=t===fu.AUDIO?this.audioBuffer:this.videoBuffer;return!r||!n?NaN:Vr.bufferInfo(r,n.currentTime,this.config.maxBufferHole).len*1e3}createPlaylistLoader(){const{pLoader:t}=this.config,n=this.applyPlaylistData,r=t||this.config.loader;return class{constructor(a){this.loader=void 0,this.loader=new r(a)}get stats(){return this.loader.stats}get context(){return this.loader.context}destroy(){this.loader.destroy()}abort(){this.loader.abort()}load(a,s,l){n(a),this.loader.load(a,s,l)}}}createFragmentLoader(){const{fLoader:t}=this.config,n=this.applyFragmentData,r=t||this.config.loader;return class{constructor(a){this.loader=void 0,this.loader=new r(a)}get stats(){return this.loader.stats}get context(){return this.loader.context}destroy(){this.loader.destroy()}abort(){this.loader.abort()}load(a,s,l){n(a),this.loader.load(a,s,l)}}}}const IEt=3e5;class LEt extends rd{constructor(t){super("content-steering",t.logger),this.hls=void 0,this.loader=null,this.uri=null,this.pathwayId=".",this._pathwayPriority=null,this.timeToLoad=300,this.reloadTimer=-1,this.updated=0,this.started=!1,this.enabled=!0,this.levels=null,this.audioTracks=null,this.subtitleTracks=null,this.penalizedPathways={},this.hls=t,this.registerListeners()}registerListeners(){const t=this.hls;t.on(Ee.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Ee.MANIFEST_LOADED,this.onManifestLoaded,this),t.on(Ee.MANIFEST_PARSED,this.onManifestParsed,this),t.on(Ee.ERROR,this.onError,this)}unregisterListeners(){const t=this.hls;t&&(t.off(Ee.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Ee.MANIFEST_LOADED,this.onManifestLoaded,this),t.off(Ee.MANIFEST_PARSED,this.onManifestParsed,this),t.off(Ee.ERROR,this.onError,this))}pathways(){return(this.levels||[]).reduce((t,n)=>(t.indexOf(n.pathwayId)===-1&&t.push(n.pathwayId),t),[])}get pathwayPriority(){return this._pathwayPriority}set pathwayPriority(t){this.updatePathwayPriority(t)}startLoad(){if(this.started=!0,this.clearTimeout(),this.enabled&&this.uri){if(this.updated){const t=this.timeToLoad*1e3-(performance.now()-this.updated);if(t>0){this.scheduleRefresh(this.uri,t);return}}this.loadSteeringManifest(this.uri)}}stopLoad(){this.started=!1,this.loader&&(this.loader.destroy(),this.loader=null),this.clearTimeout()}clearTimeout(){this.reloadTimer!==-1&&(self.clearTimeout(this.reloadTimer),this.reloadTimer=-1)}destroy(){this.unregisterListeners(),this.stopLoad(),this.hls=null,this.levels=this.audioTracks=this.subtitleTracks=null}removeLevel(t){const n=this.levels;n&&(this.levels=n.filter(r=>r!==t))}onManifestLoading(){this.stopLoad(),this.enabled=!0,this.timeToLoad=300,this.updated=0,this.uri=null,this.pathwayId=".",this.levels=this.audioTracks=this.subtitleTracks=null}onManifestLoaded(t,n){const{contentSteering:r}=n;r!==null&&(this.pathwayId=r.pathwayId,this.uri=r.uri,this.started&&this.startLoad())}onManifestParsed(t,n){this.audioTracks=n.audioTracks,this.subtitleTracks=n.subtitleTracks}onError(t,n){const{errorAction:r}=n;if(r?.action===Ba.SendAlternateToPenaltyBox&&r.flags===ec.MoveAllAlternatesMatchingHost){const o=this.levels;let a=this._pathwayPriority,s=this.pathwayId;if(n.context){const{groupId:l,pathwayId:c,type:d}=n.context;l&&o?s=this.getPathwayForGroupId(l,d,s):c&&(s=c)}s in this.penalizedPathways||(this.penalizedPathways[s]=performance.now()),!a&&o&&(a=this.pathways()),a&&a.length>1&&(this.updatePathwayPriority(a),r.resolved=this.pathwayId!==s),n.details===Ht.BUFFER_APPEND_ERROR&&!n.fatal?r.resolved=!0:r.resolved||this.warn(`Could not resolve ${n.details} ("${n.error.message}") with content-steering for Pathway: ${s} levels: ${o&&o.length} priorities: ${To(a)} penalized: ${To(this.penalizedPathways)}`)}}filterParsedLevels(t){this.levels=t;let n=this.getLevelsForPathway(this.pathwayId);if(n.length===0){const r=t[0].pathwayId;this.log(`No levels found in Pathway ${this.pathwayId}. Setting initial Pathway to "${r}"`),n=this.getLevelsForPathway(r),this.pathwayId=r}return n.length!==t.length&&this.log(`Found ${n.length}/${t.length} levels in Pathway "${this.pathwayId}"`),n}getLevelsForPathway(t){return this.levels===null?[]:this.levels.filter(n=>t===n.pathwayId)}updatePathwayPriority(t){this._pathwayPriority=t;let n;const r=this.penalizedPathways,o=performance.now();Object.keys(r).forEach(a=>{o-r[a]>IEt&&delete r[a]});for(let a=0;a0){this.log(`Setting Pathway to "${s}"`),this.pathwayId=s,s2e(n),this.hls.trigger(Ee.LEVELS_UPDATED,{levels:n});const d=this.hls.levels[l];c&&d&&this.levels&&(d.attrs["STABLE-VARIANT-ID"]!==c.attrs["STABLE-VARIANT-ID"]&&d.bitrate!==c.bitrate&&this.log(`Unstable Pathways change from bitrate ${c.bitrate} to ${d.bitrate}`),this.hls.nextLoadLevel=l);break}}}getPathwayForGroupId(t,n,r){const o=this.getLevelsForPathway(r).concat(this.levels||[]);for(let a=0;a{const{ID:s,"BASE-ID":l,"URI-REPLACEMENT":c}=a;if(n.some(h=>h.pathwayId===s))return;const d=this.getLevelsForPathway(l).map(h=>{const p=new os(h.attrs);p["PATHWAY-ID"]=s;const v=p.AUDIO&&`${p.AUDIO}_clone_${s}`,g=p.SUBTITLES&&`${p.SUBTITLES}_clone_${s}`;v&&(r[p.AUDIO]=v,p.AUDIO=v),g&&(o[p.SUBTITLES]=g,p.SUBTITLES=g);const y=V2e(h.uri,p["STABLE-VARIANT-ID"],"PER-VARIANT-URIS",c),S=new C_({attrs:p,audioCodec:h.audioCodec,bitrate:h.bitrate,height:h.height,name:h.name,url:y,videoCodec:h.videoCodec,width:h.width});if(h.audioGroups)for(let k=1;k{this.log(`Loaded steering manifest: "${o}"`);const y=h.data;if(y?.VERSION!==1){this.log(`Steering VERSION ${y.VERSION} not supported!`);return}this.updated=performance.now(),this.timeToLoad=y.TTL;const{"RELOAD-URI":S,"PATHWAY-CLONES":k,"PATHWAY-PRIORITY":C}=y;if(S)try{this.uri=new self.URL(S,o).href}catch{this.enabled=!1,this.log(`Failed to parse Steering Manifest RELOAD-URI: ${S}`);return}this.scheduleRefresh(this.uri||v.url),k&&this.clonePathways(k);const x={steeringManifest:y,url:o.toString()};this.hls.trigger(Ee.STEERING_MANIFEST_LOADED,x),C&&this.updatePathwayPriority(C)},onError:(h,p,v,g)=>{if(this.log(`Error loading steering manifest: ${h.code} ${h.text} (${p.url})`),this.stopLoad(),h.code===410){this.enabled=!1,this.log(`Steering manifest ${p.url} no longer available`);return}let y=this.timeToLoad*1e3;if(h.code===429){const S=this.loader;if(typeof S?.getResponseHeader=="function"){const k=S.getResponseHeader("Retry-After");k&&(y=parseFloat(k)*1e3)}this.log(`Steering manifest ${p.url} rate limited`);return}this.scheduleRefresh(this.uri||p.url,y)},onTimeout:(h,p,v)=>{this.log(`Timeout loading steering manifest (${p.url})`),this.scheduleRefresh(this.uri||p.url)}};this.log(`Requesting steering manifest: ${o}`),this.loader.load(a,c,d)}scheduleRefresh(t,n=this.timeToLoad*1e3){this.clearTimeout(),this.reloadTimer=self.setTimeout(()=>{var r;const o=(r=this.hls)==null?void 0:r.media;if(o&&!o.ended){this.loadSteeringManifest(t);return}this.scheduleRefresh(t,this.timeToLoad*1e3)},n)}}function Mue(e,t,n,r){e&&Object.keys(t).forEach(o=>{const a=e.filter(s=>s.groupId===o).map(s=>{const l=bo({},s);return l.details=void 0,l.attrs=new os(l.attrs),l.url=l.attrs.URI=V2e(s.url,s.attrs["STABLE-RENDITION-ID"],"PER-RENDITION-URIS",n),l.groupId=l.attrs["GROUP-ID"]=t[o],l.attrs["PATHWAY-ID"]=r,l});e.push(...a)})}function V2e(e,t,n,r){const{HOST:o,PARAMS:a,[n]:s}=r;let l;t&&(l=s?.[t],l&&(e=l));const c=new self.URL(e);return o&&!l&&(c.host=o),a&&Object.keys(a).sort().forEach(d=>{d&&c.searchParams.set(d,a[d])}),c.href}class by extends rd{constructor(t){super("eme",t.logger),this.hls=void 0,this.config=void 0,this.media=null,this.keyFormatPromise=null,this.keySystemAccessPromises={},this._requestLicenseFailureCount=0,this.mediaKeySessions=[],this.keyIdToKeySessionPromise={},this.mediaKeys=null,this.setMediaKeysQueue=by.CDMCleanupPromise?[by.CDMCleanupPromise]:[],this.bannedKeyIds={},this.onMediaEncrypted=n=>{const{initDataType:r,initData:o}=n,a=`"${n.type}" event: init data type: "${r}"`;if(this.debug(a),o!==null){if(!this.keyFormatPromise){let s=Object.keys(this.keySystemAccessPromises);s.length||(s=N4(this.config));const l=s.map(OF).filter(c=>!!c);this.keyFormatPromise=this.getKeyFormatPromise(l)}this.keyFormatPromise.then(s=>{const l=JE(s);if(r!=="sinf"||l!==ls.FAIRPLAY){this.log(`Ignoring "${n.type}" event with init data type: "${r}" for selected key-system ${l}`);return}let c;try{const g=aa(new Uint8Array(o)),y=AG(JSON.parse(g).sinf),S=O3e(y);if(!S)throw new Error("'schm' box missing or not cbcs/cenc with schi > tenc");c=new Uint8Array(S.subarray(8,24))}catch(g){this.warn(`${a} Failed to parse sinf: ${g}`);return}const d=zl(c),{keyIdToKeySessionPromise:h,mediaKeySessions:p}=this;let v=h[d];for(let g=0;gthis.generateRequestWithPreferredKeySession(y,r,o,"encrypted-event-key-match")),v.catch(C=>this.handleError(C));break}}v||this.handleError(new Error(`Key ID ${d} not encountered in playlist. Key-system sessions ${p.length}.`))}).catch(s=>this.handleError(s))}},this.onWaitingForKey=n=>{this.log(`"${n.type}" event`)},this.hls=t,this.config=t.config,this.registerListeners()}destroy(){this.onDestroying(),this.onMediaDetached();const t=this.config;t.requestMediaKeySystemAccessFunc=null,t.licenseXhrSetup=t.licenseResponseCallback=void 0,t.drmSystems=t.drmSystemOptions={},this.hls=this.config=this.keyIdToKeySessionPromise=null,this.onMediaEncrypted=this.onWaitingForKey=null}registerListeners(){this.hls.on(Ee.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(Ee.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.on(Ee.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(Ee.MANIFEST_LOADED,this.onManifestLoaded,this),this.hls.on(Ee.DESTROYING,this.onDestroying,this)}unregisterListeners(){this.hls.off(Ee.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(Ee.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.off(Ee.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.off(Ee.MANIFEST_LOADED,this.onManifestLoaded,this),this.hls.off(Ee.DESTROYING,this.onDestroying,this)}getLicenseServerUrl(t){const{drmSystems:n,widevineLicenseUrl:r}=this.config,o=n?.[t];if(o)return o.licenseUrl;if(t===ls.WIDEVINE&&r)return r}getLicenseServerUrlOrThrow(t){const n=this.getLicenseServerUrl(t);if(n===void 0)throw new Error(`no license server URL configured for key-system "${t}"`);return n}getServerCertificateUrl(t){const{drmSystems:n}=this.config,r=n?.[t];if(r)return r.serverCertificateUrl;this.log(`No Server Certificate in config.drmSystems["${t}"]`)}attemptKeySystemAccess(t){const n=this.hls.levels,r=(s,l,c)=>!!s&&c.indexOf(s)===l,o=n.map(s=>s.audioCodec).filter(r),a=n.map(s=>s.videoCodec).filter(r);return o.length+a.length===0&&a.push("avc1.42e01e"),new Promise((s,l)=>{const c=d=>{const h=d.shift();this.getMediaKeysPromise(h,o,a).then(p=>s({keySystem:h,mediaKeys:p})).catch(p=>{d.length?c(d):p instanceof Zu?l(p):l(new Zu({type:dr.KEY_SYSTEM_ERROR,details:Ht.KEY_SYSTEM_NO_ACCESS,error:p,fatal:!0},p.message))})};c(t)})}requestMediaKeySystemAccess(t,n){const{requestMediaKeySystemAccessFunc:r}=this.config;if(typeof r!="function"){let o=`Configured requestMediaKeySystemAccess is not a function ${r}`;return J3e===null&&self.location.protocol==="http:"&&(o=`navigator.requestMediaKeySystemAccess is not available over insecure protocol ${location.protocol}`),Promise.reject(new Error(o))}return r(t,n)}getMediaKeysPromise(t,n,r){var o;const a=cCt(t,n,r,this.config.drmSystemOptions||{});let s=this.keySystemAccessPromises[t],l=(o=s)==null?void 0:o.keySystemAccess;if(!l){this.log(`Requesting encrypted media "${t}" key-system access with config: ${To(a)}`),l=this.requestMediaKeySystemAccess(t,a);const c=s=this.keySystemAccessPromises[t]={keySystemAccess:l};return l.catch(d=>{this.log(`Failed to obtain access to key-system "${t}": ${d}`)}),l.then(d=>{this.log(`Access for key-system "${d.keySystem}" obtained`);const h=this.fetchServerCertificate(t);this.log(`Create media-keys for "${t}"`);const p=c.mediaKeys=d.createMediaKeys().then(v=>(this.log(`Media-keys created for "${t}"`),c.hasMediaKeys=!0,h.then(g=>g?this.setMediaKeysServerCertificate(v,t,g):v)));return p.catch(v=>{this.error(`Failed to create media-keys for "${t}"}: ${v}`)}),p})}return l.then(()=>s.mediaKeys)}createMediaKeySessionContext({decryptdata:t,keySystem:n,mediaKeys:r}){this.log(`Creating key-system session "${n}" keyId: ${zl(t.keyId||[])} keyUri: ${t.uri}`);const o=r.createSession(),a={decryptdata:t,keySystem:n,mediaKeys:r,mediaKeysSession:o,keyStatus:"status-pending"};return this.mediaKeySessions.push(a),a}renewKeySession(t){const n=t.decryptdata;if(n.pssh){const r=this.createMediaKeySessionContext(t),o=xC(n),a="cenc";this.keyIdToKeySessionPromise[o]=this.generateRequestWithPreferredKeySession(r,a,n.pssh.buffer,"expired")}else this.warn("Could not renew expired session. Missing pssh initData.");this.removeSession(t)}updateKeySession(t,n){const r=t.mediaKeysSession;return this.log(`Updating key-session "${r.sessionId}" for keyId ${zl(t.decryptdata.keyId||[])} } (data length: ${n.byteLength})`),r.update(n)}getSelectedKeySystemFormats(){return Object.keys(this.keySystemAccessPromises).map(t=>({keySystem:t,hasMediaKeys:this.keySystemAccessPromises[t].hasMediaKeys})).filter(({hasMediaKeys:t})=>!!t).map(({keySystem:t})=>OF(t)).filter(t=>!!t)}getKeySystemAccess(t){return this.getKeySystemSelectionPromise(t).then(({keySystem:n,mediaKeys:r})=>this.attemptSetMediaKeys(n,r))}selectKeySystem(t){return new Promise((n,r)=>{this.getKeySystemSelectionPromise(t).then(({keySystem:o})=>{const a=OF(o);a?n(a):r(new Error(`Unable to find format for key-system "${o}"`))}).catch(r)})}selectKeySystemFormat(t){const n=Object.keys(t.levelkeys||{});return this.keyFormatPromise||(this.log(`Selecting key-system from fragment (sn: ${t.sn} ${t.type}: ${t.level}) key formats ${n.join(", ")}`),this.keyFormatPromise=this.getKeyFormatPromise(n)),this.keyFormatPromise}getKeyFormatPromise(t){const n=N4(this.config),r=t.map(JE).filter(o=>!!o&&n.indexOf(o)!==-1);return this.selectKeySystem(r)}getKeyStatus(t){const{mediaKeySessions:n}=this;for(let r=0;r(this.throwIfDestroyed(),this.log(`Handle encrypted media sn: ${t.frag.sn} ${t.frag.type}: ${t.frag.level} using key ${a}`),this.attemptSetMediaKeys(c,d).then(()=>(this.throwIfDestroyed(),this.createMediaKeySessionContext({keySystem:c,mediaKeys:d,decryptdata:n}))))).then(c=>{const d="cenc",h=n.pssh?n.pssh.buffer:null;return this.generateRequestWithPreferredKeySession(c,d,h,"playlist-key")});return l.catch(c=>this.handleError(c,t.frag)),this.keyIdToKeySessionPromise[r]=l,l}return s.catch(l=>{if(l instanceof Zu){const c=fo({},l.data);this.getKeyStatus(n)==="internal-error"&&(c.decryptdata=n);const d=new Zu(c,l.message);this.handleError(d,t.frag)}}),s}throwIfDestroyed(t="Invalid state"){if(!this.hls)throw new Error("invalid state")}handleError(t,n){if(this.hls)if(t instanceof Zu){n&&(t.data.frag=n);const r=t.data.decryptdata;this.error(`${t.message}${r?` (${zl(r.keyId||[])})`:""}`),this.hls.trigger(Ee.ERROR,t.data)}else this.error(t.message),this.hls.trigger(Ee.ERROR,{type:dr.KEY_SYSTEM_ERROR,details:Ht.KEY_SYSTEM_NO_KEYS,error:t,fatal:!0})}getKeySystemForKeyPromise(t){const n=xC(t),r=this.keyIdToKeySessionPromise[n];if(!r){const o=JE(t.keyFormat),a=o?[o]:N4(this.config);return this.attemptKeySystemAccess(a)}return r}getKeySystemSelectionPromise(t){if(t.length||(t=N4(this.config)),t.length===0)throw new Zu({type:dr.KEY_SYSTEM_ERROR,details:Ht.KEY_SYSTEM_NO_CONFIGURED_LICENSE,fatal:!0},`Missing key-system license configuration options ${To({drmSystems:this.config.drmSystems})}`);return this.attemptKeySystemAccess(t)}attemptSetMediaKeys(t,n){if(this.mediaKeys===n)return Promise.resolve();const r=this.setMediaKeysQueue.slice();this.log(`Setting media-keys for "${t}"`);const o=Promise.all(r).then(()=>{if(!this.media)throw this.mediaKeys=null,new Error("Attempted to set mediaKeys without media element attached");return this.media.setMediaKeys(n)});return this.mediaKeys=n,this.setMediaKeysQueue.push(o),o.then(()=>{this.log(`Media-keys set for "${t}"`),r.push(o),this.setMediaKeysQueue=this.setMediaKeysQueue.filter(a=>r.indexOf(a)===-1)})}generateRequestWithPreferredKeySession(t,n,r,o){var a;const s=(a=this.config.drmSystems)==null||(a=a[t.keySystem])==null?void 0:a.generateRequest;if(s)try{const y=s.call(this.hls,n,r,t);if(!y)throw new Error("Invalid response from configured generateRequest filter");n=y.initDataType,r=y.initData?y.initData:null,t.decryptdata.pssh=r?new Uint8Array(r):null}catch(y){if(this.warn(y.message),this.hls&&this.hls.config.debug)throw y}if(r===null)return this.log(`Skipping key-session request for "${o}" (no initData)`),Promise.resolve(t);const l=xC(t.decryptdata),c=t.decryptdata.uri;this.log(`Generating key-session request for "${o}" keyId: ${l} URI: ${c} (init data type: ${n} length: ${r.byteLength})`);const d=new LG,h=t._onmessage=y=>{const S=t.mediaKeysSession;if(!S){d.emit("error",new Error("invalid state"));return}const{messageType:k,message:C}=y;this.log(`"${k}" message event for session "${S.sessionId}" message size: ${C.byteLength}`),k==="license-request"||k==="license-renewal"?this.renewLicense(t,C).catch(x=>{d.eventNames().length?d.emit("error",x):this.handleError(x)}):k==="license-release"?t.keySystem===ls.FAIRPLAY&&this.updateKeySession(t,Vz("acknowledged")).then(()=>this.removeSession(t)).catch(x=>this.handleError(x)):this.warn(`unhandled media key message type "${k}"`)},p=(y,S)=>{S.keyStatus=y;let k;y.startsWith("usable")?d.emit("resolved"):y==="internal-error"||y==="output-restricted"||y==="output-downscaled"?k=Oue(y,S.decryptdata):y==="expired"?k=new Error(`key expired (keyId: ${l})`):y==="released"?k=new Error("key released"):y==="status-pending"||this.warn(`unhandled key status change "${y}" (keyId: ${l})`),k&&(d.eventNames().length?d.emit("error",k):this.handleError(k))},v=t._onkeystatuseschange=y=>{if(!t.mediaKeysSession){d.emit("error",new Error("invalid state"));return}const k=this.getKeyStatuses(t);if(!Object.keys(k).some(_=>k[_]!=="status-pending"))return;if(k[l]==="expired"){this.log(`Expired key ${To(k)} in key-session "${t.mediaKeysSession.sessionId}"`),this.renewKeySession(t);return}let x=k[l];if(x)p(x,t);else{var E;t.keyStatusTimeouts||(t.keyStatusTimeouts={}),(E=t.keyStatusTimeouts)[l]||(E[l]=self.setTimeout(()=>{if(!t.mediaKeysSession||!this.mediaKeys)return;const T=this.getKeyStatus(t.decryptdata);if(T&&T!=="status-pending")return this.log(`No status for keyId ${l} in key-session "${t.mediaKeysSession.sessionId}". Using session key-status ${T} from other session.`),p(T,t);this.log(`key status for ${l} in key-session "${t.mediaKeysSession.sessionId}" timed out after 1000ms`),x="internal-error",p(x,t)},1e3)),this.log(`No status for keyId ${l} (${To(k)}).`)}};ql(t.mediaKeysSession,"message",h),ql(t.mediaKeysSession,"keystatuseschange",v);const g=new Promise((y,S)=>{d.on("error",S),d.on("resolved",y)});return t.mediaKeysSession.generateRequest(n,r).then(()=>{this.log(`Request generated for key-session "${t.mediaKeysSession.sessionId}" keyId: ${l} URI: ${c}`)}).catch(y=>{throw new Zu({type:dr.KEY_SYSTEM_ERROR,details:Ht.KEY_SYSTEM_NO_SESSION,error:y,decryptdata:t.decryptdata,fatal:!1},`Error generating key-session request: ${y}`)}).then(()=>g).catch(y=>(d.removeAllListeners(),this.removeSession(t).then(()=>{throw y}))).then(()=>(d.removeAllListeners(),t))}getKeyStatuses(t){const n={};return t.mediaKeysSession.keyStatuses.forEach((r,o)=>{if(typeof o=="string"&&typeof r=="object"){const l=o;o=r,r=l}const a="buffer"in o?new Uint8Array(o.buffer,o.byteOffset,o.byteLength):new Uint8Array(o);t.keySystem===ls.PLAYREADY&&a.length===16&&X3e(a);const s=zl(a);r==="internal-error"&&(this.bannedKeyIds[s]=r),this.log(`key status change "${r}" for keyStatuses keyId: ${s} key-session "${t.mediaKeysSession.sessionId}"`),n[s]=r}),n}fetchServerCertificate(t){const n=this.config,r=n.loader,o=new r(n),a=this.getServerCertificateUrl(t);return a?(this.log(`Fetching server certificate for "${t}"`),new Promise((s,l)=>{const c={responseType:"arraybuffer",url:a},d=n.certLoadPolicy.default,h={loadPolicy:d,timeout:d.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},p={onSuccess:(v,g,y,S)=>{s(v.data)},onError:(v,g,y,S)=>{l(new Zu({type:dr.KEY_SYSTEM_ERROR,details:Ht.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:y,response:fo({url:c.url,data:void 0},v)},`"${t}" certificate request failed (${a}). Status: ${v.code} (${v.text})`))},onTimeout:(v,g,y)=>{l(new Zu({type:dr.KEY_SYSTEM_ERROR,details:Ht.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:y,response:{url:c.url,data:void 0}},`"${t}" certificate request timed out (${a})`))},onAbort:(v,g,y)=>{l(new Error("aborted"))}};o.load(c,h,p)})):Promise.resolve()}setMediaKeysServerCertificate(t,n,r){return new Promise((o,a)=>{t.setServerCertificate(r).then(s=>{this.log(`setServerCertificate ${s?"success":"not supported by CDM"} (${r.byteLength}) on "${n}"`),o(t)}).catch(s=>{a(new Zu({type:dr.KEY_SYSTEM_ERROR,details:Ht.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED,error:s,fatal:!0},s.message))})})}renewLicense(t,n){return this.requestLicense(t,new Uint8Array(n)).then(r=>this.updateKeySession(t,new Uint8Array(r)).catch(o=>{throw new Zu({type:dr.KEY_SYSTEM_ERROR,details:Ht.KEY_SYSTEM_SESSION_UPDATE_FAILED,decryptdata:t.decryptdata,error:o,fatal:!1},o.message)}))}unpackPlayReadyKeyMessage(t,n){const r=String.fromCharCode.apply(null,new Uint16Array(n.buffer));if(!r.includes("PlayReadyKeyMessage"))return t.setRequestHeader("Content-Type","text/xml; charset=utf-8"),n;const o=new DOMParser().parseFromString(r,"application/xml"),a=o.querySelectorAll("HttpHeader");if(a.length>0){let h;for(let p=0,v=a.length;p in key message");return Vz(atob(d))}setupLicenseXHR(t,n,r,o){const a=this.config.licenseXhrSetup;return a?Promise.resolve().then(()=>{if(!r.decryptdata)throw new Error("Key removed");return a.call(this.hls,t,n,r,o)}).catch(s=>{if(!r.decryptdata)throw s;return t.open("POST",n,!0),a.call(this.hls,t,n,r,o)}).then(s=>(t.readyState||t.open("POST",n,!0),{xhr:t,licenseChallenge:s||o})):(t.open("POST",n,!0),Promise.resolve({xhr:t,licenseChallenge:o}))}requestLicense(t,n){const r=this.config.keyLoadPolicy.default;return new Promise((o,a)=>{const s=this.getLicenseServerUrlOrThrow(t.keySystem);this.log(`Sending license request to URL: ${s}`);const l=new XMLHttpRequest;l.responseType="arraybuffer",l.onreadystatechange=()=>{if(!this.hls||!t.mediaKeysSession)return a(new Error("invalid state"));if(l.readyState===4)if(l.status===200){this._requestLicenseFailureCount=0;let c=l.response;this.log(`License received ${c instanceof ArrayBuffer?c.byteLength:c}`);const d=this.config.licenseResponseCallback;if(d)try{c=d.call(this.hls,l,s,t)}catch(h){this.error(h)}o(c)}else{const c=r.errorRetry,d=c?c.maxNumRetry:0;if(this._requestLicenseFailureCount++,this._requestLicenseFailureCount>d||l.status>=400&&l.status<500)a(new Zu({type:dr.KEY_SYSTEM_ERROR,details:Ht.KEY_SYSTEM_LICENSE_REQUEST_FAILED,decryptdata:t.decryptdata,fatal:!0,networkDetails:l,response:{url:s,data:void 0,code:l.status,text:l.statusText}},`License Request XHR failed (${s}). Status: ${l.status} (${l.statusText})`));else{const h=d-this._requestLicenseFailureCount+1;this.warn(`Retrying license request, ${h} attempts left`),this.requestLicense(t,n).then(o,a)}}},t.licenseXhr&&t.licenseXhr.readyState!==XMLHttpRequest.DONE&&t.licenseXhr.abort(),t.licenseXhr=l,this.setupLicenseXHR(l,s,t,n).then(({xhr:c,licenseChallenge:d})=>{t.keySystem==ls.PLAYREADY&&(d=this.unpackPlayReadyKeyMessage(c,d)),c.send(d)}).catch(a)})}onDestroying(){this.unregisterListeners(),this._clear()}onMediaAttached(t,n){if(!this.config.emeEnabled)return;const r=n.media;this.media=r,ql(r,"encrypted",this.onMediaEncrypted),ql(r,"waitingforkey",this.onWaitingForKey)}onMediaDetached(){const t=this.media;t&&(wu(t,"encrypted",this.onMediaEncrypted),wu(t,"waitingforkey",this.onWaitingForKey),this.media=null,this.mediaKeys=null)}_clear(){var t;if(this._requestLicenseFailureCount=0,this.keyIdToKeySessionPromise={},this.bannedKeyIds={},!this.mediaKeys&&!this.mediaKeySessions.length)return;const n=this.media,r=this.mediaKeySessions.slice();this.mediaKeySessions=[],this.mediaKeys=null,km.clearKeyUriToKeyIdMap();const o=r.length;by.CDMCleanupPromise=Promise.all(r.map(a=>this.removeSession(a)).concat((n==null||(t=n.setMediaKeys(null))==null?void 0:t.catch(a=>{this.log(`Could not clear media keys: ${a}`),this.hls&&this.hls.trigger(Ee.ERROR,{type:dr.OTHER_ERROR,details:Ht.KEY_SYSTEM_DESTROY_MEDIA_KEYS_ERROR,fatal:!1,error:new Error(`Could not clear media keys: ${a}`)})}))||Promise.resolve())).catch(a=>{this.log(`Could not close sessions and clear media keys: ${a}`),this.hls&&this.hls.trigger(Ee.ERROR,{type:dr.OTHER_ERROR,details:Ht.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR,fatal:!1,error:new Error(`Could not close sessions and clear media keys: ${a}`)})}).then(()=>{o&&this.log("finished closing key sessions and clearing media keys")})}onManifestLoading(){this.keyFormatPromise=null,this.bannedKeyIds={}}onManifestLoaded(t,{sessionKeys:n}){if(!(!n||!this.config.emeEnabled)&&!this.keyFormatPromise){const r=n.reduce((o,a)=>(o.indexOf(a.keyFormat)===-1&&o.push(a.keyFormat),o),[]);this.log(`Selecting key-system from session-keys ${r.join(", ")}`),this.keyFormatPromise=this.getKeyFormatPromise(r)}}removeSession(t){const{mediaKeysSession:n,licenseXhr:r,decryptdata:o}=t;if(n){this.log(`Remove licenses and keys and close session "${n.sessionId}" keyId: ${zl(o?.keyId||[])}`),t._onmessage&&(n.removeEventListener("message",t._onmessage),t._onmessage=void 0),t._onkeystatuseschange&&(n.removeEventListener("keystatuseschange",t._onkeystatuseschange),t._onkeystatuseschange=void 0),r&&r.readyState!==XMLHttpRequest.DONE&&r.abort(),t.mediaKeysSession=t.decryptdata=t.licenseXhr=void 0;const a=this.mediaKeySessions.indexOf(t);a>-1&&this.mediaKeySessions.splice(a,1);const{keyStatusTimeouts:s}=t;s&&Object.keys(s).forEach(d=>self.clearTimeout(s[d]));const{drmSystemOptions:l}=this.config;return(fCt(l)?new Promise((d,h)=>{self.setTimeout(()=>h(new Error("MediaKeySession.remove() timeout")),8e3),n.remove().then(d).catch(h)}):Promise.resolve()).catch(d=>{this.log(`Could not remove session: ${d}`),this.hls&&this.hls.trigger(Ee.ERROR,{type:dr.OTHER_ERROR,details:Ht.KEY_SYSTEM_DESTROY_REMOVE_SESSION_ERROR,fatal:!1,error:new Error(`Could not remove session: ${d}`)})}).then(()=>n.close()).catch(d=>{this.log(`Could not close session: ${d}`),this.hls&&this.hls.trigger(Ee.ERROR,{type:dr.OTHER_ERROR,details:Ht.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR,fatal:!1,error:new Error(`Could not close session: ${d}`)})})}return Promise.resolve()}}by.CDMCleanupPromise=void 0;function xC(e){if(!e)throw new Error("Could not read keyId of undefined decryptdata");if(e.keyId===null)throw new Error("keyId is null");return zl(e.keyId)}function DEt(e,t){if(e.keyId&&t.mediaKeysSession.keyStatuses.has(e.keyId))return t.mediaKeysSession.keyStatuses.get(e.keyId);if(e.matches(t.decryptdata))return t.keyStatus}class Zu extends Error{constructor(t,n){super(n),this.data=void 0,t.error||(t.error=new Error(n)),this.data=t,t.err=t.error}}function Oue(e,t){const n=e==="output-restricted",r=n?Ht.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:Ht.KEY_SYSTEM_STATUS_INTERNAL_ERROR;return new Zu({type:dr.KEY_SYSTEM_ERROR,details:r,fatal:!1,decryptdata:t},n?"HDCP level output restricted":`key status changed to "${e}"`)}class PEt{constructor(t){this.hls=void 0,this.isVideoPlaybackQualityAvailable=!1,this.timer=void 0,this.media=null,this.lastTime=void 0,this.lastDroppedFrames=0,this.lastDecodedFrames=0,this.streamController=void 0,this.hls=t,this.registerListeners()}setStreamController(t){this.streamController=t}registerListeners(){this.hls.on(Ee.MEDIA_ATTACHING,this.onMediaAttaching,this),this.hls.on(Ee.MEDIA_DETACHING,this.onMediaDetaching,this)}unregisterListeners(){this.hls.off(Ee.MEDIA_ATTACHING,this.onMediaAttaching,this),this.hls.off(Ee.MEDIA_DETACHING,this.onMediaDetaching,this)}destroy(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null}onMediaAttaching(t,n){const r=this.hls.config;if(r.capLevelOnFPSDrop){const o=n.media instanceof self.HTMLVideoElement?n.media:null;this.media=o,o&&typeof o.getVideoPlaybackQuality=="function"&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),r.fpsDroppedMonitoringPeriod)}}onMediaDetaching(){this.media=null}checkFPS(t,n,r){const o=performance.now();if(n){if(this.lastTime){const a=o-this.lastTime,s=r-this.lastDroppedFrames,l=n-this.lastDecodedFrames,c=1e3*s/a,d=this.hls;if(d.trigger(Ee.FPS_DROP,{currentDropped:s,currentDecoded:l,totalDroppedFrames:r}),c>0&&s>d.config.fpsDroppedMonitoringThreshold*l){let h=d.currentLevel;d.logger.warn("drop FPS ratio greater than max allowed value for currentLevel: "+h),h>0&&(d.autoLevelCapping===-1||d.autoLevelCapping>=h)&&(h=h-1,d.trigger(Ee.FPS_DROP_LEVEL_CAPPING,{level:h,droppedLevel:d.currentLevel}),d.autoLevelCapping=h,this.streamController.nextLevelSwitch())}}this.lastTime=o,this.lastDroppedFrames=r,this.lastDecodedFrames=n}}checkFPSInterval(){const t=this.media;if(t)if(this.isVideoPlaybackQualityAvailable){const n=t.getVideoPlaybackQuality();this.checkFPS(t,n.totalVideoFrames,n.droppedVideoFrames)}else this.checkFPS(t,t.webkitDecodedFrameCount,t.webkitDroppedFrameCount)}}function z2e(e,t){let n;try{n=new Event("addtrack")}catch{n=document.createEvent("Event"),n.initEvent("addtrack",!1,!1)}n.track=e,t.dispatchEvent(n)}function U2e(e,t){const n=e.mode;if(n==="disabled"&&(e.mode="hidden"),e.cues&&!e.cues.getCueById(t.id))try{if(e.addCue(t),!e.cues.getCueById(t.id))throw new Error(`addCue is failed for: ${t}`)}catch(r){po.debug(`[texttrack-utils]: ${r}`);try{const o=new self.TextTrackCue(t.startTime,t.endTime,t.text);o.id=t.id,e.addCue(o)}catch(o){po.debug(`[texttrack-utils]: Legacy TextTrackCue fallback failed: ${o}`)}}n==="disabled"&&(e.mode=n)}function Y1(e,t){const n=e.mode;if(n==="disabled"&&(e.mode="hidden"),e.cues)for(let r=e.cues.length;r--;)t&&e.cues[r].removeEventListener("enter",t),e.removeCue(e.cues[r]);n==="disabled"&&(e.mode=n)}function Xz(e,t,n,r){const o=e.mode;if(o==="disabled"&&(e.mode="hidden"),e.cues&&e.cues.length>0){const a=MEt(e.cues,t,n);for(let s=0;se[n].endTime)return-1;let r=0,o=n,a;for(;r<=o;)if(a=Math.floor((o+r)/2),te[a].startTime&&r-1)for(let a=o,s=e.length;a=t&&l.endTime<=n)r.push(l);else if(l.startTime>n)return r}return r}function n8(e){const t=[];for(let n=0;nthis.pollTrackChange(0),this.onTextTracksChanged=()=>{if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),!this.media||!this.hls.config.renderTextTracksNatively)return;let n=null;const r=n8(this.media.textTracks);for(let a=0;a-1&&this.toggleTrackModes()}registerListeners(){const{hls:t}=this;t.on(Ee.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(Ee.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(Ee.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Ee.MANIFEST_PARSED,this.onManifestParsed,this),t.on(Ee.LEVEL_LOADING,this.onLevelLoading,this),t.on(Ee.LEVEL_SWITCHING,this.onLevelSwitching,this),t.on(Ee.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),t.on(Ee.ERROR,this.onError,this)}unregisterListeners(){const{hls:t}=this;t.off(Ee.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(Ee.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(Ee.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Ee.MANIFEST_PARSED,this.onManifestParsed,this),t.off(Ee.LEVEL_LOADING,this.onLevelLoading,this),t.off(Ee.LEVEL_SWITCHING,this.onLevelSwitching,this),t.off(Ee.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),t.off(Ee.ERROR,this.onError,this)}onMediaAttached(t,n){this.media=n.media,this.media&&(this.queuedDefaultTrack>-1&&(this.subtitleTrack=this.queuedDefaultTrack,this.queuedDefaultTrack=-1),this.useTextTrackPolling=!(this.media.textTracks&&"onchange"in this.media.textTracks),this.useTextTrackPolling?this.pollTrackChange(500):this.media.textTracks.addEventListener("change",this.asyncPollTrackChange))}pollTrackChange(t){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.onTextTracksChanged,t)}onMediaDetaching(t,n){const r=this.media;if(!r)return;const o=!!n.transferMedia;if(self.clearInterval(this.subtitlePollingInterval),this.useTextTrackPolling||r.textTracks.removeEventListener("change",this.asyncPollTrackChange),this.trackId>-1&&(this.queuedDefaultTrack=this.trackId),this.subtitleTrack=-1,this.media=null,o)return;n8(r.textTracks).forEach(s=>{Y1(s)})}onManifestLoading(){this.tracks=[],this.groupIds=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0}onManifestParsed(t,n){this.tracks=n.subtitleTracks}onSubtitleTrackLoaded(t,n){const{id:r,groupId:o,details:a}=n,s=this.tracksInGroup[r];if(!s||s.groupId!==o){this.warn(`Subtitle track with id:${r} and group:${o} not found in active group ${s?.groupId}`);return}const l=s.details;s.details=n.details,this.log(`Subtitle track ${r} "${s.name}" lang:${s.lang} group:${o} loaded [${a.startSN}-${a.endSN}]`),r===this.trackId&&this.playlistLoaded(r,n,l)}onLevelLoading(t,n){this.switchLevel(n.level)}onLevelSwitching(t,n){this.switchLevel(n.level)}switchLevel(t){const n=this.hls.levels[t];if(!n)return;const r=n.subtitleGroups||null,o=this.groupIds;let a=this.currentTrack;if(!r||o?.length!==r?.length||r!=null&&r.some(s=>o?.indexOf(s)===-1)){this.groupIds=r,this.trackId=-1,this.currentTrack=null;const s=this.tracks.filter(h=>!r||r.indexOf(h.groupId)!==-1);if(s.length)this.selectDefaultTrack&&!s.some(h=>h.default)&&(this.selectDefaultTrack=!1),s.forEach((h,p)=>{h.id=p});else if(!a&&!this.tracksInGroup.length)return;this.tracksInGroup=s;const l=this.hls.config.subtitlePreference;if(!a&&l){this.selectDefaultTrack=!1;const h=pf(l,s);if(h>-1)a=s[h];else{const p=pf(l,this.tracks);a=this.tracks[p]}}let c=this.findTrackId(a);c===-1&&a&&(c=this.findTrackId(null));const d={subtitleTracks:s};this.log(`Updating subtitle tracks, ${s.length} track(s) found in "${r?.join(",")}" group-id`),this.hls.trigger(Ee.SUBTITLE_TRACKS_UPDATED,d),c!==-1&&this.trackId===-1&&this.setSubtitleTrack(c)}}findTrackId(t){const n=this.tracksInGroup,r=this.selectDefaultTrack;for(let o=0;o-1){const a=this.tracksInGroup[o];return this.setSubtitleTrack(o),a}else{if(r)return null;{const a=pf(t,n);if(a>-1)return n[a]}}}}return null}loadPlaylist(t){super.loadPlaylist(),this.shouldLoadPlaylist(this.currentTrack)&&this.scheduleLoading(this.currentTrack,t)}loadingPlaylist(t,n){super.loadingPlaylist(t,n);const r=t.id,o=t.groupId,a=this.getUrlWithDirectives(t.url,n),s=t.details,l=s?.age;this.log(`Loading subtitle ${r} "${t.name}" lang:${t.lang} group:${o}${n?.msn!==void 0?" at sn "+n.msn+" part "+n.part:""}${l&&s.live?" age "+l.toFixed(1)+(s.type&&" "+s.type||""):""} ${a}`),this.hls.trigger(Ee.SUBTITLE_TRACK_LOADING,{url:a,id:r,groupId:o,deliveryDirectives:n||null,track:t})}toggleTrackModes(){const{media:t}=this;if(!t)return;const n=n8(t.textTracks),r=this.currentTrack;let o;if(r&&(o=n.filter(a=>Gz(r,a))[0],o||this.warn(`Unable to find subtitle TextTrack with name "${r.name}" and language "${r.lang}"`)),[].slice.call(n).forEach(a=>{a.mode!=="disabled"&&a!==o&&(a.mode="disabled")}),o){const a=this.subtitleDisplay?"showing":"hidden";o.mode!==a&&(o.mode=a)}}setSubtitleTrack(t){const n=this.tracksInGroup;if(!this.media){this.queuedDefaultTrack=t;return}if(t<-1||t>=n.length||!jn(t)){this.warn(`Invalid subtitle track id: ${t}`);return}this.selectDefaultTrack=!1;const r=this.currentTrack,o=n[t]||null;if(this.trackId=t,this.currentTrack=o,this.toggleTrackModes(),!o){this.hls.trigger(Ee.SUBTITLE_TRACK_SWITCH,{id:t});return}const a=!!o.details&&!o.details.live;if(t===this.trackId&&o===r&&a)return;this.log(`Switching to subtitle-track ${t}`+(o?` "${o.name}" lang:${o.lang} group:${o.groupId}`:""));const{id:s,groupId:l="",name:c,type:d,url:h}=o;this.hls.trigger(Ee.SUBTITLE_TRACK_SWITCH,{id:s,groupId:l,name:c,type:d,url:h});const p=this.switchParams(o.url,r?.details,o.details);this.loadPlaylist(p)}}function $Et(){try{return crypto.randomUUID()}catch{try{const t=URL.createObjectURL(new Blob),n=t.toString();return URL.revokeObjectURL(t),n.slice(n.lastIndexOf("/")+1)}catch{let n=new Date().getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,o=>{const a=(n+Math.random()*16)%16|0;return n=Math.floor(n/16),(o=="x"?a:a&3|8).toString(16)})}}}function Db(e){let t=5381,n=e.length;for(;n;)t=t*33^e.charCodeAt(--n);return(t>>>0).toString()}const _y=.025;let BT=(function(e){return e[e.Point=0]="Point",e[e.Range=1]="Range",e})({});function BEt(e,t,n){return`${e.identifier}-${n+1}-${Db(t)}`}class NEt{constructor(t,n){this.base=void 0,this._duration=null,this._timelineStart=null,this.appendInPlaceDisabled=void 0,this.appendInPlaceStarted=void 0,this.dateRange=void 0,this.hasPlayed=!1,this.cumulativeDuration=0,this.resumeOffset=NaN,this.playoutLimit=NaN,this.restrictions={skip:!1,jump:!1},this.snapOptions={out:!1,in:!1},this.assetList=[],this.assetListLoader=void 0,this.assetListResponse=null,this.resumeAnchor=void 0,this.error=void 0,this.resetOnResume=void 0,this.base=n,this.dateRange=t,this.setDateRange(t)}setDateRange(t){this.dateRange=t,this.resumeOffset=t.attr.optionalFloat("X-RESUME-OFFSET",this.resumeOffset),this.playoutLimit=t.attr.optionalFloat("X-PLAYOUT-LIMIT",this.playoutLimit),this.restrictions=t.attr.enumeratedStringList("X-RESTRICT",this.restrictions),this.snapOptions=t.attr.enumeratedStringList("X-SNAP",this.snapOptions)}reset(){var t;this.appendInPlaceStarted=!1,(t=this.assetListLoader)==null||t.destroy(),this.assetListLoader=void 0,this.supplementsPrimary||(this.assetListResponse=null,this.assetList=[],this._duration=null)}isAssetPastPlayoutLimit(t){var n;if(t>0&&t>=this.assetList.length)return!0;const r=this.playoutLimit;return t<=0||isNaN(r)?!1:r===0?!0:(((n=this.assetList[t])==null?void 0:n.startOffset)||0)>r}findAssetIndex(t){return this.assetList.indexOf(t)}get identifier(){return this.dateRange.id}get startDate(){return this.dateRange.startDate}get startTime(){const t=this.dateRange.startTime;if(this.snapOptions.out){const n=this.dateRange.tagAnchor;if(n)return HF(t,n)}return t}get startOffset(){return this.cue.pre?0:this.startTime}get startIsAligned(){if(this.startTime===0||this.snapOptions.out)return!0;const t=this.dateRange.tagAnchor;if(t){const n=this.dateRange.startTime,r=HF(n,t);return n-r<.1}return!1}get resumptionOffset(){const t=this.resumeOffset,n=jn(t)?t:this.duration;return this.cumulativeDuration+n}get resumeTime(){const t=this.startOffset+this.resumptionOffset;if(this.snapOptions.in){const n=this.resumeAnchor;if(n)return HF(t,n)}return t}get appendInPlace(){return this.appendInPlaceStarted?!0:this.appendInPlaceDisabled?!1:!!(!this.cue.once&&!this.cue.pre&&this.startIsAligned&&(isNaN(this.playoutLimit)&&isNaN(this.resumeOffset)||this.resumeOffset&&this.duration&&Math.abs(this.resumeOffset-this.duration)<_y))}set appendInPlace(t){if(this.appendInPlaceStarted){this.resetOnResume=!t;return}this.appendInPlaceDisabled=!t}get timelineStart(){return this._timelineStart!==null?this._timelineStart:this.startTime}set timelineStart(t){this._timelineStart=t}get duration(){const t=this.playoutLimit;let n;return this._duration!==null?n=this._duration:this.dateRange.duration?n=this.dateRange.duration:n=this.dateRange.plannedDuration||0,!isNaN(t)&&t0||this.assetListResponse!==null}toString(){return FEt(this)}}function HF(e,t){return e-t.start":e.cue.post?"":""}${e.timelineStart.toFixed(2)}-${e.resumeTime.toFixed(2)}]`}function F1(e){const t=e.timelineStart,n=e.duration||0;return`["${e.identifier}" ${t.toFixed(2)}-${(t+n).toFixed(2)}]`}class jEt{constructor(t,n,r,o){this.hls=void 0,this.interstitial=void 0,this.assetItem=void 0,this.tracks=null,this.hasDetails=!1,this.mediaAttached=null,this._currentTime=void 0,this._bufferedEosTime=void 0,this.checkPlayout=()=>{this.reachedPlayout(this.currentTime)&&this.hls&&this.hls.trigger(Ee.PLAYOUT_LIMIT_REACHED,{})};const a=this.hls=new t(n);this.interstitial=r,this.assetItem=o;const s=()=>{this.hasDetails=!0};a.once(Ee.LEVEL_LOADED,s),a.once(Ee.AUDIO_TRACK_LOADED,s),a.once(Ee.SUBTITLE_TRACK_LOADED,s),a.on(Ee.MEDIA_ATTACHING,(l,{media:c})=>{this.removeMediaListeners(),this.mediaAttached=c,this.interstitial.playoutLimit&&(c.addEventListener("timeupdate",this.checkPlayout),this.appendInPlace&&a.on(Ee.BUFFER_APPENDED,()=>{const h=this.bufferedEnd;this.reachedPlayout(h)&&(this._bufferedEosTime=h,a.trigger(Ee.BUFFERED_TO_END,void 0))}))})}get appendInPlace(){return this.interstitial.appendInPlace}loadSource(){const t=this.hls;if(t)if(t.url)t.levels.length&&!t.started&&t.startLoad(-1,!0);else{let n=this.assetItem.uri;try{n=H2e(n,t.config.primarySessionId||"").href}catch{}t.loadSource(n)}}bufferedInPlaceToEnd(t){var n;if(!this.appendInPlace)return!1;if((n=this.hls)!=null&&n.bufferedToEnd)return!0;if(!t)return!1;const r=Math.min(this._bufferedEosTime||1/0,this.duration),o=this.timelineOffset,a=Vr.bufferInfo(t,o,0);return this.getAssetTime(a.end)>=r-.02}reachedPlayout(t){const r=this.interstitial.playoutLimit;return this.startOffset+t>=r}get destroyed(){var t;return!((t=this.hls)!=null&&t.userConfig)}get assetId(){return this.assetItem.identifier}get interstitialId(){return this.assetItem.parentIdentifier}get media(){var t;return((t=this.hls)==null?void 0:t.media)||null}get bufferedEnd(){const t=this.media||this.mediaAttached;if(!t)return this._bufferedEosTime?this._bufferedEosTime:this.currentTime;const n=Vr.bufferInfo(t,t.currentTime,.001);return this.getAssetTime(n.end)}get currentTime(){const t=this.media||this.mediaAttached;return t?this.getAssetTime(t.currentTime):this._currentTime||0}get duration(){const t=this.assetItem.duration;if(!t)return 0;const n=this.interstitial.playoutLimit;if(n){const r=n-this.startOffset;if(r>0&&r1/9e4&&this.hls){if(this.hasDetails)throw new Error("Cannot set timelineOffset after playlists are loaded");this.hls.config.timelineOffset=t}}}getAssetTime(t){const n=this.timelineOffset,r=this.duration;return Math.min(Math.max(0,t-n),r)}removeMediaListeners(){const t=this.mediaAttached;t&&(this._currentTime=t.currentTime,this.bufferSnapShot(),t.removeEventListener("timeupdate",this.checkPlayout))}bufferSnapShot(){if(this.mediaAttached){var t;(t=this.hls)!=null&&t.bufferedToEnd&&(this._bufferedEosTime=this.bufferedEnd)}}destroy(){this.removeMediaListeners(),this.hls&&this.hls.destroy(),this.hls=null,this.tracks=this.mediaAttached=this.checkPlayout=null}attachMedia(t){var n;this.loadSource(),(n=this.hls)==null||n.attachMedia(t)}detachMedia(){var t;this.removeMediaListeners(),this.mediaAttached=null,(t=this.hls)==null||t.detachMedia()}resumeBuffering(){var t;(t=this.hls)==null||t.resumeBuffering()}pauseBuffering(){var t;(t=this.hls)==null||t.pauseBuffering()}transferMedia(){var t;return this.bufferSnapShot(),((t=this.hls)==null?void 0:t.transferMedia())||null}resetDetails(){const t=this.hls;if(t&&this.hasDetails){t.stopLoad();const n=r=>delete r.details;t.levels.forEach(n),t.allAudioTracks.forEach(n),t.allSubtitleTracks.forEach(n),this.hasDetails=!1}}on(t,n,r){var o;(o=this.hls)==null||o.on(t,n)}once(t,n,r){var o;(o=this.hls)==null||o.once(t,n)}off(t,n,r){var o;(o=this.hls)==null||o.off(t,n)}toString(){var t;return`HlsAssetPlayer: ${F1(this.assetItem)} ${(t=this.hls)==null?void 0:t.sessionId} ${this.appendInPlace?"append-in-place":""}`}}const $ue=.033;class VEt extends rd{constructor(t,n){super("interstitials-sched",n),this.onScheduleUpdate=void 0,this.eventMap={},this.events=null,this.items=null,this.durations={primary:0,playout:0,integrated:0},this.onScheduleUpdate=t}destroy(){this.reset(),this.onScheduleUpdate=null}reset(){this.eventMap={},this.setDurations(0,0,0),this.events&&this.events.forEach(t=>t.reset()),this.events=this.items=null}resetErrorsInRange(t,n){return this.events?this.events.reduce((r,o)=>t<=o.startOffset&&n>o.startOffset?(delete o.error,r+1):r,0):0}get duration(){const t=this.items;return t?t[t.length-1].end:0}get length(){return this.items?this.items.length:0}getEvent(t){return t&&this.eventMap[t]||null}hasEvent(t){return t in this.eventMap}findItemIndex(t,n){if(t.event)return this.findEventIndex(t.event.identifier);let r=-1;t.nextEvent?r=this.findEventIndex(t.nextEvent.identifier)-1:t.previousEvent&&(r=this.findEventIndex(t.previousEvent.identifier)+1);const o=this.items;if(o)for(o[r]||(n===void 0&&(n=t.start),r=this.findItemIndexAtTime(n));r>=0&&(a=o[r])!=null&&a.event;){var a;r--}return r}findItemIndexAtTime(t,n){const r=this.items;if(r)for(let o=0;oa.start&&t1)for(let a=0;al&&(n!l.includes(d.identifier)):[];s.length&&s.sort((d,h)=>{const p=d.cue.pre,v=d.cue.post,g=h.cue.pre,y=h.cue.post;if(p&&!g)return-1;if(g&&!p||v&&!y)return 1;if(y&&!v)return-1;if(!p&&!g&&!v&&!y){const S=d.startTime,k=h.startTime;if(S!==k)return S-k}return d.dateRange.tagOrder-h.dateRange.tagOrder}),this.events=s,c.forEach(d=>{this.removeEvent(d)}),this.updateSchedule(t,c)}updateSchedule(t,n=[],r=!1){const o=this.events||[];if(o.length||n.length||this.length<2){const a=this.items,s=this.parseSchedule(o,t);(r||n.length||a?.length!==s.length||s.some((c,d)=>Math.abs(c.playout.start-a[d].playout.start)>.005||Math.abs(c.playout.end-a[d].playout.end)>.005))&&(this.items=s,this.onScheduleUpdate(n,a))}}parseDateRanges(t,n,r){const o=[],a=Object.keys(t);for(let s=0;s!c.error&&!(c.cue.once&&c.hasPlayed)),t.length){this.resolveOffsets(t,n);let c=0,d=0;if(t.forEach((h,p)=>{const v=h.cue.pre,g=h.cue.post,y=t[p-1]||null,S=h.appendInPlace,k=g?a:h.startOffset,C=h.duration,x=h.timelineOccupancy===BT.Range?C:0,E=h.resumptionOffset,_=y?.startTime===k,T=k+h.cumulativeDuration;let D=S?T+C:k+E;if(v||!g&&k<=0){const M=d;d+=x,h.timelineStart=T;const $=s;s+=C,r.push({event:h,start:T,end:D,playout:{start:$,end:s},integrated:{start:M,end:d}})}else if(k<=a){if(!_){const L=k-c;if(L>$ue){const B=c,F=d;d+=L;const W=s;s+=L;const U={previousEvent:t[p-1]||null,nextEvent:h,start:B,end:B+L,playout:{start:W,end:s},integrated:{start:F,end:d}};r.push(U)}else L>0&&y&&(y.cumulativeDuration+=L,r[r.length-1].end=k)}g&&(D=T),h.timelineStart=T;const M=d;d+=x;const $=s;s+=C,r.push({event:h,start:T,end:D,playout:{start:$,end:s},integrated:{start:M,end:d}})}else return;const P=h.resumeTime;g||P>a?c=a:c=P}),c{const d=l.cue.pre,h=l.cue.post,p=d?0:h?o:l.startTime;this.updateAssetDurations(l),s===p?l.cumulativeDuration=a:(a=0,s=p),!h&&l.snapOptions.in&&(l.resumeAnchor=jm(null,r.fragments,l.startOffset+l.resumptionOffset,0,0)||void 0),l.appendInPlace&&!l.appendInPlaceStarted&&(this.primaryCanResumeInPlaceAt(l,n)||(l.appendInPlace=!1)),!l.appendInPlace&&c+1_y?(this.log(`"${t.identifier}" resumption ${r} not aligned with estimated timeline end ${o}`),!1):!Object.keys(n).some(s=>{const l=n[s].details,c=l.edge;if(r>=c)return this.log(`"${t.identifier}" resumption ${r} past ${s} playlist end ${c}`),!1;const d=jm(null,l.fragments,r);if(!d)return this.log(`"${t.identifier}" resumption ${r} does not align with any fragments in ${s} playlist (${l.fragStart}-${l.fragmentEnd})`),!0;const h=s==="audio"?.175:0;return Math.abs(d.start-r)<_y+h||Math.abs(d.end-r)<_y+h?!1:(this.log(`"${t.identifier}" resumption ${r} not aligned with ${s} fragment bounds (${d.start}-${d.end} sn: ${d.sn} cc: ${d.cc})`),!0)})}updateAssetDurations(t){if(!t.assetListLoaded)return;const n=t.timelineStart;let r=0,o=!1,a=!1;for(let s=0;s{const k=v.data,C=k?.ASSETS;if(!Array.isArray(C)){const x=this.assignAssetListError(t,Ht.ASSET_LIST_PARSING_ERROR,new Error("Invalid interstitial asset list"),y.url,g,S);this.hls.trigger(Ee.ERROR,x);return}t.assetListResponse=k,this.hls.trigger(Ee.ASSET_LIST_LOADED,{event:t,assetListResponse:k,networkDetails:S})},onError:(v,g,y,S)=>{const k=this.assignAssetListError(t,Ht.ASSET_LIST_LOAD_ERROR,new Error(`Error loading X-ASSET-LIST: HTTP status ${v.code} ${v.text} (${g.url})`),g.url,S,y);this.hls.trigger(Ee.ERROR,k)},onTimeout:(v,g,y)=>{const S=this.assignAssetListError(t,Ht.ASSET_LIST_LOAD_TIMEOUT,new Error(`Timeout loading X-ASSET-LIST (${g.url})`),g.url,v,y);this.hls.trigger(Ee.ERROR,S)}};return l.load(c,h,p),this.hls.trigger(Ee.ASSET_LIST_LOADING,{event:t}),l}assignAssetListError(t,n,r,o,a,s){return t.error=r,{type:dr.NETWORK_ERROR,details:n,fatal:!1,interstitial:t,url:o,error:r,networkDetails:s,stats:a}}}function Bue(e){e?.play().catch(()=>{})}function CC(e,t){return`[${e}] Advancing timeline position to ${t}`}class UEt extends rd{constructor(t,n){super("interstitials",t.logger),this.HlsPlayerClass=void 0,this.hls=void 0,this.assetListLoader=void 0,this.mediaSelection=null,this.altSelection=null,this.media=null,this.detachedData=null,this.requiredTracks=null,this.manager=null,this.playerQueue=[],this.bufferedPos=-1,this.timelinePos=-1,this.schedule=void 0,this.playingItem=null,this.bufferingItem=null,this.waitingItem=null,this.endedItem=null,this.playingAsset=null,this.endedAsset=null,this.bufferingAsset=null,this.shouldPlay=!1,this.onPlay=()=>{this.shouldPlay=!0},this.onPause=()=>{this.shouldPlay=!1},this.onSeeking=()=>{const r=this.currentTime;if(r===void 0||this.playbackDisabled||!this.schedule)return;const o=r-this.timelinePos;if(Math.abs(o)<1/7056e5)return;const s=o<=-.01;this.timelinePos=r,this.bufferedPos=r;const l=this.playingItem;if(!l){this.checkBuffer();return}if(s&&this.schedule.resetErrorsInRange(r,r-o)&&this.updateSchedule(!0),this.checkBuffer(),s&&r=l.end){var c;const g=this.findItemIndex(l);let y=this.schedule.findItemIndexAtTime(r);if(y===-1&&(y=g+(s?-1:1),this.log(`seeked ${s?"back ":""}to position not covered by schedule ${r} (resolving from ${g} to ${y})`)),!this.isInterstitial(l)&&(c=this.media)!=null&&c.paused&&(this.shouldPlay=!1),!s&&y>g){const S=this.schedule.findJumpRestrictedIndex(g+1,y);if(S>g){this.setSchedulePosition(S);return}}this.setSchedulePosition(y);return}const d=this.playingAsset;if(!d){if(this.playingLastItem&&this.isInterstitial(l)){const g=l.event.assetList[0];g&&(this.endedItem=this.playingItem,this.playingItem=null,this.setScheduleToAssetAtTime(r,g))}return}const h=d.timelineStart,p=d.duration||0;if(s&&r=h+p){var v;(v=l.event)!=null&&v.appendInPlace&&(this.clearInterstitial(l.event,l),this.flushFrontBuffer(r)),this.setScheduleToAssetAtTime(r,d)}},this.onTimeupdate=()=>{const r=this.currentTime;if(r===void 0||this.playbackDisabled)return;if(r>this.timelinePos)this.timelinePos=r,r>this.bufferedPos&&this.checkBuffer();else return;const o=this.playingItem;if(!o||this.playingLastItem)return;if(r>=o.end){this.timelinePos=o.end;const l=this.findItemIndex(o);this.setSchedulePosition(l+1)}const a=this.playingAsset;if(!a)return;const s=a.timelineStart+(a.duration||0);r>=s&&this.setScheduleToAssetAtTime(r,a)},this.onScheduleUpdate=(r,o)=>{const a=this.schedule;if(!a)return;const s=this.playingItem,l=a.events||[],c=a.items||[],d=a.durations,h=r.map(S=>S.identifier),p=!!(l.length||h.length);(p||o)&&this.log(`INTERSTITIALS_UPDATED (${l.length}): ${l} Schedule: ${c.map(S=>fd(S))} pos: ${this.timelinePos}`),h.length&&this.log(`Removed events ${h}`);let v=null,g=null;s&&(v=this.updateItem(s,this.timelinePos),this.itemsMatch(s,v)?this.playingItem=v:this.waitingItem=this.endedItem=null),this.waitingItem=this.updateItem(this.waitingItem),this.endedItem=this.updateItem(this.endedItem);const y=this.bufferingItem;if(y&&(g=this.updateItem(y,this.bufferedPos),this.itemsMatch(y,g)?this.bufferingItem=g:y.event&&(this.bufferingItem=this.playingItem,this.clearInterstitial(y.event,null))),r.forEach(S=>{S.assetList.forEach(k=>{this.clearAssetPlayer(k.identifier,null)})}),this.playerQueue.forEach(S=>{if(S.interstitial.appendInPlace){const k=S.assetItem.timelineStart,C=S.timelineOffset-k;if(C)try{S.timelineOffset=k}catch(x){Math.abs(C)>_y&&this.warn(`${x} ("${S.assetId}" ${S.timelineOffset}->${k})`)}}}),p||o){if(this.hls.trigger(Ee.INTERSTITIALS_UPDATED,{events:l.slice(0),schedule:c.slice(0),durations:d,removedIds:h}),this.isInterstitial(s)&&h.includes(s.event.identifier)){this.warn(`Interstitial "${s.event.identifier}" removed while playing`),this.primaryFallback(s.event);return}s&&this.trimInPlace(v,s),y&&g!==v&&this.trimInPlace(g,y),this.checkBuffer()}},this.hls=t,this.HlsPlayerClass=n,this.assetListLoader=new zEt(t),this.schedule=new VEt(this.onScheduleUpdate,t.logger),this.registerListeners()}registerListeners(){const t=this.hls;t&&(t.on(Ee.MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(Ee.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(Ee.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(Ee.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Ee.LEVEL_UPDATED,this.onLevelUpdated,this),t.on(Ee.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.on(Ee.AUDIO_TRACK_UPDATED,this.onAudioTrackUpdated,this),t.on(Ee.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),t.on(Ee.SUBTITLE_TRACK_UPDATED,this.onSubtitleTrackUpdated,this),t.on(Ee.EVENT_CUE_ENTER,this.onInterstitialCueEnter,this),t.on(Ee.ASSET_LIST_LOADED,this.onAssetListLoaded,this),t.on(Ee.BUFFER_APPENDED,this.onBufferAppended,this),t.on(Ee.BUFFER_FLUSHED,this.onBufferFlushed,this),t.on(Ee.BUFFERED_TO_END,this.onBufferedToEnd,this),t.on(Ee.MEDIA_ENDED,this.onMediaEnded,this),t.on(Ee.ERROR,this.onError,this),t.on(Ee.DESTROYING,this.onDestroying,this))}unregisterListeners(){const t=this.hls;t&&(t.off(Ee.MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(Ee.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(Ee.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(Ee.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Ee.LEVEL_UPDATED,this.onLevelUpdated,this),t.off(Ee.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.off(Ee.AUDIO_TRACK_UPDATED,this.onAudioTrackUpdated,this),t.off(Ee.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),t.off(Ee.SUBTITLE_TRACK_UPDATED,this.onSubtitleTrackUpdated,this),t.off(Ee.EVENT_CUE_ENTER,this.onInterstitialCueEnter,this),t.off(Ee.ASSET_LIST_LOADED,this.onAssetListLoaded,this),t.off(Ee.BUFFER_CODECS,this.onBufferCodecs,this),t.off(Ee.BUFFER_APPENDED,this.onBufferAppended,this),t.off(Ee.BUFFER_FLUSHED,this.onBufferFlushed,this),t.off(Ee.BUFFERED_TO_END,this.onBufferedToEnd,this),t.off(Ee.MEDIA_ENDED,this.onMediaEnded,this),t.off(Ee.ERROR,this.onError,this),t.off(Ee.DESTROYING,this.onDestroying,this))}startLoad(){this.resumeBuffering()}stopLoad(){this.pauseBuffering()}resumeBuffering(){var t;(t=this.getBufferingPlayer())==null||t.resumeBuffering()}pauseBuffering(){var t;(t=this.getBufferingPlayer())==null||t.pauseBuffering()}destroy(){this.unregisterListeners(),this.stopLoad(),this.assetListLoader&&this.assetListLoader.destroy(),this.emptyPlayerQueue(),this.clearScheduleState(),this.schedule&&this.schedule.destroy(),this.media=this.detachedData=this.mediaSelection=this.requiredTracks=this.altSelection=this.schedule=this.manager=null,this.hls=this.HlsPlayerClass=this.log=null,this.assetListLoader=null,this.onPlay=this.onPause=this.onSeeking=this.onTimeupdate=null,this.onScheduleUpdate=null}onDestroying(){const t=this.primaryMedia||this.media;t&&this.removeMediaListeners(t)}removeMediaListeners(t){wu(t,"play",this.onPlay),wu(t,"pause",this.onPause),wu(t,"seeking",this.onSeeking),wu(t,"timeupdate",this.onTimeupdate)}onMediaAttaching(t,n){const r=this.media=n.media;ql(r,"seeking",this.onSeeking),ql(r,"timeupdate",this.onTimeupdate),ql(r,"play",this.onPlay),ql(r,"pause",this.onPause)}onMediaAttached(t,n){const r=this.effectivePlayingItem,o=this.detachedData;if(this.detachedData=null,r===null)this.checkStart();else if(!o){this.clearScheduleState();const a=this.findItemIndex(r);this.setSchedulePosition(a)}}clearScheduleState(){this.log("clear schedule state"),this.playingItem=this.bufferingItem=this.waitingItem=this.endedItem=this.playingAsset=this.endedAsset=this.bufferingAsset=null}onMediaDetaching(t,n){const r=!!n.transferMedia,o=this.media;if(this.media=null,!r&&(o&&this.removeMediaListeners(o),this.detachedData)){const a=this.getBufferingPlayer();a&&(this.log(`Removing schedule state for detachedData and ${a}`),this.playingAsset=this.endedAsset=this.bufferingAsset=this.bufferingItem=this.waitingItem=this.detachedData=null,a.detachMedia()),this.shouldPlay=!1}}get interstitialsManager(){if(!this.hls)return null;if(this.manager)return this.manager;const t=this,n=()=>t.bufferingItem||t.waitingItem,r=p=>p&&t.getAssetPlayer(p.identifier),o=(p,v,g,y,S)=>{if(p){let k=p[v].start;const C=p.event;if(C){if(v==="playout"||C.timelineOccupancy!==BT.Point){const x=r(g);x?.interstitial===C&&(k+=x.assetItem.startOffset+x[S])}}else{const x=y==="bufferedPos"?s():t[y];k+=x-p.start}return k}return 0},a=(p,v)=>{var g;if(p!==0&&v!=="primary"&&(g=t.schedule)!=null&&g.length){var y;const S=t.schedule.findItemIndexAtTime(p),k=(y=t.schedule.items)==null?void 0:y[S];if(k){const C=k[v].start-k.start;return p+C}}return p},s=()=>{const p=t.bufferedPos;return p===Number.MAX_VALUE?l("primary"):Math.max(p,0)},l=p=>{var v,g;return(v=t.primaryDetails)!=null&&v.live?t.primaryDetails.edge:((g=t.schedule)==null?void 0:g.durations[p])||0},c=(p,v)=>{var g,y;const S=t.effectivePlayingItem;if(S!=null&&(g=S.event)!=null&&g.restrictions.skip||!t.schedule)return;t.log(`seek to ${p} "${v}"`);const k=t.effectivePlayingItem,C=t.schedule.findItemIndexAtTime(p,v),x=(y=t.schedule.items)==null?void 0:y[C],E=t.getBufferingPlayer(),_=E?.interstitial,T=_?.appendInPlace,D=k&&t.itemsMatch(k,x);if(k&&(T||D)){const P=r(t.playingAsset),M=P?.media||t.primaryMedia;if(M){const $=v==="primary"?M.currentTime:o(k,v,t.playingAsset,"timelinePos","currentTime"),L=p-$,B=(T?$:M.currentTime)+L;if(B>=0&&(!P||T||B<=P.duration)){M.currentTime=B;return}}}if(x){let P=p;if(v!=="primary"){const $=x[v].start,L=p-$;P=x.start+L}const M=!t.isInterstitial(x);if((!t.isInterstitial(k)||k.event.appendInPlace)&&(M||x.event.appendInPlace)){const $=t.media||(T?E?.media:null);$&&($.currentTime=P)}else if(k){const $=t.findItemIndex(k);if(C>$){const B=t.schedule.findJumpRestrictedIndex($+1,C);if(B>$){t.setSchedulePosition(B);return}}let L=0;if(M)t.timelinePos=P,t.checkBuffer();else{const B=x.event.assetList,F=p-(x[v]||x).start;for(let W=B.length;W--;){const U=B[W];if(U.duration&&F>=U.startOffset&&F{const p=t.effectivePlayingItem;if(t.isInterstitial(p))return p;const v=n();return t.isInterstitial(v)?v:null},h={get bufferedEnd(){const p=n(),v=t.bufferingItem;if(v&&v===p){var g;return o(v,"playout",t.bufferingAsset,"bufferedPos","bufferedEnd")-v.playout.start||((g=t.bufferingAsset)==null?void 0:g.startOffset)||0}return 0},get currentTime(){const p=d(),v=t.effectivePlayingItem;return v&&v===p?o(v,"playout",t.effectivePlayingAsset,"timelinePos","currentTime")-v.playout.start:0},set currentTime(p){const v=d(),g=t.effectivePlayingItem;g&&g===v&&c(p+g.playout.start,"playout")},get duration(){const p=d();return p?p.playout.end-p.playout.start:0},get assetPlayers(){var p;const v=(p=d())==null?void 0:p.event.assetList;return v?v.map(g=>t.getAssetPlayer(g.identifier)):[]},get playingIndex(){var p;const v=(p=d())==null?void 0:p.event;return v&&t.effectivePlayingAsset?v.findAssetIndex(t.effectivePlayingAsset):-1},get scheduleItem(){return d()}};return this.manager={get events(){var p;return((p=t.schedule)==null||(p=p.events)==null?void 0:p.slice(0))||[]},get schedule(){var p;return((p=t.schedule)==null||(p=p.items)==null?void 0:p.slice(0))||[]},get interstitialPlayer(){return d()?h:null},get playerQueue(){return t.playerQueue.slice(0)},get bufferingAsset(){return t.bufferingAsset},get bufferingItem(){return n()},get bufferingIndex(){const p=n();return t.findItemIndex(p)},get playingAsset(){return t.effectivePlayingAsset},get playingItem(){return t.effectivePlayingItem},get playingIndex(){const p=t.effectivePlayingItem;return t.findItemIndex(p)},primary:{get bufferedEnd(){return s()},get currentTime(){const p=t.timelinePos;return p>0?p:0},set currentTime(p){c(p,"primary")},get duration(){return l("primary")},get seekableStart(){var p;return((p=t.primaryDetails)==null?void 0:p.fragmentStart)||0}},integrated:{get bufferedEnd(){return o(n(),"integrated",t.bufferingAsset,"bufferedPos","bufferedEnd")},get currentTime(){return o(t.effectivePlayingItem,"integrated",t.effectivePlayingAsset,"timelinePos","currentTime")},set currentTime(p){c(p,"integrated")},get duration(){return l("integrated")},get seekableStart(){var p;return a(((p=t.primaryDetails)==null?void 0:p.fragmentStart)||0,"integrated")}},skip:()=>{const p=t.effectivePlayingItem,v=p?.event;if(v&&!v.restrictions.skip){const g=t.findItemIndex(p);if(v.appendInPlace){const y=p.playout.start+p.event.duration;c(y+.001,"playout")}else t.advanceAfterAssetEnded(v,g,1/0)}}}}get effectivePlayingItem(){return this.waitingItem||this.playingItem||this.endedItem}get effectivePlayingAsset(){return this.playingAsset||this.endedAsset}get playingLastItem(){var t;const n=this.playingItem,r=(t=this.schedule)==null?void 0:t.items;return!this.playbackStarted||!n||!r?!1:this.findItemIndex(n)===r.length-1}get playbackStarted(){return this.effectivePlayingItem!==null}get currentTime(){var t,n;if(this.mediaSelection===null)return;const r=this.waitingItem||this.playingItem;if(this.isInterstitial(r)&&!r.event.appendInPlace)return;let o=this.media;!o&&(t=this.bufferingItem)!=null&&(t=t.event)!=null&&t.appendInPlace&&(o=this.primaryMedia);const a=(n=o)==null?void 0:n.currentTime;if(!(a===void 0||!jn(a)))return a}get primaryMedia(){var t;return this.media||((t=this.detachedData)==null?void 0:t.media)||null}isInterstitial(t){return!!(t!=null&&t.event)}retreiveMediaSource(t,n){const r=this.getAssetPlayer(t);r&&this.transferMediaFromPlayer(r,n)}transferMediaFromPlayer(t,n){const r=t.interstitial.appendInPlace,o=t.media;if(r&&o===this.primaryMedia){if(this.bufferingAsset=null,(!n||this.isInterstitial(n)&&!n.event.appendInPlace)&&n&&o){this.detachedData={media:o};return}const a=t.transferMedia();this.log(`transfer MediaSource from ${t} ${To(a)}`),this.detachedData=a}else n&&o&&(this.shouldPlay||(this.shouldPlay=!o.paused))}transferMediaTo(t,n){var r,o;if(t.media===n)return;let a=null;const s=this.hls,l=t!==s,c=l&&t.interstitial.appendInPlace,d=(r=this.detachedData)==null?void 0:r.mediaSource;let h;if(s.media)c&&(a=s.transferMedia(),this.detachedData=a),h="Primary";else if(d){const y=this.getBufferingPlayer();y?(a=y.transferMedia(),h=`${y}`):h="detached MediaSource"}else h="detached media";if(!a){if(d)a=this.detachedData,this.log(`using detachedData: MediaSource ${To(a)}`);else if(!this.detachedData||s.media===n){const y=this.playerQueue;y.length>1&&y.forEach(S=>{if(l&&S.interstitial.appendInPlace!==c){const k=S.interstitial;this.clearInterstitial(S.interstitial,null),k.appendInPlace=!1,k.appendInPlace&&this.warn(`Could not change append strategy for queued assets ${k}`)}}),this.hls.detachMedia(),this.detachedData={media:n}}}const p=a&&"mediaSource"in a&&((o=a.mediaSource)==null?void 0:o.readyState)!=="closed",v=p&&a?a:n;this.log(`${p?"transfering MediaSource":"attaching media"} to ${l?t:"Primary"} from ${h} (media.currentTime: ${n.currentTime})`);const g=this.schedule;if(v===a&&g){const y=l&&t.assetId===g.assetIdAtEnd;v.overrides={duration:g.duration,endOfStream:!l||y,cueRemoval:!l}}t.attachMedia(v)}onInterstitialCueEnter(){this.onTimeupdate()}checkStart(){const t=this.schedule,n=t?.events;if(!n||this.playbackDisabled||!this.media)return;this.bufferedPos===-1&&(this.bufferedPos=0);const r=this.timelinePos,o=this.effectivePlayingItem;if(r===-1){const a=this.hls.startPosition;if(this.log(CC("checkStart",a)),this.timelinePos=a,n.length&&n[0].cue.pre){const s=t.findEventIndex(n[0].identifier);this.setSchedulePosition(s)}else if(a>=0||!this.primaryLive){const s=this.timelinePos=a>0?a:0,l=t.findItemIndexAtTime(s);this.setSchedulePosition(l)}}else if(o&&!this.playingItem){const a=t.findItemIndex(o);this.setSchedulePosition(a)}}advanceAssetBuffering(t,n){const r=t.event,o=r.findAssetIndex(n),a=WF(r,o);if(!r.isAssetPastPlayoutLimit(a))this.bufferedToEvent(t,a);else if(this.schedule){var s;const l=(s=this.schedule.items)==null?void 0:s[this.findItemIndex(t)+1];l&&this.bufferedToItem(l)}}advanceAfterAssetEnded(t,n,r){const o=WF(t,r);if(t.isAssetPastPlayoutLimit(o)){if(this.schedule){const a=this.schedule.items;if(a){const s=n+1,l=a.length;if(s>=l){this.setSchedulePosition(-1);return}const c=t.resumeTime;this.timelinePos=0?o[t]:null;this.log(`setSchedulePosition ${t}, ${n} (${a&&fd(a)}) pos: ${this.timelinePos}`);const s=this.waitingItem||this.playingItem,l=this.playingLastItem;if(this.isInterstitial(s)){const h=s.event,p=this.playingAsset,v=p?.identifier,g=v?this.getAssetPlayer(v):null;if(g&&v&&(!this.eventItemsMatch(s,a)||n!==void 0&&v!==h.assetList[n].identifier)){var c;const y=h.findAssetIndex(p);if(this.log(`INTERSTITIAL_ASSET_ENDED ${y+1}/${h.assetList.length} ${F1(p)}`),this.endedAsset=p,this.playingAsset=null,this.hls.trigger(Ee.INTERSTITIAL_ASSET_ENDED,{asset:p,assetListIndex:y,event:h,schedule:o.slice(0),scheduleIndex:t,player:g}),s!==this.playingItem){this.itemsMatch(s,this.playingItem)&&!this.playingAsset&&this.advanceAfterAssetEnded(h,this.findItemIndex(this.playingItem),y);return}this.retreiveMediaSource(v,a),g.media&&!((c=this.detachedData)!=null&&c.mediaSource)&&g.detachMedia()}if(!this.eventItemsMatch(s,a)&&(this.endedItem=s,this.playingItem=null,this.log(`INTERSTITIAL_ENDED ${h} ${fd(s)}`),h.hasPlayed=!0,this.hls.trigger(Ee.INTERSTITIAL_ENDED,{event:h,schedule:o.slice(0),scheduleIndex:t}),h.cue.once)){var d;this.updateSchedule();const y=(d=this.schedule)==null?void 0:d.items;if(a&&y){const S=this.findItemIndex(a);this.advanceSchedule(S,y,n,s,l)}return}}this.advanceSchedule(t,o,n,s,l)}advanceSchedule(t,n,r,o,a){const s=this.schedule;if(!s)return;const l=n[t]||null,c=this.primaryMedia,d=this.playerQueue;if(d.length&&d.forEach(h=>{const p=h.interstitial,v=s.findEventIndex(p.identifier);(vt+1)&&this.clearInterstitial(p,l)}),this.isInterstitial(l)){this.timelinePos=Math.min(Math.max(this.timelinePos,l.start),l.end);const h=l.event;if(r===void 0){r=s.findAssetIndex(h,this.timelinePos);const y=WF(h,r-1);if(h.isAssetPastPlayoutLimit(y)||h.appendInPlace&&this.timelinePos===l.end){this.advanceAfterAssetEnded(h,t,r);return}r=y}const p=this.waitingItem;this.assetsBuffered(l,c)||this.setBufferingItem(l);let v=this.preloadAssets(h,r);if(this.eventItemsMatch(l,p||o)||(this.waitingItem=l,this.log(`INTERSTITIAL_STARTED ${fd(l)} ${h.appendInPlace?"append in place":""}`),this.hls.trigger(Ee.INTERSTITIAL_STARTED,{event:h,schedule:n.slice(0),scheduleIndex:t})),!h.assetListLoaded){this.log(`Waiting for ASSET-LIST to complete loading ${h}`);return}if(h.assetListLoader&&(h.assetListLoader.destroy(),h.assetListLoader=void 0),!c){this.log(`Waiting for attachMedia to start Interstitial ${h}`);return}this.waitingItem=this.endedItem=null,this.playingItem=l;const g=h.assetList[r];if(!g){this.advanceAfterAssetEnded(h,t,r||0);return}if(v||(v=this.getAssetPlayer(g.identifier)),v===null||v.destroyed){const y=h.assetList.length;this.warn(`asset ${r+1}/${y} player destroyed ${h}`),v=this.createAssetPlayer(h,g,r),v.loadSource()}if(!this.eventItemsMatch(l,this.bufferingItem)&&h.appendInPlace&&this.isAssetBuffered(g))return;this.startAssetPlayer(v,r,n,t,c),this.shouldPlay&&Bue(v.media)}else l?(this.resumePrimary(l,t,o),this.shouldPlay&&Bue(this.hls.media)):a&&this.isInterstitial(o)&&(this.endedItem=null,this.playingItem=o,o.event.appendInPlace||this.attachPrimary(s.durations.primary,null))}get playbackDisabled(){return this.hls.config.enableInterstitialPlayback===!1}get primaryDetails(){var t;return(t=this.mediaSelection)==null?void 0:t.main.details}get primaryLive(){var t;return!!((t=this.primaryDetails)!=null&&t.live)}resumePrimary(t,n,r){var o,a;if(this.playingItem=t,this.playingAsset=this.endedAsset=null,this.waitingItem=this.endedItem=null,this.bufferedToItem(t),this.log(`resuming ${fd(t)}`),!((o=this.detachedData)!=null&&o.mediaSource)){let l=this.timelinePos;(l=t.end)&&(l=this.getPrimaryResumption(t,n),this.log(CC("resumePrimary",l)),this.timelinePos=l),this.attachPrimary(l,t)}if(!r)return;const s=(a=this.schedule)==null?void 0:a.items;s&&(this.log(`INTERSTITIALS_PRIMARY_RESUMED ${fd(t)}`),this.hls.trigger(Ee.INTERSTITIALS_PRIMARY_RESUMED,{schedule:s.slice(0),scheduleIndex:n}),this.checkBuffer())}getPrimaryResumption(t,n){const r=t.start;if(this.primaryLive){const o=this.primaryDetails;if(n===0)return this.hls.startPosition;if(o&&(ro.edge))return this.hls.liveSyncPosition||-1}return r}isAssetBuffered(t){const n=this.getAssetPlayer(t.identifier);return n!=null&&n.hls?n.hls.bufferedToEnd:Vr.bufferInfo(this.primaryMedia,this.timelinePos,0).end+1>=t.timelineStart+(t.duration||0)}attachPrimary(t,n,r){n?this.setBufferingItem(n):this.bufferingItem=this.playingItem,this.bufferingAsset=null;const o=this.primaryMedia;if(!o)return;const a=this.hls;a.media?this.checkBuffer():(this.transferMediaTo(a,o),r&&this.startLoadingPrimaryAt(t,r)),r||(this.log(CC("attachPrimary",t)),this.timelinePos=t,this.startLoadingPrimaryAt(t,r))}startLoadingPrimaryAt(t,n){var r;const o=this.hls;!o.loadingEnabled||!o.media||Math.abs((((r=o.mainForwardBufferInfo)==null?void 0:r.start)||o.media.currentTime)-t)>.5?o.startLoad(t,n):o.bufferingEnabled||o.resumeBuffering()}onManifestLoading(){var t;this.stopLoad(),(t=this.schedule)==null||t.reset(),this.emptyPlayerQueue(),this.clearScheduleState(),this.shouldPlay=!1,this.bufferedPos=this.timelinePos=-1,this.mediaSelection=this.altSelection=this.manager=this.requiredTracks=null,this.hls.off(Ee.BUFFER_CODECS,this.onBufferCodecs,this),this.hls.on(Ee.BUFFER_CODECS,this.onBufferCodecs,this)}onLevelUpdated(t,n){if(n.level===-1||!this.schedule)return;const r=this.hls.levels[n.level];if(!r.details)return;const o=fo(fo({},this.mediaSelection||this.altSelection),{},{main:r});this.mediaSelection=o,this.schedule.parseInterstitialDateRanges(o,this.hls.config.interstitialAppendInPlace),!this.effectivePlayingItem&&this.schedule.items&&this.checkStart()}onAudioTrackUpdated(t,n){const r=this.hls.audioTracks[n.id],o=this.mediaSelection;if(!o){this.altSelection=fo(fo({},this.altSelection),{},{audio:r});return}const a=fo(fo({},o),{},{audio:r});this.mediaSelection=a}onSubtitleTrackUpdated(t,n){const r=this.hls.subtitleTracks[n.id],o=this.mediaSelection;if(!o){this.altSelection=fo(fo({},this.altSelection),{},{subtitles:r});return}const a=fo(fo({},o),{},{subtitles:r});this.mediaSelection=a}onAudioTrackSwitching(t,n){const r=Gle(n);this.playerQueue.forEach(({hls:o})=>o&&(o.setAudioOption(n)||o.setAudioOption(r)))}onSubtitleTrackSwitch(t,n){const r=Gle(n);this.playerQueue.forEach(({hls:o})=>o&&(o.setSubtitleOption(n)||n.id!==-1&&o.setSubtitleOption(r)))}onBufferCodecs(t,n){const r=n.tracks;r&&(this.requiredTracks=r)}onBufferAppended(t,n){this.checkBuffer()}onBufferFlushed(t,n){const r=this.playingItem;if(r&&!this.itemsMatch(r,this.bufferingItem)&&!this.isInterstitial(r)){const o=this.timelinePos;this.bufferedPos=o,this.checkBuffer()}}onBufferedToEnd(t){if(!this.schedule)return;const n=this.schedule.events;if(this.bufferedPos.25){t.event.assetList.forEach((a,s)=>{t.event.isAssetPastPlayoutLimit(s)&&this.clearAssetPlayer(a.identifier,null)});const r=t.end+.25,o=Vr.bufferInfo(this.primaryMedia,r,0);(o.end>r||(o.nextStart||0)>r)&&(this.log(`trim buffered interstitial ${fd(t)} (was ${fd(n)})`),this.attachPrimary(r,null,!0),this.flushFrontBuffer(r))}}itemsMatch(t,n){return!!n&&(t===n||t.event&&n.event&&this.eventItemsMatch(t,n)||!t.event&&!n.event&&this.findItemIndex(t)===this.findItemIndex(n))}eventItemsMatch(t,n){var r;return!!n&&(t===n||t.event.identifier===((r=n.event)==null?void 0:r.identifier))}findItemIndex(t,n){return t&&this.schedule?this.schedule.findItemIndex(t,n):-1}updateSchedule(t=!1){var n;const r=this.mediaSelection;r&&((n=this.schedule)==null||n.updateSchedule(r,[],t))}checkBuffer(t){var n;const r=(n=this.schedule)==null?void 0:n.items;if(!r)return;const o=Vr.bufferInfo(this.primaryMedia,this.timelinePos,0);t&&(this.bufferedPos=this.timelinePos),t||(t=o.len<1),this.updateBufferedPos(o.end,r,t)}updateBufferedPos(t,n,r){const o=this.schedule,a=this.bufferingItem;if(this.bufferedPos>t||!o)return;if(n.length===1&&this.itemsMatch(n[0],a)){this.bufferedPos=t;return}const s=this.playingItem,l=this.findItemIndex(s);let c=o.findItemIndexAtTime(t);if(this.bufferedPos=a.end||(d=v.event)!=null&&d.appendInPlace&&t+.01>=v.start)&&(c=p),this.isInterstitial(a)){const g=a.event;if(p-l>1&&g.appendInPlace===!1||g.assetList.length===0&&g.assetListLoader)return}if(this.bufferedPos=t,c>h&&c>l)this.bufferedToItem(v);else{const g=this.primaryDetails;this.primaryLive&&g&&t>g.edge-g.targetduration&&v.start{const a=this.getAssetPlayer(o.identifier);return!(a!=null&&a.bufferedInPlaceToEnd(n))})}setBufferingItem(t){const n=this.bufferingItem,r=this.schedule;if(!this.itemsMatch(t,n)&&r){const{items:o,events:a}=r;if(!o||!a)return n;const s=this.isInterstitial(t),l=this.getBufferingPlayer();this.bufferingItem=t,this.bufferedPos=Math.max(t.start,Math.min(t.end,this.timelinePos));const c=l?l.remaining:n?n.end-this.timelinePos:0;if(this.log(`INTERSTITIALS_BUFFERED_TO_BOUNDARY ${fd(t)}`+(n?` (${c.toFixed(2)} remaining)`:"")),!this.playbackDisabled)if(s){const d=r.findAssetIndex(t.event,this.bufferedPos);t.event.assetList.forEach((h,p)=>{const v=this.getAssetPlayer(h.identifier);v&&(p===d&&v.loadSource(),v.resumeBuffering())})}else this.hls.resumeBuffering(),this.playerQueue.forEach(d=>d.pauseBuffering());this.hls.trigger(Ee.INTERSTITIALS_BUFFERED_TO_BOUNDARY,{events:a.slice(0),schedule:o.slice(0),bufferingIndex:this.findItemIndex(t),playingIndex:this.findItemIndex(this.playingItem)})}else this.bufferingItem!==t&&(this.bufferingItem=t);return n}bufferedToItem(t,n=0){const r=this.setBufferingItem(t);if(!this.playbackDisabled){if(this.isInterstitial(t))this.bufferedToEvent(t,n);else if(r!==null){this.bufferingAsset=null;const o=this.detachedData;o?o.mediaSource?this.attachPrimary(t.start,t,!0):this.preloadPrimary(t):this.preloadPrimary(t)}}}preloadPrimary(t){const n=this.findItemIndex(t),r=this.getPrimaryResumption(t,n);this.startLoadingPrimaryAt(r)}bufferedToEvent(t,n){const r=t.event,o=r.assetList.length===0&&!r.assetListLoader,a=r.cue.once;if(o||!a){const s=this.preloadAssets(r,n);if(s!=null&&s.interstitial.appendInPlace){const l=this.primaryMedia;l&&this.bufferAssetPlayer(s,l)}}}preloadAssets(t,n){const r=t.assetUrl,o=t.assetList.length,a=o===0&&!t.assetListLoader,s=t.cue.once;if(a){const c=t.timelineStart;if(t.appendInPlace){var l;const v=this.playingItem;!this.isInterstitial(v)&&(v==null||(l=v.nextEvent)==null?void 0:l.identifier)===t.identifier&&this.flushFrontBuffer(c+.25)}let d,h=0;if(!this.playingItem&&this.primaryLive&&(h=this.hls.startPosition,h===-1&&(h=this.hls.liveSyncPosition||0)),h&&!(t.cue.pre||t.cue.post)){const v=h-c;v>0&&(d=Math.round(v*1e3)/1e3)}if(this.log(`Load interstitial asset ${n+1}/${r?1:o} ${t}${d?` live-start: ${h} start-offset: ${d}`:""}`),r)return this.createAsset(t,0,0,c,t.duration,r);const p=this.assetListLoader.loadAssetList(t,d);p&&(t.assetListLoader=p)}else if(!s&&o){for(let d=n;d{this.hls.trigger(Ee.BUFFER_FLUSHING,{startOffset:t,endOffset:1/0,type:o})})}getAssetPlayerQueueIndex(t){const n=this.playerQueue;for(let r=0;r1){const T=n.duration;T&&_{if(_.live){var T;const M=new Error(`Interstitials MUST be VOD assets ${t}`),$={fatal:!0,type:dr.OTHER_ERROR,details:Ht.INTERSTITIAL_ASSET_ITEM_ERROR,error:M},L=((T=this.schedule)==null?void 0:T.findEventIndex(t.identifier))||-1;this.handleAssetItemError($,t,L,r,M.message);return}const D=_.edge-_.fragmentStart,P=n.duration;(S||P===null||D>P)&&(S=!1,this.log(`Interstitial asset "${p}" duration change ${P} > ${D}`),n.duration=D,this.updateSchedule())};y.on(Ee.LEVEL_UPDATED,(_,{details:T})=>k(T)),y.on(Ee.LEVEL_PTS_UPDATED,(_,{details:T})=>k(T)),y.on(Ee.EVENT_CUE_ENTER,()=>this.onInterstitialCueEnter());const C=(_,T)=>{const D=this.getAssetPlayer(p);if(D&&T.tracks){D.off(Ee.BUFFER_CODECS,C),D.tracks=T.tracks;const P=this.primaryMedia;this.bufferingAsset===D.assetItem&&P&&!D.media&&this.bufferAssetPlayer(D,P)}};y.on(Ee.BUFFER_CODECS,C);const x=()=>{var _;const T=this.getAssetPlayer(p);if(this.log(`buffered to end of asset ${T}`),!T||!this.schedule)return;const D=this.schedule.findEventIndex(t.identifier),P=(_=this.schedule.items)==null?void 0:_[D];this.isInterstitial(P)&&this.advanceAssetBuffering(P,n)};y.on(Ee.BUFFERED_TO_END,x);const E=_=>()=>{if(!this.getAssetPlayer(p)||!this.schedule)return;this.shouldPlay=!0;const D=this.schedule.findEventIndex(t.identifier);this.advanceAfterAssetEnded(t,D,_)};return y.once(Ee.MEDIA_ENDED,E(r)),y.once(Ee.PLAYOUT_LIMIT_REACHED,E(1/0)),y.on(Ee.ERROR,(_,T)=>{if(!this.schedule)return;const D=this.getAssetPlayer(p);if(T.details===Ht.BUFFER_STALLED_ERROR){if(D!=null&&D.appendInPlace){this.handleInPlaceStall(t);return}this.onTimeupdate(),this.checkBuffer(!0);return}this.handleAssetItemError(T,t,this.schedule.findEventIndex(t.identifier),r,`Asset player error ${T.error} ${t}`)}),y.on(Ee.DESTROYING,()=>{if(!this.getAssetPlayer(p)||!this.schedule)return;const T=new Error(`Asset player destroyed unexpectedly ${p}`),D={fatal:!0,type:dr.OTHER_ERROR,details:Ht.INTERSTITIAL_ASSET_ITEM_ERROR,error:T};this.handleAssetItemError(D,t,this.schedule.findEventIndex(t.identifier),r,T.message)}),this.log(`INTERSTITIAL_ASSET_PLAYER_CREATED ${F1(n)}`),this.hls.trigger(Ee.INTERSTITIAL_ASSET_PLAYER_CREATED,{asset:n,assetListIndex:r,event:t,player:y}),y}clearInterstitial(t,n){t.assetList.forEach(r=>{this.clearAssetPlayer(r.identifier,n)}),t.reset()}resetAssetPlayer(t){const n=this.getAssetPlayerQueueIndex(t);if(n!==-1){this.log(`reset asset player "${t}" after error`);const r=this.playerQueue[n];this.transferMediaFromPlayer(r,null),r.resetDetails()}}clearAssetPlayer(t,n){const r=this.getAssetPlayerQueueIndex(t);if(r!==-1){const o=this.playerQueue[r];this.log(`clear ${o} toSegment: ${n&&fd(n)}`),this.transferMediaFromPlayer(o,n),this.playerQueue.splice(r,1),o.destroy()}}emptyPlayerQueue(){let t;for(;t=this.playerQueue.pop();)t.destroy();this.playerQueue=[]}startAssetPlayer(t,n,r,o,a){const{interstitial:s,assetItem:l,assetId:c}=t,d=s.assetList.length,h=this.playingAsset;this.endedAsset=null,this.playingAsset=l,(!h||h.identifier!==c)&&(h&&(this.clearAssetPlayer(h.identifier,r[o]),delete h.error),this.log(`INTERSTITIAL_ASSET_STARTED ${n+1}/${d} ${F1(l)}`),this.hls.trigger(Ee.INTERSTITIAL_ASSET_STARTED,{asset:l,assetListIndex:n,event:s,schedule:r.slice(0),scheduleIndex:o,player:t})),this.bufferAssetPlayer(t,a)}bufferAssetPlayer(t,n){var r,o;if(!this.schedule)return;const{interstitial:a,assetItem:s}=t,l=this.schedule.findEventIndex(a.identifier),c=(r=this.schedule.items)==null?void 0:r[l];if(!c)return;t.loadSource(),this.setBufferingItem(c),this.bufferingAsset=s;const d=this.getBufferingPlayer();if(d===t)return;const h=a.appendInPlace;if(h&&d?.interstitial.appendInPlace===!1)return;const p=d?.tracks||((o=this.detachedData)==null?void 0:o.tracks)||this.requiredTracks;if(h&&s!==this.playingAsset){if(!t.tracks){this.log(`Waiting for track info before buffering ${t}`);return}if(p&&!E3e(p,t.tracks)){const v=new Error(`Asset ${F1(s)} SourceBuffer tracks ('${Object.keys(t.tracks)}') are not compatible with primary content tracks ('${Object.keys(p)}')`),g={fatal:!0,type:dr.OTHER_ERROR,details:Ht.INTERSTITIAL_ASSET_ITEM_ERROR,error:v},y=a.findAssetIndex(s);this.handleAssetItemError(g,a,l,y,v.message);return}}this.transferMediaTo(t,n)}handleInPlaceStall(t){const n=this.schedule,r=this.primaryMedia;if(!n||!r)return;const o=r.currentTime,a=n.findAssetIndex(t,o),s=t.assetList[a];if(s){const l=this.getAssetPlayer(s.identifier);if(l){const c=l.currentTime||o-s.timelineStart,d=l.duration-c;if(this.warn(`Stalled at ${c} of ${c+d} in ${l} ${t} (media.currentTime: ${o})`),c&&(d/r.playbackRate<.5||l.bufferedInPlaceToEnd(r))&&l.hls){const h=n.findEventIndex(t.identifier);this.advanceAfterAssetEnded(t,h,a)}}}}advanceInPlace(t){const n=this.primaryMedia;n&&n.currentTime!S.error))n.error=y;else for(let S=o;S{const C=parseFloat(S.DURATION);this.createAsset(a,k,h,c+h,C,S.URI),h+=C}),a.duration=h,this.log(`Loaded asset-list with duration: ${h} (was: ${d}) ${a}`);const p=this.waitingItem,v=p?.event.identifier===s;this.updateSchedule();const g=(o=this.bufferingItem)==null?void 0:o.event;if(v){var y;const S=this.schedule.findEventIndex(s),k=(y=this.schedule.items)==null?void 0:y[S];if(k){if(!this.playingItem&&this.timelinePos>k.end&&this.schedule.findItemIndexAtTime(this.timelinePos)!==S){a.error=new Error(`Interstitial no longer within playback range ${this.timelinePos} ${a}`),this.updateSchedule(!0),this.primaryFallback(a);return}this.setBufferingItem(k)}this.setSchedulePosition(S)}else if(g?.identifier===s){const S=a.assetList[0];if(S){const k=this.getAssetPlayer(S.identifier);if(g.appendInPlace){const C=this.primaryMedia;k&&C&&this.bufferAssetPlayer(k,C)}else k&&k.loadSource()}}}onError(t,n){if(this.schedule)switch(n.details){case Ht.ASSET_LIST_PARSING_ERROR:case Ht.ASSET_LIST_LOAD_ERROR:case Ht.ASSET_LIST_LOAD_TIMEOUT:{const r=n.interstitial;r&&(this.updateSchedule(!0),this.primaryFallback(r));break}case Ht.BUFFER_STALLED_ERROR:{const r=this.endedItem||this.waitingItem||this.playingItem;if(this.isInterstitial(r)&&r.event.appendInPlace){this.handleInPlaceStall(r.event);return}this.log(`Primary player stall @${this.timelinePos} bufferedPos: ${this.bufferedPos}`),this.onTimeupdate(),this.checkBuffer(!0);break}}}}const Nue=500;class HEt extends IG{constructor(t,n,r){super(t,n,r,"subtitle-stream-controller",nr.SUBTITLE),this.currentTrackId=-1,this.tracksBuffered=[],this.mainDetails=null,this.registerListeners()}onHandlerDestroying(){this.unregisterListeners(),super.onHandlerDestroying(),this.mainDetails=null}registerListeners(){super.registerListeners();const{hls:t}=this;t.on(Ee.LEVEL_LOADED,this.onLevelLoaded,this),t.on(Ee.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.on(Ee.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),t.on(Ee.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),t.on(Ee.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),t.on(Ee.BUFFER_FLUSHING,this.onBufferFlushing,this)}unregisterListeners(){super.unregisterListeners();const{hls:t}=this;t.off(Ee.LEVEL_LOADED,this.onLevelLoaded,this),t.off(Ee.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.off(Ee.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),t.off(Ee.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),t.off(Ee.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),t.off(Ee.BUFFER_FLUSHING,this.onBufferFlushing,this)}startLoad(t,n){this.stopLoad(),this.state=an.IDLE,this.setInterval(Nue),this.nextLoadPosition=this.lastCurrentTime=t+this.timelineOffset,this.startPosition=n?-1:t,this.tick()}onManifestLoading(){super.onManifestLoading(),this.mainDetails=null}onMediaDetaching(t,n){this.tracksBuffered=[],super.onMediaDetaching(t,n)}onLevelLoaded(t,n){this.mainDetails=n.details}onSubtitleFragProcessed(t,n){const{frag:r,success:o}=n;if(this.fragContextChanged(r)||(Ks(r)&&(this.fragPrevious=r),this.state=an.IDLE),!o)return;const a=this.tracksBuffered[this.currentTrackId];if(!a)return;let s;const l=r.start;for(let d=0;d=a[d].start&&l<=a[d].end){s=a[d];break}const c=r.start+r.duration;s?s.end=c:(s={start:l,end:c},a.push(s)),this.fragmentTracker.fragBuffered(r),this.fragBufferedComplete(r,null),this.media&&this.tick()}onBufferFlushing(t,n){const{startOffset:r,endOffset:o}=n;if(r===0&&o!==Number.POSITIVE_INFINITY){const a=o-1;if(a<=0)return;n.endOffsetSubtitles=Math.max(0,a),this.tracksBuffered.forEach(s=>{for(let l=0;lnew C_(r));return}this.tracksBuffered=[],this.levels=n.map(r=>{const o=new C_(r);return this.tracksBuffered[o.id]=[],o}),this.fragmentTracker.removeFragmentsInRange(0,Number.POSITIVE_INFINITY,nr.SUBTITLE),this.fragPrevious=null,this.mediaBuffer=null}onSubtitleTrackSwitch(t,n){var r;if(this.currentTrackId=n.id,!((r=this.levels)!=null&&r.length)||this.currentTrackId===-1){this.clearInterval();return}const o=this.levels[this.currentTrackId];o!=null&&o.details?this.mediaBuffer=this.mediaBufferTimeRanges:this.mediaBuffer=null,o&&this.state!==an.STOPPED&&this.setInterval(Nue)}onSubtitleTrackLoaded(t,n){var r;const{currentTrackId:o,levels:a}=this,{details:s,id:l}=n;if(!a){this.warn(`Subtitle tracks were reset while loading level ${l}`);return}const c=a[l];if(l>=a.length||!c)return;this.log(`Subtitle track ${l} loaded [${s.startSN},${s.endSN}]${s.lastPartSn?`[part-${s.lastPartSn}-${s.lastPartIndex}]`:""},duration:${s.totalduration}`),this.mediaBuffer=this.mediaBufferTimeRanges;let d=0;if(s.live||(r=c.details)!=null&&r.live){if(s.deltaUpdateFailed)return;const p=this.mainDetails;if(!p){this.startFragRequested=!1;return}const v=p.fragments[0];if(!c.details)s.hasProgramDateTime&&p.hasProgramDateTime?(OT(s,p),d=s.fragmentStart):v&&(d=v.start,Uz(s,d));else{var h;d=this.alignPlaylists(s,c.details,(h=this.levelLastLoaded)==null?void 0:h.details),d===0&&v&&(d=v.start,Uz(s,d))}p&&!this.startFragRequested&&this.setStartPosition(p,d)}c.details=s,this.levelLastLoaded=c,l===o&&(this.hls.trigger(Ee.SUBTITLE_TRACK_UPDATED,{details:s,id:l,groupId:n.groupId}),this.tick(),s.live&&!this.fragCurrent&&this.media&&this.state===an.IDLE&&(jm(null,s.fragments,this.media.currentTime,0)||(this.warn("Subtitle playlist not aligned with playback"),c.details=void 0)))}_handleFragmentLoadComplete(t){const{frag:n,payload:r}=t,o=n.decryptdata,a=this.hls;if(!this.fragContextChanged(n)&&r&&r.byteLength>0&&o!=null&&o.key&&o.iv&&yy(o.method)){const s=performance.now();this.decrypter.decrypt(new Uint8Array(r),o.key.buffer,o.iv.buffer,TG(o.method)).catch(l=>{throw a.trigger(Ee.ERROR,{type:dr.MEDIA_ERROR,details:Ht.FRAG_DECRYPT_ERROR,fatal:!1,error:l,reason:l.message,frag:n}),l}).then(l=>{const c=performance.now();a.trigger(Ee.FRAG_DECRYPTED,{frag:n,payload:l,stats:{tstart:s,tdecrypt:c}})}).catch(l=>{this.warn(`${l.name}: ${l.message}`),this.state=an.IDLE})}}doTick(){if(!this.media){this.state=an.IDLE;return}if(this.state===an.IDLE){const{currentTrackId:t,levels:n}=this,r=n?.[t];if(!r||!n.length||!r.details||this.waitForLive(r))return;const{config:o}=this,a=this.getLoadPosition(),s=Vr.bufferedInfo(this.tracksBuffered[this.currentTrackId]||[],a,o.maxBufferHole),{end:l,len:c}=s,d=r.details,h=this.hls.maxBufferLength+d.levelTargetDuration;if(c>h)return;const p=d.fragments,v=p.length,g=d.edge;let y=null;const S=this.fragPrevious;if(lg-x?0:x;y=jm(S,p,Math.max(p[0].start,l),E),!y&&S&&S.start{if(o=o>>>0,o>a-1)throw new DOMException(`Failed to execute '${r}' on 'TimeRanges': The index provided (${o}) is greater than the maximum bound (${a})`);return t[o][r]};this.buffered={get length(){return t.length},end(r){return n("end",r,t.length)},start(r){return n("start",r,t.length)}}}}const GEt={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,128:174,129:176,130:189,131:191,132:8482,133:162,134:163,135:9834,136:224,137:32,138:232,139:226,140:234,141:238,142:244,143:251,144:193,145:201,146:211,147:218,148:220,149:252,150:8216,151:161,152:42,153:8217,154:9473,155:169,156:8480,157:8226,158:8220,159:8221,160:192,161:194,162:199,163:200,164:202,165:203,166:235,167:206,168:207,169:239,170:212,171:217,172:249,173:219,174:171,175:187,176:195,177:227,178:205,179:204,180:236,181:210,182:242,183:213,184:245,185:123,186:125,187:92,188:94,189:95,190:124,191:8764,192:196,193:228,194:214,195:246,196:223,197:165,198:164,199:9475,200:197,201:229,202:216,203:248,204:9487,205:9491,206:9495,207:9499},W2e=e=>String.fromCharCode(GEt[e]||e),bd=15,dh=100,KEt={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},qEt={17:2,18:4,21:6,22:8,23:10,19:13,20:15},YEt={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},XEt={25:2,26:4,29:6,30:8,31:10,27:13,28:15},ZEt=["white","green","blue","cyan","red","yellow","magenta","black","transparent"];class JEt{constructor(){this.time=null,this.verboseLevel=0}log(t,n){if(this.verboseLevel>=t){const r=typeof n=="function"?n():n;po.log(`${this.time} [${t}] ${r}`)}}}const jv=function(t){const n=[];for(let r=0;rdh&&(this.logger.log(3,"Too large cursor position "+this.pos),this.pos=dh)}moveCursor(t){const n=this.pos+t;if(t>1)for(let r=this.pos+1;r=144&&this.backSpace();const n=W2e(t);if(this.pos>=dh){this.logger.log(0,()=>"Cannot insert "+t.toString(16)+" ("+n+") at position "+this.pos+". Skipping it!");return}this.chars[this.pos].setChar(n,this.currPenState),this.moveCursor(1)}clearFromPos(t){let n;for(n=t;n"pacData = "+To(t));let n=t.row-1;if(this.nrRollUpRows&&n"bkgData = "+To(t)),this.backSpace(),this.setPen(t),this.insertChar(32)}setRollUpRows(t){this.nrRollUpRows=t}rollUp(){if(this.nrRollUpRows===null){this.logger.log(3,"roll_up but nrRollUpRows not set yet");return}this.logger.log(1,()=>this.getDisplayText());const t=this.currRow+1-this.nrRollUpRows,n=this.rows.splice(t,1)[0];n.clear(),this.rows.splice(this.currRow,0,n),this.logger.log(2,"Rolling up")}getDisplayText(t){t=t||!1;const n=[];let r="",o=-1;for(let a=0;a0&&(t?r="["+n.join(" | ")+"]":r=n.join(` `)),r}getTextAndFormat(){return this.rows}}class Fue{constructor(t,n,r){this.chNr=void 0,this.outputFilter=void 0,this.mode=void 0,this.verbose=void 0,this.displayedMemory=void 0,this.nonDisplayedMemory=void 0,this.lastOutputScreen=void 0,this.currRollUpRow=void 0,this.writeScreen=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chNr=t,this.outputFilter=n,this.mode=null,this.verbose=0,this.displayedMemory=new GF(r),this.nonDisplayedMemory=new GF(r),this.lastOutputScreen=new GF(r),this.currRollUpRow=this.displayedMemory.rows[bd-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=r}reset(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[bd-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null}getHandler(){return this.outputFilter}setHandler(t){this.outputFilter=t}setPAC(t){this.writeScreen.setPAC(t)}setBkgData(t){this.writeScreen.setBkgData(t)}setMode(t){t!==this.mode&&(this.mode=t,this.logger.log(2,()=>"MODE="+t),this.mode==="MODE_POP-ON"?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),this.mode!=="MODE_ROLL-UP"&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRollUpRows=null),this.mode=t)}insertChars(t){for(let r=0;rn+": "+this.writeScreen.getDisplayText(!0)),(this.mode==="MODE_PAINT-ON"||this.mode==="MODE_ROLL-UP")&&(this.logger.log(1,()=>"DISPLAYED: "+this.displayedMemory.getDisplayText(!0)),this.outputDataUpdate())}ccRCL(){this.logger.log(2,"RCL - Resume Caption Loading"),this.setMode("MODE_POP-ON")}ccBS(){this.logger.log(2,"BS - BackSpace"),this.mode!=="MODE_TEXT"&&(this.writeScreen.backSpace(),this.writeScreen===this.displayedMemory&&this.outputDataUpdate())}ccAOF(){}ccAON(){}ccDER(){this.logger.log(2,"DER- Delete to End of Row"),this.writeScreen.clearToEndOfRow(),this.outputDataUpdate()}ccRU(t){this.logger.log(2,"RU("+t+") - Roll Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-UP"),this.writeScreen.setRollUpRows(t)}ccFON(){this.logger.log(2,"FON - Flash On"),this.writeScreen.setPen({flash:!0})}ccRDC(){this.logger.log(2,"RDC - Resume Direct Captioning"),this.setMode("MODE_PAINT-ON")}ccTR(){this.logger.log(2,"TR"),this.setMode("MODE_TEXT")}ccRTD(){this.logger.log(2,"RTD"),this.setMode("MODE_TEXT")}ccEDM(){this.logger.log(2,"EDM - Erase Displayed Memory"),this.displayedMemory.reset(),this.outputDataUpdate(!0)}ccCR(){this.logger.log(2,"CR - Carriage Return"),this.writeScreen.rollUp(),this.outputDataUpdate(!0)}ccENM(){this.logger.log(2,"ENM - Erase Non-displayed Memory"),this.nonDisplayedMemory.reset()}ccEOC(){if(this.logger.log(2,"EOC - End Of Caption"),this.mode==="MODE_POP-ON"){const t=this.displayedMemory;this.displayedMemory=this.nonDisplayedMemory,this.nonDisplayedMemory=t,this.writeScreen=this.nonDisplayedMemory,this.logger.log(1,()=>"DISP: "+this.displayedMemory.getDisplayText())}this.outputDataUpdate(!0)}ccTO(t){this.logger.log(2,"TO("+t+") - Tab Offset"),this.writeScreen.moveCursor(t)}ccMIDROW(t){const n={flash:!1};if(n.underline=t%2===1,n.italics=t>=46,n.italics)n.foreground="white";else{const r=Math.floor(t/2)-16,o=["white","green","blue","cyan","red","yellow","magenta"];n.foreground=o[r]}this.logger.log(2,"MIDROW: "+To(n)),this.writeScreen.setPen(n)}outputDataUpdate(t=!1){const n=this.logger.time;n!==null&&this.outputFilter&&(this.cueStartTime===null&&!this.displayedMemory.isEmpty()?this.cueStartTime=n:this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,n,this.lastOutputScreen),t&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:n),this.lastOutputScreen.copy(this.displayedMemory))}cueSplitAtTime(t){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,t,this.displayedMemory),this.cueStartTime=t))}}class jue{constructor(t,n,r){this.channels=void 0,this.currentChannel=0,this.cmdHistory=n8t(),this.logger=void 0;const o=this.logger=new JEt;this.channels=[null,new Fue(t,n,o),new Fue(t+1,r,o)]}getHandler(t){return this.channels[t].getHandler()}setHandler(t,n){this.channels[t].setHandler(n)}addData(t,n){this.logger.time=t;for(let r=0;r"["+jv([n[r],n[r+1]])+"] -> ("+jv([o,a])+")");const c=this.cmdHistory;if(o>=16&&o<=31){if(t8t(o,a,c)){wC(null,null,c),this.logger.log(3,()=>"Repeated command ("+jv([o,a])+") is dropped");continue}wC(o,a,this.cmdHistory),s=this.parseCmd(o,a),s||(s=this.parseMidrow(o,a)),s||(s=this.parsePAC(o,a)),s||(s=this.parseBackgroundAttributes(o,a))}else wC(null,null,c);if(!s&&(l=this.parseChars(o,a),l)){const h=this.currentChannel;h&&h>0?this.channels[h].insertChars(l):this.logger.log(2,"No channel found yet. TEXT-MODE?")}!s&&!l&&this.logger.log(2,()=>"Couldn't parse cleaned data "+jv([o,a])+" orig: "+jv([n[r],n[r+1]]))}}parseCmd(t,n){const r=(t===20||t===28||t===21||t===29)&&n>=32&&n<=47,o=(t===23||t===31)&&n>=33&&n<=35;if(!(r||o))return!1;const a=t===20||t===21||t===23?1:2,s=this.channels[a];return t===20||t===21||t===28||t===29?n===32?s.ccRCL():n===33?s.ccBS():n===34?s.ccAOF():n===35?s.ccAON():n===36?s.ccDER():n===37?s.ccRU(2):n===38?s.ccRU(3):n===39?s.ccRU(4):n===40?s.ccFON():n===41?s.ccRDC():n===42?s.ccTR():n===43?s.ccRTD():n===44?s.ccEDM():n===45?s.ccCR():n===46?s.ccENM():n===47&&s.ccEOC():s.ccTO(n-32),this.currentChannel=a,!0}parseMidrow(t,n){let r=0;if((t===17||t===25)&&n>=32&&n<=47){if(t===17?r=1:r=2,r!==this.currentChannel)return this.logger.log(0,"Mismatch channel in midrow parsing"),!1;const o=this.channels[r];return o?(o.ccMIDROW(n),this.logger.log(3,()=>"MIDROW ("+jv([t,n])+")"),!0):!1}return!1}parsePAC(t,n){let r;const o=(t>=17&&t<=23||t>=25&&t<=31)&&n>=64&&n<=127,a=(t===16||t===24)&&n>=64&&n<=95;if(!(o||a))return!1;const s=t<=23?1:2;n>=64&&n<=95?r=s===1?KEt[t]:YEt[t]:r=s===1?qEt[t]:XEt[t];const l=this.channels[s];return l?(l.setPAC(this.interpretPAC(r,n)),this.currentChannel=s,!0):!1}interpretPAC(t,n){let r;const o={color:null,italics:!1,indent:null,underline:!1,row:t};return n>95?r=n-96:r=n-64,o.underline=(r&1)===1,r<=13?o.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(r/2)]:r<=15?(o.italics=!0,o.color="white"):o.indent=Math.floor((r-16)/2)*4,o}parseChars(t,n){let r,o=null,a=null;if(t>=25?(r=2,a=t-8):(r=1,a=t),a>=17&&a<=19){let s;a===17?s=n+80:a===18?s=n+112:s=n+144,this.logger.log(2,()=>"Special char '"+W2e(s)+"' in channel "+r),o=[s]}else t>=32&&t<=127&&(o=n===0?[t]:[t,n]);return o&&this.logger.log(3,()=>"Char codes = "+jv(o).join(",")),o}parseBackgroundAttributes(t,n){const r=(t===16||t===24)&&n>=32&&n<=47,o=(t===23||t===31)&&n>=45&&n<=47;if(!(r||o))return!1;let a;const s={};t===16||t===24?(a=Math.floor((n-32)/2),s.background=ZEt[a],n%2===1&&(s.background=s.background+"_semi")):n===45?s.background="transparent":(s.foreground="black",n===47&&(s.underline=!0));const l=t<=23?1:2;return this.channels[l].setBkgData(s),!0}reset(){for(let t=0;t100)throw new Error("Position must be between 0 and 100.");D=L,this.hasBeenReset=!0}})),Object.defineProperty(h,"positionAlign",a({},p,{get:function(){return P},set:function(L){const B=o(L);if(!B)throw new SyntaxError("An invalid or illegal string was specified.");P=B,this.hasBeenReset=!0}})),Object.defineProperty(h,"size",a({},p,{get:function(){return M},set:function(L){if(L<0||L>100)throw new Error("Size must be between 0 and 100.");M=L,this.hasBeenReset=!0}})),Object.defineProperty(h,"align",a({},p,{get:function(){return $},set:function(L){const B=o(L);if(!B)throw new SyntaxError("An invalid or illegal string was specified.");$=B,this.hasBeenReset=!0}})),h.displayState=void 0}return s.prototype.getCueAsHTML=function(){return self.WebVTT.convertCueToDOMTree(self,this.text)},s})();class r8t{decode(t,n){if(!t)return"";if(typeof t!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(t))}}function K2e(e){function t(r,o,a,s){return(r|0)*3600+(o|0)*60+(a|0)+parseFloat(s||0)}const n=e.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return n?parseFloat(n[2])>59?t(n[2],n[3],0,n[4]):t(n[1],n[2],n[3],n[4]):null}let i8t=class{constructor(){this.values=Object.create(null)}set(t,n){!this.get(t)&&n!==""&&(this.values[t]=n)}get(t,n,r){return r?this.has(t)?this.values[t]:n[r]:this.has(t)?this.values[t]:n}has(t){return t in this.values}alt(t,n,r){for(let o=0;o=0&&r<=100)return this.set(t,r),!0}return!1}};function q2e(e,t,n,r){const o=r?e.split(r):[e];for(const a in o){if(typeof o[a]!="string")continue;const s=o[a].split(n);if(s.length!==2)continue;const l=s[0],c=s[1];t(l,c)}}const Zz=new VG(0,0,""),EC=Zz.align==="middle"?"middle":"center";function o8t(e,t,n){const r=e;function o(){const l=K2e(e);if(l===null)throw new Error("Malformed timestamp: "+r);return e=e.replace(/^[^\sa-zA-Z-]+/,""),l}function a(l,c){const d=new i8t;q2e(l,function(v,g){let y;switch(v){case"region":for(let S=n.length-1;S>=0;S--)if(n[S].id===g){d.set(v,n[S].region);break}break;case"vertical":d.alt(v,g,["rl","lr"]);break;case"line":y=g.split(","),d.integer(v,y[0]),d.percent(v,y[0])&&d.set("snapToLines",!1),d.alt(v,y[0],["auto"]),y.length===2&&d.alt("lineAlign",y[1],["start",EC,"end"]);break;case"position":y=g.split(","),d.percent(v,y[0]),y.length===2&&d.alt("positionAlign",y[1],["start",EC,"end","line-left","line-right","auto"]);break;case"size":d.percent(v,g);break;case"align":d.alt(v,g,["start",EC,"end","left","right"]);break}},/:/,/\s/),c.region=d.get("region",null),c.vertical=d.get("vertical","");let h=d.get("line","auto");h==="auto"&&Zz.line===-1&&(h=-1),c.line=h,c.lineAlign=d.get("lineAlign","start"),c.snapToLines=d.get("snapToLines",!0),c.size=d.get("size",100),c.align=d.get("align",EC);let p=d.get("position","auto");p==="auto"&&Zz.position===50&&(p=c.align==="start"||c.align==="left"?0:c.align==="end"||c.align==="right"?100:50),c.position=p}function s(){e=e.replace(/^\s+/,"")}if(s(),t.startTime=o(),s(),e.slice(0,3)!=="-->")throw new Error("Malformed time stamp (time stamps must be separated by '-->'): "+r);e=e.slice(3),s(),t.endTime=o(),s(),a(e,t)}function Y2e(e){return e.replace(//gi,` `)}class s8t{constructor(){this.state="INITIAL",this.buffer="",this.decoder=new r8t,this.regionList=[],this.cue=null,this.oncue=void 0,this.onparsingerror=void 0,this.onflush=void 0}parse(t){const n=this;t&&(n.buffer+=n.decoder.decode(t,{stream:!0}));function r(){let a=n.buffer,s=0;for(a=Y2e(a);s")===-1){n.cue.id=a;continue}case"CUE":if(!n.cue){n.state="BADCUE";continue}try{o8t(a,n.cue,n.regionList)}catch{n.cue=null,n.state="BADCUE";continue}n.state="CUETEXT";continue;case"CUETEXT":{const l=a.indexOf("-->")!==-1;if(!a||l&&(s=!0)){n.oncue&&n.cue&&n.oncue(n.cue),n.cue=null,n.state="ID";continue}if(n.cue===null)continue;n.cue.text&&(n.cue.text+=` `),n.cue.text+=a}continue;case"BADCUE":a||(n.state="ID")}}}catch{n.state==="CUETEXT"&&n.cue&&n.oncue&&n.oncue(n.cue),n.cue=null,n.state=n.state==="INITIAL"?"BADWEBVTT":"BADCUE"}return this}flush(){const t=this;try{if((t.cue||t.state==="HEADER")&&(t.buffer+=` `,t.parse()),t.state==="INITIAL"||t.state==="BADWEBVTT")throw new Error("Malformed WebVTT signature.")}catch(n){t.onparsingerror&&t.onparsingerror(n)}return t.onflush&&t.onflush(),this}}const a8t=/\r\n|\n\r|\n|\r/g,KF=function(t,n,r=0){return t.slice(r,r+n.length)===n},l8t=function(t){let n=parseInt(t.slice(-3));const r=parseInt(t.slice(-6,-4)),o=parseInt(t.slice(-9,-7)),a=t.length>9?parseInt(t.substring(0,t.indexOf(":"))):0;if(!jn(n)||!jn(r)||!jn(o)||!jn(a))throw Error(`Malformed X-TIMESTAMP-MAP: Local:${t}`);return n+=1e3*r,n+=60*1e3*o,n+=3600*1e3*a,n};function zG(e,t,n){return Db(e.toString())+Db(t.toString())+Db(n)}const u8t=function(t,n,r){let o=t[n],a=t[o.prevCC];if(!a||!a.new&&o.new){t.ccOffset=t.presentationOffset=o.start,o.new=!1;return}for(;(s=a)!=null&&s.new;){var s;t.ccOffset+=o.start-a.start,o.new=!1,o=a,a=t[o.prevCC]}t.presentationOffset=r};function c8t(e,t,n,r,o,a,s){const l=new s8t,c=cc(new Uint8Array(e)).trim().replace(a8t,` `).split(` `),d=[],h=t?mwt(t.baseTime,t.timescale):0;let p="00:00.000",v=0,g=0,y,S=!0;l.oncue=function(k){const C=n[r];let x=n.ccOffset;const E=(v-h)/9e4;if(C!=null&&C.new&&(g!==void 0?x=n.ccOffset=C.start:u8t(n,r,E)),E){if(!t){y=new Error("Missing initPTS for VTT MPEGTS");return}x=E-n.presentationOffset}const _=k.endTime-k.startTime,T=tc((k.startTime+x-g)*9e4,o*9e4)/9e4;k.startTime=Math.max(T,0),k.endTime=Math.max(T+_,0);const D=k.text.trim();k.text=decodeURIComponent(encodeURIComponent(D)),k.id||(k.id=zG(k.startTime,k.endTime,D)),k.endTime>0&&d.push(k)},l.onparsingerror=function(k){y=k},l.onflush=function(){if(y){s(y);return}a(d)},c.forEach(k=>{if(S)if(KF(k,"X-TIMESTAMP-MAP=")){S=!1,k.slice(16).split(",").forEach(C=>{KF(C,"LOCAL:")?p=C.slice(6):KF(C,"MPEGTS:")&&(v=parseInt(C.slice(7)))});try{g=l8t(p)/1e3}catch(C){y=C}return}else k===""&&(S=!1);l.parse(k+` `)}),l.flush()}const qF="stpp.ttml.im1t",X2e=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,Z2e=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,d8t={left:"start",center:"center",right:"end",start:"start",end:"end"};function Vue(e,t,n,r){const o=pi(new Uint8Array(e),["mdat"]);if(o.length===0){r(new Error("Could not parse IMSC1 mdat"));return}const a=o.map(l=>cc(l)),s=vwt(t.baseTime,1,t.timescale);try{a.forEach(l=>n(f8t(l,s)))}catch(l){r(l)}}function f8t(e,t){const o=new DOMParser().parseFromString(e,"text/xml").getElementsByTagName("tt")[0];if(!o)throw new Error("Invalid ttml");const a={frameRate:30,subFrameRate:1,frameRateMultiplier:0,tickRate:0},s=Object.keys(a).reduce((p,v)=>(p[v]=o.getAttribute(`ttp:${v}`)||a[v],p),{}),l=o.getAttribute("xml:space")!=="preserve",c=zue(YF(o,"styling","style")),d=zue(YF(o,"layout","region")),h=YF(o,"body","[begin]");return[].map.call(h,p=>{const v=J2e(p,l);if(!v||!p.hasAttribute("begin"))return null;const g=ZF(p.getAttribute("begin"),s),y=ZF(p.getAttribute("dur"),s);let S=ZF(p.getAttribute("end"),s);if(g===null)throw Uue(p);if(S===null){if(y===null)throw Uue(p);S=g+y}const k=new VG(g-t,S-t,v);k.id=zG(k.startTime,k.endTime,k.text);const C=d[p.getAttribute("region")],x=c[p.getAttribute("style")],E=h8t(C,x,c),{textAlign:_}=E;if(_){const T=d8t[_];T&&(k.lineAlign=T),k.align=_}return bo(k,E),k}).filter(p=>p!==null)}function YF(e,t,n){const r=e.getElementsByTagName(t)[0];return r?[].slice.call(r.querySelectorAll(n)):[]}function zue(e){return e.reduce((t,n)=>{const r=n.getAttribute("xml:id");return r&&(t[r]=n),t},{})}function J2e(e,t){return[].slice.call(e.childNodes).reduce((n,r,o)=>{var a;return r.nodeName==="br"&&o?n+` `:(a=r.childNodes)!=null&&a.length?J2e(r,t):t?n+r.textContent.trim().replace(/\s+/g," "):n+r.textContent},"")}function h8t(e,t,n){const r="http://www.w3.org/ns/ttml#styling";let o=null;const a=["displayAlign","textAlign","color","backgroundColor","fontSize","fontFamily"],s=e!=null&&e.hasAttribute("style")?e.getAttribute("style"):null;return s&&n.hasOwnProperty(s)&&(o=n[s]),a.reduce((l,c)=>{const d=XF(t,r,c)||XF(e,r,c)||XF(o,r,c);return d&&(l[c]=d),l},{})}function XF(e,t,n){return e&&e.hasAttributeNS(t,n)?e.getAttributeNS(t,n):null}function Uue(e){return new Error(`Could not parse ttml timestamp ${e}`)}function ZF(e,t){if(!e)return null;let n=K2e(e);return n===null&&(X2e.test(e)?n=p8t(e,t):Z2e.test(e)&&(n=v8t(e,t))),n}function p8t(e,t){const n=X2e.exec(e),r=(n[4]|0)+(n[5]|0)/t.subFrameRate;return(n[1]|0)*3600+(n[2]|0)*60+(n[3]|0)+r/t.frameRate}function v8t(e,t){const n=Z2e.exec(e),r=Number(n[1]);switch(n[2]){case"h":return r*3600;case"m":return r*60;case"ms":return r*1e3;case"f":return r/t.frameRate;case"t":return r/t.tickRate}return r}class TC{constructor(t,n){this.timelineController=void 0,this.cueRanges=[],this.trackName=void 0,this.startTime=null,this.endTime=null,this.screen=null,this.timelineController=t,this.trackName=n}dispatchCue(){this.startTime!==null&&(this.timelineController.addCues(this.trackName,this.startTime,this.endTime,this.screen,this.cueRanges),this.startTime=null)}newCue(t,n,r){(this.startTime===null||this.startTime>t)&&(this.startTime=t),this.endTime=n,this.screen=r,this.timelineController.createCaptionsTrack(this.trackName)}reset(){this.cueRanges=[],this.startTime=null}}class m8t{constructor(t){this.hls=void 0,this.media=null,this.config=void 0,this.enabled=!0,this.Cues=void 0,this.textTracks=[],this.tracks=[],this.initPTS=[],this.unparsedVttFrags=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.cea608Parser1=void 0,this.cea608Parser2=void 0,this.lastCc=-1,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=Wue(),this.captionsProperties=void 0,this.hls=t,this.config=t.config,this.Cues=t.config.cueHandler,this.captionsProperties={textTrack1:{label:this.config.captionsTextTrack1Label,languageCode:this.config.captionsTextTrack1LanguageCode},textTrack2:{label:this.config.captionsTextTrack2Label,languageCode:this.config.captionsTextTrack2LanguageCode},textTrack3:{label:this.config.captionsTextTrack3Label,languageCode:this.config.captionsTextTrack3LanguageCode},textTrack4:{label:this.config.captionsTextTrack4Label,languageCode:this.config.captionsTextTrack4LanguageCode}},t.on(Ee.MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(Ee.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(Ee.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Ee.MANIFEST_LOADED,this.onManifestLoaded,this),t.on(Ee.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.on(Ee.FRAG_LOADING,this.onFragLoading,this),t.on(Ee.FRAG_LOADED,this.onFragLoaded,this),t.on(Ee.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),t.on(Ee.FRAG_DECRYPTED,this.onFragDecrypted,this),t.on(Ee.INIT_PTS_FOUND,this.onInitPtsFound,this),t.on(Ee.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),t.on(Ee.BUFFER_FLUSHING,this.onBufferFlushing,this)}destroy(){const{hls:t}=this;t.off(Ee.MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(Ee.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(Ee.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Ee.MANIFEST_LOADED,this.onManifestLoaded,this),t.off(Ee.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.off(Ee.FRAG_LOADING,this.onFragLoading,this),t.off(Ee.FRAG_LOADED,this.onFragLoaded,this),t.off(Ee.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),t.off(Ee.FRAG_DECRYPTED,this.onFragDecrypted,this),t.off(Ee.INIT_PTS_FOUND,this.onInitPtsFound,this),t.off(Ee.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),t.off(Ee.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=this.media=null,this.cea608Parser1=this.cea608Parser2=void 0}initCea608Parsers(){const t=new TC(this,"textTrack1"),n=new TC(this,"textTrack2"),r=new TC(this,"textTrack3"),o=new TC(this,"textTrack4");this.cea608Parser1=new jue(1,t,n),this.cea608Parser2=new jue(3,r,o)}addCues(t,n,r,o,a){let s=!1;for(let l=a.length;l--;){const c=a[l],d=g8t(c[0],c[1],n,r);if(d>=0&&(c[0]=Math.min(c[0],n),c[1]=Math.max(c[1],r),s=!0,d/(r-n)>.5))return}if(s||a.push([n,r]),this.config.renderTextTracksNatively){const l=this.captionsTracks[t];this.Cues.newCue(l,n,r,o)}else{const l=this.Cues.newCue(null,n,r,o);this.hls.trigger(Ee.CUES_PARSED,{type:"captions",cues:l,track:t})}}onInitPtsFound(t,{frag:n,id:r,initPTS:o,timescale:a,trackId:s}){const{unparsedVttFrags:l}=this;r===nr.MAIN&&(this.initPTS[n.cc]={baseTime:o,timescale:a,trackId:s}),l.length&&(this.unparsedVttFrags=[],l.forEach(c=>{this.initPTS[c.frag.cc]?this.onFragLoaded(Ee.FRAG_LOADED,c):this.hls.trigger(Ee.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:c.frag,error:new Error("Subtitle discontinuity domain does not match main")})}))}getExistingTrack(t,n){const{media:r}=this;if(r)for(let o=0;o{Y1(o[a]),delete o[a]}),this.nonNativeCaptionsTracks={}}onManifestLoading(){this.lastCc=-1,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=Wue(),this._cleanTracks(),this.tracks=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.textTracks=[],this.unparsedVttFrags=[],this.initPTS=[],this.cea608Parser1&&this.cea608Parser2&&(this.cea608Parser1.reset(),this.cea608Parser2.reset())}_cleanTracks(){const{media:t}=this;if(!t)return;const n=t.textTracks;if(n)for(let r=0;ra.textCodec===qF);if(this.config.enableWebVTT||o&&this.config.enableIMSC1){if(I2e(this.tracks,r)){this.tracks=r;return}if(this.textTracks=[],this.tracks=r,this.config.renderTextTracksNatively){const s=this.media,l=s?n8(s.textTracks):null;if(this.tracks.forEach((c,d)=>{let h;if(l){let p=null;for(let v=0;vd!==null).map(d=>d.label);c.length&&this.hls.logger.warn(`Media element contains unused subtitle tracks: ${c.join(", ")}. Replace media element for each source to clear TextTracks and captions menu.`)}}else if(this.tracks.length){const s=this.tracks.map(l=>({label:l.name,kind:l.type.toLowerCase(),default:l.default,subtitleTrack:l}));this.hls.trigger(Ee.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:s})}}}onManifestLoaded(t,n){this.config.enableCEA708Captions&&n.captions&&n.captions.forEach(r=>{const o=/(?:CC|SERVICE)([1-4])/.exec(r.instreamId);if(!o)return;const a=`textTrack${o[1]}`,s=this.captionsProperties[a];s&&(s.label=r.name,r.lang&&(s.languageCode=r.lang),s.media=r)})}closedCaptionsForLevel(t){const n=this.hls.levels[t.level];return n?.attrs["CLOSED-CAPTIONS"]}onFragLoading(t,n){if(this.enabled&&n.frag.type===nr.MAIN){var r,o;const{cea608Parser1:a,cea608Parser2:s,lastSn:l}=this,{cc:c,sn:d}=n.frag,h=(r=(o=n.part)==null?void 0:o.index)!=null?r:-1;a&&s&&(d!==l+1||d===l&&h!==this.lastPartIndex+1||c!==this.lastCc)&&(a.reset(),s.reset()),this.lastCc=c,this.lastSn=d,this.lastPartIndex=h}}onFragLoaded(t,n){const{frag:r,payload:o}=n;if(r.type===nr.SUBTITLE)if(o.byteLength){const a=r.decryptdata,s="stats"in n;if(a==null||!a.encrypted||s){const l=this.tracks[r.level],c=this.vttCCs;c[r.cc]||(c[r.cc]={start:r.start,prevCC:this.prevCC,new:!0},this.prevCC=r.cc),l&&l.textCodec===qF?this._parseIMSC1(r,o):this._parseVTTs(n)}}else this.hls.trigger(Ee.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:r,error:new Error("Empty subtitle payload")})}_parseIMSC1(t,n){const r=this.hls;Vue(n,this.initPTS[t.cc],o=>{this._appendCues(o,t.level),r.trigger(Ee.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:t})},o=>{r.logger.log(`Failed to parse IMSC1: ${o}`),r.trigger(Ee.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:t,error:o})})}_parseVTTs(t){var n;const{frag:r,payload:o}=t,{initPTS:a,unparsedVttFrags:s}=this,l=a.length-1;if(!a[r.cc]&&l===-1){s.push(t);return}const c=this.hls,d=(n=r.initSegment)!=null&&n.data?Qc(r.initSegment.data,new Uint8Array(o)).buffer:o;c8t(d,this.initPTS[r.cc],this.vttCCs,r.cc,r.start,h=>{this._appendCues(h,r.level),c.trigger(Ee.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:r})},h=>{const p=h.message==="Missing initPTS for VTT MPEGTS";p?s.push(t):this._fallbackToIMSC1(r,o),c.logger.log(`Failed to parse VTT cue: ${h}`),!(p&&l>r.cc)&&c.trigger(Ee.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:r,error:h})})}_fallbackToIMSC1(t,n){const r=this.tracks[t.level];r.textCodec||Vue(n,this.initPTS[t.cc],()=>{r.textCodec=qF,this._parseIMSC1(t,n)},()=>{r.textCodec="wvtt"})}_appendCues(t,n){const r=this.hls;if(this.config.renderTextTracksNatively){const o=this.textTracks[n];if(!o||o.mode==="disabled")return;t.forEach(a=>U2e(o,a))}else{const o=this.tracks[n];if(!o)return;const a=o.default?"default":"subtitles"+n;r.trigger(Ee.CUES_PARSED,{type:"subtitles",cues:t,track:a})}}onFragDecrypted(t,n){const{frag:r}=n;r.type===nr.SUBTITLE&&this.onFragLoaded(Ee.FRAG_LOADED,n)}onSubtitleTracksCleared(){this.tracks=[],this.captionsTracks={}}onFragParsingUserdata(t,n){if(!this.enabled||!this.config.enableCEA708Captions)return;const{frag:r,samples:o}=n;if(!(r.type===nr.MAIN&&this.closedCaptionsForLevel(r)==="NONE"))for(let a=0;aXz(l[c],n,r))}if(this.config.renderTextTracksNatively&&n===0&&o!==void 0){const{textTracks:l}=this;Object.keys(l).forEach(c=>Xz(l[c],n,o))}}}extractCea608Data(t){const n=[[],[]],r=t[0]&31;let o=2;for(let a=0;a=16?c--:c++;const g=Y2e(d.trim()),y=zG(t,n,g);e!=null&&(p=e.cues)!=null&&p.getCueById(y)||(s=new h(t,n,g),s.id=y,s.line=v+1,s.align="left",s.position=10+Math.min(80,Math.floor(c*8/32)*10),o.push(s))}return e&&o.length&&(o.sort((v,g)=>v.line==="auto"||g.line==="auto"?0:v.line>8&&g.line>8?g.line-v.line:v.line-g.line),o.forEach(v=>U2e(e,v))),o}};function _8t(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch{}return!1}const S8t=/(\d+)-(\d+)\/(\d+)/;class Gue{constructor(t){this.fetchSetup=void 0,this.requestTimeout=void 0,this.request=null,this.response=null,this.controller=void 0,this.context=null,this.config=null,this.callbacks=null,this.stats=void 0,this.loader=null,this.fetchSetup=t.fetchSetup||w8t,this.controller=new self.AbortController,this.stats=new _G}destroy(){this.loader=this.callbacks=this.context=this.config=this.request=null,this.abortInternal(),this.response=null,this.fetchSetup=this.controller=this.stats=null}abortInternal(){this.controller&&!this.stats.loading.end&&(this.stats.aborted=!0,this.controller.abort())}abort(){var t;this.abortInternal(),(t=this.callbacks)!=null&&t.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.response)}load(t,n,r){const o=this.stats;if(o.loading.start)throw new Error("Loader can only be used once.");o.loading.start=self.performance.now();const a=k8t(t,this.controller.signal),s=t.responseType==="arraybuffer",l=s?"byteLength":"length",{maxTimeToFirstByteMs:c,maxLoadTimeMs:d}=n.loadPolicy;this.context=t,this.config=n,this.callbacks=r,this.request=this.fetchSetup(t,a),self.clearTimeout(this.requestTimeout),n.timeout=c&&jn(c)?c:d,this.requestTimeout=self.setTimeout(()=>{this.callbacks&&(this.abortInternal(),this.callbacks.onTimeout(o,t,this.response))},n.timeout),(T_(this.request)?this.request.then(self.fetch):self.fetch(this.request)).then(p=>{var v;this.response=this.loader=p;const g=Math.max(self.performance.now(),o.loading.start);if(self.clearTimeout(this.requestTimeout),n.timeout=d,this.requestTimeout=self.setTimeout(()=>{this.callbacks&&(this.abortInternal(),this.callbacks.onTimeout(o,t,this.response))},d-(g-o.loading.start)),!p.ok){const{status:S,statusText:k}=p;throw new E8t(k||"fetch, bad network response",S,p)}o.loading.first=g,o.total=C8t(p.headers)||o.total;const y=(v=this.callbacks)==null?void 0:v.onProgress;return y&&jn(n.highWaterMark)?this.loadProgressively(p,o,t,n.highWaterMark,y):s?p.arrayBuffer():t.responseType==="json"?p.json():p.text()}).then(p=>{var v,g;const y=this.response;if(!y)throw new Error("loader destroyed");self.clearTimeout(this.requestTimeout),o.loading.end=Math.max(self.performance.now(),o.loading.first);const S=p[l];S&&(o.loaded=o.total=S);const k={url:y.url,data:p,code:y.status},C=(v=this.callbacks)==null?void 0:v.onProgress;C&&!jn(n.highWaterMark)&&C(o,t,p,y),(g=this.callbacks)==null||g.onSuccess(k,o,t,y)}).catch(p=>{var v;if(self.clearTimeout(this.requestTimeout),o.aborted)return;const g=p&&p.code||0,y=p?p.message:null;(v=this.callbacks)==null||v.onError({code:g,text:y},t,p?p.details:null,o)})}getCacheAge(){let t=null;if(this.response){const n=this.response.headers.get("age");t=n?parseFloat(n):null}return t}getResponseHeader(t){return this.response?this.response.headers.get(t):null}loadProgressively(t,n,r,o=0,a){const s=new u2e,l=t.body.getReader(),c=()=>l.read().then(d=>{if(d.done)return s.dataLength&&a(n,r,s.flush().buffer,t),Promise.resolve(new ArrayBuffer(0));const h=d.value,p=h.length;return n.loaded+=p,p=o&&a(n,r,s.flush().buffer,t)):a(n,r,h.buffer,t),c()}).catch(()=>Promise.reject());return c()}}function k8t(e,t){const n={method:"GET",mode:"cors",credentials:"same-origin",signal:t,headers:new self.Headers(bo({},e.headers))};return e.rangeEnd&&n.headers.set("Range","bytes="+e.rangeStart+"-"+String(e.rangeEnd-1)),n}function x8t(e){const t=S8t.exec(e);if(t)return parseInt(t[2])-parseInt(t[1])+1}function C8t(e){const t=e.get("Content-Range");if(t){const r=x8t(t);if(jn(r))return r}const n=e.get("Content-Length");if(n)return parseInt(n)}function w8t(e,t){return new self.Request(e.url,t)}class E8t extends Error{constructor(t,n,r){super(t),this.code=void 0,this.details=void 0,this.code=n,this.details=r}}const T8t=/^age:\s*[\d.]+\s*$/im;class e4e{constructor(t){this.xhrSetup=void 0,this.requestTimeout=void 0,this.retryTimeout=void 0,this.retryDelay=void 0,this.config=null,this.callbacks=null,this.context=null,this.loader=null,this.stats=void 0,this.xhrSetup=t&&t.xhrSetup||null,this.stats=new _G,this.retryDelay=0}destroy(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null,this.context=null,this.xhrSetup=null}abortInternal(){const t=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),t&&(t.onreadystatechange=null,t.onprogress=null,t.readyState!==4&&(this.stats.aborted=!0,t.abort()))}abort(){var t;this.abortInternal(),(t=this.callbacks)!=null&&t.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)}load(t,n,r){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=t,this.config=n,this.callbacks=r,this.loadInternal()}loadInternal(){const{config:t,context:n}=this;if(!t||!n)return;const r=this.loader=new self.XMLHttpRequest,o=this.stats;o.loading.first=0,o.loaded=0,o.aborted=!1;const a=this.xhrSetup;a?Promise.resolve().then(()=>{if(!(this.loader!==r||this.stats.aborted))return a(r,n.url)}).catch(s=>{if(!(this.loader!==r||this.stats.aborted))return r.open("GET",n.url,!0),a(r,n.url)}).then(()=>{this.loader!==r||this.stats.aborted||this.openAndSendXhr(r,n,t)}).catch(s=>{var l;(l=this.callbacks)==null||l.onError({code:r.status,text:s.message},n,r,o)}):this.openAndSendXhr(r,n,t)}openAndSendXhr(t,n,r){t.readyState||t.open("GET",n.url,!0);const o=n.headers,{maxTimeToFirstByteMs:a,maxLoadTimeMs:s}=r.loadPolicy;if(o)for(const l in o)t.setRequestHeader(l,o[l]);n.rangeEnd&&t.setRequestHeader("Range","bytes="+n.rangeStart+"-"+(n.rangeEnd-1)),t.onreadystatechange=this.readystatechange.bind(this),t.onprogress=this.loadprogress.bind(this),t.responseType=n.responseType,self.clearTimeout(this.requestTimeout),r.timeout=a&&jn(a)?a:s,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),r.timeout),t.send()}readystatechange(){const{context:t,loader:n,stats:r}=this;if(!t||!n)return;const o=n.readyState,a=this.config;if(!r.aborted&&o>=2&&(r.loading.first===0&&(r.loading.first=Math.max(self.performance.now(),r.loading.start),a.timeout!==a.loadPolicy.maxLoadTimeMs&&(self.clearTimeout(this.requestTimeout),a.timeout=a.loadPolicy.maxLoadTimeMs,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),a.loadPolicy.maxLoadTimeMs-(r.loading.first-r.loading.start)))),o===4)){self.clearTimeout(this.requestTimeout),n.onreadystatechange=null,n.onprogress=null;const d=n.status,h=n.responseType==="text"?n.responseText:null;if(d>=200&&d<300){const y=h??n.response;if(y!=null){var s,l;r.loading.end=Math.max(self.performance.now(),r.loading.first);const S=n.responseType==="arraybuffer"?y.byteLength:y.length;r.loaded=r.total=S,r.bwEstimate=r.total*8e3/(r.loading.end-r.loading.first);const k=(s=this.callbacks)==null?void 0:s.onProgress;k&&k(r,t,y,n);const C={url:n.responseURL,data:y,code:d};(l=this.callbacks)==null||l.onSuccess(C,r,t,n);return}}const p=a.loadPolicy.errorRetry,v=r.retry,g={url:t.url,data:void 0,code:d};if(PT(p,v,!1,g))this.retry(p);else{var c;po.error(`${d} while loading ${t.url}`),(c=this.callbacks)==null||c.onError({code:d,text:n.statusText},t,n,r)}}}loadtimeout(){if(!this.config)return;const t=this.config.loadPolicy.timeoutRetry,n=this.stats.retry;if(PT(t,n,!0))this.retry(t);else{var r;po.warn(`timeout while loading ${(r=this.context)==null?void 0:r.url}`);const o=this.callbacks;o&&(this.abortInternal(),o.onTimeout(this.stats,this.context,this.loader))}}retry(t){const{context:n,stats:r}=this;this.retryDelay=CG(t,r.retry),r.retry++,po.warn(`${status?"HTTP Status "+status:"Timeout"} while loading ${n?.url}, retrying ${r.retry}/${t.maxNumRetry} in ${this.retryDelay}ms`),this.abortInternal(),this.loader=null,self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(this.loadInternal.bind(this),this.retryDelay)}loadprogress(t){const n=this.stats;n.loaded=t.loaded,t.lengthComputable&&(n.total=t.total)}getCacheAge(){let t=null;if(this.loader&&T8t.test(this.loader.getAllResponseHeaders())){const n=this.loader.getResponseHeader("age");t=n?parseFloat(n):null}return t}getResponseHeader(t){return this.loader&&new RegExp(`^${t}:\\s*[\\d.]+\\s*$`,"im").test(this.loader.getAllResponseHeaders())?this.loader.getResponseHeader(t):null}}const A8t={maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:null,errorRetry:null},I8t=fo(fo({autoStartLoad:!0,startPosition:-1,defaultAudioCodec:void 0,debug:!1,capLevelOnFPSDrop:!1,capLevelToPlayerSize:!1,ignoreDevicePixelRatio:!1,maxDevicePixelRatio:Number.POSITIVE_INFINITY,preferManagedMediaSource:!0,initialLiveManifestSize:1,maxBufferLength:30,backBufferLength:1/0,frontBufferFlushThreshold:1/0,startOnSegmentBoundary:!1,maxBufferSize:60*1e3*1e3,maxFragLookUpTolerance:.25,maxBufferHole:.1,detectStallWithCurrentTimeMs:1250,highBufferWatchdogPeriod:2,nudgeOffset:.1,nudgeMaxRetry:3,nudgeOnVideoHole:!0,liveSyncMode:"edge",liveSyncDurationCount:3,liveSyncOnStallIncrease:1,liveMaxLatencyDurationCount:1/0,liveSyncDuration:void 0,liveMaxLatencyDuration:void 0,maxLiveSyncPlaybackRate:1,liveDurationInfinity:!1,liveBackBufferLength:null,maxMaxBufferLength:600,enableWorker:!0,workerPath:null,enableSoftwareAES:!0,startLevel:void 0,startFragPrefetch:!1,fpsDroppedMonitoringPeriod:5e3,fpsDroppedMonitoringThreshold:.2,appendErrorMaxRetry:3,ignorePlaylistParsingErrors:!1,loader:e4e,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:Vxt,bufferController:Dwt,capLevelController:NG,errorController:Gxt,fpsController:PEt,stretchShortVideoTrack:!1,maxAudioFramesDrift:1,forceKeyFrameOnDiscontinuity:!0,abrEwmaFastLive:3,abrEwmaSlowLive:9,abrEwmaFastVoD:3,abrEwmaSlowVoD:9,abrEwmaDefaultEstimate:5e5,abrEwmaDefaultEstimateMax:5e6,abrBandWidthFactor:.95,abrBandWidthUpFactor:.7,abrMaxWithRealBitrate:!1,maxStarvationDelay:4,maxLoadingDelay:4,minAutoBitrate:0,emeEnabled:!1,widevineLicenseUrl:void 0,drmSystems:{},drmSystemOptions:{},requestMediaKeySystemAccessFunc:J3e,requireKeySystemAccessOnStart:!1,testBandwidth:!0,progressive:!1,lowLatencyMode:!0,cmcd:void 0,enableDateRangeMetadataCues:!0,enableEmsgMetadataCues:!0,enableEmsgKLVMetadata:!1,enableID3MetadataCues:!0,enableInterstitialPlayback:!0,interstitialAppendInPlace:!0,interstitialLiveLookAhead:10,useMediaCapabilities:!0,preserveManualLevelOnError:!1,certLoadPolicy:{default:A8t},keyLoadPolicy:{default:{maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"},errorRetry:{maxNumRetry:8,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"}}},manifestLoadPolicy:{default:{maxTimeToFirstByteMs:1/0,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},playlistLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:2,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},fragLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:12e4,timeoutRetry:{maxNumRetry:4,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:6,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},steeringManifestLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},interstitialAssetListLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:3e4,timeoutRetry:{maxNumRetry:0,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:0,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},manifestLoadingTimeOut:1e4,manifestLoadingMaxRetry:1,manifestLoadingRetryDelay:1e3,manifestLoadingMaxRetryTimeout:64e3,levelLoadingTimeOut:1e4,levelLoadingMaxRetry:4,levelLoadingRetryDelay:1e3,levelLoadingMaxRetryTimeout:64e3,fragLoadingTimeOut:2e4,fragLoadingMaxRetry:6,fragLoadingRetryDelay:1e3,fragLoadingMaxRetryTimeout:64e3},L8t()),{},{subtitleStreamController:HEt,subtitleTrackController:OEt,timelineController:m8t,audioStreamController:Twt,audioTrackController:Awt,emeController:by,cmcdController:AEt,contentSteeringController:LEt,interstitialsController:UEt});function L8t(){return{cueHandler:b8t,enableWebVTT:!0,enableIMSC1:!0,enableCEA708Captions:!0,captionsTextTrack1Label:"English",captionsTextTrack1LanguageCode:"en",captionsTextTrack2Label:"Spanish",captionsTextTrack2LanguageCode:"es",captionsTextTrack3Label:"Unknown CC",captionsTextTrack3LanguageCode:"",captionsTextTrack4Label:"Unknown CC",captionsTextTrack4LanguageCode:"",renderTextTracksNatively:!0}}function D8t(e,t,n){if((t.liveSyncDurationCount||t.liveMaxLatencyDurationCount)&&(t.liveSyncDuration||t.liveMaxLatencyDuration))throw new Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");if(t.liveMaxLatencyDurationCount!==void 0&&(t.liveSyncDurationCount===void 0||t.liveMaxLatencyDurationCount<=t.liveSyncDurationCount))throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be greater than "liveSyncDurationCount"');if(t.liveMaxLatencyDuration!==void 0&&(t.liveSyncDuration===void 0||t.liveMaxLatencyDuration<=t.liveSyncDuration))throw new Error('Illegal hls.js config: "liveMaxLatencyDuration" must be greater than "liveSyncDuration"');const r=Jz(e),o=["manifest","level","frag"],a=["TimeOut","MaxRetry","RetryDelay","MaxRetryTimeout"];return o.forEach(s=>{const l=`${s==="level"?"playlist":s}LoadPolicy`,c=t[l]===void 0,d=[];a.forEach(h=>{const p=`${s}Loading${h}`,v=t[p];if(v!==void 0&&c){d.push(p);const g=r[l].default;switch(t[l]={default:g},h){case"TimeOut":g.maxLoadTimeMs=v,g.maxTimeToFirstByteMs=v;break;case"MaxRetry":g.errorRetry.maxNumRetry=v,g.timeoutRetry.maxNumRetry=v;break;case"RetryDelay":g.errorRetry.retryDelayMs=v,g.timeoutRetry.retryDelayMs=v;break;case"MaxRetryTimeout":g.errorRetry.maxRetryDelayMs=v,g.timeoutRetry.maxRetryDelayMs=v;break}}}),d.length&&n.warn(`hls.js config: "${d.join('", "')}" setting(s) are deprecated, use "${l}": ${To(t[l])}`)}),fo(fo({},r),t)}function Jz(e){return e&&typeof e=="object"?Array.isArray(e)?e.map(Jz):Object.keys(e).reduce((t,n)=>(t[n]=Jz(e[n]),t),{}):e}function P8t(e,t){const n=e.loader;n!==Gue&&n!==e4e?(t.log("[config]: Custom loader detected, cannot enable progressive streaming"),e.progressive=!1):_8t()&&(e.loader=Gue,e.progressive=!0,e.enableSoftwareAES=!0,t.log("[config]: Progressive streaming enabled, using FetchLoader"))}const r8=2,R8t=.1,M8t=.05,O8t=100;class $8t extends K3e{constructor(t,n){super("gap-controller",t.logger),this.hls=void 0,this.fragmentTracker=void 0,this.media=null,this.mediaSource=void 0,this.nudgeRetry=0,this.stallReported=!1,this.stalled=null,this.moved=!1,this.seeking=!1,this.buffered={},this.lastCurrentTime=0,this.ended=0,this.waiting=0,this.onMediaPlaying=()=>{this.ended=0,this.waiting=0},this.onMediaWaiting=()=>{var r;(r=this.media)!=null&&r.seeking||(this.waiting=self.performance.now(),this.tick())},this.onMediaEnded=()=>{if(this.hls){var r;this.ended=((r=this.media)==null?void 0:r.currentTime)||1,this.hls.trigger(Ee.MEDIA_ENDED,{stalled:!1})}},this.hls=t,this.fragmentTracker=n,this.registerListeners()}registerListeners(){const{hls:t}=this;t&&(t.on(Ee.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(Ee.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(Ee.BUFFER_APPENDED,this.onBufferAppended,this))}unregisterListeners(){const{hls:t}=this;t&&(t.off(Ee.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(Ee.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(Ee.BUFFER_APPENDED,this.onBufferAppended,this))}destroy(){super.destroy(),this.unregisterListeners(),this.media=this.hls=this.fragmentTracker=null,this.mediaSource=void 0}onMediaAttached(t,n){this.setInterval(O8t),this.mediaSource=n.mediaSource;const r=this.media=n.media;ql(r,"playing",this.onMediaPlaying),ql(r,"waiting",this.onMediaWaiting),ql(r,"ended",this.onMediaEnded)}onMediaDetaching(t,n){this.clearInterval();const{media:r}=this;r&&(wu(r,"playing",this.onMediaPlaying),wu(r,"waiting",this.onMediaWaiting),wu(r,"ended",this.onMediaEnded),this.media=null),this.mediaSource=void 0}onBufferAppended(t,n){this.buffered=n.timeRanges}get hasBuffered(){return Object.keys(this.buffered).length>0}tick(){var t;if(!((t=this.media)!=null&&t.readyState)||!this.hasBuffered)return;const n=this.media.currentTime;this.poll(n,this.lastCurrentTime),this.lastCurrentTime=n}poll(t,n){var r,o;const a=(r=this.hls)==null?void 0:r.config;if(!a)return;const s=this.media;if(!s)return;const{seeking:l}=s,c=this.seeking&&!l,d=!this.seeking&&l,h=s.paused&&!l||s.ended||s.playbackRate===0;if(this.seeking=l,t!==n){n&&(this.ended=0),this.moved=!0,l||(this.nudgeRetry=0,a.nudgeOnVideoHole&&!h&&t>n&&this.nudgeOnVideoHole(t,n)),this.waiting===0&&this.stallResolved(t);return}if(d||c){c&&this.stallResolved(t);return}if(h){this.nudgeRetry=0,this.stallResolved(t),!this.ended&&s.ended&&this.hls&&(this.ended=t||1,this.hls.trigger(Ee.MEDIA_ENDED,{stalled:!1}));return}if(!Vr.getBuffered(s).length){this.nudgeRetry=0;return}const p=Vr.bufferInfo(s,t,0),v=p.nextStart||0,g=this.fragmentTracker;if(l&&g&&this.hls){const D=Kue(this.hls.inFlightFragments,t),P=p.len>r8,M=!v||D||v-t>r8&&!g.getPartialFragment(t);if(P||M)return;this.moved=!1}const y=(o=this.hls)==null?void 0:o.latestLevelDetails;if(!this.moved&&this.stalled!==null&&g){if(!(p.len>0)&&!v)return;const P=Math.max(v,p.start||0)-t,$=!!(y!=null&&y.live)?y.targetduration*2:r8,L=AC(t,g);if(P>0&&(P<=$||L)){s.paused||this._trySkipBufferHole(L);return}}const S=a.detectStallWithCurrentTimeMs,k=self.performance.now(),C=this.waiting;let x=this.stalled;if(x===null)if(C>0&&k-C=S||C)&&this.hls){var _;if(((_=this.mediaSource)==null?void 0:_.readyState)==="ended"&&!(y!=null&&y.live)&&Math.abs(t-(y?.edge||0))<1){if(this.ended)return;this.ended=t||1,this.hls.trigger(Ee.MEDIA_ENDED,{stalled:!0});return}if(this._reportStall(p),!this.media||!this.hls)return}const T=Vr.bufferInfo(s,t,a.maxBufferHole);this._tryFixBufferStall(T,E,t)}stallResolved(t){const n=this.stalled;if(n&&this.hls&&(this.stalled=null,this.stallReported)){const r=self.performance.now()-n;this.log(`playback not stuck anymore @${t}, after ${Math.round(r)}ms`),this.stallReported=!1,this.waiting=0,this.hls.trigger(Ee.STALL_RESOLVED,{})}}nudgeOnVideoHole(t,n){var r;const o=this.buffered.video;if(this.hls&&this.media&&this.fragmentTracker&&(r=this.buffered.audio)!=null&&r.length&&o&&o.length>1&&t>o.end(0)){const a=Vr.bufferedInfo(Vr.timeRangesToArray(this.buffered.audio),t,0);if(a.len>1&&n>=a.start){const s=Vr.timeRangesToArray(o),l=Vr.bufferedInfo(s,n,0).bufferedIndex;if(l>-1&&ll)&&h-d<1&&t-d<2){const p=new Error(`nudging playhead to flush pipeline after video hole. currentTime: ${t} hole: ${d} -> ${h} buffered index: ${c}`);this.warn(p.message),this.media.currentTime+=1e-6;let v=AC(t,this.fragmentTracker);v&&"fragment"in v?v=v.fragment:v||(v=void 0);const g=Vr.bufferInfo(this.media,t,0);this.hls.trigger(Ee.ERROR,{type:dr.MEDIA_ERROR,details:Ht.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:p,reason:p.message,frag:v,buffer:g.len,bufferInfo:g})}}}}}_tryFixBufferStall(t,n,r){var o,a;const{fragmentTracker:s,media:l}=this,c=(o=this.hls)==null?void 0:o.config;if(!l||!s||!c)return;const d=(a=this.hls)==null?void 0:a.latestLevelDetails,h=AC(r,s);if((h||d!=null&&d.live&&r1&&t.len>c.maxBufferHole||t.nextStart&&(t.nextStart-rc.highBufferWatchdogPeriod*1e3||this.waiting)&&(this.warn("Trying to nudge playhead over buffer-hole"),this._tryNudgeBuffer(t))}adjacentTraversal(t,n){const r=this.fragmentTracker,o=t.nextStart;if(r&&o){const a=r.getFragAtPos(n,nr.MAIN),s=r.getFragAtPos(o,nr.MAIN);if(a&&s)return s.sn-a.sn<2}return!1}_reportStall(t){const{hls:n,media:r,stallReported:o,stalled:a}=this;if(!o&&a!==null&&r&&n){this.stallReported=!0;const s=new Error(`Playback stalling at @${r.currentTime} due to low buffer (${To(t)})`);this.warn(s.message),n.trigger(Ee.ERROR,{type:dr.MEDIA_ERROR,details:Ht.BUFFER_STALLED_ERROR,fatal:!1,error:s,buffer:t.len,bufferInfo:t,stalled:{start:a}})}}_trySkipBufferHole(t){var n;const{fragmentTracker:r,media:o}=this,a=(n=this.hls)==null?void 0:n.config;if(!o||!r||!a)return 0;const s=o.currentTime,l=Vr.bufferInfo(o,s,0),c=s0&&l.len<1&&o.readyState<3,v=c-s;if(v>0&&(h||p)){if(v>a.maxBufferHole){let y=!1;if(s===0){const S=r.getAppendedFrag(0,nr.MAIN);S&&c"u"))return self.VTTCue||self.TextTrackCue}function JF(e,t,n,r,o){let a=new e(t,n,"");try{a.value=r,o&&(a.type=o)}catch{a=new e(t,n,To(o?fo({type:o},r):r))}return a}const IC=(()=>{const e=Qz();try{e&&new e(0,Number.POSITIVE_INFINITY,"")}catch{return Number.MAX_VALUE}return Number.POSITIVE_INFINITY})();class N8t{constructor(t){this.hls=void 0,this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.removeCues=!0,this.assetCue=void 0,this.onEventCueEnter=()=>{this.hls&&this.hls.trigger(Ee.EVENT_CUE_ENTER,{})},this.hls=t,this._registerListeners()}destroy(){this._unregisterListeners(),this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.hls=this.onEventCueEnter=null}_registerListeners(){const{hls:t}=this;t&&(t.on(Ee.MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(Ee.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(Ee.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(Ee.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Ee.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),t.on(Ee.BUFFER_FLUSHING,this.onBufferFlushing,this),t.on(Ee.LEVEL_UPDATED,this.onLevelUpdated,this),t.on(Ee.LEVEL_PTS_UPDATED,this.onLevelPtsUpdated,this))}_unregisterListeners(){const{hls:t}=this;t&&(t.off(Ee.MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(Ee.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(Ee.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(Ee.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Ee.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),t.off(Ee.BUFFER_FLUSHING,this.onBufferFlushing,this),t.off(Ee.LEVEL_UPDATED,this.onLevelUpdated,this),t.off(Ee.LEVEL_PTS_UPDATED,this.onLevelPtsUpdated,this))}onMediaAttaching(t,n){var r;this.media=n.media,((r=n.overrides)==null?void 0:r.cueRemoval)===!1&&(this.removeCues=!1)}onMediaAttached(){var t;const n=(t=this.hls)==null?void 0:t.latestLevelDetails;n&&this.updateDateRangeCues(n)}onMediaDetaching(t,n){this.media=null,!n.transferMedia&&(this.id3Track&&(this.removeCues&&Y1(this.id3Track,this.onEventCueEnter),this.id3Track=null),this.dateRangeCuesAppended={})}onManifestLoading(){this.dateRangeCuesAppended={}}createTrack(t){const n=this.getID3Track(t.textTracks);return n.mode="hidden",n}getID3Track(t){if(this.media){for(let n=0;nIC&&(p=IC),p-h<=0&&(p=h+B8t);for(let g=0;gh.type===ic.audioId3&&c:o==="video"?d=h=>h.type===ic.emsg&&l:d=h=>h.type===ic.audioId3&&c||h.type===ic.emsg&&l,Xz(a,n,r,d)}}onLevelUpdated(t,{details:n}){this.updateDateRangeCues(n,!0)}onLevelPtsUpdated(t,n){Math.abs(n.drift)>.01&&this.updateDateRangeCues(n.details)}updateDateRangeCues(t,n){if(!this.hls||!this.media)return;const{assetPlayerId:r,timelineOffset:o,enableDateRangeMetadataCues:a,interstitialsController:s}=this.hls.config;if(!a)return;const l=Qz();if(r&&o&&!s){const{fragmentStart:S,fragmentEnd:k}=t;let C=this.assetCue;C?(C.startTime=S,C.endTime=k):l&&(C=this.assetCue=JF(l,S,k,{assetPlayerId:this.hls.config.assetPlayerId},"hlsjs.interstitial.asset"),C&&(C.id=r,this.id3Track||(this.id3Track=this.createTrack(this.media)),this.id3Track.addCue(C),C.addEventListener("enter",this.onEventCueEnter)))}if(!t.hasProgramDateTime)return;const{id3Track:c}=this,{dateRanges:d}=t,h=Object.keys(d);let p=this.dateRangeCuesAppended;if(c&&n){var v;if((v=c.cues)!=null&&v.length){const S=Object.keys(p).filter(k=>!h.includes(k));for(let k=S.length;k--;){var g;const C=S[k],x=(g=p[C])==null?void 0:g.cues;delete p[C],x&&Object.keys(x).forEach(E=>{const _=x[E];if(_){_.removeEventListener("enter",this.onEventCueEnter);try{c.removeCue(_)}catch{}}})}}else p=this.dateRangeCuesAppended={}}const y=t.fragments[t.fragments.length-1];if(!(h.length===0||!jn(y?.programDateTime))){this.id3Track||(this.id3Track=this.createTrack(this.media));for(let S=0;S{if(F!==C.id){const W=d[F];if(W.class===C.class&&W.startDate>C.startDate&&(!B||C.startDate.01&&(F.startTime=x,F.endTime=D);else if(l){let W=C.attr[B];sCt(B)&&(W=T3e(W));const G=JF(l,x,D,{key:B,data:W},ic.dateRange);G&&(G.id=k,this.id3Track.addCue(G),_[B]=G,s&&(B==="X-ASSET-LIST"||B==="X-ASSET-URL")&&G.addEventListener("enter",this.onEventCueEnter))}}p[k]={cues:_,dateRange:C,durationKnown:T}}}}}class F8t{constructor(t){this.hls=void 0,this.config=void 0,this.media=null,this.currentTime=0,this.stallCount=0,this._latency=null,this._targetLatencyUpdated=!1,this.onTimeupdate=()=>{const{media:n}=this,r=this.levelDetails;if(!n||!r)return;this.currentTime=n.currentTime;const o=this.computeLatency();if(o===null)return;this._latency=o;const{lowLatencyMode:a,maxLiveSyncPlaybackRate:s}=this.config;if(!a||s===1||!r.live)return;const l=this.targetLatency;if(l===null)return;const c=o-l,d=Math.min(this.maxLatency,l+r.targetduration);if(c.05&&this.forwardBufferLength>1){const p=Math.min(2,Math.max(1,s)),v=Math.round(2/(1+Math.exp(-.75*c-this.edgeStalled))*20)/20,g=Math.min(p,Math.max(1,v));this.changeMediaPlaybackRate(n,g)}else n.playbackRate!==1&&n.playbackRate!==0&&this.changeMediaPlaybackRate(n,1)},this.hls=t,this.config=t.config,this.registerListeners()}get levelDetails(){var t;return((t=this.hls)==null?void 0:t.latestLevelDetails)||null}get latency(){return this._latency||0}get maxLatency(){const{config:t}=this;if(t.liveMaxLatencyDuration!==void 0)return t.liveMaxLatencyDuration;const n=this.levelDetails;return n?t.liveMaxLatencyDurationCount*n.targetduration:0}get targetLatency(){const t=this.levelDetails;if(t===null||this.hls===null)return null;const{holdBack:n,partHoldBack:r,targetduration:o}=t,{liveSyncDuration:a,liveSyncDurationCount:s,lowLatencyMode:l}=this.config,c=this.hls.userConfig;let d=l&&r||n;(this._targetLatencyUpdated||c.liveSyncDuration||c.liveSyncDurationCount||d===0)&&(d=a!==void 0?a:s*o);const h=o;return d+Math.min(this.stallCount*this.config.liveSyncOnStallIncrease,h)}set targetLatency(t){this.stallCount=0,this.config.liveSyncDuration=t,this._targetLatencyUpdated=!0}get liveSyncPosition(){const t=this.estimateLiveEdge(),n=this.targetLatency;if(t===null||n===null)return null;const r=this.levelDetails;if(r===null)return null;const o=r.edge,a=t-n-this.edgeStalled,s=o-r.totalduration,l=o-(this.config.lowLatencyMode&&r.partTarget||r.targetduration);return Math.min(Math.max(s,a),l)}get drift(){const t=this.levelDetails;return t===null?1:t.drift}get edgeStalled(){const t=this.levelDetails;if(t===null)return 0;const n=(this.config.lowLatencyMode&&t.partTarget||t.targetduration)*3;return Math.max(t.age-n,0)}get forwardBufferLength(){const{media:t}=this,n=this.levelDetails;if(!t||!n)return 0;const r=t.buffered.length;return(r?t.buffered.end(r-1):n.edge)-this.currentTime}destroy(){this.unregisterListeners(),this.onMediaDetaching(),this.hls=null}registerListeners(){const{hls:t}=this;t&&(t.on(Ee.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(Ee.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(Ee.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Ee.LEVEL_UPDATED,this.onLevelUpdated,this),t.on(Ee.ERROR,this.onError,this))}unregisterListeners(){const{hls:t}=this;t&&(t.off(Ee.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(Ee.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(Ee.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Ee.LEVEL_UPDATED,this.onLevelUpdated,this),t.off(Ee.ERROR,this.onError,this))}onMediaAttached(t,n){this.media=n.media,this.media.addEventListener("timeupdate",this.onTimeupdate)}onMediaDetaching(){this.media&&(this.media.removeEventListener("timeupdate",this.onTimeupdate),this.media=null)}onManifestLoading(){this._latency=null,this.stallCount=0}onLevelUpdated(t,{details:n}){n.advanced&&this.onTimeupdate(),!n.live&&this.media&&this.media.removeEventListener("timeupdate",this.onTimeupdate)}onError(t,n){var r;n.details===Ht.BUFFER_STALLED_ERROR&&(this.stallCount++,this.hls&&(r=this.levelDetails)!=null&&r.live&&this.hls.logger.warn("[latency-controller]: Stall detected, adjusting target latency"))}changeMediaPlaybackRate(t,n){var r,o;t.playbackRate!==n&&((r=this.hls)==null||r.logger.debug(`[latency-controller]: latency=${this.latency.toFixed(3)}, targetLatency=${(o=this.targetLatency)==null?void 0:o.toFixed(3)}, forwardBufferLength=${this.forwardBufferLength.toFixed(3)}: adjusting playback rate from ${t.playbackRate} to ${n}`),t.playbackRate=n)}estimateLiveEdge(){const t=this.levelDetails;return t===null?null:t.edge+t.age}computeLatency(){const t=this.estimateLiveEdge();return t===null?null:t-this.currentTime}}class j8t extends BG{constructor(t,n){super(t,"level-controller"),this._levels=[],this._firstLevel=-1,this._maxAutoLevel=-1,this._startLevel=void 0,this.currentLevel=null,this.currentLevelIndex=-1,this.manualLevelIndex=-1,this.steering=void 0,this.onParsedComplete=void 0,this.steering=n,this._registerListeners()}_registerListeners(){const{hls:t}=this;t.on(Ee.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Ee.MANIFEST_LOADED,this.onManifestLoaded,this),t.on(Ee.LEVEL_LOADED,this.onLevelLoaded,this),t.on(Ee.LEVELS_UPDATED,this.onLevelsUpdated,this),t.on(Ee.FRAG_BUFFERED,this.onFragBuffered,this),t.on(Ee.ERROR,this.onError,this)}_unregisterListeners(){const{hls:t}=this;t.off(Ee.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Ee.MANIFEST_LOADED,this.onManifestLoaded,this),t.off(Ee.LEVEL_LOADED,this.onLevelLoaded,this),t.off(Ee.LEVELS_UPDATED,this.onLevelsUpdated,this),t.off(Ee.FRAG_BUFFERED,this.onFragBuffered,this),t.off(Ee.ERROR,this.onError,this)}destroy(){this._unregisterListeners(),this.steering=null,this.resetLevels(),super.destroy()}stopLoad(){this._levels.forEach(n=>{n.loadError=0,n.fragmentError=0}),super.stopLoad()}resetLevels(){this._startLevel=void 0,this.manualLevelIndex=-1,this.currentLevelIndex=-1,this.currentLevel=null,this._levels=[],this._maxAutoLevel=-1}onManifestLoading(t,n){this.resetLevels()}onManifestLoaded(t,n){const r=this.hls.config.preferManagedMediaSource,o=[],a={},s={};let l=!1,c=!1,d=!1;n.levels.forEach(h=>{const p=h.attrs;let{audioCodec:v,videoCodec:g}=h;v&&(h.audioCodec=v=AT(v,r)||void 0),g&&(g=h.videoCodec=kxt(g));const{width:y,height:S,unknownCodecs:k}=h,C=k?.length||0;if(l||(l=!!(y&&S)),c||(c=!!g),d||(d=!!v),C||v&&!this.isAudioSupported(v)||g&&!this.isVideoSupported(g)){this.log(`Some or all CODECS not supported "${p.CODECS}"`);return}const{CODECS:x,"FRAME-RATE":E,"HDCP-LEVEL":_,"PATHWAY-ID":T,RESOLUTION:D,"VIDEO-RANGE":P}=p,$=`${`${T||"."}-`}${h.bitrate}-${D}-${E}-${x}-${P}-${_}`;if(a[$])if(a[$].uri!==h.url&&!h.attrs["PATHWAY-ID"]){const L=s[$]+=1;h.attrs["PATHWAY-ID"]=new Array(L+1).join(".");const B=this.createLevel(h);a[$]=B,o.push(B)}else a[$].addGroupId("audio",p.AUDIO),a[$].addGroupId("text",p.SUBTITLES);else{const L=this.createLevel(h);a[$]=L,s[$]=1,o.push(L)}}),this.filterAndSortMediaOptions(o,n,l,c,d)}createLevel(t){const n=new C_(t),r=t.supplemental;if(r!=null&&r.videoCodec&&!this.isVideoSupported(r.videoCodec)){const o=new Error(`SUPPLEMENTAL-CODECS not supported "${r.videoCodec}"`);this.log(o.message),n.supportedResult=F3e(o,[])}return n}isAudioSupported(t){return k_(t,"audio",this.hls.config.preferManagedMediaSource)}isVideoSupported(t){return k_(t,"video",this.hls.config.preferManagedMediaSource)}filterAndSortMediaOptions(t,n,r,o,a){var s;let l=[],c=[],d=t;const h=((s=n.stats)==null?void 0:s.parsing)||{};if((r||o)&&a&&(d=d.filter(({videoCodec:x,videoRange:E,width:_,height:T})=>(!!x||!!(_&&T))&&Pxt(E))),d.length===0){Promise.resolve().then(()=>{if(this.hls){let x="no level with compatible codecs found in manifest",E=x;n.levels.length&&(E=`one or more CODECS in variant not supported: ${To(n.levels.map(T=>T.attrs.CODECS).filter((T,D,P)=>P.indexOf(T)===D))}`,this.warn(E),x+=` (${E})`);const _=new Error(x);this.hls.trigger(Ee.ERROR,{type:dr.MEDIA_ERROR,details:Ht.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:n.url,error:_,reason:E})}}),h.end=performance.now();return}n.audioTracks&&(l=n.audioTracks.filter(x=>!x.audioCodec||this.isAudioSupported(x.audioCodec)),Yue(l)),n.subtitles&&(c=n.subtitles,Yue(c));const p=d.slice(0);d.sort((x,E)=>{if(x.attrs["HDCP-LEVEL"]!==E.attrs["HDCP-LEVEL"])return(x.attrs["HDCP-LEVEL"]||"")>(E.attrs["HDCP-LEVEL"]||"")?1:-1;if(r&&x.height!==E.height)return x.height-E.height;if(x.frameRate!==E.frameRate)return x.frameRate-E.frameRate;if(x.videoRange!==E.videoRange)return IT.indexOf(x.videoRange)-IT.indexOf(E.videoRange);if(x.videoCodec!==E.videoCodec){const _=jle(x.videoCodec),T=jle(E.videoCodec);if(_!==T)return T-_}if(x.uri===E.uri&&x.codecSet!==E.codecSet){const _=TT(x.codecSet),T=TT(E.codecSet);if(_!==T)return T-_}return x.averageBitrate!==E.averageBitrate?x.averageBitrate-E.averageBitrate:0});let v=p[0];if(this.steering&&(d=this.steering.filterParsedLevels(d),d.length!==p.length)){for(let x=0;x_&&_===this.hls.abrEwmaDefaultEstimate&&(this.hls.bandwidthEstimate=T)}break}const y=a&&!o,S=this.hls.config,k=!!(S.audioStreamController&&S.audioTrackController),C={levels:d,audioTracks:l,subtitleTracks:c,sessionData:n.sessionData,sessionKeys:n.sessionKeys,firstLevel:this._firstLevel,stats:n.stats,audio:a,video:o,altAudio:k&&!y&&l.some(x=>!!x.url)};h.end=performance.now(),this.hls.trigger(Ee.MANIFEST_PARSED,C)}get levels(){return this._levels.length===0?null:this._levels}get loadLevelObj(){return this.currentLevel}get level(){return this.currentLevelIndex}set level(t){const n=this._levels;if(n.length===0)return;if(t<0||t>=n.length){const h=new Error("invalid level idx"),p=t<0;if(this.hls.trigger(Ee.ERROR,{type:dr.OTHER_ERROR,details:Ht.LEVEL_SWITCH_ERROR,level:t,fatal:p,error:h,reason:h.message}),p)return;t=Math.min(t,n.length-1)}const r=this.currentLevelIndex,o=this.currentLevel,a=o?o.attrs["PATHWAY-ID"]:void 0,s=n[t],l=s.attrs["PATHWAY-ID"];if(this.currentLevelIndex=t,this.currentLevel=s,r===t&&o&&a===l)return;this.log(`Switching to level ${t} (${s.height?s.height+"p ":""}${s.videoRange?s.videoRange+" ":""}${s.codecSet?s.codecSet+" ":""}@${s.bitrate})${l?" with Pathway "+l:""} from level ${r}${a?" with Pathway "+a:""}`);const c={level:t,attrs:s.attrs,details:s.details,bitrate:s.bitrate,averageBitrate:s.averageBitrate,maxBitrate:s.maxBitrate,realBitrate:s.realBitrate,width:s.width,height:s.height,codecSet:s.codecSet,audioCodec:s.audioCodec,videoCodec:s.videoCodec,audioGroups:s.audioGroups,subtitleGroups:s.subtitleGroups,loaded:s.loaded,loadError:s.loadError,fragmentError:s.fragmentError,name:s.name,id:s.id,uri:s.uri,url:s.url,urlId:0,audioGroupIds:s.audioGroupIds,textGroupIds:s.textGroupIds};this.hls.trigger(Ee.LEVEL_SWITCHING,c);const d=s.details;if(!d||d.live){const h=this.switchParams(s.uri,o?.details,d);this.loadPlaylist(h)}}get manualLevel(){return this.manualLevelIndex}set manualLevel(t){this.manualLevelIndex=t,this._startLevel===void 0&&(this._startLevel=t),t!==-1&&(this.level=t)}get firstLevel(){return this._firstLevel}set firstLevel(t){this._firstLevel=t}get startLevel(){if(this._startLevel===void 0){const t=this.hls.config.startLevel;return t!==void 0?t:this.hls.firstAutoLevel}return this._startLevel}set startLevel(t){this._startLevel=t}get pathways(){return this.steering?this.steering.pathways():[]}get pathwayPriority(){return this.steering?this.steering.pathwayPriority:null}set pathwayPriority(t){if(this.steering){const n=this.steering.pathways(),r=t.filter(o=>n.indexOf(o)!==-1);if(t.length<1){this.warn(`pathwayPriority ${t} should contain at least one pathway from list: ${n}`);return}this.steering.pathwayPriority=r}}onError(t,n){n.fatal||!n.context||n.context.type===ki.LEVEL&&n.context.level===this.level&&this.checkRetry(n)}onFragBuffered(t,{frag:n}){if(n!==void 0&&n.type===nr.MAIN){const r=n.elementaryStreams;if(!Object.keys(r).some(a=>!!r[a]))return;const o=this._levels[n.level];o!=null&&o.loadError&&(this.log(`Resetting level error count of ${o.loadError} on frag buffered`),o.loadError=0)}}onLevelLoaded(t,n){var r;const{level:o,details:a}=n,s=n.levelInfo;if(!s){var l;this.warn(`Invalid level index ${o}`),(l=n.deliveryDirectives)!=null&&l.skip&&(a.deltaUpdateFailed=!0);return}if(s===this.currentLevel||n.withoutMultiVariant){s.fragmentError===0&&(s.loadError=0);let c=s.details;c===n.details&&c.advanced&&(c=void 0),this.playlistLoaded(o,n,c)}else(r=n.deliveryDirectives)!=null&&r.skip&&(a.deltaUpdateFailed=!0)}loadPlaylist(t){super.loadPlaylist(),this.shouldLoadPlaylist(this.currentLevel)&&this.scheduleLoading(this.currentLevel,t)}loadingPlaylist(t,n){super.loadingPlaylist(t,n);const r=this.getUrlWithDirectives(t.uri,n),o=this.currentLevelIndex,a=t.attrs["PATHWAY-ID"],s=t.details,l=s?.age;this.log(`Loading level index ${o}${n?.msn!==void 0?" at sn "+n.msn+" part "+n.part:""}${a?" Pathway "+a:""}${l&&s.live?" age "+l.toFixed(1)+(s.type&&" "+s.type||""):""} ${r}`),this.hls.trigger(Ee.LEVEL_LOADING,{url:r,level:o,levelInfo:t,pathwayId:t.attrs["PATHWAY-ID"],id:0,deliveryDirectives:n||null})}get nextLoadLevel(){return this.manualLevelIndex!==-1?this.manualLevelIndex:this.hls.nextAutoLevel}set nextLoadLevel(t){this.level=t,this.manualLevelIndex===-1&&(this.hls.nextAutoLevel=t)}removeLevel(t){var n;if(this._levels.length===1)return;const r=this._levels.filter((a,s)=>s!==t?!0:(this.steering&&this.steering.removeLevel(a),a===this.currentLevel&&(this.currentLevel=null,this.currentLevelIndex=-1,a.details&&a.details.fragments.forEach(l=>l.level=-1)),!1));s2e(r),this._levels=r,this.currentLevelIndex>-1&&(n=this.currentLevel)!=null&&n.details&&(this.currentLevelIndex=this.currentLevel.details.fragments[0].level),this.manualLevelIndex>-1&&(this.manualLevelIndex=this.currentLevelIndex);const o=r.length-1;this._firstLevel=Math.min(this._firstLevel,o),this._startLevel&&(this._startLevel=Math.min(this._startLevel,o)),this.hls.trigger(Ee.LEVELS_UPDATED,{levels:r})}onLevelsUpdated(t,{levels:n}){this._levels=n}checkMaxAutoUpdated(){const{autoLevelCapping:t,maxAutoLevel:n,maxHdcpLevel:r}=this.hls;this._maxAutoLevel!==n&&(this._maxAutoLevel=n,this.hls.trigger(Ee.MAX_AUTO_LEVEL_UPDATED,{autoLevelCapping:t,levels:this.levels,maxAutoLevel:n,minAutoLevel:this.hls.minAutoLevel,maxHdcpLevel:r}))}}function Yue(e){const t={};e.forEach(n=>{const r=n.groupId||"";n.id=t[r]=t[r]||0,t[r]++})}function t4e(){return self.SourceBuffer||self.WebKitSourceBuffer}function n4e(){if(!P0())return!1;const t=t4e();return!t||t.prototype&&typeof t.prototype.appendBuffer=="function"&&typeof t.prototype.remove=="function"}function V8t(){if(!n4e())return!1;const e=P0();return typeof e?.isTypeSupported=="function"&&(["avc1.42E01E,mp4a.40.2","av01.0.01M.08","vp09.00.50.08"].some(t=>e.isTypeSupported(x_(t,"video")))||["mp4a.40.2","fLaC"].some(t=>e.isTypeSupported(x_(t,"audio"))))}function z8t(){var e;const t=t4e();return typeof(t==null||(e=t.prototype)==null?void 0:e.changeType)=="function"}const U8t=100;class H8t extends IG{constructor(t,n,r){super(t,n,r,"stream-controller",nr.MAIN),this.audioCodecSwap=!1,this.level=-1,this._forceStartLoad=!1,this._hasEnoughToStart=!1,this.altAudio=0,this.audioOnly=!1,this.fragPlaying=null,this.fragLastKbps=0,this.couldBacktrack=!1,this.backtrackFragment=null,this.audioCodecSwitch=!1,this.videoBuffer=null,this.onMediaPlaying=()=>{this.tick()},this.onMediaSeeked=()=>{const o=this.media,a=o?o.currentTime:null;if(a===null||!jn(a)||(this.log(`Media seeked to ${a.toFixed(3)}`),!this.getBufferedFrag(a)))return;const s=this.getFwdBufferInfoAtPos(o,a,nr.MAIN,0);if(s===null||s.len===0){this.warn(`Main forward buffer length at ${a} on "seeked" event ${s?s.len:"empty"})`);return}this.tick()},this.registerListeners()}registerListeners(){super.registerListeners();const{hls:t}=this;t.on(Ee.MANIFEST_PARSED,this.onManifestParsed,this),t.on(Ee.LEVEL_LOADING,this.onLevelLoading,this),t.on(Ee.LEVEL_LOADED,this.onLevelLoaded,this),t.on(Ee.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),t.on(Ee.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.on(Ee.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),t.on(Ee.BUFFER_CREATED,this.onBufferCreated,this),t.on(Ee.BUFFER_FLUSHED,this.onBufferFlushed,this),t.on(Ee.LEVELS_UPDATED,this.onLevelsUpdated,this),t.on(Ee.FRAG_BUFFERED,this.onFragBuffered,this)}unregisterListeners(){super.unregisterListeners();const{hls:t}=this;t.off(Ee.MANIFEST_PARSED,this.onManifestParsed,this),t.off(Ee.LEVEL_LOADED,this.onLevelLoaded,this),t.off(Ee.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),t.off(Ee.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.off(Ee.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),t.off(Ee.BUFFER_CREATED,this.onBufferCreated,this),t.off(Ee.BUFFER_FLUSHED,this.onBufferFlushed,this),t.off(Ee.LEVELS_UPDATED,this.onLevelsUpdated,this),t.off(Ee.FRAG_BUFFERED,this.onFragBuffered,this)}onHandlerDestroying(){this.onMediaPlaying=this.onMediaSeeked=null,this.unregisterListeners(),super.onHandlerDestroying()}startLoad(t,n){if(this.levels){const{lastCurrentTime:r,hls:o}=this;if(this.stopLoad(),this.setInterval(U8t),this.level=-1,!this.startFragRequested){let a=o.startLevel;a===-1&&(o.config.testBandwidth&&this.levels.length>1?(a=0,this.bitrateTest=!0):a=o.firstAutoLevel),o.nextLoadLevel=a,this.level=o.loadLevel,this._hasEnoughToStart=!!n}r>0&&t===-1&&!n&&(this.log(`Override startPosition with lastCurrentTime @${r.toFixed(3)}`),t=r),this.state=an.IDLE,this.nextLoadPosition=this.lastCurrentTime=t+this.timelineOffset,this.startPosition=n?-1:t,this.tick()}else this._forceStartLoad=!0,this.state=an.STOPPED}stopLoad(){this._forceStartLoad=!1,super.stopLoad()}doTick(){switch(this.state){case an.WAITING_LEVEL:{const{levels:t,level:n}=this,r=t?.[n],o=r?.details;if(o&&(!o.live||this.levelLastLoaded===r&&!this.waitForLive(r))){if(this.waitForCdnTuneIn(o))break;this.state=an.IDLE;break}else if(this.hls.nextLoadLevel!==this.level){this.state=an.IDLE;break}break}case an.FRAG_LOADING_WAITING_RETRY:this.checkRetryDate();break}this.state===an.IDLE&&this.doTickIdle(),this.onTickEnd()}onTickEnd(){var t;super.onTickEnd(),(t=this.media)!=null&&t.readyState&&this.media.seeking===!1&&(this.lastCurrentTime=this.media.currentTime),this.checkFragmentChanged()}doTickIdle(){const{hls:t,levelLastLoaded:n,levels:r,media:o}=this;if(n===null||!o&&!this.primaryPrefetch&&(this.startFragRequested||!t.config.startFragPrefetch)||this.altAudio&&this.audioOnly)return;const a=this.buffering?t.nextLoadLevel:t.loadLevel;if(!(r!=null&&r[a]))return;const s=r[a],l=this.getMainFwdBufferInfo();if(l===null)return;const c=this.getLevelDetails();if(c&&this._streamEnded(l,c)){const S={};this.altAudio===2&&(S.type="video"),this.hls.trigger(Ee.BUFFER_EOS,S),this.state=an.ENDED;return}if(!this.buffering)return;t.loadLevel!==a&&t.manualLevel===-1&&this.log(`Adapting to level ${a} from level ${this.level}`),this.level=t.nextLoadLevel=a;const d=s.details;if(!d||this.state===an.WAITING_LEVEL||this.waitForLive(s)){this.level=a,this.state=an.WAITING_LEVEL,this.startFragRequested=!1;return}const h=l.len,p=this.getMaxBufferLength(s.maxBitrate);if(h>=p)return;this.backtrackFragment&&this.backtrackFragment.start>l.end&&(this.backtrackFragment=null);const v=this.backtrackFragment?this.backtrackFragment.start:l.end;let g=this.getNextFragment(v,d);if(this.couldBacktrack&&!this.fragPrevious&&g&&Ks(g)&&this.fragmentTracker.getState(g)!==ca.OK){var y;const k=((y=this.backtrackFragment)!=null?y:g).sn-d.startSN,C=d.fragments[k-1];C&&g.cc===C.cc&&(g=C,this.fragmentTracker.removeFragment(C))}else this.backtrackFragment&&l.len&&(this.backtrackFragment=null);if(g&&this.isLoopLoading(g,v)){if(!g.gap){const k=this.audioOnly&&!this.altAudio?Eo.AUDIO:Eo.VIDEO,C=(k===Eo.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;C&&this.afterBufferFlushed(C,k,nr.MAIN)}g=this.getNextFragmentLoopLoading(g,d,l,nr.MAIN,p)}g&&(g.initSegment&&!g.initSegment.data&&!this.bitrateTest&&(g=g.initSegment),this.loadFragment(g,s,v))}loadFragment(t,n,r){const o=this.fragmentTracker.getState(t);o===ca.NOT_LOADED||o===ca.PARTIAL?Ks(t)?this.bitrateTest?(this.log(`Fragment ${t.sn} of level ${t.level} is being downloaded to test bitrate and will not be buffered`),this._loadBitrateTestFrag(t,n)):super.loadFragment(t,n,r):this._loadInitSegment(t,n):this.clearTrackerIfNeeded(t)}getBufferedFrag(t){return this.fragmentTracker.getBufferedFrag(t,nr.MAIN)}followingBufferedFrag(t){return t?this.getBufferedFrag(t.end+.5):null}immediateLevelSwitch(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)}nextLevelSwitch(){const{levels:t,media:n}=this;if(n!=null&&n.readyState){let r;const o=this.getAppendedFrag(n.currentTime);o&&o.start>1&&this.flushMainBuffer(0,o.start-1);const a=this.getLevelDetails();if(a!=null&&a.live){const l=this.getMainFwdBufferInfo();if(!l||l.len=s-n.maxFragLookUpTolerance&&a<=l;if(o!==null&&r.duration>o&&(a{this.hls&&this.hls.trigger(Ee.AUDIO_TRACK_SWITCHED,n)}),r.trigger(Ee.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:null});return}r.trigger(Ee.AUDIO_TRACK_SWITCHED,n)}}onAudioTrackSwitched(t,n){const r=LT(n.url,this.hls);if(r){const o=this.videoBuffer;o&&this.mediaBuffer!==o&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=o)}this.altAudio=r?2:0,this.tick()}onBufferCreated(t,n){const r=n.tracks;let o,a,s=!1;for(const l in r){const c=r[l];if(c.id==="main"){if(a=l,o=c,l==="video"){const d=r[l];d&&(this.videoBuffer=d.buffer)}}else s=!0}s&&o?(this.log(`Alternate track found, use ${a}.buffered to schedule main fragment loading`),this.mediaBuffer=o.buffer):this.mediaBuffer=this.media}onFragBuffered(t,n){const{frag:r,part:o}=n,a=r.type===nr.MAIN;if(a){if(this.fragContextChanged(r)){this.warn(`Fragment ${r.sn}${o?" p: "+o.index:""} of level ${r.level} finished buffering, but was aborted. state: ${this.state}`),this.state===an.PARSED&&(this.state=an.IDLE);return}const l=o?o.stats:r.stats;this.fragLastKbps=Math.round(8*l.total/(l.buffering.end-l.loading.first)),Ks(r)&&(this.fragPrevious=r),this.fragBufferedComplete(r,o)}const s=this.media;s&&(!this._hasEnoughToStart&&Vr.getBuffered(s).length&&(this._hasEnoughToStart=!0,this.seekToStartPos()),a&&this.tick())}get hasEnoughToStart(){return this._hasEnoughToStart}onError(t,n){var r;if(n.fatal){this.state=an.ERROR;return}switch(n.details){case Ht.FRAG_GAP:case Ht.FRAG_PARSING_ERROR:case Ht.FRAG_DECRYPT_ERROR:case Ht.FRAG_LOAD_ERROR:case Ht.FRAG_LOAD_TIMEOUT:case Ht.KEY_LOAD_ERROR:case Ht.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(nr.MAIN,n);break;case Ht.LEVEL_LOAD_ERROR:case Ht.LEVEL_LOAD_TIMEOUT:case Ht.LEVEL_PARSING_ERROR:!n.levelRetry&&this.state===an.WAITING_LEVEL&&((r=n.context)==null?void 0:r.type)===ki.LEVEL&&(this.state=an.IDLE);break;case Ht.BUFFER_ADD_CODEC_ERROR:case Ht.BUFFER_APPEND_ERROR:if(n.parent!=="main")return;this.reduceLengthAndFlushBuffer(n)&&this.resetLoadingState();break;case Ht.BUFFER_FULL_ERROR:if(n.parent!=="main")return;this.reduceLengthAndFlushBuffer(n)&&(!this.config.interstitialsController&&this.config.assetPlayerId?this._hasEnoughToStart=!0:this.flushMainBuffer(0,Number.POSITIVE_INFINITY));break;case Ht.INTERNAL_EXCEPTION:this.recoverWorkerError(n);break}}onFragLoadEmergencyAborted(){this.state=an.IDLE,this._hasEnoughToStart||(this.startFragRequested=!1,this.nextLoadPosition=this.lastCurrentTime),this.tickImmediate()}onBufferFlushed(t,{type:n}){if(n!==Eo.AUDIO||!this.altAudio){const r=(n===Eo.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;r&&(this.afterBufferFlushed(r,n,nr.MAIN),this.tick())}}onLevelsUpdated(t,n){this.level>-1&&this.fragCurrent&&(this.level=this.fragCurrent.level,this.level===-1&&this.resetWhenMissingContext(this.fragCurrent)),this.levels=n.levels}swapAudioCodec(){this.audioCodecSwap=!this.audioCodecSwap}seekToStartPos(){const{media:t}=this;if(!t)return;const n=t.currentTime;let r=this.startPosition;if(r>=0&&n0&&(c{const{hls:o}=this,a=r?.frag;if(!a||this.fragContextChanged(a))return;n.fragmentError=0,this.state=an.IDLE,this.startFragRequested=!1,this.bitrateTest=!1;const s=a.stats;s.parsing.start=s.parsing.end=s.buffering.start=s.buffering.end=self.performance.now(),o.trigger(Ee.FRAG_LOADED,r),a.bitrateTest=!1}).catch(r=>{this.state===an.STOPPED||this.state===an.ERROR||(this.warn(r),this.resetFragmentLoading(t))})}_handleTransmuxComplete(t){const n=this.playlistType,{hls:r}=this,{remuxResult:o,chunkMeta:a}=t,s=this.getCurrentContext(a);if(!s){this.resetWhenMissingContext(a);return}const{frag:l,part:c,level:d}=s,{video:h,text:p,id3:v,initSegment:g}=o,{details:y}=d,S=this.altAudio?void 0:o.audio;if(this.fragContextChanged(l)){this.fragmentTracker.removeFragment(l);return}if(this.state=an.PARSING,g){const k=g.tracks;if(k){const _=l.initSegment||l;if(this.unhandledEncryptionError(g,l))return;this._bufferInitSegment(d,k,_,a),r.trigger(Ee.FRAG_PARSING_INIT_SEGMENT,{frag:_,id:n,tracks:k})}const C=g.initPTS,x=g.timescale,E=this.initPTS[l.cc];if(jn(C)&&(!E||E.baseTime!==C||E.timescale!==x)){const _=g.trackId;this.initPTS[l.cc]={baseTime:C,timescale:x,trackId:_},r.trigger(Ee.INIT_PTS_FOUND,{frag:l,id:n,initPTS:C,timescale:x,trackId:_})}}if(h&&y){S&&h.type==="audiovideo"&&this.logMuxedErr(l);const k=y.fragments[l.sn-1-y.startSN],C=l.sn===y.startSN,x=!k||l.cc>k.cc;if(o.independent!==!1){const{startPTS:E,endPTS:_,startDTS:T,endDTS:D}=h;if(c)c.elementaryStreams[h.type]={startPTS:E,endPTS:_,startDTS:T,endDTS:D};else if(h.firstKeyFrame&&h.independent&&a.id===1&&!x&&(this.couldBacktrack=!0),h.dropped&&h.independent){const P=this.getMainFwdBufferInfo(),M=(P?P.end:this.getLoadPosition())+this.config.maxBufferHole,$=h.firstKeyFramePTS?h.firstKeyFramePTS:E;if(!C&&M<$-this.config.maxBufferHole&&!x){this.backtrack(l);return}else x&&(l.gap=!0);l.setElementaryStreamInfo(h.type,l.start,_,l.start,D,!0)}else C&&E-(y.appliedTimelineOffset||0)>r8&&(l.gap=!0);l.setElementaryStreamInfo(h.type,E,_,T,D),this.backtrackFragment&&(this.backtrackFragment=l),this.bufferFragmentData(h,l,c,a,C||x)}else if(C||x)l.gap=!0;else{this.backtrack(l);return}}if(S){const{startPTS:k,endPTS:C,startDTS:x,endDTS:E}=S;c&&(c.elementaryStreams[Eo.AUDIO]={startPTS:k,endPTS:C,startDTS:x,endDTS:E}),l.setElementaryStreamInfo(Eo.AUDIO,k,C,x,E),this.bufferFragmentData(S,l,c,a)}if(y&&v!=null&&v.samples.length){const k={id:n,frag:l,details:y,samples:v.samples};r.trigger(Ee.FRAG_PARSING_METADATA,k)}if(y&&p){const k={id:n,frag:l,details:y,samples:p.samples};r.trigger(Ee.FRAG_PARSING_USERDATA,k)}}logMuxedErr(t){this.warn(`${Ks(t)?"Media":"Init"} segment with muxed audiovideo where only video expected: ${t.url}`)}_bufferInitSegment(t,n,r,o){if(this.state!==an.PARSING)return;this.audioOnly=!!n.audio&&!n.video,this.altAudio&&!this.audioOnly&&(delete n.audio,n.audiovideo&&this.logMuxedErr(r));const{audio:a,video:s,audiovideo:l}=n;if(a){const d=t.audioCodec;let h=XE(a.codec,d);h==="mp4a"&&(h="mp4a.40.5");const p=navigator.userAgent.toLowerCase();if(this.audioCodecSwitch){h&&(h.indexOf("mp4a.40.5")!==-1?h="mp4a.40.2":h="mp4a.40.5");const v=a.metadata;v&&"channelCount"in v&&(v.channelCount||1)!==1&&p.indexOf("firefox")===-1&&(h="mp4a.40.5")}h&&h.indexOf("mp4a.40.5")!==-1&&p.indexOf("android")!==-1&&a.container!=="audio/mpeg"&&(h="mp4a.40.2",this.log(`Android: force audio codec to ${h}`)),d&&d!==h&&this.log(`Swapping manifest audio codec "${d}" for "${h}"`),a.levelCodec=h,a.id=nr.MAIN,this.log(`Init audio buffer, container:${a.container}, codecs[selected/level/parsed]=[${h||""}/${d||""}/${a.codec}]`),delete n.audiovideo}if(s){s.levelCodec=t.videoCodec,s.id=nr.MAIN;const d=s.codec;if(d?.length===4)switch(d){case"hvc1":case"hev1":s.codec="hvc1.1.6.L120.90";break;case"av01":s.codec="av01.0.04M.08";break;case"avc1":s.codec="avc1.42e01e";break}this.log(`Init video buffer, container:${s.container}, codecs[level/parsed]=[${t.videoCodec||""}/${d}]${s.codec!==d?" parsed-corrected="+s.codec:""}${s.supplemental?" supplemental="+s.supplemental:""}`),delete n.audiovideo}l&&(this.log(`Init audiovideo buffer, container:${l.container}, codecs[level/parsed]=[${t.codecs}/${l.codec}]`),delete n.video,delete n.audio);const c=Object.keys(n);if(c.length){if(this.hls.trigger(Ee.BUFFER_CODECS,n),!this.hls)return;c.forEach(d=>{const p=n[d].initSegment;p!=null&&p.byteLength&&this.hls.trigger(Ee.BUFFER_APPENDING,{type:d,data:p,frag:r,part:null,chunkMeta:o,parent:r.type})})}this.tickImmediate()}getMainFwdBufferInfo(){const t=this.mediaBuffer&&this.altAudio===2?this.mediaBuffer:this.media;return this.getFwdBufferInfo(t,nr.MAIN)}get maxBufferLength(){const{levels:t,level:n}=this,r=t?.[n];return r?this.getMaxBufferLength(r.maxBitrate):this.config.maxBufferLength}backtrack(t){this.couldBacktrack=!0,this.backtrackFragment=t,this.resetTransmuxer(),this.flushBufferGap(t),this.fragmentTracker.removeFragment(t),this.fragPrevious=null,this.nextLoadPosition=t.start,this.state=an.IDLE}checkFragmentChanged(){const t=this.media;let n=null;if(t&&t.readyState>1&&t.seeking===!1){const r=t.currentTime;if(Vr.isBuffered(t,r)?n=this.getAppendedFrag(r):Vr.isBuffered(t,r+.1)&&(n=this.getAppendedFrag(r+.1)),n){this.backtrackFragment=null;const o=this.fragPlaying,a=n.level;(!o||n.sn!==o.sn||o.level!==a)&&(this.fragPlaying=n,this.hls.trigger(Ee.FRAG_CHANGED,{frag:n}),(!o||o.level!==a)&&this.hls.trigger(Ee.LEVEL_SWITCHED,{level:a}))}}}get nextLevel(){const t=this.nextBufferedFrag;return t?t.level:-1}get currentFrag(){var t;if(this.fragPlaying)return this.fragPlaying;const n=((t=this.media)==null?void 0:t.currentTime)||this.lastCurrentTime;return jn(n)?this.getAppendedFrag(n):null}get currentProgramDateTime(){var t;const n=((t=this.media)==null?void 0:t.currentTime)||this.lastCurrentTime;if(jn(n)){const r=this.getLevelDetails(),o=this.currentFrag||(r?jm(null,r.fragments,n):null);if(o){const a=o.programDateTime;if(a!==null){const s=a+(n-o.start)*1e3;return new Date(s)}}}return null}get currentLevel(){const t=this.currentFrag;return t?t.level:-1}get nextBufferedFrag(){const t=this.currentFrag;return t?this.followingBufferedFrag(t):null}get forceStartLoad(){return this._forceStartLoad}}class W8t extends rd{constructor(t,n){super("key-loader",n),this.config=void 0,this.keyIdToKeyInfo={},this.emeController=null,this.config=t}abort(t){for(const r in this.keyIdToKeyInfo){const o=this.keyIdToKeyInfo[r].loader;if(o){var n;if(t&&t!==((n=o.context)==null?void 0:n.frag.type))return;o.abort()}}}detach(){for(const t in this.keyIdToKeyInfo){const n=this.keyIdToKeyInfo[t];(n.mediaKeySessionContext||n.decryptdata.isCommonEncryption)&&delete this.keyIdToKeyInfo[t]}}destroy(){this.detach();for(const t in this.keyIdToKeyInfo){const n=this.keyIdToKeyInfo[t].loader;n&&n.destroy()}this.keyIdToKeyInfo={}}createKeyLoadError(t,n=Ht.KEY_LOAD_ERROR,r,o,a){return new mh({type:dr.NETWORK_ERROR,details:n,fatal:!1,frag:t,response:a,error:r,networkDetails:o})}loadClear(t,n,r){if(this.emeController&&this.config.emeEnabled&&!this.emeController.getSelectedKeySystemFormats().length){if(n.length)for(let o=0,a=n.length;o{if(!this.emeController)return;s.setKeyFormat(l);const c=JE(l);if(c)return this.emeController.getKeySystemAccess([c])})}if(this.config.requireKeySystemAccessOnStart){const o=N4(this.config);if(o.length)return this.emeController.getKeySystemAccess(o)}}return null}load(t){return!t.decryptdata&&t.encrypted&&this.emeController&&this.config.emeEnabled?this.emeController.selectKeySystemFormat(t).then(n=>this.loadInternal(t,n)):this.loadInternal(t)}loadInternal(t,n){var r,o;n&&t.setKeyFormat(n);const a=t.decryptdata;if(!a){const d=new Error(n?`Expected frag.decryptdata to be defined after setting format ${n}`:`Missing decryption data on fragment in onKeyLoading (emeEnabled with controller: ${this.emeController&&this.config.emeEnabled})`);return Promise.reject(this.createKeyLoadError(t,Ht.KEY_LOAD_ERROR,d))}const s=a.uri;if(!s)return Promise.reject(this.createKeyLoadError(t,Ht.KEY_LOAD_ERROR,new Error(`Invalid key URI: "${s}"`)));const l=QF(a);let c=this.keyIdToKeyInfo[l];if((r=c)!=null&&r.decryptdata.key)return a.key=c.decryptdata.key,Promise.resolve({frag:t,keyInfo:c});if(this.emeController&&(o=c)!=null&&o.keyLoadPromise)switch(this.emeController.getKeyStatus(c.decryptdata)){case"usable":case"usable-in-future":return c.keyLoadPromise.then(h=>{const{keyInfo:p}=h;return a.key=p.decryptdata.key,{frag:t,keyInfo:p}})}switch(this.log(`${this.keyIdToKeyInfo[l]?"Rel":"L"}oading${a.keyId?" keyId: "+zl(a.keyId):""} URI: ${a.uri} from ${t.type} ${t.level}`),c=this.keyIdToKeyInfo[l]={decryptdata:a,keyLoadPromise:null,loader:null,mediaKeySessionContext:null},a.method){case"SAMPLE-AES":case"SAMPLE-AES-CENC":case"SAMPLE-AES-CTR":return a.keyFormat==="identity"?this.loadKeyHTTP(c,t):this.loadKeyEME(c,t);case"AES-128":case"AES-256":case"AES-256-CTR":return this.loadKeyHTTP(c,t);default:return Promise.reject(this.createKeyLoadError(t,Ht.KEY_LOAD_ERROR,new Error(`Key supplied with unsupported METHOD: "${a.method}"`)))}}loadKeyEME(t,n){const r={frag:n,keyInfo:t};if(this.emeController&&this.config.emeEnabled){var o;if(!t.decryptdata.keyId&&(o=n.initSegment)!=null&&o.data){const s=cxt(n.initSegment.data);if(s.length){const l=s[0];l.some(c=>c!==0)&&(this.log(`Using keyId found in init segment ${zl(l)}`),t.decryptdata.keyId=l,km.setKeyIdForUri(t.decryptdata.uri,l))}}const a=this.emeController.loadKey(r);return(t.keyLoadPromise=a.then(s=>(t.mediaKeySessionContext=s,r))).catch(s=>{throw t.keyLoadPromise=null,"data"in s&&(s.data.frag=n),s})}return Promise.resolve(r)}loadKeyHTTP(t,n){const r=this.config,o=r.loader,a=new o(r);return n.keyLoader=t.loader=a,t.keyLoadPromise=new Promise((s,l)=>{const c={keyInfo:t,frag:n,responseType:"arraybuffer",url:t.decryptdata.uri},d=r.keyLoadPolicy.default,h={loadPolicy:d,timeout:d.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},p={onSuccess:(v,g,y,S)=>{const{frag:k,keyInfo:C}=y,x=QF(C.decryptdata);if(!k.decryptdata||C!==this.keyIdToKeyInfo[x])return l(this.createKeyLoadError(k,Ht.KEY_LOAD_ERROR,new Error("after key load, decryptdata unset or changed"),S));C.decryptdata.key=k.decryptdata.key=new Uint8Array(v.data),k.keyLoader=null,C.loader=null,s({frag:k,keyInfo:C})},onError:(v,g,y,S)=>{this.resetLoader(g),l(this.createKeyLoadError(n,Ht.KEY_LOAD_ERROR,new Error(`HTTP Error ${v.code} loading key ${v.text}`),y,fo({url:c.url,data:void 0},v)))},onTimeout:(v,g,y)=>{this.resetLoader(g),l(this.createKeyLoadError(n,Ht.KEY_LOAD_TIMEOUT,new Error("key loading timed out"),y))},onAbort:(v,g,y)=>{this.resetLoader(g),l(this.createKeyLoadError(n,Ht.INTERNAL_ABORTED,new Error("key loading aborted"),y))}};a.load(c,h,p)})}resetLoader(t){const{frag:n,keyInfo:r,url:o}=t,a=r.loader;n.keyLoader===a&&(n.keyLoader=null,r.loader=null);const s=QF(r.decryptdata)||o;delete this.keyIdToKeyInfo[s],a&&a.destroy()}}function QF(e){if(e.keyFormat!==za.FAIRPLAY){const t=e.keyId;if(t)return zl(t)}return e.uri}function Xue(e){const{type:t}=e;switch(t){case ki.AUDIO_TRACK:return nr.AUDIO;case ki.SUBTITLE_TRACK:return nr.SUBTITLE;default:return nr.MAIN}}function ej(e,t){let n=e.url;return(n===void 0||n.indexOf("data:")===0)&&(n=t.url),n}class G8t{constructor(t){this.hls=void 0,this.loaders=Object.create(null),this.variableList=null,this.onManifestLoaded=this.checkAutostartLoad,this.hls=t,this.registerListeners()}startLoad(t){}stopLoad(){this.destroyInternalLoaders()}registerListeners(){const{hls:t}=this;t.on(Ee.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Ee.LEVEL_LOADING,this.onLevelLoading,this),t.on(Ee.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),t.on(Ee.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this),t.on(Ee.LEVELS_UPDATED,this.onLevelsUpdated,this)}unregisterListeners(){const{hls:t}=this;t.off(Ee.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Ee.LEVEL_LOADING,this.onLevelLoading,this),t.off(Ee.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),t.off(Ee.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this),t.off(Ee.LEVELS_UPDATED,this.onLevelsUpdated,this)}createInternalLoader(t){const n=this.hls.config,r=n.pLoader,o=n.loader,a=r||o,s=new a(n);return this.loaders[t.type]=s,s}getInternalLoader(t){return this.loaders[t.type]}resetInternalLoader(t){this.loaders[t]&&delete this.loaders[t]}destroyInternalLoaders(){for(const t in this.loaders){const n=this.loaders[t];n&&n.destroy(),this.resetInternalLoader(t)}}destroy(){this.variableList=null,this.unregisterListeners(),this.destroyInternalLoaders()}onManifestLoading(t,n){const{url:r}=n;this.variableList=null,this.load({id:null,level:0,responseType:"text",type:ki.MANIFEST,url:r,deliveryDirectives:null,levelOrTrack:null})}onLevelLoading(t,n){const{id:r,level:o,pathwayId:a,url:s,deliveryDirectives:l,levelInfo:c}=n;this.load({id:r,level:o,pathwayId:a,responseType:"text",type:ki.LEVEL,url:s,deliveryDirectives:l,levelOrTrack:c})}onAudioTrackLoading(t,n){const{id:r,groupId:o,url:a,deliveryDirectives:s,track:l}=n;this.load({id:r,groupId:o,level:null,responseType:"text",type:ki.AUDIO_TRACK,url:a,deliveryDirectives:s,levelOrTrack:l})}onSubtitleTrackLoading(t,n){const{id:r,groupId:o,url:a,deliveryDirectives:s,track:l}=n;this.load({id:r,groupId:o,level:null,responseType:"text",type:ki.SUBTITLE_TRACK,url:a,deliveryDirectives:s,levelOrTrack:l})}onLevelsUpdated(t,n){const r=this.loaders[ki.LEVEL];if(r){const o=r.context;o&&!n.levels.some(a=>a===o.levelOrTrack)&&(r.abort(),delete this.loaders[ki.LEVEL])}}load(t){var n;const r=this.hls.config;let o=this.getInternalLoader(t);if(o){const d=this.hls.logger,h=o.context;if(h&&h.levelOrTrack===t.levelOrTrack&&(h.url===t.url||h.deliveryDirectives&&!t.deliveryDirectives)){h.url===t.url?d.log(`[playlist-loader]: ignore ${t.url} ongoing request`):d.log(`[playlist-loader]: ignore ${t.url} in favor of ${h.url}`);return}d.log(`[playlist-loader]: aborting previous loader for type: ${t.type}`),o.abort()}let a;if(t.type===ki.MANIFEST?a=r.manifestLoadPolicy.default:a=bo({},r.playlistLoadPolicy.default,{timeoutRetry:null,errorRetry:null}),o=this.createInternalLoader(t),jn((n=t.deliveryDirectives)==null?void 0:n.part)){let d;if(t.type===ki.LEVEL&&t.level!==null?d=this.hls.levels[t.level].details:t.type===ki.AUDIO_TRACK&&t.id!==null?d=this.hls.audioTracks[t.id].details:t.type===ki.SUBTITLE_TRACK&&t.id!==null&&(d=this.hls.subtitleTracks[t.id].details),d){const h=d.partTarget,p=d.targetduration;if(h&&p){const v=Math.max(h*3,p*.8)*1e3;a=bo({},a,{maxTimeToFirstByteMs:Math.min(v,a.maxTimeToFirstByteMs),maxLoadTimeMs:Math.min(v,a.maxTimeToFirstByteMs)})}}}const s=a.errorRetry||a.timeoutRetry||{},l={loadPolicy:a,timeout:a.maxLoadTimeMs,maxRetry:s.maxNumRetry||0,retryDelay:s.retryDelayMs||0,maxRetryDelay:s.maxRetryDelayMs||0},c={onSuccess:(d,h,p,v)=>{const g=this.getInternalLoader(p);this.resetInternalLoader(p.type);const y=d.data;h.parsing.start=performance.now(),vf.isMediaPlaylist(y)||p.type!==ki.MANIFEST?this.handleTrackOrLevelPlaylist(d,h,p,v||null,g):this.handleMasterPlaylist(d,h,p,v)},onError:(d,h,p,v)=>{this.handleNetworkError(h,p,!1,d,v)},onTimeout:(d,h,p)=>{this.handleNetworkError(h,p,!0,void 0,d)}};o.load(t,l,c)}checkAutostartLoad(){if(!this.hls)return;const{config:{autoStartLoad:t,startPosition:n},forceStartLoad:r}=this.hls;(t||r)&&(this.hls.logger.log(`${t?"auto":"force"} startLoad with configured startPosition ${n}`),this.hls.startLoad(n))}handleMasterPlaylist(t,n,r,o){const a=this.hls,s=t.data,l=ej(t,r),c=vf.parseMasterPlaylist(s,l);if(c.playlistParsingError){n.parsing.end=performance.now(),this.handleManifestParsingError(t,r,c.playlistParsingError,o,n);return}const{contentSteering:d,levels:h,sessionData:p,sessionKeys:v,startTimeOffset:g,variableList:y}=c;this.variableList=y,h.forEach(x=>{const{unknownCodecs:E}=x;if(E){const{preferManagedMediaSource:_}=this.hls.config;let{audioCodec:T,videoCodec:D}=x;for(let P=E.length;P--;){const M=E[P];k_(M,"audio",_)?(x.audioCodec=T=T?`${T},${M}`:M,Uy.audio[T.substring(0,4)]=2,E.splice(P,1)):k_(M,"video",_)&&(x.videoCodec=D=D?`${D},${M}`:M,Uy.video[D.substring(0,4)]=2,E.splice(P,1))}}});const{AUDIO:S=[],SUBTITLES:k,"CLOSED-CAPTIONS":C}=vf.parseMasterPlaylistMedia(s,l,c);S.length&&!S.some(E=>!E.url)&&h[0].audioCodec&&!h[0].attrs.AUDIO&&(this.hls.logger.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),S.unshift({type:"main",name:"main",groupId:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new os({}),bitrate:0,url:""})),a.trigger(Ee.MANIFEST_LOADED,{levels:h,audioTracks:S,subtitles:k,captions:C,contentSteering:d,url:l,stats:n,networkDetails:o,sessionData:p,sessionKeys:v,startTimeOffset:g,variableList:y})}handleTrackOrLevelPlaylist(t,n,r,o,a){const s=this.hls,{id:l,level:c,type:d}=r,h=ej(t,r),p=jn(c)?c:jn(l)?l:0,v=Xue(r),g=vf.parseLevelPlaylist(t.data,h,p,v,0,this.variableList);if(d===ki.MANIFEST){const y={attrs:new os({}),bitrate:0,details:g,name:"",url:h};g.requestScheduled=n.loading.start+r2e(g,0),s.trigger(Ee.MANIFEST_LOADED,{levels:[y],audioTracks:[],url:h,stats:n,networkDetails:o,sessionData:null,sessionKeys:null,contentSteering:null,startTimeOffset:null,variableList:null})}n.parsing.end=performance.now(),r.levelDetails=g,this.handlePlaylistLoaded(g,t,n,r,o,a)}handleManifestParsingError(t,n,r,o,a){this.hls.trigger(Ee.ERROR,{type:dr.NETWORK_ERROR,details:Ht.MANIFEST_PARSING_ERROR,fatal:n.type===ki.MANIFEST,url:t.url,err:r,error:r,reason:r.message,response:t,context:n,networkDetails:o,stats:a})}handleNetworkError(t,n,r=!1,o,a){let s=`A network ${r?"timeout":"error"+(o?" (status "+o.code+")":"")} occurred while loading ${t.type}`;t.type===ki.LEVEL?s+=`: ${t.level} id: ${t.id}`:(t.type===ki.AUDIO_TRACK||t.type===ki.SUBTITLE_TRACK)&&(s+=` id: ${t.id} group-id: "${t.groupId}"`);const l=new Error(s);this.hls.logger.warn(`[playlist-loader]: ${s}`);let c=Ht.UNKNOWN,d=!1;const h=this.getInternalLoader(t);switch(t.type){case ki.MANIFEST:c=r?Ht.MANIFEST_LOAD_TIMEOUT:Ht.MANIFEST_LOAD_ERROR,d=!0;break;case ki.LEVEL:c=r?Ht.LEVEL_LOAD_TIMEOUT:Ht.LEVEL_LOAD_ERROR,d=!1;break;case ki.AUDIO_TRACK:c=r?Ht.AUDIO_TRACK_LOAD_TIMEOUT:Ht.AUDIO_TRACK_LOAD_ERROR,d=!1;break;case ki.SUBTITLE_TRACK:c=r?Ht.SUBTITLE_TRACK_LOAD_TIMEOUT:Ht.SUBTITLE_LOAD_ERROR,d=!1;break}h&&this.resetInternalLoader(t.type);const p={type:dr.NETWORK_ERROR,details:c,fatal:d,url:t.url,loader:h,context:t,error:l,networkDetails:n,stats:a};if(o){const v=n?.url||t.url;p.response=fo({url:v,data:void 0},o)}this.hls.trigger(Ee.ERROR,p)}handlePlaylistLoaded(t,n,r,o,a,s){const l=this.hls,{type:c,level:d,levelOrTrack:h,id:p,groupId:v,deliveryDirectives:g}=o,y=ej(n,o),S=Xue(o);let k=typeof o.level=="number"&&S===nr.MAIN?d:void 0;const C=t.playlistParsingError;if(C){if(this.hls.logger.warn(`${C} ${t.url}`),!l.config.ignorePlaylistParsingErrors){l.trigger(Ee.ERROR,{type:dr.NETWORK_ERROR,details:Ht.LEVEL_PARSING_ERROR,fatal:!1,url:y,error:C,reason:C.message,response:n,context:o,level:k,parent:S,networkDetails:a,stats:r});return}t.playlistParsingError=null}if(!t.fragments.length){const x=t.playlistParsingError=new Error("No Segments found in Playlist");l.trigger(Ee.ERROR,{type:dr.NETWORK_ERROR,details:Ht.LEVEL_EMPTY_ERROR,fatal:!1,url:y,error:x,reason:x.message,response:n,context:o,level:k,parent:S,networkDetails:a,stats:r});return}switch(t.live&&s&&(s.getCacheAge&&(t.ageHeader=s.getCacheAge()||0),(!s.getCacheAge||isNaN(t.ageHeader))&&(t.ageHeader=0)),c){case ki.MANIFEST:case ki.LEVEL:if(k){if(!h)k=0;else if(h!==l.levels[k]){const x=l.levels.indexOf(h);x>-1&&(k=x)}}l.trigger(Ee.LEVEL_LOADED,{details:t,levelInfo:h||l.levels[0],level:k||0,id:p||0,stats:r,networkDetails:a,deliveryDirectives:g,withoutMultiVariant:c===ki.MANIFEST});break;case ki.AUDIO_TRACK:l.trigger(Ee.AUDIO_TRACK_LOADED,{details:t,track:h,id:p||0,groupId:v||"",stats:r,networkDetails:a,deliveryDirectives:g});break;case ki.SUBTITLE_TRACK:l.trigger(Ee.SUBTITLE_TRACK_LOADED,{details:t,track:h,id:p||0,groupId:v||"",stats:r,networkDetails:a,deliveryDirectives:g});break}}}class ku{static get version(){return w_}static isMSESupported(){return n4e()}static isSupported(){return V8t()}static getMediaSource(){return P0()}static get Events(){return Ee}static get MetadataSchema(){return ic}static get ErrorTypes(){return dr}static get ErrorDetails(){return Ht}static get DefaultConfig(){return ku.defaultConfig?ku.defaultConfig:I8t}static set DefaultConfig(t){ku.defaultConfig=t}constructor(t={}){this.config=void 0,this.userConfig=void 0,this.logger=void 0,this.coreComponents=void 0,this.networkControllers=void 0,this._emitter=new LG,this._autoLevelCapping=-1,this._maxHdcpLevel=null,this.abrController=void 0,this.bufferController=void 0,this.capLevelController=void 0,this.latencyController=void 0,this.levelController=void 0,this.streamController=void 0,this.audioStreamController=void 0,this.subtititleStreamController=void 0,this.audioTrackController=void 0,this.subtitleTrackController=void 0,this.interstitialsController=void 0,this.gapController=void 0,this.emeController=void 0,this.cmcdController=void 0,this._media=null,this._url=null,this._sessionId=void 0,this.triggeringException=void 0,this.started=!1;const n=this.logger=Jkt(t.debug||!1,"Hls instance",t.assetPlayerId),r=this.config=D8t(ku.DefaultConfig,t,n);this.userConfig=t,r.progressive&&P8t(r,n);const{abrController:o,bufferController:a,capLevelController:s,errorController:l,fpsController:c}=r,d=new l(this),h=this.abrController=new o(this),p=new Kxt(this),v=r.interstitialsController,g=v?this.interstitialsController=new v(this,ku):null,y=this.bufferController=new a(this,p),S=this.capLevelController=new s(this),k=new c(this),C=new G8t(this),x=r.contentSteeringController,E=x?new x(this):null,_=this.levelController=new j8t(this,E),T=new N8t(this),D=new W8t(this.config,this.logger),P=this.streamController=new H8t(this,p,D),M=this.gapController=new $8t(this,p);S.setStreamController(P),k.setStreamController(P);const $=[C,_,P];g&&$.splice(1,0,g),E&&$.splice(1,0,E),this.networkControllers=$;const L=[h,y,M,S,k,T,p];this.audioTrackController=this.createController(r.audioTrackController,$);const B=r.audioStreamController;B&&$.push(this.audioStreamController=new B(this,p,D)),this.subtitleTrackController=this.createController(r.subtitleTrackController,$);const F=r.subtitleStreamController;F&&$.push(this.subtititleStreamController=new F(this,p,D)),this.createController(r.timelineController,L),D.emeController=this.emeController=this.createController(r.emeController,L),this.cmcdController=this.createController(r.cmcdController,L),this.latencyController=this.createController(F8t,L),this.coreComponents=L,$.push(d);const W=d.onErrorOut;typeof W=="function"&&this.on(Ee.ERROR,W,d),this.on(Ee.MANIFEST_LOADED,C.onManifestLoaded,C)}createController(t,n){if(t){const r=new t(this);return n&&n.push(r),r}return null}on(t,n,r=this){this._emitter.on(t,n,r)}once(t,n,r=this){this._emitter.once(t,n,r)}removeAllListeners(t){this._emitter.removeAllListeners(t)}off(t,n,r=this,o){this._emitter.off(t,n,r,o)}listeners(t){return this._emitter.listeners(t)}emit(t,n,r){return this._emitter.emit(t,n,r)}trigger(t,n){if(this.config.debug)return this.emit(t,t,n);try{return this.emit(t,t,n)}catch(r){if(this.logger.error("An internal error happened while handling event "+t+'. Error message: "'+r.message+'". Here is a stacktrace:',r),!this.triggeringException){this.triggeringException=!0;const o=t===Ee.ERROR;this.trigger(Ee.ERROR,{type:dr.OTHER_ERROR,details:Ht.INTERNAL_EXCEPTION,fatal:o,event:t,error:r}),this.triggeringException=!1}}return!1}listenerCount(t){return this._emitter.listenerCount(t)}destroy(){this.logger.log("destroy"),this.trigger(Ee.DESTROYING,void 0),this.detachMedia(),this.removeAllListeners(),this._autoLevelCapping=-1,this._url=null,this.networkControllers.forEach(n=>n.destroy()),this.networkControllers.length=0,this.coreComponents.forEach(n=>n.destroy()),this.coreComponents.length=0;const t=this.config;t.xhrSetup=t.fetchSetup=void 0,this.userConfig=null}attachMedia(t){if(!t||"media"in t&&!t.media){const a=new Error(`attachMedia failed: invalid argument (${t})`);this.trigger(Ee.ERROR,{type:dr.OTHER_ERROR,details:Ht.ATTACH_MEDIA_ERROR,fatal:!0,error:a});return}this.logger.log("attachMedia"),this._media&&(this.logger.warn("media must be detached before attaching"),this.detachMedia());const n="media"in t,r=n?t.media:t,o=n?t:{media:r};this._media=r,this.trigger(Ee.MEDIA_ATTACHING,o)}detachMedia(){this.logger.log("detachMedia"),this.trigger(Ee.MEDIA_DETACHING,{}),this._media=null}transferMedia(){this._media=null;const t=this.bufferController.transferMedia();return this.trigger(Ee.MEDIA_DETACHING,{transferMedia:t}),t}loadSource(t){this.stopLoad();const n=this.media,r=this._url,o=this._url=bG.buildAbsoluteURL(self.location.href,t,{alwaysNormalize:!0});this._autoLevelCapping=-1,this._maxHdcpLevel=null,this.logger.log(`loadSource:${o}`),n&&r&&(r!==o||this.bufferController.hasSourceTypes())&&(this.detachMedia(),this.attachMedia(n)),this.trigger(Ee.MANIFEST_LOADING,{url:t})}get url(){return this._url}get hasEnoughToStart(){return this.streamController.hasEnoughToStart}get startPosition(){return this.streamController.startPositionValue}startLoad(t=-1,n){this.logger.log(`startLoad(${t+(n?", ":"")})`),this.started=!0,this.resumeBuffering();for(let r=0;r{t.resumeBuffering&&t.resumeBuffering()}))}pauseBuffering(){this.bufferingEnabled&&(this.logger.log("pause buffering"),this.networkControllers.forEach(t=>{t.pauseBuffering&&t.pauseBuffering()}))}get inFlightFragments(){const t={[nr.MAIN]:this.streamController.inFlightFrag};return this.audioStreamController&&(t[nr.AUDIO]=this.audioStreamController.inFlightFrag),this.subtititleStreamController&&(t[nr.SUBTITLE]=this.subtititleStreamController.inFlightFrag),t}swapAudioCodec(){this.logger.log("swapAudioCodec"),this.streamController.swapAudioCodec()}recoverMediaError(){this.logger.log("recoverMediaError");const t=this._media,n=t?.currentTime;this.detachMedia(),t&&(this.attachMedia(t),n&&this.startLoad(n))}removeLevel(t){this.levelController.removeLevel(t)}get sessionId(){let t=this._sessionId;return t||(t=this._sessionId=$Et()),t}get levels(){const t=this.levelController.levels;return t||[]}get latestLevelDetails(){return this.streamController.getLevelDetails()||null}get loadLevelObj(){return this.levelController.loadLevelObj}get currentLevel(){return this.streamController.currentLevel}set currentLevel(t){this.logger.log(`set currentLevel:${t}`),this.levelController.manualLevel=t,this.streamController.immediateLevelSwitch()}get nextLevel(){return this.streamController.nextLevel}set nextLevel(t){this.logger.log(`set nextLevel:${t}`),this.levelController.manualLevel=t,this.streamController.nextLevelSwitch()}get loadLevel(){return this.levelController.level}set loadLevel(t){this.logger.log(`set loadLevel:${t}`),this.levelController.manualLevel=t}get nextLoadLevel(){return this.levelController.nextLoadLevel}set nextLoadLevel(t){this.levelController.nextLoadLevel=t}get firstLevel(){return Math.max(this.levelController.firstLevel,this.minAutoLevel)}set firstLevel(t){this.logger.log(`set firstLevel:${t}`),this.levelController.firstLevel=t}get startLevel(){const t=this.levelController.startLevel;return t===-1&&this.abrController.forcedAutoLevel>-1?this.abrController.forcedAutoLevel:t}set startLevel(t){this.logger.log(`set startLevel:${t}`),t!==-1&&(t=Math.max(t,this.minAutoLevel)),this.levelController.startLevel=t}get capLevelToPlayerSize(){return this.config.capLevelToPlayerSize}set capLevelToPlayerSize(t){const n=!!t;n!==this.config.capLevelToPlayerSize&&(n?this.capLevelController.startCapping():(this.capLevelController.stopCapping(),this.autoLevelCapping=-1,this.streamController.nextLevelSwitch()),this.config.capLevelToPlayerSize=n)}get autoLevelCapping(){return this._autoLevelCapping}get bandwidthEstimate(){const{bwEstimator:t}=this.abrController;return t?t.getEstimate():NaN}set bandwidthEstimate(t){this.abrController.resetEstimator(t)}get abrEwmaDefaultEstimate(){const{bwEstimator:t}=this.abrController;return t?t.defaultEstimate:NaN}get ttfbEstimate(){const{bwEstimator:t}=this.abrController;return t?t.getEstimateTTFB():NaN}set autoLevelCapping(t){this._autoLevelCapping!==t&&(this.logger.log(`set autoLevelCapping:${t}`),this._autoLevelCapping=t,this.levelController.checkMaxAutoUpdated())}get maxHdcpLevel(){return this._maxHdcpLevel}set maxHdcpLevel(t){Dxt(t)&&this._maxHdcpLevel!==t&&(this._maxHdcpLevel=t,this.levelController.checkMaxAutoUpdated())}get autoLevelEnabled(){return this.levelController.manualLevel===-1}get manualLevel(){return this.levelController.manualLevel}get minAutoLevel(){const{levels:t,config:{minAutoBitrate:n}}=this;if(!t)return 0;const r=t.length;for(let o=0;o=n)return o;return 0}get maxAutoLevel(){const{levels:t,autoLevelCapping:n,maxHdcpLevel:r}=this;let o;if(n===-1&&t!=null&&t.length?o=t.length-1:o=n,r)for(let a=o;a--;){const s=t[a].attrs["HDCP-LEVEL"];if(s&&s<=r)return a}return o}get firstAutoLevel(){return this.abrController.firstAutoLevel}get nextAutoLevel(){return this.abrController.nextAutoLevel}set nextAutoLevel(t){this.abrController.nextAutoLevel=t}get playingDate(){return this.streamController.currentProgramDateTime}get mainForwardBufferInfo(){return this.streamController.getMainFwdBufferInfo()}get maxBufferLength(){return this.streamController.maxBufferLength}setAudioOption(t){var n;return((n=this.audioTrackController)==null?void 0:n.setAudioOption(t))||null}setSubtitleOption(t){var n;return((n=this.subtitleTrackController)==null?void 0:n.setSubtitleOption(t))||null}get allAudioTracks(){const t=this.audioTrackController;return t?t.allAudioTracks:[]}get audioTracks(){const t=this.audioTrackController;return t?t.audioTracks:[]}get audioTrack(){const t=this.audioTrackController;return t?t.audioTrack:-1}set audioTrack(t){const n=this.audioTrackController;n&&(n.audioTrack=t)}get allSubtitleTracks(){const t=this.subtitleTrackController;return t?t.allSubtitleTracks:[]}get subtitleTracks(){const t=this.subtitleTrackController;return t?t.subtitleTracks:[]}get subtitleTrack(){const t=this.subtitleTrackController;return t?t.subtitleTrack:-1}get media(){return this._media}set subtitleTrack(t){const n=this.subtitleTrackController;n&&(n.subtitleTrack=t)}get subtitleDisplay(){const t=this.subtitleTrackController;return t?t.subtitleDisplay:!1}set subtitleDisplay(t){const n=this.subtitleTrackController;n&&(n.subtitleDisplay=t)}get lowLatencyMode(){return this.config.lowLatencyMode}set lowLatencyMode(t){this.config.lowLatencyMode=t}get liveSyncPosition(){return this.latencyController.liveSyncPosition}get latency(){return this.latencyController.latency}get maxLatency(){return this.latencyController.maxLatency}get targetLatency(){return this.latencyController.targetLatency}set targetLatency(t){this.latencyController.targetLatency=t}get drift(){return this.latencyController.drift}get forceStartLoad(){return this.streamController.forceStartLoad}get pathways(){return this.levelController.pathways}get pathwayPriority(){return this.levelController.pathwayPriority}set pathwayPriority(t){this.levelController.pathwayPriority=t}get bufferedToEnd(){var t;return!!((t=this.bufferController)!=null&&t.bufferedToEnd)}get interstitialsManager(){var t;return((t=this.interstitialsController)==null?void 0:t.interstitialsManager)||null}getMediaDecodingInfo(t,n=this.allAudioTracks){const r=z3e(n);return j3e(t,r,navigator.mediaCapabilities)}}ku.defaultConfig=void 0;const K8t={class:"player-header"},q8t={class:"player-controls"},Y8t={class:"compact-button-group"},X8t={key:3,class:"compact-btn selector-btn"},Z8t={key:0,style:{color:"#ff4d4f","font-size":"10px"}},J8t={class:"compact-btn selector-btn"},Q8t={key:4,class:"compact-btn selector-btn"},eTt={class:"compact-btn selector-btn"},tTt={__name:"PlayerHeader",props:{episodeName:{type:String,default:"未知选集"},playerType:{type:String,default:"default"},episodes:{type:Array,default:()=>[]},autoNextEnabled:{type:Boolean,default:!1},loopEnabled:{type:Boolean,default:!1},countdownEnabled:{type:Boolean,default:!1},skipEnabled:{type:Boolean,default:!1},showAutoNext:{type:Boolean,default:!0},showCountdown:{type:Boolean,default:!0},showDebugButton:{type:Boolean,default:!1},qualities:{type:Array,default:()=>[]},currentQuality:{type:String,default:"默认"},showParserSelector:{type:Boolean,default:!1},needsParsing:{type:Boolean,default:!1},parseData:{type:Object,default:()=>null}},emits:["toggle-auto-next","toggle-loop","toggle-countdown","player-change","open-skip-settings","toggle-debug","close","proxy-change","quality-change","parser-change"],setup(e,{emit:t}){const n=e,r=t,o=fe("disabled"),a=fe([]),s=yG(),l=fe(""),c=fe([]),d=fe(!1),h=fe(!1),p=E=>{if(!E)return"未知";const _=E.indexOf("#");return _!==-1&&_{try{const E=JSON.parse(localStorage.getItem("addressSettings")||"{}"),_=E.proxyPlayEnabled||!1,T=E.proxyPlay||"";if(a.value=[],g(),_&&T){const D=a.value.findIndex(P=>P.url===T);if(D!==-1){const P=a.value.splice(D,1)[0];a.value.unshift(P)}else{const P=p(T);a.value.unshift({value:T,label:`${P} (当前)`,url:T})}o.value=T}else o.value="disabled";console.log("代理播放配置加载完成:",{enabled:_,current:T,optionsCount:a.value.length,selected:o.value})}catch(E){console.error("加载代理播放配置失败:",E),o.value="disabled"}},g=()=>{try{JSON.parse(localStorage.getItem("address-history-proxy-play")||"[]").forEach(T=>{const D=T.url||T.value||"";if(!D)return;if(!a.value.some(M=>M.url===D)){const M=p(D);a.value.push({value:D,label:M,url:D})}}),console.log("已加载代理播放历史记录:",a.value.length,"个选项")}catch(E){console.error("加载代理播放历史记录失败:",E)}},y=E=>{if(!(!E||E==="disabled"))try{const _=p(E),T=Date.now(),D="address-history-proxy-play",P=JSON.parse(localStorage.getItem(D)||"[]"),M=P.findIndex($=>$.url===E);M!==-1&&P.splice(M,1),P.unshift({url:E,timestamp:T}),P.length>10&&P.splice(10),localStorage.setItem(D,JSON.stringify(P)),console.log("已保存代理播放地址到历史记录:",E)}catch(_){console.error("保存代理播放历史记录失败:",_)}},S=E=>{o.value=E,E!=="disabled"&&y(E),r("proxy-change",E)},k=async()=>{try{d.value=!0,c.value=s.enabledParsers.map(T=>({id:T.id,name:T.name,type:T.type,url:T.url,enabled:T.enabled})),h.value=ET();const E=localStorage.getItem("selectedParser");let _=!1;E&&c.value.find(T=>T.id===E)?(l.value=E,_=!0):c.value.length>0&&(l.value=c.value[0].id,_=!0),console.log("解析器配置加载完成:",{count:c.value.length,selected:l.value,snifferEnabled:h.value,shouldTriggerParsing:_}),_&&l.value&&n.parseData&&(console.log("🚀 [自动解析] 触发默认解析器解析"),Cn(()=>{C(l.value)}))}catch(E){console.error("加载解析器配置失败:",E)}finally{d.value=!1}},C=E=>{l.value=E;const _=c.value.find(T=>T.id===E);_&&localStorage.setItem("selectedParser",JSON.stringify(_)),r("parser-change",{parserId:E,parser:_,parseData:n.parseData}),console.log("解析器已切换:",_)},x=E=>{E.key==="addressSettings"&&v()};return bn(()=>{v(),n.showParserSelector&&k(),window.addEventListener("storage",x),window.addEventListener("addressSettingsChanged",v)}),Rt(()=>n.showParserSelector,E=>{E&&k()}),gi(()=>{window.removeEventListener("storage",x),window.removeEventListener("addressSettingsChanged",v)}),(E,_)=>{const T=Ie("a-option"),D=Ie("a-select");return z(),Q("div",K8t,[I("h3",null,"正在播放: "+ze(e.episodeName),1),I("div",q8t,[I("div",Y8t,[e.showDebugButton?(z(),Q("div",{key:0,class:"compact-btn debug-btn",onClick:_[0]||(_[0]=P=>E.$emit("toggle-debug")),title:"调试信息"},[..._[8]||(_[8]=[xh('调试',2)])])):Le("",!0),e.showAutoNext&&e.episodes.length>1?(z(),Q("div",{key:1,class:ue(["compact-btn",{active:e.autoNextEnabled}]),onClick:_[1]||(_[1]=P=>E.$emit("toggle-auto-next"))},[..._[9]||(_[9]=[I("svg",{class:"btn-icon",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[I("path",{d:"M8 5v14l11-7z",fill:"currentColor"})],-1),I("span",{class:"btn-text"},"自动连播",-1)])],2)):Le("",!0),I("div",{class:ue(["compact-btn",{active:e.loopEnabled}]),onClick:_[2]||(_[2]=P=>E.$emit("toggle-loop")),title:"循环播放当前选集"},[..._[10]||(_[10]=[xh('循环播放',2)])],2),e.showCountdown&&e.episodes.length>1?(z(),Q("div",{key:2,class:ue(["compact-btn",{active:e.countdownEnabled}]),onClick:_[3]||(_[3]=P=>E.$emit("toggle-countdown"))},[..._[11]||(_[11]=[I("svg",{class:"btn-icon",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[I("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"2"}),I("polyline",{points:"12,6 12,12 16,14",stroke:"currentColor","stroke-width":"2"})],-1),I("span",{class:"btn-text"},"倒计时",-1)])],2)):Le("",!0),e.showParserSelector?(z(),Q("div",X8t,[_[12]||(_[12]=I("svg",{class:"btn-icon",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[I("path",{d:"M12 2L2 7l10 5 10-5-10-5z",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),I("path",{d:"M2 17l10 5 10-5",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),I("path",{d:"M2 12l10 5 10-5",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)),O(D,{"model-value":l.value,onChange:C,class:"compact-select",size:"small",loading:d.value,disabled:!c.value.length},{default:de(()=>[(z(!0),Q(Nt,null,gn(c.value,P=>(z(),Ye(T,{key:P.id,value:P.id,title:`${P.name} (${P.type==="1"?"JSON":"嗅探"})`,disabled:P.type==="0"&&!h.value},{default:de(()=>[We(" 解析:"+ze(P.name)+" ",1),P.type==="0"&&!h.value?(z(),Q("span",Z8t," (需嗅探器) ")):Le("",!0)]),_:2},1032,["value","title","disabled"]))),128))]),_:1},8,["model-value","loading","disabled"])])):Le("",!0),I("div",J8t,[_[14]||(_[14]=I("svg",{class:"btn-icon",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[I("path",{d:"M12 2L2 7l10 5 10-5-10-5z",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),I("path",{d:"M2 17l10 5 10-5",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),I("path",{d:"M2 12l10 5 10-5",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)),O(D,{"model-value":o.value,onChange:S,class:"compact-select",size:"small"},{default:de(()=>[O(T,{value:"disabled",title:"关闭代理播放功能"},{default:de(()=>[..._[13]||(_[13]=[We("代理播放:关闭",-1)])]),_:1}),(z(!0),Q(Nt,null,gn(a.value,P=>(z(),Ye(T,{key:P.value,value:P.value,title:`${P.label} 完整链接: ${P.url||P.value}`},{default:de(()=>[We(" 代理播放:"+ze(P.label),1)]),_:2},1032,["value","title"]))),128))]),_:1},8,["model-value"])]),e.qualities&&e.qualities.length>1?(z(),Q("div",Q8t,[_[15]||(_[15]=xh('HD',1)),O(D,{"model-value":e.currentQuality,onChange:_[4]||(_[4]=P=>E.$emit("quality-change",P)),class:"compact-select",size:"small"},{default:de(()=>[(z(!0),Q(Nt,null,gn(e.qualities,P=>(z(),Ye(T,{key:P.name,value:P.name,title:`切换到${P.name}画质`},{default:de(()=>[We(" 画质:"+ze(P.name),1)]),_:2},1032,["value","title"]))),128))]),_:1},8,["model-value"])])):Le("",!0),I("div",eTt,[_[18]||(_[18]=I("svg",{class:"btn-icon",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[I("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",ry:"2",stroke:"currentColor","stroke-width":"2"}),I("circle",{cx:"8.5",cy:"8.5",r:"1.5",fill:"currentColor"}),I("path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",stroke:"currentColor","stroke-width":"2"})],-1)),O(D,{"model-value":e.playerType,onChange:_[5]||(_[5]=P=>E.$emit("player-change",P)),class:"compact-select",size:"small"},{default:de(()=>[O(T,{value:"default",title:"使用浏览器默认的HTML5视频播放器"},{default:de(()=>[..._[16]||(_[16]=[We("默认播放器",-1)])]),_:1}),O(T,{value:"artplayer",title:"使用ArtPlayer播放器,支持更多功能和自定义选项"},{default:de(()=>[..._[17]||(_[17]=[We("ArtPlayer",-1)])]),_:1})]),_:1},8,["model-value"])]),I("div",{class:ue(["compact-btn",{active:e.skipEnabled}]),onClick:_[6]||(_[6]=P=>E.$emit("open-skip-settings"))},[..._[19]||(_[19]=[xh('片头片尾',2)])],2),I("div",{class:"compact-btn close-btn",onClick:_[7]||(_[7]=P=>E.$emit("close"))},[..._[20]||(_[20]=[I("svg",{class:"btn-icon",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[I("line",{x1:"18",y1:"6",x2:"6",y2:"18",stroke:"currentColor","stroke-width":"2"}),I("line",{x1:"6",y1:"6",x2:"18",y2:"18",stroke:"currentColor","stroke-width":"2"})],-1),I("span",{class:"btn-text"},"关闭",-1)])])])])])}}},r4e=xr(tTt,[["__scopeId","data-v-a0946e8b"]]),nTt={class:"dialog-header"},rTt={class:"dialog-content"},iTt={class:"setting-row"},oTt={class:"setting-control"},sTt={key:1,class:"unit"},aTt={class:"setting-row"},lTt={class:"setting-control"},uTt={key:1,class:"unit"},cTt={class:"dialog-footer"},dTt={__name:"SkipSettingsDialog",props:{visible:{type:Boolean,default:!1},skipIntroEnabled:{type:Boolean,default:!1},skipOutroEnabled:{type:Boolean,default:!1},skipIntroSeconds:{type:Number,default:90},skipOutroSeconds:{type:Number,default:90}},emits:["close","save"],setup(e,{emit:t}){const n=e,r=t,o=fe(n.skipIntroEnabled),a=fe(n.skipOutroEnabled),s=fe(n.skipIntroSeconds),l=fe(n.skipOutroSeconds);Rt(()=>n.skipIntroEnabled,h=>{o.value=h}),Rt(()=>n.skipOutroEnabled,h=>{a.value=h}),Rt(()=>n.skipIntroSeconds,h=>{s.value=h}),Rt(()=>n.skipOutroSeconds,h=>{l.value=h});const c=()=>{r("close")},d=()=>{r("save",{skipIntroEnabled:o.value,skipOutroEnabled:a.value,skipIntroSeconds:s.value,skipOutroSeconds:l.value})};return(h,p)=>{const v=Ie("a-switch"),g=Ie("a-input-number"),y=Ie("a-button");return e.visible?(z(),Q("div",{key:0,class:"skip-settings-overlay",onClick:c},[I("div",{class:"skip-settings-dialog",onClick:p[6]||(p[6]=us(()=>{},["stop"]))},[I("div",nTt,[p[8]||(p[8]=I("h3",null,"片头片尾设置",-1)),I("button",{class:"close-btn",onClick:p[0]||(p[0]=S=>h.$emit("close"))},[...p[7]||(p[7]=[I("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[I("line",{x1:"18",y1:"6",x2:"6",y2:"18",stroke:"currentColor","stroke-width":"2"}),I("line",{x1:"6",y1:"6",x2:"18",y2:"18",stroke:"currentColor","stroke-width":"2"})],-1)])])]),I("div",rTt,[I("div",iTt,[p[9]||(p[9]=I("div",{class:"setting-label"},[I("span",null,"跳过片头"),I("div",{class:"setting-hint"},"自动跳过视频开头的片头部分")],-1)),I("div",oTt,[O(v,{modelValue:o.value,"onUpdate:modelValue":p[1]||(p[1]=S=>o.value=S),size:"small"},null,8,["modelValue"]),o.value?(z(),Ye(g,{key:0,modelValue:s.value,"onUpdate:modelValue":p[2]||(p[2]=S=>s.value=S),min:1,max:300,size:"small",class:"seconds-input"},null,8,["modelValue"])):Le("",!0),o.value?(z(),Q("span",sTt,"秒")):Le("",!0)])]),I("div",aTt,[p[10]||(p[10]=I("div",{class:"setting-label"},[I("span",null,"跳过片尾"),I("div",{class:"setting-hint"},"在视频结束前自动跳转到下一集")],-1)),I("div",lTt,[O(v,{modelValue:a.value,"onUpdate:modelValue":p[3]||(p[3]=S=>a.value=S),size:"small"},null,8,["modelValue"]),a.value?(z(),Ye(g,{key:0,modelValue:l.value,"onUpdate:modelValue":p[4]||(p[4]=S=>l.value=S),min:1,max:300,size:"small",class:"seconds-input"},null,8,["modelValue"])):Le("",!0),a.value?(z(),Q("span",uTt,"秒")):Le("",!0)])]),p[11]||(p[11]=I("div",{class:"setting-hint-global"},[I("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[I("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"2"}),I("path",{d:"m9 12 2 2 4-4",stroke:"currentColor","stroke-width":"2"})]),We(" 设置将自动保存并应用到所有播放器 ")],-1))]),I("div",cTt,[O(y,{onClick:p[5]||(p[5]=S=>h.$emit("close")),size:"small"},{default:de(()=>[...p[12]||(p[12]=[We(" 取消 ",-1)])]),_:1}),O(y,{type:"primary",onClick:d,size:"small"},{default:de(()=>[...p[13]||(p[13]=[We(" 保存 ",-1)])]),_:1})])])])):Le("",!0)}}},i4e=xr(dTt,[["__scopeId","data-v-c8c7504a"]]),fTt={class:"dialog-header"},hTt={class:"dialog-content"},pTt={class:"info-section"},vTt={class:"section-header"},mTt=["disabled"],gTt={class:"info-content"},yTt={class:"url-display"},bTt={key:0,class:"info-section"},_Tt={class:"section-header"},STt={class:"section-actions"},kTt=["disabled"],xTt=["disabled"],CTt=["disabled"],wTt={class:"info-content"},ETt={class:"url-display proxy-url"},TTt={class:"info-section"},ATt={class:"section-header"},ITt=["disabled"],LTt={class:"info-content"},DTt={class:"headers-display"},PTt={key:0,class:"no-data"},RTt={key:1,class:"headers-text"},MTt={class:"info-section"},OTt={class:"info-content"},$Tt={class:"format-info"},BTt={class:"format-value"},NTt={class:"info-section"},FTt={class:"info-content"},jTt={class:"player-info"},VTt={class:"player-value"},zTt={__name:"DebugInfoDialog",props:{visible:{type:Boolean,default:!1},videoUrl:{type:String,default:""},headers:{type:Object,default:()=>({})},playerType:{type:String,default:"default"},detectedFormat:{type:String,default:""},proxyUrl:{type:String,default:""}},emits:["close"],setup(e,{emit:t}){const n=e,r=t,o=j(()=>!n.headers||Object.keys(n.headers).length===0?"":Object.entries(n.headers).map(([h,p])=>`${h}: ${p}`).join(` `)),a=()=>{r("close")},s=async(h,p)=>{if(!h){Et.warning(`${p}为空,无法复制`);return}try{await navigator.clipboard.writeText(h),Et.success(`${p}已复制到剪贴板`)}catch(v){console.error("复制失败:",v),Et.error("复制失败,请手动选择复制")}},l=async()=>{const h=["=== DrPlayer 视频调试信息 ===","","📹 视频直链:",n.videoUrl||"暂无","",...n.proxyUrl&&n.proxyUrl!==n.videoUrl?["🔄 代理后链接:",n.proxyUrl,""]:[],"📋 请求头信息:",o.value||"暂无","","🎬 视频格式:",n.detectedFormat||"未知","","⚙️ 播放器类型:",n.playerType==="artplayer"?"ArtPlayer":"默认播放器","","生成时间: "+new Date().toLocaleString()].join(` `);await s(h,"所有调试信息")},c=h=>{if(!h){Et.warning("视频链接为空,无法调起VLC播放器");return}try{const p=`vlc://${h}`,v=document.createElement("iframe");v.style.display="none",v.src=p,document.body.appendChild(v),setTimeout(()=>{document.body.removeChild(v)},1e3),Et.success("正在尝试调起VLC播放器..."),console.log("调起VLC播放器:",p)}catch(p){console.error("调起VLC播放器失败:",p),Et.error("调起VLC播放器失败,请确保已安装VLC播放器")}},d=h=>{if(!h){Et.warning("视频链接为空,无法调起MPV播放器");return}try{const p=`mpv://${h}`,v=document.createElement("iframe");v.style.display="none",v.src=p,document.body.appendChild(v),setTimeout(()=>{document.body.removeChild(v)},1e3),Et.success("正在尝试调起MPV播放器..."),console.log("调起MPV播放器:",p)}catch(p){console.error("调起MPV播放器失败:",p),Et.error("调起MPV播放器失败,请确保已安装MPV播放器")}};return(h,p)=>e.visible?(z(),Q("div",{key:0,class:"debug-info-overlay",onClick:a},[I("div",{class:"debug-info-dialog",onClick:p[6]||(p[6]=us(()=>{},["stop"]))},[I("div",fTt,[p[8]||(p[8]=I("h3",null,"🔧 视频调试信息",-1)),I("button",{class:"close-btn",onClick:p[0]||(p[0]=v=>h.$emit("close"))},[...p[7]||(p[7]=[I("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[I("line",{x1:"18",y1:"6",x2:"6",y2:"18",stroke:"currentColor","stroke-width":"2"}),I("line",{x1:"6",y1:"6",x2:"18",y2:"18",stroke:"currentColor","stroke-width":"2"})],-1)])])]),I("div",hTt,[I("div",pTt,[I("div",vTt,[p[10]||(p[10]=I("h4",null,"📹 视频直链",-1)),I("button",{class:"copy-btn",onClick:p[1]||(p[1]=v=>s(e.videoUrl,"视频直链")),disabled:!e.videoUrl},[...p[9]||(p[9]=[I("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[I("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2",stroke:"currentColor","stroke-width":"2"}),I("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1",stroke:"currentColor","stroke-width":"2"})],-1),We(" 复制 ",-1)])],8,mTt)]),I("div",gTt,[I("div",yTt,ze(e.videoUrl||"暂无视频链接"),1)])]),e.proxyUrl&&e.proxyUrl!==e.videoUrl?(z(),Q("div",bTt,[I("div",_Tt,[p[14]||(p[14]=I("h4",null,"🔄 代理后链接",-1)),I("div",STt,[I("button",{class:"copy-btn",onClick:p[2]||(p[2]=v=>s(e.proxyUrl,"代理后链接")),disabled:!e.proxyUrl},[...p[11]||(p[11]=[I("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[I("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2",stroke:"currentColor","stroke-width":"2"}),I("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1",stroke:"currentColor","stroke-width":"2"})],-1),We(" 复制 ",-1)])],8,kTt),I("button",{class:"external-player-btn vlc-btn",onClick:p[3]||(p[3]=v=>c(e.proxyUrl)),disabled:!e.proxyUrl,title:"使用VLC播放器打开"},[...p[12]||(p[12]=[I("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[I("polygon",{points:"5,3 19,12 5,21",fill:"currentColor"})],-1),We(" VLC ",-1)])],8,xTt),I("button",{class:"external-player-btn mpv-btn",onClick:p[4]||(p[4]=v=>d(e.proxyUrl)),disabled:!e.proxyUrl,title:"使用MPV播放器打开"},[...p[13]||(p[13]=[I("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[I("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"2"}),I("polygon",{points:"10,8 16,12 10,16",fill:"currentColor"})],-1),We(" MPV ",-1)])],8,CTt)])]),I("div",wTt,[I("div",ETt,ze(e.proxyUrl),1)])])):Le("",!0),I("div",TTt,[I("div",ATt,[p[16]||(p[16]=I("h4",null,"📋 请求头信息",-1)),I("button",{class:"copy-btn",onClick:p[5]||(p[5]=v=>s(o.value,"请求头信息")),disabled:!o.value},[...p[15]||(p[15]=[I("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[I("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2",stroke:"currentColor","stroke-width":"2"}),I("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1",stroke:"currentColor","stroke-width":"2"})],-1),We(" 复制 ",-1)])],8,ITt)]),I("div",LTt,[I("div",DTt,[o.value?(z(),Q("pre",RTt,ze(o.value),1)):(z(),Q("div",PTt,"暂无请求头信息"))])])]),I("div",MTt,[p[18]||(p[18]=I("div",{class:"section-header"},[I("h4",null,"🎬 视频格式")],-1)),I("div",OTt,[I("div",$Tt,[p[17]||(p[17]=I("span",{class:"format-label"},"检测格式:",-1)),I("span",BTt,ze(e.detectedFormat||"未知"),1)])])]),I("div",NTt,[p[20]||(p[20]=I("div",{class:"section-header"},[I("h4",null,"⚙️ 播放器信息")],-1)),I("div",FTt,[I("div",jTt,[p[19]||(p[19]=I("span",{class:"player-label"},"当前播放器:",-1)),I("span",VTt,ze(e.playerType==="artplayer"?"ArtPlayer":"默认播放器"),1)])])]),I("div",{class:"action-section"},[I("button",{class:"copy-all-btn",onClick:l},[...p[21]||(p[21]=[I("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[I("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2",stroke:"currentColor","stroke-width":"2"}),I("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1",stroke:"currentColor","stroke-width":"2"})],-1),We(" 复制所有调试信息 ",-1)])])])])])])):Le("",!0)}},o4e=xr(zTt,[["__scopeId","data-v-d9075ed4"]]);function s4e(e={}){const{onSkipToNext:t=()=>{},getCurrentTime:n=()=>0,setCurrentTime:r=()=>{},getDuration:o=()=>0}=e,a=fe(!1),s=fe(!1),l=fe(!1),c=fe(90),d=fe(90),h=fe(!1),p=fe(!1),v=fe(null),g=fe(0),y=fe(!1),S=fe(0),k=fe(!1),C=fe(0),x=j(()=>s.value||l.value),E="drplayer_skip_settings",_=()=>{try{const ee=localStorage.getItem(E);if(console.log("从 localStorage 加载设置:",ee),ee){const ne=JSON.parse(ee);s.value=ne.skipIntroEnabled||!1,l.value=ne.skipOutroEnabled||!1,c.value=ne.skipIntroSeconds||90,d.value=ne.skipOutroSeconds||90,console.log("加载的设置:",{skipIntroEnabled:s.value,skipOutroEnabled:l.value,skipIntroSeconds:c.value,skipOutroSeconds:d.value})}else console.log("没有找到保存的设置,使用默认值")}catch(ee){console.warn("加载片头片尾设置失败:",ee)}},T=ee=>{try{s.value=ee.skipIntroEnabled,l.value=ee.skipOutroEnabled,c.value=ee.skipIntroSeconds,d.value=ee.skipOutroSeconds;const ne={skipIntroEnabled:ee.skipIntroEnabled,skipOutroEnabled:ee.skipOutroEnabled,skipIntroSeconds:ee.skipIntroSeconds,skipOutroSeconds:ee.skipOutroSeconds};localStorage.setItem(E,JSON.stringify(ne)),$()}catch(ne){console.warn("保存片头片尾设置失败:",ne)}},D=()=>{if(!s.value||h.value)return!1;const ee=n(),ne=Date.now();return y.value||S.value>0&&ne-S.value<3e3||k.value||C.value>0&&ne-C.value<2e3?!1:ee<=1&&ee<=c.value?(console.log(`立即跳过片头:从 ${ee.toFixed(1)}s 跳转到 ${c.value}s`),r(c.value),h.value=!0,g.value=ne,!0):!1},P=()=>{if(!s.value||h.value)return;const ee=n(),ne=Date.now();y.value||S.value>0&&ne-S.value<3e3||k.value||C.value>0&&ne-C.value<2e3||g.value>0&&ne-g.value<1e3||ee<=c.value&&(console.log(`已跳过片头:从 ${ee.toFixed(1)}s 跳转到 ${c.value}s`),r(c.value),h.value=!0,g.value=ne)},M=()=>{if(!l.value||p.value)return;const ee=o();if(ee<=0)return;const ne=n(),ae=ee-d.value,re=Date.now();re-g.value<2e3||ne>=ae&&ne{D()||P(),M()};let L=null;const B=()=>{L&&clearTimeout(L),L=setTimeout(()=>{s.value&&!h.value&&P(),l.value&&!p.value&&M()},200)},F=()=>{h.value=!1,p.value=!1,g.value=0,y.value=!1,S.value=0,k.value=!1,C.value=0,v.value&&(clearTimeout(v.value),v.value=null)},W=()=>{y.value=!0,console.log("用户开始拖动进度条")},U=()=>{y.value=!1,S.value=Date.now(),console.log("用户结束拖动进度条")},G=()=>{k.value=!0,console.log("全屏状态开始变化")},X=()=>{k.value=!1,C.value=Date.now(),console.log("全屏状态变化结束")},oe=()=>{F(),_()},Z=()=>{a.value=!0},H=()=>{a.value=!1},q=()=>{v.value&&(clearTimeout(v.value),v.value=null)};return gi(()=>{q()}),{showSkipSettingsDialog:a,skipIntroEnabled:s,skipOutroEnabled:l,skipIntroSeconds:c,skipOutroSeconds:d,skipIntroApplied:h,skipOutroTimer:v,skipEnabled:x,loadSkipSettings:_,saveSkipSettings:T,applySkipSettings:$,applyIntroSkipImmediate:D,handleTimeUpdate:B,resetSkipState:F,initSkipSettings:oe,openSkipSettingsDialog:Z,closeSkipSettingsDialog:H,cleanup:q,onUserSeekStart:W,onUserSeekEnd:U,onFullscreenChangeStart:G,onFullscreenChangeEnd:X}}const qv={NO_REFERRER:"no-referrer",ORIGIN:"origin",SAME_ORIGIN:"same-origin",STRICT_ORIGIN_WHEN_CROSS_ORIGIN:"strict-origin-when-cross-origin",UNSAFE_URL:"unsafe-url"},a4e=[{value:"no-referrer",label:"不发送Referrer"},{value:"no-referrer-when-downgrade",label:"HTTPS到HTTP时不发送"},{value:"origin",label:"只发送源域名"},{value:"origin-when-cross-origin",label:"跨域时只发送源域名"},{value:"same-origin",label:"同源时发送完整Referrer"},{value:"strict-origin",label:"严格源域名策略"},{value:"strict-origin-when-cross-origin",label:"跨域时严格控制"},{value:"unsafe-url",label:"总是发送完整Referrer(不安全)"}];function UG(){const e=document.querySelector('meta[name="referrer"]');return e?e.getAttribute("content"):"default"}function I_(e){let t=document.querySelector('meta[name="referrer"]');t||(t=document.createElement("meta"),t.setAttribute("name","referrer"),document.head.appendChild(t)),t.setAttribute("content",e),console.log(`已设置全局referrer策略为: ${e}`)}function NT(e,t){e&&e.tagName==="VIDEO"&&(e.setAttribute("referrerpolicy",t),console.log(`已为视频元素设置referrer策略: ${t}`))}function UTt(e,t=null){const n=Oh();let r;return n.autoBypass?(r=n.referrerPolicy,console.log(`根据CSP配置设置referrer策略: ${r} (URL: ${e})`)):(r=UG()||qv.STRICT_ORIGIN_WHEN_CROSS_ORIGIN,console.log(`CSP绕过未启用,保持当前策略: ${r} (URL: ${e})`)),I_(r),t&&NT(t,r),r}const Zue={referrerPolicy:qv.NO_REFERRER,autoBypass:!0,autoRetry:!0,retryPolicies:[qv.NO_REFERRER,qv.ORIGIN,qv.SAME_ORIGIN,qv.UNSAFE_URL]};function Oh(){const e=localStorage.getItem("csp_bypass_config");return e?{...Zue,...JSON.parse(e)}:Zue}function eU(e){localStorage.setItem("csp_bypass_config",JSON.stringify(e))}function HG(e,t){return Oh().autoBypass?UTt(e,t):UG()}var tj={exports:{}},Jue;function HTt(){return Jue||(Jue=1,(function(e,t){(function(r,o){e.exports=o()})(self,function(){return(function(){var n={"./node_modules/es6-promise/dist/es6-promise.js":(function(s,l,c){/*! * @overview es6-promise - a tiny implementation of Promises/A+. * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald) * @license Licensed under MIT license * See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE * @version v4.2.8+1e68dce6 */(function(d,h){s.exports=h()})(this,(function(){function d(Re){var Xe=typeof Re;return Re!==null&&(Xe==="object"||Xe==="function")}function h(Re){return typeof Re=="function"}var p=void 0;Array.isArray?p=Array.isArray:p=function(Re){return Object.prototype.toString.call(Re)==="[object Array]"};var v=p,g=0,y=void 0,S=void 0,k=function(Xe,dt){W[g]=Xe,W[g+1]=dt,g+=2,g===2&&(S?S(U):X())};function C(Re){S=Re}function x(Re){k=Re}var E=typeof window<"u"?window:void 0,_=E||{},T=_.MutationObserver||_.WebKitMutationObserver,D=typeof self>"u"&&typeof process<"u"&&{}.toString.call(process)==="[object process]",P=typeof Uint8ClampedArray<"u"&&typeof importScripts<"u"&&typeof MessageChannel<"u";function M(){return function(){return process.nextTick(U)}}function $(){return typeof y<"u"?function(){y(U)}:F()}function L(){var Re=0,Xe=new T(U),dt=document.createTextNode("");return Xe.observe(dt,{characterData:!0}),function(){dt.data=Re=++Re%2}}function B(){var Re=new MessageChannel;return Re.port1.onmessage=U,function(){return Re.port2.postMessage(0)}}function F(){var Re=setTimeout;return function(){return Re(U,1)}}var W=new Array(1e3);function U(){for(var Re=0;Re0&&(oe=W[0]),oe instanceof Error)throw oe;var Z=new Error("Unhandled error."+(oe?" ("+oe.message+")":""));throw Z.context=oe,Z}var H=X[F];if(H===void 0)return!1;if(typeof H=="function")c(H,this,W);else for(var q=H.length,ee=T(H,q),U=0;U0&&oe.length>G&&!oe.warned){oe.warned=!0;var Z=new Error("Possible EventEmitter memory leak detected. "+oe.length+" "+String(F)+" listeners added. Use emitter.setMaxListeners() to increase limit");Z.name="MaxListenersExceededWarning",Z.emitter=B,Z.type=F,Z.count=oe.length,h(Z)}return B}v.prototype.addListener=function(F,W){return k(this,F,W,!1)},v.prototype.on=v.prototype.addListener,v.prototype.prependListener=function(F,W){return k(this,F,W,!0)};function C(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function x(B,F,W){var U={fired:!1,wrapFn:void 0,target:B,type:F,listener:W},G=C.bind(U);return G.listener=W,U.wrapFn=G,G}v.prototype.once=function(F,W){return y(W),this.on(F,x(this,F,W)),this},v.prototype.prependOnceListener=function(F,W){return y(W),this.prependListener(F,x(this,F,W)),this},v.prototype.removeListener=function(F,W){var U,G,X,oe,Z;if(y(W),G=this._events,G===void 0)return this;if(U=G[F],U===void 0)return this;if(U===W||U.listener===W)--this._eventsCount===0?this._events=Object.create(null):(delete G[F],G.removeListener&&this.emit("removeListener",F,U.listener||W));else if(typeof U!="function"){for(X=-1,oe=U.length-1;oe>=0;oe--)if(U[oe]===W||U[oe].listener===W){Z=U[oe].listener,X=oe;break}if(X<0)return this;X===0?U.shift():D(U,X),U.length===1&&(G[F]=U[0]),G.removeListener!==void 0&&this.emit("removeListener",F,Z||W)}return this},v.prototype.off=v.prototype.removeListener,v.prototype.removeAllListeners=function(F){var W,U,G;if(U=this._events,U===void 0)return this;if(U.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):U[F]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete U[F]),this;if(arguments.length===0){var X=Object.keys(U),oe;for(G=0;G=0;G--)this.removeListener(F,W[G]);return this};function E(B,F,W){var U=B._events;if(U===void 0)return[];var G=U[F];return G===void 0?[]:typeof G=="function"?W?[G.listener||G]:[G]:W?P(G):T(G,G.length)}v.prototype.listeners=function(F){return E(this,F,!0)},v.prototype.rawListeners=function(F){return E(this,F,!1)},v.listenerCount=function(B,F){return typeof B.listenerCount=="function"?B.listenerCount(F):_.call(B,F)},v.prototype.listenerCount=_;function _(B){var F=this._events;if(F!==void 0){var W=F[B];if(typeof W=="function")return 1;if(W!==void 0)return W.length}return 0}v.prototype.eventNames=function(){return this._eventsCount>0?d(this._events):[]};function T(B,F){for(var W=new Array(F),U=0;U0},!1)}function k(C,x){for(var E={main:[x]},_={main:[]},T={main:{}};S(E);)for(var D=Object.keys(E),P=0;P=p[S]&&v0&&y[0].originalDts=S[x].dts&&yS[C].lastSample.originalDts&&y=S[C].lastSample.originalDts&&(C===S.length-1||C0&&(x=this._searchNearestSegmentBefore(k.originalBeginDts)+1),this._lastAppendLocation=x,this._list.splice(x,0,k)},g.prototype.getLastSegmentBefore=function(y){var S=this._searchNearestSegmentBefore(y);return S>=0?this._list[S]:null},g.prototype.getLastSampleBefore=function(y){var S=this.getLastSegmentBefore(y);return S!=null?S.lastSample:null},g.prototype.getLastSyncPointBefore=function(y){for(var S=this._searchNearestSegmentBefore(y),k=this._list[S].syncPoints;k.length===0&&S>0;)S--,k=this._list[S].syncPoints;return k.length>0?k[k.length-1]:null},g})()}),"./src/core/mse-controller.js":(function(s,l,c){c.r(l);var d=c("./node_modules/events/events.js"),h=c.n(d),p=c("./src/utils/logger.js"),v=c("./src/utils/browser.js"),g=c("./src/core/mse-events.js"),y=c("./src/core/media-segment-info.js"),S=c("./src/utils/exception.js"),k=(function(){function C(x){this.TAG="MSEController",this._config=x,this._emitter=new(h()),this._config.isLive&&this._config.autoCleanupSourceBuffer==null&&(this._config.autoCleanupSourceBuffer=!0),this.e={onSourceOpen:this._onSourceOpen.bind(this),onSourceEnded:this._onSourceEnded.bind(this),onSourceClose:this._onSourceClose.bind(this),onSourceBufferError:this._onSourceBufferError.bind(this),onSourceBufferUpdateEnd:this._onSourceBufferUpdateEnd.bind(this)},this._mediaSource=null,this._mediaSourceObjectURL=null,this._mediaElement=null,this._isBufferFull=!1,this._hasPendingEos=!1,this._requireSetMediaDuration=!1,this._pendingMediaDuration=0,this._pendingSourceBufferInit=[],this._mimeTypes={video:null,audio:null},this._sourceBuffers={video:null,audio:null},this._lastInitSegments={video:null,audio:null},this._pendingSegments={video:[],audio:[]},this._pendingRemoveRanges={video:[],audio:[]},this._idrList=new y.IDRSampleList}return C.prototype.destroy=function(){(this._mediaElement||this._mediaSource)&&this.detachMediaElement(),this.e=null,this._emitter.removeAllListeners(),this._emitter=null},C.prototype.on=function(x,E){this._emitter.addListener(x,E)},C.prototype.off=function(x,E){this._emitter.removeListener(x,E)},C.prototype.attachMediaElement=function(x){if(this._mediaSource)throw new S.IllegalStateException("MediaSource has been attached to an HTMLMediaElement!");var E=this._mediaSource=new window.MediaSource;E.addEventListener("sourceopen",this.e.onSourceOpen),E.addEventListener("sourceended",this.e.onSourceEnded),E.addEventListener("sourceclose",this.e.onSourceClose),this._mediaElement=x,this._mediaSourceObjectURL=window.URL.createObjectURL(this._mediaSource),x.src=this._mediaSourceObjectURL},C.prototype.detachMediaElement=function(){if(this._mediaSource){var x=this._mediaSource;for(var E in this._sourceBuffers){var _=this._pendingSegments[E];_.splice(0,_.length),this._pendingSegments[E]=null,this._pendingRemoveRanges[E]=null,this._lastInitSegments[E]=null;var T=this._sourceBuffers[E];if(T){if(x.readyState!=="closed"){try{x.removeSourceBuffer(T)}catch(D){p.default.e(this.TAG,D.message)}T.removeEventListener("error",this.e.onSourceBufferError),T.removeEventListener("updateend",this.e.onSourceBufferUpdateEnd)}this._mimeTypes[E]=null,this._sourceBuffers[E]=null}}if(x.readyState==="open")try{x.endOfStream()}catch(D){p.default.e(this.TAG,D.message)}x.removeEventListener("sourceopen",this.e.onSourceOpen),x.removeEventListener("sourceended",this.e.onSourceEnded),x.removeEventListener("sourceclose",this.e.onSourceClose),this._pendingSourceBufferInit=[],this._isBufferFull=!1,this._idrList.clear(),this._mediaSource=null}this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src"),this._mediaElement=null),this._mediaSourceObjectURL&&(window.URL.revokeObjectURL(this._mediaSourceObjectURL),this._mediaSourceObjectURL=null)},C.prototype.appendInitSegment=function(x,E){if(!this._mediaSource||this._mediaSource.readyState!=="open"){this._pendingSourceBufferInit.push(x),this._pendingSegments[x.type].push(x);return}var _=x,T=""+_.container;_.codec&&_.codec.length>0&&(T+=";codecs="+_.codec);var D=!1;if(p.default.v(this.TAG,"Received Initialization Segment, mimeType: "+T),this._lastInitSegments[_.type]=_,T!==this._mimeTypes[_.type]){if(this._mimeTypes[_.type])p.default.v(this.TAG,"Notice: "+_.type+" mimeType changed, origin: "+this._mimeTypes[_.type]+", target: "+T);else{D=!0;try{var P=this._sourceBuffers[_.type]=this._mediaSource.addSourceBuffer(T);P.addEventListener("error",this.e.onSourceBufferError),P.addEventListener("updateend",this.e.onSourceBufferUpdateEnd)}catch(M){p.default.e(this.TAG,M.message),this._emitter.emit(g.default.ERROR,{code:M.code,msg:M.message});return}}this._mimeTypes[_.type]=T}E||this._pendingSegments[_.type].push(_),D||this._sourceBuffers[_.type]&&!this._sourceBuffers[_.type].updating&&this._doAppendSegments(),v.default.safari&&_.container==="audio/mpeg"&&_.mediaDuration>0&&(this._requireSetMediaDuration=!0,this._pendingMediaDuration=_.mediaDuration/1e3,this._updateMediaSourceDuration())},C.prototype.appendMediaSegment=function(x){var E=x;this._pendingSegments[E.type].push(E),this._config.autoCleanupSourceBuffer&&this._needCleanupSourceBuffer()&&this._doCleanupSourceBuffer();var _=this._sourceBuffers[E.type];_&&!_.updating&&!this._hasPendingRemoveRanges()&&this._doAppendSegments()},C.prototype.seek=function(x){for(var E in this._sourceBuffers)if(this._sourceBuffers[E]){var _=this._sourceBuffers[E];if(this._mediaSource.readyState==="open")try{_.abort()}catch(L){p.default.e(this.TAG,L.message)}this._idrList.clear();var T=this._pendingSegments[E];if(T.splice(0,T.length),this._mediaSource.readyState!=="closed"){for(var D=0;D<_.buffered.length;D++){var P=_.buffered.start(D),M=_.buffered.end(D);this._pendingRemoveRanges[E].push({start:P,end:M})}if(_.updating||this._doRemoveRanges(),v.default.safari){var $=this._lastInitSegments[E];$&&(this._pendingSegments[E].push($),_.updating||this._doAppendSegments())}}}},C.prototype.endOfStream=function(){var x=this._mediaSource,E=this._sourceBuffers;if(!x||x.readyState!=="open"){x&&x.readyState==="closed"&&this._hasPendingSegments()&&(this._hasPendingEos=!0);return}E.video&&E.video.updating||E.audio&&E.audio.updating?this._hasPendingEos=!0:(this._hasPendingEos=!1,x.endOfStream())},C.prototype.getNearestKeyframe=function(x){return this._idrList.getLastSyncPointBeforeDts(x)},C.prototype._needCleanupSourceBuffer=function(){if(!this._config.autoCleanupSourceBuffer)return!1;var x=this._mediaElement.currentTime;for(var E in this._sourceBuffers){var _=this._sourceBuffers[E];if(_){var T=_.buffered;if(T.length>=1&&x-T.start(0)>=this._config.autoCleanupMaxBackwardDuration)return!0}}return!1},C.prototype._doCleanupSourceBuffer=function(){var x=this._mediaElement.currentTime;for(var E in this._sourceBuffers){var _=this._sourceBuffers[E];if(_){for(var T=_.buffered,D=!1,P=0;P=this._config.autoCleanupMaxBackwardDuration){D=!0;var L=x-this._config.autoCleanupMinBackwardDuration;this._pendingRemoveRanges[E].push({start:M,end:L})}}else $0&&(isNaN(E)||_>E)&&(p.default.v(this.TAG,"Update MediaSource duration from "+E+" to "+_),this._mediaSource.duration=_),this._requireSetMediaDuration=!1,this._pendingMediaDuration=0}},C.prototype._doRemoveRanges=function(){for(var x in this._pendingRemoveRanges)if(!(!this._sourceBuffers[x]||this._sourceBuffers[x].updating))for(var E=this._sourceBuffers[x],_=this._pendingRemoveRanges[x];_.length&&!E.updating;){var T=_.shift();E.remove(T.start,T.end)}},C.prototype._doAppendSegments=function(){var x=this._pendingSegments;for(var E in x)if(!(!this._sourceBuffers[E]||this._sourceBuffers[E].updating)&&x[E].length>0){var _=x[E].shift();if(_.timestampOffset){var T=this._sourceBuffers[E].timestampOffset,D=_.timestampOffset/1e3,P=Math.abs(T-D);P>.1&&(p.default.v(this.TAG,"Update MPEG audio timestampOffset from "+T+" to "+D),this._sourceBuffers[E].timestampOffset=D),delete _.timestampOffset}if(!_.data||_.data.byteLength===0)continue;try{this._sourceBuffers[E].appendBuffer(_.data),this._isBufferFull=!1,E==="video"&&_.hasOwnProperty("info")&&this._idrList.appendArray(_.info.syncPoints)}catch(M){this._pendingSegments[E].unshift(_),M.code===22?(this._isBufferFull||this._emitter.emit(g.default.BUFFER_FULL),this._isBufferFull=!0):(p.default.e(this.TAG,M.message),this._emitter.emit(g.default.ERROR,{code:M.code,msg:M.message}))}}},C.prototype._onSourceOpen=function(){if(p.default.v(this.TAG,"MediaSource onSourceOpen"),this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._pendingSourceBufferInit.length>0)for(var x=this._pendingSourceBufferInit;x.length;){var E=x.shift();this.appendInitSegment(E,!0)}this._hasPendingSegments()&&this._doAppendSegments(),this._emitter.emit(g.default.SOURCE_OPEN)},C.prototype._onSourceEnded=function(){p.default.v(this.TAG,"MediaSource onSourceEnded")},C.prototype._onSourceClose=function(){p.default.v(this.TAG,"MediaSource onSourceClose"),this._mediaSource&&this.e!=null&&(this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._mediaSource.removeEventListener("sourceended",this.e.onSourceEnded),this._mediaSource.removeEventListener("sourceclose",this.e.onSourceClose))},C.prototype._hasPendingSegments=function(){var x=this._pendingSegments;return x.video.length>0||x.audio.length>0},C.prototype._hasPendingRemoveRanges=function(){var x=this._pendingRemoveRanges;return x.video.length>0||x.audio.length>0},C.prototype._onSourceBufferUpdateEnd=function(){this._requireSetMediaDuration?this._updateMediaSourceDuration():this._hasPendingRemoveRanges()?this._doRemoveRanges():this._hasPendingSegments()?this._doAppendSegments():this._hasPendingEos&&this.endOfStream(),this._emitter.emit(g.default.UPDATE_END)},C.prototype._onSourceBufferError=function(x){p.default.e(this.TAG,"SourceBuffer Error: "+x)},C})();l.default=k}),"./src/core/mse-events.js":(function(s,l,c){c.r(l);var d={ERROR:"error",SOURCE_OPEN:"source_open",UPDATE_END:"update_end",BUFFER_FULL:"buffer_full"};l.default=d}),"./src/core/transmuxer.js":(function(s,l,c){c.r(l);var d=c("./node_modules/events/events.js"),h=c.n(d),p=c("./node_modules/webworkify-webpack/index.js"),v=c.n(p),g=c("./src/utils/logger.js"),y=c("./src/utils/logging-control.js"),S=c("./src/core/transmuxing-controller.js"),k=c("./src/core/transmuxing-events.js"),C=c("./src/core/media-info.js"),x=(function(){function E(_,T){if(this.TAG="Transmuxer",this._emitter=new(h()),T.enableWorker&&typeof Worker<"u")try{this._worker=v()("./src/core/transmuxing-worker.js"),this._workerDestroying=!1,this._worker.addEventListener("message",this._onWorkerMessage.bind(this)),this._worker.postMessage({cmd:"init",param:[_,T]}),this.e={onLoggingConfigChanged:this._onLoggingConfigChanged.bind(this)},y.default.registerListener(this.e.onLoggingConfigChanged),this._worker.postMessage({cmd:"logging_config",param:y.default.getConfig()})}catch{g.default.e(this.TAG,"Error while initialize transmuxing worker, fallback to inline transmuxing"),this._worker=null,this._controller=new S.default(_,T)}else this._controller=new S.default(_,T);if(this._controller){var D=this._controller;D.on(k.default.IO_ERROR,this._onIOError.bind(this)),D.on(k.default.DEMUX_ERROR,this._onDemuxError.bind(this)),D.on(k.default.INIT_SEGMENT,this._onInitSegment.bind(this)),D.on(k.default.MEDIA_SEGMENT,this._onMediaSegment.bind(this)),D.on(k.default.LOADING_COMPLETE,this._onLoadingComplete.bind(this)),D.on(k.default.RECOVERED_EARLY_EOF,this._onRecoveredEarlyEof.bind(this)),D.on(k.default.MEDIA_INFO,this._onMediaInfo.bind(this)),D.on(k.default.METADATA_ARRIVED,this._onMetaDataArrived.bind(this)),D.on(k.default.SCRIPTDATA_ARRIVED,this._onScriptDataArrived.bind(this)),D.on(k.default.STATISTICS_INFO,this._onStatisticsInfo.bind(this)),D.on(k.default.RECOMMEND_SEEKPOINT,this._onRecommendSeekpoint.bind(this))}}return E.prototype.destroy=function(){this._worker?this._workerDestroying||(this._workerDestroying=!0,this._worker.postMessage({cmd:"destroy"}),y.default.removeListener(this.e.onLoggingConfigChanged),this.e=null):(this._controller.destroy(),this._controller=null),this._emitter.removeAllListeners(),this._emitter=null},E.prototype.on=function(_,T){this._emitter.addListener(_,T)},E.prototype.off=function(_,T){this._emitter.removeListener(_,T)},E.prototype.hasWorker=function(){return this._worker!=null},E.prototype.open=function(){this._worker?this._worker.postMessage({cmd:"start"}):this._controller.start()},E.prototype.close=function(){this._worker?this._worker.postMessage({cmd:"stop"}):this._controller.stop()},E.prototype.seek=function(_){this._worker?this._worker.postMessage({cmd:"seek",param:_}):this._controller.seek(_)},E.prototype.pause=function(){this._worker?this._worker.postMessage({cmd:"pause"}):this._controller.pause()},E.prototype.resume=function(){this._worker?this._worker.postMessage({cmd:"resume"}):this._controller.resume()},E.prototype._onInitSegment=function(_,T){var D=this;Promise.resolve().then(function(){D._emitter.emit(k.default.INIT_SEGMENT,_,T)})},E.prototype._onMediaSegment=function(_,T){var D=this;Promise.resolve().then(function(){D._emitter.emit(k.default.MEDIA_SEGMENT,_,T)})},E.prototype._onLoadingComplete=function(){var _=this;Promise.resolve().then(function(){_._emitter.emit(k.default.LOADING_COMPLETE)})},E.prototype._onRecoveredEarlyEof=function(){var _=this;Promise.resolve().then(function(){_._emitter.emit(k.default.RECOVERED_EARLY_EOF)})},E.prototype._onMediaInfo=function(_){var T=this;Promise.resolve().then(function(){T._emitter.emit(k.default.MEDIA_INFO,_)})},E.prototype._onMetaDataArrived=function(_){var T=this;Promise.resolve().then(function(){T._emitter.emit(k.default.METADATA_ARRIVED,_)})},E.prototype._onScriptDataArrived=function(_){var T=this;Promise.resolve().then(function(){T._emitter.emit(k.default.SCRIPTDATA_ARRIVED,_)})},E.prototype._onStatisticsInfo=function(_){var T=this;Promise.resolve().then(function(){T._emitter.emit(k.default.STATISTICS_INFO,_)})},E.prototype._onIOError=function(_,T){var D=this;Promise.resolve().then(function(){D._emitter.emit(k.default.IO_ERROR,_,T)})},E.prototype._onDemuxError=function(_,T){var D=this;Promise.resolve().then(function(){D._emitter.emit(k.default.DEMUX_ERROR,_,T)})},E.prototype._onRecommendSeekpoint=function(_){var T=this;Promise.resolve().then(function(){T._emitter.emit(k.default.RECOMMEND_SEEKPOINT,_)})},E.prototype._onLoggingConfigChanged=function(_){this._worker&&this._worker.postMessage({cmd:"logging_config",param:_})},E.prototype._onWorkerMessage=function(_){var T=_.data,D=T.data;if(T.msg==="destroyed"||this._workerDestroying){this._workerDestroying=!1,this._worker.terminate(),this._worker=null;return}switch(T.msg){case k.default.INIT_SEGMENT:case k.default.MEDIA_SEGMENT:this._emitter.emit(T.msg,D.type,D.data);break;case k.default.LOADING_COMPLETE:case k.default.RECOVERED_EARLY_EOF:this._emitter.emit(T.msg);break;case k.default.MEDIA_INFO:Object.setPrototypeOf(D,C.default.prototype),this._emitter.emit(T.msg,D);break;case k.default.METADATA_ARRIVED:case k.default.SCRIPTDATA_ARRIVED:case k.default.STATISTICS_INFO:this._emitter.emit(T.msg,D);break;case k.default.IO_ERROR:case k.default.DEMUX_ERROR:this._emitter.emit(T.msg,D.type,D.info);break;case k.default.RECOMMEND_SEEKPOINT:this._emitter.emit(T.msg,D);break;case"logcat_callback":g.default.emitter.emit("log",D.type,D.logcat);break}},E})();l.default=x}),"./src/core/transmuxing-controller.js":(function(s,l,c){c.r(l);var d=c("./node_modules/events/events.js"),h=c.n(d),p=c("./src/utils/logger.js"),v=c("./src/utils/browser.js"),g=c("./src/core/media-info.js"),y=c("./src/demux/flv-demuxer.js"),S=c("./src/remux/mp4-remuxer.js"),k=c("./src/demux/demux-errors.js"),C=c("./src/io/io-controller.js"),x=c("./src/core/transmuxing-events.js"),E=(function(){function _(T,D){this.TAG="TransmuxingController",this._emitter=new(h()),this._config=D,T.segments||(T.segments=[{duration:T.duration,filesize:T.filesize,url:T.url}]),typeof T.cors!="boolean"&&(T.cors=!0),typeof T.withCredentials!="boolean"&&(T.withCredentials=!1),this._mediaDataSource=T,this._currentSegmentIndex=0;var P=0;this._mediaDataSource.segments.forEach(function(M){M.timestampBase=P,P+=M.duration,M.cors=T.cors,M.withCredentials=T.withCredentials,D.referrerPolicy&&(M.referrerPolicy=D.referrerPolicy)}),!isNaN(P)&&this._mediaDataSource.duration!==P&&(this._mediaDataSource.duration=P),this._mediaInfo=null,this._demuxer=null,this._remuxer=null,this._ioctl=null,this._pendingSeekTime=null,this._pendingResolveSeekPoint=null,this._statisticsReporter=null}return _.prototype.destroy=function(){this._mediaInfo=null,this._mediaDataSource=null,this._statisticsReporter&&this._disableStatisticsReporter(),this._ioctl&&(this._ioctl.destroy(),this._ioctl=null),this._demuxer&&(this._demuxer.destroy(),this._demuxer=null),this._remuxer&&(this._remuxer.destroy(),this._remuxer=null),this._emitter.removeAllListeners(),this._emitter=null},_.prototype.on=function(T,D){this._emitter.addListener(T,D)},_.prototype.off=function(T,D){this._emitter.removeListener(T,D)},_.prototype.start=function(){this._loadSegment(0),this._enableStatisticsReporter()},_.prototype._loadSegment=function(T,D){this._currentSegmentIndex=T;var P=this._mediaDataSource.segments[T],M=this._ioctl=new C.default(P,this._config,T);M.onError=this._onIOException.bind(this),M.onSeeked=this._onIOSeeked.bind(this),M.onComplete=this._onIOComplete.bind(this),M.onRedirect=this._onIORedirect.bind(this),M.onRecoveredEarlyEof=this._onIORecoveredEarlyEof.bind(this),D?this._demuxer.bindDataSource(this._ioctl):M.onDataArrival=this._onInitChunkArrival.bind(this),M.open(D)},_.prototype.stop=function(){this._internalAbort(),this._disableStatisticsReporter()},_.prototype._internalAbort=function(){this._ioctl&&(this._ioctl.destroy(),this._ioctl=null)},_.prototype.pause=function(){this._ioctl&&this._ioctl.isWorking()&&(this._ioctl.pause(),this._disableStatisticsReporter())},_.prototype.resume=function(){this._ioctl&&this._ioctl.isPaused()&&(this._ioctl.resume(),this._enableStatisticsReporter())},_.prototype.seek=function(T){if(!(this._mediaInfo==null||!this._mediaInfo.isSeekable())){var D=this._searchSegmentIndexContains(T);if(D===this._currentSegmentIndex){var P=this._mediaInfo.segments[D];if(P==null)this._pendingSeekTime=T;else{var M=P.getNearestKeyframe(T);this._remuxer.seek(M.milliseconds),this._ioctl.seek(M.fileposition),this._pendingResolveSeekPoint=M.milliseconds}}else{var $=this._mediaInfo.segments[D];if($==null)this._pendingSeekTime=T,this._internalAbort(),this._remuxer.seek(),this._remuxer.insertDiscontinuity(),this._loadSegment(D);else{var M=$.getNearestKeyframe(T);this._internalAbort(),this._remuxer.seek(T),this._remuxer.insertDiscontinuity(),this._demuxer.resetMediaInfo(),this._demuxer.timestampBase=this._mediaDataSource.segments[D].timestampBase,this._loadSegment(D,M.fileposition),this._pendingResolveSeekPoint=M.milliseconds,this._reportSegmentMediaInfo(D)}}this._enableStatisticsReporter()}},_.prototype._searchSegmentIndexContains=function(T){for(var D=this._mediaDataSource.segments,P=D.length-1,M=0;M0)this._demuxer.bindDataSource(this._ioctl),this._demuxer.timestampBase=this._mediaDataSource.segments[this._currentSegmentIndex].timestampBase,$=this._demuxer.parseChunks(T,D);else if((M=y.default.probe(T)).match){this._demuxer=new y.default(M,this._config),this._remuxer||(this._remuxer=new S.default(this._config));var L=this._mediaDataSource;L.duration!=null&&!isNaN(L.duration)&&(this._demuxer.overridedDuration=L.duration),typeof L.hasAudio=="boolean"&&(this._demuxer.overridedHasAudio=L.hasAudio),typeof L.hasVideo=="boolean"&&(this._demuxer.overridedHasVideo=L.hasVideo),this._demuxer.timestampBase=L.segments[this._currentSegmentIndex].timestampBase,this._demuxer.onError=this._onDemuxException.bind(this),this._demuxer.onMediaInfo=this._onMediaInfo.bind(this),this._demuxer.onMetaDataArrived=this._onMetaDataArrived.bind(this),this._demuxer.onScriptDataArrived=this._onScriptDataArrived.bind(this),this._remuxer.bindDataSource(this._demuxer.bindDataSource(this._ioctl)),this._remuxer.onInitSegment=this._onRemuxerInitSegmentArrival.bind(this),this._remuxer.onMediaSegment=this._onRemuxerMediaSegmentArrival.bind(this),$=this._demuxer.parseChunks(T,D)}else M=null,p.default.e(this.TAG,"Non-FLV, Unsupported media type!"),Promise.resolve().then(function(){P._internalAbort()}),this._emitter.emit(x.default.DEMUX_ERROR,k.default.FORMAT_UNSUPPORTED,"Non-FLV, Unsupported media type"),$=0;return $},_.prototype._onMediaInfo=function(T){var D=this;this._mediaInfo==null&&(this._mediaInfo=Object.assign({},T),this._mediaInfo.keyframesIndex=null,this._mediaInfo.segments=[],this._mediaInfo.segmentCount=this._mediaDataSource.segments.length,Object.setPrototypeOf(this._mediaInfo,g.default.prototype));var P=Object.assign({},T);Object.setPrototypeOf(P,g.default.prototype),this._mediaInfo.segments[this._currentSegmentIndex]=P,this._reportSegmentMediaInfo(this._currentSegmentIndex),this._pendingSeekTime!=null&&Promise.resolve().then(function(){var M=D._pendingSeekTime;D._pendingSeekTime=null,D.seek(M)})},_.prototype._onMetaDataArrived=function(T){this._emitter.emit(x.default.METADATA_ARRIVED,T)},_.prototype._onScriptDataArrived=function(T){this._emitter.emit(x.default.SCRIPTDATA_ARRIVED,T)},_.prototype._onIOSeeked=function(){this._remuxer.insertDiscontinuity()},_.prototype._onIOComplete=function(T){var D=T,P=D+1;P0&&P[0].originalDts===M&&(M=P[0].pts),this._emitter.emit(x.default.RECOMMEND_SEEKPOINT,M)}},_.prototype._enableStatisticsReporter=function(){this._statisticsReporter==null&&(this._statisticsReporter=self.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval))},_.prototype._disableStatisticsReporter=function(){this._statisticsReporter&&(self.clearInterval(this._statisticsReporter),this._statisticsReporter=null)},_.prototype._reportSegmentMediaInfo=function(T){var D=this._mediaInfo.segments[T],P=Object.assign({},D);P.duration=this._mediaInfo.duration,P.segmentCount=this._mediaInfo.segmentCount,delete P.segments,delete P.keyframesIndex,this._emitter.emit(x.default.MEDIA_INFO,P)},_.prototype._reportStatisticsInfo=function(){var T={};T.url=this._ioctl.currentURL,T.hasRedirect=this._ioctl.hasRedirect,T.hasRedirect&&(T.redirectedURL=this._ioctl.currentRedirectedURL),T.speed=this._ioctl.currentSpeed,T.loaderType=this._ioctl.loaderType,T.currentSegmentIndex=this._currentSegmentIndex,T.totalSegmentCount=this._mediaDataSource.segments.length,this._emitter.emit(x.default.STATISTICS_INFO,T)},_})();l.default=E}),"./src/core/transmuxing-events.js":(function(s,l,c){c.r(l);var d={IO_ERROR:"io_error",DEMUX_ERROR:"demux_error",INIT_SEGMENT:"init_segment",MEDIA_SEGMENT:"media_segment",LOADING_COMPLETE:"loading_complete",RECOVERED_EARLY_EOF:"recovered_early_eof",MEDIA_INFO:"media_info",METADATA_ARRIVED:"metadata_arrived",SCRIPTDATA_ARRIVED:"scriptdata_arrived",STATISTICS_INFO:"statistics_info",RECOMMEND_SEEKPOINT:"recommend_seekpoint"};l.default=d}),"./src/core/transmuxing-worker.js":(function(s,l,c){c.r(l);var d=c("./src/utils/logging-control.js"),h=c("./src/utils/polyfill.js"),p=c("./src/core/transmuxing-controller.js"),v=c("./src/core/transmuxing-events.js"),g=function(y){var S=null,k=F.bind(this);h.default.install(),y.addEventListener("message",function(W){switch(W.data.cmd){case"init":S=new p.default(W.data.param[0],W.data.param[1]),S.on(v.default.IO_ERROR,$.bind(this)),S.on(v.default.DEMUX_ERROR,L.bind(this)),S.on(v.default.INIT_SEGMENT,C.bind(this)),S.on(v.default.MEDIA_SEGMENT,x.bind(this)),S.on(v.default.LOADING_COMPLETE,E.bind(this)),S.on(v.default.RECOVERED_EARLY_EOF,_.bind(this)),S.on(v.default.MEDIA_INFO,T.bind(this)),S.on(v.default.METADATA_ARRIVED,D.bind(this)),S.on(v.default.SCRIPTDATA_ARRIVED,P.bind(this)),S.on(v.default.STATISTICS_INFO,M.bind(this)),S.on(v.default.RECOMMEND_SEEKPOINT,B.bind(this));break;case"destroy":S&&(S.destroy(),S=null),y.postMessage({msg:"destroyed"});break;case"start":S.start();break;case"stop":S.stop();break;case"seek":S.seek(W.data.param);break;case"pause":S.pause();break;case"resume":S.resume();break;case"logging_config":{var U=W.data.param;d.default.applyConfig(U),U.enableCallback===!0?d.default.addLogListener(k):d.default.removeLogListener(k);break}}});function C(W,U){var G={msg:v.default.INIT_SEGMENT,data:{type:W,data:U}};y.postMessage(G,[U.data])}function x(W,U){var G={msg:v.default.MEDIA_SEGMENT,data:{type:W,data:U}};y.postMessage(G,[U.data])}function E(){var W={msg:v.default.LOADING_COMPLETE};y.postMessage(W)}function _(){var W={msg:v.default.RECOVERED_EARLY_EOF};y.postMessage(W)}function T(W){var U={msg:v.default.MEDIA_INFO,data:W};y.postMessage(U)}function D(W){var U={msg:v.default.METADATA_ARRIVED,data:W};y.postMessage(U)}function P(W){var U={msg:v.default.SCRIPTDATA_ARRIVED,data:W};y.postMessage(U)}function M(W){var U={msg:v.default.STATISTICS_INFO,data:W};y.postMessage(U)}function $(W,U){y.postMessage({msg:v.default.IO_ERROR,data:{type:W,info:U}})}function L(W,U){y.postMessage({msg:v.default.DEMUX_ERROR,data:{type:W,info:U}})}function B(W){y.postMessage({msg:v.default.RECOMMEND_SEEKPOINT,data:W})}function F(W,U){y.postMessage({msg:"logcat_callback",data:{type:W,logcat:U}})}};l.default=g}),"./src/demux/amf-parser.js":(function(s,l,c){c.r(l);var d=c("./src/utils/logger.js"),h=c("./src/utils/utf8-conv.js"),p=c("./src/utils/exception.js"),v=(function(){var y=new ArrayBuffer(2);return new DataView(y).setInt16(0,256,!0),new Int16Array(y)[0]===256})(),g=(function(){function y(){}return y.parseScriptData=function(S,k,C){var x={};try{var E=y.parseValue(S,k,C),_=y.parseValue(S,k+E.size,C-E.size);x[E.data]=_.data}catch(T){d.default.e("AMF",T.toString())}return x},y.parseObject=function(S,k,C){if(C<3)throw new p.IllegalStateException("Data not enough when parse ScriptDataObject");var x=y.parseString(S,k,C),E=y.parseValue(S,k+x.size,C-x.size),_=E.objectEnd;return{data:{name:x.data,value:E.data},size:x.size+E.size,objectEnd:_}},y.parseVariable=function(S,k,C){return y.parseObject(S,k,C)},y.parseString=function(S,k,C){if(C<2)throw new p.IllegalStateException("Data not enough when parse String");var x=new DataView(S,k,C),E=x.getUint16(0,!v),_;return E>0?_=(0,h.default)(new Uint8Array(S,k+2,E)):_="",{data:_,size:2+E}},y.parseLongString=function(S,k,C){if(C<4)throw new p.IllegalStateException("Data not enough when parse LongString");var x=new DataView(S,k,C),E=x.getUint32(0,!v),_;return E>0?_=(0,h.default)(new Uint8Array(S,k+4,E)):_="",{data:_,size:4+E}},y.parseDate=function(S,k,C){if(C<10)throw new p.IllegalStateException("Data size invalid when parse Date");var x=new DataView(S,k,C),E=x.getFloat64(0,!v),_=x.getInt16(8,!v);return E+=_*60*1e3,{data:new Date(E),size:10}},y.parseValue=function(S,k,C){if(C<1)throw new p.IllegalStateException("Data not enough when parse Value");var x=new DataView(S,k,C),E=1,_=x.getUint8(0),T,D=!1;try{switch(_){case 0:T=x.getFloat64(1,!v),E+=8;break;case 1:{var P=x.getUint8(1);T=!!P,E+=1;break}case 2:{var M=y.parseString(S,k+1,C-1);T=M.data,E+=M.size;break}case 3:{T={};var $=0;for((x.getUint32(C-4,!v)&16777215)===9&&($=3);E32)throw new d.InvalidArgumentException("ExpGolomb: readBits() bits exceeded max 32bits!");if(v<=this._current_word_bits_left){var g=this._current_word>>>32-v;return this._current_word<<=v,this._current_word_bits_left-=v,g}var y=this._current_word_bits_left?this._current_word:0;y=y>>>32-this._current_word_bits_left;var S=v-this._current_word_bits_left;this._fillCurrentWord();var k=Math.min(S,this._current_word_bits_left),C=this._current_word>>>32-k;return this._current_word<<=k,this._current_word_bits_left-=k,y=y<>>v)!==0)return this._current_word<<=v,this._current_word_bits_left-=v,v;return this._fillCurrentWord(),v+this._skipLeadingZero()},p.prototype.readUEG=function(){var v=this._skipLeadingZero();return this.readBits(v+1)-1},p.prototype.readSEG=function(){var v=this.readUEG();return v&1?v+1>>>1:-1*(v>>>1)},p})();l.default=h}),"./src/demux/flv-demuxer.js":(function(s,l,c){c.r(l);var d=c("./src/utils/logger.js"),h=c("./src/demux/amf-parser.js"),p=c("./src/demux/sps-parser.js"),v=c("./src/demux/demux-errors.js"),g=c("./src/core/media-info.js"),y=c("./src/utils/exception.js");function S(C,x){return C[x]<<24|C[x+1]<<16|C[x+2]<<8|C[x+3]}var k=(function(){function C(x,E){this.TAG="FLVDemuxer",this._config=E,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null,this._dataOffset=x.dataOffset,this._firstParse=!0,this._dispatch=!1,this._hasAudio=x.hasAudioTrack,this._hasVideo=x.hasVideoTrack,this._hasAudioFlagOverrided=!1,this._hasVideoFlagOverrided=!1,this._audioInitialMetadataDispatched=!1,this._videoInitialMetadataDispatched=!1,this._mediaInfo=new g.default,this._mediaInfo.hasAudio=this._hasAudio,this._mediaInfo.hasVideo=this._hasVideo,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._naluLengthSize=4,this._timestampBase=0,this._timescale=1e3,this._duration=0,this._durationOverrided=!1,this._referenceFrameRate={fixed:!0,fps:23.976,fps_num:23976,fps_den:1e3},this._flvSoundRateTable=[5500,11025,22050,44100,48e3],this._mpegSamplingRates=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],this._mpegAudioV10SampleRateTable=[44100,48e3,32e3,0],this._mpegAudioV20SampleRateTable=[22050,24e3,16e3,0],this._mpegAudioV25SampleRateTable=[11025,12e3,8e3,0],this._mpegAudioL1BitRateTable=[0,32,64,96,128,160,192,224,256,288,320,352,384,416,448,-1],this._mpegAudioL2BitRateTable=[0,32,48,56,64,80,96,112,128,160,192,224,256,320,384,-1],this._mpegAudioL3BitRateTable=[0,32,40,48,56,64,80,96,112,128,160,192,224,256,320,-1],this._videoTrack={type:"video",id:1,sequenceNumber:0,samples:[],length:0},this._audioTrack={type:"audio",id:2,sequenceNumber:0,samples:[],length:0},this._littleEndian=(function(){var _=new ArrayBuffer(2);return new DataView(_).setInt16(0,256,!0),new Int16Array(_)[0]===256})()}return C.prototype.destroy=function(){this._mediaInfo=null,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._videoTrack=null,this._audioTrack=null,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null},C.probe=function(x){var E=new Uint8Array(x),_={match:!1};if(E[0]!==70||E[1]!==76||E[2]!==86||E[3]!==1)return _;var T=(E[4]&4)>>>2!==0,D=(E[4]&1)!==0,P=S(E,5);return P<9?_:{match:!0,consumed:P,dataOffset:P,hasAudioTrack:T,hasVideoTrack:D}},C.prototype.bindDataSource=function(x){return x.onDataArrival=this.parseChunks.bind(this),this},Object.defineProperty(C.prototype,"onTrackMetadata",{get:function(){return this._onTrackMetadata},set:function(x){this._onTrackMetadata=x},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"onMediaInfo",{get:function(){return this._onMediaInfo},set:function(x){this._onMediaInfo=x},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"onMetaDataArrived",{get:function(){return this._onMetaDataArrived},set:function(x){this._onMetaDataArrived=x},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"onScriptDataArrived",{get:function(){return this._onScriptDataArrived},set:function(x){this._onScriptDataArrived=x},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"onError",{get:function(){return this._onError},set:function(x){this._onError=x},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"onDataAvailable",{get:function(){return this._onDataAvailable},set:function(x){this._onDataAvailable=x},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"timestampBase",{get:function(){return this._timestampBase},set:function(x){this._timestampBase=x},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"overridedDuration",{get:function(){return this._duration},set:function(x){this._durationOverrided=!0,this._duration=x,this._mediaInfo.duration=x},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"overridedHasAudio",{set:function(x){this._hasAudioFlagOverrided=!0,this._hasAudio=x,this._mediaInfo.hasAudio=x},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"overridedHasVideo",{set:function(x){this._hasVideoFlagOverrided=!0,this._hasVideo=x,this._mediaInfo.hasVideo=x},enumerable:!1,configurable:!0}),C.prototype.resetMediaInfo=function(){this._mediaInfo=new g.default},C.prototype._isInitialMetadataDispatched=function(){return this._hasAudio&&this._hasVideo?this._audioInitialMetadataDispatched&&this._videoInitialMetadataDispatched:this._hasAudio&&!this._hasVideo?this._audioInitialMetadataDispatched:!this._hasAudio&&this._hasVideo?this._videoInitialMetadataDispatched:!1},C.prototype.parseChunks=function(x,E){if(!this._onError||!this._onMediaInfo||!this._onTrackMetadata||!this._onDataAvailable)throw new y.IllegalStateException("Flv: onError & onMediaInfo & onTrackMetadata & onDataAvailable callback must be specified");var _=0,T=this._littleEndian;if(E===0)if(x.byteLength>13){var D=C.probe(x);_=D.dataOffset}else return 0;if(this._firstParse){this._firstParse=!1,E+_!==this._dataOffset&&d.default.w(this.TAG,"First time parsing but chunk byteStart invalid!");var P=new DataView(x,_),M=P.getUint32(0,!T);M!==0&&d.default.w(this.TAG,"PrevTagSize0 !== 0 !!!"),_+=4}for(;_x.byteLength)break;var $=P.getUint8(0),L=P.getUint32(0,!T)&16777215;if(_+11+L+4>x.byteLength)break;if($!==8&&$!==9&&$!==18){d.default.w(this.TAG,"Unsupported tag type "+$+", skipped"),_+=11+L+4;continue}var B=P.getUint8(4),F=P.getUint8(5),W=P.getUint8(6),U=P.getUint8(7),G=W|F<<8|B<<16|U<<24,X=P.getUint32(7,!T)&16777215;X!==0&&d.default.w(this.TAG,"Meet tag which has StreamID != 0!");var oe=_+11;switch($){case 8:this._parseAudioData(x,oe,L,G);break;case 9:this._parseVideoData(x,oe,L,G,E+_);break;case 18:this._parseScriptData(x,oe,L);break}var Z=P.getUint32(11+L,!T);Z!==11+L&&d.default.w(this.TAG,"Invalid PrevTagSize "+Z),_+=11+L+4}return this._isInitialMetadataDispatched()&&this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack),_},C.prototype._parseScriptData=function(x,E,_){var T=h.default.parseScriptData(x,E,_);if(T.hasOwnProperty("onMetaData")){if(T.onMetaData==null||typeof T.onMetaData!="object"){d.default.w(this.TAG,"Invalid onMetaData structure!");return}this._metadata&&d.default.w(this.TAG,"Found another onMetaData tag!"),this._metadata=T;var D=this._metadata.onMetaData;if(this._onMetaDataArrived&&this._onMetaDataArrived(Object.assign({},D)),typeof D.hasAudio=="boolean"&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=D.hasAudio,this._mediaInfo.hasAudio=this._hasAudio),typeof D.hasVideo=="boolean"&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=D.hasVideo,this._mediaInfo.hasVideo=this._hasVideo),typeof D.audiodatarate=="number"&&(this._mediaInfo.audioDataRate=D.audiodatarate),typeof D.videodatarate=="number"&&(this._mediaInfo.videoDataRate=D.videodatarate),typeof D.width=="number"&&(this._mediaInfo.width=D.width),typeof D.height=="number"&&(this._mediaInfo.height=D.height),typeof D.duration=="number"){if(!this._durationOverrided){var P=Math.floor(D.duration*this._timescale);this._duration=P,this._mediaInfo.duration=P}}else this._mediaInfo.duration=0;if(typeof D.framerate=="number"){var M=Math.floor(D.framerate*1e3);if(M>0){var $=M/1e3;this._referenceFrameRate.fixed=!0,this._referenceFrameRate.fps=$,this._referenceFrameRate.fps_num=M,this._referenceFrameRate.fps_den=1e3,this._mediaInfo.fps=$}}if(typeof D.keyframes=="object"){this._mediaInfo.hasKeyframesIndex=!0;var L=D.keyframes;this._mediaInfo.keyframesIndex=this._parseKeyframesIndex(L),D.keyframes=null}else this._mediaInfo.hasKeyframesIndex=!1;this._dispatch=!1,this._mediaInfo.metadata=D,d.default.v(this.TAG,"Parsed onMetaData"),this._mediaInfo.isComplete()&&this._onMediaInfo(this._mediaInfo)}Object.keys(T).length>0&&this._onScriptDataArrived&&this._onScriptDataArrived(Object.assign({},T))},C.prototype._parseKeyframesIndex=function(x){for(var E=[],_=[],T=1;T>>4;if(M!==2&&M!==10){this._onError(v.default.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec idx: "+M);return}var $=0,L=(P&12)>>>2;if(L>=0&&L<=4)$=this._flvSoundRateTable[L];else{this._onError(v.default.FORMAT_ERROR,"Flv: Invalid audio sample rate idx: "+L);return}var B=P&1,F=this._audioMetadata,W=this._audioTrack;if(F||(this._hasAudio===!1&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=!0,this._mediaInfo.hasAudio=!0),F=this._audioMetadata={},F.type="audio",F.id=W.id,F.timescale=this._timescale,F.duration=this._duration,F.audioSampleRate=$,F.channelCount=B===0?1:2),M===10){var U=this._parseAACAudioData(x,E+1,_-1);if(U==null)return;if(U.packetType===0){F.config&&d.default.w(this.TAG,"Found another AudioSpecificConfig!");var G=U.data;F.audioSampleRate=G.samplingRate,F.channelCount=G.channelCount,F.codec=G.codec,F.originalCodec=G.originalCodec,F.config=G.config,F.refSampleDuration=1024/F.audioSampleRate*F.timescale,d.default.v(this.TAG,"Parsed AudioSpecificConfig"),this._isInitialMetadataDispatched()?this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack):this._audioInitialMetadataDispatched=!0,this._dispatch=!1,this._onTrackMetadata("audio",F);var X=this._mediaInfo;X.audioCodec=F.originalCodec,X.audioSampleRate=F.audioSampleRate,X.audioChannelCount=F.channelCount,X.hasVideo?X.videoCodec!=null&&(X.mimeType='video/x-flv; codecs="'+X.videoCodec+","+X.audioCodec+'"'):X.mimeType='video/x-flv; codecs="'+X.audioCodec+'"',X.isComplete()&&this._onMediaInfo(X)}else if(U.packetType===1){var oe=this._timestampBase+T,Z={unit:U.data,length:U.data.byteLength,dts:oe,pts:oe};W.samples.push(Z),W.length+=U.data.length}else d.default.e(this.TAG,"Flv: Unsupported AAC data type "+U.packetType)}else if(M===2){if(!F.codec){var G=this._parseMP3AudioData(x,E+1,_-1,!0);if(G==null)return;F.audioSampleRate=G.samplingRate,F.channelCount=G.channelCount,F.codec=G.codec,F.originalCodec=G.originalCodec,F.refSampleDuration=1152/F.audioSampleRate*F.timescale,d.default.v(this.TAG,"Parsed MPEG Audio Frame Header"),this._audioInitialMetadataDispatched=!0,this._onTrackMetadata("audio",F);var X=this._mediaInfo;X.audioCodec=F.codec,X.audioSampleRate=F.audioSampleRate,X.audioChannelCount=F.channelCount,X.audioDataRate=G.bitRate,X.hasVideo?X.videoCodec!=null&&(X.mimeType='video/x-flv; codecs="'+X.videoCodec+","+X.audioCodec+'"'):X.mimeType='video/x-flv; codecs="'+X.audioCodec+'"',X.isComplete()&&this._onMediaInfo(X)}var H=this._parseMP3AudioData(x,E+1,_-1,!1);if(H==null)return;var oe=this._timestampBase+T,q={unit:H,length:H.byteLength,dts:oe,pts:oe};W.samples.push(q),W.length+=H.length}}},C.prototype._parseAACAudioData=function(x,E,_){if(_<=1){d.default.w(this.TAG,"Flv: Invalid AAC packet, missing AACPacketType or/and Data!");return}var T={},D=new Uint8Array(x,E,_);return T.packetType=D[0],D[0]===0?T.data=this._parseAACAudioSpecificConfig(x,E+1,_-1):T.data=D.subarray(1),T},C.prototype._parseAACAudioSpecificConfig=function(x,E,_){var T=new Uint8Array(x,E,_),D=null,P=0,M=0,$=0,L=null;if(P=M=T[0]>>>3,$=(T[0]&7)<<1|T[1]>>>7,$<0||$>=this._mpegSamplingRates.length){this._onError(v.default.FORMAT_ERROR,"Flv: AAC invalid sampling frequency index!");return}var B=this._mpegSamplingRates[$],F=(T[1]&120)>>>3;if(F<0||F>=8){this._onError(v.default.FORMAT_ERROR,"Flv: AAC invalid channel configuration");return}P===5&&(L=(T[1]&7)<<1|T[2]>>>7,(T[2]&124)>>>2);var W=self.navigator.userAgent.toLowerCase();return W.indexOf("firefox")!==-1?$>=6?(P=5,D=new Array(4),L=$-3):(P=2,D=new Array(2),L=$):W.indexOf("android")!==-1?(P=2,D=new Array(2),L=$):(P=5,L=$,D=new Array(4),$>=6?L=$-3:F===1&&(P=2,D=new Array(2),L=$)),D[0]=P<<3,D[0]|=($&15)>>>1,D[1]=($&15)<<7,D[1]|=(F&15)<<3,P===5&&(D[1]|=(L&15)>>>1,D[2]=(L&1)<<7,D[2]|=8,D[3]=0),{config:D,samplingRate:B,channelCount:F,codec:"mp4a.40."+P,originalCodec:"mp4a.40."+M}},C.prototype._parseMP3AudioData=function(x,E,_,T){if(_<4){d.default.w(this.TAG,"Flv: Invalid MP3 packet, header missing!");return}this._littleEndian;var D=new Uint8Array(x,E,_),P=null;if(T){if(D[0]!==255)return;var M=D[1]>>>3&3,$=(D[1]&6)>>1,L=(D[2]&240)>>>4,B=(D[2]&12)>>>2,F=D[3]>>>6&3,W=F!==3?2:1,U=0,G=0,X="mp3";switch(M){case 0:U=this._mpegAudioV25SampleRateTable[B];break;case 2:U=this._mpegAudioV20SampleRateTable[B];break;case 3:U=this._mpegAudioV10SampleRateTable[B];break}switch($){case 1:L>>4,$=P&15;if($!==7){this._onError(v.default.CODEC_UNSUPPORTED,"Flv: Unsupported codec in video frame: "+$);return}this._parseAVCVideoPacket(x,E+1,_-1,T,D,M)}},C.prototype._parseAVCVideoPacket=function(x,E,_,T,D,P){if(_<4){d.default.w(this.TAG,"Flv: Invalid AVC packet, missing AVCPacketType or/and CompositionTime");return}var M=this._littleEndian,$=new DataView(x,E,_),L=$.getUint8(0),B=$.getUint32(0,!M)&16777215,F=B<<8>>8;if(L===0)this._parseAVCDecoderConfigurationRecord(x,E+4,_-4);else if(L===1)this._parseAVCVideoData(x,E+4,_-4,T,D,P,F);else if(L!==2){this._onError(v.default.FORMAT_ERROR,"Flv: Invalid video packet type "+L);return}},C.prototype._parseAVCDecoderConfigurationRecord=function(x,E,_){if(_<7){d.default.w(this.TAG,"Flv: Invalid AVCDecoderConfigurationRecord, lack of data!");return}var T=this._videoMetadata,D=this._videoTrack,P=this._littleEndian,M=new DataView(x,E,_);T?typeof T.avcc<"u"&&d.default.w(this.TAG,"Found another AVCDecoderConfigurationRecord!"):(this._hasVideo===!1&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=!0,this._mediaInfo.hasVideo=!0),T=this._videoMetadata={},T.type="video",T.id=D.id,T.timescale=this._timescale,T.duration=this._duration);var $=M.getUint8(0),L=M.getUint8(1);if(M.getUint8(2),M.getUint8(3),$!==1||L===0){this._onError(v.default.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord");return}if(this._naluLengthSize=(M.getUint8(4)&3)+1,this._naluLengthSize!==3&&this._naluLengthSize!==4){this._onError(v.default.FORMAT_ERROR,"Flv: Strange NaluLengthSizeMinusOne: "+(this._naluLengthSize-1));return}var B=M.getUint8(5)&31;if(B===0){this._onError(v.default.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No SPS");return}else B>1&&d.default.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: SPS Count = "+B);for(var F=6,W=0;W1&&d.default.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: PPS Count = "+re);F++;for(var W=0;W=_){d.default.w(this.TAG,"Malformed Nalu near timestamp "+G+", offset = "+W+", dataSize = "+_);break}var oe=L.getUint32(W,!$);if(U===3&&(oe>>>=8),oe>_-U){d.default.w(this.TAG,"Malformed Nalus near timestamp "+G+", NaluSize > DataSize!");return}var Z=L.getUint8(W+U)&31;Z===5&&(X=!0);var H=new Uint8Array(x,E+W,U+oe),q={type:Z,data:H};B.push(q),F+=H.byteLength,W+=U+oe}if(B.length){var ee=this._videoTrack,ne={units:B,length:F,isKeyframe:X,dts:G,cts:M,pts:G+M};X&&(ne.fileposition=D),ee.samples.push(ne),ee.length+=F}},C})();l.default=k}),"./src/demux/sps-parser.js":(function(s,l,c){c.r(l);var d=c("./src/demux/exp-golomb.js"),h=(function(){function p(){}return p._ebsp2rbsp=function(v){for(var g=v,y=g.byteLength,S=new Uint8Array(y),k=0,C=0;C=2&&g[C]===3&&g[C-1]===0&&g[C-2]===0||(S[k]=g[C],k++);return new Uint8Array(S.buffer,0,k)},p.parseSPS=function(v){var g=p._ebsp2rbsp(v),y=new d.default(g);y.readByte();var S=y.readByte();y.readByte();var k=y.readByte();y.readUEG();var C=p.getProfileString(S),x=p.getLevelString(k),E=1,_=420,T=[0,420,422,444],D=8;if((S===100||S===110||S===122||S===244||S===44||S===83||S===86||S===118||S===128||S===138||S===144)&&(E=y.readUEG(),E===3&&y.readBits(1),E<=3&&(_=T[E]),D=y.readUEG()+8,y.readUEG(),y.readBits(1),y.readBool()))for(var P=E!==3?8:12,M=0;M0&&me<16?(q=_e[me-1],ee=Ue[me-1]):me===255&&(q=y.readByte()<<8|y.readByte(),ee=y.readByte()<<8|y.readByte())}if(y.readBool()&&y.readBool(),y.readBool()&&(y.readBits(4),y.readBool()&&y.readBits(24)),y.readBool()&&(y.readUEG(),y.readUEG()),y.readBool()){var Qe=y.readBits(32),Me=y.readBits(32);ae=y.readBool(),re=Me,ke=Qe*2,ne=re/ke}}var je=1;(q!==1||ee!==1)&&(je=q/ee);var ge=0,be=0;if(E===0)ge=1,be=2-U;else{var Fe=E===3?1:2,He=E===1?2:1;ge=Fe,be=He*(2-U)}var Je=(F+1)*16,rt=(2-U)*((W+1)*16);Je-=(G+X)*ge,rt-=(oe+Z)*be;var ht=Math.ceil(Je*je);return y.destroy(),y=null,{profile_string:C,level_string:x,bit_depth:D,ref_frames:B,chroma_format:_,chroma_format_string:p.getChromaFormatString(_),frame_rate:{fixed:ae,fps:ne,fps_den:ke,fps_num:re},sar_ratio:{width:q,height:ee},codec_size:{width:Je,height:rt},present_size:{width:ht,height:rt}}},p._skipScalingList=function(v,g){for(var y=8,S=8,k=0,C=0;C=15048,C=d.default.msedge?k:!0;return self.fetch&&self.ReadableStream&&C}catch{return!1}},S.prototype.destroy=function(){this.isWorking()&&this.abort(),y.prototype.destroy.call(this)},S.prototype.open=function(k,C){var x=this;this._dataSource=k,this._range=C;var E=k.url;this._config.reuseRedirectedURL&&k.redirectedURL!=null&&(E=k.redirectedURL);var _=this._seekHandler.getConfig(E,C),T=new self.Headers;if(typeof _.headers=="object"){var D=_.headers;for(var P in D)D.hasOwnProperty(P)&&T.append(P,D[P])}var M={method:"GET",headers:T,mode:"cors",cache:"default",referrerPolicy:"no-referrer-when-downgrade"};if(typeof this._config.headers=="object")for(var P in this._config.headers)T.append(P,this._config.headers[P]);k.cors===!1&&(M.mode="same-origin"),k.withCredentials&&(M.credentials="include"),k.referrerPolicy&&(M.referrerPolicy=k.referrerPolicy),self.AbortController&&(this._abortController=new self.AbortController,M.signal=this._abortController.signal),this._status=h.LoaderStatus.kConnecting,self.fetch(_.url,M).then(function($){if(x._requestAbort){x._status=h.LoaderStatus.kIdle,$.body.cancel();return}if($.ok&&$.status>=200&&$.status<=299){if($.url!==_.url&&x._onURLRedirect){var L=x._seekHandler.removeURLParameters($.url);x._onURLRedirect(L)}var B=$.headers.get("Content-Length");return B!=null&&(x._contentLength=parseInt(B),x._contentLength!==0&&x._onContentLengthKnown&&x._onContentLengthKnown(x._contentLength)),x._pump.call(x,$.body.getReader())}else if(x._status=h.LoaderStatus.kError,x._onError)x._onError(h.LoaderErrors.HTTP_STATUS_CODE_INVALID,{code:$.status,msg:$.statusText});else throw new p.RuntimeException("FetchStreamLoader: Http code invalid, "+$.status+" "+$.statusText)}).catch(function($){if(!(x._abortController&&x._abortController.signal.aborted))if(x._status=h.LoaderStatus.kError,x._onError)x._onError(h.LoaderErrors.EXCEPTION,{code:-1,msg:$.message});else throw $})},S.prototype.abort=function(){if(this._requestAbort=!0,(this._status!==h.LoaderStatus.kBuffering||!d.default.chrome)&&this._abortController)try{this._abortController.abort()}catch{}},S.prototype._pump=function(k){var C=this;return k.read().then(function(x){if(x.done)if(C._contentLength!==null&&C._receivedLength0&&(this._stashInitialSize=D.stashInitialSize),this._stashUsed=0,this._stashSize=this._stashInitialSize,this._bufferSize=1024*1024*3,this._stashBuffer=new ArrayBuffer(this._bufferSize),this._stashByteStart=0,this._enableStash=!0,D.enableStashBuffer===!1&&(this._enableStash=!1),this._loader=null,this._loaderClass=null,this._seekHandler=null,this._dataSource=T,this._isWebSocketURL=/wss?:\/\/(.+?)/.test(T.url),this._refTotalLength=T.filesize?T.filesize:null,this._totalLength=this._refTotalLength,this._fullRequestFlag=!1,this._currentRange=null,this._redirectedURL=null,this._speedNormalized=0,this._speedSampler=new h.default,this._speedNormalizeList=[64,128,256,384,512,768,1024,1536,2048,3072,4096],this._isEarlyEofReconnecting=!1,this._paused=!1,this._resumeFrom=0,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._selectSeekHandler(),this._selectLoader(),this._createLoader()}return _.prototype.destroy=function(){this._loader.isWorking()&&this._loader.abort(),this._loader.destroy(),this._loader=null,this._loaderClass=null,this._dataSource=null,this._stashBuffer=null,this._stashUsed=this._stashSize=this._bufferSize=this._stashByteStart=0,this._currentRange=null,this._speedSampler=null,this._isEarlyEofReconnecting=!1,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._extraData=null},_.prototype.isWorking=function(){return this._loader&&this._loader.isWorking()&&!this._paused},_.prototype.isPaused=function(){return this._paused},Object.defineProperty(_.prototype,"status",{get:function(){return this._loader.status},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"extraData",{get:function(){return this._extraData},set:function(T){this._extraData=T},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onDataArrival",{get:function(){return this._onDataArrival},set:function(T){this._onDataArrival=T},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onSeeked",{get:function(){return this._onSeeked},set:function(T){this._onSeeked=T},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onError",{get:function(){return this._onError},set:function(T){this._onError=T},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onComplete",{get:function(){return this._onComplete},set:function(T){this._onComplete=T},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onRedirect",{get:function(){return this._onRedirect},set:function(T){this._onRedirect=T},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onRecoveredEarlyEof",{get:function(){return this._onRecoveredEarlyEof},set:function(T){this._onRecoveredEarlyEof=T},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"currentURL",{get:function(){return this._dataSource.url},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"hasRedirect",{get:function(){return this._redirectedURL!=null||this._dataSource.redirectedURL!=null},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"currentRedirectedURL",{get:function(){return this._redirectedURL||this._dataSource.redirectedURL},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"currentSpeed",{get:function(){return this._loaderClass===y.default?this._loader.currentSpeed:this._speedSampler.lastSecondKBps},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"loaderType",{get:function(){return this._loader.type},enumerable:!1,configurable:!0}),_.prototype._selectSeekHandler=function(){var T=this._config;if(T.seekType==="range")this._seekHandler=new k.default(this._config.rangeLoadZeroStart);else if(T.seekType==="param"){var D=T.seekParamStart||"bstart",P=T.seekParamEnd||"bend";this._seekHandler=new C.default(D,P)}else if(T.seekType==="custom"){if(typeof T.customSeekHandler!="function")throw new x.InvalidArgumentException("Custom seekType specified in config but invalid customSeekHandler!");this._seekHandler=new T.customSeekHandler}else throw new x.InvalidArgumentException("Invalid seekType in config: "+T.seekType)},_.prototype._selectLoader=function(){if(this._config.customLoader!=null)this._loaderClass=this._config.customLoader;else if(this._isWebSocketURL)this._loaderClass=S.default;else if(v.default.isSupported())this._loaderClass=v.default;else if(g.default.isSupported())this._loaderClass=g.default;else if(y.default.isSupported())this._loaderClass=y.default;else throw new x.RuntimeException("Your browser doesn't support xhr with arraybuffer responseType!")},_.prototype._createLoader=function(){this._loader=new this._loaderClass(this._seekHandler,this._config),this._loader.needStashBuffer===!1&&(this._enableStash=!1),this._loader.onContentLengthKnown=this._onContentLengthKnown.bind(this),this._loader.onURLRedirect=this._onURLRedirect.bind(this),this._loader.onDataArrival=this._onLoaderChunkArrival.bind(this),this._loader.onComplete=this._onLoaderComplete.bind(this),this._loader.onError=this._onLoaderError.bind(this)},_.prototype.open=function(T){this._currentRange={from:0,to:-1},T&&(this._currentRange.from=T),this._speedSampler.reset(),T||(this._fullRequestFlag=!0),this._loader.open(this._dataSource,Object.assign({},this._currentRange))},_.prototype.abort=function(){this._loader.abort(),this._paused&&(this._paused=!1,this._resumeFrom=0)},_.prototype.pause=function(){this.isWorking()&&(this._loader.abort(),this._stashUsed!==0?(this._resumeFrom=this._stashByteStart,this._currentRange.to=this._stashByteStart-1):this._resumeFrom=this._currentRange.to+1,this._stashUsed=0,this._stashByteStart=0,this._paused=!0)},_.prototype.resume=function(){if(this._paused){this._paused=!1;var T=this._resumeFrom;this._resumeFrom=0,this._internalSeek(T,!0)}},_.prototype.seek=function(T){this._paused=!1,this._stashUsed=0,this._stashByteStart=0,this._internalSeek(T,!0)},_.prototype._internalSeek=function(T,D){this._loader.isWorking()&&this._loader.abort(),this._flushStashBuffer(D),this._loader.destroy(),this._loader=null;var P={from:T,to:-1};this._currentRange={from:P.from,to:-1},this._speedSampler.reset(),this._stashSize=this._stashInitialSize,this._createLoader(),this._loader.open(this._dataSource,P),this._onSeeked&&this._onSeeked()},_.prototype.updateUrl=function(T){if(!T||typeof T!="string"||T.length===0)throw new x.InvalidArgumentException("Url must be a non-empty string!");this._dataSource.url=T},_.prototype._expandBuffer=function(T){for(var D=this._stashSize;D+1024*1024*10){var M=new Uint8Array(this._stashBuffer,0,this._stashUsed),$=new Uint8Array(P,0,D);$.set(M,0)}this._stashBuffer=P,this._bufferSize=D}},_.prototype._normalizeSpeed=function(T){var D=this._speedNormalizeList,P=D.length-1,M=0,$=0,L=P;if(T=D[M]&&T=512&&T<=1024?D=Math.floor(T*1.5):D=T*2,D>8192&&(D=8192);var P=D*1024+1024*1024*1;this._bufferSize0){var U=this._stashBuffer.slice(0,this._stashUsed),L=this._dispatchChunks(U,this._stashByteStart);if(L0){var W=new Uint8Array(U,L);F.set(W,0),this._stashUsed=W.byteLength,this._stashByteStart+=L}}else this._stashUsed=0,this._stashByteStart+=L;this._stashUsed+T.byteLength>this._bufferSize&&(this._expandBuffer(this._stashUsed+T.byteLength),F=new Uint8Array(this._stashBuffer,0,this._bufferSize)),F.set(new Uint8Array(T),this._stashUsed),this._stashUsed+=T.byteLength}else{var L=this._dispatchChunks(T,D);if(Lthis._bufferSize&&(this._expandBuffer(B),F=new Uint8Array(this._stashBuffer,0,this._bufferSize)),F.set(new Uint8Array(T,L),0),this._stashUsed+=B,this._stashByteStart=D+L}}}else if(this._stashUsed===0){var L=this._dispatchChunks(T,D);if(Lthis._bufferSize&&this._expandBuffer(B);var F=new Uint8Array(this._stashBuffer,0,this._bufferSize);F.set(new Uint8Array(T,L),0),this._stashUsed+=B,this._stashByteStart=D+L}}else{this._stashUsed+T.byteLength>this._bufferSize&&this._expandBuffer(this._stashUsed+T.byteLength);var F=new Uint8Array(this._stashBuffer,0,this._bufferSize);F.set(new Uint8Array(T),this._stashUsed),this._stashUsed+=T.byteLength;var L=this._dispatchChunks(this._stashBuffer.slice(0,this._stashUsed),this._stashByteStart);if(L0){var W=new Uint8Array(this._stashBuffer,L);F.set(W,0)}this._stashUsed-=L,this._stashByteStart+=L}}},_.prototype._flushStashBuffer=function(T){if(this._stashUsed>0){var D=this._stashBuffer.slice(0,this._stashUsed),P=this._dispatchChunks(D,this._stashByteStart),M=D.byteLength-P;if(P0){var $=new Uint8Array(this._stashBuffer,0,this._bufferSize),L=new Uint8Array(D,P);$.set(L,0),this._stashUsed=L.byteLength,this._stashByteStart+=P}return 0}return this._stashUsed=0,this._stashByteStart=0,M}return 0},_.prototype._onLoaderComplete=function(T,D){this._flushStashBuffer(!0),this._onComplete&&this._onComplete(this._extraData)},_.prototype._onLoaderError=function(T,D){switch(d.default.e(this.TAG,"Loader error, code = "+D.code+", msg = "+D.msg),this._flushStashBuffer(!1),this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,T=p.LoaderErrors.UNRECOVERABLE_EARLY_EOF),T){case p.LoaderErrors.EARLY_EOF:{if(!this._config.isLive&&this._totalLength){var P=this._currentRange.to+1;P0)for(var k=g.split("&"),C=0;C0;x[0]!==this._startName&&x[0]!==this._endName&&(E&&(S+="&"),S+=k[C])}return S.length===0?v:v+"?"+S},h})();l.default=d}),"./src/io/range-seek-handler.js":(function(s,l,c){c.r(l);var d=(function(){function h(p){this._zeroStart=p||!1}return h.prototype.getConfig=function(p,v){var g={};if(v.from!==0||v.to!==-1){var y=void 0;v.to!==-1?y="bytes="+v.from.toString()+"-"+v.to.toString():y="bytes="+v.from.toString()+"-",g.Range=y}else this._zeroStart&&(g.Range="bytes=0-");return{url:p,headers:g}},h.prototype.removeURLParameters=function(p){return p},h})();l.default=d}),"./src/io/speed-sampler.js":(function(s,l,c){c.r(l);var d=(function(){function h(){this._firstCheckpoint=0,this._lastCheckpoint=0,this._intervalBytes=0,this._totalBytes=0,this._lastSecondBytes=0,self.performance&&self.performance.now?this._now=self.performance.now.bind(self.performance):this._now=Date.now}return h.prototype.reset=function(){this._firstCheckpoint=this._lastCheckpoint=0,this._totalBytes=this._intervalBytes=0,this._lastSecondBytes=0},h.prototype.addBytes=function(p){this._firstCheckpoint===0?(this._firstCheckpoint=this._now(),this._lastCheckpoint=this._firstCheckpoint,this._intervalBytes+=p,this._totalBytes+=p):this._now()-this._lastCheckpoint<1e3?(this._intervalBytes+=p,this._totalBytes+=p):(this._lastSecondBytes=this._intervalBytes,this._intervalBytes=p,this._totalBytes+=p,this._lastCheckpoint=this._now())},Object.defineProperty(h.prototype,"currentKBps",{get:function(){this.addBytes(0);var p=(this._now()-this._lastCheckpoint)/1e3;return p==0&&(p=1),this._intervalBytes/p/1024},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"lastSecondKBps",{get:function(){return this.addBytes(0),this._lastSecondBytes!==0?this._lastSecondBytes/1024:this._now()-this._lastCheckpoint>=500?this.currentKBps:0},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"averageKBps",{get:function(){var p=(this._now()-this._firstCheckpoint)/1e3;return this._totalBytes/p/1024},enumerable:!1,configurable:!0}),h})();l.default=d}),"./src/io/websocket-loader.js":(function(s,l,c){c.r(l);var d=c("./src/io/loader.js"),h=c("./src/utils/exception.js"),p=(function(){var g=function(y,S){return g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(k,C){k.__proto__=C}||function(k,C){for(var x in C)Object.prototype.hasOwnProperty.call(C,x)&&(k[x]=C[x])},g(y,S)};return function(y,S){if(typeof S!="function"&&S!==null)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");g(y,S);function k(){this.constructor=y}y.prototype=S===null?Object.create(S):(k.prototype=S.prototype,new k)}})(),v=(function(g){p(y,g);function y(){var S=g.call(this,"websocket-loader")||this;return S.TAG="WebSocketLoader",S._needStash=!0,S._ws=null,S._requestAbort=!1,S._receivedLength=0,S}return y.isSupported=function(){try{return typeof self.WebSocket<"u"}catch{return!1}},y.prototype.destroy=function(){this._ws&&this.abort(),g.prototype.destroy.call(this)},y.prototype.open=function(S){try{var k=this._ws=new self.WebSocket(S.url);k.binaryType="arraybuffer",k.onopen=this._onWebSocketOpen.bind(this),k.onclose=this._onWebSocketClose.bind(this),k.onmessage=this._onWebSocketMessage.bind(this),k.onerror=this._onWebSocketError.bind(this),this._status=d.LoaderStatus.kConnecting}catch(x){this._status=d.LoaderStatus.kError;var C={code:x.code,msg:x.message};if(this._onError)this._onError(d.LoaderErrors.EXCEPTION,C);else throw new h.RuntimeException(C.msg)}},y.prototype.abort=function(){var S=this._ws;S&&(S.readyState===0||S.readyState===1)&&(this._requestAbort=!0,S.close()),this._ws=null,this._status=d.LoaderStatus.kComplete},y.prototype._onWebSocketOpen=function(S){this._status=d.LoaderStatus.kBuffering},y.prototype._onWebSocketClose=function(S){if(this._requestAbort===!0){this._requestAbort=!1;return}this._status=d.LoaderStatus.kComplete,this._onComplete&&this._onComplete(0,this._receivedLength-1)},y.prototype._onWebSocketMessage=function(S){var k=this;if(S.data instanceof ArrayBuffer)this._dispatchArrayBuffer(S.data);else if(S.data instanceof Blob){var C=new FileReader;C.onload=function(){k._dispatchArrayBuffer(C.result)},C.readAsArrayBuffer(S.data)}else{this._status=d.LoaderStatus.kError;var x={code:-1,msg:"Unsupported WebSocket message type: "+S.data.constructor.name};if(this._onError)this._onError(d.LoaderErrors.EXCEPTION,x);else throw new h.RuntimeException(x.msg)}},y.prototype._dispatchArrayBuffer=function(S){var k=S,C=this._receivedLength;this._receivedLength+=k.byteLength,this._onDataArrival&&this._onDataArrival(k,C,this._receivedLength)},y.prototype._onWebSocketError=function(S){this._status=d.LoaderStatus.kError;var k={code:S.code,msg:S.message};if(this._onError)this._onError(d.LoaderErrors.EXCEPTION,k);else throw new h.RuntimeException(k.msg)},y})(d.BaseLoader);l.default=v}),"./src/io/xhr-moz-chunked-loader.js":(function(s,l,c){c.r(l);var d=c("./src/utils/logger.js"),h=c("./src/io/loader.js"),p=c("./src/utils/exception.js"),v=(function(){var y=function(S,k){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,x){C.__proto__=x}||function(C,x){for(var E in x)Object.prototype.hasOwnProperty.call(x,E)&&(C[E]=x[E])},y(S,k)};return function(S,k){if(typeof k!="function"&&k!==null)throw new TypeError("Class extends value "+String(k)+" is not a constructor or null");y(S,k);function C(){this.constructor=S}S.prototype=k===null?Object.create(k):(C.prototype=k.prototype,new C)}})(),g=(function(y){v(S,y);function S(k,C){var x=y.call(this,"xhr-moz-chunked-loader")||this;return x.TAG="MozChunkedLoader",x._seekHandler=k,x._config=C,x._needStash=!0,x._xhr=null,x._requestAbort=!1,x._contentLength=null,x._receivedLength=0,x}return S.isSupported=function(){try{var k=new XMLHttpRequest;return k.open("GET","https://example.com",!0),k.responseType="moz-chunked-arraybuffer",k.responseType==="moz-chunked-arraybuffer"}catch(C){return d.default.w("MozChunkedLoader",C.message),!1}},S.prototype.destroy=function(){this.isWorking()&&this.abort(),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onloadend=null,this._xhr.onerror=null,this._xhr=null),y.prototype.destroy.call(this)},S.prototype.open=function(k,C){this._dataSource=k,this._range=C;var x=k.url;this._config.reuseRedirectedURL&&k.redirectedURL!=null&&(x=k.redirectedURL);var E=this._seekHandler.getConfig(x,C);this._requestURL=E.url;var _=this._xhr=new XMLHttpRequest;if(_.open("GET",E.url,!0),_.responseType="moz-chunked-arraybuffer",_.onreadystatechange=this._onReadyStateChange.bind(this),_.onprogress=this._onProgress.bind(this),_.onloadend=this._onLoadEnd.bind(this),_.onerror=this._onXhrError.bind(this),k.withCredentials&&(_.withCredentials=!0),typeof E.headers=="object"){var T=E.headers;for(var D in T)T.hasOwnProperty(D)&&_.setRequestHeader(D,T[D])}if(typeof this._config.headers=="object"){var T=this._config.headers;for(var D in T)T.hasOwnProperty(D)&&_.setRequestHeader(D,T[D])}this._status=h.LoaderStatus.kConnecting,_.send()},S.prototype.abort=function(){this._requestAbort=!0,this._xhr&&this._xhr.abort(),this._status=h.LoaderStatus.kComplete},S.prototype._onReadyStateChange=function(k){var C=k.target;if(C.readyState===2){if(C.responseURL!=null&&C.responseURL!==this._requestURL&&this._onURLRedirect){var x=this._seekHandler.removeURLParameters(C.responseURL);this._onURLRedirect(x)}if(C.status!==0&&(C.status<200||C.status>299))if(this._status=h.LoaderStatus.kError,this._onError)this._onError(h.LoaderErrors.HTTP_STATUS_CODE_INVALID,{code:C.status,msg:C.statusText});else throw new p.RuntimeException("MozChunkedLoader: Http code invalid, "+C.status+" "+C.statusText);else this._status=h.LoaderStatus.kBuffering}},S.prototype._onProgress=function(k){if(this._status!==h.LoaderStatus.kError){this._contentLength===null&&k.total!==null&&k.total!==0&&(this._contentLength=k.total,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength));var C=k.target.response,x=this._range.from+this._receivedLength;this._receivedLength+=C.byteLength,this._onDataArrival&&this._onDataArrival(C,x,this._receivedLength)}},S.prototype._onLoadEnd=function(k){if(this._requestAbort===!0){this._requestAbort=!1;return}else if(this._status===h.LoaderStatus.kError)return;this._status=h.LoaderStatus.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1)},S.prototype._onXhrError=function(k){this._status=h.LoaderStatus.kError;var C=0,x=null;if(this._contentLength&&k.loaded=this._contentLength&&(E=this._range.from+this._contentLength-1),this._currentRequestRange={from:x,to:E},this._internalOpen(this._dataSource,this._currentRequestRange)},k.prototype._internalOpen=function(C,x){this._lastTimeLoaded=0;var E=C.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?E=this._currentRedirectedURL:C.redirectedURL!=null&&(E=C.redirectedURL));var _=this._seekHandler.getConfig(E,x);this._currentRequestURL=_.url;var T=this._xhr=new XMLHttpRequest;if(T.open("GET",_.url,!0),T.responseType="arraybuffer",T.onreadystatechange=this._onReadyStateChange.bind(this),T.onprogress=this._onProgress.bind(this),T.onload=this._onLoad.bind(this),T.onerror=this._onXhrError.bind(this),C.withCredentials&&(T.withCredentials=!0),typeof _.headers=="object"){var D=_.headers;for(var P in D)D.hasOwnProperty(P)&&T.setRequestHeader(P,D[P])}if(typeof this._config.headers=="object"){var D=this._config.headers;for(var P in D)D.hasOwnProperty(P)&&T.setRequestHeader(P,D[P])}T.send()},k.prototype.abort=function(){this._requestAbort=!0,this._internalAbort(),this._status=p.LoaderStatus.kComplete},k.prototype._internalAbort=function(){this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onload=null,this._xhr.onerror=null,this._xhr.abort(),this._xhr=null)},k.prototype._onReadyStateChange=function(C){var x=C.target;if(x.readyState===2){if(x.responseURL!=null){var E=this._seekHandler.removeURLParameters(x.responseURL);x.responseURL!==this._currentRequestURL&&E!==this._currentRedirectedURL&&(this._currentRedirectedURL=E,this._onURLRedirect&&this._onURLRedirect(E))}if(x.status>=200&&x.status<=299){if(this._waitForTotalLength)return;this._status=p.LoaderStatus.kBuffering}else if(this._status=p.LoaderStatus.kError,this._onError)this._onError(p.LoaderErrors.HTTP_STATUS_CODE_INVALID,{code:x.status,msg:x.statusText});else throw new v.RuntimeException("RangeLoader: Http code invalid, "+x.status+" "+x.statusText)}},k.prototype._onProgress=function(C){if(this._status!==p.LoaderStatus.kError){if(this._contentLength===null){var x=!1;if(this._waitForTotalLength){this._waitForTotalLength=!1,this._totalLengthReceived=!0,x=!0;var E=C.total;this._internalAbort(),E!=null&E!==0&&(this._totalLength=E)}if(this._range.to===-1?this._contentLength=this._totalLength-this._range.from:this._contentLength=this._range.to-this._range.from+1,x){this._openSubRange();return}this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)}var _=C.loaded-this._lastTimeLoaded;this._lastTimeLoaded=C.loaded,this._speedSampler.addBytes(_)}},k.prototype._normalizeSpeed=function(C){var x=this._chunkSizeKBList,E=x.length-1,_=0,T=0,D=E;if(C=x[_]&&C=3&&(x=this._speedSampler.currentKBps)),x!==0){var E=this._normalizeSpeed(x);this._currentSpeedNormalized!==E&&(this._currentSpeedNormalized=E,this._currentChunkSizeKB=E)}var _=C.target.response,T=this._range.from+this._receivedLength;this._receivedLength+=_.byteLength;var D=!1;this._contentLength!=null&&this._receivedLength0&&this._receivedLength0&&(this._requestSetTime=!0,this._mediaElement.currentTime=0),this._transmuxer=new y.default(this._mediaDataSource,this._config),this._transmuxer.on(S.default.INIT_SEGMENT,function(M,$){P._msectl.appendInitSegment($)}),this._transmuxer.on(S.default.MEDIA_SEGMENT,function(M,$){if(P._msectl.appendMediaSegment($),P._config.lazyLoad&&!P._config.isLive){var L=P._mediaElement.currentTime;$.info.endDts>=(L+P._config.lazyLoadMaxDuration)*1e3&&P._progressChecker==null&&(p.default.v(P.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),P._suspendTransmuxer())}}),this._transmuxer.on(S.default.LOADING_COMPLETE,function(){P._msectl.endOfStream(),P._emitter.emit(g.default.LOADING_COMPLETE)}),this._transmuxer.on(S.default.RECOVERED_EARLY_EOF,function(){P._emitter.emit(g.default.RECOVERED_EARLY_EOF)}),this._transmuxer.on(S.default.IO_ERROR,function(M,$){P._emitter.emit(g.default.ERROR,x.ErrorTypes.NETWORK_ERROR,M,$)}),this._transmuxer.on(S.default.DEMUX_ERROR,function(M,$){P._emitter.emit(g.default.ERROR,x.ErrorTypes.MEDIA_ERROR,M,{code:-1,msg:$})}),this._transmuxer.on(S.default.MEDIA_INFO,function(M){P._mediaInfo=M,P._emitter.emit(g.default.MEDIA_INFO,Object.assign({},M))}),this._transmuxer.on(S.default.METADATA_ARRIVED,function(M){P._emitter.emit(g.default.METADATA_ARRIVED,M)}),this._transmuxer.on(S.default.SCRIPTDATA_ARRIVED,function(M){P._emitter.emit(g.default.SCRIPTDATA_ARRIVED,M)}),this._transmuxer.on(S.default.STATISTICS_INFO,function(M){P._statisticsInfo=P._fillStatisticsInfo(M),P._emitter.emit(g.default.STATISTICS_INFO,Object.assign({},P._statisticsInfo))}),this._transmuxer.on(S.default.RECOMMEND_SEEKPOINT,function(M){P._mediaElement&&!P._config.accurateSeek&&(P._requestSetTime=!0,P._mediaElement.currentTime=M/1e3)}),this._transmuxer.open()}},D.prototype.unload=function(){this._mediaElement&&this._mediaElement.pause(),this._msectl&&this._msectl.seek(0),this._transmuxer&&(this._transmuxer.close(),this._transmuxer.destroy(),this._transmuxer=null)},D.prototype.play=function(){return this._mediaElement.play()},D.prototype.pause=function(){this._mediaElement.pause()},Object.defineProperty(D.prototype,"type",{get:function(){return this._type},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"buffered",{get:function(){return this._mediaElement.buffered},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"duration",{get:function(){return this._mediaElement.duration},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"volume",{get:function(){return this._mediaElement.volume},set:function(P){this._mediaElement.volume=P},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"muted",{get:function(){return this._mediaElement.muted},set:function(P){this._mediaElement.muted=P},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"currentTime",{get:function(){return this._mediaElement?this._mediaElement.currentTime:0},set:function(P){this._mediaElement?this._internalSeek(P):this._pendingSeekTime=P},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"mediaInfo",{get:function(){return Object.assign({},this._mediaInfo)},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"statisticsInfo",{get:function(){return this._statisticsInfo==null&&(this._statisticsInfo={}),this._statisticsInfo=this._fillStatisticsInfo(this._statisticsInfo),Object.assign({},this._statisticsInfo)},enumerable:!1,configurable:!0}),D.prototype._fillStatisticsInfo=function(P){if(P.playerType=this._type,!(this._mediaElement instanceof HTMLVideoElement))return P;var M=!0,$=0,L=0;if(this._mediaElement.getVideoPlaybackQuality){var B=this._mediaElement.getVideoPlaybackQuality();$=B.totalVideoFrames,L=B.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?($=this._mediaElement.webkitDecodedFrameCount,L=this._mediaElement.webkitDroppedFrameCount):M=!1;return M&&(P.decodedFrames=$,P.droppedFrames=L),P},D.prototype._onmseUpdateEnd=function(){if(!(!this._config.lazyLoad||this._config.isLive)){for(var P=this._mediaElement.buffered,M=this._mediaElement.currentTime,$=0,L=0;L=M+this._config.lazyLoadMaxDuration&&this._progressChecker==null&&(p.default.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}},D.prototype._onmseBufferFull=function(){p.default.v(this.TAG,"MSE SourceBuffer is full, suspend transmuxing task"),this._progressChecker==null&&this._suspendTransmuxer()},D.prototype._suspendTransmuxer=function(){this._transmuxer&&(this._transmuxer.pause(),this._progressChecker==null&&(this._progressChecker=window.setInterval(this._checkProgressAndResume.bind(this),1e3)))},D.prototype._checkProgressAndResume=function(){for(var P=this._mediaElement.currentTime,M=this._mediaElement.buffered,$=!1,L=0;L=B&&P=F-this._config.lazyLoadRecoverDuration&&($=!0);break}}$&&(window.clearInterval(this._progressChecker),this._progressChecker=null,$&&(p.default.v(this.TAG,"Continue loading from paused position"),this._transmuxer.resume()))},D.prototype._isTimepointBuffered=function(P){for(var M=this._mediaElement.buffered,$=0;$=L&&P0){var B=this._mediaElement.buffered.start(0);(B<1&&P0&&M.currentTime<$.start(0)&&(p.default.w(this.TAG,"Playback seems stuck at "+M.currentTime+", seek to "+$.start(0)),this._requestSetTime=!0,this._mediaElement.currentTime=$.start(0),this._mediaElement.removeEventListener("progress",this.e.onvProgress))}else this._mediaElement.removeEventListener("progress",this.e.onvProgress)},D.prototype._onvLoadedMetadata=function(P){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null)},D.prototype._onvSeeking=function(P){var M=this._mediaElement.currentTime,$=this._mediaElement.buffered;if(this._requestSetTime){this._requestSetTime=!1;return}if(M<1&&$.length>0){var L=$.start(0);if(L<1&&M0&&(this._mediaElement.currentTime=0),this._mediaElement.preload="auto",this._mediaElement.load(),this._statisticsReporter=window.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval)},S.prototype.unload=function(){this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src")),this._statisticsReporter!=null&&(window.clearInterval(this._statisticsReporter),this._statisticsReporter=null)},S.prototype.play=function(){return this._mediaElement.play()},S.prototype.pause=function(){this._mediaElement.pause()},Object.defineProperty(S.prototype,"type",{get:function(){return this._type},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"buffered",{get:function(){return this._mediaElement.buffered},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"duration",{get:function(){return this._mediaElement.duration},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"volume",{get:function(){return this._mediaElement.volume},set:function(k){this._mediaElement.volume=k},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"muted",{get:function(){return this._mediaElement.muted},set:function(k){this._mediaElement.muted=k},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"currentTime",{get:function(){return this._mediaElement?this._mediaElement.currentTime:0},set:function(k){this._mediaElement?this._mediaElement.currentTime=k:this._pendingSeekTime=k},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"mediaInfo",{get:function(){var k=this._mediaElement instanceof HTMLAudioElement?"audio/":"video/",C={mimeType:k+this._mediaDataSource.type};return this._mediaElement&&(C.duration=Math.floor(this._mediaElement.duration*1e3),this._mediaElement instanceof HTMLVideoElement&&(C.width=this._mediaElement.videoWidth,C.height=this._mediaElement.videoHeight)),C},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"statisticsInfo",{get:function(){var k={playerType:this._type,url:this._mediaDataSource.url};if(!(this._mediaElement instanceof HTMLVideoElement))return k;var C=!0,x=0,E=0;if(this._mediaElement.getVideoPlaybackQuality){var _=this._mediaElement.getVideoPlaybackQuality();x=_.totalVideoFrames,E=_.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(x=this._mediaElement.webkitDecodedFrameCount,E=this._mediaElement.webkitDroppedFrameCount):C=!1;return C&&(k.decodedFrames=x,k.droppedFrames=E),k},enumerable:!1,configurable:!0}),S.prototype._onvLoadedMetadata=function(k){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null),this._emitter.emit(p.default.MEDIA_INFO,this.mediaInfo)},S.prototype._reportStatisticsInfo=function(){this._emitter.emit(p.default.STATISTICS_INFO,this.statisticsInfo)},S})();l.default=y}),"./src/player/player-errors.js":(function(s,l,c){c.r(l),c.d(l,{ErrorTypes:function(){return p},ErrorDetails:function(){return v}});var d=c("./src/io/loader.js"),h=c("./src/demux/demux-errors.js"),p={NETWORK_ERROR:"NetworkError",MEDIA_ERROR:"MediaError",OTHER_ERROR:"OtherError"},v={NETWORK_EXCEPTION:d.LoaderErrors.EXCEPTION,NETWORK_STATUS_CODE_INVALID:d.LoaderErrors.HTTP_STATUS_CODE_INVALID,NETWORK_TIMEOUT:d.LoaderErrors.CONNECTING_TIMEOUT,NETWORK_UNRECOVERABLE_EARLY_EOF:d.LoaderErrors.UNRECOVERABLE_EARLY_EOF,MEDIA_MSE_ERROR:"MediaMSEError",MEDIA_FORMAT_ERROR:h.default.FORMAT_ERROR,MEDIA_FORMAT_UNSUPPORTED:h.default.FORMAT_UNSUPPORTED,MEDIA_CODEC_UNSUPPORTED:h.default.CODEC_UNSUPPORTED}}),"./src/player/player-events.js":(function(s,l,c){c.r(l);var d={ERROR:"error",LOADING_COMPLETE:"loading_complete",RECOVERED_EARLY_EOF:"recovered_early_eof",MEDIA_INFO:"media_info",METADATA_ARRIVED:"metadata_arrived",SCRIPTDATA_ARRIVED:"scriptdata_arrived",STATISTICS_INFO:"statistics_info"};l.default=d}),"./src/remux/aac-silent.js":(function(s,l,c){c.r(l);var d=(function(){function h(){}return h.getSilentFrame=function(p,v){if(p==="mp4a.40.2"){if(v===1)return new Uint8Array([0,200,0,128,35,128]);if(v===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(v===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(v===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(v===5)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(v===6)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224])}else{if(v===1)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(v===2)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(v===3)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94])}return null},h})();l.default=d}),"./src/remux/mp4-generator.js":(function(s,l,c){c.r(l);var d=(function(){function h(){}return h.init=function(){h.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[],".mp3":[]};for(var p in h.types)h.types.hasOwnProperty(p)&&(h.types[p]=[p.charCodeAt(0),p.charCodeAt(1),p.charCodeAt(2),p.charCodeAt(3)]);var v=h.constants={};v.FTYP=new Uint8Array([105,115,111,109,0,0,0,1,105,115,111,109,97,118,99,49]),v.STSD_PREFIX=new Uint8Array([0,0,0,0,0,0,0,1]),v.STTS=new Uint8Array([0,0,0,0,0,0,0,0]),v.STSC=v.STCO=v.STTS,v.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),v.HDLR_VIDEO=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]),v.HDLR_AUDIO=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]),v.DREF=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),v.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),v.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])},h.box=function(p){for(var v=8,g=null,y=Array.prototype.slice.call(arguments,1),S=y.length,k=0;k>>24&255,g[1]=v>>>16&255,g[2]=v>>>8&255,g[3]=v&255,g.set(p,4);for(var C=8,k=0;k>>24&255,p>>>16&255,p>>>8&255,p&255,v>>>24&255,v>>>16&255,v>>>8&255,v&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]))},h.trak=function(p){return h.box(h.types.trak,h.tkhd(p),h.mdia(p))},h.tkhd=function(p){var v=p.id,g=p.duration,y=p.presentWidth,S=p.presentHeight;return h.box(h.types.tkhd,new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,v>>>24&255,v>>>16&255,v>>>8&255,v&255,0,0,0,0,g>>>24&255,g>>>16&255,g>>>8&255,g&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,y>>>8&255,y&255,0,0,S>>>8&255,S&255,0,0]))},h.mdia=function(p){return h.box(h.types.mdia,h.mdhd(p),h.hdlr(p),h.minf(p))},h.mdhd=function(p){var v=p.timescale,g=p.duration;return h.box(h.types.mdhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,v>>>24&255,v>>>16&255,v>>>8&255,v&255,g>>>24&255,g>>>16&255,g>>>8&255,g&255,85,196,0,0]))},h.hdlr=function(p){var v=null;return p.type==="audio"?v=h.constants.HDLR_AUDIO:v=h.constants.HDLR_VIDEO,h.box(h.types.hdlr,v)},h.minf=function(p){var v=null;return p.type==="audio"?v=h.box(h.types.smhd,h.constants.SMHD):v=h.box(h.types.vmhd,h.constants.VMHD),h.box(h.types.minf,v,h.dinf(),h.stbl(p))},h.dinf=function(){var p=h.box(h.types.dinf,h.box(h.types.dref,h.constants.DREF));return p},h.stbl=function(p){var v=h.box(h.types.stbl,h.stsd(p),h.box(h.types.stts,h.constants.STTS),h.box(h.types.stsc,h.constants.STSC),h.box(h.types.stsz,h.constants.STSZ),h.box(h.types.stco,h.constants.STCO));return v},h.stsd=function(p){return p.type==="audio"?p.codec==="mp3"?h.box(h.types.stsd,h.constants.STSD_PREFIX,h.mp3(p)):h.box(h.types.stsd,h.constants.STSD_PREFIX,h.mp4a(p)):h.box(h.types.stsd,h.constants.STSD_PREFIX,h.avc1(p))},h.mp3=function(p){var v=p.channelCount,g=p.audioSampleRate,y=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,v,0,16,0,0,0,0,g>>>8&255,g&255,0,0]);return h.box(h.types[".mp3"],y)},h.mp4a=function(p){var v=p.channelCount,g=p.audioSampleRate,y=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,v,0,16,0,0,0,0,g>>>8&255,g&255,0,0]);return h.box(h.types.mp4a,y,h.esds(p))},h.esds=function(p){var v=p.config||[],g=v.length,y=new Uint8Array([0,0,0,0,3,23+g,0,1,0,4,15+g,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([g]).concat(v).concat([6,1,2]));return h.box(h.types.esds,y)},h.avc1=function(p){var v=p.avcc,g=p.codecWidth,y=p.codecHeight,S=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,g>>>8&255,g&255,y>>>8&255,y&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,10,120,113,113,47,102,108,118,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,255,255]);return h.box(h.types.avc1,S,h.box(h.types.avcC,v))},h.mvex=function(p){return h.box(h.types.mvex,h.trex(p))},h.trex=function(p){var v=p.id,g=new Uint8Array([0,0,0,0,v>>>24&255,v>>>16&255,v>>>8&255,v&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return h.box(h.types.trex,g)},h.moof=function(p,v){return h.box(h.types.moof,h.mfhd(p.sequenceNumber),h.traf(p,v))},h.mfhd=function(p){var v=new Uint8Array([0,0,0,0,p>>>24&255,p>>>16&255,p>>>8&255,p&255]);return h.box(h.types.mfhd,v)},h.traf=function(p,v){var g=p.id,y=h.box(h.types.tfhd,new Uint8Array([0,0,0,0,g>>>24&255,g>>>16&255,g>>>8&255,g&255])),S=h.box(h.types.tfdt,new Uint8Array([0,0,0,0,v>>>24&255,v>>>16&255,v>>>8&255,v&255])),k=h.sdtp(p),C=h.trun(p,k.byteLength+16+16+8+16+8+8);return h.box(h.types.traf,y,S,C,k)},h.sdtp=function(p){for(var v=p.samples||[],g=v.length,y=new Uint8Array(4+g),S=0;S>>24&255,y>>>16&255,y>>>8&255,y&255,v>>>24&255,v>>>16&255,v>>>8&255,v&255],0);for(var C=0;C>>24&255,x>>>16&255,x>>>8&255,x&255,E>>>24&255,E>>>16&255,E>>>8&255,E&255,_.isLeading<<2|_.dependsOn,_.isDependedOn<<6|_.hasRedundancy<<4|_.isNonSync,0,0,T>>>24&255,T>>>16&255,T>>>8&255,T&255],12+16*C)}return h.box(h.types.trun,k)},h.mdat=function(p){return h.box(h.types.mdat,p)},h})();d.init(),l.default=d}),"./src/remux/mp4-remuxer.js":(function(s,l,c){c.r(l);var d=c("./src/utils/logger.js"),h=c("./src/remux/mp4-generator.js"),p=c("./src/remux/aac-silent.js"),v=c("./src/utils/browser.js"),g=c("./src/core/media-segment-info.js"),y=c("./src/utils/exception.js"),S=(function(){function k(C){this.TAG="MP4Remuxer",this._config=C,this._isLive=C.isLive===!0,this._dtsBase=-1,this._dtsBaseInited=!1,this._audioDtsBase=1/0,this._videoDtsBase=1/0,this._audioNextDts=void 0,this._videoNextDts=void 0,this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList=new g.MediaSegmentInfoList("audio"),this._videoSegmentInfoList=new g.MediaSegmentInfoList("video"),this._onInitSegment=null,this._onMediaSegment=null,this._forceFirstIDR=!!(v.default.chrome&&(v.default.version.major<50||v.default.version.major===50&&v.default.version.build<2661)),this._fillSilentAfterSeek=v.default.msedge||v.default.msie,this._mp3UseMpegAudio=!v.default.firefox,this._fillAudioTimestampGap=this._config.fixAudioTimestampGap}return k.prototype.destroy=function(){this._dtsBase=-1,this._dtsBaseInited=!1,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList.clear(),this._audioSegmentInfoList=null,this._videoSegmentInfoList.clear(),this._videoSegmentInfoList=null,this._onInitSegment=null,this._onMediaSegment=null},k.prototype.bindDataSource=function(C){return C.onDataAvailable=this.remux.bind(this),C.onTrackMetadata=this._onTrackMetadataReceived.bind(this),this},Object.defineProperty(k.prototype,"onInitSegment",{get:function(){return this._onInitSegment},set:function(C){this._onInitSegment=C},enumerable:!1,configurable:!0}),Object.defineProperty(k.prototype,"onMediaSegment",{get:function(){return this._onMediaSegment},set:function(C){this._onMediaSegment=C},enumerable:!1,configurable:!0}),k.prototype.insertDiscontinuity=function(){this._audioNextDts=this._videoNextDts=void 0},k.prototype.seek=function(C){this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._videoSegmentInfoList.clear(),this._audioSegmentInfoList.clear()},k.prototype.remux=function(C,x){if(!this._onMediaSegment)throw new y.IllegalStateException("MP4Remuxer: onMediaSegment callback must be specificed!");this._dtsBaseInited||this._calculateDtsBase(C,x),this._remuxVideo(x),this._remuxAudio(C)},k.prototype._onTrackMetadataReceived=function(C,x){var E=null,_="mp4",T=x.codec;if(C==="audio")this._audioMeta=x,x.codec==="mp3"&&this._mp3UseMpegAudio?(_="mpeg",T="",E=new Uint8Array):E=h.default.generateInitSegment(x);else if(C==="video")this._videoMeta=x,E=h.default.generateInitSegment(x);else return;if(!this._onInitSegment)throw new y.IllegalStateException("MP4Remuxer: onInitSegment callback must be specified!");this._onInitSegment(C,{type:C,data:E.buffer,codec:T,container:C+"/"+_,mediaDuration:x.duration})},k.prototype._calculateDtsBase=function(C,x){this._dtsBaseInited||(C.samples&&C.samples.length&&(this._audioDtsBase=C.samples[0].dts),x.samples&&x.samples.length&&(this._videoDtsBase=x.samples[0].dts),this._dtsBase=Math.min(this._audioDtsBase,this._videoDtsBase),this._dtsBaseInited=!0)},k.prototype.flushStashedSamples=function(){var C=this._videoStashedLastSample,x=this._audioStashedLastSample,E={type:"video",id:1,sequenceNumber:0,samples:[],length:0};C!=null&&(E.samples.push(C),E.length=C.length);var _={type:"audio",id:2,sequenceNumber:0,samples:[],length:0};x!=null&&(_.samples.push(x),_.length=x.length),this._videoStashedLastSample=null,this._audioStashedLastSample=null,this._remuxVideo(E,!0),this._remuxAudio(_,!0)},k.prototype._remuxAudio=function(C,x){if(this._audioMeta!=null){var E=C,_=E.samples,T=void 0,D=-1,P=-1,M=this._audioMeta.refSampleDuration,$=this._audioMeta.codec==="mp3"&&this._mp3UseMpegAudio,L=this._dtsBaseInited&&this._audioNextDts===void 0,B=!1;if(!(!_||_.length===0)&&!(_.length===1&&!x)){var F=0,W=null,U=0;$?(F=0,U=E.length):(F=8,U=8+E.length);var G=null;if(_.length>1&&(G=_.pop(),U-=G.length),this._audioStashedLastSample!=null){var X=this._audioStashedLastSample;this._audioStashedLastSample=null,_.unshift(X),U+=X.length}G!=null&&(this._audioStashedLastSample=G);var oe=_[0].dts-this._dtsBase;if(this._audioNextDts)T=oe-this._audioNextDts;else if(this._audioSegmentInfoList.isEmpty())T=0,this._fillSilentAfterSeek&&!this._videoSegmentInfoList.isEmpty()&&this._audioMeta.originalCodec!=="mp3"&&(B=!0);else{var Z=this._audioSegmentInfoList.getLastSampleBefore(oe);if(Z!=null){var H=oe-(Z.originalDts+Z.duration);H<=3&&(H=0);var q=Z.dts+Z.duration+H;T=oe-q}else T=0}if(B){var ee=oe-T,ne=this._videoSegmentInfoList.getLastSegmentBefore(oe);if(ne!=null&&ne.beginDts=be*M&&this._fillAudioTimestampGap&&!v.default.safari){Qe=!0;var Fe=Math.floor(T/M);d.default.w(this.TAG,`Large audio timestamp gap detected, may cause AV sync to drift. Silent frames will be generated to avoid unsync. `+("originalDts: "+Ue+" ms, curRefDts: "+ge+" ms, ")+("dtsCorrection: "+Math.round(T)+" ms, generate: "+Fe+" frames")),re=Math.floor(ge),je=Math.floor(ge+M)-re;var ae=p.default.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);ae==null&&(d.default.w(this.TAG,"Unable to generate silent frame for "+(this._audioMeta.originalCodec+" with "+this._audioMeta.channelCount+" channels, repeat last frame")),ae=_e),Me=[];for(var He=0;He=1?je=Ne[Ne.length-1].duration:je=Math.floor(M);this._audioNextDts=re+je}D===-1&&(D=re),Ne.push({dts:re,pts:re,cts:0,unit:X.unit,size:X.unit.byteLength,duration:je,originalDts:Ue,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}}),Qe&&Ne.push.apply(Ne,Me)}}if(Ne.length===0){E.samples=[],E.length=0;return}$?W=new Uint8Array(U):(W=new Uint8Array(U),W[0]=U>>>24&255,W[1]=U>>>16&255,W[2]=U>>>8&255,W[3]=U&255,W.set(h.default.types.mdat,4));for(var me=0;me1&&(W=_.pop(),F-=W.length),this._videoStashedLastSample!=null){var U=this._videoStashedLastSample;this._videoStashedLastSample=null,_.unshift(U),F+=U.length}W!=null&&(this._videoStashedLastSample=W);var G=_[0].dts-this._dtsBase;if(this._videoNextDts)T=G-this._videoNextDts;else if(this._videoSegmentInfoList.isEmpty())T=0;else{var X=this._videoSegmentInfoList.getLastSampleBefore(G);if(X!=null){var oe=G-(X.originalDts+X.duration);oe<=3&&(oe=0);var Z=X.dts+X.duration+oe;T=G-Z}else T=0}for(var H=new g.MediaSegmentInfo,q=[],ee=0;ee<_.length;ee++){var U=_[ee],ne=U.dts-this._dtsBase,ae=U.isKeyframe,re=ne-T,ke=U.cts,Ne=re+ke;D===-1&&(D=re,M=Ne);var me=0;if(ee!==_.length-1){var _e=_[ee+1].dts-this._dtsBase-T;me=_e-re}else if(W!=null){var _e=W.dts-this._dtsBase-T;me=_e-re}else q.length>=1?me=q[q.length-1].duration:me=Math.floor(this._videoMeta.refSampleDuration);if(ae){var Ue=new g.SampleInfo(re,Ne,me,U.dts,!0);Ue.fileposition=U.fileposition,H.appendSyncPoint(Ue)}q.push({dts:re,pts:Ne,cts:ke,units:U.units,size:U.length,isKeyframe:ae,duration:me,originalDts:ne,flags:{isLeading:0,dependsOn:ae?2:1,isDependedOn:ae?1:0,hasRedundancy:0,isNonSync:ae?0:1}})}B=new Uint8Array(F),B[0]=F>>>24&255,B[1]=F>>>16&255,B[2]=F>>>8&255,B[3]=F&255,B.set(h.default.types.mdat,4);for(var ee=0;ee=0&&/(rv)(?::| )([\w.]+)/.exec(p)||p.indexOf("compatible")<0&&/(firefox)[ \/]([\w.]+)/.exec(p)||[],g=/(ipad)/.exec(p)||/(ipod)/.exec(p)||/(windows phone)/.exec(p)||/(iphone)/.exec(p)||/(kindle)/.exec(p)||/(android)/.exec(p)||/(windows)/.exec(p)||/(mac)/.exec(p)||/(linux)/.exec(p)||/(cros)/.exec(p)||[],y={browser:v[5]||v[3]||v[1]||"",version:v[2]||v[4]||"0",majorVersion:v[4]||v[2]||"0",platform:g[0]||""},S={};if(y.browser){S[y.browser]=!0;var k=y.majorVersion.split(".");S.version={major:parseInt(y.majorVersion,10),string:y.version},k.length>1&&(S.version.minor=parseInt(k[1],10)),k.length>2&&(S.version.build=parseInt(k[2],10))}if(y.platform&&(S[y.platform]=!0),(S.chrome||S.opr||S.safari)&&(S.webkit=!0),S.rv||S.iemobile){S.rv&&delete S.rv;var C="msie";y.browser=C,S[C]=!0}if(S.edge){delete S.edge;var x="msedge";y.browser=x,S[x]=!0}if(S.opr){var E="opera";y.browser=E,S[E]=!0}if(S.safari&&S.android){var _="android";y.browser=_,S[_]=!0}S.name=y.browser,S.platform=y.platform;for(var T in d)d.hasOwnProperty(T)&&delete d[T];Object.assign(d,S)}h(),l.default=d}),"./src/utils/exception.js":(function(s,l,c){c.r(l),c.d(l,{RuntimeException:function(){return h},IllegalStateException:function(){return p},InvalidArgumentException:function(){return v},NotImplementedException:function(){return g}});var d=(function(){var y=function(S,k){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,x){C.__proto__=x}||function(C,x){for(var E in x)Object.prototype.hasOwnProperty.call(x,E)&&(C[E]=x[E])},y(S,k)};return function(S,k){if(typeof k!="function"&&k!==null)throw new TypeError("Class extends value "+String(k)+" is not a constructor or null");y(S,k);function C(){this.constructor=S}S.prototype=k===null?Object.create(k):(C.prototype=k.prototype,new C)}})(),h=(function(){function y(S){this._message=S}return Object.defineProperty(y.prototype,"name",{get:function(){return"RuntimeException"},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"message",{get:function(){return this._message},enumerable:!1,configurable:!0}),y.prototype.toString=function(){return this.name+": "+this.message},y})(),p=(function(y){d(S,y);function S(k){return y.call(this,k)||this}return Object.defineProperty(S.prototype,"name",{get:function(){return"IllegalStateException"},enumerable:!1,configurable:!0}),S})(h),v=(function(y){d(S,y);function S(k){return y.call(this,k)||this}return Object.defineProperty(S.prototype,"name",{get:function(){return"InvalidArgumentException"},enumerable:!1,configurable:!0}),S})(h),g=(function(y){d(S,y);function S(k){return y.call(this,k)||this}return Object.defineProperty(S.prototype,"name",{get:function(){return"NotImplementedException"},enumerable:!1,configurable:!0}),S})(h)}),"./src/utils/logger.js":(function(s,l,c){c.r(l);var d=c("./node_modules/events/events.js"),h=c.n(d),p=(function(){function v(){}return v.e=function(g,y){(!g||v.FORCE_GLOBAL_TAG)&&(g=v.GLOBAL_TAG);var S="["+g+"] > "+y;v.ENABLE_CALLBACK&&v.emitter.emit("log","error",S),v.ENABLE_ERROR&&(console.error?console.error(S):console.warn?console.warn(S):console.log(S))},v.i=function(g,y){(!g||v.FORCE_GLOBAL_TAG)&&(g=v.GLOBAL_TAG);var S="["+g+"] > "+y;v.ENABLE_CALLBACK&&v.emitter.emit("log","info",S),v.ENABLE_INFO&&(console.info?console.info(S):console.log(S))},v.w=function(g,y){(!g||v.FORCE_GLOBAL_TAG)&&(g=v.GLOBAL_TAG);var S="["+g+"] > "+y;v.ENABLE_CALLBACK&&v.emitter.emit("log","warn",S),v.ENABLE_WARN&&(console.warn?console.warn(S):console.log(S))},v.d=function(g,y){(!g||v.FORCE_GLOBAL_TAG)&&(g=v.GLOBAL_TAG);var S="["+g+"] > "+y;v.ENABLE_CALLBACK&&v.emitter.emit("log","debug",S),v.ENABLE_DEBUG&&(console.debug?console.debug(S):console.log(S))},v.v=function(g,y){(!g||v.FORCE_GLOBAL_TAG)&&(g=v.GLOBAL_TAG);var S="["+g+"] > "+y;v.ENABLE_CALLBACK&&v.emitter.emit("log","verbose",S),v.ENABLE_VERBOSE&&console.log(S)},v})();p.GLOBAL_TAG="flv.js",p.FORCE_GLOBAL_TAG=!1,p.ENABLE_ERROR=!0,p.ENABLE_INFO=!0,p.ENABLE_WARN=!0,p.ENABLE_DEBUG=!0,p.ENABLE_VERBOSE=!0,p.ENABLE_CALLBACK=!1,p.emitter=new(h()),l.default=p}),"./src/utils/logging-control.js":(function(s,l,c){c.r(l);var d=c("./node_modules/events/events.js"),h=c.n(d),p=c("./src/utils/logger.js"),v=(function(){function g(){}return Object.defineProperty(g,"forceGlobalTag",{get:function(){return p.default.FORCE_GLOBAL_TAG},set:function(y){p.default.FORCE_GLOBAL_TAG=y,g._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(g,"globalTag",{get:function(){return p.default.GLOBAL_TAG},set:function(y){p.default.GLOBAL_TAG=y,g._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(g,"enableAll",{get:function(){return p.default.ENABLE_VERBOSE&&p.default.ENABLE_DEBUG&&p.default.ENABLE_INFO&&p.default.ENABLE_WARN&&p.default.ENABLE_ERROR},set:function(y){p.default.ENABLE_VERBOSE=y,p.default.ENABLE_DEBUG=y,p.default.ENABLE_INFO=y,p.default.ENABLE_WARN=y,p.default.ENABLE_ERROR=y,g._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(g,"enableDebug",{get:function(){return p.default.ENABLE_DEBUG},set:function(y){p.default.ENABLE_DEBUG=y,g._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(g,"enableVerbose",{get:function(){return p.default.ENABLE_VERBOSE},set:function(y){p.default.ENABLE_VERBOSE=y,g._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(g,"enableInfo",{get:function(){return p.default.ENABLE_INFO},set:function(y){p.default.ENABLE_INFO=y,g._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(g,"enableWarn",{get:function(){return p.default.ENABLE_WARN},set:function(y){p.default.ENABLE_WARN=y,g._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(g,"enableError",{get:function(){return p.default.ENABLE_ERROR},set:function(y){p.default.ENABLE_ERROR=y,g._notifyChange()},enumerable:!1,configurable:!0}),g.getConfig=function(){return{globalTag:p.default.GLOBAL_TAG,forceGlobalTag:p.default.FORCE_GLOBAL_TAG,enableVerbose:p.default.ENABLE_VERBOSE,enableDebug:p.default.ENABLE_DEBUG,enableInfo:p.default.ENABLE_INFO,enableWarn:p.default.ENABLE_WARN,enableError:p.default.ENABLE_ERROR,enableCallback:p.default.ENABLE_CALLBACK}},g.applyConfig=function(y){p.default.GLOBAL_TAG=y.globalTag,p.default.FORCE_GLOBAL_TAG=y.forceGlobalTag,p.default.ENABLE_VERBOSE=y.enableVerbose,p.default.ENABLE_DEBUG=y.enableDebug,p.default.ENABLE_INFO=y.enableInfo,p.default.ENABLE_WARN=y.enableWarn,p.default.ENABLE_ERROR=y.enableError,p.default.ENABLE_CALLBACK=y.enableCallback},g._notifyChange=function(){var y=g.emitter;if(y.listenerCount("change")>0){var S=g.getConfig();y.emit("change",S)}},g.registerListener=function(y){g.emitter.addListener("change",y)},g.removeListener=function(y){g.emitter.removeListener("change",y)},g.addLogListener=function(y){p.default.emitter.addListener("log",y),p.default.emitter.listenerCount("log")>0&&(p.default.ENABLE_CALLBACK=!0,g._notifyChange())},g.removeLogListener=function(y){p.default.emitter.removeListener("log",y),p.default.emitter.listenerCount("log")===0&&(p.default.ENABLE_CALLBACK=!1,g._notifyChange())},g})();v.emitter=new(h()),l.default=v}),"./src/utils/polyfill.js":(function(s,l,c){c.r(l);var d=(function(){function h(){}return h.install=function(){Object.setPrototypeOf=Object.setPrototypeOf||function(p,v){return p.__proto__=v,p},Object.assign=Object.assign||function(p){if(p==null)throw new TypeError("Cannot convert undefined or null to object");for(var v=Object(p),g=1;g=128){v.push(String.fromCharCode(k&65535)),y+=2;continue}}}else if(g[y]<240){if(d(g,y,2)){var k=(g[y]&15)<<12|(g[y+1]&63)<<6|g[y+2]&63;if(k>=2048&&(k&63488)!==55296){v.push(String.fromCharCode(k&65535)),y+=3;continue}}}else if(g[y]<248&&d(g,y,3)){var k=(g[y]&7)<<18|(g[y+1]&63)<<12|(g[y+2]&63)<<6|g[y+3]&63;if(k>65536&&k<1114112){k-=65536,v.push(String.fromCharCode(k>>>10|55296)),v.push(String.fromCharCode(k&1023|56320)),y+=4;continue}}}v.push("�"),++y}return v.join("")}l.default=h})},r={};function o(s){var l=r[s];if(l!==void 0)return l.exports;var c=r[s]={exports:{}};return n[s].call(c.exports,c,c.exports,o),c.exports}o.m=n,(function(){o.n=function(s){var l=s&&s.__esModule?function(){return s.default}:function(){return s};return o.d(l,{a:l}),l}})(),(function(){o.d=function(s,l){for(var c in l)o.o(l,c)&&!o.o(s,c)&&Object.defineProperty(s,c,{enumerable:!0,get:l[c]})}})(),(function(){o.g=(function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}})()})(),(function(){o.o=function(s,l){return Object.prototype.hasOwnProperty.call(s,l)}})(),(function(){o.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})}})();var a=o("./src/index.js");return a})()})})(tj)),tj.exports}var WTt=HTt();const tU=td(WTt);var nj={};/* @license Shaka Player Copyright 2016 Google LLC SPDX-License-Identifier: Apache-2.0 */var Que;function GTt(){return Que||(Que=1,(function(e){(function(){var t=typeof window<"u"?window:sw,n={};(function(o,a,s){var l,c=typeof Object.create=="function"?Object.create:function(i){function u(){}return u.prototype=i,new u},d=typeof Object.defineProperties=="function"?Object.defineProperty:function(i,u,f){return i==Array.prototype||i==Object.prototype||(i[u]=f.value),i};function h(i){i=[typeof globalThis=="object"&&globalThis,i,typeof o=="object"&&o,typeof self=="object"&&self,typeof a=="object"&&a];for(var u=0;u>>0)+"_",b=0;return u}),v("Symbol.iterator",function(i){if(i)return i;i=Symbol("Symbol.iterator");for(var u="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),f=0;f"u"?!0:(typeof A=="function"?A=new A("unhandledrejection",{cancelable:!0}):typeof R=="function"?A=new R("unhandledrejection",{cancelable:!0}):(A=p.document.createEvent("CustomEvent"),A.initCustomEvent("unhandledrejection",!1,!0,A)),A.promise=this,A.reason=this.i,N(A))},u.prototype.B=function(){if(this.g!=null){for(var A=0;A1114111||b!==Math.floor(b))throw new RangeError("invalid_code_point "+b);b<=65535?f+=String.fromCharCode(b):(b-=65536,f+=String.fromCharCode(b>>>10&1023|55296),f+=String.fromCharCode(b&1023|56320))}return f}}),v("WeakSet",function(i){function u(f){if(this.g=new WeakMap,f){f=_(f);for(var m;!(m=f.next()).done;)this.add(m.value)}}return(function(){if(!i||!Object.seal)return!1;try{var f=Object.seal({}),m=Object.seal({}),b=new i([f]);return!b.has(f)||b.has(m)?!1:(b.delete(f),b.add(m),!b.has(f)&&b.has(m))}catch{return!1}})()?i:(u.prototype.add=function(f){return this.g.set(f,!0),this},u.prototype.has=function(f){return this.g.has(f)},u.prototype.delete=function(f){return this.g.delete(f)},u)}),v("Array.prototype.find",function(i){return i||function(u,f){return me(this,u,f).v}}),v("String.prototype.startsWith",function(i){return i||function(u,f){var m=Ue(this,u,"startsWith"),b=m.length,w=u.length;f=Math.max(0,Math.min(f|0,m.length));for(var A=0;A=w}}),v("Object.entries",function(i){return i||function(u){var f=[],m;for(m in u)Ne(u,m)&&f.push([m,u[m]]);return f}});var Qe=typeof Object.assign=="function"?Object.assign:function(i,u){for(var f=1;f1342177279)throw new RangeError("Invalid count value");u|=0;for(var m="";u;)u&1&&(m+=f),(u>>>=1)&&(f+=f);return m}}),v("Number.EPSILON",function(){return 2220446049250313e-31}),v("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991}),v("Number.isFinite",function(i){return i||function(u){return typeof u!="number"?!1:!isNaN(u)&&u!==1/0&&u!==-1/0}}),v("Object.values",function(i){return i||function(u){var f=[],m;for(m in u)Ne(u,m)&&f.push(u[m]);return f}}),v("Math.log2",function(i){return i||function(u){return Math.log(u)/Math.LN2}}),v("String.prototype.endsWith",function(i){return i||function(u,f){var m=Ue(this,u,"endsWith");f===void 0&&(f=m.length),f=Math.max(0,Math.min(f|0,m.length));for(var b=u.length;b>0&&f>0;)if(m[--f]!=u[--b])return!1;return b<=0}}),v("Math.trunc",function(i){return i||function(u){if(u=Number(u),isNaN(u)||u===1/0||u===-1/0||u===0)return u;var f=Math.floor(Math.abs(u));return u<0?-f:f}});var Me=this||self;function je(i,u){i=i.split(".");var f=Me;i[0]in f||typeof f.execScript>"u"||f.execScript("var "+i[0]);for(var m;i.length&&(m=i.shift());)i.length||u===void 0?f[m]&&f[m]!==Object.prototype[m]?f=f[m]:f=f[m]={}:f[m]=u}function ge(i){this.g=Math.exp(Math.log(.5)/i),this.i=this.h=0}ge.prototype.sample=function(i,u){var f=Math.pow(this.g,i);u=u*(1-f)+f*this.h,isNaN(u)||(this.h=u,this.i+=i)};function be(i){return i.h/(1-Math.pow(i.g,i.i))}function Fe(){this.h=new ge(2),this.j=new ge(5),this.g=0,this.i=128e3,this.l=16e3}Fe.prototype.configure=function(i){this.i=i.minTotalBytes,this.l=i.minBytes,this.h.g=Math.exp(Math.log(.5)/i.fastHalfLife),this.j.g=Math.exp(Math.log(.5)/i.slowHalfLife)},Fe.prototype.sample=function(i,u){if(!(u-1&&i.splice(u,1)}function sn(i,u,f){if(f||(f=Tt),i.length!=u.length)return!1;u=u.slice(),i=_(i);for(var m=i.next(),b={};!m.done;b={mi:void 0},m=i.next()){if(b.mi=m.value,m=u.findIndex((function(w){return function(A){return f(w.mi,A)}})(b)),m==-1)return!1;u[m]=u[u.length-1],u.pop()}return u.length==0}function ct(i,u,f){if(i===u)return!0;if(!i||!u)return i==u;if(f||(f=Tt),i.length!=u.length)return!1;for(var m=0;m0?m.i:m.h)(m.g,f,i,u)}function Jn(i,u,f,m){rt([f,"has been deprecated and will be removed in",u,". We are currently at version",i,". Additional information:",m].join(" "))}function mr(i,u,f,m){Je([f,"has been deprecated and has been removed in",u,". We are now at version",i,". Additional information:",m].join(" "))}var yi=null;/* @license Copyright 2008 The Closure Library Authors SPDX-License-Identifier: Apache-2.0 */var Kt=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");/* @license Copyright 2006 The Closure Library Authors SPDX-License-Identifier: Apache-2.0 */function st(i){var u;i instanceof st?(zt(this,i.bc),this.hd=i.hd,fn(this,i.Db),on(this,i.Cd),this.Sb=i.Sb,pn(this,i.g.clone()),this.Rc=i.Rc):i&&(u=String(i).match(Kt))?(zt(this,u[1]||"",!0),this.hd=Qn(u[2]||""),fn(this,u[3]||"",!0),on(this,u[4]),this.Sb=Qn(u[5]||"",!0),pn(this,u[6]||"",!0),this.Rc=Qn(u[7]||"")):this.g=new ie(null)}l=st.prototype,l.bc="",l.hd="",l.Db="",l.Cd=null,l.Sb="",l.Rc="",l.toString=function(){var i=[],u=this.bc;if(u&&i.push(Kr(u,Wt,!0),":"),u=this.Db){i.push("//");var f=this.hd;f&&i.push(Kr(f,Wt,!0),"@"),i.push(encodeURIComponent(u).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),u=this.Cd,u!=null&&i.push(":",String(u))}return(u=this.Sb)&&(this.Db&&u.charAt(0)!="/"&&i.push("/"),i.push(Kr(u,u.charAt(0)=="/"?mn:hn,!0))),(u=this.g.toString())&&i.push("?",u),(u=this.Rc)&&i.push("#",Kr(u,le)),i.join("")},l.resolve=function(i){var u=this.clone();u.bc==="data"&&(u=new st);var f=!!i.bc;f?zt(u,i.bc):f=!!i.hd,f?u.hd=i.hd:f=!!i.Db,f?fn(u,i.Db):f=i.Cd!=null;var m=i.Sb;if(f)on(u,i.Cd);else if(f=!!i.Sb){if(m.charAt(0)!="/")if(this.Db&&!this.Sb)m="/"+m;else{var b=u.Sb.lastIndexOf("/");b!=-1&&(m=u.Sb.substr(0,b+1)+m)}if(m==".."||m==".")m="";else if(m.indexOf("./")!=-1||m.indexOf("/.")!=-1){b=m.lastIndexOf("/",0)==0,m=m.split("/");for(var w=[],A=0;A1||w.length==1&&w[0]!="")&&w.pop(),b&&A==m.length&&w.push("")):(w.push(R),b=!0)}m=w.join("/")}}return f?u.Sb=m:f=i.g.toString()!=="",f?pn(u,i.g.clone()):f=!!i.Rc,f&&(u.Rc=i.Rc),u},l.clone=function(){return new st(this)};function zt(i,u,f){i.bc=f?Qn(u,!0):u,i.bc&&(i.bc=i.bc.replace(/:$/,""))}function fn(i,u,f){i.Db=f?Qn(u,!0):u}function on(i,u){if(u){if(u=Number(u),isNaN(u)||u<0)throw Error("Bad port number "+u);i.Cd=u}else i.Cd=null}function pn(i,u,f){u instanceof ie?i.g=u:(f||(u=Kr(u,ln)),i.g=new ie(u))}function Qn(i,u){return i?u?decodeURI(i):decodeURIComponent(i):""}function Kr(i,u,f){return i!=null?(i=encodeURI(i).replace(u,wt),f&&(i=i.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),i):null}function wt(i){return i=i.charCodeAt(0),"%"+(i>>4&15).toString(16)+(i&15).toString(16)}var Wt=/[#\/\?@]/g,hn=/[#\?:]/g,mn=/[#\?]/g,ln=/[#\?@]/g,le=/#/g;function ie(i){this.g=i||null}function te(i){if(!i.eb&&(i.eb=new Map,i.Sd=0,i.g))for(var u=i.g.split("&"),f=0;f=0){var w=u[f].substring(0,m);b=u[f].substring(m+1)}else w=u[f];w=decodeURIComponent(w),b=b||"",i.add(w,decodeURIComponent(b))}}l=ie.prototype,l.eb=null,l.Sd=null;function J(i){return te(i),i.Sd}l.add=function(i,u){te(this),this.g=null;var f=this.eb.has(i)?this.eb.get(i):null;return f||this.eb.set(i,f=[]),f.push(u),this.Sd++,this},l.set=function(i,u){return te(this),this.g=null,this.eb.has(i)?this.eb.set(i,[u]):this.add(i,u),this},l.get=function(i){return te(this),this.eb.get(i)||[]},l.toString=function(){if(this.g)return this.g;if(!this.eb||!this.eb.size)return"";for(var i=[],u=_(this.eb.keys()),f=u.next();!f.done;f=u.next()){var m=f.value;f=encodeURIComponent(m),m=this.eb.get(m);for(var b=0;b=f+2&&(i[f]&224)==192&&(i[f+1]&192)==128?(m=(i[f]&31)<<6|i[f+1]&63,f+=1):i.length>=f+3&&(i[f]&240)==224&&(i[f+1]&192)==128&&(i[f+2]&192)==128?(m=(i[f]&15)<<12|(i[f+1]&63)<<6|i[f+2]&63,f+=2):i.length>=f+4&&(i[f]&241)==240&&(i[f+1]&192)==128&&(i[f+2]&192)==128&&(i[f+3]&192)==128&&(m=(i[f]&7)<<18|(i[f+1]&63)<<12|(i[f+2]&63)<<6|i[f+3]&63,f+=3),m<=65535)u+=String.fromCharCode(m);else{m-=65536;var b=m&1023;u+=String.fromCharCode(55296+(m>>10)),u+=String.fromCharCode(56320+b)}}return u}function Ot(i,u,f){if(!i)return"";if(!f&&i.byteLength%2!=0)throw new we(2,2,2004);f=Math.floor(i.byteLength/2);var m=new Uint16Array(f);i=it(i);for(var b=0;b=9&&f[m]<=126}if(!i)return"";var f=Pe(i);if(f[0]==239&&f[1]==187&&f[2]==191)return at(f);if(f[0]==254&&f[1]==255)return Ot(f.subarray(2),!1);if(f[0]==255&&f[1]==254)return Ot(f.subarray(2),!0);if(f[0]==0&&f[2]==0)return Ot(i,!1);if(f[1]==0&&f[3]==0)return Ot(i,!0);if(u(0)&&u(1)&&u(2)&&u(3))return at(i);throw new we(2,2,2003)}function qt(i){if(o.TextEncoder&&!Oe().rh()){var u=new TextEncoder;return Ce(u.encode(i))}i=encodeURIComponent(i),i=unescape(i),u=new Uint8Array(i.length);for(var f=0;f",""":'"',"'":"'"," ":" ","‎":"‎","‏":"‏"},f=/&(?:amp|lt|gt|quot|apos|nbsp|lrm|rlm|#[xX]?[0-9a-fA-F]+);/g,m=RegExp(f.source);return i&&m.test(i)?i.replace(f,function(b){return b[1]=="#"?(b=b[2]=="x"||b[2]=="X"?parseInt(b.substring(3),16):parseInt(b.substring(2),10),b>=0&&b<=1114111?String.fromCodePoint(b):""):u[b]||"'"}):i||""}je("shaka.util.StringUtils",nt),nt.resetFromCharCode=function(){fr.g=void 0},nt.toUTF16=yn,nt.toUTF8=qt,nt.fromBytesAutoDetect=Qt,nt.fromUTF16=Ot,nt.fromUTF8=at;var fr=new pt(function(){function i(f){try{var m=new Uint8Array(f);return String.fromCharCode.apply(null,m).length>0}catch{return!1}}for(var u={Oc:65536};u.Oc>0;u={Oc:u.Oc},u.Oc/=2)if(i(u.Oc))return(function(f){return function(m){for(var b="",w=0;w"u"&&rt("Could not find LCEVC Library dependencies on this page"),typeof LCEVCdec<"u")this.h=LCEVCdec;else if(typeof LcevcDil<"u")this.h=LcevcDil,this.j=!0,rn("LcevcDil","lcevc_dil.js is deprecated, please use lcevc_dec.js instead");else{rt("Could not find LCEVC Library on this page"),i=!1;break e}typeof this.h.SupportObject>"u"?(rt("Could not find LCEVC Library on this page"),i=!1):(this.h.SupportObject.SupportStatus||rt(this.h.SupportObject.SupportError),i=typeof this.h<"u"&&typeof libDPIModule<"u"&&this.i instanceof HTMLCanvasElement&&this.h.SupportObject.SupportStatus)}i&&!this.g&&this.h.SupportObject.webGLSupport(this.i)&&(this.i.classList.remove("shaka-hidden"),this.g=this.j?new this.h.LcevcDil(this.l,this.i,this.m):new this.h.LCEVCdec(this.l,this.i,this.m))}function li(i,u,f,m){m.type!=="video"||i.o&&!m.baseOriginalId||i.g&&i.g.appendBuffer(u,"video",m.id,-f,!i.o)}function tu(i){i.g&&i.i.classList.add("shaka-hidden")}Go.prototype.release=function(){this.g&&(this.g.close(),this.g=null)};function Il(i){return i&&typeof LCEVCdec<"u"?i.codecs=="lvc1":!1}je("shaka.lcevc.Dec",Go),Go.prototype.release=Go.prototype.release;function jo(i){if($f.has(i))return $f.get(i);var u=o.ManagedMediaSource||o.MediaSource;return u?(u=u.isTypeSupported(i),$f.set(i,u),u):!1}function hc(){var i=o.ManagedSourceBuffer||o.SourceBuffer;return!!i&&!!i.prototype&&!!i.prototype.changeType}function og(){var i=o.ManagedMediaSource||o.MediaSource;return i&&i.prototype?!!i.prototype.setLiveSeekableRange&&!!i.prototype.clearLiveSeekableRange:!1}var $f=new Map;function nu(){}nu.prototype.extract=function(){},nu.prototype.decode=function(){return[]},nu.prototype.clear=function(){},nu.prototype.getStreams=function(){return[]};function pc(){}pc.prototype.init=function(){},pc.prototype.parse=function(){return[]};function np(){}l=np.prototype,l.init=function(){},l.xf=function(){},l.Nd=function(){},l.remove=function(){},l.Vf=function(){},je("shaka.media.IClosedCaptionParser",np);function Bs(i){this.h=new Map,this.i=0,this.j=new pc,(i=id(i.toLowerCase()))&&(this.j=i()),this.g=new nu,(i=Ou)&&(this.g=i(),this.h.set(this.i,this.g))}l=Bs.prototype,l.init=function(i,u,f){if(u=u===void 0?!1:u,f=f===void 0?-1:f,f!=-1&&this.i!=f){u=f;var m=this.h.get(u);this.h.set(this.i,this.g),m?this.g=m:((m=Ou)&&(this.g=m()),this.h.set(u,this.g))}else u||this.Nd();this.j.init(i),f!=-1&&(this.i=f)},l.xf=function(i){i=this.j.parse(i),i=_(i);for(var u=i.next();!u.done;u=i.next()){u=u.value;var f=Pe(u.packet);f.length>0&&this.g.extract(f,u.pts)}return this.g.decode()},l.Nd=function(){this.g.clear()},l.remove=function(i){i=i===void 0?[]:i,i=new Set(i);for(var u=_(this.h.keys()),f=u.next();!f.done;f=u.next())if(f=f.value,!i.has(f)){var m=this.h.get(f);m&&m.clear(),this.h.delete(f)}},l.Vf=function(){return this.g.getStreams()};function Bf(i,u){jd.set(i,u)}function id(i){return jd.get(i)}je("shaka.media.ClosedCaptionParser",Bs),Bs.findDecoder=function(){return Ou},Bs.unregisterDecoder=function(){Ou=null},Bs.registerDecoder=function(i){Ou=i},Bs.findParser=id,Bs.unregisterParser=function(i){jd.delete(i)},Bs.registerParser=Bf;var jd=new Map,Ou=null;function tl(){this.id="",this.regionAnchorY=this.regionAnchorX=this.viewportAnchorY=this.viewportAnchorX=0,this.height=this.width=100,this.viewportAnchorUnits=this.widthUnits=this.heightUnits=Es,this.scroll=rp}je("shaka.text.CueRegion",tl);var Es=1;tl.units={PX:0,PERCENTAGE:Es,LINES:2};var rp="";tl.scrollMode={NONE:rp,UP:"up"};function vc(i){this.h=i||"",this.g=0}function mc(i){$u(i,/[ \t]+/gm)}function $u(i,u){return u.lastIndex=i.g,u=u.exec(i.h),u=u==null?null:{position:u.index,length:u[0].length,results:u},i.g==i.h.length||u==null||u.position!=i.g?null:(i.g+=u.length,u.results)}function gc(i){return i.g==i.h.length?null:(i=$u(i,/[^ \t\n]*/gm))?i[0]:null}function Nf(i){if(i=$u(i,Jt),i==null)return null;var u=Number(i[2]),f=Number(i[3]);return u>59||f>59?null:(Number(i[6])||0)/1e3+f+u*60+(Number(i[1])||0)*3600}function Lt(i){return i?Nf(new vc(i)):null}var Jt=/(?:(\d{1,}):)?(\d{2}):(\d{2})((\.(\d{1,3})))?/g;function un(){}function vn(i){function u(m){switch(typeof m){case"undefined":case"boolean":case"number":case"string":case"symbol":case"function":return m;default:if(!m||ArrayBuffer.isView(m))return m;if(f.has(m))return null;var b=Array.isArray(m);if(m.constructor!=Object&&!b)return null;f.add(m);var w=b?[]:{},A;for(A in m)w[A]=u(m[A]);return b&&(w.length=m.length),w}}var f=new WeakSet;return u(i)}function Dn(i){var u={},f;for(f in i)u[f]=i[f];return u}function er(i){if(Array.isArray(i)){for(var u=[],f=0;f",b),A=i.substring(A,b);var N=A.indexOf(w);if(N==-1){var V=w.indexOf(".");V>0&&(N=A.indexOf(w.substring(0,V)))}if(N==-1)throw w=i.substring(0,b).split(` `),Error(`Unexpected close tag Line: `+(w.length-1)+` Column: `+(w[w.length-1].length+1)+` Char: `+i[b]);b+1&&(b+=1);break}else if(i.charCodeAt(b+1)===33){if(i.charCodeAt(b+2)==45){for(;b!==-1&&(i.charCodeAt(b)!==62||i.charCodeAt(b-1)!=45||i.charCodeAt(b-2)!=45||b==-1);)b=i.indexOf(">",b+1);b===-1&&(b=i.length)}else if(i.charCodeAt(b+2)===91&&i.charCodeAt(b+8)===91&&i.substr(b+3,5).toLowerCase()==="cdata"){N=i.indexOf("]]>",b),N==-1?(R.push(i.substr(b+9)),b=i.length):(R.push(i.substring(b+9,N)),b=N+3);continue}b++;continue}e:{V=A,b++;var K=m(),Y={};for(N=[];i.charCodeAt(b)!==62&&i[b];){var se=i.charCodeAt(b);if(se>64&&se<91||se>96&&se<123){se=m();for(var ce=i.charCodeAt(b);ce&&ce!==39&&ce!==34&&!(ce>64&&ce<91||ce>96&&ce<123)&&ce!==62;)b++,ce=i.charCodeAt(b);var pe=b+1;if(b=i.indexOf(i[b],pe),pe=i.slice(pe,b),ce===39||ce===34){if(b===-1){if(V={tagName:K,attributes:Y,children:N,parent:null},u)for(K=0;K0&&R.push(N):(R.length&&N.length==1&&N[0]==` `||N.trim().length>0)&&R.push(N),b++;return R}function m(){for(var w=b;`\r >/= `.indexOf(i[b])===-1&&i[b];)b++;return i.slice(w,b)}var b=0;return f("")}function Bu(i){return typeof i=="string"}function yc(i){var u=[];if(!i.children)return[];i=_(i.children);for(var f=i.next();!f.done;f=i.next())f=f.value,typeof f!="string"&&u.push(f);return u}function Fr(i,u){var f=[];if(!i.children)return[];i=_(i.children);for(var m=i.next();!m.done;m=i.next())m=m.value,m.tagName===u&&f.push(m);return f}function kr(i){return typeof i=="string"?dn(i):(i=i.children.reduce(function(u,f){return typeof f=="string"?u+f:u},""),i===""?null:dn(i))}function mo(i){return Array.from(i.children).every(function(u){return typeof u=="string"})?((i=kr(i))&&(i=i.trim()),i):null}function Aa(i,u,f){if(f=f===void 0?[]:f,i.tagName===u&&f.push(i),i.children){i=_(i.children);for(var m=i.next();!m.done;m=i.next())Aa(m.value,u,f)}return f}function si(i,u){return i=Fr(i,u),i.length!=1?null:i[0]}function Ia(i,u,f){return i=ES(i,u,f),i.length!=1?null:i[0]}function Bn(i,u,f,m){m=m===void 0?null:m;var b=null;return i=i.attributes[u],i!=null&&(b=f(i)),b??m}function Nu(i,u,f){return u=Ji(u),i.attributes[u+":"+f]||null}function ES(i,u,f){var m=Ji(u);if(u=[],i.children)for(f=m?m+":"+f:f,i=_(i.children),m=i.next();!m.done;m=i.next())(m=m.value)&&m.tagName===f&&u.push(m);return u}function Ns(i,u,f){u=_(u);for(var m=u.next();!m.done;m=u.next())if(m=Nu(i,m.value,f))return m;return null}function Ff(i){return i?(/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(i)&&(i+="Z"),i=Date.parse(i),isNaN(i)?null:i/1e3):null}function Vd(i){return!i||(i=RegExp("^P(?:([0-9]*)Y)?(?:([0-9]*)M)?(?:([0-9]*)D)?(?:T(?:([0-9]*)H)?(?:([0-9]*)M)?(?:([0-9.]*)S)?)?$","i").exec(i),!i)?null:(i=31536e3*Number(i[1]||null)+2592e3*Number(i[2]||null)+86400*Number(i[3]||null)+3600*Number(i[4]||null)+60*Number(i[5]||null)+Number(i[6]||null),isFinite(i)?i:null)}function TS(i){var u=/([0-9]+)-([0-9]+)/.exec(i);return!u||(i=Number(u[1]),!isFinite(i))?null:(u=Number(u[2]),isFinite(u)?{start:i,end:u}:null)}function Fs(i){return i=Number(i),i%1===0?i:null}function zd(i){return i=Number(i),i%1===0&&i>0?i:null}function js(i){return i=Number(i),i%1===0&&i>=0?i:null}function AS(i){return i=Number(i),isNaN(i)?null:i}function IS(i){return i?i.toLowerCase()==="true":!1}function Jbe(i){var u,f=(u=i.match(/^(\d+)\/(\d+)$/))?Number(u[1])/Number(u[2]):Number(i);return isNaN(f)?null:f}function LS(i){var u=[];i=dn(i).split(/\/+(?=(?:[^'"]*['"][^'"]*['"])*[^'"]*$)/),i=_(i);for(var f=i.next();!f.done;f=i.next()){f=f.value;var m=f.match(/^([\w]+)/);if(m){var b=f.match(/(@id='(.*?)')/),w=f.match(/(@t='(\d+)')/),A=f.match(/(@n='(\d+)')/),R=f.match(/\[(\d+)\]/);u.push({name:m[0],id:b?b[0].match(/'(.*?)'/)[0].replace(/'/gm,""):null,t:w?Number(w[0].match(/'(.*?)'/)[0].replace(/'/gm,"")):null,n:A?Number(A[0].match(/'(.*?)'/)[0].replace(/'/gm,"")):null,position:R?Number(R[1])-1:null,Cc:f.split("/@")[1]||null})}else f.startsWith("@")&&u.length&&(u[u.length-1].Cc=f.slice(1))}return u}function MK(i,u){var f=LS(u.attributes.sel||"");if(f.length){var m=f[f.length-1],b=u.attributes.pos||null;f=m.position,f==null&&(m.t!==null&&(f=OK(i,"t",m.t)),m.n!==null&&(f=OK(i,"n",m.n))),f===null?f=b==="prepend"?0:i.length:b==="prepend"?--f:b==="after"&&++f,b=u.tagName,(m=m.Cc)&&i[f]?$K(i[f],b,m,mo(u)||""):(b!=="remove"&&b!=="replace"||i.splice(f,1),b!=="add"&&b!=="replace"||i.splice.apply(i,[f,0].concat(T(u.children))))}}function OK(i,u,f){var m=0;i=_(i);for(var b=i.next();!b.done;b=i.next()){if(Number(b.value.attributes[u])===f)return m;m++}return null}function $K(i,u,f,m){u==="remove"?delete i.attributes[f]:(u==="add"||u==="replace")&&(i.attributes[f]=m)}function BK(i){var u="",f=i.tagName.split(":");f.length>0&&(u=f[0],u=CI.has(u)?CI.get(u):""),u=document.createElementNS(u,i.tagName);for(var m in i.attributes)u.setAttribute(m,i.attributes[m]);for(i=_(i.children),m=i.next();!m.done;m=i.next())m=m.value,f=void 0,typeof m=="string"?f=new Text(m):f=BK(m),u.appendChild(f);return u}function kI(i){if(!i)return null;var u={tagName:i.tagName,attributes:Dn(i.attributes),children:[],parent:null};i=_(i.children);for(var f=i.next();!f.done;f=i.next())f=f.value,typeof f=="string"||(f=kI(f),f.parent=u),u.children.push(f);return u}var xI=new Map,CI=new Map;function Oi(i,u,f){this.startTime=i,this.endTime=u,this.payload=f,this.region=new tl,this.position=null,this.positionAlign=RS,this.size=0,this.textAlign=Ud,this.direction=C3,this.writingMode=W0,this.lineInterpretation=w3,this.line=null,this.lineHeight="",this.lineAlign=G0,this.displayAlign=x3,this.fontSize=this.border=this.backgroundImage=this.backgroundColor=this.color="",this.fontWeight=HK,this.fontStyle=TI,this.linePadding=this.letterSpacing=this.fontFamily="",this.opacity=1,this.textCombineUpright="",this.textDecoration=[],this.textStrokeWidth=this.textStrokeColor=this.textShadow="",this.wrapLine=!0,this.id="",this.nestedCues=[],this.lineBreak=this.isContainer=!1,this.rubyTag=null,this.cellResolution={columns:32,rows:15}}function NK(i,u){return i=new Oi(i,u,""),i.lineBreak=!0,i}Oi.prototype.clone=function(){var i=new Oi(0,0,""),u;for(u in this)i[u]=this[u],Array.isArray(i[u])&&(i[u]=i[u].slice());return i};function DS(i,u){if(i.payload!=u.payload||!(Math.abs(i.startTime-u.startTime)<.001&&Math.abs(i.endTime-u.endTime)<.001))return!1;for(var f in i)if(f!="startTime"&&f!="endTime"&&f!="payload"){if(f=="nestedCues"){if(!ct(i.nestedCues,u.nestedCues,DS))return!1}else if(f=="region"||f=="cellResolution"){for(var m in i[f])if(i[f][m]!=u[f][m])return!1}else if(Array.isArray(i[f])){if(!ct(i[f],u[f]))return!1}else if(i[f]!=u[f])return!1}return!0}function PS(i,u){u=u===void 0?new Map:u;var f=i.payload;if(f.includes("<")){u.size===0&&FK(u);var m=f;f=[];for(var b=-1,w=0;w"&&b>0&&(b=m.substr(b,w-b),b.match(e_e)&&f.push(b),b=-1);for(f=_(f),w=f.next();!w.done;w=f.next())w=w.value,m=m.replace("<"+w+">",'
'),m+="
";e:{w=m,b=[];var A=-1;f="",m=!1;for(var R=0;R",R);if(N===-1){f=w;break e}if((N=w.substring(R+1,N))&&N=="v"){m=!0;var V=null;if(b.length&&(V=b[b.length-1]),V){if(V===N)f+="/"+N+">";else{if(!V.startsWith("v")){f+=w[R];continue}f+="/"+V+">"}R+=N.length+1}else f+=w[R]}else f+=w[R]}else w[R]==="<"?(A=R+1,w[A]!="v"&&(A=-1)):w[R]===">"&&A>0&&(b.push(w.substr(A,R-A)),A=-1),f+=w[R];for(w=_(b),b=w.next();!b.done;b=w.next())b=b.value,A=b.replace(" ",".voice-"),f=f.replace("<"+b+">","<"+A+">"),f=f.replace("",""),m||(f+="")}f=Qbe(f),i.payload="",m=""+f.replace(/\n/g,"
")+"
";try{var K=ui(m,"span")}catch{}if(K)if(K=K.children,K.length!=1||K[0].tagName)for(K=_(K),f=K.next();!f.done;f=K.next())jK(f.value,i,u);else i.payload=dn(f);else i.payload=dn(f)}else i.payload=dn(f)}function FK(i){for(var u=_(Object.entries(zK)),f=u.next();!f.done;f=u.next()){var m=_(f.value);f=m.next().value,m=m.next().value;var b=new Oi(0,0,"");b.color=m,i.set("."+f,b)}for(u=_(Object.entries(UK)),f=u.next();!f.done;f=u.next())m=_(f.value),f=m.next().value,m=m.next().value,b=new Oi(0,0,""),b.backgroundColor=m,i.set("."+f,b)}function Qbe(i){var u={"< ":""," >":" >"},f=/(< +>|<\s|\s>)/g,m=RegExp(f.source);return i&&m.test(i)?i.replace(f,function(b){return u[b]||""}):i||""}function jK(i,u,f){var m=u.clone();if(m.nestedCues=[],m.payload="",m.rubyTag="",m.line=null,m.region=new tl,m.position=null,m.size=0,m.textAlign=Ud,i.tagName)for(var b=_(i.tagName.split(/(?=[ .])+/g)),w=b.next();!w.done;w=b.next()){var A=w=w.value;if(A.startsWith(".voice-")){var R=A.split("-").pop();A='v[voice="'+R+'"]',f.has(A)||(A="v[voice="+R+"]")}switch(f.has(A)&&(R=m,A=f.get(A))&&(R.backgroundColor=k3(A.backgroundColor,R.backgroundColor),R.color=k3(A.color,R.color),R.fontFamily=k3(A.fontFamily,R.fontFamily),R.fontSize=k3(A.fontSize,R.fontSize),R.textShadow=k3(A.textShadow,R.textShadow),R.fontWeight=A.fontWeight,R.fontStyle=A.fontStyle,R.opacity=A.opacity,R.rubyTag=A.rubyTag,R.textCombineUpright=A.textCombineUpright,R.wrapLine=A.wrapLine),w){case"br":m=NK(m.startTime,m.endTime),u.nestedCues.push(m);return;case"b":m.fontWeight=sg;break;case"i":m.fontStyle=ag;break;case"u":m.textDecoration.push(jf);break;case"font":(w=i.attributes.color)&&(m.color=w);break;case"div":if(w=i.attributes.time,!w)break;(w=Lt(w))&&(m.startTime=w);break;case"ruby":case"rp":case"rt":m.rubyTag=w}}if(b=i.children,Bu(i)||b.length==1&&Bu(b[0]))for(f=kr(i).split(` `),i=!0,f=_(f),b=f.next();!b.done;b=f.next())b=b.value,i||(i=NK(m.startTime,m.endTime),u.nestedCues.push(i)),b.length>0&&(i=m.clone(),i.payload=dn(b),u.nestedCues.push(i)),i=!1;else for(u.nestedCues.push(m),u=_(b),i=u.next();!i.done;i=u.next())jK(i.value,m,f)}function k3(i,u){return i&&i.length>0?i:u}je("shaka.text.Cue",Oi),Oi.parseCuePayload=PS,Oi.equal=DS,Oi.prototype.clone=Oi.prototype.clone;var RS="auto";Oi.positionAlign={LEFT:"line-left",RIGHT:"line-right",CENTER:"center",AUTO:RS};var Ud="center",wI={LEFT:"left",RIGHT:"right",CENTER:Ud,START:"start",END:"end"};Oi.textAlign=wI;var x3="after",VK={BEFORE:"before",CENTER:"center",AFTER:x3};Oi.displayAlign=VK;var C3="ltr";Oi.direction={HORIZONTAL_LEFT_TO_RIGHT:C3,HORIZONTAL_RIGHT_TO_LEFT:"rtl"};var W0="horizontal-tb";Oi.writingMode={HORIZONTAL_TOP_TO_BOTTOM:W0,VERTICAL_LEFT_TO_RIGHT:"vertical-lr",VERTICAL_RIGHT_TO_LEFT:"vertical-rl"};var w3=0;Oi.lineInterpretation={LINE_NUMBER:w3,PERCENTAGE:1};var G0="start",EI={CENTER:"center",START:G0,END:"end"};Oi.lineAlign=EI;var zK={white:"white",lime:"lime",cyan:"cyan",red:"red",yellow:"yellow",magenta:"magenta",blue:"blue",black:"black"};Oi.defaultTextColor=zK;var UK={bg_white:"white",bg_lime:"lime",bg_cyan:"cyan",bg_red:"red",bg_yellow:"yellow",bg_magenta:"magenta",bg_blue:"blue",bg_black:"black"};Oi.defaultTextBackgroundColor=UK;var HK=400,sg=700;Oi.fontWeight={NORMAL:HK,BOLD:sg};var TI="normal",ag="italic",WK={NORMAL:TI,ITALIC:ag,OBLIQUE:"oblique"};Oi.fontStyle=WK;var jf="underline";Oi.textDecoration={UNDERLINE:jf,LINE_THROUGH:"lineThrough",OVERLINE:"overline"};var e_e=/(?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{2,3})/g;function ip(){}ip.prototype.destroy=function(){};function Vf(i,u,f){AI.set(i.toLowerCase().split(";")[0]+"-"+f,{priority:f,yf:u})}function lg(i,u){for(var f=i.toLowerCase().split(";")[0],m=_([GK,LI,II,op]),b=m.next();!b.done;b=m.next())if(b=AI.get(f+"-"+b.value)){var w=b.yf(),A=w.isSupported(i,u);if(w.destroy(),A)return b.yf}return null}je("shaka.transmuxer.TransmuxerEngine",ip),ip.findTransmuxer=lg,ip.unregisterTransmuxer=function(i,u){AI.delete(i.toLowerCase().split(";")[0]+"-"+u)},ip.registerTransmuxer=Vf,ip.prototype.destroy=ip.prototype.destroy;var AI=new Map,op=1,II=2,LI=3,GK=4;ip.PluginPriority={FALLBACK:op,PREFERRED_SECONDARY:II,PREFERRED:LI,APPLICATION:GK};function DI(){}function So(i,u){var f=i;return u&&!zf.includes(i)&&(f+='; codecs="'+u+'"'),f}function MS(i,u){return u&&(i+='; codecs="'+u+'"'),i}function PI(i,u,f){var m=So(i,u);return u=MS(i,u),lg(u)?(i=lg(u))?(i=i(),f=i.convertCodecs(f,u),i.destroy()):f=u:f=i!="video/mp2t"&&f=="audio"?m.replace("video","audio"):m,f}function E3(i){return i.split(";")[0].split("/")[1]}function Js(i){var u=KK(i);switch(i=u[0].toLowerCase(),u=u[1].toLowerCase(),!0){case(i==="mp4a"&&u==="69"):case(i==="mp4a"&&u==="6b"):case(i==="mp4a"&&u==="40.34"):return"mp3";case(i==="mp4a"&&u==="66"):case(i==="mp4a"&&u==="67"):case(i==="mp4a"&&u==="68"):case(i==="mp4a"&&u==="40.2"):case(i==="mp4a"&&u==="40.02"):case(i==="mp4a"&&u==="40.5"):case(i==="mp4a"&&u==="40.05"):case(i==="mp4a"&&u==="40.29"):case(i==="mp4a"&&u==="40.42"):return"aac";case(i==="mp4a"&&u==="a5"):case i==="ac3":case i==="ac-3":return"ac-3";case(i==="mp4a"&&u==="a6"):case i==="eac3":case i==="ec-3":return"ec-3";case i==="ac-4":return"ac-4";case(i==="mp4a"&&u==="b2"):return"dtsx";case(i==="mp4a"&&u==="a9"):return"dtsc";case i==="vp09":case i==="vp9":return"vp9";case i==="avc1":case i==="avc3":return"avc";case i==="hvc1":case i==="hev1":return"hevc";case i==="vvc1":case i==="vvi1":return"vvc";case i==="dvh1":case i==="dvhe":return u&&u.startsWith("05")?"dovi-p5":"dovi-hevc";case i==="dvav":case i==="dva1":return"dovi-avc";case i==="dav1":return"dovi-av1";case i==="dvc1":case i==="dvi1":return"dovi-vvc"}return i}function sp(i){var u=[];i=_(i.split(","));for(var f=i.next();!f.done;f=i.next())f=KK(f.value),u.push(f[0]);return u.sort().join(",")}function Ll(i){return i.split(";")[0]}function nl(i){return i=i.split(/ *; */),i.shift(),(i=i.find(function(u){return u.startsWith("codecs=")}))?i.split("=")[1].replace(/^"|"$/g,""):""}function T3(i){return i==="application/x-mpegurl"||i==="application/vnd.apple.mpegurl"}function KK(i){i=i.split(".");var u=i[0];return i.shift(),[u,i.join(".")]}je("shaka.util.MimeUtils",DI),DI.getFullTypeWithAllCodecs=MS,DI.getFullType=So,new Map().set("codecs","codecs").set("frameRate","framerate").set("bandwidth","bitrate").set("width","width").set("height","height").set("channelsCount","channels");var zf=["audio/aac","audio/ac3","audio/ec3","audio/mpeg"];function Uf(i){this.i=null,this.l=i,this.C=!1,this.m=this.u=0,this.o=1/0,this.h=this.g=null,this.F="",this.B=function(){},this.j=new Map}function Vs(i,u){L3.set(i,u)}function A3(i){return L3.get(i)}function I3(i){return L3.has(i)?!0:i=="application/cea-608"||i=="application/cea-708"?!!Ou:!1}Uf.prototype.destroy=function(){return this.l=this.i=null,this.j.clear(),Promise.resolve()};function t_e(i,u,f,m,b){var w,A,R,N,V,K,Y;return re(function(se){if(se.g==1)return L(se,Promise.resolve(),2);if(!i.i||!i.l)return se.return();if(f==null||m==null)return i.i.parseInit(Pe(u)),se.return();for(w=i.C?f:i.u,A={periodStart:i.u,segmentStart:f,segmentEnd:m,vttOffset:w},R=i.i.parseMedia(Pe(u),A,b,[]),N=_(R),V=N.next();!V.done;V=N.next())K=V.value,i.B(K,b||null,A);Y=R.filter(function(ce){return ce.startTime>=i.m&&ce.startTime=u)return b.return();f&&i_e(m,i,u),m.l&&m.l.remove(i,u)&&m.g!=null&&(u<=m.g||i>=m.h||(i<=m.g&&u>=m.h?m.g=m.h=null:i<=m.g&&um.g&&u>=m.h&&(m.h=i)),XK(m)),B(b)})};function n_e(i,u,f){i.m=u,i.o=f}function qK(i,u,f){i.F=u,(u=i.j.get(u))&&(u=u.filter(function(m){return m.endTime<=f}),u.length&&i.l.append(u))}function YK(i,u,f){u.startTime+=f,u.endTime+=f,u=_(u.nestedCues);for(var m=u.next();!m.done;m=u.next())YK(i,m.value,f)}function r_e(i,u,f){var m=new Map;u=_(u);for(var b=u.next();!b.done;b=u.next()){var w=b.value;b=w.stream,w=w.cue,m.has(b)||m.set(b,[]),YK(i,w,f),w.startTime>=i.m&&w.startTime=f}),i.j.set(b,w)}}function XK(i){for(var u=1/0,f=-1/0,m=_(i.j.values()),b=m.next();!b.done;b=m.next()){b=_(b.value);for(var w=b.next();!w.done;w=b.next())w=w.value,u=Math.min(u,w.startTime),f=Math.max(f,w.endTime)}u!==1/0&&f!==-1/0&&(i.g=i.g==null?Math.max(u,i.m):Math.min(i.g,Math.max(u,i.m)),i.h=Math.max(i.h,Math.min(f,i.o)))}je("shaka.text.TextEngine",Uf),Uf.prototype.destroy=Uf.prototype.destroy,Uf.findParser=A3,Uf.unregisterParser=function(i){L3.delete(i)},Uf.registerParser=Vs;var L3=new Map;function D3(i){this.h=i,this.g=null}D3.prototype.ia=function(i){var u=this;this.stop();var f=!0,m=null;return this.g=function(){o.clearTimeout(m),f=!1},m=o.setTimeout(function(){f&&u.h()},i*1e3),this},D3.prototype.stop=function(){this.g&&(this.g(),this.g=null)};function yr(i){this.h=i,this.g=null}yr.prototype.Jb=function(){return this.stop(),this.h(),this},yr.prototype.ia=function(i){var u=this;return this.stop(),this.g=new D3(function(){u.h()}).ia(i),this},yr.prototype.Ea=function(i){var u=this;return this.stop(),this.g=new D3(function(){u.g.ia(i),u.h()}).ia(i),this},yr.prototype.stop=function(){this.g&&(this.g.stop(),this.g=null)},je("shaka.util.Timer",yr),yr.prototype.stop=yr.prototype.stop,yr.prototype.tickEvery=yr.prototype.Ea,yr.prototype.tickAfter=yr.prototype.ia,yr.prototype.tickNow=yr.prototype.Jb;function o_e(i,u){return i.concat(u)}function s_e(){}function ap(i){return i!=null}function OS(i,u){return Promise.race([u,new Promise(function(f,m){new yr(m).ia(i)})])}function bc(){}function ug(i,u){return i=Xr(i),u=Xr(u),i.split("-")[0]==u.split("-")[0]}function P3(i,u){return i=Xr(i),u=Xr(u),i=i.split("-"),u=u.split("-"),i[0]==u[0]&&i.length==1&&u.length==2}function RI(i,u){return i=Xr(i),u=Xr(u),i=i.split("-"),u=u.split("-"),i.length==2&&u.length==2&&i[0]==u[0]}function Xr(i){i=_(i.split("-x-"));var u=i.next().value;u=u===void 0?"":u,i=i.next().value,i=i===void 0?"":i;var f=_(u.split("-"));return u=f.next().value,u=u===void 0?"":u,f=f.next().value,f=f===void 0?"":f,i=i?"x-"+i:"",u=u.toLowerCase(),u=ZK.get(u)||u,f=f.toUpperCase(),(f?u+"-"+f:u)+(i?"-"+i:"")}function K0(i,u){return i=Xr(i),u=Xr(u),u==i?4:P3(u,i)?3:RI(u,i)?2:P3(i,u)?1:0}function $S(i){var u=i.indexOf("-");return i=u>=0?i.substring(0,u):i,i=i.toLowerCase(),i=ZK.get(i)||i}function MI(i){return i.language?Xr(i.language):i.audio&&i.audio.language?Xr(i.audio.language):i.video&&i.video.language?Xr(i.video.language):"und"}function BS(i,u){i=Xr(i);var f=new Set;u=_(u);for(var m=u.next();!m.done;m=u.next())f.add(Xr(m.value));for(u=_(f),m=u.next();!m.done;m=u.next())if(m=m.value,m==i)return m;for(u=_(f),m=u.next();!m.done;m=u.next())if(m=m.value,P3(m,i))return m;for(u=_(f),m=u.next();!m.done;m=u.next())if(m=m.value,RI(m,i))return m;for(f=_(f),u=f.next();!u.done;u=f.next())if(u=u.value,P3(i,u))return u;return null}je("shaka.util.LanguageUtils",bc),bc.findClosestLocale=BS,bc.getLocaleForVariant=MI,bc.getLocaleForText=function(i){return Xr(i.language||"und")},bc.getBase=$S,bc.relatedness=K0,bc.areSiblings=function(i,u){var f=$S(i),m=$S(u);return i!=f&&u!=m&&f==m},bc.normalize=Xr,bc.isSiblingOf=RI,bc.isParentOf=P3,bc.areLanguageCompatible=ug,bc.areLocaleCompatible=function(i,u){return i=Xr(i),u=Xr(u),i==u};var ZK=new Map([["aar","aa"],["abk","ab"],["afr","af"],["aka","ak"],["alb","sq"],["amh","am"],["ara","ar"],["arg","an"],["arm","hy"],["asm","as"],["ava","av"],["ave","ae"],["aym","ay"],["aze","az"],["bak","ba"],["bam","bm"],["baq","eu"],["bel","be"],["ben","bn"],["bih","bh"],["bis","bi"],["bod","bo"],["bos","bs"],["bre","br"],["bul","bg"],["bur","my"],["cat","ca"],["ces","cs"],["cha","ch"],["che","ce"],["chi","zh"],["chu","cu"],["chv","cv"],["cor","kw"],["cos","co"],["cre","cr"],["cym","cy"],["cze","cs"],["dan","da"],["deu","de"],["div","dv"],["dut","nl"],["dzo","dz"],["ell","el"],["eng","en"],["epo","eo"],["est","et"],["eus","eu"],["ewe","ee"],["fao","fo"],["fas","fa"],["fij","fj"],["fin","fi"],["fra","fr"],["fre","fr"],["fry","fy"],["ful","ff"],["geo","ka"],["ger","de"],["gla","gd"],["gle","ga"],["glg","gl"],["glv","gv"],["gre","el"],["grn","gn"],["guj","gu"],["hat","ht"],["hau","ha"],["heb","he"],["her","hz"],["hin","hi"],["hmo","ho"],["hrv","hr"],["hun","hu"],["hye","hy"],["ibo","ig"],["ice","is"],["ido","io"],["iii","ii"],["iku","iu"],["ile","ie"],["ina","ia"],["ind","id"],["ipk","ik"],["isl","is"],["ita","it"],["jav","jv"],["jpn","ja"],["kal","kl"],["kan","kn"],["kas","ks"],["kat","ka"],["kau","kr"],["kaz","kk"],["khm","km"],["kik","ki"],["kin","rw"],["kir","ky"],["kom","kv"],["kon","kg"],["kor","ko"],["kua","kj"],["kur","ku"],["lao","lo"],["lat","la"],["lav","lv"],["lim","li"],["lin","ln"],["lit","lt"],["ltz","lb"],["lub","lu"],["lug","lg"],["mac","mk"],["mah","mh"],["mal","ml"],["mao","mi"],["mar","mr"],["may","ms"],["mkd","mk"],["mlg","mg"],["mlt","mt"],["mon","mn"],["mri","mi"],["msa","ms"],["mya","my"],["nau","na"],["nav","nv"],["nbl","nr"],["nde","nd"],["ndo","ng"],["nep","ne"],["nld","nl"],["nno","nn"],["nob","nb"],["nor","no"],["nya","ny"],["oci","oc"],["oji","oj"],["ori","or"],["orm","om"],["oss","os"],["pan","pa"],["per","fa"],["pli","pi"],["pol","pl"],["por","pt"],["pus","ps"],["que","qu"],["roh","rm"],["ron","ro"],["rum","ro"],["run","rn"],["rus","ru"],["sag","sg"],["san","sa"],["sin","si"],["slk","sk"],["slo","sk"],["slv","sl"],["sme","se"],["smo","sm"],["sna","sn"],["snd","sd"],["som","so"],["sot","st"],["spa","es"],["sqi","sq"],["srd","sc"],["srp","sr"],["ssw","ss"],["sun","su"],["swa","sw"],["swe","sv"],["tah","ty"],["tam","ta"],["tat","tt"],["tel","te"],["tgk","tg"],["tgl","tl"],["tha","th"],["tib","bo"],["tir","ti"],["ton","to"],["tsn","tn"],["tso","ts"],["tuk","tk"],["tur","tr"],["twi","tw"],["uig","ug"],["ukr","uk"],["urd","ur"],["uzb","uz"],["ven","ve"],["vie","vi"],["vol","vo"],["wel","cy"],["wln","wa"],["wol","wo"],["xho","xh"],["yid","yi"],["yor","yo"],["zha","za"],["zho","zh"],["zul","zu"]]);function JK(){}function QK(i,u,f,m,b){function w($e){var De=String($e.width||"")+String($e.height||"")+String(Math.round($e.frameRate||0))+($e.hdr||"")+$e.fastSwitching;return $e.dependencyStream&&(De+=$e.dependencyStream.baseOriginalId||""),$e.roles&&(De+=$e.roles.sort().join("_")),De}function A($e){var De=$e.language+($e.channelsCount||0)+($e.audioSamplingRate||0)+$e.roles.join(",")+$e.label+$e.groupId+$e.fastSwitching;return $e.dependencyStream&&(De+=$e.dependencyStream.baseOriginalId||""),De}if(b.length){var R=i.textStreams;b=_(b);for(var N=b.next(),V={};!N.done;V={Bh:void 0},N=b.next())if(V.Bh=N.value,N=R.filter((function($e){return function(De){return!!(De.codecs.startsWith($e.Bh)||De.mimeType.startsWith($e.Bh))}})(V)),N.length){R=N;break}i.textStreams=R}if(R=i.variants,(u.length||f.length)&&(R=a_e(R,u,f)),m.length){for(u=new Be,f=_(R),R=f.next();!R.done;R=f.next())R=R.value,u.push(String(R.video.width||0),R);var K=[];u.forEach(function($e,De){$e=0;var qe=[];De=_(De);for(var ot=De.next(),bt={};!ot.done;bt={Tf:void 0},ot=De.next())bt.Tf=ot.value,ot=m.filter((function(tt){return function(Ge){return tt.Tf.decodingInfos[0][Ge]}})(bt)).length,ot>$e?($e=ot,qe=[bt.Tf]):ot==$e&&qe.push(bt.Tf);K.push.apply(K,T(qe))}),R=K}for(f=new Set,u=new Set,R=_(R),b=R.next();!b.done;b=R.next())b=b.value,b.audio&&f.add(b.audio),b.video&&u.add(b.video);R=Array.from(f).sort(function($e,De){return $e.bandwidth-De.bandwidth});var Y=[];for(f=new Map,R=_(R),b=R.next();!b.done;b=R.next()){if(b=b.value,N=A(b),V=f.get(N)||[],V.length){var se=V[V.length-1],ce=Js(se.codecs),pe=Js(b.codecs);ce!=pe||b.bandwidth&&se.bandwidth&&!(b.bandwidth>se.bandwidth)||(V.push(b),Y.push(b.id))}else V.push(b),Y.push(b.id);f.set(N,V)}var ve={vp8:1,avc:1,"dovi-avc":.95,vp9:.9,vp09:.9,hevc:.85,"dovi-hevc":.8,"dovi-p5":.75,av01:.7,"dovi-av1":.65,vvc:.6};R=Array.from(u).sort(function($e,De){if(!$e.bandwidth||!De.bandwidth||$e.bandwidth==De.bandwidth){if($e.codecs&&De.codecs&&$e.codecs!=De.codecs&&$e.width==De.width){var qe=Js($e.codecs),ot=Js(De.codecs);if(qe!=ot)return(ve[qe]||1)-(ve[ot]||1)}return $e.width-De.width}return $e.bandwidth-De.bandwidth}),u=hc();var ye=[];for(f=new Map,R=_(R),b=R.next();!b.done;b=R.next()){if(b=b.value,N=w(b),V=f.get(N)||[],V.length){if(se=V[V.length-1],!u&&(ce=Js(se.codecs),pe=Js(b.codecs),ce!==pe))continue;ce=Js(se.codecs),pe=Js(b.codecs),ce!=pe||b.bandwidth&&se.bandwidth&&!(b.bandwidth>se.bandwidth)||(V.push(b),ye.push(b.id))}else V.push(b),ye.push(b.id);f.set(N,V)}i.variants=i.variants.filter(function($e){var De=$e.audio;return $e=$e.video,!(De&&!Y.includes(De.id)||$e&&!ye.includes($e.id))})}function a_e(i,u,f){u=_(u);for(var m=u.next(),b={};!m.done;b={videoCodec:void 0},m=u.next())if(b.videoCodec=m.value,m=i.filter((function(w){return function(A){return A.video&&A.video.codecs.startsWith(w.videoCodec)}})(b)),m.length){i=m;break}for(f=_(f),u=f.next(),m={};!u.done;m={audioCodec:void 0},u=f.next())if(m.audioCodec=u.value,u=i.filter((function(w){return function(A){return A.audio&&A.audio.codecs.startsWith(w.audioCodec)}})(m)),u.length){i=u;break}return i}function l_e(i,u,f){i.variants=i.variants.filter(function(m){return NS(m,u,f)})}function NS(i,u,f){function m(R,N,V){return R>=N&&R<=V}var b=i.video;if(b&&b.width&&b.height){var w=b.width,A=b.height;if(A>w&&(A=_([A,w]),w=A.next().value,A=A.next().value),!m(w,u.minWidth,Math.min(u.maxWidth,f.width))||!m(A,u.minHeight,Math.min(u.maxHeight,f.height))||!m(b.width*b.height,u.minPixels,u.maxPixels))return!1}return!(i&&i.video&&i.video.frameRate&&!m(i.video.frameRate,u.minFrameRate,u.maxFrameRate)||i&&i.audio&&i.audio.channelsCount&&!m(i.audio.channelsCount,u.minChannelsCount,u.maxChannelsCount)||!m(i.bandwidth,u.minBandwidth,u.maxBandwidth))}function u_e(i,u,f,m){return f=f===void 0?[]:f,m=m===void 0?{}:m,re(function(b){return b.g==1?L(b,eq(i,u,u.offlineSessionIds.length>0,f,m),2):(h_e(u),L(b,p_e(u),0))})}function eq(i,u,f,m,b){var w,A;return re(function(R){if(R.g==1)return Oe().Ui()&&c_e(u.variants),L(R,OI(u.variants,f,!1,m),2);w=null,i&&(A=i.g)&&(w=A.keySystem),u.variants=u.variants.filter(function(N){var V=d_e(N,w,b);if(!V){var K=[];N.audio&&K.push(aq(N.audio)),N.video&&K.push(aq(N.video))}return V}),B(R)})}function c_e(i){var u=new Map().set("dvav","avc3").set("dva1","avc1").set("dvhe","hev1").set("dvh1","hvc1").set("dvc1","vvc1").set("dvi1","vvi1"),f=new Set;i=_(i);for(var m=i.next();!m.done;m=i.next())m=m.value,m.video&&f.add(m.video);for(f=_(f),i=f.next();!i.done;i=f.next()){i=i.value,m=_(u);for(var b=m.next();!b.done;b=m.next()){var w=_(b.value);if(b=w.next().value,w=w.next().value,i.codecs.includes(b)){i.codecs=i.codecs.replace(b,w);break}}}}function d_e(i,u,f){if(!i.decodingInfos.some(function(N){return!(!N.supported||u&&(N=N.keySystemAccess)&&(f[N.keySystem]||N.keySystem)!=u)}))return!1;var m=Oe(),b=m.Nb()==="Xbox";m=m.Ua()==="MOBILE"&&m.Ha()==="GECKO";var w=i.video,A=w&&w.width||0,R=w&&w.height||0;return b&&w&&(A>1920||R>1080)&&(w.codecs.includes("avc1.")||w.codecs.includes("avc3."))||(b=w&&w.dependencyStream)&&!Il(b)?!1:(i=i.audio,!(m&&i&&i.encrypted&&i.codecs.toLowerCase().includes("opus")||i&&i.dependencyStream))}function tq(i,u){var f,m,b,w,A,R,N;return re(function(V){if(V.g==1){for(f=function(K,Y){if(K){var se=Dn(K);return se.supported=K.supported&&Y.supported,se.powerEfficient=K.powerEfficient&&Y.powerEfficient,se.smooth=K.smooth&&Y.smooth,Y.keySystemAccess&&!se.keySystemAccess&&(se.keySystemAccess=Y.keySystemAccess),se}return Y},m=null,b=[],w=_(u),A=w.next(),R={};!A.done;R={cache:void 0,Pe:void 0},A=w.next())N=A.value,R.Pe=er(N),R.cache=zS,R.cache.has(R.Pe)?m=f(m,R.cache.get(R.Pe)):b.push(f_e(N).then((function(K){return function(Y){var se=null;Y=_(Y||[]);for(var ce=Y.next();!ce.done;ce=Y.next())se=f(se,ce.value);se&&(K.cache.set(K.Pe,se),m=f(m,se))}})(R)));return L(V,Promise.all(b),2)}m&&i.decodingInfos.push(m),B(V)})}function f_e(i){var u=[""];i.video&&(u=nl(i.video.contentType).split(","));var f=[""];i.audio&&(f=nl(i.audio.contentType).split(","));var m=[];u=_(u);for(var b=u.next();!b.done;b=u.next()){b=b.value;for(var w=_(f),A=w.next(),R={};!A.done;R={Qc:void 0},A=w.next())A=A.value,R.Qc=vn(i),i.video&&(R.Qc.video.contentType=So(Ll(R.Qc.video.contentType),b)),i.audio&&(R.Qc.audio.contentType=So(Ll(R.Qc.audio.contentType),A)),m.push(new Promise((function(N){return function(V,K){(Oe().Ua()=="MOBILE"?OS(5,navigator.mediaCapabilities.decodingInfo(N.Qc)):navigator.mediaCapabilities.decodingInfo(N.Qc)).then(function(Y){V(Y)}).catch(K)}})(R)))}return Promise.all(m).catch(function(){return JSON.stringify(i),null})}function OI(i,u,f,m){var b,w,A,R,N,V,K,Y,se,ce,pe,ve,ye,$e,De,qe,ot,bt;return re(function(tt){switch(tt.g){case 1:if(i.some(function(Ge){return Ge.decodingInfos.length}))return tt.return();b=_(m),w=b.next(),A={};case 2:if(w.done){tt.A(4);break}A.Ci=w.value,R=!1,N=_(i),V=N.next();case 5:if(V.done){tt.A(7);break}K=V.value,Y=nq(K,u,f).filter((function(Ge){return function(ft){return ft=ft[0],(ft.keySystemConfiguration&&ft.keySystemConfiguration.keySystem)===Ge.Ci}})(A)),se=_(Y),ce=se.next();case 8:if(ce.done){tt.A(10);break}return pe=ce.value,L(tt,tq(K,pe),9);case 9:ce=se.next(),tt.A(8);break;case 10:K.decodingInfos.some(function(Ge){return Ge.supported})&&(R=!0),V=N.next(),tt.A(5);break;case 7:if(R)return tt.return();A={Ci:void 0},w=b.next(),tt.A(2);break;case 4:ve=_(i),ye=ve.next();case 12:if(ye.done){tt.A(0);break}$e=ye.value,De=nq($e,u,f).filter(function(Ge){return Ge=Ge[0],Ge=Ge.keySystemConfiguration&&Ge.keySystemConfiguration.keySystem,!Ge||!m.includes(Ge)}),qe=_(De),ot=qe.next();case 15:if(ot.done){ye=ve.next(),tt.A(12);break}return bt=ot.value,L(tt,tq($e,bt),16);case 16:ot=qe.next(),tt.A(15)}})}function nq(i,u,f){var m=i.audio,b=i.video,w=[],A=[];if(b)for(var R=_(b.fullMimeTypes),N=R.next();!N.done;N=R.next()){N=N.value;var V=nl(N);if(V.includes(",")&&!m){var K=V.split(","),Y=Ll(N);V=bi("video",K),K=bi("audio",K),K=R3(K,Y),Y=PI(Y,K,"audio"),A.push({contentType:Y,channels:2,bitrate:i.bandwidth||1,samplerate:1,spatialRendering:!1})}if(V=rq(V),N={contentType:PI(Ll(N),V,"video"),width:b.width||64,height:b.height||64,bitrate:b.bandwidth||i.bandwidth||1,framerate:b.frameRate||30},b.hdr)switch(b.hdr){case"PQ":N.transferFunction="pq";break;case"HLG":N.transferFunction="hlg"}b.colorGamut&&(N.colorGamut=b.colorGamut),w.push(N)}if(m)for(R=_(m.fullMimeTypes),N=R.next();!N.done;N=R.next())V=N.value,N=Ll(V),V=R3(nl(V),N),N=PI(N,V,"audio"),A.push({contentType:N,channels:m.channelsCount||2,bitrate:m.bandwidth||i.bandwidth||1,samplerate:m.audioSamplingRate||1,spatialRendering:m.spatialAudio});for(R=[],w.length==0&&w.push(null),A.length==0&&A.push(null),w=_(w),N=w.next();!N.done;N=w.next())for(N=N.value,V=_(A),Y=V.next();!Y.done;Y=V.next())Y=Y.value,K={type:f?"file":"media-source"},N&&(K.video=N),Y&&(K.audio=Y),R.push(K);if(A=(i.video?i.video.drmInfos:[]).concat(i.audio?i.audio.drmInfos:[]),!A.length)return[R];for(i=[],f=new Map,A=_(A),w=A.next();!w.done;w=A.next())w=w.value,f.get(w.keySystem)||f.set(w.keySystem,[]),f.get(w.keySystem).push(w);for(A=u?"required":"optional",u=u?["persistent-license"]:["temporary"],w=_(f.keys()),N=w.next();!N.done;N=w.next()){for(N=N.value,Y=f.get(N),V=new Map,Y=_(Y),K=Y.next();!K.done;K=Y.next()){K=K.value;var se=K.videoRobustness+","+K.audioRobustness;V.get(se)||V.set(se,[]),V.get(se).push(K)}for(V=_(V.values()),Y=V.next();!Y.done;Y=V.next()){Y=Y.value,K=[],se=_(R);for(var ce=se.next();!ce.done;ce=se.next()){ce=Object.assign({},ce.value);for(var pe={keySystem:N,initDataType:"cenc",persistentState:A,distinctiveIdentifier:"optional",sessionTypes:u},ve=_(Y),ye=ve.next();!ye.done;ye=ve.next()){if(ye=ye.value,ye.initData&&ye.initData.length){for(var $e=new Set,De=_(ye.initData),qe=De.next();!qe.done;qe=De.next())$e.add(qe.value.initDataType);pe.initDataType=ye.initData[0].initDataType}ye.distinctiveIdentifierRequired&&(pe.distinctiveIdentifier="required"),ye.persistentStateRequired&&(pe.persistentState="required"),ye.sessionType&&(pe.sessionTypes=[ye.sessionType]),m&&(pe.audio?(ye.encryptionScheme&&(pe.audio.encryptionScheme=pe.audio.encryptionScheme||ye.encryptionScheme),pe.audio.robustness=pe.audio.robustness||ye.audioRobustness):(pe.audio={robustness:ye.audioRobustness},ye.encryptionScheme&&(pe.audio.encryptionScheme=ye.encryptionScheme)),pe.audio.robustness==""&&delete pe.audio.robustness),b&&(pe.video?(ye.encryptionScheme&&(pe.video.encryptionScheme=pe.video.encryptionScheme||ye.encryptionScheme),pe.video.robustness=pe.video.robustness||ye.videoRobustness):(pe.video={robustness:ye.videoRobustness},ye.encryptionScheme&&(pe.video.encryptionScheme=ye.encryptionScheme)),pe.video.robustness==""&&delete pe.video.robustness)}ce.keySystemConfiguration=pe,K.push(ce)}i.push(K)}}return i}function R3(i,u){var f=Oe();return i.toLowerCase()=="flac"?f.Ha()!="WEBKIT"?"flac":"fLaC":i.toLowerCase()==="opus"?f.Ha()!="WEBKIT"?"opus":E3(u)=="mp4"?"Opus":"opus":i.toLowerCase()=="ac-3"&&f.oe()?"ec-3":i}function rq(i){if(i.includes("avc1")){var u=i.split(".");if(u.length==3)return i=u.shift()+".",i+=parseInt(u.shift(),10).toString(16),i+=("000"+parseInt(u.shift(),10).toString(16)).slice(-4)}else if(i=="vp9")return"vp09.00.41.08";return i}function h_e(i){i.textStreams=i.textStreams.filter(function(u){return u=So(u.mimeType,u.codecs),I3(u)})}function p_e(i){var u,f,m,b,w,A,R;return re(function(N){switch(N.g){case 1:u=[],f=_(i.imageStreams),m=f.next();case 2:if(m.done){N.A(4);break}if(b=m.value,w=b.mimeType,w=="application/mp4"&&b.codecs=="mjpg"&&(w="image/jpg"),US.has(w)){N.A(5);break}if(A=y_e.get(w),!A){US.set(w,!1),N.A(5);break}return L(N,v_e(A),7);case 7:R=N.h,US.set(w,R);case 5:US.get(w)&&u.push(b),m=f.next(),N.A(2);break;case 4:i.imageStreams=u,B(N)}})}function v_e(i){return new Promise(function(u){var f=new Image;f.src=i,"decode"in f?f.decode().then(function(){u(!0)}).catch(function(){u(!1)}):f.onload=f.onerror=function(){u(f.height===2)}})}function q0(i){var u=i.audio,f=i.video,m=u?u.mimeType:null,b=f?f.mimeType:null,w=u?u.codecs:null,A=f?f.codecs:null,R=u?u.groupId:null,N=[];f&&N.push(f.mimeType),u&&N.push(u.mimeType),N=N[0]||null;var V=[];u&&V.push(u.kind),f&&V.push(f.kind),V=V[0]||null;var K=new Set;if(u)for(var Y=_(u.roles),se=Y.next();!se.done;se=Y.next())K.add(se.value);if(f)for(Y=_(f.roles),se=Y.next();!se.done;se=Y.next())K.add(se.value);if(i={id:i.id,active:!1,type:"variant",bandwidth:i.bandwidth,language:i.language,label:null,videoLabel:null,kind:V,width:null,height:null,frameRate:null,pixelAspectRatio:null,hdr:null,colorGamut:null,videoLayout:null,mimeType:N,audioMimeType:m,videoMimeType:b,codecs:"",audioCodec:w,videoCodec:A,primary:i.primary,roles:Array.from(K),audioRoles:null,videoRoles:null,forced:!1,videoId:null,audioId:null,audioGroupId:R,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,originalTextId:null,originalImageId:null,accessibilityPurpose:null,originalLanguage:null},f&&(i.videoId=f.id,i.originalVideoId=f.originalId,i.width=f.width||null,i.height=f.height||null,i.frameRate=f.frameRate||null,i.pixelAspectRatio=f.pixelAspectRatio||null,i.videoBandwidth=f.bandwidth||null,i.hdr=f.hdr||null,i.colorGamut=f.colorGamut||null,i.videoLayout=f.videoLayout||null,i.videoRoles=f.roles,i.videoLabel=f.label,(m=f.dependencyStream)&&(i.width=m.width||i.width,i.height=m.height||i.height,i.videoCodec=m.codecs||i.videoCodec,i.videoBandwidth&&m.bandwidth&&(i.videoBandwidth+=m.bandwidth)),A.includes(","))){i.channelsCount=f.channelsCount,i.audioSamplingRate=f.audioSamplingRate,i.spatialAudio=f.spatialAudio,i.originalLanguage=f.originalLanguage,i.audioMimeType=b,b=A.split(",");try{i.videoCodec=bi("video",b),i.audioCodec=bi("audio",b)}catch{}}return u&&(i.audioId=u.id,i.originalAudioId=u.originalId,i.channelsCount=u.channelsCount,i.audioSamplingRate=u.audioSamplingRate,i.audioBandwidth=u.bandwidth||null,i.spatialAudio=u.spatialAudio,i.label=u.label,i.audioRoles=u.roles,i.accessibilityPurpose=u.accessibilityPurpose,i.originalLanguage=u.originalLanguage,b=u.dependencyStream)&&(i.audioCodec=b.codecs||i.audioCodec,i.audioBandwidth&&b.bandwidth&&(i.audioBandwidth+=b.bandwidth)),f&&!i.videoBandwidth&&(u?i.audioBandwidth&&(i.videoBandwidth=i.bandwidth-i.audioBandwidth):i.videoBandwidth=i.bandwidth),u&&!i.audioBandwidth&&(f?i.videoBandwidth&&(i.audioBandwidth=i.bandwidth-i.videoBandwidth):i.audioBandwidth=i.bandwidth),u=[],i.videoCodec&&u.push(i.videoCodec),i.audioCodec&&u.push(i.audioCodec),i.codecs=u.join(", "),i}function Y0(i){return{id:i.id,active:!1,type:Ln,bandwidth:i.bandwidth||0,language:i.language,label:i.label,kind:i.kind||null,mimeType:i.mimeType,codecs:i.codecs||null,primary:i.primary,roles:i.roles,accessibilityPurpose:i.accessibilityPurpose,forced:i.forced,originalTextId:i.originalId,originalLanguage:i.originalLanguage}}function $I(i){var u=i.width||null,f=i.height||null,m=null;i.segmentIndex&&(m=od(i.segmentIndex));var b=i.tilesLayout;return m&&(b=m.tilesLayout||b),b&&u!=null&&(u/=Number(b.split("x")[0])),b&&f!=null&&(f/=Number(b.split("x")[1])),{id:i.id,type:"image",bandwidth:i.bandwidth||0,width:u,height:f,mimeType:i.mimeType,codecs:i.codecs||null,tilesLayout:b||null,originalImageId:i.originalId}}function FS(i){return i.__shaka_id||(i.__shaka_id=g_e++),i.__shaka_id}function iq(i){var u={id:FS(i),active:i.mode!="disabled",type:Ln,bandwidth:0,language:Xr(i.language||"und"),label:i.label,kind:i.kind,mimeType:null,codecs:null,primary:!1,roles:[],accessibilityPurpose:null,forced:i.kind=="forced",originalTextId:i.id,originalLanguage:i.language};return i.kind=="captions"&&(u.mimeType="unknown"),i.kind=="subtitles"&&(u.mimeType="text/vtt"),i.kind&&(u.roles=[i.kind]),u}function jS(i,u){var f=i?i.language:null;if(f={id:FS(i||u),active:i?i.enabled:u.selected,type:"variant",bandwidth:0,language:Xr(f||"und"),label:i?i.label:null,videoLabel:null,kind:i?i.kind:null,width:null,height:null,frameRate:null,pixelAspectRatio:null,hdr:null,colorGamut:null,videoLayout:null,mimeType:null,audioMimeType:null,videoMimeType:null,codecs:null,audioCodec:null,videoCodec:null,primary:i?i.kind=="main":!1,roles:[],forced:!1,audioRoles:null,videoRoles:null,videoId:null,audioId:null,audioGroupId:null,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:null,audioBandwidth:null,videoBandwidth:null,originalVideoId:u?u.id:null,originalAudioId:i?i.id:null,originalTextId:null,originalImageId:null,accessibilityPurpose:null,originalLanguage:f},i&&i.kind&&(f.roles=[i.kind],f.audioRoles=[i.kind]),i&&i.configuration&&(i.configuration.codec&&(f.audioCodec=i.configuration.codec,f.codecs=f.audioCodec),i.configuration.bitrate&&(f.audioBandwidth=i.configuration.bitrate,f.bandwidth+=f.audioBandwidth),i.configuration.sampleRate&&(f.audioSamplingRate=i.configuration.sampleRate),i.configuration.numberOfChannels&&(f.channelsCount=i.configuration.numberOfChannels)),u&&u.configuration&&(u.configuration.codec&&(f.videoCodec=u.configuration.codec,f.codecs=f.codecs?f.codecs+(","+f.videoCodec):f.videoCodec),u.configuration.bitrate&&(f.videoBandwidth=u.configuration.bitrate,f.bandwidth+=f.videoBandwidth),u.configuration.framerate&&(f.frameRate=u.configuration.framerate),u.configuration.width&&(f.width=u.configuration.width),u.configuration.height&&(f.height=u.configuration.height),u.configuration.colorSpace&&u.configuration.colorSpace.transfer))switch(u.configuration.colorSpace.transfer){case"pq":f.hdr="PQ";break;case"hlg":f.hdr="HLG";break;case"bt709":f.hdr="SDR"}return f}function M3(i){return i.allowedByApplication&&i.allowedByKeySystem&&i.disabledUntilTime==0}function VS(i){return i.filter(function(u){return M3(u)})}function cg(i,u,f,m){var b=i,w=i.filter(function(N){return N.primary});w.length&&(b=w);var A=b.length?b[0].language:"";if(b=b.filter(function(N){return N.language==A}),u){var R=BS(Xr(u),i.map(function(N){return N.language}));R&&(b=i.filter(function(N){return Xr(N.language)==R}))}if(b=b.filter(function(N){return N.forced==m}),f){if(i=oq(b,f),i.length)return i}else if(i=b.filter(function(N){return N.roles.length==0}),i.length)return i;return i=b.map(function(N){return N.roles}).reduce(o_e,[]),i.length?oq(b,i[0]):b}function oq(i,u){return i.filter(function(f){return f.roles.includes(u)})}function m_e(i){var u=[];return i.audio&&u.push(i.audio),i.video&&u.push(i.video),u}function sq(i,u){u.length&&(u=u.filter(function(f){return Js(i.codecs)==Js(f.codecs)}).sort(function(f,m){return f.bandwidth&&m.bandwidth&&f.bandwidth!=m.bandwidth?f.bandwidth-m.bandwidth:(f.width||0)-(m.width||0)}),i.trickModeVideo=u[0],u.length>1&&(u=u.find(function(f){return i.width==f.width&&i.height==f.height})))&&(i.trickModeVideo=u)}function aq(i){return i.type=="audio"?"type=audio codecs="+i.codecs+" bandwidth="+i.bandwidth+" channelsCount="+i.channelsCount+" audioSamplingRate="+i.audioSamplingRate:i.type=="video"?"type=video codecs="+i.codecs+" bandwidth="+i.bandwidth+" frameRate="+i.frameRate+" width="+i.width+" height="+i.height:"unexpected stream type"}function lq(i,u,f){if(f.autoShowText==0)return!1;if(f.autoShowText==1)return!0;var m=Xr(f.preferredTextLanguage);return u=Xr(u.language),f.autoShowText==2?ug(u,m):f.autoShowText==3?i?(i=Xr(i.language),ug(u,m)&&!ug(i,u)):!1:(rt("Invalid autoShowText setting!"),!1)}function uq(i){var u={id:0,language:"und",disabledUntilTime:0,primary:!1,audio:null,video:null,bandwidth:100,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]};i=_(i);for(var f=i.next();!f.done;f=i.next()){f=f.value;var m={id:0,originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:null,mimeType:f?Ll(f):"",codecs:f?nl(f):"",encrypted:!0,drmInfos:[],keyIds:new Set,language:"und",originalLanguage:null,label:null,type:"video",primary:!1,trickModeVideo:null,dependencyStream:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,accessibilityPurpose:null,external:!1,fastSwitching:!1,fullMimeTypes:new Set,isAudioMuxedInVideo:!1,baseOriginalId:null};m.fullMimeTypes.add(So(m.mimeType,m.codecs)),f.startsWith("audio/")?(m.type="audio",u.audio=m):u.video=m}return u}je("shaka.util.StreamUtils",JK),JK.meetsRestrictions=NS;var zS=new Map,g_e=0,US=new Map().set("image/svg+xml",!0).set("image/png",!0).set("image/jpeg",!0).set("image/jpg",!0),y_e=new Map().set("image/webp","data:image/webp;base64,UklGRjoAAABXRUJQVlA4IC4AAACyAgCdASoCAAIALmk0mk0iIiIiIgBoSygABc6WWgAA/veff/0PP8bA//LwYAAA").set("image/avif","data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAAB0AAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAIAAAACAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQ0MAAAAABNjb2xybmNseAACAAIAAYAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAACVtZGF0EgAKCBgANogQEAwgMg8f8D///8WfhwB8+ErK42A=");function Qi(){var i=this;this.H=null,this.B=!1,this.u=new Fe,this.j=new Ae,navigator.connection&&navigator.connection.addEventListener&&this.j.D(navigator.connection,"change",function(){if(i.B&&i.g.useNetworkInformation){i.u=new Fe,i.g&&i.u.configure(i.g.advanced);var u=i.chooseVariant();u&&navigator.onLine&&i.H(u,i.g.clearBufferSwitch,i.g.safeMarginSwitch)}}),this.o=[],this.I=1,this.J=!1,this.h=this.m=this.g=this.C=null,this.l=new yr(function(){if(i.B&&(i.g.restrictToElementSize||i.g.restrictToScreenSize)){var u=i.chooseVariant();u&&i.H(u,i.g.clearBufferSwitch,i.g.safeMarginSwitch)}}),this.F=o,"documentPictureInPicture"in o&&this.j.D(o.documentPictureInPicture,"enter",function(){i.F=o.documentPictureInPicture.window,i.l&&i.l.Jb(),i.j.Ba(i.F,"pagehide",function(){i.F=o,i.l&&i.l.Jb()})}),this.G=this.i=null}l=Qi.prototype,l.stop=function(){this.H=null,this.B=!1,this.o=[],this.I=1,this.m=this.C=null,this.h&&(this.h.disconnect(),this.h=null),this.l&&this.l.stop(),this.G=this.i=null},l.release=function(){this.stop(),this.j.release(),this.l=null},l.init=function(i){this.H=i},l.chooseVariant=function(i){i=i===void 0?!1:i;var u=1/0,f=1/0;if(this.g.restrictToScreenSize&&(f=this.g.ignoreDevicePixelRatio?1:this.F.devicePixelRatio,u=this.F.screen.height*f,f*=this.F.screen.width),this.h&&this.g.restrictToElementSize){var m=this.g.ignoreDevicePixelRatio?1:this.F.devicePixelRatio,b=this.m.clientHeight,w=this.m.clientWidth;this.i&&document.pictureInPictureElement&&document.pictureInPictureElement==this.m&&(b=this.i.height,w=this.i.width),u=Math.min(u,b*m),f=Math.min(f,w*m)}if(b=this.o.filter(function(V){return V&&!(V.audio&&V.audio.fastSwitching||V.video&&V.video.fastSwitching)}),b.length||(b=this.o),m=b,i&&b.length!=this.o.length&&(m=this.o.filter(function(V){return V&&!!(V.audio&&V.audio.fastSwitching||V.video&&V.video.fastSwitching)})),i=BI(this,this.g.restrictions,m,1/0,1/0),u!=1/0||f!=1/0){for(i=b_e(i),i=_(i),b=i.next();!b.done;b=i.next())if(b=b.value,b.height>=u&&b.width>=f){u=b.height,f=b.width;break}i=BI(this,this.g.restrictions,m,u,f)}for(u=this.getBandwidthEstimate(),m.length&&!i.length&&(i=BI(this,null,m,1/0,1/0),i=[i[0]]),f=i[0]||null,m=0;m=w&&u<=A&&(f.bandwidth!=b.bandwidth||f.bandwidth==b.bandwidth&&f.video&&b.video&&(f.video.width=this.g.cacheLoadThreshold&&this.u.sample(b,u),f&&this.C!=null&&this.B&&cq(this)},l.trySuggestStreams=function(){this.B&&(this.C=Date.now(),cq(this,!0))},l.getBandwidthEstimate=function(){var i=this.g.defaultBandwidthEstimate;return navigator.connection&&navigator.connection.downlink&&this.g.useNetworkInformation&&(i=navigator.connection.downlink*1e6),navigator.connection&&navigator.connection.downlink&&this.g.useNetworkInformation&&this.g.preferNetworkInformationBandwidth?i:(i=this.u.getBandwidthEstimate(i),this.G?this.G.getBandwidthEstimate(i):i)},l.setVariants=function(i){return sn(i,this.o)?!1:(this.o=i,!0)},l.playbackRateChanged=function(i){this.I=i},l.setMediaElement=function(i){function u(){f.l.ia(__e)}var f=this;this.m=i,this.h&&(this.h.disconnect(),this.h=null),this.m&&"ResizeObserver"in o&&(this.h=new ResizeObserver(u),this.h.observe(this.m)),this.j.D(i,"enterpictureinpicture",function(m){m.pictureInPictureWindow&&(f.i=m.pictureInPictureWindow,f.j.D(f.i,"resize",u))}),this.j.D(i,"leavepictureinpicture",function(){f.i&&f.j.Ma(f.i,"resize",u),f.i=null})},l.setCmsdManager=function(i){this.G=i},l.configure=function(i){this.g=i,this.u&&this.g&&this.u.configure(this.g.advanced)};function cq(i,u){if(u===void 0||!u){if(!i.J){if(u=i.u,!(u.g>=u.i))return;i.J=!0,i.C-=(i.g.switchInterval-i.g.minTimeToSwitch)*1e3}if(Date.now()-i.C=i.l)if(i.i)i.g=1,i.h=i.j;else throw new we(2,7,1010);return u=i.g,i.g++,u==0?m.return():(f=i.h*(1+(Math.random()*2-1)*i.o),L(m,new Promise(function(b){new yr(b).ia(f/1e3)}),2))}i.h*=i.m,B(m)})}function _c(){return{maxAttempts:2,baseDelay:1e3,backoffFactor:2,fuzzFactor:.5,timeout:3e4,stallTimeout:5e3,connectionTimeout:1e4}}function ci(){var i,u,f=new Promise(function(m,b){i=m,u=b});return f.resolve=i,f.reject=u,f}ci.prototype.resolve=function(){},ci.prototype.reject=function(){};function ko(i,u){this.promise=i,this.i=u,this.g=null}function lp(i){return new ko(Promise.reject(i),function(){return Promise.resolve()})}function FI(){var i=Promise.reject(new we(2,7,7001));return i.catch(function(){}),new ko(i,function(){return Promise.resolve()})}function fg(i){return new ko(Promise.resolve(i),function(){return Promise.resolve()})}function vq(i){return new ko(i,function(){return i.catch(function(){})})}ko.prototype.abort=function(){return this.g||(this.g=this.i()),this.g};function mq(i){return new ko(Promise.all(i.map(function(u){return u.promise})),function(){return Promise.all(i.map(function(u){return u.abort()}))})}ko.prototype.finally=function(i){return this.promise.then(function(){return i(!0)},function(){return i(!1)}),this},ko.prototype.Xa=function(i,u){function f(R){return function(N){if(b.g&&R)w.reject(A);else{var V=R?i:u;V?m=S_e(V,N,w):(R?w.resolve:w.reject)(N)}}}function m(){return w.reject(A),b.abort()}var b=this,w=new ci;w.catch(function(){});var A=new we(2,7,7001);return this.promise.then(f(!0),f(!1)),new ko(w,function(){return m()})};function S_e(i,u,f){try{var m=i(u);return m&&m.promise&&m.abort?(f.resolve(m.promise),function(){return m.abort()}):(f.resolve(m),function(){return Promise.resolve(m).then(function(){},function(){})})}catch(b){return f.reject(b),function(){return Promise.resolve()}}}p.Object.defineProperties(ko.prototype,{aborted:{configurable:!0,enumerable:!0,get:function(){return this.g!==null}}}),je("shaka.util.AbortableOperation",ko),ko.prototype.chain=ko.prototype.Xa,ko.prototype.finally=ko.prototype.finally,ko.all=mq,ko.prototype.abort=ko.prototype.abort,ko.notAbortable=vq,ko.completed=fg,ko.aborted=FI,ko.failed=lp;function Tn(i,u){if(u)if(u instanceof Map)for(var f=_(u.keys()),m=f.next();!m.done;m=f.next())m=m.value,Object.defineProperty(this,m,{value:u.get(m),writable:!0,enumerable:!0});else for(f in u)Object.defineProperty(this,f,{value:u[f],writable:!0,enumerable:!0});this.defaultPrevented=this.cancelable=this.bubbles=!1,this.timeStamp=o.performance&&o.performance.now?o.performance.now():Date.now(),this.type=i,this.isTrusted=!1,this.target=this.currentTarget=null,this.g=!1}function gq(i){var u=new Tn(i.type),f;for(f in i)Object.defineProperty(u,f,{value:i[f],writable:!0,enumerable:!0});return u}Tn.prototype.preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0)},Tn.prototype.stopImmediatePropagation=function(){this.g=!0},Tn.prototype.stopPropagation=function(){},je("shaka.util.FakeEvent",Tn);var KS={rl:"abrstatuschanged",ul:"adaptation",vl:"audiotrackchanged",wl:"audiotrackschanged",xl:"boundarycrossed",yl:"buffering",zl:"canupdatestarttime",Al:"complete",Bl:"currentitemchanged",Cl:"downloadcompleted",Dl:"downloadfailed",El:"downloadheadersreceived",Fl:"drmsessionupdate",Gl:"emsg",Ml:"itemsinserted",Nl:"itemsremoved",bm:"prft",Error:"error",Hl:"expirationupdated",Il:"firstquartile",Jl:"gapjumped",Ol:"keystatuschanged",Rl:"loaded",Sl:"loading",Ul:"manifestparsed",Vl:"manifestupdated",Wl:"mediaqualitychanged",Xl:"mediasourcerecovered",Yl:"metadataadded",Metadata:"metadata",Zl:"midpoint",$l:"nospatialvideoinfo",am:"onstatechange",dm:"ratechange",hm:"segmentappended",im:"sessiondata",jm:"spatialvideoinfo",lm:"stalldetected",nm:"started",om:"statechanged",pm:"streaming",qm:"textchanged",rm:"texttrackvisibility",sm:"thirdquartile",tm:"timelineregionadded",um:"timelineregionenter",vm:"timelineregionexit",wm:"trackschanged",ym:"unloading",Am:"variantchanged"};function Zr(){this.ab=new Be,this.Fe=this}Zr.prototype.addEventListener=function(i,u){this.ab&&this.ab.push(i,u)},Zr.prototype.removeEventListener=function(i,u){this.ab&&this.ab.remove(i,u)},Zr.prototype.dispatchEvent=function(i){if(!this.ab)return!0;var u=this.ab.get(i.type)||[],f=this.ab.get("All");for(f&&(u=u.concat(f)),u=_(u),f=u.next();!f.done;f=u.next()){f=f.value,i.target=this.Fe,i.currentTarget=this.Fe;try{f.handleEvent?f.handleEvent(i):f.call(this,i)}catch{}if(i.g)break}return i.defaultPrevented},Zr.prototype.release=function(){this.ab=null};function hg(){this.g=[]}function X0(i,u){i.g.push(u.finally(function(){Mt(i.g,u)}))}hg.prototype.destroy=function(){for(var i=[],u=_(this.g),f=u.next();!f.done;f=u.next())f=f.value,f.promise.catch(function(){}),i.push(f.abort());return this.g=[],Promise.all(i)};function Fi(i,u,f,m,b,w,A){Zr.call(this),this.i=null,this.j=!1,this.u=new hg,this.g=new Set,this.h=new Set,this.o=i||null,this.m=u||null,this.B=f||null,this.C=m||null,this.F=b||null,this.H=w||null,this.G=A||null,this.l=new Map}x(Fi,Zr),l=Fi.prototype,l.configure=function(i){this.i=i};function Hf(i,u,f,m){m=m===void 0?!1:m,f=f||kq;var b=YS.get(i);(!b||f>=b.priority)&&YS.set(i,{priority:f,yf:u,Fk:m})}function yq(i,u){for(var f=_(i.g),m=f.next();!m.done;m=f.next())u.g.add(m.value);for(i=_(i.h),f=i.next();!f.done;f=i.next())u.h.add(f.value)}l.Ik=function(i){this.g.add(i)},l.hl=function(i){this.g.delete(i)},l.oj=function(){this.g.clear()},l.Jk=function(i){this.h.add(i)},l.il=function(i){this.h.delete(i)},l.pj=function(){this.h.clear()},l.Qh=function(){this.l.clear()};function Vo(i,u,f){return{uris:i,method:"GET",body:null,headers:{},allowCrossSiteCredentials:!1,retryParameters:u,licenseRequestType:null,sessionId:null,drmInfo:null,initData:null,initDataType:null,streamDataCallback:f===void 0?null:f}}l.destroy=function(){return this.j=!0,this.g.clear(),this.h.clear(),this.l.clear(),Zr.prototype.release.call(this),this.u.destroy()},l.request=function(i,u,f){var m=this,b=new Sq;if(this.j){var w=Promise.reject(new we(2,7,7001));return w.catch(function(){}),new qS(w,function(){return Promise.resolve()},b)}u.method=u.method||"GET",u.headers=u.headers||{},u.retryParameters=u.retryParameters?vn(u.retryParameters):_c(),u.uris=vn(u.uris),w=k_e(this,i,u,f);var A=w.Xa(function(){return bq(m,i,u,f,new hq(u.retryParameters,!1),0,null,b)}),R=A.Xa(function(se){return x_e(m,i,se,f)}),N=Date.now(),V=0;w.promise.then(function(){V=Date.now()-N},function(){});var K=0;A.promise.then(function(){K=Date.now()},function(){});var Y=R.Xa(function(se){var ce=Date.now()-K,pe=se.response;return pe.timeMs+=V,pe.timeMs+=ce,se.fk||!m.o||pe.fromCache||u.method=="HEAD"||i!=Fu||m.o(pe.timeMs,pe.data.byteLength,_q(f),u,f),m.G&&m.G(i,pe,f),pe},function(se){throw se&&(se.severity=2),se});return w=new qS(Y.promise,function(){return Y.abort()},b),X0(this.u,w),w};function k_e(i,u,f,m){function b(R){w=w.Xa(function(){return f.body&&(f.body=Ce(f.body)),R(u,f,m)})}var w=fg(void 0);i.F&&b(i.F),i=_(i.g);for(var A=i.next();!A.done;A=i.next())b(A.value);return w.Xa(void 0,function(R){throw R instanceof we&&R.code==7001?R:new we(2,1,1006,R)})}function bq(i,u,f,m,b,w,A,R){i.i.forceHTTP&&(f.uris[w]=f.uris[w].replace("https://","http://")),i.i.forceHTTPS&&(f.uris[w]=f.uris[w].replace("http://","https://")),w>0&&i.H&&i.H(u,m,f.uris[w],f.uris[w-1]);var N=new st(f.uris[w]),V=N.bc,K=!1;V||(V=location.protocol,V=V.slice(0,-1),zt(N,V),f.uris[w]=N.toString()),V=V.toLowerCase();var Y=(V=YS.get(V))?V.yf:null;if(!Y)return lp(new we(2,1,1e3,N));var se=V.Fk;(N=i.l.get(N.Db))&&(f.headers["common-access-token"]=N);var ce=null,pe=null,ve=!1,ye=!1,$e;return vq(pq(b)).Xa(function(){if(i.j)return FI();$e=Date.now();var De=0;f.requestStartTime=Date.now();var qe=Y(f.uris[w],f,u,function(tt,Ge,ft){ce&&ce.stop(),pe&&pe.ia(bt/1e3),i.o&&u==Fu&&(De++,f.packetNumber=De,i.o(tt,Ge,_q(m),f,m),K=!0,R.g=ft)},function(tt){ye=!0,f.timeToFirstByte=Date.now()-f.requestStartTime,i.m&&i.m(tt,f,u)},{minBytesForProgressEvents:i.i.minBytesForProgressEvents});if(!se)return qe;var ot=f.retryParameters.connectionTimeout;ot&&(ce=new yr(function(){ve=!0,qe.abort()}),ce.ia(ot/1e3));var bt=f.retryParameters.stallTimeout;return bt&&(pe=new yr(function(){ve=!0,qe.abort()})),qe}).Xa(function(De){ce&&ce.stop(),pe&&pe.stop(),De.timeMs==null&&(De.timeMs=Date.now()-$e);var qe=De.headers["common-access-token"];if(qe){var ot=new st(De.uri);i.l.set(ot.Db,qe)}return qe={response:De,fk:K},!ye&&i.m&&i.m(De.headers,f,u),i.B&&i.B(f,De),qe},function(De){if(ce&&ce.stop(),pe&&pe.stop(),i.C){var qe=null,ot=0;De instanceof we&&(qe=De,De.code==1001&&(ot=De.data[1])),i.C(f,qe,ot,ve)}if(i.j)return FI();if(ve&&(De=new we(1,1,1003,f.uris[w],u)),De instanceof we){if(De.code==7001)throw De;if(De.code==1010)throw A;if(De.severity==1){if(qe=new Map().set("error",De),qe=new Tn("retry",qe),qe.cancelable=!0,i.dispatchEvent(qe),qe.defaultPrevented)throw De;return w=(w+1)%f.uris.length,bq(i,u,f,m,b,w,De,R)}}throw De})}function x_e(i,u,f,m){var b=fg(void 0);i=_(i.h);for(var w=i.next(),A={};!w.done;A={Ji:void 0},w=i.next())A.Ji=w.value,b=b.Xa((function(R){return function(){var N=f.response;return N.data&&(N.data=Ce(N.data)),(0,R.Ji)(u,N,m)}})(A));return b.Xa(function(){return f},function(R){var N=2;if(R instanceof we){if(R.code==7001)throw R;N=R.severity}throw new we(N,1,1007,R)})}function _q(i){if(i){var u=i.segment;if(i=i.stream,u&&i&&i.fastSwitching&&u.Xc)return!1}return!0}je("shaka.net.NetworkingEngine",Fi),Fi.prototype.request=Fi.prototype.request,Fi.prototype.destroy=Fi.prototype.destroy,Fi.makeRequest=Vo,Fi.defaultRetryParameters=function(){return _c()},Fi.prototype.clearCommonAccessTokenMap=Fi.prototype.Qh,Fi.prototype.clearAllResponseFilters=Fi.prototype.pj,Fi.prototype.unregisterResponseFilter=Fi.prototype.il,Fi.prototype.registerResponseFilter=Fi.prototype.Jk,Fi.prototype.clearAllRequestFilters=Fi.prototype.oj,Fi.prototype.unregisterRequestFilter=Fi.prototype.hl,Fi.prototype.registerRequestFilter=Fi.prototype.Ik,Fi.unregisterScheme=function(i){YS.delete(i)},Fi.registerScheme=Hf,Fi.prototype.configure=Fi.prototype.configure;function Sq(){this.g=0}Fi.NumBytesRemainingClass=Sq;function qS(i,u,f){ko.call(this,i,u),this.h=f}x(qS,ko),Fi.PendingRequest=qS;var Fu=1;Fi.RequestType={MANIFEST:0,SEGMENT:Fu,LICENSE:2,APP:3,TIMING:4,SERVER_CERTIFICATE:5,KEY:6,ADS:7,CONTENT_STEERING:8,CMCD:9},Fi.AdvancedRequestType={INIT_SEGMENT:0,MEDIA_SEGMENT:1,MEDIA_PLAYLIST:2,MASTER_PLAYLIST:3,MPD:4,MSS:5,MPD_PATCH:6,MEDIATAILOR_SESSION_INFO:7,MEDIATAILOR_TRACKING_INFO:8,MEDIATAILOR_STATIC_RESOURCE:9,MEDIATAILOR_TRACKING_EVENT:10,INTERSTITIAL_ASSET_LIST:11,INTERSTITIAL_AD_URL:12};var kq=3;Fi.PluginPriority={FALLBACK:1,PREFERRED:2,APPLICATION:kq};var YS=new Map;function pg(i){this.g=!1,this.h=new ci,this.i=i}pg.prototype.destroy=function(){var i=this;return this.g?this.h:(this.g=!0,this.i().then(function(){i.h.resolve()},function(){i.h.resolve()}))};function Ii(i,u){if(i.g)throw u instanceof we&&u.code==7003?u:new we(2,7,7003,u)}function jI(i,u){var f=[];i=_(i);for(var m=i.next();!m.done;m=i.next())f.push(u(m.value));return f}function C_e(i,u){i=_(i);for(var f=i.next();!f.done;f=i.next())if(!u(f.value))return!1;return!0}function vg(i){for(var u=new Map,f=_(Object.keys(i)),m=f.next();!m.done;m=f.next())m=m.value,u.set(m,i[m]);return u}function VI(i){var u={};return i.forEach(function(f,m){u[m]=f}),u}function $i(i,u){this.h=it(i),this.i=u==xq,this.g=0}l=$i.prototype,l.Ia=function(){return this.g2097151)throw new we(2,3,3001);return this.g+=8,u*4294967296+i},l.Tb=function(i,u){if(this.g+i>this.h.byteLength)throw Wf();var f=Pe(this.h,this.g,i);return this.g+=i,u?new Uint8Array(f):f},l.skip=function(i){if(this.g+i>this.h.byteLength)throw Wf();this.g+=i},l.Ki=function(i){if(this.gthis.h.byteLength)throw Wf();this.g=i},l.Yc=function(){for(var i=this.g;this.Ia()&&this.h.getUint8(this.g)!=0;)this.g+=1;return i=Pe(this.h,i,this.g-i),this.g+=1,at(i)};function Wf(){return new we(2,3,3e3)}je("shaka.util.DataViewReader",$i),$i.prototype.readTerminatedString=$i.prototype.Yc,$i.prototype.seek=$i.prototype.seek,$i.prototype.rewind=$i.prototype.Ki,$i.prototype.skip=$i.prototype.skip,$i.prototype.readBytes=$i.prototype.Tb,$i.prototype.readUint64=$i.prototype.Dd,$i.prototype.readInt32=$i.prototype.Zg,$i.prototype.readUint32=$i.prototype.U,$i.prototype.readUint16=$i.prototype.Ca,$i.prototype.readUint8=$i.prototype.Y,$i.prototype.getLength=$i.prototype.getLength,$i.prototype.getPosition=$i.prototype.Oa,$i.prototype.hasMoreData=$i.prototype.Ia;var xq=1;$i.Endianness={BIG_ENDIAN:0,LITTLE_ENDIAN:xq};function di(){this.i=new Map,this.h=new Map,this.g=!1}l=di.prototype,l.box=function(i,u){return i=Cq(i),this.i.set(i,w_e),this.h.set(i,u),this},l.S=function(i,u){return i=Cq(i),this.i.set(i,wq),this.h.set(i,u),this},l.stop=function(){this.g=!0},l.parse=function(i,u,f){for(i=new $i(i,0),this.g=!1;i.Ia()&&!this.g;)this.zd(0,i,u,f)},l.zd=function(i,u,f,m){var b=u.Oa();if(m&&b+8>u.getLength())this.g=!0;else{var w=u.U(),A=u.U(),R=ZS(A),N=!1;switch(w){case 0:w=u.getLength()-b;break;case 1:if(m&&u.Oa()+8>u.getLength()){this.g=!0;return}w=u.Dd(),N=!0}var V=this.h.get(A);if(V){var K=null,Y=null;if(this.i.get(A)==wq){if(m&&u.Oa()+4>u.getLength()){this.g=!0;return}Y=u.U(),K=Y>>>24,Y&=16777215}A=b+w,f&&A>u.getLength()&&(A=u.getLength()),m&&A>u.getLength()?this.g=!0:(A-=u.Oa(),u=A>0?u.Tb(A,!1):new Uint8Array(0),u=new $i(u,0),V({name:R,parser:this,partialOkay:f||!1,stopOnPartial:m||!1,version:K,flags:Y,reader:u,size:w,start:b+i,has64BitSize:N}))}else u.skip(Math.min(b+w-u.Oa(),u.getLength()-u.Oa()))}};function ur(i){for(var u=up(i);i.reader.Ia()&&!i.parser.g;)i.parser.zd(i.start+u,i.reader,i.partialOkay,i.stopOnPartial)}function Gf(i){for(var u=up(i),f=i.reader.U(),m=0;m>24&255,i>>16&255,i>>8&255,i&255)}function up(i){return 8+(i.has64BitSize?8:0)+(i.flags!=null?4:0)}je("shaka.util.Mp4Parser",di),di.headerSize=up,di.typeToString=ZS,di.allData=mg,di.audioSampleEntry=XS,di.visualSampleEntry=Dl,di.sampleDescription=Gf,di.children=ur,di.prototype.parseNext=di.prototype.zd,di.prototype.parse=di.prototype.parse,di.prototype.stop=di.prototype.stop,di.prototype.fullBox=di.prototype.S,di.prototype.box=di.prototype.box;var w_e=0,wq=1;function zI(i){var u=this;this.g=[],this.h=[],this.data=[],new di().box("moov",ur).box("moof",ur).S("pssh",function(f){if(!(f.version>1)){var m=Pe(f.reader.h,-12,f.size);if(u.data.push(m),m=f.reader.Tb(16,!1),u.g.push(Mn(m)),f.version>0){m=f.reader.U();for(var b=0;b0&&(w+=4+16*f.size);var A=new Uint8Array(w),R=it(A),N=0;if(R.setUint32(N,w),N+=4,R.setUint32(N,1886614376),N+=4,m<1?R.setUint32(N,0):R.setUint32(N,16777216),N+=4,A.set(u,N),N+=u.length,m>0)for(R.setUint32(N,f.size),N+=4,u=_(f),f=u.next();!f.done;f=u.next())f=sr(f.value),A.set(f,N),N+=f.length;return R.setUint32(N,b),A.set(i,N+4),A}function QS(i){var u=this;this.F=i,this.j=this.B=null,this.qa=this.T=!1,this.J=0,this.g=null,this.o=new Ae,this.i=new Map,this.X=[],this.C=new Map,this.K=!1,this.m=new ci,this.h=null,this.u=function(f){f.severity==2&&u.m.reject(f),i.onError(f)},this.aa=new Map,this.ma=new Map,this.M=new yr(function(){return $_e(u)}),this.R=!1,this.N=[],this.$=!1,this.G=new yr(function(){N_e(u)}),this.m.catch(function(){}),this.l=new pg(function(){return E_e(u)}),this.O=!1,this.H=this.I=null,this.V=function(){return!1}}l=QS.prototype,l.destroy=function(){return this.l.destroy()};function E_e(i){return re(function(u){switch(u.g){case 1:return i.o.release(),i.o=null,i.m.reject(),i.G.stop(),i.G=null,i.M.stop(),i.M=null,L(u,$3(i),2);case 2:if(!i.j){u.A(3);break}return F(u,4),L(u,i.j.setMediaKeys(null),6);case 6:U(u,5);break;case 4:G(u);case 5:i.j=null;case 3:i.g=null,i.B=null,i.C=new Map,i.h=null,i.u=function(){},i.F=null,i.O=!1,i.I=null,B(u)}})}l.configure=function(i,u){this.h=i,u&&(this.V=u),this.G&&this.T&&this.g&&this.G.Ea(this.h.updateExpirationTime)};function T_e(i,u,f){return i.qa=!0,i.C=new Map,i.R=f,Tq(i,u,!1)}function Eq(i,u,f,m){m=m===void 0?!0:m,i.C=new Map,f=_(f);for(var b=f.next();!b.done;b=f.next())i.C.set(b.value,{initData:null,initDataType:null});for(f=_(i.h.persistentSessionsMetadata),b=f.next();!b.done;b=f.next())b=b.value,i.C.set(b.sessionId,{initData:b.initData,initDataType:b.initDataType});return i.R=i.C.size>0,Tq(i,u,m)}function A_e(i,u,f,m,b,w){var A,R,N,V,K;return re(function(Y){return Y.g==1?(A=[],w.length&&A.push(w[0].contentType),b.length&&A.push(b[0].contentType),R=function(se){return se=pr(u,se,null),se.licenseServerUri=f,se.serverCertificate=m,se.persistentStateRequired=!0,se.sessionType="persistent-license",se},N=uq(A),N.video&&(V=R(w[0].encryptionScheme||""),N.video.drmInfos.push(V)),N.audio&&(K=R(b[0].encryptionScheme||""),N.audio.drmInfos.push(K)),L(Y,OI([N],!0,i.O,[]),2)):(Ii(i.l),Y.return(Dq(i,[N])))})}function Tq(i,u,f){var m,b,w,A,R,N,V,K,Y,se,ce,pe,ve,ye,$e,De,qe,ot;return re(function(bt){if(bt.g==1){for(Bq(i.h.clearKeys,u),m=u.some(function(tt){return!!(tt.video&&tt.video.drmInfos.length||tt.audio&&tt.audio.drmInfos.length)}),b=vg(i.h.servers),w=vg(i.h.advanced||{}),!m&&f&&j_e(u,b),A=new WeakSet,R=_(u),N=R.next();!N.done;N=R.next())for(V=N.value,K=$q(V),Y=_(K),se=Y.next();!se.done;se=Y.next())ce=se.value,A.has(ce)||(A.add(ce),z_e(ce,b,w,i.h.keySystemsMapping));for(pe=function(tt,Ge){var ft=[];tt=_(tt);for(var yt=tt.next();!yt.done;yt=tt.next()){yt=yt.value;var mt=yt[Ge]||w.has(yt.keySystem)&&w.get(yt.keySystem)[Ge]||"",_t;if((_t=mt=="")&&(_t=(_t=yt.keySystem)?!!_t.match(/^com\.widevine\.alpha/):!1),_t&&(Ge=="audioRobustness"?mt=[i.h.defaultAudioRobustnessForWidevine]:Ge=="videoRobustness"&&(mt=[i.h.defaultVideoRobustnessForWidevine])),typeof mt=="string")ft.push(yt);else if(Array.isArray(mt))for(mt.length===0&&(mt=[""]),mt=_(mt),_t=mt.next();!_t.done;_t=mt.next()){var kt={};ft.push(Object.assign({},yt,(kt[Ge]=_t.value,kt)))}}return ft},ve=new WeakSet,ye=_(u),$e=ye.next();!$e.done;$e=ye.next())De=$e.value,De.video&&!ve.has(De.video)&&(De.video.drmInfos=pe(De.video.drmInfos,"videoRobustness"),De.video.drmInfos=pe(De.video.drmInfos,"audioRobustness"),ve.add(De.video)),De.audio&&!ve.has(De.audio)&&(De.audio.drmInfos=pe(De.audio.drmInfos,"videoRobustness"),De.audio.drmInfos=pe(De.audio.drmInfos,"audioRobustness"),ve.add(De.audio));return L(bt,OI(u,i.R,i.O,i.h.preferredKeySystems),2)}return Ii(i.l),qe=m||b.size>0,qe?(ot=Dq(i,u),bt.return(m?ot:ot.catch(function(){}))):(i.T=!0,bt.return(Promise.resolve()))})}function Aq(i){var u;return re(function(f){switch(f.g){case 1:if(i.j.mediaKeys)return f.return();if(!i.I){f.A(2);break}return L(f,i.I,3);case 3:return Ii(i.l),f.return();case 2:return F(f,4),i.I=i.j.setMediaKeys(i.B),L(f,i.I,6);case 6:U(f,5);break;case 4:u=G(f),i.u(new we(2,6,6003,u.message));case 5:Ii(i.l),B(f)}})}function I_e(i,u){return re(function(f){if(f.g==1)return L(f,Aq(i),2);O3(i,u.initDataType,Pe(u.initData)),B(f)})}l.fc=function(i){var u=this,f,m;return re(function(b){if(b.g==1)return u.j===i?b.return():u.B?(u.j=i,u.h.delayLicenseRequestUntilPlayed&&u.o.Ba(u.j,"play",function(){for(var w=_(u.N),A=w.next();!A.done;A=w.next())HI(u,A.value);u.$=!0,u.N=[]}),u.j.remote?(u.o.D(u.j.remote,"connect",function(){return $3(u)}),u.o.D(u.j.remote,"connecting",function(){return $3(u)}),u.o.D(u.j.remote,"disconnect",function(){return $3(u)})):"webkitCurrentPlaybackTargetIsWireless"in u.j&&u.o.D(u.j,"webkitcurrentplaybacktargetiswirelesschanged",function(){return $3(u)}),u.H=u.g&&u.g.initData.find(function(w){return w.initData.length>0})||null,f=u.g.keySystem,(m=Oe().Rg(f))||!u.H&&u.g.keySystem==="com.apple.fps"&&!u.C.size?b.A(2):L(b,Aq(u),2)):(u.o.Ba(i,"encrypted",function(){u.u(new we(2,6,6010))}),b.return());Iq(u).catch(function(){}),!m&&(u.H||u.C.size||u.h.parseInbandPsshEnabled)||u.o.D(u.j,"encrypted",function(w){return I_e(u,w)}),B(b)})};function L_e(i){var u,f,m,b,w;return re(function(A){switch(A.g){case 1:if(!i.B||!i.g)return A.return();if(!i.g.serverCertificateUri||i.g.serverCertificate&&i.g.serverCertificate.length){A.A(2);break}return u=Vo([i.g.serverCertificateUri],i.h.retryParameters),F(A,3),f=i.F.tc.request(5,u,{isPreload:i.V()}),L(A,f.promise,5);case 5:m=A.h,i.g.serverCertificate=Pe(m.data),U(A,4);break;case 3:throw b=G(A),new we(2,6,6017,b);case 4:if(i.l.g)return A.return();case 2:return!i.g.serverCertificate||!i.g.serverCertificate.length?A.return():(F(A,6),L(A,i.B.setServerCertificate(i.g.serverCertificate),8));case 8:U(A,0);break;case 6:throw w=G(A),new we(2,6,6004,w.message)}})}function D_e(i,u){var f,m,b;return re(function(w){if(w.g==1)return L(w,Rq(i,u,{initData:null,initDataType:null}),2);if(w.g!=3)return f=w.h,f?(m=[],(b=i.i.get(f))&&(b.Kb=new ci,m.push(b.Kb)),m.push(f.remove()),L(w,Promise.all(m),3)):w.return();i.i.delete(f),B(w)})}function Iq(i){var u,f,m,b,w;return re(function(A){if(A.g==1)return i.C.size?(i.C.forEach(function(R,N){Rq(i,N,R)}),L(A,i.m,3)):A.A(2);if(A.g!=2){if(u=i.g&&i.g.keyIds||new Set([]),u.size>0&&F_e(i))return A.return(i.m);i.K=!1,i.m=new ci,i.m.catch(function(){})}for(f=(i.g?i.g.initData:[])||[],m=_(f),b=m.next();!b.done;b=m.next())w=b.value,O3(i,w.initDataType,w.initData);return B3(i)&&i.m.resolve(),A.return(i.m)})}function O3(i,u,f){if(f.length){if(i.h.ignoreDuplicateInitData){var m=i.i.values();m=_(m);for(var b=m.next();!b.done;b=m.next())if(xe(f,b.value.initData))return;var w=!1;if(i.C.forEach(function(A){!w&&xe(f,A.initData)&&(w=!0)}),w)return}i.K=!0,i.i.size>0&&B3(i)&&(i.m.resolve(),i.K=!1,i.m=new ci,i.m.catch(function(){})),M_e(i,u,f,i.g.sessionType)}}function Lq(i){return i=i.i.keys(),i=jI(i,function(u){return u.sessionId}),Array.from(i)}l.Gg=function(){var i=this,u=this.i.keys();return u=jI(u,function(f){var m=i.i.get(f);return{sessionId:f.sessionId,sessionType:m.type,initData:m.initData,initDataType:m.initDataType}}),Array.from(u)},l.Wd=function(){var i=1/0,u=this.i.keys();u=_(u);for(var f=u.next();!f.done;f=u.next())f=f.value,isNaN(f.expiration)||(i=Math.min(i,f.expiration));return i};function P_e(i){return i.J?i.J:NaN}l.Xe=function(){return VI(this.ma)};function Dq(i,u){var f,m,b,w,A,R,N;return re(function(V){switch(V.g){case 1:if(f=new Map,m=R_e(i,u,f),!m)throw navigator.requestMediaKeySystemAccess?new we(2,6,6001):new we(2,6,6020);Ii(i.l),F(V,2),m.getConfiguration();var K=b=i.h.keySystemsMapping[m.keySystem]||m.keySystem,Y=f.get(b),se=[],ce=[],pe=[],ve=[],ye=[],$e=new Set,De=new Set;V_e(Y,se,ce,ve,pe,ye,$e,De);var qe=i.R?"persistent-license":"temporary";for(K={keySystem:K,encryptionScheme:se[0],licenseServerUri:ce[0],distinctiveIdentifierRequired:Y[0].distinctiveIdentifierRequired,persistentStateRequired:Y[0].persistentStateRequired,sessionType:Y[0].sessionType||qe,audioRobustness:Y[0].audioRobustness||"",videoRobustness:Y[0].videoRobustness||"",serverCertificate:ve[0],serverCertificateUri:pe[0],initData:ye,keyIds:$e},De.size>0&&(K.keySystemUris=De),Y=_(Y),De=Y.next();!De.done;De=Y.next())De=De.value,De.distinctiveIdentifierRequired&&(K.distinctiveIdentifierRequired=De.distinctiveIdentifierRequired),De.persistentStateRequired&&(K.persistentStateRequired=De.persistentStateRequired);if(i.g=K,!i.g.licenseServerUri)throw new we(2,6,6012,i.g.keySystem);return L(V,m.createMediaKeys(),4);case 4:if(w=V.h,Ii(i.l),i.B=w,!(i.h.minHdcpVersion!=""&&"getStatusForPolicy"in i.B)){V.A(5);break}return F(V,6),L(V,i.B.getStatusForPolicy({minHdcpVersion:i.h.minHdcpVersion}),8);case 8:if(A=V.h,A!="usable")throw new we(2,6,6018);Ii(i.l),U(V,5,2);break;case 6:throw R=G(V,2),R instanceof we?R:new we(2,6,6019,R.message);case 5:return i.T=!0,i.G.Ea(i.h.updateExpirationTime),L(V,L_e(i),9);case 9:Ii(i.l),U(V,0);break;case 2:throw N=G(V),Ii(i.l,N),i.g=null,N instanceof we?N:new we(2,6,6002,N.message)}})}function R_e(i,u,f){for(var m=_(u),b=m.next();!b.done;b=m.next()){b=_($q(b.value));for(var w=b.next();!w.done;w=b.next())w=w.value,f.has(w.keySystem)||f.set(w.keySystem,[]),f.get(w.keySystem).push(w)}if(f.size==1&&f.has(""))throw new we(2,6,6e3);m=i.h.preferredKeySystems,m.length||(b=vg(i.h.servers),b.size==1&&(m=Array.from(b.keys()))),b=_(m);var A=b.next();for(w={};!A.done;w={Di:void 0},A=b.next()){w.Di=A.value,A=_(u);for(var R=A.next();!R.done;R=A.next())if(R=R.value.decodingInfos.find((function(Y){return function(se){return se.supported&&se.keySystemAccess!=null&&se.keySystemAccess.keySystem==Y.Di}})(w)))return R.keySystemAccess}for(b=_([!0,!1]),w=b.next();!w.done;w=b.next())for(w=w.value,A=_(u),R=A.next();!R.done;R=A.next()){R=_(R.value.decodingInfos);for(var N=R.next();!N.done;N=R.next())if(N=N.value,N.supported&&N.keySystemAccess){var V=N.keySystemAccess.keySystem;if(!m.includes(V)){var K=f.get(V);for(!K&&i.h.keySystemsMapping[V]&&(K=f.get(i.h.keySystemsMapping[V])),V=_(K),K=V.next();!K.done;K=V.next())if(!!K.value.licenseServerUri==w)return N.keySystemAccess}}}return null}function UI(i){B3(i)&&i.m.resolve()}function Pq(i,u){new yr(function(){u.loaded=!0,UI(i)}).ia(H_e)}function Rq(i,u,f){var m,b,w,A,R,N,V;return re(function(K){switch(K.g){case 1:try{m=i.B.createSession("persistent-license")}catch(Y){return b=new we(2,6,6005,Y.message),i.u(b),K.return(Promise.reject(b))}return i.o.D(m,"message",function(Y){i.j&&i.h.delayLicenseRequestUntilPlayed&&i.j.paused&&!i.$?i.N.push(Y):HI(i,Y)}),i.o.D(m,"keystatuseschange",function(Y){return Mq(i,Y)}),w={initData:f.initData,initDataType:f.initDataType,loaded:!1,Ug:1/0,Kb:null,type:"persistent-license"},i.i.set(m,w),F(K,2),L(K,m.load(u),4);case 4:return A=K.h,Ii(i.l),A||(i.i.delete(m),R=i.h.persistentSessionOnlinePlayback?1:2,i.u(new we(R,6,6013)),w.loaded=!0),Pq(i,w),UI(i),K.return(m);case 2:N=G(K),Ii(i.l,N),i.i.delete(m),V=i.h.persistentSessionOnlinePlayback?1:2,i.u(new we(V,6,6005,N.message)),w.loaded=!0,UI(i);case 3:return K.return(Promise.resolve())}})}function M_e(i,u,f,m){try{var b=i.B.createSession(m)}catch(w){i.u(new we(2,6,6005,w.message));return}i.o.D(b,"message",function(w){i.j&&i.h.delayLicenseRequestUntilPlayed&&i.j.paused&&!i.$?i.N.push(w):HI(i,w)}),i.o.D(b,"keystatuseschange",function(w){return Mq(i,w)}),i.i.set(b,{initData:f,initDataType:u,loaded:!1,Ug:1/0,Kb:null,type:m});try{f=i.h.initDataTransform(f,u,i.g)}catch(w){u=w,w instanceof we||(u=new we(2,6,6016,w)),i.u(u);return}i.h.logLicenseExchange&&Zn(f),b.generateRequest(u,f).catch(function(w){if(!i.l.g){i.i.delete(b);var A=w.errorCode;if(A&&A.systemCode){var R=A.systemCode;R<0&&(R+=4294967296),R="0x"+R.toString(16)}i.u(new we(2,6,6006,w.message,w,R))}})}function O_e(i){return re(function(u){return u.g==1?i.K?L(u,i.m,3):u.A(0):L(u,Promise.all(i.X.map(function(f){return f.promise})),0)})}function HI(i,u){var f,m,b,w,A,R,N,V,K,Y,se,ce,pe,ve,ye,$e;re(function(De){switch(De.g){case 1:if(f=u.target,i.h.logLicenseExchange&&Zn(u.message),m=i.i.get(f),b=i.g.licenseServerUri,w=i.h.advanced[i.g.keySystem],u.messageType=="individualization-request"&&w&&w.individualizationServer&&(b=w.individualizationServer),A=Vo([b],i.h.retryParameters),A.body=u.message,A.method="POST",A.licenseRequestType=u.messageType,A.sessionId=f.sessionId,A.drmInfo=i.g,m&&(A.initData=m.initData,A.initDataType=m.initDataType),w&&w.headers)for(R in w.headers)A.headers[R]=w.headers[R];if(i.g.keySystem==="org.w3.clearkey"){var qe=A,ot=i.g;try{var bt=Qt(qe.body);if(bt){var tt=JSON.parse(bt);tt.type||(tt.type=ot.sessionType,qe.body=qt(JSON.stringify(tt)))}}catch{}}if(NI(i.g.keySystem))if(qe=Ot(A.body,!0,!0),qe.includes("PlayReadyKeyMessage")){for(qe=ui(qe,"PlayReadyKeyMessage"),ot=Aa(qe,"HttpHeader"),ot=_(ot),bt=ot.next();!bt.done;bt=ot.next())tt=bt.value,bt=Aa(tt,"name")[0],tt=Aa(tt,"value")[0],A.headers[kr(bt)]=kr(tt);qe=Aa(qe,"Challenge")[0],A.body=hr(kr(qe))}else A.headers["Content-Type"]="text/xml; charset=utf-8";return N=Date.now(),F(De,2),K=i.F.tc.request(2,A,{isPreload:i.V()}),i.X.push(K),L(De,K.promise,4);case 4:V=De.h,Mt(i.X,K),U(De,3);break;case 2:return Y=G(De),i.l.g||(se={sessionId:f.sessionId,sessionType:m.type,initData:m.initData,initDataType:m.initDataType},ce=new we(2,6,6007,Y,se),i.i.size==1?(i.u(ce),m&&m.Kb&&m.Kb.reject(ce)):(m&&m.Kb&&m.Kb.reject(ce),i.i.delete(f),B3(i)&&(i.m.resolve(),i.M.ia(.1)))),De.return();case 3:return i.l.g?De.return():(i.J+=(Date.now()-N)/1e3,i.h.logLicenseExchange&&Zn(V.data),F(De,5),L(De,f.update(V.data),7));case 7:U(De,6);break;case 5:return ve=(pe=G(De))&&pe.message||String(pe),ye=new we(2,6,6008,ve),i.u(ye),m&&m.Kb&&m.Kb.reject(ye),De.return();case 6:if(i.l.g)return De.return();$e=new Tn("drmsessionupdate"),i.F.onEvent($e),m&&(m.Kb&&m.Kb.resolve(),Pq(i,m)),B(De)}})}function Mq(i,u){u=u.target;var f=i.i.get(u),m=!1;u.keyStatuses.forEach(function(w,A){if(typeof A=="string"){var R=A;A=w,w=R}if(R=Oe(),NI(i.g.keySystem)&&A.byteLength==16&&R.gh()){R=it(A);var N=R.getUint32(0,!0),V=R.getUint16(4,!0),K=R.getUint16(6,!0);R.setUint32(0,N,!1),R.setUint16(4,V,!1),R.setUint16(6,K,!1)}w!="status-pending"&&(f.loaded=!0),w=="expired"&&(m=!0),A=Mn(A).slice(0,32),i.aa.set(A,w)});var b=u.expiration-Date.now();(b<0||m&&b<1e3)&&f&&!f.Kb&&(i.i.delete(u),Oq(u)),B3(i)&&(i.m.resolve(),i.M.ia(W_e))}function $_e(i){var u=i.aa,f=i.ma;f.clear(),u.forEach(function(m,b){return f.set(b,m)}),u=Array.from(f.values()),u.length&&u.every(function(m){return m=="expired"})&&i.u(new we(2,6,6014)),i.F.vf(VI(f))}function B_e(){var i,u,f,m,b,w,A,R,N,V,K,Y,se,ce,pe,ve,ye,$e,De,qe,ot,bt,tt,Ge,ft,yt,mt,_t,kt,Bt,jt,It;return re(function(Pt){if(Pt.g==1){if(i="org.w3.clearkey com.widevine.alpha com.widevine.alpha.experiment com.microsoft.playready com.microsoft.playready.hardware com.microsoft.playready.recommendation com.microsoft.playready.recommendation.3000 com.microsoft.playready.recommendation.3000.clearlead com.chromecast.playready com.apple.fps.1_0 com.apple.fps com.huawei.wiseplay".split(" "),!(o.MediaKeys&&o.navigator&&o.navigator.requestMediaKeySystemAccess&&o.MediaKeySystemAccess&&o.MediaKeySystemAccess.prototype.getConfiguration)){for(u={},f=_(i),m=f.next();!m.done;m=f.next())b=m.value,u[b]=null;return Pt.return(u)}for(w="1.0 1.1 1.2 1.3 1.4 2.0 2.1 2.2 2.3".split(" "),A=["SW_SECURE_CRYPTO","SW_SECURE_DECODE","HW_SECURE_CRYPTO","HW_SECURE_DECODE","HW_SECURE_ALL"],R=["150","2000","3000"],N={"com.widevine.alpha":A,"com.widevine.alpha.experiment":A,"com.microsoft.playready.recommendation":R},V=[{contentType:'video/mp4; codecs="avc1.42E01E"'},{contentType:'video/webm; codecs="vp8"'}],K=[{contentType:'audio/mp4; codecs="mp4a.40.2"'},{contentType:'audio/webm; codecs="opus"'}],Y={videoCapabilities:V,audioCapabilities:K,initDataTypes:["cenc","sinf","skd","keyids"]},se=[null,"cenc","cbcs"],ce=new Map,pe=Oe(),ve=function(Yt,cn,tr){var In,Dr,_r,Qr,Cr,Fn,wi,Mr,Pr,vr,Ui,Vi,io;return re(function(oi){switch(oi.g){case 1:return F(oi,2),L(oi,cn.createMediaKeys(),5);case 5:In=oi.h;case 4:U(oi,3);break;case 2:return G(oi),oi.return();case 3:if(_r=(Dr=cn.getConfiguration().sessionTypes)?Dr.includes("persistent-license"):!1,pe.ti()&&(_r=!1),Qr=cn.getConfiguration().videoCapabilities,Cr=cn.getConfiguration().audioCapabilities,Fn={persistentState:_r,encryptionSchemes:[],videoRobustnessLevels:[],audioRobustnessLevels:[],minHdcpVersions:[]},ce.get(Yt)?Fn=ce.get(Yt):ce.set(Yt,Fn),(wi=Qr[0].encryptionScheme)&&!Fn.encryptionSchemes.includes(wi)&&Fn.encryptionSchemes.push(wi),(Mr=Qr[0].robustness)&&!Fn.videoRobustnessLevels.includes(Mr)&&Fn.videoRobustnessLevels.push(Mr),(Pr=Cr[0].robustness)&&!Fn.audioRobustnessLevels.includes(Pr)&&Fn.audioRobustnessLevels.push(Pr),!(tr&&"getStatusForPolicy"in In)){oi.A(0);break}vr=_(w),Ui=vr.next();case 7:if(Ui.done){oi.A(0);break}if(Vi=Ui.value,Fn.minHdcpVersions.includes(Vi)){oi.A(8);break}return L(oi,In.getStatusForPolicy({minHdcpVersion:Vi}),10);case 10:if(io=oi.h,io=="usable")Fn.minHdcpVersions.includes(Vi)||Fn.minHdcpVersions.push(Vi);else{oi.A(0);break}case 8:Ui=vr.next(),oi.A(7)}})},ye=function(Yt,cn,tr,In,Dr){Dr=Dr===void 0?!1:Dr;var _r,Qr,Cr,Fn,wi,Mr,Pr,vr,Ui,Vi,io;return re(function(oi){switch(oi.g){case 1:for(F(oi,2),_r=vn(Y),Qr=_(_r.videoCapabilities),Cr=Qr.next();!Cr.done;Cr=Qr.next())Fn=Cr.value,Fn.encryptionScheme=cn,Fn.robustness=tr;for(wi=_(_r.audioCapabilities),Mr=wi.next();!Mr.done;Mr=wi.next())Pr=Mr.value,Pr.encryptionScheme=cn,Pr.robustness=In;return vr=vn(_r),vr.persistentState="required",vr.sessionTypes=["persistent-license"],Ui=[vr,_r],io=Oe(),io.Ua()=="MOBILE"?L(oi,OS(5,navigator.requestMediaKeySystemAccess(Yt,Ui)),7):L(oi,navigator.requestMediaKeySystemAccess(Yt,Ui),6);case 6:Vi=oi.h,oi.A(5);break;case 7:Vi=oi.h;case 5:return L(oi,ve(Yt,Vi,Dr),8);case 8:U(oi,0);break;case 2:G(oi),B(oi)}})},$e=_(i),De=$e.next();!De.done;De=$e.next())qe=De.value,ce.set(qe,null);for(ot=function(Yt){return!(Oe().Ha()==="WEBKIT"&&Yt==="org.w3.clearkey")},bt=[],tt=_(i),Ge=tt.next();!Ge.done;Ge=tt.next())if(ft=Ge.value,ot(ft)){for(yt=!0,mt=_(se),_t=mt.next();!_t.done;_t=mt.next())kt=_t.value,bt.push(ye(ft,kt,"","",yt)),yt=!1;for(Bt=_(N[ft]||[]),jt=Bt.next();!jt.done;jt=Bt.next())It=jt.value,bt.push(ye(ft,null,It,"")),bt.push(ye(ft,null,"",It))}return L(Pt,Promise.all(bt),2)}return Pt.return(VI(ce))})}function Oq(i){return re(function(u){if(u.g==1)return F(u,2),L(u,OS(U_e,Promise.all([i.close().catch(function(){}),i.closed])),4);if(u.g!=2)return U(u,0);G(u),B(u)})}function $3(i){var u;return re(function(f){return u=Array.from(i.i.entries()),i.i.clear(),L(f,Promise.all(u.map(function(m){m=_(m);var b=m.next().value,w=m.next().value;return re(function(A){if(A.g==1)return F(A,2),i.qa||i.C.has(b.sessionId)||w.type!=="persistent-license"||i.h.persistentSessionOnlinePlayback?L(A,Oq(b),5):L(A,b.remove(),5);if(A.g!=2)return U(A,0);G(A),B(A)})})),0)})}function $q(i){return(i.video?i.video.drmInfos:[]).concat(i.audio?i.audio.drmInfos:[])}function N_e(i){i.i.forEach(function(u,f){var m=u.Ug,b=f.expiration;isNaN(b)&&(b=1/0),b!=m&&(i.F.onExpirationUpdated(f.sessionId,b),u.Ug=b)})}function B3(i){return i=i.i.values(),C_e(i,function(u){return u.loaded})}function F_e(i){for(var u=_(i.g&&i.g.keyIds||new Set([])),f=u.next();!f.done;f=u.next())if(i.aa.get(f.value)!=="usable")return!1;return!0}function j_e(i,u){var f=[];for(u.forEach(function(m,b){f.push({keySystem:b,licenseServerUri:m,distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,serverCertificateUri:"",initData:[],keyIds:new Set})}),i=_(i),u=i.next();!u.done;u=i.next())u=u.value,u.video&&(u.video.drmInfos=f),u.audio&&(u.audio.drmInfos=f)}function V_e(i,u,f,m,b,w,A,R){var N=[];i=_(i);for(var V=i.next(),K={};!V.done;K={Ka:void 0},V=i.next()){if(K.Ka=V.value,u.includes(K.Ka.encryptionScheme)||u.push(K.Ka.encryptionScheme),K.Ka.keySystem=="org.w3.clearkey"&&K.Ka.licenseServerUri.startsWith("data:application/json;base64,")?N.includes(K.Ka.licenseServerUri)||N.push(K.Ka.licenseServerUri):f.includes(K.Ka.licenseServerUri)||f.push(K.Ka.licenseServerUri),b.includes(K.Ka.serverCertificateUri)||b.push(K.Ka.serverCertificateUri),K.Ka.serverCertificate&&(m.some((function(ce){return function(pe){return xe(pe,ce.Ka.serverCertificate)}})(K))||m.push(K.Ka.serverCertificate)),K.Ka.initData){V=_(K.Ka.initData);for(var Y=V.next(),se={};!Y.done;se={Lg:void 0},Y=V.next())se.Lg=Y.value,w.some((function(ce){return function(pe){var ve=ce.Lg;return pe.keyId&&pe.keyId==ve.keyId?!0:pe.initDataType==ve.initDataType&&xe(pe.initData,ve.initData)}})(se))||w.push(se.Lg)}if(K.Ka.keyIds)for(V=_(K.Ka.keyIds),Y=V.next();!Y.done;Y=V.next())A.add(Y.value);if(K.Ka.keySystemUris&&R)for(K=_(K.Ka.keySystemUris),V=K.next();!V.done;V=K.next())R.add(V.value)}if(N.length==1)f.push(N[0]);else if(N.length>0){for(u=[],N=_(N),m=N.next();!m.done;m=N.next())m=o.atob(m.value.split("data:application/json;base64,").pop()),m=JSON.parse(m),u.push.apply(u,T(m.keys));N=JSON.stringify({keys:u}),f.push("data:application/json;base64,"+o.btoa(N))}}function z_e(i,u,f,m){var b=i.keySystem;b&&(b!="org.w3.clearkey"||!i.licenseServerUri)&&(u.size&&u.get(b)&&(u=u.get(b),i.licenseServerUri=u),i.keyIds||(i.keyIds=new Set),(f=f.get(b))&&(i.distinctiveIdentifierRequired||(i.distinctiveIdentifierRequired=f.distinctiveIdentifierRequired),i.persistentStateRequired||(i.persistentStateRequired=f.persistentStateRequired),i.serverCertificate||(i.serverCertificate=f.serverCertificate),f.sessionType&&(i.sessionType=f.sessionType),i.serverCertificateUri||(i.serverCertificateUri=f.serverCertificateUri)),m[b]&&(i.keySystem=m[b]),o.cast&&o.cast.__platform__&&b=="com.microsoft.playready"&&(i.keySystem="com.chromecast.playready"))}function Bq(i,u){if(i=vg(i),i.size!=0){i=qr(i),u=_(u);for(var f=u.next();!f.done;f=u.next())f=f.value,f.video&&(f.video.drmInfos=[i]),f.audio&&(f.audio.drmInfos=[i])}}var U_e=1,H_e=5,W_e=.5;function G_e(){this.g=gg,this.i=new Map().set(gg,2).set(Z0,1),this.h=0}function WI(i,u){var f=i.g!==u;return i.g=u,f&&u===gg&&(i.h=Date.now()),f}var Z0=0,gg=1;/* @license Shaka Player Copyright 2023 Google LLC SPDX-License-Identifier: Apache-2.0 */function GI(i,u,f){this.g=i,this.i=u,this.h=f}function Nq(i,u){return re(function(f){if(f.g==1)return L(f,u_e(i.h,u,i.g.drm.preferredKeySystems,i.g.drm.keySystemsMapping),2);if(i.g.streaming.dontChooseCodecs||QK(u,i.g.preferredVideoCodecs,i.g.preferredAudioCodecs,i.g.preferredDecodingAttributes,i.g.preferredTextFormats),!u.variants.some(M3))throw new we(2,4,4032);return f.return(jq(i,u))})}function Fq(i,u){var f=i.g.restrictions;i=i.i;var m=!1;u=_(u.variants);for(var b=u.next();!b.done;b=u.next()){b=b.value;var w=b.allowedByApplication;b.allowedByApplication=NS(b,f,i),w!=b.allowedByApplication&&(m=!0)}return m}function jq(i,u){var f=Fq(i,u);if(u){var m=i.h?i.h.g:null;if(m&&i.h.B){for(var b=new Set,w=_(u.variants),A=w.next();!A.done;A=w.next())A=A.value,A.audio&&b.add(A.audio),A.video&&b.add(A.video);for(b=_(b),w=b.next();!w.done;w=b.next())Vq(i,m.keySystem,w.value)}zq(i,u)}return f}function Vq(i,u,f){f=_(f.drmInfos);for(var m=f.next();!m.done;m=f.next())if(m=m.value,m.keySystem==u){m=_(m.initData||[]);for(var b=m.next();!b.done;b=m.next())b=b.value,O3(i.h,b.initDataType,b.initData)}}function zq(i,u){i=i.h?i.h.Xe():{};var f=Object.keys(i);f=f.length&&f[0]=="00";var m=!1,b=!1,w=new Set,A=new Set,R=new Set;u=_(u.variants);for(var N=u.next();!N.done;N=u.next())N=N.value,N.audio&&R.add(N.audio),N.video&&R.add(N.video),N.allowedByApplication?N.allowedByKeySystem&&(m=!0):b=!0;for(R=_(R),u=R.next();!u.done;u=R.next())if(u=u.value,u.keyIds.size)for(u=_(u.keyIds),N=u.next();!N.done;N=u.next()){N=N.value;var V=i[f?"00":N];V?Uq.includes(V)&&A.add(V):w.add(N)}if(!m)throw i={hasAppRestrictions:b,missingKeys:Array.from(w),restrictedKeyStatuses:Array.from(A)},new we(2,4,4012,i)}var Uq=["output-restricted","internal-error"];function N3(){}function J0(i,u){yg.set(i,u)}function K_e(){var i={};if(Oe(),Wd())for(var u=_(yg.keys()),f=u.next();!f.done;f=u.next())i[f.value]=!0;for(u=_(["application/dash+xml","application/x-mpegurl","application/vnd.apple.mpegurl","application/vnd.ms-sstr+xml"]),f=u.next();!f.done;f=u.next())f=f.value,i[f]=Wd()?yg.has(f):ev().canPlayType(f)!="";return i}function Hq(i,u){if(u){var f=yg.get(u.toLowerCase());if(f)return f}throw new we(2,4,4e3,i,u)}je("shaka.media.ManifestParser",N3),N3.unregisterParserByMime=function(i){yg.delete(i)},N3.registerParserByMime=J0,N3.registerParserByExtension=function(){rn("ManifestParser.registerParserByExtension","Please use an ManifestParser with registerParserByMime function.")},N3.AccessibilityPurpose={zm:"visually impaired",Kl:"hard of hearing",gm:"spoken subtitles"};var yg=new Map;je("shaka.config.CodecSwitchingStrategy",{RELOAD:"reload",SMOOTH:"smooth"});function e6(i,u){var f=null,m=null,b=null,w=null,A=i.U();return u&1&&(b=i.Dd()),u&2&&(w=i.U()),u&8&&(f=i.U()),u&16&&(m=i.U()),{trackId:A,Td:f,Ud:m,kj:b,Li:w}}function t6(i,u){return u==1?(u=i.U(),i=i.U(),{baseMediaDecodeTime:u*4294967296+i}):{baseMediaDecodeTime:i.U()}}function n6(i,u){return u==1?(i.skip(8),i.skip(8)):(i.skip(4),i.skip(4)),u=i.U(),i.skip(4),i=i.Ca(),{timescale:u,language:String.fromCharCode((i>>10)+96)+String.fromCharCode(((i&960)>>5)+96)+String.fromCharCode((i&31)+96)}}function r6(i,u,f){var m=i.U(),b=[],w=null;f&1&&(w=i.Zg()),f&4&&i.skip(4);for(var A=0;A0)var b=Ar("avcC",i.Ra);else{b=Ar;for(var w=7,A=[],R=[],N=0,V=0,K=0,Y=0;Y0&&(N=A[0][1],K=A[0][2],V=A[0][3]),w=new Uint8Array(w),Y=0,w[Y++]=1,w[Y++]=N,w[Y++]=K,w[Y++]=V,w[Y++]=255,w[Y++]=224|A.length,N=0;N>8,w[Y++]=A[N].length&255,w.set(A[N],Y),Y+=A[N].length;for(w[Y++]=R.length,A=0;A>8,w[Y++]=R[A].length&255,w.set(R[A],Y),Y+=R[A].length;b=b("avcC",w)}f=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0].concat(T(Gi(f,2)),T(Gi(m,2)),[0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17])),m="avc1",R=Kq(i),A=new Uint8Array([]),i.encrypted&&(A=Q0(i.stream,i.codecs),m="encv"),m=Ar(m,f,b,R,A)}else i.codecs.includes("hvc1")&&(m=i.stream.width||0,b=i.stream.height||0,f=new Uint8Array([]),i.Ra.byteLength>0&&(f=Ar("hvcC",i.Ra)),m=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0].concat(T(Gi(m,2)),T(Gi(b,2)),[0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17])),b="hvc1",R=Kq(i),A=new Uint8Array([]),i.encrypted&&(A=Q0(i.stream,i.codecs),b="encv"),m=Ar(b,m,f,R,A));break;case"audio":f=="mp3"?i=Ar(".mp3",j3(i)):f=="ac-3"?(f=Ar("dac3",i.Ga),m="ac-3",b=new Uint8Array([]),i.encrypted&&(b=Q0(i.stream,i.codecs),m="enca"),i=Ar(m,j3(i),f,b)):f=="ec-3"?(f=Ar("dec3",i.Ga),m="ec-3",b=new Uint8Array([]),i.encrypted&&(b=Q0(i.stream,i.codecs),m="enca"),i=Ar(m,j3(i),f,b)):f=="opus"?(f=Ar("dOps",i.Ga),m="Opus",b=new Uint8Array([]),i.encrypted&&(b=Q0(i.stream,i.codecs),m="enca"),i=Ar(m,j3(i),f,b)):(i.Ga.byteLength>0?f=Ar("esds",i.Ga):(f=Ar,m=i.id+1,b=i.stream.channelsCount||2,A=i.stream.audioSamplingRate||44100,N=bi("audio",i.codecs.split(",")),V={96e3:0,88200:1,64e3:2,48e3:3,44100:4,32e3:5,24e3:6,22050:7,16e3:8,12e3:9,11025:10,8e3:11,7350:12},R=V[A],(N==="mp4a.40.5"||N==="mp4a.40.29")&&(R=V[A*2]),A=parseInt(N.split(".").pop(),10),m=new Uint8Array([0,0,0,0,3,25].concat(T(Gi(m,2)),[0,4,17,64,21,0,0,0,0,0,0,0,0,0,0,0,5,2,A<<3|R>>>1,R<<7|b<<3,6,1,2])),f=f("esds",m)),m="mp4a",b=new Uint8Array([]),i.encrypted&&(b=Q0(i.stream,i.codecs),m="enca"),i=Ar(m,j3(i),f,b)),m=i}return i=Ar("stsd",iSe.value(),m),u("stbl",i,Ar("stts",J_e.value()),Ar("stsc",Q_e.value()),Ar("stsz",tSe.value()),Ar("stco",eSe.value()))}function Kq(i){if(!i.Za&&!i.$a)return new Uint8Array([]);var u=i.$a;return i=new Uint8Array([].concat(T(Gi(i.Za,4)),T(Gi(u,4)))),Ar("pasp",i)}function j3(i){return new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,i.stream.channelsCount||2,0,16,0,0,0,0].concat(T(Gi(i.stream.audioSamplingRate||44100,2)),[0,0]))}function Q0(i,u){var f=Ar;u=new Uint8Array([].concat(T(Gi(Yq(u.split(".")[0]),4)))),u=Ar("frma",u);var m="cenc",b=i.drmInfos[0];b&&b.encryptionScheme&&(m=b.encryptionScheme),m=new Uint8Array([0,0,0,0].concat(T(Gi(Yq(m),4)),[0,1,0,0])),m=Ar("schm",m),b=Ar;var w=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);i=_(i.drmInfos);for(var A=i.next();!A.done;A=i.next())if((A=A.value)&&A.keyIds&&A.keyIds.size){A=_(A.keyIds);for(var R=A.next();!R.done;R=A.next())w=qq(R.value)}return i=new Uint8Array([0,0,0,0,0,0,1,8]),w=Ar("tenc",i,w),f("sinf",u,m,b("schi",w))}function V3(i){var u=[];i=_(i.g);for(var f=i.next();!f.done;f=i.next()){f=f.value;var m=u.push,b=m.apply,w=Ar,A=new Uint8Array([0,0,0,0].concat(T(Gi(f.data?f.data.sequenceNumber:0,4))));A=Ar("mfhd",A);var R,N=f.data?f.data.zb:[],V=new Uint8Array(4+N.length);for(R=0;R=0;u--)f.push(i>>8*u&255);return f}function qq(i){for(var u=new Uint8Array(i.length/2),f=0;f=0;b--)m+=u[b].byteLength;for(b=new Uint8Array(m),b[0]=m>>24&255,b[1]=m>>16&255,b[2]=m>>8&255,b[3]=m&255,b.set(f,4),f=0,m=8;f=0;K--)V.push(2>>8*K&255);for(i.set(new Uint8Array(V),R),i.set(N,R+4),R=_(A),N=R.next();!N.done;N=R.next())N=N.value,i6(i,N.start,N.size+4)}}return i}function cSe(i,u,f,m,b,w){var A=Q0(i,m.name),R=u.subarray(m.start,m.start+m.size);for(i=new Uint8Array(m.size+A.byteLength),i.set(R,0),it(i).setUint32(4,w),i.set(A,m.size),i6(i,0,i.byteLength),w=new Uint8Array(u.byteLength+i.byteLength),m=Oe().df()?m.start:m.start+m.size,A=u.subarray(m),w.set(u.subarray(0,m)),w.set(i,m),w.set(A,m+i.byteLength),u=_(b),b=u.next();!b.done;b=u.next())b=b.value,i6(w,b.start,b.size+i.byteLength);return i=it(w,f.start),f=up(f),u=i.getUint32(f),i.setUint32(f,u+1),w}function i6(i,u,f){i=it(i,u),u=i.getUint32(0),u!=0&&(u==1?(i.setUint32(8,f>>32),i.setUint32(12,f&4294967295)):i.setUint32(0,f))}function dSe(i){function u(b){m.push({start:b.start,size:b.size}),ur(b)}var f=Pe(i),m=[];return new di().box("moov",u).box("trak",u).box("mdia",u).box("minf",u).box("stbl",u).box("stsd",function(b){m.push({start:b.start,size:b.size});for(var w=it(f,b.start),A=0;A0)return u}if(i.g.length>0&&i.m)for(i=_(i.g),i=i.next();!i.done;i=i.next()){qI(i.value);break}return null}l.$j=function(){return this.tilesLayout},l.Zj=function(){return this.B},l.Jc=function(){return this.status},l.xk=function(){this.status=Qq},l.Qg=function(){this.preload=!0},l.isPreload=function(){return this.preload},l.wd=function(){this.l=!1},l.kk=function(){return this.l},l.ri=function(){this.Xc=!0},l.nk=function(){return this.Xc},l.pi=function(){this.ee=!0},l.lk=function(){return this.ee},l.oi=function(){this.o=!0},l.gk=function(){return this.o},l.If=function(i){this.thumbnailSprite=i},l.Xj=function(){return this.thumbnailSprite},l.offset=function(i){this.startTime+=i,this.endTime+=i,this.j+=i;for(var u=_(this.g),f=u.next();!f.done;f=u.next())f=f.value,f.startTime+=i,f.endTime+=i,f.j+=i},l.yh=function(i){this.h==null?Je("Sync attempted without sync time!"):(i=this.h-i-this.startTime,Math.abs(i)>=.001&&this.offset(i))},l.pe=function(i,u){this.u=i,this.F=u===void 0?!1:u},l.Yb=function(i){var u=this.u;return(i===void 0||i)&&this.F&&(this.u=null),u};function Jq(i,u){i.ba=u,i=_(i.g);for(var f=i.next();!f.done;f=i.next())Jq(f.value,u)}je("shaka.media.SegmentReference",zn),zn.prototype.getSegmentData=zn.prototype.Yb,zn.prototype.setSegmentData=zn.prototype.pe,zn.prototype.syncAgainst=zn.prototype.yh,zn.prototype.offset=zn.prototype.offset,zn.prototype.getThumbnailSprite=zn.prototype.Xj,zn.prototype.setThumbnailSprite=zn.prototype.If,zn.prototype.hasByterangeOptimization=zn.prototype.gk,zn.prototype.markAsByterangeOptimization=zn.prototype.oi,zn.prototype.isLastPartial=zn.prototype.lk,zn.prototype.markAsLastPartial=zn.prototype.pi,zn.prototype.isPartial=zn.prototype.nk,zn.prototype.markAsPartial=zn.prototype.ri,zn.prototype.isIndependent=zn.prototype.kk,zn.prototype.markAsNonIndependent=zn.prototype.wd,zn.prototype.isPreload=zn.prototype.isPreload,zn.prototype.markAsPreload=zn.prototype.Qg,zn.prototype.markAsUnavailable=zn.prototype.xk,zn.prototype.getStatus=zn.prototype.Jc,zn.prototype.getTileDuration=zn.prototype.Zj,zn.prototype.getTilesLayout=zn.prototype.$j,zn.prototype.getEndByte=zn.prototype.Gc,zn.prototype.getStartByte=zn.prototype.Ic,zn.prototype.getEndTime=zn.prototype.Ej,zn.prototype.getStartTime=zn.prototype.getStartTime,zn.prototype.getUris=zn.prototype.P;var Kf=0,Qq=1;zn.Status={ql:Kf,xm:Qq,Tl:2};function U3(i){return i.length==1&&i.end(0)-i.start(0)<1e-4}function eY(i){return!i||U3(i)?null:i.length==1&&i.start(0)<0?0:i.length?i.start(0):null}function o6(i){return!i||U3(i)?null:i.length?i.end(i.length-1):null}function YI(i,u){return!i||!i.length||U3(i)||u>i.end(i.length-1)?!1:u>=i.start(0)}function tY(i,u){if(!i||!i.length||U3(i))return 0;var f=0;i=_(qf(i));for(var m=i.next();!m.done;m=i.next()){var b=m.value;m=b.start,b=b.end,b>u&&(f+=b-Math.max(m,u))}return f}function fSe(i,u,f){return!i||!i.length||U3(i)?null:(i=qf(i).findIndex(function(m,b,w){return m.start>u&&(b==0||w[b-1].end-u<=f)}),i>=0?i:null)}function qf(i){if(!i)return[];for(var u=[],f=0;f=0;--m)i.removeChild(f[m]),u=!0;return i.src&&(i.removeAttribute("src"),u=!0),u}function H3(i){for(;i.firstChild;)i.removeChild(i.firstChild)}function ev(){return Sg||(ZI||(ZI=new yr(function(){Sg=null})),(Sg=document.getElementsByTagName("video")[0]||document.getElementsByTagName("audio")[0])||(Sg=document.createElement("video")),ZI.ia(1),Sg)}function hSe(i,u){var f,m,b,w,A;return re(function(R){if(R.g==1)return"fonts"in document&&"FontFace"in o?L(R,document.fonts.ready,2):R.return();if(!("entries"in document.fonts))return R.return();for(f=function(N){N=N.entries();for(var V=[],K=N.next();K.done===!1;)V.push(K.value),K=N.next();return V},m=_(f(document.fonts)),b=m.next();!b.done;b=m.next())if(w=b.value,w.family===i&&w.display==="swap")return R.return();A=new FontFace(i,"url("+u+")",{display:"swap"}),document.fonts.add(A),B(R)})}je("shaka.util.Dom",XI),XI.removeAllChildren=H3,XI.clearSourceFromVideo=s6;var ZI=null,Sg=null;/* @license Shaka Player Copyright 2022 Google LLC SPDX-License-Identifier: Apache-2.0 */function JI(){}function rY(i,u){return u+10<=i.length&&i[u]===73&&i[u+1]===68&&i[u+2]===51&&i[u+3]<255&&i[u+4]<255&&i[u+6]<128&&i[u+7]<128&&i[u+8]<128&&i[u+9]<128}function iY(i,u){return u+10<=i.length&&i[u]===51&&i[u+1]===68&&i[u+2]===73&&i[u+3]<255&&i[u+4]<255&&i[u+6]<128&&i[u+7]<128&&i[u+8]<128&&i[u+9]<128}function QI(i,u){var f=(i[u]&127)<<21;return f|=(i[u+1]&127)<<14,f|=(i[u+2]&127)<<7,f|=i[u+3]&127}function pSe(i){var u={key:i.type,description:"",data:"",mimeType:null,pictureType:null};if(i.type==="APIC"){if(i.size<2||i.data[0]!==3)return null;var f=i.data.subarray(1).indexOf(0);if(f===-1)return null;var m=at(Pe(i.data,1,f)),b=i.data[2+f],w=i.data.subarray(3+f).indexOf(0);if(w===-1)return null;var A=at(Pe(i.data,3+f,w)),R;return m==="-->"?R=at(Pe(i.data,4+f+w)):R=Ce(i.data.subarray(4+f+w)),u.mimeType=m,u.pictureType=b,u.description=A,u.data=R,u}return i.type==="TXXX"?i.size<2||i.data[0]!==3||(m=i.data.subarray(1).indexOf(0),m===-1)?null:(f=at(Pe(i.data,1,m)),i=at(Pe(i.data,2+m)).replace(/\0*$/,""),u.description=f,u.data=i,u):i.type==="WXXX"?i.size<2||i.data[0]!==3||(m=i.data.subarray(1).indexOf(0),m===-1)?null:(f=at(Pe(i.data,1,m)),i=at(Pe(i.data,2+m)).replace(/\0*$/,""),u.description=f,u.data=i,u):i.type==="PRIV"?i.size<2||(f=i.data.indexOf(0),f===-1)?null:(f=at(Pe(i.data,0,f)),u.description=f,f=="com.apple.streaming.transportStreamTimestamp"?(f=i.data.subarray(f.length+1),i=f[3]&1,f=(f[4]<<23)+(f[5]<<15)+(f[6]<<7)+f[7],f/=45,i&&(f+=4772185884e-2),u.data=f):(i=Ce(i.data.subarray(f.length+1)),u.data=i),u):i.type[0]==="T"?i.size<2||i.data[0]!==3?null:(i=at(i.data.subarray(1)).replace(/\0*$/,""),u.data=i,u):i.type[0]==="W"?(i=at(i.data).replace(/\0*$/,""),u.data=i,u):i.data?(u.data=Ce(i.data),u):null}function tv(i){for(var u=0,f=[];rY(i,u);){var m=QI(i,u+6);for(i[u+5]>>6&1&&(u+=10),u+=10,m=u+m;u+10>6&1&&(m+=10),m+=10,m+=QI(i,u+6),iY(i,u+10)&&(m+=10),u+=m;return m>0?i.subarray(f,f+m):new Uint8Array([])}je("shaka.util.Id3Utils",JI),JI.getID3Data=kg,JI.getID3Frames=tv;function oY(i){return new Date(Date.UTC(1900,0,1,0,0,0,0)+i).getTime()}function Yf(i,u){if(this.j=i,u!==void 0&&u){u=new Uint8Array(i.byteLength);for(var f=0,m=0;m=2&&i[m]==3&&i[m-1]==0&&i[m-2]==0||(u[f]=i[m],f++);this.j=Pe(u,0,f)}this.i=this.j.byteLength,this.g=this.h=0}function eL(i){var u=i.j.byteLength-i.i,f=new Uint8Array(4),m=Math.min(4,i.i);m!==0&&(f.set(i.j.subarray(u,u+m)),i.h=new $i(f,0).U(),i.g=m*8,i.i-=m)}function Rl(i,u){if(i.g<=u){u-=i.g;var f=Math.floor(u/8);u-=f*8,i.g-=f,eL(i)}i.h<<=u,i.g-=u}function wr(i,u){var f=Math.min(i.g,u),m=i.h>>>32-f;return i.g-=f,i.g>0?i.h<<=f:i.i>0&&eL(i),f=u-f,f>0?m<>>u)!==0)return i.h<<=u,i.g-=u,u;return eL(i),u+tL(i)}function zs(i){Rl(i,1+tL(i))}function kn(i){var u=tL(i);return wr(i,u+1)-1}function xg(i){return i=kn(i),1&i?1+i>>>1:-1*(i>>>1)}function $n(i){return wr(i,1)===1}function Jr(i){return wr(i,8)}function a6(i,u){for(var f=8,m=8,b=0;b>4>1){var R=b+5+i[b+4];if(R==b+188)continue}else R=b+4;switch(A){case 0:w&&(R+=i[R]+1),this.I=(i[R+10]&31)<<8|i[R+11];break;case 17:case 8191:break;case this.I:w&&(R+=i[R]+1),w=i,A={audio:-1,video:-1,bf:-1,audioCodec:"",videoCodec:""};var N=R+3+((w[R+1]&15)<<8|w[R+2])-4;for(R+=12+((w[R+10]&15)<<8|w[R+11]);R0)for(var Y=R+5,se=K;se>2;){var ce=w[Y+1]+2;switch(w[Y]){case 5:var pe=Sn(w.subarray(Y+2,Y+ce));A.audio==-1&&pe==="Opus"?(A.audio=V,A.audioCodec="opus"):A.video==-1&&pe==="AV01"&&(A.video=V,A.videoCodec="av1");break;case 106:A.audio==-1&&(A.audio=V,A.audioCodec="ac3");break;case 122:A.audio==-1&&(A.audio=V,A.audioCodec="ec3");break;case 124:A.audio==-1&&(A.audio=V,A.audioCodec="aac");break;case 127:A.audioCodec=="opus"&&(pe=null,w[Y+2]===128&&(pe=w[Y+3]),pe!=null&&(this.H={channelCount:(pe&15)===0?2:pe&15,nj:pe,sampleRate:48e3}))}Y+=ce,se-=ce}break;case 15:A.audio==-1&&(A.audio=V,A.audioCodec="aac");break;case 17:A.audio==-1&&(A.audio=V,A.audioCodec="aac-loas");break;case 21:A.bf==-1&&(A.bf=V);break;case 27:A.video==-1&&(A.video=V,A.videoCodec="avc");break;case 3:case 4:A.audio==-1&&(A.audio=V,A.audioCodec="mp3");break;case 36:A.video==-1&&(A.video=V,A.videoCodec="hvc");break;case 129:A.audio==-1&&(A.audio=V,A.audioCodec="ac3");break;case 132:case 135:A.audio==-1&&(A.audio=V,A.audioCodec="ec3")}R+=K+5}w=A,w.video!=-1&&(this.K=w.video,this.m=w.videoCodec),w.audio!=-1&&(this.F=w.audio,this.C=w.audioCodec),w.bf!=-1&&(this.G=w.bf),m&&!this.J&&(m=!1,b=u-188),this.J=!0;break;case this.K:R=i.subarray(R,b+188),w?this.j.push([R]):this.j.length&&this.j[this.j.length-1]&&this.j[this.j.length-1].push(R);break;case this.F:R=i.subarray(R,b+188),w?this.i.push([R]):this.i.length&&this.i[this.i.length-1]&&this.i[this.i.length-1].push(R);break;case this.G:R=i.subarray(R,b+188),w?this.l.push([R]):this.l.length&&this.l[this.l.length-1]&&this.l[this.l.length-1].push(R);break;default:m=!0}}return this};function nL(i,u){if((u[0]<<16|u[1]<<8|u[2])!==1)return null;var f={data:new Uint8Array(0),packetLength:u[4]<<8|u[5],pts:null,dts:null,nalus:[]};if(f.packetLength&&f.packetLength>u.byteLength-6)return null;var m=u[7];if(m&192){var b=(u[9]&14)*536870912+(u[10]&255)*4194304+(u[11]&254)*16384+(u[12]&255)*128+(u[13]&254)/2;i.u==null&&(i.u=b),f.pts=aY(b,i.u),i.u=f.pts,f.dts=f.pts,m&64&&(m=(u[14]&14)*536870912+(u[15]&255)*4194304+(u[16]&254)*16384+(u[17]&255)*128+(u[18]&254)/2,i.o==null&&(i.o=m),f.dts=f.pts!=b?aY(m,i.o):m),i.o=f.dts}return i=u[8]+9,u.byteLength<=i?null:(f.data=u.subarray(i),f)}l.Ek=function(i){return rn("TsParser.parseAvcNalus","Please use parseNalus function instead."),this.Wg(i,{ge:null,state:null})},l.Wg=function(i,u){var f=i.pts?i.pts/9e4:null;i=i.data;var m=i.byteLength,b=1;this.m=="hvc"&&(b=2);var w=u.state||0,A=w,R=0,N=[],V=-1,K=0;for(w==-1&&(V=0,K=this.m=="hvc"?i[0]>>1&63:i[0]&31,w=0,R=1);R=0?N.push({data:i.subarray(V+b,Y),fullData:i.subarray(V,Y),type:K,time:f,state:null}):(w=N.length?N[N.length-1]:u.ge)&&(A&&R<=4-A&&w.state&&(w.data=w.data.subarray(0,w.data.byteLength-A),w.fullData=w.fullData.subarray(0,w.fullData.byteLength-A)),Y>0&&(Y=i.subarray(0,Y),w.data=lr(w.data,Y),w.fullData=lr(w.fullData,Y),w.state=0)),R>1&63:i[R]&31,V=R,w=0):w=-1):w=0:w=3:w=Y?0:1}return V>=0&&w>=0&&N.push({data:i.subarray(V+b,m),fullData:i.subarray(V,m),type:K,time:f,state:w}),!N.length&&u.ge&&(f=N.length?N[N.length-1]:u.ge)&&(f.data=lr(f.data,i),f.fullData=lr(f.fullData,i)),u.state=w,N},l.getMetadata=function(){for(var i=[],u=_(this.l),f=u.next();!f.done;f=u.next())f=lr.apply(ir,T(f.value)),(f=nL(this,f))&&i.push({cueTime:f.pts?f.pts/9e4:null,data:f.data,frames:tv(f.data),dts:f.dts,pts:f.pts});return i},l.ub=function(){if(this.i.length&&!this.h.length)for(var i=_(this.i),u=i.next();!u.done;u=i.next()){var f=lr.apply(ir,T(u.value)),m=nL(this,f);u=this.h.length?this.h[this.h.length-1]:null,m&&m.pts!=null&&m.dts!=null&&(!u||u.pts!=m.pts&&u.dts!=m.dts)?this.h.push(m):this.h.length&&(f=m?m.data:f)&&(u=this.h.pop(),u.data=lr(u.data,f),this.h.push(u))}return this.h},l.ud=function(i){if(i=i===void 0?!0:i,this.j.length&&!this.g.length){for(var u=_(this.j),f=u.next();!f.done;f=u.next()){var m=lr.apply(ir,T(f.value)),b=nL(this,m);f=this.g.length?this.g[this.g.length-1]:null,b&&b.pts!=null&&b.dts!=null&&(!f||f.pts!=b.pts&&f.dts!=b.dts)?this.g.push(b):this.g.length&&(m=b?b.data:m)&&(f=this.g.pop(),f.data=lr(f.data,m),this.g.push(f))}if(i){for(u={ge:null,state:null},f=[],m=_(this.g),b=m.next();!b.done;b=m.next())b=b.value,b.nalus=this.Wg(b,u),b.nalus.length&&(f.push(b),u.ge=b.nalus[b.nalus.length-1]);this.g=f}}return i?this.g:(i=this.g,this.g=[],i)},l.getStartTime=function(i){if(i=="audio"){i=null;var u=this.ub();return u.length&&(i=u[0],i=Math.min(i.dts,i.pts)/9e4),i}return i=="video"?(i=null,u=this.ud(!1),u.length&&(i=u[0],i=Math.min(i.dts,i.pts)/9e4),i):null},l.Vd=function(){return{audio:this.C,video:this.m}},l.$e=function(){for(var i=[],u=_(this.ud()),f=u.next();!f.done;f=u.next())i.push.apply(i,T(f.value.nalus));return i},l.dk=function(){rn("TsParser.getVideoResolution","Please use getVideoInfo function instead.");var i=this.Jg();return{height:i.height,width:i.width}},l.Jg=function(){return this.m=="hvc"?gSe(this):mSe(this)};function sY(i){var u=i.ud();return u.length>1&&(i=u[0].pts,u=u[1].pts,!isNaN(u-i))?String(Math.abs(1/(u-i)*9e4)):null}function mSe(i){var u={height:null,width:null,codec:null,frameRate:null},f=i.$e();if(!f.length||(f=f.find(function(ce){return ce.type==7}),!f))return u;f=new Yf(f.data);var m=Jr(f),b=Jr(f),w=Jr(f);if(zs(f),ySe.includes(m)){var A=kn(f);if(A===3&&Rl(f,1),zs(f),zs(f),Rl(f,1),$n(f)){A=A!==3?8:12;for(var R=0;R0)for($e=b;$e<8;$e++)wr(m,2);for($e=0;$e>Ge&1)<<31-Ge;return tt>>>0})(N),A=A==1?"H":"L",w="hvc1"+("."+["","A","B","C"][w]+R),w+="."+m.toString(16).toUpperCase(),w+="."+A+pe,ce&&(w+="."+ce.toString(16).toUpperCase()),se&&(w+="."+se.toString(16).toUpperCase()),Y&&(w+="."+Y.toString(16).toUpperCase()),K&&(w+="."+K.toString(16).toUpperCase()),V&&(w+="."+V.toString(16).toUpperCase()),f&&(w+="."+f.toString(16).toUpperCase()),u.codec=w,u.frameRate=sY(i),u}function aY(i,u){var f=1;for(i>u&&(f=-1);Math.abs(u-i)>4294967296;)i+=f*8589934592;return i}function Cg(i){return!(rL(i)<0)}function rL(i){for(var u=Math.min(1e3,i.length-564),f=0;f0||i.B.dispatchAllEmsgBoxes;K&&V.S("emsg",function(pe){var ve=b.emsgSchemeIdUris;if(pe.version===0)var ye=pe.reader.Yc(),$e=pe.reader.Yc(),De=pe.reader.U(),qe=pe.reader.U(),ot=pe.reader.U(),bt=pe.reader.U(),tt=m.startTime+qe/De;else De=pe.reader.U(),tt=pe.reader.Dd()/De+m.timestampOffset,qe=tt-m.startTime,ot=pe.reader.U(),bt=pe.reader.U(),ye=pe.reader.Yc(),$e=pe.reader.Yc();pe=pe.reader.Tb(pe.reader.getLength()-pe.reader.Oa(),!0),(ve&&ve.includes(ye)||i.B.dispatchAllEmsgBoxes)&&(ye=="urn:mpeg:dash:event:2012"?i.O.Dk():(ve=tt+ot/De,i.O.Bk({startTime:tt,endTime:ve,schemeIdUri:ye,value:$e,timescale:De,presentationTimeDelta:qe,eventDuration:ot,id:bt,messageData:pe}),(ye=="https://aomedia.org/emsg/ID3"||ye=="https://developer.apple.com/streaming/emsg-id3")&&(De=tv(pe),De.length&&i.O.onMetadata([{cueTime:tt,data:pe,frames:De,dts:tt,pts:tt}],0,ve))))});var Y=m.ba.timescale;u=Y&&!isNaN(Y);var se=0,ce=!1;u&&V.S("prft",function(pe){var ve=pe.reader,ye=pe.version;ve.U(),pe=ve.U();var $e=ve.U();pe=pe*1e3+$e/4294967296*1e3,ye===0?ve=ve.U():(ye=ve.U(),ve=ve.U(),ve=ye*4294967296+ve),pe=oY(pe),ve=new Map().set("detail",{wallClockTime:pe,programStartDate:new Date(pe-ve/Y*1e3)}),ve=new Tn("prft",ve),i.O.onEvent(ve)}).box("moof",ur).box("traf",ur).S("tfdt",function(pe){ce||(se=t6(pe.reader,pe.version).baseMediaDecodeTime/Y,ce=!0,K||pe.parser.stop())}),(K||u)&&V.parse(f,!1,A),ce&&m.timestampOffset==0&&(R=se)}else w.includes("/mp4")||w.includes("/webm")||!Cg(V)||(i.$.has(u)||i.$.set(u,new Li),N=i.$.get(u),N.clearData(),N.Gf(m.i),N.parse(V),V=N.getStartTime(u),V!=null&&(R=V),N=N.getMetadata());return{timestamp:R,metadata:N}}function c6(i,u,f,m,b,w,A,R,N,V,K){A=A===void 0?!1:A,R=R===void 0?!1:R,N=N===void 0?!1:N,V=V===void 0?!1:V;var Y,se,ce,pe,ve,ye,$e,De,qe,ot,bt,tt,Ge,ft,yt,mt,_t,kt,Bt,jt;return re(function(It){switch(It.g){case 1:if(Y=Yr,u!=Y.Na){It.A(2);break}if(i.X!="HLS"){It.A(3);break}return L(It,i.Ta,4);case 4:se=It.h,i.h.u=se;case 3:return L(It,t_e(i.h,f,m?m.startTime:null,m?m.endTime:null,m?m.P()[0]:null),5);case 5:return It.return();case 2:if(V||!i.m){It.A(6);break}return L(It,c6(i,Y.ka,f,m,b,w,A,R,N,!0),7);case 7:return L(It,c6(i,Y.Aa,f,m,b,w,A,R,N,!0),8);case 8:return It.return();case 6:if(!i.l.has(u))return It.return();if(ce=i.l.get(u).timestampOffset,pe=i.F.get(u),i.j.has(u)&&(pe=i.j.get(u).getOriginalMimeType()),m&&(ve=xSe(i,u,f,m,b,pe,N),ye=ve.timestamp,$e=ve.metadata,ye!=null&&(i.V==null&&u==Y.Aa&&(i.V=ye,i.wa=m.startTime,i.T!=null&&(De=0,i.wa==i.qa&&(De=i.V-i.T),i.ma.resolve(De))),i.T==null&&u==Y.ka&&(i.T=ye,i.qa=m.startTime,i.V!=null&&(qe=0,i.wa==i.qa&&(qe=i.V-i.T),i.ma.resolve(qe))),ot=ye,bt=zf,!i.I&&bt.includes(i.F.get(u))&&(ot=0),tt=m.startTime-ot,Ge=Math.abs(ce-tt),(Ge>=.001||A||R)&&(!N||tt>0||!ce)&&(ce=tt,i.ib&&(ts(i,u,function(){return Eg(i,u)},null),ts(i,u,function(){return Tg(i,u,ce)},null))),(u==Y.Aa||!i.l.has(Y.Aa))&&i.Ta.resolve(ce)),$e.length)&&i.O.onMetadata($e,ce,m?m.endTime:null),w&&u==Y.Aa&&(i.h||u6(i,"application/cea-608",i.I,!1),i.J||(ft=pe.split(";",1)[0],i.J=new Bs(ft)),m?(yt=i.J.xf(f),yt.length&&r_e(i.h,yt,ce)):i.J.init(f,R,K)),!i.j.has(u)){It.A(9);break}return L(It,i.j.get(u).transmux(f,b,m,i.i.duration,u),10);case 10:mt=It.h,ArrayBuffer.isView(mt)?f=mt:(_t=mt,_t.init!=null&&(kt=_t.init,ts(i,u,function(){i.H&&li(i.H,kt,ce,b),i.l.get(u).appendBuffer(kt)},m?m.P()[0]:null)),f=_t.data);case 9:if(f=ISe(i,b,f,m,u),!m||!i.I||u==Y.Na){It.A(11);break}if(!A&&!R){It.A(11);break}if(Bt=m.startTime,i.X!="HLS"||i.m||u!=Y.ka||!i.l.has(Y.Aa)){It.A(13);break}return L(It,i.ma,14);case 14:jt=It.h,Math.abs(jt)>.15&&(Bt-=jt);case 13:ts(i,u,function(){return Eg(i,u)},null),ts(i,u,function(){return Tg(i,u,Bt)},null);case 11:return L(It,ts(i,u,function(){var Pt=f;i.H&&li(i.H,Pt,ce,b),i.l.get(u).appendBuffer(Pt)},m?m.P()[0]:null),15);case 15:B(It)}})}function CSe(i,u){var f=iv(i,"video")||0;qK(i.h,u,f)}function wSe(i){i.h&&qK(i.h,"",0)}l.remove=function(i,u,f,m){var b=this,w,A;return re(function(R){return R.g==1?(w=Yr,i==w.Aa&&b.J&&(b.J.remove(m),A=b.h.g||0,b.h.remove(A,f,!0)),i==w.Na?L(R,b.h.remove(u,f),0):f>u?L(R,ts(b,i,function(){return d6(b,i,u,f)},null),5):R.A(0)):b.m?L(R,ts(b,w.ka,function(){return d6(b,w.ka,u,f)},null),0):R.A(0)})};function cY(i,u){var f;return re(function(m){return m.g==1?(f=Yr,u==f.Na?i.h?L(m,i.h.remove(0,1/0),0):m.return():u===f.Aa&&i.J&&i.h?L(m,i.h.remove(0,1/0,!0),4):m.A(4)):m.g!=6?L(m,ts(i,u,function(){return d6(i,u,0,i.i.duration)},null),6):i.m?L(m,ts(i,f.ka,function(){return d6(i,f.ka,0,i.i.duration)},null),0):m.A(0)})}l.flush=function(i){var u=this,f;return re(function(m){return m.g==1?(f=Yr,i==f.Na?m.return():L(m,ts(u,i,function(){u.g.currentTime-=.001,dp(u,i)},null),2)):u.m?L(m,ts(u,f.ka,function(){var b=f.ka;u.g.currentTime-=.001,dp(u,b)},null),0):m.A(0)})};function dY(i,u,f,m,b,w,A,R,N){var V,K,Y;return re(function(se){return se.g==1?(V=Yr,u==V.Na?(w||(i.h.u=f),n_e(i.h,m,b),se.return()):(K=[],L(se,PSe(i,u,A,R,N),2))):(Y=se.h,Y||(K.push(ts(i,u,function(){return Eg(i,u)},null)),i.m&&K.push(ts(i,V.ka,function(){return Eg(i,V.ka)},null))),w||(K.push(ts(i,u,function(){return Tg(i,u,f)},null)),i.m&&K.push(ts(i,V.ka,function(){return Tg(i,V.ka,f)},null))),(m!=0||b!=1/0)&&(K.push(ts(i,u,function(){return fY(i,u,m,b)},null)),i.m&&K.push(ts(i,V.ka,function(){return fY(i,V.ka,m,b)},null))),K.length?L(se,Promise.all(K),0):se.A(0))})}function ESe(i,u,f){var m,b;return re(function(w){return w.g==1?(m=Yr,u==m.Na||(u==m.Aa&&(i.Ta=new ci),!i.I||(b=iv(i,u))&&Math.abs(b-f)<.15)?w.return():(ts(i,u,function(){return Eg(i,u)},null),i.m&&ts(i,m.ka,function(){return Eg(i,m.ka)},null),L(w,ts(i,u,function(){return Tg(i,u,f)},null),2))):i.m?L(w,ts(i,m.ka,function(){return Tg(i,m.ka,f)},null),0):w.A(0)})}l.endOfStream=function(i){var u=this;return re(function(f){return L(f,W3(u,function(){nv(u)||rv(u)||(i?u.i.endOfStream(i):u.i.endOfStream())}),0)})},l.Ab=function(i){var u=this;return re(function(f){return L(f,W3(u,function(){if(u.B.durationReductionEmitsUpdateEnd&&i=u.o&&m&&!u.i)&&(u.j&&u.j(u.g,b),u.i=!0,u.g=f.g.currentTime),u=!m}u&&(u=i.g.currentTime,f=i.g.buffered,m=fSe(f,u,i.h.gapDetectionThreshold),m==null||m==0&&!i.B||(b=f.start(m),(w=i.h.gapPadding)&&(b=Math.ceil((b+w)*100)/100),b>=i.F.Gb()||b-u<.001||(m!=0&&f.end(m-1),OSe(i,b),u==i.l&&(i.l=b),i.G++,i.u(new Tn("gapjumped")))))}}}function OSe(i,u){i.C=!0,i.j.Ba(i.g,"seeked",function(){i.C=!1}),i.g.currentTime=u}function $Se(i){if(!i.h.stallEnabled)return null;var u=i.h.stallThreshold,f=i.h.stallSkip;return new yY(new bY(i.g),u,function(){var m;return re(function(b){if(b.g==1)return m=qf(i.g.buffered),m.length?f?(i.g.currentTime+=f,b.A(2)):L(b,i.g.play(),3):b.return();if(b.g!=2){if(!i.g)return b.return();i.g.pause(),i.g.play()}i.H++,i.u(new Tn("stalldetected")),B(b)})})}function yY(i,u,f){this.h=i,this.m=_Y(i),this.g=i.g.currentTime,this.l=Date.now()/1e3,this.i=!1,this.o=u,this.j=f}yY.prototype.release=function(){this.h&&this.h.release(),this.j=this.h=null};function bY(i){var u=this;this.g=i,this.h=new Ae,this.i=!1,this.h.D(this.g,"audiofocuspaused",function(){u.i=!0}),this.h.D(this.g,"audiofocusgranted",function(){u.i=!1}),this.h.D(this.g,"audiofocuslost",function(){u.i=!0})}function _Y(i){if(i.g.paused||i.g.playbackRate==0||i.i||i.g.buffered.length==0)var u=!1;else e:{u=i.g.currentTime,i=_(qf(i.g.buffered));for(var f=i.next();!f.done;f=i.next())if(f=f.value,!(uf.end-.5)){u=!0;break e}u=!1}return u}bY.prototype.release=function(){this.h&&this.h.release(),this.h=null};function Ag(i,u,f,m){u==HTMLMediaElement.HAVE_NOTHING||i.readyState>=u?m():(u=BSe.value().get(u),f.Ba(i,u,m))}var BSe=new pt(function(){return new Map([[HTMLMediaElement.HAVE_METADATA,"loadedmetadata"],[HTMLMediaElement.HAVE_CURRENT_DATA,"loadeddata"],[HTMLMediaElement.HAVE_FUTURE_DATA,"canplay"],[HTMLMediaElement.HAVE_ENOUGH_DATA,"canplaythrough"]])});function SY(i,u,f,m){var b=this;this.g=i,this.m=u,this.u=f,this.l=null,this.j=function(){return b.l==null&&(b.l=m()),b.l},this.o=!1,this.h=new Ae,this.i=new wY(i),Ag(this.g,HTMLMediaElement.HAVE_METADATA,this.h,function(){xY(b,b.j())})}SY.prototype.release=function(){this.h&&(this.h.release(),this.h=null),this.i!=null&&(this.i.release(),this.i=null),this.m=function(){},this.g=null};function fL(i){return i.o?i.g.currentTime:i.j()}function kY(i,u){i.g.readyState>0?EY(i.i,u):Ag(i.g,HTMLMediaElement.HAVE_METADATA,i.h,function(){xY(i,i.j())})}function xY(i,u){Math.abs(i.g.currentTime-u)<.001?CY(i):(i.h.Ba(i.g,"seeking",function(){CY(i)}),EY(i.i,i.g.currentTime&&i.g.currentTime!=0?i.g.currentTime:u))}function CY(i){i.o=!0,i.h.D(i.g,"seeking",function(){return i.m()}),i.u(i.g.currentTime)}function wY(i){var u=this;this.g=i,this.m=10,this.j=this.l=this.i=0,this.h=new yr(function(){u.i<=0||u.g.currentTime!=u.l||u.g.currentTime===u.j?u.h.stop():(u.g.currentTime=u.j,u.i--)})}wY.prototype.release=function(){this.h&&(this.h.stop(),this.h=null),this.g=null};function EY(i,u){i.l=i.g.currentTime,i.j=u,i.i=i.m,i.g.currentTime=u,i.h.Ea(.1)}function TY(i){this.g=i,this.i=!1,this.h=null,this.j=new Ae}l=TY.prototype,l.ready=function(){function i(){if(u.h==null||u.h==0&&u.g.duration!=1/0)u.i=!0;else{var f=u.g.currentTime,m=null;if(typeof u.h=="number")m=u.h;else if(u.h instanceof Date){var b=AY(u);b!==null&&(m=u.h.getTime()/1e3-b,m=IY(u,m))}m==null?u.i=!0:(m<0&&(m=Math.max(0,f+m)),f!=m?(u.j.Ba(u.g,"seeking",function(){u.i=!0}),u.g.currentTime=m):u.i=!0)}}var u=this;Ag(this.g,HTMLMediaElement.HAVE_FUTURE_DATA,this.j,function(){i()})},l.release=function(){this.j&&(this.j.release(),this.j=null),this.g=null},l.Wf=function(i){this.h=this.i?this.h:i},l.He=function(){var i=this.i?this.g.currentTime:this.h;return i instanceof Date&&(i=i.getTime()/1e3-(AY(this)||0),i=IY(this,i)),i||0},l.Ih=function(){return 0},l.Gh=function(){return 0},l.Hh=function(){return!1},l.xi=function(){},l.ki=function(){var i=o6(this.g.buffered);return i!=null&&i>=this.g.duration-1};function AY(i){return i.g.getStartDate&&(i=i.g.getStartDate().getTime(),!isNaN(i))?i/1e3:null}function IY(i,u){return i=i.g.seekable,i.length>0&&(u=Math.max(i.start(0),u),u=Math.min(i.end(i.length-1),u)),u}function LY(i,u,f,m,b,w){var A=this;this.h=i,this.g=u.presentationTimeline,this.l=f,this.u=b,this.o=null,this.i=new dL(i,u.presentationTimeline,f,w),this.j=new SY(i,function(){e:{var R=A.i;R.m=!0,R.B=!1,R.i&&R.i.Ea(R.h.gapJumpTimerTime),G3(R);var N=fL(A.j);if(R=RY(A,N),!og()&&Math.abs(R-N)>.001){N=!1;var V=Oe().Mi();if(V){var K=Date.now()/1e3;(!A.o||A.o0&&!this.h.paused?MY(this,i):i},l.Ih=function(){return this.i.H},l.Gh=function(){return this.i.G},l.Hh=function(){return this.i.C};function DY(i,u){return u==null?u=i.g.getDuration()<1/0?i.g.Xb():i.g.Gb():u instanceof Date?u=u.getTime()/1e3-(i.g.m||i.g.i):u<0&&(u=i.g.Gb()+u),PY(i,MY(i,u))}l.xi=function(){this.i.wf()},l.ki=function(){if(this.g.W()){var i=this.g.Hc(),u=o6(this.h.buffered);if(u!=null&&u>=i)return!0}return!1};function PY(i,u){var f=i.g.getDuration();return u>=f?f-i.l.durationBackoff:u}function RY(i,u){var f=i.l.rebufferingGoal,m=i.l.safeSeekOffset,b=i.g.Xb(),w=i.g.Gb(),A=i.g.getDuration();w-b<3&&(b=w-3);var R=i.g.Xd(f),N=i.g.Xd(m);return f=i.g.Xd(f+m),u>=A?PY(i,u):u>w?w-i.l.safeSeekEndOffset:u=R||YI(i.h.buffered,u)?u:f}function MY(i,u){var f=i.g.Xb();return ui?i:u)}function $r(i){this.g=i,this.m=null,this.i=0,this.o=!1}l=$r.prototype,l.getNumReferences=function(){return this.g.length},l.getNumEvicted=function(){return this.i},l.release=function(){this.o||(this.g=[],this.m&&this.m.stop(),this.m=null)},l.yk=function(){this.o=!0},l.Fb=function(i){for(var u=_(this.g),f=u.next();!f.done;f=u.next())i(f.value)};function od(i){return i.g[0]||null}l.find=function(i){for(var u=this.g.length-1,f=u;f>=0;--f){var m=this.g[f],b=f=m.startTime&&i=this.g.length?null:this.g[i])},l.offset=function(i){if(!this.o)for(var u=_(this.g),f=u.next();!f.done;f=u.next())f.value.offset(i)},l.nf=function(i){if(!this.o&&i.length){var u=Math.round(i[0].startTime*1e3)/1e3;this.g=this.g.filter(function(f){return Math.round(f.startTime*1e3)/1e3u&&(f.g.length==0||m.endTime>f.g[0].startTime)}),this.nf(i),this.Ya(u)},l.Ya=function(i){if(!this.o){var u=this.g.length;this.g=this.g.filter(function(f){return f.endTime>i}),this.i+=u-this.g.length}},l.pd=function(i,u,f){if(f=f===void 0?!1:f,!this.o){for(;this.g.length&&this.g[this.g.length-1].startTime>=u;)this.g.pop();for(;this.g.length&&this.g[0].endTime<=i;)this.g.shift(),f||this.i++;this.g.length!=0&&(i=this.g[this.g.length-1],u=new zn(i.startTime,u,i.C,i.startByte,i.endByte,i.ba,i.timestampOffset,i.appendWindowStart,i.appendWindowEnd,i.g,i.tilesLayout,i.B,i.h,i.status,i.aesKey),u.mimeType=i.mimeType,u.codecs=i.codecs,u.i=i.i,this.g[this.g.length-1]=u)}},l.Nf=function(i,u){var f=this;this.o||(this.m&&this.m.stop(),this.m=new yr(function(){var m=u();m?f.g.push.apply(f.g,T(m)):(f.m.stop(),f.m=null)}),this.m.Ea(i))},$r.prototype[Symbol.iterator]=function(){return this.Vb(0)},$r.prototype.Vb=function(i,u,f){u=u===void 0?!1:u,f=f===void 0?!1:f;var m=this.find(i);if(m==null)return null;var b=this.get(m);f?m++:m--;var w=-1;if(b&&b.g.length>0)for(var A=b.g.length-1;A>=0;--A){var R=b.g[A];if(i>=R.startTime&&i0&&i.m&&this.g>=i.g.length&&(this.h++,this.g=0,i=this.i.get(this.h)),i&&i.g.length>0?i.g[this.g]:i},l.next=function(){var i=this.i.get(this.h);return this.reverse?i&&i.g.length>0?(this.g--,this.g<0&&(this.h--,this.g=(i=this.i.get(this.h))&&i.g.length>0?i.g.length-1:0)):(this.h--,this.g=0):i&&i.g.length>0?(this.g++,i.m&&this.g==i.g.length&&(this.h++,this.g=0)):(this.h++,this.g=0),i=this.current(),{value:i,done:!i}},l.eh=function(){var i=this.current();if(i&&i.Xc&&!i.l&&(i=this.i.get(this.h))&&i.g.length>0)for(var u=i.g[this.g];u.l&&!(this.g<=0);)this.g--,u=i.g[this.g]},je("shaka.media.SegmentIterator",ju),ju.prototype.resetToLastIndependent=ju.prototype.eh,ju.prototype.next=ju.prototype.next,ju.prototype.current=ju.prototype.current,ju.prototype.currentPosition=ju.prototype.tj,ju.prototype.setReverse=ju.prototype.Id;function eo(){$r.call(this,[]),this.h=[]}x(eo,$r),l=eo.prototype,l.clone=function(){var i=new eo;return i.h=this.h.slice(),i.i=this.i,i},l.release=function(){this.h=[]},l.Fb=function(i){for(var u=_(this.h),f=u.next();!f.done;f=u.next())f.value.Fb(i)};function NSe(i,u){i=_(i.h);for(var f=i.next();!f.done;f=i.next())u(f.value)}l.find=function(i){for(var u=this.i,f=_(this.h),m=f.next();!m.done;m=f.next()){m=m.value;var b=m.find(i);if(b!=null)return b+u;u+=m.getNumEvicted()+m.getNumReferences()}return null};function FSe(i,u){i=_(i.h);for(var f=i.next();!f.done;f=i.next())if(f=f.value,f.find(u)!=null)return f.Te();return-1}l.get=function(i){for(var u=this.i,f=_(this.h),m=f.next();!m.done;m=f.next()){m=m.value;var b=m.get(i-u);if(b)return b;b=m.getNumReferences(),u+=m.getNumEvicted()+b}return null},l.offset=function(){},l.nf=function(){},l.Ya=function(i){if(this.h.length){var u=this.h[0];u.Ya(i),u.getNumReferences()==0&&(this.h.shift(),this.i+=u.getNumEvicted(),u.release(),this.Ya(i))}},l.fe=function(){},l.pd=function(){},l.Nf=function(){},je("shaka.media.MetaSegmentIndex",eo),eo.prototype.updateEvery=eo.prototype.Nf,eo.prototype.fit=eo.prototype.pd,eo.prototype.mergeAndEvict=eo.prototype.fe,eo.prototype.evict=eo.prototype.Ya,eo.prototype.merge=eo.prototype.nf,eo.prototype.offset=eo.prototype.offset,eo.prototype.get=eo.prototype.get,eo.prototype.find=eo.prototype.find,eo.prototype.forEachTopLevelReference=eo.prototype.Fb,eo.prototype.release=eo.prototype.release;function K3(i){var u=this;this.g=i,this.j=!1,this.i=this.g.Ye(),this.h=new yr(function(){u.g.ui(u.i*.25)})}K3.prototype.release=function(){this.set(this.Tc()),this.h&&(this.h.stop(),this.h=null),this.g=null},K3.prototype.set=function(i){this.i=i,hL(this)},K3.prototype.Tc=function(){return this.g.Tc()};function hL(i){i.h.stop();var u=i.j?0:i.i;if(u>=0)try{i.g.Ye()!=u&&i.g.ph(u);return}catch{}i.h.Ea(.25),i.g.Ye()!=0&&i.g.ph(0)}function pL(i){var u=this;this.j=i,this.h=new Ae,this.g=new Set,this.i=new yr(function(){OY(u,!1)}).Jb(),i.paused||this.i.Ea(.25),this.h.D(i,"playing",function(){u.i.Jb().Ea(.25)}),this.h.D(i,"pause",function(){u.i.stop()})}pL.prototype.release=function(){this.h&&(this.h.release(),this.h=null),this.i.stop();for(var i=_(this.g),u=i.next();!u.done;u=i.next())u.value.release();this.g.clear()};function OY(i,u){var f=i.j.currentTime;i=_(i.g);for(var m=i.next();!m.done;m=i.next())m.value.j(f,u)}function h6(i){Zr.call(this),this.g=new Map,this.h=i}x(h6,Zr),h6.prototype.release=function(){this.g.clear(),Zr.prototype.release.call(this)};function jSe(i,u){var f=i.g.get(u);return f||(f={me:[],lg:null,contentType:u},i.g.set(u,f)),f}function VSe(i,u,f){var m=jSe(i,u.contentType);zSe(i,m),i={xd:u,position:f},m=m.me,u=m.findIndex(function(b){return b.position>=f}),u>=0?m.splice(u,m[u].position==f?1:0,i):m.push(i)}h6.prototype.j=function(i){for(var u=_(this.g.values()),f=u.next();!f.done;f=u.next()){f=f.value;var m=f.lg;e:{for(var b=f.me,w=b.length-1;w>=0;w--){var A=b[w];if(A.position<=i){b=A.xd;break e}}b=null}w=b&&!(m===b||m&&b&&m.bandwidth==b.bandwidth&&m.audioSamplingRate==b.audioSamplingRate&&m.codecs==b.codecs&&m.contentType==b.contentType&&m.frameRate==b.frameRate&&m.height==b.height&&m.mimeType==b.mimeType&&m.channelsCount==b.channelsCount&&m.pixelAspectRatio==b.pixelAspectRatio&&m.width==b.width),A=b&&m&&b.label&&m.label&&m.label!==b.label;var R=b&&m&&b.language&&m.language&&m.language!==b.language;m=b&&m&&b.roles&&m.roles&&!ct(m.roles,b.roles),(A||R||m)&&$Y(this,i,b.contentType)&&(f.lg=b,m=new Tn("audiotrackchange",new Map([["quality",b],["position",i]])),this.dispatchEvent(m)),w&&$Y(this,i,b.contentType)&&(f.lg=b,JSON.stringify(b),f=new Tn("qualitychange",new Map([["quality",b],["position",i]])),this.dispatchEvent(f))}};function $Y(i,u,f){return!!((i=i.h()[f])&&i.length>0&&(f=i[i.length-1].end,u>=i[0].start&&u0){var f=i[0].start,m=i[i.length-1].end,b=u.me;u.me=b.filter(function(w,A){return!(w.position<=f&&A+1=m)})}else u.me=[]}function p6(i){var u={bandwidth:i.bandwidth||0,audioSamplingRate:null,codecs:i.codecs,contentType:i.type,frameRate:null,height:null,mimeType:i.mimeType,channelsCount:null,pixelAspectRatio:null,width:null,label:null,roles:i.roles,language:null};return i.type=="video"&&(u.frameRate=i.frameRate||null,u.height=i.height||null,u.pixelAspectRatio=i.pixelAspectRatio||null,u.width=i.width||null),i.type=="audio"&&(u.audioSamplingRate=i.audioSamplingRate,u.channelsCount=i.channelsCount,u.label=i.label||null,u.language=i.language),u}function q3(i){Zr.call(this),this.h=new Map,this.i=i,this.g=null}x(q3,Zr),q3.prototype.release=function(){this.h.clear(),this.g&&(this.g.stop(),this.g=null),Zr.prototype.release.call(this)};function vL(i,u){var f=u.schemeIdUri+"_"+u.id+"_"+(u.startTime.toFixed(1)+"_"+u.endTime.toFixed(1));i.h.has(f)||(i.h.set(f,u),u=new Tn("regionadd",new Map([["region",u]])),i.dispatchEvent(u),USe(i))}function USe(i){i.g||(i.g=new yr(function(){for(var u=i.i(),f=_(i.h),m=f.next();!m.done;m=f.next()){var b=_(m.value);m=b.next().value,b=b.next().value,b.endTimem.endTime&&X3(this,m);u&&mL(this)},v6.prototype.Id=function(i){this.o=i,this.h&&this.h.Id(i)};function mL(i){if(i.g.size)for(var u=Array.from(i.g.keys()),f=_(i.j.keys()),m=f.next(),b={};!m.done;b={Mg:void 0},m=f.next())b.Mg=m.value,u.some((function(w){return function(A){return z3(A.ba,w.Mg)}})(b))||X3(i,b.Mg)}function FY(i,u){i.m=u;for(var f=Array.from(i.g.keys());f.length>u;){var m=f.pop();m&&X3(i,m)}mL(i)}function WSe(i,u){u&&u!==i.i&&(sd(i),i.i=u)}function X3(i,u){var f=i.g;u instanceof rl&&(f=i.j),i=f.get(u),f.delete(u),i&&i.abort()}function gL(i){this.g=i,this.je=this.wh=null}function jY(i,u,f){var m=new Uint8Array(0);return i.je=i.g(u,f,function(b){return re(function(w){if(w.g==1)return m.byteLength>0?m=lr(m,b):m=b,i.wh?L(w,i.wh(m),3):w.A(0);m=new Uint8Array(0),B(w)})}),i.je.promise.catch(function(b){return b instanceof we&&b.code==7001?Promise.resolve():Promise.reject(b)})}gL.prototype.abort=function(){this.je&&this.je.abort()},je("shaka.config.CrossBoundaryStrategy",{KEEP:"keep",RESET:"reset",RESET_TO_ENCRYPTED:"reset_to_encrypted",RESET_ON_ENCRYPTION_CHANGE:"RESET_ON_ENCRYPTION_CHANGE"});function yL(i){var u=Ll(i),f=u.split("/")[0];return i=nl(i),{type:f,mimeType:u,codecs:i,language:null,height:null,width:null,channelCount:null,sampleRate:null,closedCaptions:new Map,ve:null,colorGamut:null,frameRate:null}}function GSe(i,u,f){function m(Ge){$e=Ge.name;var ft=Ge.reader;ft.skip(24);var yt=ft.Ca(),mt=ft.Ca();ft.skip(50),se=String(yt),Y=String(mt),Ge.reader.Ia()&&ur(Ge)}function b(Ge){var ft=Wq(Ge.reader);ce=ft.channelCount,pe=ft.sampleRate,w(Ge.name)}function w(Ge){switch(Ge=Ge.toLowerCase(),Ge){case"avc1":case"avc3":R.push(Ge+".42E01E"),V=!0;break;case"hev1":case"hvc1":R.push(Ge+".1.6.L93.90"),V=!0;break;case"dvh1":case"dvhe":R.push(Ge+".05.04"),V=!0;break;case"vp09":R.push(Ge+".00.10.08"),V=!0;break;case"av01":R.push(Ge+".0.01M.08"),V=!0;break;case"mp4a":A.push("mp4a.40.2"),N=!0;break;case"ac-3":case"ec-3":case"ac-4":case"opus":case"flac":A.push(Ge),N=!0;break;case"apac":A.push("apac.31.00"),N=!0}}var A=[],R=[],N=!1,V=!1,K=null,Y=null,se=null,ce=null,pe=null,ve=null,ye=null,$e;if(new di().box("moov",ur).box("trak",ur).box("mdia",ur).S("mdhd",function(Ge){K=n6(Ge.reader,Ge.version).language}).box("minf",ur).box("stbl",ur).S("stsd",Gf).box("mp4a",function(Ge){var ft=Wq(Ge.reader);ce=ft.channelCount,pe=ft.sampleRate,Ge.reader.Ia()?ur(Ge):w(Ge.name)}).box("esds",function(Ge){Ge=Ge.reader;for(var ft="mp4a",yt,mt;Ge.Ia();){yt=Ge.Y();for(var _t=Ge.Y();_t&128;)_t=Ge.Y();if(yt==3)Ge.Ca(),_t=Ge.Y(),_t&128&&Ge.Ca(),_t&64&&Ge.skip(Ge.Y()),_t&32&&Ge.Ca();else if(yt==4)mt=Ge.Y(),Ge.skip(12);else if(yt==5)break}mt&&(ft+="."+F3(mt),yt==5&&Ge.Ia()&&(yt=Ge.Y(),mt=(yt&248)>>3,mt===31&&Ge.Ia()&&(mt=32+((yt&7)<<3)+((Ge.Y()&224)>>5)),ft+="."+mt)),A.push(ft),N=!0}).box("ac-3",b).box("ec-3",b).box("ac-4",b).box("Opus",b).box("fLaC",b).box("apac",b).box("avc1",m).box("avc3",m).box("hev1",m).box("hvc1",m).box("dva1",m).box("dvav",m).box("dvh1",m).box("dvhe",m).box("vp09",m).box("av01",m).box("avcC",function(Ge){var ft=$e||"";switch($e){case"dvav":ft="avc3";break;case"dva1":ft="avc1"}Ge=Ge.reader,Ge.skip(1),Ge=ft+"."+F3(Ge.Y())+F3(Ge.Y())+F3(Ge.Y()),R.push(Ge),V=!0}).box("hvcC",function(Ge){var ft=$e||"";switch($e){case"dvh1":ft="hvc1";break;case"dvhe":ft="hev1"}var yt=Ge.reader;yt.skip(1),Ge=yt.Y();var mt=["","A","B","C"][Ge>>6],_t=Ge&31,kt=yt.U(),Bt=(Ge&32)>>5?"H":"L";Ge=[yt.Y(),yt.Y(),yt.Y(),yt.Y(),yt.Y(),yt.Y()],yt=yt.Y();for(var jt=0,It=0;It<32&&(jt|=kt&1,It!=31);It++)jt<<=1,kt>>=1;for(ft=ft+("."+mt+_t)+("."+F3(jt,!0)),ft+="."+Bt+yt,mt="",_t=Ge.length;_t--;)((Bt=Ge[_t])||mt)&&(mt="."+Bt.toString(16).toUpperCase()+mt);ft+=mt,R.push(ft),V=!0}).box("dvcC",function(Ge){var ft=$e||"";switch($e){case"hvc1":ft="dvh1";break;case"hev1":ft="dvhe";break;case"avc1":ft="dva1";break;case"avc3":ft="dvav";break;case"av01":ft="dav1"}var yt=Ge.reader;yt.skip(2),Ge=yt.Y(),yt=yt.Y(),R.push(ft+"."+Pl(Ge>>1&127)+"."+Pl(Ge<<5&32|yt>>3&31)),V=!0}).box("dvvC",function(Ge){var ft=$e||"";switch($e){case"hvc1":ft="dvh1";break;case"hev1":ft="dvhe";break;case"avc1":ft="dva1";break;case"avc3":ft="dvav";break;case"av01":ft="dav1"}var yt=Ge.reader;yt.skip(2),Ge=yt.Y(),yt=yt.Y(),R.push(ft+"."+Pl(Ge>>1&127)+"."+Pl(Ge<<5&32|yt>>3&31)),V=!0}).S("vpcC",function(Ge){var ft=$e||"",yt=Ge.reader;Ge=yt.Y();var mt=yt.Y();yt=yt.Y()>>4&15,R.push(ft+"."+Pl(Ge)+"."+Pl(mt)+"."+Pl(yt)),V=!0}).box("av1C",function(Ge){var ft=$e||"";switch($e){case"dav1":ft="av01"}var yt=Ge.reader;yt.skip(1),Ge=yt.Y(),yt=yt.Y();var mt=Ge>>>5,_t=(yt&64)>>6;R.push(ft+"."+mt+"."+Pl(Ge&31)+(yt>>>7?"H":"M")+"."+Pl(mt===2&&_t?(yt&32)>>5?12:10:_t?10:8)+"."+((yt&16)>>4)+"."+((yt&8)>>3)+((yt&4)>>2)+(yt&3)+"."+Pl(1)+"."+Pl(1)+"."+Pl(1)+".0"),V=!0}).box("enca",XS).box("encv",Dl).box("sinf",ur).box("frma",function(Ge){Ge=KI(Ge.reader).codec,w(Ge)}).box("colr",function(Ge){R=R.map(function(mt){if(mt.startsWith("av01.")){var _t=Ge.reader,kt=_t.Oa(),Bt=_t.Tb(4,!1),jt=String.fromCharCode(Bt[0]);if(jt+=String.fromCharCode(Bt[1]),jt+=String.fromCharCode(Bt[2]),jt+=String.fromCharCode(Bt[3]),jt==="nclx"){Bt=_t.Ca(),jt=_t.Ca();var It=_t.Ca(),Pt=_t.Y()>>7,Yt=mt.split(".");Yt.length==10&&(Yt[6]=Pl(Bt),Yt[7]=Pl(jt),Yt[8]=Pl(It),Yt[9]=String(Pt),mt=Yt.join("."))}_t.seek(kt)}return mt});var ft=q_e(Ge.reader),yt=ft.colorGamut;ve=ft.ve,ye=yt}).parse(i||u,!0,!0),!A.length&&!R.length)return null;var De=N&&!V,qe=new Map;if(V&&!f){f=new Bs("video/mp4"),i&&f.init(i);try{f.xf(u);for(var ot=_(f.Vf()),bt=ot.next();!bt.done;bt=ot.next()){var tt=bt.value;qe.set(tt,tt)}}catch{}f.Nd()}return{type:De?"audio":"video",mimeType:De?"audio/mp4":"video/mp4",codecs:bL(A.concat(R)).join(", "),language:K,height:Y,width:se,channelCount:ce,sampleRate:pe,closedCaptions:qe,ve,colorGamut:ye,frameRate:null}}function bL(i){var u=new Set,f=[];i=_(i);for(var m=i.next();!m.done;m=i.next()){m=m.value;var b=sp(m);u.has(b)||(f.push(m),u.add(b))}return u=Ta("audio",f),m=Ta("video",f),i=Ta(Ln,f),m=KSe(m),u=u.concat(m).concat(i),f.length&&!u.length?f:u}function KSe(i){if(i.length<=1)return i;var u=i.find(function(f){return f.startsWith("dvav.")||f.startsWith("dva1.")||f.startsWith("dvh1.")||f.startsWith("dvhe.")||f.startsWith("dav1.")||f.startsWith("dvc1.")||f.startsWith("dvi1.")});return u?jo('video/mp4; codecs="'+u+'"')?[u]:i.filter(function(f){return f!=u}):i}function qSe(i){var u=null;return new di().box("moov",ur).box("trak",ur).box("mdia",ur).box("minf",ur).box("stbl",ur).S("stsd",Gf).box("encv",Dl).box("enca",XS).box("sinf",ur).box("schi",ur).S("tenc",function(f){f=f.reader,f.Y(),f.Y(),f.Y(),f.Y(),f=f.Tb(16,!1),u=Mn(f)}).parse(i,!0),u}function _L(i,u,f){var m,b,w,A,R;return re(function(N){if(N.g==1)return m=u,m.cryptoKey?N.A(2):L(N,m.fetchKey(),3);if(b=m.iv,!b)for(b=Pe(new ArrayBuffer(16)),w=m.firstMediaSequenceNumber+f,A=b.byteLength-1;A>=0;A--)b[A]=w&255,w>>=8;return u.blockCipherMode=="CBC"?R={name:"AES-CBC",iv:b}:R={name:"AES-CTR",counter:b,length:64},N.return(o.crypto.subtle.decrypt(R,m.cryptoKey,i))})}function Z3(i,u,f,m,b){return i=Vo(i,m,b),(u!=0||f!=null)&&(i.headers.Range=f?"bytes="+u+"-"+f:"bytes="+u+"-"),i}function VY(i,u){var f=this;this.g=u,this.j=i,this.i=null,this.M=new Map,this.C=1,this.B=this.o=null,this.V=0,this.h=new Map,this.N=!1,this.X=null,this.F=!1,this.l=new pg(function(){return YSe(f)}),this.R=Date.now()/1e3,this.m=new Map,this.T={projection:null,hfov:null},this.aa=0,this.$=1/0,this.H=null,this.O=[],this.u=new yr(function(){if(f.j&&f.g)if(f.j.presentationTimeline.W()){var m=f.j.presentationTimeline.Xb(),b=f.j.presentationTimeline.Gb();b-m>1?TSe(f.g.Z,m,b):sL(f.g.Z)}else sL(f.g.Z),f.u&&f.u.stop();else f.u&&f.u.stop()}),this.I=null,this.J=!1,this.K=new yr(function(){var m=f.g.video;!m.ended&&f.I&&(f.J=!0,m.currentTime=f.I,f.I=null)}),this.G=new Ae}l=VY.prototype,l.destroy=function(){return this.l.destroy()};function YSe(i){var u,f,m,b,w,A,R;return re(function(N){if(N.g==1){for(i.u&&i.u.stop(),i.u=null,i.K&&i.K.stop(),i.K=null,i.G&&(i.G.release(),i.G=null),u=[],f=_(i.h.values()),m=f.next();!m.done;m=f.next())b=m.value,Xf(b),u.push(_6(b)),b.ha&&(sd(b.ha),b.ha=null);for(w=_(i.m.values()),A=w.next();!A.done;A=w.next())R=A.value,sd(R);return L(N,Promise.all(u),2)}i.h.clear(),i.m.clear(),i.g=null,i.j=null,i.i=null,i.I=null,B(N)})}l.configure=function(i){if(this.i=i,this.X=new hq({maxAttempts:Math.max(i.retryParameters.maxAttempts,2),baseDelay:i.retryParameters.baseDelay,backoffFactor:i.retryParameters.backoffFactor,fuzzFactor:i.retryParameters.fuzzFactor},!0),i.disableAudioPrefetch){var u=this.h.get("audio");u&&u.ha&&(sd(u.ha),u.ha=null),u=_(this.m.keys());for(var f=u.next();!f.done;f=u.next())f=f.value,sd(this.m.get(f)),this.m.delete(f)}for(i.disableTextPrefetch&&(u=this.h.get(Ln))&&u.ha&&(sd(u.ha),u.ha=null),i.disableVideoPrefetch&&(u=this.h.get("video"))&&u.ha&&(sd(u.ha),u.ha=null),u=_(this.h.keys()),f=u.next();!f.done;f=u.next())f=this.h.get(f.value),f.ha?(FY(f.ha,i.segmentPrefetchLimit),i.segmentPrefetchLimit>0||(sd(f.ha),f.ha=null)):i.segmentPrefetchLimit>0&&(f.ha=kL(this,f.stream));i.disableAudioPrefetch||n6e(this)};function XSe(i,u,f){i.j.presentationTimeline.W()||(i.aa=u,i.$=f)}l.start=function(i){var u=this;return re(function(f){if(f.g==1)return L(f,t6e(u,i||new Map),2);Ii(u.l),u.N=!0,B(f)})};function ZSe(i,u){var f,m,b,w,A,R;re(function(N){switch(N.g){case 1:return f=Yr,i.V++,m=i.V,F(N,2),L(N,cY(i.g.Z,f.Na),4);case 4:U(N,3);break;case 2:b=G(N),i.g&&i.g.onError(b);case 3:w=So(u.mimeType,u.codecs),u6(i.g.Z,w,i.j.sequenceMode,u.external),A=i.g.Z.aa,(A.isTextVisible()||i.i.alwaysStreamText)&&i.V==m&&(R=g6(i,u),i.h.set(f.Na,R),va(i,R,0)),B(N)}})}function JSe(i){var u=i.h.get(Ln);u&&(Xf(u),_6(u).catch(function(){}),i.H=i.h.get(Ln),i.h.delete(Ln),u.stream&&u.stream.closeSegmentIndex&&u.stream.closeSegmentIndex()),i.B=null}function zY(i,u){for(var f=i.g.Ob()<0,m=_(i.h.values()),b=m.next();!b.done;b=m.next())b=b.value,b.ua&&b.ua.Id(f),b.ha&&b.ha.Id(f);for(m=_(i.m.values()),b=m.next();!b.done;b=m.next())b.value.Id(f);(f=i.h.get("video"))&&(m=f.stream)&&(u?(u=m.trickModeVideo)&&!f.Mc&&(Ig(i,u,!1,0,!1),f.Mc=m):(u=f.Mc)&&(f.Mc=null,Ig(i,u,!0,0,!1)))}function UY(i,u,f,m,b,w){f=f===void 0?!1:f,m=m===void 0?0:m,b=b===void 0?!1:b,w=w===void 0?!1:w,i.o=u,i.N&&(u.video&&Ig(i,u.video,f,m,b,w),u.audio&&Ig(i,u.audio,f,m,b,w))}function m6(i,u){re(function(f){if(f.g==1)return i.H=null,i.B=u,i.N?u.segmentIndex?f.A(2):L(f,u.createSegmentIndex(),2):f.return();Ig(i,u,!0,0,!1),B(f)})}function QSe(i){var u=i.h.get(Ln);u&&Ig(i,u.stream,!0,0,!0)}function e6e(i,u){for(var f=_(i.M.entries()),m=f.next();!m.done;m=f.next()){var b=_(m.value);m=b.next().value,b=b.next().value,m.includes(u.type)&&(b(),i.M.delete(m))}}function Ig(i,u,f,m,b,w){var A=i.h.get(u.type);A||u.type!=Ln?A&&(A.Mc&&(u.trickModeVideo?(A.Mc=u,u=u.trickModeVideo):A.Mc=null),A.stream!=u||b)&&(i.m.has(u)?A.ha=i.m.get(u):A.ha&&WSe(A.ha,u),u.type==Ln&&A.stream!=u&&(b=So(u.mimeType,u.codecs),u6(i.g.Z,b,i.j.sequenceMode,u.external)),!i.m.has(A.stream)&&A.stream.closeSegmentIndex&&(A.Ja?(b="("+A.type+":"+A.stream.id+")",i.M.has(b)||i.M.set(b,A.stream.closeSegmentIndex)):A.stream.closeSegmentIndex()),b=A.stream.isAudioMuxedInVideo!=u.isAudioMuxedInVideo,A.stream=u,A.ua=null,A.cg=!!w,u.dependencyStream?A.Ec=g6(i,u.dependencyStream):A.Ec=null,qY(i),b&&(A.pb=null,A.qc=null,A.nc=null,u.isAudioMuxedInVideo&&(u=null,A.type==="video"?u=i.h.get("audio"):A.type==="audio"&&(u=i.h.get("video")),u&&(_6(u).catch(function(){}),u.pb=null,u.qc=null,u.nc=null,SL(i,u),HY(i,u).catch(function(R){i.g&&i.g.onError(R)})))),f?A.Ub?A.Kd=!0:A.Ja?(A.ec=!0,A.ld=m,A.Kd=!0):(Xf(A),wL(i,A,!0,m).catch(function(R){i.g&&i.g.onError(R)})):A.Ja||A.qb||va(i,A,0),HY(i,A).catch(function(R){i.g&&i.g.onError(R)})):ZSe(i,u)}function HY(i,u){var f,m,b;return re(function(w){if(w.g==1)return u.Va?(f=u.stream,m=u.Va,f.segmentIndex?w.A(2):L(w,f.createSegmentIndex(),2)):w.return();if(w.g!=4)return b=f.dependencyStream,!b||b.segmentIndex?w.A(4):L(w,b.createSegmentIndex(),4);if(u.Va!=m||u.stream!=f)return w.return();var A=i.g.lc(),R=iv(i.g.Z,u.type),N=u.stream.segmentIndex.find(u.La?u.La.endTime:A),V=N==null?null:u.stream.segmentIndex.get(N);N=V?qI(V):null,V&&!N&&(N=(V.endTime-V.getStartTime())*(u.stream.bandwidth||i.o.bandwidth)/8),N?((V=V.ba)&&(N+=(V.endByte?V.endByte+1-V.startByte:null)||0),V=i.g.getBandwidthEstimate(),A=N*8/V<(R||0)-A-i.i.rebufferingGoal||u.Va.h.g>N):A=!0,A&&u.Va.abort(),B(w)})}l.bd=function(){if(this.g){for(var i=this.g.lc(),u=_(this.h.keys()),f=u.next();!f.done;f=u.next()){var m=f.value;f=this.h.get(m);var b;if((b=!this.J)&&(b=this.g.Z,m==Ln?(b=b.h,b=b.g==null||b.h==null?!1:i>=b.g&&i0?new v6(i.i.segmentPrefetchLimit,u,function(m,b,w){return b6(m,b,w||null,i.i.retryParameters,i.g.tc)},i.g.Ob()<0,i.g.al):null}function n6e(i){for(var u=i.i.segmentPrefetchLimit,f=i.i.prefetchAudioLanguages,m=_(i.j.variants),b=m.next(),w={};!b.done;w={Mb:void 0},b=m.next())if(w.Mb=b.value,w.Mb.audio)if(i.m.has(w.Mb.audio)){if(b=i.m.get(w.Mb.audio),FY(b,u),!(u>0&&f.some((function(R){return function(N){return ug(R.Mb.audio.language,N)}})(w)))){var A=i.h.get(w.Mb.audio.type);b!==(A&&A.ha)&&sd(b),i.m.delete(w.Mb.audio)}}else u<=0||!f.some((function(R){return function(N){return ug(R.Mb.audio.language,N)}})(w))||!(b=kL(i,w.Mb.audio))||(w.Mb.audio.segmentIndex||w.Mb.audio.createSegmentIndex(),i.m.set(w.Mb.audio,b))}l.updateDuration=function(){var i=og(),u=this.j.presentationTimeline.getDuration();u<1/0?(i&&(this.u&&this.u.stop(),sL(this.g.Z)),this.g.Z.Ab(u)):i?(this.u&&this.u.Ea(.5),this.g.Z.Ab(1/0)):this.g.Z.Ab(4294967296)};function r6e(i,u){var f,m,b,w,A,R,N,V,K;return re(function(Y){switch(Y.g){case 1:if(Ii(i.l),f=Yr,u.Ja||u.qb==null||u.Ub)return Y.return();if(u.qb=null,!u.ec){Y.A(2);break}return L(Y,wL(i,u,u.Kd,u.ld),3);case 3:return Y.return();case 2:if(e6e(i,u),u.stream.segmentIndex){Y.A(4);break}return m=u.stream,F(Y,5),L(Y,u.stream.createSegmentIndex(),7);case 7:U(Y,6);break;case 5:return b=G(Y),L(Y,EL(i,u,b),8);case 8:return Y.return();case 6:if(m!=u.stream)return m.closeSegmentIndex&&m.closeSegmentIndex(),u.Ja||u.qb||va(i,u,0),Y.return();case 4:if(!u.Ec){Y.A(9);break}if(u.Ec.stream.segmentIndex){Y.A(9);break}return F(Y,11),L(Y,u.Ec.stream.createSegmentIndex(),13);case 13:U(Y,9);break;case 11:G(Y);case 9:F(Y,14),w=i6e(i,u),w!=null&&(va(i,u,w),u.Zd=!1),U(Y,15);break;case 14:return A=G(Y),L(Y,EL(i,u,A),16);case 16:return Y.return();case 15:if(u.type===f.Na)return Y.return();if(R=[u],N=u.type===f.ka?f.Aa:f.ka,(V=i.h.get(N))&&R.push(V),!i.N||!R.every(function(se){return se.endOfStream})){Y.A(0);break}return L(Y,i.g.Z.endOfStream(),18);case 18:Ii(i.l),K=i.g.Z.getDuration(),K!=0&&K=w)return f/2;if(R=!u.ua,N=WY(i,u,m,N),!N)return f;A=u.pb;var V=N.ba;A&&V&&z3(V,A)&&(A.g=V.g),A=!1,R&&u.cg&&(A=!0,u.cg=!1),R=1/0,V=Array.from(i.h.values()),V=_(V);for(var K=V.next();!K.done;K=V.next())K=K.value,CL(K)||K.ua&&!K.ua.current()||(R=Math.min(R,K.La?K.La.endTime:m));return b>=R+i.j.presentationTimeline.h?f:(u.ha&&u.ua&&!i.m.has(u.stream)&&(u.ha.Ya(N.startTime+.001),Y3(u.ha,N.startTime).catch(function(){})),Q3(i)&&u6e(i,u,N)||(o6e(i,u,m,N,A).catch(function(){}),u.Ec&&GY(i,u.Ec,m,w)),null)}function WY(i,u,f,m){if(u.ua)return(f=u.ua.current())&&u.La&&Math.abs(u.La.startTime-f.startTime)<.001&&(f=u.ua.next().value),f;if(u.La||m)return f=u.La?u.La.endTime:m,i=i.g.Ob()<0,u.stream.segmentIndex&&(u.ua=u.stream.segmentIndex.Vb(f,!1,i)),u.ua&&u.ua.next().value;m=i.j.sequenceMode||Q3(i)?0:i.i.inaccurateManifestTolerance;var b=Math.max(f-m,0);i=i.g.Ob()<0;var w=null;return m&&(u.stream.segmentIndex&&(u.ua=u.stream.segmentIndex.Vb(b,!1,i)),w=u.ua&&u.ua.next().value),w||(u.stream.segmentIndex&&(u.ua=u.stream.segmentIndex.Vb(f,!1,i)),w=u.ua&&u.ua.next().value),w}function o6e(i,u,f,m,b){var w,A,R,N,V,K,Y,se,ce,pe,ve,ye,$e,De,qe,ot,bt;return re(function(tt){switch(tt.g){case 1:if(w=Yr,A=u.stream,R=u.ua,u.Ja=!0,F(tt,2),m.Jc()==2)throw new we(1,1,1011);return L(tt,a6e(i,u,m,b),4);case 4:return Ii(i.l),i.F?tt.return():(N=A.mimeType=="video/mp4"||A.mimeType=="audio/mp4",V=o.ReadableStream,i.i.lowLatencyMode&&i.j.isLowLatency&&V&&N&&(i.j.type!="HLS"||m.o)?(se=new Uint8Array(0),pe=ce=!1,ye=function(Ge){var ft,yt,mt;return re(function(_t){switch(_t.g){case 1:if(ce||(pe=!0,Ii(i.l),i.F))return _t.return();if(F(_t,2),se=lr(se,Ge),ft=!1,yt=0,new di().box("mdat",function(kt){yt=kt.size+kt.start,ft=!0}).parse(se,!1,!0),!ft){_t.A(4);break}return mt=se.subarray(0,yt),se=se.subarray(yt),L(_t,xL(i,u,f,A,m,mt,!0,b),5);case 5:u.ha&&u.ua&&Y3(u.ha,m.startTime,!0);case 4:U(_t,0);break;case 2:ve=G(_t),B(_t)}})},L(tt,J3(i,u,m,ye),9)):(K=J3(i,u,m),L(tt,K,7)));case 7:return Y=tt.h,Ii(i.l),i.F?tt.return():(Ii(i.l),u.ec?(u.Ja=!1,va(i,u,0),tt.return()):L(tt,xL(i,u,f,A,m,Y,!1,b),6));case 9:if($e=tt.h,ve)throw ve;if(pe){tt.A(10);break}return ce=!0,Ii(i.l),i.F?tt.return():u.ec?(u.Ja=!1,va(i,u,0),tt.return()):L(tt,xL(i,u,f,A,m,$e,!1,b),10);case 10:u.ha&&u.ua&&Y3(u.ha,m.startTime,!0);case 6:if(Ii(i.l),i.F)return tt.return();u.La=m,R.next(),u.Ja=!1,u.ah=!1,De=i.g.Z.Fc(),qe=De[u.type],JSON.stringify(qe),u.ec||(ot=null,u.type===w.Aa?ot=i.h.get(w.ka):u.type===w.ka&&(ot=i.h.get(w.Aa)),ot&&ot.type==w.ka?i.g.wf(m,u.stream,ot.stream.isAudioMuxedInVideo):i.g.wf(m,u.stream,u.stream.codecs.includes(","))),Xf(u),va(i,u,0),U(tt,0);break;case 2:if(bt=G(tt),Ii(i.l,bt),i.F)return tt.return();if(u.Ja=!1,bt.code==7001)u.Ja=!1,Xf(u),va(i,u,0),tt.A(0);else if(u.type==w.Na&&i.i.ignoreTextStreamFailures)i.h.delete(w.Na),tt.A(0);else return bt.code==3017?L(tt,s6e(i,u,bt),0):(u.Zd=!0,bt.category==1&&u.ha&&X3(u.ha,m),bt.severity=2,L(tt,EL(i,u,bt),0))}})}function GY(i,u,f,m){var b,w,A,R,N,V,K,Y,se,ce,pe;return re(function(ve){switch(ve.g){case 1:for(b=u.stream,R=(A=(w=b.segmentIndex)&&w.Vb(f))&&A.next().value;R&&i.O.includes(R.startTime);)R=A&&A.next().value;if(!R){ve.A(0);break}if(N=R.ba,!N||z3(N,u.pb)){ve.A(3);break}return u.pb=N,F(ve,4),L(ve,J3(i,u,N),6);case 6:V=ve.h;var ye=i.g.Z;ye.H&&li(ye.H,V,0,b),i.O=[],U(ve,3);break;case 4:throw K=G(ve),u.pb=null,K;case 3:if(u.La&&u.La==R){ve.A(0);break}return u.La=R,F(ve,8),L(ve,J3(i,u,R),10);case 10:Y=ve.h,ye=i.g.Z,ye.H&&li(ye.H,Y,0,b),i.O.push(R.startTime),U(ve,9);break;case 8:throw se=G(ve),u.La=null,se;case 9:if(ce=Math.max.apply(Math,[0].concat(T(i.O))),pe=i.g.lc(),pe+m>ce)return L(ve,GY(i,u,R.startTime,m),0);ve.A(0)}})}function s6e(i,u,f){var m,b,w,A,R,N,V;return re(function(K){switch(K.g){case 1:if(m=Array.from(i.h.values()),m.some(function(Y){return Y!=u&&Y.ah})){K.A(2);break}if(i.i.avoidEvictionOnQuotaExceededError)return b=TL(i,f),i.g.disableStream(u.stream,b)||va(i,u,4),K.return();if(w=Math.round(100*i.C),w>20){i.C-=.2,K.A(3);break}if(w>4){i.C-=.04,K.A(3);break}if(A=TL(i,f),R=i.g.disableStream(u.stream,A),!R){u.Zd=!0,i.F=!0,i.g.onError(f),K.A(5);break}return i.C=1,N=i.g.lc(),L(K,y6(i,u,N),5);case 5:return K.return();case 3:return u.ah=!0,V=i.g.lc(),L(K,y6(i,u,V),2);case 2:va(i,u,4),B(K)}})}function a6e(i,u,f,m){var b,w,A,R,N,V,K,Y,se,ce,pe,ve,ye,$e,De,qe;return re(function(ot){switch(ot.g){case 1:if(b=Yr,w=u.La==null,A=[],R=Math.max(0,Math.max(f.appendWindowStart,i.aa)-.1),N=Math.min(f.appendWindowEnd,i.$)+.1,V=f.codecs||u.stream.codecs,K=sp(V),Y=Ll(f.mimeType||u.stream.mimeType),se=f.timestampOffset,se==u.kf&&R==u.qc&&N==u.nc&&K==u.hf&&Y==u.jf){ot.A(2);break}if(ce=u.hf&&u.jf&&RSe(i.g.Z,u.type,Y,V,k6(i)),!ce){ot.A(3);break}if(pe=null,u.type===b.Aa?pe=i.h.get(b.ka):u.type===b.ka&&(pe=i.h.get(b.Aa)),!pe){ot.A(3);break}return L(ot,_6(pe).catch(function(){}),5);case 5:pe.pb=null,pe.qc=null,pe.nc=null,SL(i,pe);case 3:return L(ot,KY(i,u,se,R,N,f,K,Y),2);case 2:return z3(f.ba,u.pb)||(u.pb=f.ba,f.l&&f.ba&&(ve=J3(i,u,f.ba),ye=function(){var bt,tt,Ge,ft,yt,mt,_t,kt,Bt,jt,It;return re(function(Pt){switch(Pt.g){case 1:return F(Pt,2),L(Pt,ve,4);case 4:return bt=Pt.h,Ii(i.l),tt=null,Ge=new Map,ft={projection:null,hfov:null},u.stream&&(yt=u.stream.videoLayout)&&(mt=yt.split("/"),mt.includes("PROJ-RECT")?ft.projection="rect":mt.includes("PROJ-EQUI")?ft.projection="equi":mt.includes("PROJ-HEQU")?ft.projection="hequ":mt.includes("PROJ-PRIM")?ft.projection="prim":mt.includes("PROJ-AIV")&&(ft.projection="hequ")),_t=new di,_t.box("moov",ur).box("trak",ur).box("mdia",ur).S("mdhd",function(Yt){tt=n6(Yt.reader,Yt.version).timescale}).box("hdlr",function(Yt){switch(Yt=Yt.reader,Yt.skip(8),Yt.Yc()){case"soun":Ge.set(b.ka,tt);break;case"vide":Ge.set(b.Aa,tt)}tt=null}),u.type!==b.Aa||ft.projection||_t.box("minf",ur).box("stbl",ur).S("stsd",Gf).box("encv",Dl).box("avc1",Dl).box("avc3",Dl).box("hev1",Dl).box("hvc1",Dl).box("dvav",Dl).box("dva1",Dl).box("dvh1",Dl).box("dvhe",Dl).box("dvc1",Dl).box("dvi1",Dl).box("vexu",ur).box("proj",ur).S("prji",function(Yt){Yt=Yt.reader.Yc(),ft.projection=Yt}).box("hfov",function(Yt){Yt=Yt.reader.U()/1e3,ft.hfov=Yt}),_t.parse(bt,!0,!0),u.type===b.Aa&&l6e(i,ft),Ge.has(u.type)?f.ba.timescale=Ge.get(u.type):tt!=null&&(f.ba.timescale=tt),kt=u.stream.segmentIndex,kt instanceof eo&&(Bt=FSe(kt,f.startTime)),jt=u.stream.closedCaptions&&u.stream.closedCaptions.size>0,L(Pt,i.g.Oh(u.type,bt),5);case 5:return L(Pt,c6(i.g.Z,u.type,bt,null,u.stream,jt,u.bd,m,!1,!1,Bt),6);case 6:U(Pt,0);break;case 2:throw It=G(Pt),u.pb=null,It}})},$e=f.startTime,w&&(De=iv(i.g.Z,u.type),De!=null&&($e=De)),i.g.Ck($e,f.ba),A.push(ye()))),qe=u.La?u.La.i:-1,f.i!=qe&&A.push(ESe(i.g.Z,u.type,f.startTime)),L(ot,Promise.all(A),0)}})}function KY(i,u,f,m,b,w,A,R){var N,V,K,Y,se;return re(function(ce){switch(ce.g){case 1:if(N=Yr,V=k6(i),F(ce,2),u.qc=m,u.nc=b,A&&(u.hf=A),R&&(u.jf=R),u.kf=f,K=i.j.sequenceMode||i.j.type=="HLS",Y=null,u.type===N.Aa?Y=i.h.get(N.ka):u.type===N.ka&&(Y=i.h.get(N.Aa)),!(Y&&Y.stream&&Y.stream.isAudioMuxedInVideo)){ce.A(4);break}return L(ce,dY(i.g.Z,Y.type,f,m,b,K,Y.stream.mimeType,Y.stream.codecs,V),4);case 4:return L(ce,dY(i.g.Z,u.type,f,m,b,K,w.mimeType||u.stream.mimeType,w.codecs||u.stream.codecs,V),6);case 6:U(ce,0);break;case 2:throw se=G(ce),u.qc=null,u.nc=null,u.hf=null,u.jf=null,u.kf=null,se}})}function xL(i,u,f,m,b,w,A,R){A=A===void 0?!1:A,R=R===void 0?!1:R;var N,V,K,Y;return re(function(se){switch(se.g){case 1:return N=m.closedCaptions&&m.closedCaptions.size>0,i.i.shouldFixTimestampOffset&&(V=m.mimeType=="video/mp4"||m.mimeType=="audio/mp4",K=null,b.ba&&(K=b.ba.timescale),V&&K&&m.type==="video"&&i.j.type=="DASH"&&new di().box("moof",ur).box("traf",ur).S("tfdt",function(ce){var pe,ve,ye,$e,De,qe;return re(function(ot){return pe=t6(ce.reader,ce.version),ve=pe.baseMediaDecodeTime,ve?(ye=-ve/K,$e=Number(u.kf)||0,$eN&&(Y=Math.max(R-w,V-N-A)),Y<=N?se.return():L(se,i.g.Z.remove(u.type,A,A+Y,b),2));if(se.g!=4)return Ii(i.l),i.H?L(se,y6(i,i.H,f),4):se.A(0);Ii(i.l),B(se)})}function CL(i){return i&&i.type==Ln&&(i.stream.mimeType=="application/cea-608"||i.stream.mimeType=="application/cea-708")}function J3(i,u,f,m){var b,w,A,R,N;return re(function(V){switch(V.g){case 1:if(b=f.Yb())return V.return(b);if(w=null,u.ha){var K=u.ha,Y=K.g;f instanceof rl&&(Y=K.j),Y.has(f)?(K=Y.get(f),m&&(K.wh=m),w=K.je):w=null}return w||(w=b6(f,u.stream,m||null,i.i.retryParameters,i.g.tc)),A=0,u.ua&&(A=u.ua.h),u.Va=w,L(V,w.promise,2);case 2:if(R=V.h,u.Va=null,N=R.data,!f.aesKey){V.A(3);break}return L(V,_L(N,f.aesKey,A),4);case 4:N=V.h;case 3:return V.return(N)}})}function b6(i,u,f,m,b,w){w=w===void 0?!1:w;var A=i instanceof zn?i:void 0,R=A?1:0;return i=Z3(i.P(),i.startByte,i.endByte,m,f),i.contentType=u.type,b.request(Fu,i,{type:R,stream:u,segment:A,isPreload:w})}function wL(i,u,f,m){var b,w;return re(function(A){if(A.g==1)return u.ec=!1,u.Kd=!1,u.ld=0,u.Ub=!0,u.La=null,u.ua=null,u.ha&&!i.m.has(u.stream)&&sd(u.ha),m?(b=i.g.lc(),w=i.g.Z.getDuration(),L(A,i.g.Z.remove(u.type,b+m,w),3)):L(A,cY(i.g.Z,u.type),4);if(A.g!=3)return Ii(i.l),f?L(A,i.g.Z.flush(u.type),3):A.A(3);Ii(i.l),u.Ub=!1,u.endOfStream=!1,u.Ja||u.qb||va(i,u,0),B(A)})}function va(i,u,f){var m=u.type;(m!=Ln||i.h.has(m))&&(u.qb=new D3(function(){var b;return re(function(w){if(w.g==1)return F(w,2),L(w,r6e(i,u),4);if(w.g!=2)return U(w,0);b=G(w),i.g&&i.g.onError(b),B(w)})}).ia(f))}function Xf(i){i.qb!=null&&(i.qb.stop(),i.qb=null)}function _6(i){return re(function(u){return i.Va?L(u,i.Va.abort(),0):u.A(0)})}function EL(i,u,f){var m;return re(function(b){if(b.g==1)return f.code==3024?(u.Ja=!1,Xf(u),va(i,u,0),b.return()):L(b,pq(i.X),2);if(Ii(i.l),f.category===1&&f.code!=1003){if(u.Mc)return zY(i,!1),b.return();m=TL(i,f),f.handled=i.g.disableStream(u.stream,m),f.handled&&(f.severity=1)}(!f.handled||f.code!=1011)&&i.g.onError(f),f.handled||i.i.failureCallback(f),B(b)})}function TL(i,u){return i.i.maxDisabledTime===0&&u.code==1011?1:i.i.maxDisabledTime}function S6(i,u){u=u===void 0?!1:u;var f,m,b,w,A,R;return re(function(N){if(N.g==1){if(f=Date.now()/1e3,m=i.i.minTimeBetweenRecoveries,!u){if(!i.i.allowMediaSourceRecoveries||f-i.R1)return!0}else if(!u.Jf()){for(u=_(i.h.keys()),f=u.next();!f.done;f=u.next())if(f=i.h.get(f.value),f.type!==Yr.Na&&(f=f.stream)&&f.fullMimeTypes&&f.fullMimeTypes.size>1){for(i=new Set,u=_(f.fullMimeTypes),f=u.next();!f.done;f=u.next())i.add(E3(f.value));return i.size>1}}return!1}function qY(i){i.G.Pa(),Q3(i)&&(i.G.D(i.g.video,"waiting",function(){return AL(i)}),i.G.D(i.g.video,"timeupdate",function(){return AL(i)}))}function AL(i){if(Q3(i)){i.K.stop();var u=i.g.lc(),f=i.h.get("video")||i.h.get("audio");f&&(f=f.pb)&&f.g!==null&&(u=f.g-u,u<0||u>1||(i.I=f.g+.1,i.K.ia(u)))}}function u6e(i,u,f){if(u.type===Ln)return!1;var m=u.pb;if(!m)return!1;var b=f.ba;if(f=m.g!==b.g,i.i.crossBoundaryStrategy==="reset_to_encrypted"&&(m.encrypted||b.encrypted||(f=!1),m.encrypted&&(i.i.crossBoundaryStrategy="keep")),i.i.crossBoundaryStrategy==="RESET_ON_ENCRYPTION_CHANGE"&&m.encrypted==b.encrypted&&(f=!1),i.i.crossBoundaryStrategy==="keep"&&m.mimeType&&b.mimeType){var w=Js(nl(m.mimeType)),A=Js(nl(m.mimeType));m.mimeType==b.mimeType&&w==A&&(f=!1)}return f&&(i.J||u.bd)&&(i.J=!1,S6(i,!0).then(function(){var R=new Map().set("oldEncrypted",m.encrypted).set("newEncrypted",b.encrypted);i.g.onEvent(new Tn("boundarycrossed",R))})),f}function k6(i,u){function f(w){if(w.fullMimeTypes&&w.fullMimeTypes.size>1&&i.h.has(w.type)){var A=i.h.get(w.type),R=iv(i.g.Z,A.type),N=i.g.lc();(A=WY(i,A,N,R))&&A.codecs&&A.mimeType&&(w.codecs=A.codecs,w.mimeType=A.mimeType)}}u=u===void 0?!1:u;var m=new Map,b=i.o.audio;return b&&(f(b),m.set("audio",b)),(b=i.o.video)&&(f(b),m.set("video",b)),u&&i.B&&m.set(Ln,i.B),m}function x6(){}function IL(i,u,f,m,b){var w=b in m,A=w?f.constructor==Object&&Object.keys(m).length==0:f.constructor==Object&&Object.keys(f).length==0,R=w||A,N=!0,V;for(V in u){var K=b+"."+V,Y=w?m[b]:f[V];R||V in f?u[V]===void 0?Y===void 0||R?delete i[V]:i[V]=vn(Y):A?i[V]=u[V]:Y.constructor==Object&&u[V]&&u[V].constructor==Object?(i[V]||(i[V]=vn(Y)),K=IL(i[V],u[V],Y,m,K),N=N&&K):typeof u[V]!=typeof Y||u[V]==null||typeof u[V]!="function"&&u[V].constructor!=Y.constructor?(Je("Invalid config, wrong type for "+K),N=!1):typeof f[V]=="function"&&f[V].length!=u[V].length?(rt("Unexpected number of arguments for "+K),i[V]=u[V]):i[V]=Array.isArray(i[V])?u[V].slice():u[V]:(Je("Invalid config, unrecognized key "+K),N=!1)}return N}function C6(i,u){for(var f={},m=f,b=0,w=0;b=i.indexOf(".",b),!(b<0);)(b==0||i[b-1]!="\\")&&(w=i.substring(w,b).replace(/\\\./g,"."),m[w]={},m=m[w],w=b+1),b+=1;return m[i.substring(w).replace(/\\\./g,".")]=u,f}function Lg(i,u){return i&&u}function YY(i,u){function f(w){for(var A=_(Object.keys(w)),R=A.next();!R.done;R=A.next())if(R=R.value,!(w[R]instanceof HTMLElement))if(b(w[R])&&Object.keys(w[R]).length===0)delete w[R];else{var N=w[R];Array.isArray(N)&&N.length===0||typeof w[R]=="function"?delete w[R]:b(w[R])&&(f(w[R]),Object.keys(w[R]).length===0&&delete w[R])}}function m(w,A){return Object.keys(w).reduce(function(R,N){var V=w[N];return A.hasOwnProperty(N)?V instanceof HTMLElement&&A[N]instanceof HTMLElement?V.isEqualNode(A[N])||(R[N]=V):b(V)&&b(A[N])?(V=m(V,A[N]),(Object.keys(V).length>0||!b(V))&&(R[N]=V)):Array.isArray(V)&&Array.isArray(A[N])?sn(V,A[N])||(R[N]=V):Number.isNaN(V)&&Number.isNaN(A[N])||V!==A[N]&&(R[N]=V):R[N]=V,R},{})}function b(w){return w&&typeof w=="object"&&!Array.isArray(w)}return i=m(i,u),f(i),i}je("shaka.util.ConfigUtils",x6),x6.getDifferenceFromConfigObjects=YY,x6.convertToConfigObject=C6,x6.mergeConfigObjects=IL,je("shaka.config.RepeatMode",{OFF:0,ALL:1,SINGLE:2});function il(){}function XY(i){return i=Qt(i),new st(i).Db}function e2(i,u,f){function m(R){it(w).setUint32(A,R.byteLength,!0),A+=4,w.set(Pe(R),A),A+=R.byteLength}if(!f||!f.byteLength)throw new we(2,6,6015);var b;typeof u=="string"?b=yn(u,!0):b=u,i=Qt(i),i=yn(i,!0);var w=new Uint8Array(12+i.byteLength+b.byteLength+f.byteLength),A=0;return m(i),m(b),m(f),w}function LL(i,u,f){return u!=="skd"?i:(u=f.serverCertificate,f=Qt(i).split("skd://").pop(),e2(i,f,u))}function w6(i,u){i===2&&(i=u.drmInfo)&&HS(i.keySystem)&&(u.headers["Content-Type"]="application/octet-stream")}je("shaka.drm.FairPlay",il),il.commonFairPlayResponse=function(i,u){if(i===2&&(i=u.originalRequest.drmInfo)&&HS(i.keySystem)){try{var f=at(u.data)}catch{return}if(i=!1,f=f.trim(),f.substr(0,5)===""&&f.substr(-6)===""&&(f=f.slice(5,-6),i=!0),!i)try{var m=JSON.parse(f);m.ckc&&(f=m.ckc,i=!0),m.CkcMessage&&(f=m.CkcMessage,i=!0),m.License&&(f=m.License,i=!0)}catch{}i&&(u.data=Ce(hr(f)))}},il.muxFairPlayRequest=function(i,u){w6(i,u)},il.expressplayFairPlayRequest=function(i,u){if(i===2){var f=u.drmInfo;f&&HS(f.keySystem)&&w6(i,u)}},il.conaxFairPlayRequest=function(i,u){w6(i,u)},il.ezdrmFairPlayRequest=function(i,u){w6(i,u)},il.verimatrixFairPlayRequest=function(i,u){i===2&&(i=u.drmInfo)&&HS(i.keySystem)&&(i=Pe(u.body),i=Zn(i),u.headers["Content-Type"]="application/x-www-form-urlencoded",u.body=qt("spc="+i))},il.muxInitDataTransform=function(i,u,f){return LL(i,u,f)},il.expressplayInitDataTransform=function(i,u,f){return LL(i,u,f)},il.conaxInitDataTransform=function(i,u,f){if(u!=="skd")return i;u=f.serverCertificate,f=Qt(i).split("skd://").pop().split("?").shift(),f=o.atob(f);var m=new ArrayBuffer(f.length*2);m=lt(m);for(var b=0,w=f.length;b2||b.channelsCount>2)&&m.channelsCount!=b.channelsCount||m.spatialAudio!==b.spatialAudio||u&&!ZY(m,b))&&JY(m.roles,b.roles)&&m.groupId===b.groupId)}return!m&&(m=f.video&&i.video)&&(f=f.video,m=i.video,m=!((!u||ZY(f,m))&&JY(f.roles,m.roles))),m?!1:(this.g.add(i),!0)},E6.prototype.values=function(){return this.g.values()};function ZY(i,u){if(i.mimeType!=u.mimeType||(i=i.codecs.split(",").map(function(m){return sp(m)}),u=u.codecs.split(",").map(function(m){return sp(m)}),i.length!=u.length))return!1;i.sort(),u.sort();for(var f=0;fu)}).sort(function(f,m){return f.audio||m.audio?f.audio?m.audio?(m.audio.channelsCount||0)-(f.audio.channelsCount||0):1:-1:0})}function m6e(i,u){if(u=="AUTO"){var f=i.some(function(m){return!!(m.video&&m.video.hdr&&m.video.hdr=="HLG")});u=Oe().sd(f)}return i.filter(function(m){return!(m.video&&m.video.hdr&&m.video.hdr!=u)})}function g6e(i,u){return i.filter(function(f){return!(f.video&&f.video.videoLayout&&f.video.videoLayout!=u)})}function y6e(i,u){return i.filter(function(f){return!(f.audio&&f.audio.spatialAudio!=u)})}function b6e(i,u){return i.filter(function(f){return!(f.audio&&f.audio.codecs!=u)})}function T6(){}function Dg(){var i=1/0,u=Oe();navigator.connection&&navigator.connection.saveData&&(i=360);var f={retryParameters:_c(),servers:{},clearKeys:{},advanced:{},delayLicenseRequestUntilPlayed:!1,persistentSessionOnlinePlayback:!1,persistentSessionsMetadata:[],initDataTransform:function(R,N,V){return o.shakaMediaKeysPolyfill==="apple"&&N=="skd"&&(N=V.serverCertificate,V=XY(R),R=e2(R,V,N)),R},logLicenseExchange:!1,updateExpirationTime:1,preferredKeySystems:[],keySystemsMapping:{},parseInbandPsshEnabled:!1,minHdcpVersion:"",ignoreDuplicateInitData:!0,defaultAudioRobustnessForWidevine:"SW_SECURE_CRYPTO",defaultVideoRobustnessForWidevine:"SW_SECURE_DECODE"},m="reload";hc()&&u.Pc()&&(m="smooth");var b={retryParameters:_c(),availabilityWindowOverride:NaN,disableAudio:!1,disableVideo:!1,disableText:!1,disableThumbnails:!1,disableIFrames:!1,defaultPresentationDelay:0,segmentRelativeVttTiming:!1,raiseFatalErrorOnManifestUpdateRequestFailure:!1,continueLoadingWhenPaused:!0,ignoreSupplementalCodecs:!1,updatePeriod:-1,ignoreDrmInfo:!1,enableAudioGroups:!0,dash:{clockSyncUri:"",disableXlinkProcessing:!0,xlinkFailGracefully:!1,ignoreMinBufferTime:!1,autoCorrectDrift:!0,initialSegmentLimit:1e3,ignoreSuggestedPresentationDelay:!1,ignoreEmptyAdaptationSet:!1,ignoreMaxSegmentDuration:!1,keySystemsByURI:{"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:e2719d58-a985-b3c9-781a-b030af78d30e":"org.w3.clearkey","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:79f0049a-4098-8642-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:94ce86fb-07ff-4f43-adb8-93d2fa968ca2":"com.apple.fps","urn:uuid:3d5e6d35-9b9a-41e8-b843-dd3c6e72c42c":"com.huawei.wiseplay"},manifestPreprocessor:A6,manifestPreprocessorTXml:I6,sequenceMode:!1,useStreamOnceInPeriodFlattening:!1,enableFastSwitching:!0},hls:{ignoreTextStreamFailures:!1,ignoreImageStreamFailures:!1,defaultAudioCodec:"mp4a.40.2",defaultVideoCodec:"avc1.42E01E",ignoreManifestProgramDateTime:!1,ignoreManifestProgramDateTimeForTypes:[],mediaPlaylistFullMimeType:'video/mp2t; codecs="avc1.42E01E, mp4a.40.2"',liveSegmentsDelay:3,sequenceMode:u.fd(),ignoreManifestTimestampsInSegmentsMode:!1,disableCodecGuessing:!1,disableClosedCaptionsDetection:!1,allowLowLatencyByteRangeOptimization:!0,allowRangeRequestsToGuessMimeType:!1},mss:{manifestPreprocessor:A6,manifestPreprocessorTXml:I6,sequenceMode:!1,keySystemsBySystemId:{"9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","79f0049a-4098-8642-ab92-e65be0885f95":"com.microsoft.playready"}}},w={trackSelectionCallback:function(R){return re(function(N){return N.return(R)})},downloadSizeCallback:function(R){var N;return re(function(V){return V.g==1?navigator.storage&&navigator.storage.estimate?L(V,navigator.storage.estimate(),3):V.return(!0):(N=V.h,V.return(N.usage+R0?L(A,Promise.all(f),0):A.A(0)})}function R6e(i){var u,f,m,b,w;return re(function(A){return!i.o&&(u=iX(i))&&(i.o=u),i.o?(f=i.h.presentationTimeline.W(),m=[],b=i.o,b.video&&m.push(ML(i,b.video,f)),b.audio&&m.push(ML(i,b.audio,f)),(w=cg(i.h.textStreams,i.g.preferredTextLanguage,i.g.preferredTextRole,i.g.preferForcedSubs)[0]||null)&&lq(b.audio,w,i.g)&&(m.push(ML(i,w,f)),i.T=w),L(A,Promise.all(m),0)):A.A(0)})}function iX(i){if(!i.u){var u=i.g.abrFactory;i.u=u(),i.u.configure(i.g.abr)}return u=VS(i.h.variants),u=i.C.create(u),i.u.setVariants(Array.from(u.values())),i.u.chooseVariant(!0)}function ML(i,u,f){var m,b,w,A,R;return re(function(N){return N.g==1?(m=i.g.streaming.segmentPrefetchLimit||2,b=new v6(m,u,function(V,K,Y){return b6(V,K,Y||null,i.g.streaming.retryParameters,i.Da,i.F)},!1),i.M.set(u.id,b),u.segmentIndex?N.A(2):L(N,u.createSegmentIndex(),2)):(w=typeof i.m=="number"?i.m:0,A=u.segmentIndex.Vb(w),R=null,A&&(R=A.current(),R||(R=A.next().value)),R||(R=od(u.segmentIndex)),R?f?R.ba?L(N,BY(b,R.ba),0):N.A(0):L(N,Y3(b,R.startTime),0):N.A(0))})}l.ll=function(){return this.B},l.destroy=function(){var i=this,u,f,m;return re(function(b){if(b.g==1)return i.j=!0,!i.l||i.qa?b.A(2):L(b,i.l.stop(),2);if(b.g!=4)return i.u&&i.u.release(),i.I&&!i.wa&&i.I.release(),!i.i||i.aa?b.A(4):L(b,i.i.destroy(),4);if(i.M.size>0&&!i.xa)for(u=_(i.M.values()),f=u.next();!f.done;f=u.next())m=f.value,sd(m);B(b)})};function oX(i){function u(f){return f.video&&f.audio||f.video&&f.video.codecs.includes(",")}i.variants.some(u)&&(i.variants=i.variants.filter(u))}je("shaka.media.PreloadManager",Vu),Vu.prototype.destroy=Vu.prototype.destroy,Vu.prototype.waitForFinish=Vu.prototype.ll,Vu.prototype.getPrefetchedTextTrack=Vu.prototype.Qj,Vu.prototype.getPrefetchedVariantTrack=Vu.prototype.Rj;function sv(i,u){Zr.call(this);var f=this;this.i=i,this.l=u,this.g=new Map,this.m=[{kd:null,jd:Pg,Uc:function(m,b){return Jf(f,"enter",m,b)}},{kd:r2,jd:Pg,Uc:function(m,b){return Jf(f,"enter",m,b)}},{kd:i2,jd:Pg,Uc:function(m,b){return Jf(f,"enter",m,b)}},{kd:Pg,jd:r2,Uc:function(m,b){return Jf(f,"exit",m,b)}},{kd:Pg,jd:i2,Uc:function(m,b){return Jf(f,"exit",m,b)}},{kd:r2,jd:i2,Uc:function(m,b){b?Jf(f,"skip",m,b):(Jf(f,"enter",m,b),Jf(f,"exit",m,b))}},{kd:i2,jd:r2,Uc:function(m,b){return Jf(f,"skip",m,b)}}],this.h=new Ae,this.h.D(this.i,"regionremove",function(m){f.g.delete(m.region)})}x(sv,Zr),sv.prototype.release=function(){this.i=null,this.g.clear(),this.h.release(),this.h=null,Zr.prototype.release.call(this)},sv.prototype.j=function(i,u){if(!this.l||i!=0){this.l=!1;for(var f=_(this.i.h.values()),m=f.next();!m.done;m=f.next()){m=m.value;var b=this.g.get(m),w=im.endTime?i2:Pg;this.g.set(m,w);for(var A=_(this.m),R=A.next();!R.done;R=A.next())R=R.value,R.kd==b&&R.jd==w&&R.Uc(m,u)}}};function Jf(i,u,f,m){u=new Tn(u,new Map([["region",f],["seeking",m]])),i.dispatchEvent(u)}var r2=1,Pg=2,i2=3;function av(i,u,f){var m,b,w,A,R,N,V;return re(function(K){switch(K.g){case 1:return m=Rg(i),(b=M6e.get(m))?K.return(b):(w=0,A=Vo([i],f),F(K,2),A.method="HEAD",L(K,u.request(w,A).promise,4));case 4:R=K.h,b=R.headers["content-type"],U(K,3);break;case 2:if(N=G(K),!N||N.code!=1002&&N.code!=1001){K.A(3);break}return A.method="GET",L(K,u.request(w,A).promise,6);case 6:V=K.h,b=V.headers["content-type"];case 3:return K.return(b?b.toLowerCase().split(";").shift():"")}})}function Rg(i){return i=new st(i).Sb.split("/").pop().split("."),i.length==1?"":i.pop().toLowerCase()}var M6e=new Map().set("mp4","video/mp4").set("m4v","video/mp4").set("m4a","audio/mp4").set("webm","video/webm").set("weba","audio/webm").set("mkv","video/webm").set("ts","video/mp2t").set("ogv","video/ogg").set("ogg","audio/ogg").set("mpg","video/mpeg").set("mpeg","video/mpeg").set("mov","video/quicktime").set("m3u8","application/x-mpegurl").set("mpd","application/dash+xml").set("ism","application/vnd.ms-sstr+xml").set("mp3","audio/mpeg").set("aac","audio/aac").set("flac","audio/flac").set("wav","audio/wav").set("sbv","text/x-subviewer").set("srt","text/srt").set("vtt","text/vtt").set("webvtt","text/vtt").set("ttml","application/ttml+xml").set("lrc","application/x-subtitle-lrc").set("ssa","text/x-ssa").set("ass","text/x-ssa").set("jpeg","image/jpeg").set("jpg","image/jpeg").set("png","image/png").set("svg","image/svg+xml").set("webp","image/webp").set("avif","image/avif").set("html","text/html").set("htm","text/html");/* @license Copyright 2013 Ali Al Dallal Licensed under the MIT license. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */for(var fp={ach:"Lwo",ady:"Адыгэбзэ",af:"Afrikaans","af-NA":"Afrikaans (Namibia)","af-ZA":"Afrikaans (South Africa)",ak:"Tɕɥi",ar:"العربية","ar-AR":"العربية","ar-MA":"العربية","ar-SA":"العربية (السعودية)","ay-BO":"Aymar aru",az:"Azərbaycan dili","az-AZ":"Azərbaycan dili","be-BY":"Беларуская",bg:"Български","bg-BG":"Български",bn:"বাংলা","bn-IN":"বাংলা (ভারত)","bn-BD":"বাংলা(বাংলাদেশ)","bs-BA":"Bosanski",ca:"Català","ca-ES":"Català",cak:"Maya Kaqchikel","ck-US":"ᏣᎳᎩ (tsalagi)",cs:"Čeština","cs-CZ":"Čeština",cy:"Cymraeg","cy-GB":"Cymraeg",da:"Dansk","da-DK":"Dansk",de:"Deutsch","de-AT":"Deutsch (Österreich)","de-DE":"Deutsch (Deutschland)","de-CH":"Deutsch (Schweiz)",dsb:"Dolnoserbšćina",el:"Ελληνικά","el-GR":"Ελληνικά",en:"English","en-GB":"English (UK)","en-AU":"English (Australia)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-IN":"English (India)","en-PI":"English (Pirate)","en-UD":"English (Upside Down)","en-US":"English (US)","en-ZA":"English (South Africa)","en@pirate":"English (Pirate)",eo:"Esperanto","eo-EO":"Esperanto",es:"Español","es-AR":"Español (Argentine)","es-419":"Español (Latinoamérica)","es-CL":"Español (Chile)","es-CO":"Español (Colombia)","es-EC":"Español (Ecuador)","es-ES":"Español (España)","es-LA":"Español (Latinoamérica)","es-NI":"Español (Nicaragua)","es-MX":"Español (México)","es-US":"Español (Estados Unidos)","es-VE":"Español (Venezuela)",et:"eesti keel","et-EE":"Eesti (Estonia)",eu:"Euskara","eu-ES":"Euskara",fa:"فارسی","fa-IR":"فارسی","fb-LT":"Leet Speak",ff:"Fulah",fi:"Suomi","fi-FI":"Suomi","fo-FO":"Føroyskt",fr:"Français","fr-CA":"Français (Canada)","fr-FR":"Français (France)","fr-BE":"Français (Belgique)","fr-CH":"Français (Suisse)","fy-NL":"Frysk",ga:"Gaeilge","ga-IE":"Gaeilge (Gaelic)",gl:"Galego","gl-ES":"Galego","gn-PY":"Avañe'ẽ","gu-IN":"ગુજરાતી","gx-GR":"Ἑλληνική ἀρχαία",he:"עברית‏","he-IL":"עברית‏",hi:"हिन्दी","hi-IN":"हिन्दी",hr:"Hrvatski","hr-HR":"Hrvatski",hsb:"Hornjoserbšćina",ht:"Kreyòl",hu:"Magyar","hu-HU":"Magyar","hy-AM":"Հայերեն",id:"Bahasa Indonesia","id-ID":"Bahasa Indonesia",is:"Íslenska","is-IS":"Íslenska (Iceland)",it:"Italiano","it-IT":"Italiano",ja:"日本語","ja-JP":"日本語","jv-ID":"Basa Jawa","ka-GE":"ქართული","kk-KZ":"Қазақша",km:"ភាសាខ្មែរ","km-KH":"ភាសាខ្មែរ",kab:"Taqbaylit",kn:"ಕನ್ನಡ","kn-IN":"ಕನ್ನಡ (India)",ko:"한국어","ko-KR":"한국어 (韩国)",ku:"Kurdî","ku-TR":"Kurdî",la:"Latin","la-VA":"Latin",lb:"Lëtzebuergesch","li-NL":"Lèmbörgs",lt:"Lietuvių","lt-LT":"Lietuvių",lv:"Latviešu","lv-LV":"Latviešu",mai:"मैथिली, মৈথিলী","mg-MG":"Malagasy",mk:"Македонски","mk-MK":"Македонски (Македонски)",ml:"മലയാളം","ml-IN":"മലയാളം","mn-MN":"Монгол",mr:"मराठी","mr-IN":"मराठी",ms:"Bahasa Melayu","ms-MY":"Bahasa Melayu",mt:"Malti","mt-MT":"Malti",my:"ဗမာစကာ",nb:"Norsk (bokmål)","nb-NO":"Norsk (bokmål)",ne:"नेपाली","ne-NP":"नेपाली",nl:"Nederlands","nl-BE":"Nederlands (België)","nl-NL":"Nederlands (Nederland)","nn-NO":"Norsk (nynorsk)",no:"Norsk",oc:"Occitan","or-IN":"ଓଡ଼ିଆ",pa:"ਪੰਜਾਬੀ","pa-IN":"ਪੰਜਾਬੀ (ਭਾਰਤ ਨੂੰ)",pl:"Polski","pl-PL":"Polski","ps-AF":"پښتو",pt:"Português","pt-BR":"Português (Brasil)","pt-PT":"Português (Portugal)","qu-PE":"Qhichwa","rm-CH":"Rumantsch",ro:"Română","ro-RO":"Română",ru:"Русский","ru-RU":"Русский","sa-IN":"संस्कृतम्","se-NO":"Davvisámegiella","si-LK":"පළාත",sk:"Slovenčina","sk-SK":"Slovenčina (Slovakia)",sl:"Slovenščina","sl-SI":"Slovenščina","so-SO":"Soomaaliga",sq:"Shqip","sq-AL":"Shqip",sr:"Српски","sr-RS":"Српски (Serbia)",su:"Basa Sunda",sv:"Svenska","sv-SE":"Svenska",sw:"Kiswahili","sw-KE":"Kiswahili",ta:"தமிழ்","ta-IN":"தமிழ்",te:"తెలుగు","te-IN":"తెలుగు",tg:"забо́ни тоҷикӣ́","tg-TJ":"тоҷикӣ",th:"ภาษาไทย","th-TH":"ภาษาไทย (ประเทศไทย)",tl:"Filipino","tl-PH":"Filipino",tlh:"tlhIngan-Hol",tr:"Türkçe","tr-TR":"Türkçe","tt-RU":"татарча",uk:"Українська","uk-UA":"Українська",ur:"اردو","ur-PK":"اردو",uz:"O'zbek","uz-UZ":"O'zbek",vi:"Tiếng Việt","vi-VN":"Tiếng Việt","xh-ZA":"isiXhosa",yi:"ייִדיש","yi-DE":"ייִדיש (German)",zh:"中文","zh-HANS":"中文简体","zh-HANT":"中文繁體","zh-CN":"中文(中国)","zh-HK":"中文(香港)","zh-SG":"中文(新加坡)","zh-TW":"中文(台灣)","zu-ZA":"isiZulu"},sX=_(Object.keys(fp)),OL=sX.next();!OL.done;OL=sX.next()){var aX=OL.value;fp[aX.toLowerCase()]=fp[aX]}function lX(i,u){if(i.lineBreak)return` `;if(i.nestedCues.length)return i.nestedCues.map(function(A){return lX(A,i)}).join("");if(!i.payload)return i.payload;var f=[],m=i.fontWeight>=sg,b=i.fontStyle==ag,w=i.textDecoration.includes(jf);return m&&f.push(["b"]),b&&f.push(["i"]),w&&f.push(["u"]),b=i.color,b==""&&u&&(b=u.color),m="",(b=uX(b))&&(m+="."+b),b=i.backgroundColor,b==""&&u&&(b=u.backgroundColor),(u=uX(b))&&(m+=".bg_"+u),m&&f.push(["c",m]),f.reduceRight(function(A,R){var N=_(R);return R=N.next().value,N=N.next().value,"<"+R+(N===void 0?"":N)+">"+A+""},i.payload)}function uX(i){i=i.toLowerCase();var u=i.replace(/\s/g,"").match(/^rgba?\((\d+),(\d+),(\d+),?([^,\s)]+)?/i);switch(u?i="#"+(parseInt(u[1],10)|256).toString(16).slice(1)+(parseInt(u[2],10)|256).toString(16).slice(1)+(parseInt(u[3],10)|256).toString(16).slice(1):i.startsWith("#")&&i.length>7&&(i=i.slice(0,7)),i){case"white":case"#fff":case"#ffffff":return"white";case"lime":case"#0f0":case"#00ff00":return"lime";case"cyan":case"#0ff":case"#00ffff":return"cyan";case"red":case"#f00":case"#ff0000":return"red";case"yellow":case"#ff0":case"#ffff00":return"yellow";case"magenta":case"#f0f":case"#ff00ff":return"magenta";case"blue":case"#00f":case"#0000ff":return"blue";case"black":case"#000":case"#000000":return"black"}return null}function $L(i,u){var f=[];i=_(cX(i));for(var m=i.next();!m.done;m=i.next())if(m=m.value,m.isContainer)f.push.apply(f,T($L(m.nestedCues,m)));else{var b=m.clone();b.nestedCues=[],b.payload=lX(m,u),f.push(b)}return f}function cX(i){var u=[];i=_(i);for(var f=i.next(),m={};!f.done;m={ig:void 0},f=i.next())m.ig=f.value,u.some((function(b){return function(w){return DS(b.ig,w)}})(m))||u.push(m.ig);return u}function O6e(i){function u(m){for(var b=5381,w=m.length;w;)b=b*33^m.charCodeAt(--w);return(b>>>0).toString()}if(i.startTime>=i.endTime)return null;var f=new VTTCue(i.startTime,i.endTime,i.payload);f.id=u(i.startTime.toString())+u(i.endTime.toString())+u(i.payload),f.lineAlign=i.lineAlign,f.positionAlign=i.positionAlign,i.size&&(f.size=i.size);try{f.align=i.textAlign}catch{}return i.textAlign=="center"&&f.align!="center"&&(f.align="middle"),i.writingMode=="vertical-lr"?f.vertical="lr":i.writingMode=="vertical-rl"&&(f.vertical="rl"),i.lineInterpretation==1&&(f.snapToLines=!1),i.line!=null&&(f.line=i.line),i.position!=null&&(f.position=i.position),f}function dX(i,u){var f=$L(u),m=[];u=i.cues?Array.from(i.cues):[],f=_(f);for(var b=f.next(),w={};!b.done;w={vd:void 0},b=f.next())w.vd=b.value,!u.some((function(A){return function(R){return R.startTime==A.vd.startTime&&R.endTime==A.vd.endTime&&R.text==A.vd.payload}})(w))&&w.vd.payload&&(b=O6e(w.vd))&&m.push(b);for(u=m.slice().sort(function(A,R){return A.startTime!=R.startTime?A.startTime-R.startTime:A.endTime!=R.endTime?A.endTime-R.startTime:"line"in VTTCue.prototype?m.indexOf(R)-m.indexOf(A):m.indexOf(A)-m.indexOf(R)}),u=_(u),f=u.next();!f.done;f=u.next())i.addCue(f.value)}function BL(i,u){var f=!1;i.mode==="disabled"&&(f=!0,i.mode="hidden");for(var m=0;m-1&&(f.has(u.g)?(m=f.get(u.g).track,m.mode==="disabled"&&(m.mode=u.u?"showing":"hidden")):u.g=-1),u.h=f},this.B=function(){if(!u.o){var f=u.j;u.o=new yr(function(){if(u.o=null,u.j===f){var m=-1,b=!1;if(u.h.has(u.g)){var w=u.h.get(u.g);w.track.mode==="showing"?(m=u.g,b=!0):w.track.mode==="hidden"&&(m=u.g)}if(!b)for(b=_(u.h),w=b.next();!w.done;w=b.next()){var A=_(w.value);if(w=A.next().value,A=A.next().value,A.track.mode==="showing"){m=w;break}else m<0&&A.track.mode==="hidden"&&(m=w)}for(b=_(u.h),w=b.next();!w.done;w=b.next())A=_(w.value),w=A.next().value,A=A.next().value,w!==m&&A.track.mode!=="disabled"&&(A.track.mode="disabled");u.g!==m&&(u.g=m,m>-1&&u.i.kh({id:m})),u.i.qh(m>-1&&u.h.get(m).track.mode==="showing")}}).ia(0)}},this.l.D(i,"loaded",function(){return u.enableTextDisplayer()}),this.enableTextDisplayer()}l=ns.prototype,l.configure=function(){},l.remove=function(i,u){if(this.i)this.h.has(this.g)&&BL(this.h.get(this.g).track,function(f){return f.startTimei});else return!1;return!0},l.append=function(i){this.h.has(this.g)&&dX(this.h.get(this.g).track,i)},l.destroy=function(){return this.i&&(this.j&&this.C(),this.i=null),this.l&&(this.l.release(),this.l=null),Promise.resolve()},l.isTextVisible=function(){return this.u},l.setTextVisibility=function(i){if(this.u=i,this.h.has(this.g)){var u=this.h.get(this.g).track;u.mode!=="disabled"&&(i=i?"showing":"hidden",u.mode!==i&&(u.mode=i))}else if(this.i&&this.i.m===3)if(u=Array.from(this.i.h.textTracks).filter(function(m){return["captions","subtitles","forced"].includes(m.kind)}),i){i=null,u=_(u);for(var f=u.next();!f.done;f=u.next())if(f=f.value,f.mode==="showing"){i=null;break}else i||f.mode!=="hidden"||(i=f);i&&(i.mode="showing")}else for(i=_(u),u=i.next();!u.done;u=i.next())u=u.value,u.mode==="showing"&&(u.mode="hidden")},l.setTextLanguage=function(){},l.enableTextDisplayer=function(){!this.j&&this.i&&this.i.m===2&&(this.j=this.i.h,this.l.Ba(this.i,"unloading",this.C),this.l.D(this.i,"textchanged",this.m),this.l.D(this.j.textTracks,"change",this.B),this.m())};function $6e(i){var u=Oe();return i.forced&&u.Ha()==="WEBKIT"?"forced":i.kind==="caption"||i.roles&&i.roles.some(function(f){return f.includes("transcribes-spoken-dialog")})&&i.roles.some(function(f){return f.includes("describes-music-and-sound")})?"captions":"subtitles"}je("shaka.text.NativeTextDisplayer",ns),ns.prototype.enableTextDisplayer=ns.prototype.enableTextDisplayer,ns.prototype.setTextLanguage=ns.prototype.setTextLanguage,ns.prototype.setTextVisibility=ns.prototype.setTextVisibility,ns.prototype.isTextVisible=ns.prototype.isTextVisible,ns.prototype.destroy=ns.prototype.destroy,ns.prototype.append=ns.prototype.append,ns.prototype.remove=ns.prototype.remove,ns.prototype.configure=ns.prototype.configure;function Qs(i,u){for(rn("SimpleTextDisplayer","Please migrate to NativeTextDisplayer"),this.h=i,this.i=u,this.g=null,i=_(Array.from(this.h.textTracks)),u=i.next();!u.done;u=i.next())u=u.value,u.kind!=="metadata"&&u.kind!=="chapters"&&(u.mode="disabled",u.label==this.i&&(this.g=u));this.g&&(this.g.mode="hidden")}l=Qs.prototype,l.configure=function(){},l.remove=function(i,u){return this.g?(BL(this.g,function(f){return f.startTimei}),!0):!1},l.append=function(i){this.g&&dX(this.g,i)},l.destroy=function(){return this.g&&(BL(this.g,function(){return!0}),this.g.mode="disabled"),this.g=this.h=null,Promise.resolve()},l.isTextVisible=function(){return this.g?this.g.mode=="showing":!1},l.setTextVisibility=function(i){i&&!this.g&&fX(this),this.g&&(this.g.mode=i?"showing":"hidden")},l.setTextLanguage=function(){},l.enableTextDisplayer=function(){fX(this)};function fX(i){i.h&&!i.g&&(i.g=i.h.addTextTrack("subtitles",i.i),i.g.mode="hidden")}je("shaka.text.SimpleTextDisplayer",Qs),Qs.prototype.enableTextDisplayer=Qs.prototype.enableTextDisplayer,Qs.prototype.setTextLanguage=Qs.prototype.setTextLanguage,Qs.prototype.setTextVisibility=Qs.prototype.setTextVisibility,Qs.prototype.isTextVisible=Qs.prototype.isTextVisible,Qs.prototype.destroy=Qs.prototype.destroy,Qs.prototype.append=Qs.prototype.append,Qs.prototype.remove=Qs.prototype.remove,Qs.prototype.configure=Qs.prototype.configure;function ea(){}l=ea.prototype,l.configure=function(){},l.remove=function(){},l.append=function(){},l.destroy=function(){},l.isTextVisible=function(){return!1},l.setTextVisibility=function(){},l.setTextLanguage=function(){},l.enableTextDisplayer=function(){},je("shaka.text.StubTextDisplayer",ea),ea.prototype.enableTextDisplayer=ea.prototype.enableTextDisplayer,ea.prototype.setTextLanguage=ea.prototype.setTextLanguage,ea.prototype.setTextVisibility=ea.prototype.setTextVisibility,ea.prototype.isTextVisible=ea.prototype.isTextVisible,ea.prototype.destroy=ea.prototype.destroy,ea.prototype.append=ea.prototype.append,ea.prototype.remove=ea.prototype.remove,ea.prototype.configure=ea.prototype.configure;function ta(i,u){var f=this;this.m=!1,this.h=[],this.j=i,this.o=u,this.C=this.u=null,this.g=document.createElement("div"),this.g.classList.add("shaka-text-container"),this.g.style.textAlign="center",this.g.style.display="flex",this.g.style.flexDirection="column",this.g.style.alignItems="center",this.g.style.justifyContent="flex-end",this.B=new yr(function(){f.j.paused||hp(f)}),o2(this),this.l=new Map,this.i=new Ae,this.i.D(document,"fullscreenchange",function(){hp(f,!0)}),this.i.D(this.j,"seeking",function(){hp(f,!0)}),this.i.D(this.j,"ratechange",function(){o2(f)}),this.i.D(this.j,"resize",function(){var m=f.j,b=m.videoWidth;m=m.videoHeight,b&&m?f.u=b/m:f.u=null}),this.F=null,"ResizeObserver"in o&&(this.F=new ResizeObserver(function(){hp(f,!0)}),this.F.observe(this.g)),this.G=new Map}l=ta.prototype,l.configure=function(i){this.C=i,o2(this),hp(this,!0)},l.append=function(i){var u=[].concat(T(this.h));i=_(cX(i));for(var f=i.next(),m={};!f.done;m={jg:void 0},f=i.next())m.jg=f.value,u.some((function(b){return function(w){return DS(w,b.jg)}})(m))||this.h.push(m.jg);this.h.length&&o2(this),hp(this)},l.destroy=function(){return this.g&&(this.g.parentElement&&this.o.removeChild(this.g),this.g=null,this.m=!1,this.h=[],this.B&&(this.B.stop(),this.B=null),this.l.clear(),this.i&&(this.i.release(),this.i=null),this.F&&(this.F.disconnect(),this.F=null)),Promise.resolve()},l.remove=function(i,u){if(!this.g)return!1;var f=this.h.length;return this.h=this.h.filter(function(m){return m.startTime=u}),hp(this,f>this.h.length),this.h.length||o2(this),!0},l.isTextVisible=function(){return this.m},l.setTextVisibility=function(i){(this.m=i)?(this.g.parentElement||this.o.appendChild(this.g),hp(this,!0)):this.g.parentElement&&this.o.removeChild(this.g)},l.setTextLanguage=function(i){i&&i!="und"?this.g.setAttribute("lang",i):this.g.setAttribute("lang","")},l.enableTextDisplayer=function(){};function o2(i){i.B&&(i.h.length?i.B.Ea((i.C?i.C.captionsUpdatePeriod:.25)/Math.max(1,Math.abs(i.j.playbackRate))):i.B.stop())}function B6e(i,u){for(;u!=null;){if(u==i.g)return!0;u=u.parentElement}return!1}function hX(i,u,f,m,b){var w=!1,A=[],R=[];u=_(u);for(var N=u.next();!N.done;N=u.next()){N=N.value,b.push(N);var V=i.l.get(N),K=N.startTime<=m&&N.endTime>m,Y=V?V.gj:null;V&&(A.push(V.kg),V.$c&&A.push(V.$c),K||(w=!0,i.l.delete(N),V=null)),K&&(R.push(N),V?B6e(i,Y)||(w=!0):(N6e(i,N,b),V=i.l.get(N),Y=V.gj,w=!0)),N.nestedCues.length>0&&Y&&hX(i,N.nestedCues,Y,m,b),b.pop()}if(w){for(m=_(A),b=m.next();!b.done;b=m.next())b=b.value,b.parentElement&&b.parentElement.removeChild(b);for(R.sort(function(se,ce){return se.startTime!=ce.startTime?se.startTime-ce.startTime:se.endTime-ce.endTime}),R=_(R),m=R.next();!m.done;m=R.next())m=i.l.get(m.value),m.$c?(m.$c.contains(f)&&m.$c.removeChild(f),f.appendChild(m.$c),m.$c.appendChild(m.kg)):f.appendChild(m.kg)}}function hp(i,u){if(i.g){var f=i.j.currentTime;if(!i.m||u!==void 0&&u){u=_(i.G.values());for(var m=u.next();!m.done;m=u.next())H3(m.value);H3(i.g),i.l.clear(),i.G.clear()}i.m&&hX(i,i.h,i.g,f,[])}}function N6e(i,u,f){var m=f.length>1,b=m?"span":"div";u.lineBreak&&(b="br"),u.rubyTag&&(b=u.rubyTag),m=!m&&u.nestedCues.length>0;var w=document.createElement(b);if(b!="br"&&j6e(i,w,u,f,m),f=null,u.region&&u.region.id){var A=u.region,R=i.u===4/3?2.5:1.9;if(f=A.id+"_"+A.width+"x"+A.height+(A.heightUnits==Es?"%":"px")+"-"+A.viewportAnchorX+"x"+A.viewportAnchorY+(A.viewportAnchorUnits==Es?"%":"px"),i.G.has(f))f=i.G.get(f);else{b=document.createElement("span");var N=A.heightUnits==Es?"%":"px",V=A.widthUnits==Es?"%":"px",K=A.viewportAnchorUnits==Es?"%":"px";b.id="shaka-text-region---"+f,b.classList.add("shaka-text-region"),b.style.position="absolute";var Y=A.height,se=A.width;A.heightUnits===2&&(Y=A.height*5.33,N="%"),A.widthUnits===2&&(se=A.width*R,V="%"),b.style.height=Y+N,b.style.width=se+V,A.viewportAnchorUnits===2?(R=A.viewportAnchorY/75*100,N=A.viewportAnchorX/(i.u===4/3?160:210)*100,R-=A.regionAnchorY*Y/100,N-=A.regionAnchorX*se/100,b.style.top=R+"%",b.style.left=N+"%"):(b.style.top=A.viewportAnchorY-A.regionAnchorY*Y/100+K,b.style.left=A.viewportAnchorX-A.regionAnchorX*se/100+K),A.heightUnits!==0&&A.widthUnits!==0&&A.viewportAnchorUnits!==0&&(A=Math.max(0,Math.min(100-(parseInt(b.style.width.slice(0,-1),10)||0),parseInt(b.style.left.slice(0,-1),10)||0)),b.style.top=Math.max(0,Math.min(100-(parseInt(b.style.height.slice(0,-1),10)||0),parseInt(b.style.top.slice(0,-1),10)||0))+"%",b.style.left=A+"%"),b.style.display="flex",b.style.flexDirection="column",b.style.alignItems="center",b.style.justifyContent=u.displayAlign=="before"?"flex-start":u.displayAlign=="center"?"center":"flex-end",i.G.set(f,b),f=b}}b=w,m&&(b=document.createElement("span"),b.classList.add("shaka-text-wrapper"),b.style.backgroundColor=u.backgroundColor,b.style.lineHeight="normal",w.appendChild(b)),i.l.set(u,{kg:w,gj:b,$c:f})}function F6e(i){var u=i.direction,f=i.positionAlign;return i=i.textAlign,f!==RS?f:i==="left"||i==="start"&&u===C3||i==="end"&&u==="rtl"?"line-left":i==="right"||i==="start"&&u==="rtl"||i==="end"&&u===C3?"line-right":"center"}function j6e(i,u,f,m,b){var w=u.style,A=f.nestedCues.length==0,R=m.length>1;w.whiteSpace="pre-wrap";var N=f.payload.replace(/\s+$/g,function(K){return" ".repeat(K.length)});if(w.webkitTextStrokeColor=f.textStrokeColor,w.webkitTextStrokeWidth=f.textStrokeWidth,w.color=f.color,w.direction=f.direction,w.opacity=f.opacity,w.paddingLeft=NL(f.linePadding,f,i.o),w.paddingRight=NL(f.linePadding,f,i.o),w.textCombineUpright=f.textCombineUpright,w.textShadow=f.textShadow,f.backgroundImage)w.backgroundImage="url('"+f.backgroundImage+"')",w.backgroundRepeat="no-repeat",w.backgroundSize="contain",w.backgroundPosition="center",f.backgroundColor&&(w.backgroundColor=f.backgroundColor),w.width="100%",w.height="100%";else{if(f.nestedCues.length)var V=u;else V=document.createElement("span"),u.appendChild(V);f.border&&(V.style.border=f.border),b||((u=V6e(m,function(K){return K.backgroundColor}))?V.style.backgroundColor=u:N&&(V.style.backgroundColor="rgba(0, 0, 0, 0.8)")),N&&(V.setAttribute("translate","no"),V.textContent=N)}R&&!m[m.length-1].isContainer?w.display="inline":(w.display="flex",w.flexDirection="column",w.alignItems="center",f.textAlign=="left"||f.textAlign=="start"?(w.width="100%",w.alignItems="start"):(f.textAlign=="right"||f.textAlign=="end")&&(w.width="100%",w.alignItems="end"),w.justifyContent=f.displayAlign=="before"?"flex-start":f.displayAlign=="center"?"center":"flex-end"),A||(w.margin="0"),w.fontFamily=f.fontFamily,w.fontWeight=f.fontWeight.toString(),w.fontStyle=f.fontStyle,w.letterSpacing=f.letterSpacing,m=i.C?i.C.fontScaleFactor:1,(m!==1||f.fontSize)&&(w.fontSize=NL(f.fontSize||"1em",f,i.o,m)),m=f.line,m!=null&&(A=f.lineInterpretation,A==w3&&(A=1,R=16,i.u&&i.u<1&&(R=32),m=m<0?100+m/R*100:m/R*100),A==1&&(w.position="absolute",f.writingMode==W0?(w.width="100%",f.lineAlign==G0?w.top=m+"%":f.lineAlign=="end"&&(w.bottom=100-m+"%")):f.writingMode=="vertical-lr"?(w.height="100%",f.lineAlign==G0?w.left=m+"%":f.lineAlign=="end"&&(w.right=100-m+"%")):(w.height="100%",f.lineAlign==G0?w.right=m+"%":f.lineAlign=="end"&&(w.left=100-m+"%")))),w.lineHeight=f.lineHeight,i=F6e(f),i=="line-left"?(w.cssFloat="left",f.position!==null&&(w.position="absolute",f.writingMode==W0?(w.left=f.position+"%",w.width="auto"):w.top=f.position+"%")):i=="line-right"?(w.cssFloat="right",f.position!==null&&(w.position="absolute",f.writingMode==W0?(w.right=100-f.position+"%",w.width="auto"):w.bottom=f.position+"%")):f.position!==null&&f.position!=50&&(w.position="absolute",f.writingMode==W0?(w.left=f.position+"%",w.width="auto"):w.top=f.position+"%",f.size&&(w.transform="translateX(-50%)")),w.textAlign=f.textAlign,w.textDecoration=f.textDecoration.join(" "),w.writingMode=f.writingMode,"writingMode"in document.documentElement.style&&w.writingMode==f.writingMode||(w.webkitWritingMode=f.writingMode),f.size&&(f.writingMode==W0?w.width=f.size+"%":w.height=f.size+"%")}function NL(i,u,f,m){m=m===void 0?1:m;var b=(b=new RegExp(/(\d*\.?\d+)([a-z]+|%+)/).exec(i))?{value:Number(b[1]),unit:b[2]}:null;if(!b)return i;switch(i=b.unit,m*=b.value,i){case"%":return m/100*f.clientHeight/u.cellResolution.rows+"px";case"c":return f.clientHeight*m/u.cellResolution.rows+"px";default:return m+i}}function V6e(i,u){for(var f=i.length-1;f>=0;f--){var m=u(i[f]);if(m||m===0)return m}return null}je("shaka.text.UITextDisplayer",ta),ta.prototype.enableTextDisplayer=ta.prototype.enableTextDisplayer,ta.prototype.setTextLanguage=ta.prototype.setTextLanguage,ta.prototype.setTextVisibility=ta.prototype.setTextVisibility,ta.prototype.isTextVisible=ta.prototype.isTextVisible,ta.prototype.remove=ta.prototype.remove,ta.prototype.destroy=ta.prototype.destroy,ta.prototype.append=ta.prototype.append,ta.prototype.configure=ta.prototype.configure;function z6e(i,u){function f(w){for(var A=w,R=_(u),N=R.next();!N.done;N=R.next())N=N.value,N.end&&N.start "+f(b.endTime)+(function(w){var A=[];switch(w.textAlign){case"left":A.push("align:left");break;case"right":A.push("align:right");break;case Ud:A.push("align:middle");break;case"start":A.push("align:start");break;case"end":A.push("align:end")}switch(w.writingMode){case"vertical-lr":A.push("vertical:lr");break;case"vertical-rl":A.push("vertical:rl")}return A.length?" "+A.join(" "):""})(b)+` `,i+=b.payload+` `;return i}je("shaka.text.WebVttGenerator",function(){});function FL(i,u){this.g=u,this.j=i,this.F=new Map,this.l=void 0,this.C=!1,this.J=!0,this.o=this.I=!1,this.B=this.u=void 0,this.H=0,this.K={request:!1,response:!1,event:!1},this.m={},this.i=new Ae,this.G=[],this.h=null}FL.prototype.setMediaElement=function(i){this.h=i,K6e(this)},FL.prototype.configure=function(i){this.g=i,q6e(this)};function U6e(i){i.F.clear(),i.C=!1,i.J=!0,i.I=!1,i.o=!1,i.u=0,i.B=0,i.H=0,i.K={request:!1,response:!1,event:!1},pX(i),i.m={},i.h=null,i.i.Pa()}function H6e(i,u){i.o=u,i.o?i.l==$6?i.l=B6:i.l==N6&&(i.l=F6):i.l==B6?i.l=$6:i.l==F6&&(i.l=N6)}function W6e(i,u){if(i.g&&i.g.enabled&&(na(i,"ps",{dd:"d"}),i.h&&i.h.autoplay)){var f=i.h.play();f&&f.then(function(){i.H=u}).catch(function(){i.H=0})}}function G6e(i,u,f){try{if(!i.g.enabled)return u;var m=jL(i);e:{switch(f.toLowerCase()){case"audio/mp4":case"audio/webm":case"audio/ogg":case"audio/mpeg":case"audio/aac":case"audio/flac":case"audio/wav":var b=P6;break e;case"video/webm":case"video/mp4":case"video/mpeg":case"video/mp2t":b=M6;break e;case"application/x-mpegurl":case"application/vnd.apple.mpegurl":case"application/dash+xml":case"video/vnd.mpeg.dash.mpd":case"application/vnd.ms-sstr+xml":b=kX;break e}b=void 0}m.ot=b,m.su=!0;var w=s2(m);return D6(u,w)}catch(A){return ht("CMCD_SRC_ERROR","Could not generate src CMCD data.",A),u}}function K6e(i){i.i.D(i.h,"playing",function(){i.B||(i.B=Date.now()),na(i,"ps",{dd:"p"})}),i.i.D(i.h,"volumechange",function(){na(i,i.h.muted?"m":"um")}),i.i.D(i.h,"play",function(){i.u||(i.u=Date.now(),na(i,"ps",{dd:"s"}))}),i.i.D(i.h,"pause",function(){na(i,"ps",{dd:"a"})}),i.i.D(i.j,"buffering",function(){na(i,"ps",{dd:"w"})}),i.i.D(i.h,"seeking",function(){return na(i,"ps",{dd:"k"})}),i.i.D(document,"fullscreenchange",function(){na(i,document.fullscreenElement?"pe":"pc")});var u=i.h;(u.webkitPresentationMode||u.webkitSupportsFullscreen)&&i.i.D(u,"webkitpresentationmodechanged",function(){u.webkitPresentationMode?na(i,u.webkitPresentationMode!=="inline"?"pe":"pc"):u.webkitSupportsFullscreen&&na(i,u.webkitDisplayingFullscreen?"pe":"pc")}),i.i.D(i.h,"enterpictureinpicture",function(){na(i,"pe")}),i.i.D(i.h,"leavepictureinpicture",function(){na(i,"pc")}),"documentPictureInPicture"in o&&i.i.D(o.documentPictureInPicture,"enter",function(f){na(i,"pe"),i.i.Ba(f.window,"pagehide",function(){na(i,"pc")})}),i.i.D(document,"visibilitychange",function(){document.hidden?na(i,"b",{bg:!0}):na(i,"b")}),i.i.D(i.j,"complete",function(){na(i,"ps",{dd:"e"})})}function q6e(i){pX(i);var u=vX(i);u=_(u);for(var f=u.next();!f.done;f=u.next())if(f=f.value.timeInterval,f===void 0&&(f=ake),f>=1){var m=new yr(function(){return na(i,lke)});m.Ea(f),i.G.push(m)}}function pX(i){if(i.G)for(var u=_(i.G),f=u.next();!f.done;f=u.next())f.value.stop();i.G=[]}function vX(i){return(i=i.g.targets)?i.filter(function(u){return u.mode===TX&&u.enabled}):[]}function mX(i){return(i=i.g.targets)?i.filter(function(u){return u.mode===EX&&u.enabled===!0}):[]}function jL(i){return i.g.sessionId||(i.g.sessionId=o.crypto.randomUUID()),{v:i.g.version,sf:i.l,sid:i.g.sessionId,cid:i.g.contentId,mtp:i.j.getBandwidthEstimate()/1e3}}function na(i,u,f){if(f=f===void 0?{}:f,u=Object.assign({e:u,ts:Date.now()},f),u=UL(i,u,TX),f=i.g.targets,!(i.g.version0&&!A.includes(R))||gX(i,w,b)}}}function Mg(i,u,f){if(i.g.enabled){f=UL(i,f,wX);var m=yX({mode:wX,useHeaders:i.g.useHeaders,includeKeys:i.g.includeKeys||[]});i.m[m]||(i.m[m]={request:1,response:1}),f.sn=i.m[m].request++,m=i.g.includeKeys||[];var b=i.g.version==WL?Array.from(new Set([].concat(T(GL),T(nke)))):xX;m=VL(m,b),f=zL(f,m),Y6e(f,u,i.g.useHeaders)}}function gX(i,u,f,m){var b=_c(),w=f.url;if(f.useHeaders){if(u=SX(u),!Object.keys(u).length)return;m&&Object.assign(m.headers,u),m=Vo([w],b),Object.assign(m.headers,u)}else{if(u=s2(u),!u)return;w=D6(w,u),m&&(m.uri=w),m=Vo([w],b)}i.j.Wb().request(9,m)}function Y6e(i,u,f){if(f)i=SX(i),Object.keys(i).length&&Object.assign(u.headers,i);else{var m=s2(i);m&&(u.uris=u.uris.map(function(b){return D6(b,m)}))}}function VL(i,u){if(!i||i.length===0)return u;for(var f=_(i),m=f.next();!m.done;m=f.next())u.includes(m.value);return i=i.filter(function(b){return u.includes(b)})}function zL(i,u){return Object.keys(i).reduce(function(f,m){return u.includes(m)&&(f[m]=i[m]),f},{})}function X6e(i){if(i.type===0)return Q6e;if(i=i.stream){var u=i.type;if(u=="video")return i.codecs&&i.codecs.includes(",")?M6:R6;if(u=="audio")return P6;if(u=="text")return i.mimeType==="application/mp4"?O6:HL}}function yX(i){var u=Object.keys(i).sort().reduce(function(f,m){return m!=="enabled"&&(f[m]=i[m]),f},{});return JSON.stringify(u)}function Z6e(i,u){if(u=i.j.Fc()[u],!u.length)return NaN;var f=i.h?i.h.currentTime:0;return(i=u.find(function(m){return m.start<=f&&m.end>=f}))?(i.end-f)*1e3:NaN}function bX(i,u){if(u=i.j.Fc()[u],!u.length)return 0;var f=i.h?i.h.currentTime:0;return(i=u.find(function(m){return m.start<=f&&m.end>=f}))?(i.end-f)*1e3:0}function J6e(i,u){var f=i.j.mc();if(!f.length)return NaN;i=f[0],f=_(f);for(var m=f.next();!m.done;m=f.next())m=m.value,m.type==="variant"&&m.bandwidth>i.bandwidth&&(i=m);switch(u){case R6:return i.videoBandwidth||NaN;case P6:return i.audioBandwidth||NaN;default:return i.bandwidth}}function _X(i,u,f){var m=u.segment,b=0;m&&(b=m.endTime-m.startTime),b={d:b*1e3,st:i.j.W()?tke:eke},b.ot=X6e(u);var w=b.ot===R6||b.ot===P6||b.ot===M6||b.ot===O6;if(u=u.stream){var A=i.j.Ob();if(w&&(b.bl=Z6e(i,u.type),b.ot!==O6)){var R=bX(i,u.type);b.dl=A?R/Math.abs(A):R}if(u.bandwidth&&(b.br=u.bandwidth/1e3),u.segmentIndex&&m){if((A=u.segmentIndex.Vb(m.endTime,!0,A<0))&&(A=A.next().value)&&A!=m){if(f&&!ct(m.P(),A.P())){var N=A.P()[0];R=new URL(N);var V=new URL(f);if(R.origin!==V.origin)f=N;else{f=R.pathname.split("/").slice(1),N=V.pathname.split("/").slice(1,-1),V=Math.min(f.length,N.length);for(var K=0;K0&&f<=1?i*(1-f)+u*f:i};function AX(i){return i?i.toLowerCase()==="false"?!1:/^[-0-9]/.test(i)?parseInt(i,10):i.replace(/["]+/g,""):!0}je("shaka.util.CmsdManager",zu),zu.prototype.getBandwidthEstimate=zu.prototype.getBandwidthEstimate,zu.prototype.getRoundTripTime=zu.prototype.Uj,zu.prototype.getResponseDelay=zu.prototype.Tj,zu.prototype.getEstimatedThroughput=zu.prototype.$h,zu.prototype.getMaxBitrate=zu.prototype.bi;var IX="etp",LX="mb",DX="rd",PX="rtt";function RX(){this.g=null,this.h=[]}function KL(i,u){return re(function(f){if(f.g==1)return i.g?L(f,new Promise(function(m){return i.h.push(m)}),2):f.A(2);i.g=u,B(f)})}RX.prototype.release=function(){this.h.length>0?this.h.shift()():this.g=null};function $t(i,u,f){u=u===void 0?null:u,Zr.call(this);var m=this;this.m=W6,this.h=null,this.xe=u,this.$=!1,this.Ie=new Ae,this.ye=new Ae,this.j=new Ae,this.ac=new Ae,this.yc=new Ae,this.G=this.H=this.F=this.J=null,this.Je=0,this.ma=new RX,this.O=this.aa=this.X=this.i=this.xc=this.I=this.l=this.ue=this.T=this.Kh=this.wa=this.M=this.ib=this.ya=this.we=this.R=this.Fa=this.N=this.ob=null,this.Sa=!1,this.Ce=this.o=null,this.Be=1e9,this.Ge=[],this.uc=new Map,this.kb=[],this.Xf=-1,this.g=ad(this),this.Zf=QY(),this.V=null,this.Ke=-1,this.Zb=null,this.xa={width:1/0,height:1/0},this.Ae=new GI(this.g,this.xa,null),this.Ee=[],this.B=null,this.K=this.g.adaptationSetCriteriaFactory(),this.K.configure({language:this.g.preferredAudioLanguage,role:this.g.preferredAudioRole,videoRole:this.g.preferredVideoRole,channelCount:0,hdrLevel:this.g.preferredVideoHdrLevel,spatialAudio:this.g.preferSpatialAudio,videoLayout:this.g.preferredVideoLayout,audioLabel:this.g.preferredAudioLabel,videoLabel:this.g.preferredVideoLabel,codecSwitchingStrategy:this.g.mediaSource.codecSwitchingStrategy,audioCodec:"",activeAudioCodec:"",activeAudioChannelCount:0,preferredAudioCodecs:this.g.preferredAudioCodecs,preferredAudioChannelCount:this.g.preferredAudioChannelCount}),this.Fd=this.g.preferredTextLanguage,this.Md=this.g.preferredTextRole,this.Ld=this.g.preferForcedSubs,this.ze=[],f&&f(this),this.M=new FL(this,this.g.cmcd),this.wa=new zu(this.g.cmsd),this.J=jX(this),this.Jd=this.qa=this.Da=this.C=null,this.ag=!1,this.Yf=[],this.$f=new yr(function(){return re(function(b){if(b.g==1)return m.qa?L(b,m.fc(m.Jd,!0),3):b.A(0);if(b.g!=4)return L(b,m.load(m.qa),4);m.ag?m.Jd.pause():m.Jd.play(),m.qa=null,m.ag=!1,B(b)})}),G6&&(this.C=G6(),this.C.configure(this.g.ads),this.yc.D(this.C,"ad-content-pause-requested",function(b){var w;return re(function(A){if(A.g==1)return m.$f.stop(),m.qa?A.A(0):(m.Jd=m.h,m.ag=m.be(),w=b.saveLivePosition||!1,L(A,m.Uh(!0,w),3));m.qa=A.h,B(A)})}),this.yc.D(this.C,"ad-content-resume-requested",function(b){if(b=b.offset||0,m.qa){var w=m.qa;w.m&&b&&(typeof w.m=="number"?w.m+=b:w.m.setTime(w.m.getTime()+b*1e3))}m.$f.ia(.1)}),this.yc.D(this.C,"ad-content-attach-requested",function(){return re(function(b){return m.h||!m.Jd?b.A(0):L(b,m.fc(m.Jd,!0),0)})})),K6&&(this.Da=K6(this),this.Da.configure(this.g.queue)),this.Ie.D(o,"online",function(){t7(m),m.fh()}),this.De=new yr(function(){for(var b=Date.now()/1e3,w=!1,A=!0,R=_(m.i.variants),N=R.next();!N.done;N=R.next())N=N.value,N.disabledUntilTime>0&&N.disabledUntilTime<=b&&(N.disabledUntilTime=0,w=!0),N.disabledUntilTime>0&&(A=!1);A&&m.De.stop(),w&&pp(m,!1,void 0,!1,!1)}),this.Ta=null,i&&(rn("Player w/ mediaElement","Please migrate from initializing Player with a mediaElement; use the attach method instead."),this.fc(i,!0)),this.u=null}x($t,Zr);function j6(i){i.T!=null&&(tu(i.T),i.T.release(),i.T=null)}function uke(i,u,f){f||u.lcevc.enabled?(j6(i),i.T==null&&(i.T=new Go(i.h,i.Kh,u.lcevc,f),i.H&&(i.H.H=i.T))):j6(i)}function _i(i,u){return new Tn(i,u)}l=$t.prototype,l.destroy=function(){var i=this,u;return re(function(f){switch(f.g){case 1:return i.m==Sc?f.return():(j6(i),u=i.detach(),i.m=Sc,L(f,u,2));case 2:return L(f,i.ng(),3);case 3:if(i.Ie&&(i.Ie.release(),i.Ie=null),i.ye&&(i.ye.release(),i.ye=null),i.j&&(i.j.release(),i.j=null),i.ac&&(i.ac.release(),i.ac=null),i.yc&&(i.yc.release(),i.yc=null),i.Ce=null,i.g=null,i.B=null,i.xe=null,i.M=null,i.wa=null,!i.J){f.A(4);break}return L(f,i.J.destroy(),5);case 5:i.J=null;case 4:i.o&&(i.o.release(),i.o=null),i.Da&&(i.Da.destroy(),i.Da=null),Zr.prototype.release.call(i),B(f)}})};function MX(i,u){uZ.set(i,u)}function Og(i,u){i.dispatchEvent(_i("onstatechange",new Map().set("state",u)))}l.fc=function(i,u){u=u===void 0?!0:u;var f=this,m,b,w;return re(function(A){switch(A.g){case 1:if(f.m==Sc)throw new we(2,7,7e3);if(m=f.h&&f.h==i,!f.h||f.h==i){A.A(2);break}return L(A,f.detach(),2);case 2:return L(A,qL(f,"attach"),4);case 4:if(A.h)return A.return();if(F(A,5,6),m||(Og(f,"attach"),b=function(){var R=n7(f,!1);R&&$g(f,R)},f.ye.D(i,"error",b),f.h=i,f.M&&f.M.setMediaElement(i)),Oe(),!u||!Wd()||f.H){A.A(6);break}return L(A,YL(f),6);case 6:X(A),f.ma.release(),oe(A,0);break;case 5:return w=G(A),L(A,f.detach(),10);case 10:throw w}})},l.jj=function(i){this.Kh=i},l.detach=function(i){i=i===void 0?!1:i;var u=this;return re(function(f){if(f.g==1){if(u.m==Sc)throw new we(2,7,7e3);return L(f,u.Bc(!1,i),2)}if(f.g!=3)return L(f,qL(u,"detach"),3);if(f.h)return f.return();try{u.h&&(u.ye.Pa(),u.h=null),Og(u,"detach"),u.C&&!i&&u.C.release()}finally{u.ma.release()}B(f)})};function qL(i,u){var f;return re(function(m){return m.g==1?(f=++i.Je,L(m,KL(i.ma,u),2)):f!=i.Je?(i.ma.release(),m.return(!0)):m.return(!1)})}l.Bc=function(i,u){i=i===void 0?!0:i,u=u===void 0?!1:u;var f=this,m,b,w,A,R,N,V,K,Y,se,ce,pe,ve,ye,$e,De;return re(function(qe){switch(qe.g){case 1:return f.m!=Sc&&(f.m=W6),L(qe,qL(f,"unload"),2);case 2:return qe.h?qe.return():(W(qe,3),f.Sa=!1,Og(f,"unload"),j6(f),m=f.ze.map(function(ot){return ot()}),f.ze=[],L(qe,Promise.all(m),5));case 5:if(f.dispatchEvent(_i("unloading")),f.we&&(f.we.release(),f.we=null),f.ya&&(f.ya.release(),f.ya=null),f.ib&&(f.ib.release(),f.ib=null),f.h&&(f.j.Pa(),f.ac.Pa()),f.De.stop(),f.ob&&(f.ob.release(),f.ob=null),f.Fa&&(f.Fa.stop(),f.Fa=null),!f.I){qe.A(6);break}return L(qe,f.I.stop(),7);case 7:f.I=null,f.xc=null;case 6:if(f.o&&f.o.stop(),!f.l){qe.A(8);break}return L(qe,f.l.destroy(),9);case 9:f.l=null;case 8:if(f.N&&(f.N.release(),f.N=null),f.G&&(f.G.release(),f.G=null),o.shakaMediaKeysPolyfill!=="webkit"||!f.F){qe.A(10);break}return L(qe,f.F.destroy(),11);case 11:f.F=null;case 10:if(!f.H){qe.A(12);break}return L(qe,f.H.destroy(),13);case 13:f.H=null;case 12:if(f.C&&!u&&f.C.onAssetUnload(),f.qa&&!u&&(f.qa.destroy(),f.qa=null),u||f.$f.stop(),f.M&&U6e(f.M),f.wa&&(f.wa.g=null),!f.u){qe.A(14);break}return L(qe,f.u.destroy(),15);case 15:f.u=null;case 14:if(f.$=!1,f.h){for(b=_(f.Yf),w=b.next();!w.done;w=b.next())A=w.value,A.src.startsWith("blob:")&&URL.revokeObjectURL(A.src),A.remove();f.Yf=[],s6(f.h)&&f.h.load()}if(!f.F){qe.A(16);break}return L(qe,f.F.destroy(),17);case 17:f.F=null;case 16:if(f.Ta&&f.X!=f.Ta.rd()&&(f.Ta.j||f.Ta.destroy(),f.Ta=null),f.X=null,f.aa=null,f.R=null,f.i){for(R=_(f.i.variants),N=R.next();!N.done;N=R.next())for(V=N.value,K=_([V.audio,V.video]),Y=K.next();!Y.done;Y=K.next())(se=Y.value)&&se.segmentIndex&&se.segmentIndex.release();for(ce=_(f.i.textStreams),pe=ce.next();!pe.done;pe=ce.next())ve=pe.value,ve.segmentIndex&&ve.segmentIndex.release()}for(f.g&&f.g.streaming.clearDecodingCache&&(zS.clear(),dg.clear()),f.i=null,f.B=new L6,f.Jh=null,f.Zb=null,f.V=null,f.Ke=-1,f.Ge=[],ye=_(f.uc.values()),$e=ye.next();!$e.done;$e=ye.next())De=$e.value,De.stop();f.uc.clear(),f.kb=[],f.Xf=-1,f.J&&f.J.Qh(),a2(f);case 3:X(qe),f.ma.release(),oe(qe,4);break;case 4:if(Oe(),i&&Wd()&&!f.H&&f.h)return L(qe,YL(f),0);qe.A(0)}})},l.kl=function(i){this.O=i},l.load=function(i,u,f){u=u===void 0?null:u;var m=this,b,w,A,R,N,V,K,Y,se,ce,pe,ve,ye,$e;return re(function(De){switch(De.g){case 1:if(m.m==Sc)throw new we(2,7,7e3);if(b=null,w="",i instanceof Vu){if(i.j)throw new we(2,7,7006);b=i,w=b.rd()||""}else w=i||"";return L(De,KL(m.ma,"load"),2);case 2:if(m.ma.release(),!m.h)throw new we(2,7,7002);if(!m.X){De.A(3);break}return m.X=w,L(De,m.Bc(!1),3);case 3:if(A=++m.Je,R=function(){return re(function(qe){if(qe.g==1)return m.Je==A?qe.A(0):b?L(qe,b.destroy(),3):qe.A(3);throw new we(2,7,7e3)})},N=function(qe,ot){return re(function(bt){switch(bt.g){case 1:return W(bt,2),L(bt,KL(m.ma,ot),4);case 4:return L(bt,R(),5);case 5:return L(bt,qe(),6);case 6:return L(bt,R(),7);case 7:b&&m.g&&(b.g=m.g);case 2:X(bt),m.ma.release(),oe(bt,0)}})},F(De,5,6),u==null&&b&&(u=b.getStartTime()),m.O=u,m.Sa=!1,m.dispatchEvent(_i("loading")),b){f=b.V,De.A(8);break}if(f){De.A(8);break}return L(De,N(function(){return re(function(qe){if(qe.g==1)return L(qe,NX(m,w),2);f=qe.h,B(qe)})},"guessMimeType_"),8);case 8:if(V=!!b,b){nX(b,m),m.B=b.getStats(),De.A(11);break}return L(De,$X(m,w,u,f,!0,m.g),12);case 12:(b=De.h)?(b.F=!1,nX(b,m),m.B=b.getStats(),b.start(),b.B.catch(function(){})):m.B=new L6;case 11:return K=!b,Y=Date.now()/1e3,m.B=b?b.getStats():new L6,m.X=w,m.aa=f||null,a2(m),se=function(){var qe=m.h?m.h.buffered:null;return{start:eY(qe)||0,end:o6(qe)||0}},m.ya=new q3(se),m.ya.addEventListener("regionadd",function(qe){XL(m,qe.region,"metadataadded")}),K?L(De,N(function(){return re(function(qe){return L(qe,hke(m,f),0)})},"initializeSrcEqualsDrmInner_"),23):(m.ib=new q3(se),L(De,N(function(){return re(function(qe){if(qe.g==1)return L(qe,Promise.race([b.ma,b.B]),2);m.xc=b.H;var ot=b;ot.qa=!0,m.I=ot.l,m.i=b.Hg(),B(qe)})},"waitForFinish"),15));case 15:if(m.H){De.A(16);break}return L(De,N(function(){return re(function(qe){return L(qe,YL(m),0)})},"initializeMediaSourceEngineInner_"),16);case 16:return m.i&&m.i.textStreams.length&&(m.u.enableTextDisplayer?m.u.enableTextDisplayer():rn("Text displayer w/ enableTextDisplayer",'Text displayer should have a "enableTextDisplayer" method!')),L(De,N(function(){return re(function(qe){return L(qe,b.B,0)})},"waitForFinish"),18);case 18:if(m.g=b.getConfiguration(),m.Ae=b.G,m.I&&m.I.setMediaElement&&m.h&&m.I.setMediaElement(m.h),m.we=A6e(b),m.ue=b.Fa,(ce=b.C)&&(m.K=ce),V&&m.h&&m.h.nodeName==="AUDIO"&&(cke(m),m.configure("manifest.disableVideo",!0)),b.i){De.A(19);break}return L(De,N(function(){return re(function(qe){return L(qe,rX(b,m.h),0)})},"drmEngine_.init"),19);case 19:return m.F=I6e(b),L(De,N(function(){return re(function(qe){return L(qe,m.F.fc(m.h),0)})},"drmEngine_.attach"),21);case 21:return pe=m.g.abrFactory,m.o&&m.Ce==pe||(m.Ce=pe,m.o&&m.o.release(),m.o=pe(),typeof m.o.setMediaElement!="function"&&(rn("AbrManager w/o setMediaElement","Please use an AbrManager with setMediaElement function."),m.o.setMediaElement=function(){}),typeof m.o.setCmsdManager!="function"&&(rn("AbrManager w/o setCmsdManager","Please use an AbrManager with setCmsdManager function."),m.o.setCmsdManager=function(){}),typeof m.o.trySuggestStreams!="function"&&(rn("AbrManager w/o trySuggestStreams","Please use an AbrManager with trySuggestStreams function."),m.o.trySuggestStreams=function(){}),m.o.configure(m.g.abr)),ve=L6e(b),ye=b.o,L(De,N(function(){return re(function(qe){return L(qe,fke(m,Y,ye,ve),0)})},"loadInner_"),22);case 22:T6e(b),m.aa&&Oe().aj()&&T3(m.aa)&&bSe(m.H,m.X,m.aa),De.A(14);break;case 23:return L(De,N(function(){return re(function(qe){return L(qe,pke(m,Y,f),0)})},"srcEqualsInner_"),14);case 14:m.dispatchEvent(_i("loaded"));case 6:if(X(De),!b){De.A(25);break}return L(De,b.destroy(),25);case 25:m.Ta=null,oe(De,0);break;case 5:if($e=G(De),!$e||$e.code==7e3){De.A(27);break}return L(De,m.Bc(!1),27);case 27:throw $e}})};function cke(i){for(var u=_(i.i.variants),f=u.next();!f.done;f=u.next())f=f.value,f.video&&(f.video.closeSegmentIndex(),f.video=null),f.bandwidth=f.audio&&f.audio.bandwidth?f.audio.bandwidth:0;i.i.variants=i.i.variants.filter(function(m){return m.audio})}l.dj=function(i,u){i=i===void 0?!0:i,u=u===void 0?!1:u;var f=this,m;return re(function(b){return b.g==1?L(b,OX(f),2):b.g!=3?(m=b.h,L(b,f.Bc(i,u),3)):b.return(m)})},l.Uh=function(i,u){i=i===void 0?!1:i,u=u===void 0?!1:u;var f=this,m;return re(function(b){return b.g==1?L(b,OX(f,u),2):b.g!=3?(m=b.h,L(b,f.detach(i),3)):b.return(m)})};function OX(i,u){u=u===void 0?!1:u;var f,m,b;return re(function(w){if(w.g==1)return f=null,i.i&&i.I&&i.xc&&i.X&&i.g?(m=i.h.currentTime,i.W()&&!u&&(m=null),L(w,BX(i,i.X,m,i.aa,i.g,!0,!1),3)):w.A(2);if(w.g!=2){f=w.h,i.Ee.push(f),i.I&&i.I.setMediaElement&&i.I.setMediaElement(null),(b=i.l?i.l.o:null)&&(f.o=b);var A=f,R=i.I,N=i.xc;A.h=i.i,A.l=R,A.H=N,f.C=i.K,f.start(),i.i=null,i.I=null,i.xc=null,i.o=null,i.Ce=null}return w.return(f)})}l.preload=function(i,u,f,m){u=u===void 0?null:u;var b=this,w,A;return re(function(R){return R.g==1?(w=ad(b),Zf(w,m||b.g,ad(b)),L(R,$X(b,i,u,f,!1,w),2)):((A=R.h)?A.start():$g(b,new we(2,7,7005)),R.return(A))})},l.ng=function(){var i=this,u,f,m,b;return re(function(w){for(u=[],f=_(i.Ee),m=f.next();!m.done;m=f.next())b=m.value,b.j||u.push(b.destroy());return i.Ee=[],L(w,Promise.all(u),0)})};function $X(i,u,f,m,b,w){b=b===void 0?!1:b;var A,R,N;return re(function(V){return V.g==1?m?V.A(2):L(V,NX(i,u),3):(V.g!=2&&(m=V.h),dke(i,m)?V.return(null):(A=w||i.g,R=!1,b&&i.h&&i.h.nodeName==="AUDIO"&&(R=!0),N=BX(i,u,f,m||null,A,!b,R),N=b?N.then(function(K){return K.F=!1,K}):N.then(function(K){return i.Ee.push(K),K}),V.return(N)))})}function BX(i,u,f,m,b,w,A){w=w===void 0?!0:w,A=A===void 0?!1:A;var R,N,V,K,Y,se,ce,pe,ve,ye,$e,De,qe,ot,bt;return re(function(tt){return tt.g==1?(R=null,N=vn(b),A&&(N.manifest.disableVideo=!0),V=function(){return R.R&&R.j?null:R},K=function(){return V()?V().getConfiguration():i.g},i.xa.width!=1/0||i.xa.height!=1/0||i.g.ignoreHardwareResolution?tt.A(2):(Y=Oe(),L(tt,Y.jc(),3))):(tt.g!=2&&(se=tt.h,i.xa.width=se.width,i.xa.height=se.height),ce=new GI(N,i.xa,null),pe={networkingEngine:i.J,filter:function(Ge){var ft,yt;return re(function(mt){if(mt.g==1)return L(mt,Nq(ce,Ge),2);if(mt.g!=4)return ft=mt.h,ft?(yt=_i("trackschanged"),L(mt,Promise.resolve(),4)):mt.A(0);R.dispatchEvent(yt),B(mt)})},makeTextStreamsForClosedCaptions:function(Ge){return Tke(i,Ge)},onTimelineRegionAdded:function(Ge){vL(R.I,Ge)},onEvent:function(Ge){return R.dispatchEvent(Ge)},onError:function(Ge){return R.onError(Ge)},isLowLatencyMode:function(){return K().streaming.lowLatencyMode},updateDuration:function(){i.l&&R.R&&i.l.updateDuration()},newDrmInfo:function(Ge){var ft=R.i,yt=ft?ft.g:null;yt&&ft.B&&Vq(ce,yt.keySystem,Ge)},onManifestUpdated:function(){var Ge=new Map().set("isLive",i.W());R.dispatchEvent(_i("manifestupdated",Ge)),n2(R,!1,function(){i.C&&i.C.onManifestUpdated(i.W())})},getBandwidthEstimate:function(){return i.o.getBandwidthEstimate()},onMetadata:function(Ge,ft,yt,mt){var _t=Ge;(Ge=="com.apple.hls.interstitial"||Ge=="com.apple.hls.overlay")&&(_t="com.apple.quicktime.HLS",Ge={startTime:ft,endTime:yt,values:mt},i.C&&i.C.onHLSInterstitialMetadata(i,i.h,Ge)),mt=_(mt),Ge=mt.next();for(var kt={};!Ge.done;kt={Yg:void 0},Ge=mt.next())kt.Yg=Ge.value,kt.Yg.name!="ID"&&n2(R,!1,(function(Bt){return function(){ZL(i,ft,yt,_t,Bt.Yg)}})(kt))},disableStream:function(Ge){return i.disableStream(Ge,i.g.streaming.maxDisabledTime)},addFont:function(Ge,ft){return i.addFont(Ge,ft)}},ve=new q3(function(){return i.Qa()}),ve.addEventListener("regionadd",function(Ge){var ft=Ge.region;c2(i,"timelineregionadded",ft,R),n2(R,!1,function(){i.C&&(i.C.onDashTimedMetadata(ft),i.C.onDASHInterstitialMetadata(i,i.h,ft))})}),ye=null,N.streaming.observeQualityChanges&&(ye=new h6(function(){return i.Fc()}),ye.addEventListener("qualitychange",function(Ge){oZ(i,Ge.quality,Ge.position)}),ye.addEventListener("audiotrackchange",function(Ge){oZ(i,Ge.quality,Ge.position,!0)})),$e=!0,De={tc:i.J,onError:function(Ge){return R.onError(Ge)},vf:function(Ge){n2(R,!0,function(){i.F&&Ike(i,Ge)})},onExpirationUpdated:function(Ge,ft){var yt=_i("expirationupdated");R.dispatchEvent(yt),(yt=R.l)&&yt.onExpirationUpdated&&yt.onExpirationUpdated(Ge,ft)},onEvent:function(Ge){R.dispatchEvent(Ge),Ge.type=="drmsessionupdate"&&$e&&($e=!1,Ge=Date.now()/1e3-R.ya,(i.B||R.getStats()).m=Ge,i.T&&tu(i.T))}},qe=jX(i,V),yq(i.J,qe),ot=function(){return i.md(De)},bt={config:N,wk:pe,Hk:ve,Gk:ye,md:ot,vk:ce,networkingEngine:qe,ij:w},R=new Vu(u,m,f,bt),tt.return(R))})}function NX(i,u){var f,m,b,w;return re(function(A){return A.g==1?(f=i.g.manifest.retryParameters,L(A,av(u,i.J,f),2)):(m=A.h,m=="application/x-mpegurl"&&(b=Oe(),b.Ha()==="WEBKIT"&&(m="application/vnd.apple.mpegurl")),m=="video/quicktime"&&(w=Oe(),w.Ha()==="CHROMIUM"&&(m="video/mp4")),A.return(m))})}function dke(i,u){if(!Wd(Oe()))return!0;if(u){if((i.h||ev()).canPlayType(u)=="")return!1;if(!Wd(Oe())||!yg.has(u))return!0;if(T3(u))return Oe().Ha()==="WEBKIT"&&(i.g.drm.servers["com.apple.fps"]||i.g.drm.servers["com.apple.fps.1_0"])?i.g.streaming.useNativeHlsForFairPlay:i.g.streaming.preferNativeHls;if(u==="application/dash+xml"||u==="video/vnd.mpeg.dash.mpd")return i.g.streaming.preferNativeDash}return!1}function V6(i,u){var f=i.g.textDisplayFactory;i.Jh!==f||u!==void 0&&u?(u=i.u,i.u=f(),i.u.configure?i.u.configure(i.g.textDisplayer):rn("Text displayer w/ configure",'Text displayer should have a "configure" method!'),i.u.setTextLanguage||rn("Text displayer w/ setTextLanguage",'Text displayer should have a "setTextLanguage" method!'),u?(i.u.setTextVisibility(u.isTextVisible()),u.destroy().catch(function(){})):i.u.setTextVisibility(i.$),i.H&&ASe(i.H,i.u),i.Jh=f,i.l&&QSe(i.l)):i.u&&i.u.configure&&i.u.configure(i.g.textDisplayer)}function YL(i){var u,f,m;return re(function(b){if(b.g==1)return Oe(),Og(i,"media-source"),i.g.mediaSource.useSourceElements&&s6(i.h),V6(i),u=kke(i.h,i.u,{Jj:function(){return i.keySystem()},onMetadata:function(w,A,R){w=_(w);for(var N=w.next();!N.done;N=w.next())if(N=N.value,N.data&&typeof N.cueTime=="number"&&N.frames){var V=N.cueTime+A,K=R;K&&V>K&&(K=V);for(var Y=_(N.frames),se=Y.next();!se.done;se=Y.next())ZL(i,V,K,"org.id3",se.value);i.C&&i.C.onHlsTimedMetadata(N,V)}},Bk:function(w){i.ib&&vL(i.ib,{schemeIdUri:w.schemeIdUri,startTime:w.startTime,endTime:w.endTime,id:String(w.id),emsg:w})},onEvent:function(w){return i.dispatchEvent(w)},Dk:function(){i.I&&i.I.update&&i.I.update()}},i.T,i.g.mediaSource),f=i.g.manifest,m=f.segmentRelativeVttTiming,u.Fa=m,L(b,u.M,2);i.H=u,B(b)})}function FX(i,u,f){function m(){return QL(i)}if(i.j.D(u,"playing",m),i.j.D(u,"pause",m),i.j.D(u,"ended",m),i.j.D(u,"ratechange",function(){var w=i.h.playbackRate;w!=0&&(i.N&&(i.N.set(w),i.m==Us&&i.o.playbackRateChanged(w),XX(i,w)),w=_i("ratechange"),i.dispatchEvent(w))}),u.remote&&(i.j.D(u.remote,"connect",function(){i.l&&u.remote.state=="connected"&&Qf(i),La(i)}),i.j.D(u.remote,"connecting",function(){return La(i)}),i.j.D(u.remote,"disconnect",function(){return re(function(w){if(w.g==1)return i.l&&u.remote.state=="disconnected"?L(w,S6(i.l),3):w.A(2);w.g!=2&&Qf(i),La(i),B(w)})})),u.audioTracks&&(i.j.D(u.audioTracks,"addtrack",function(){return La(i)}),i.j.D(u.audioTracks,"removetrack",function(){return La(i)}),i.j.D(u.audioTracks,"change",function(){return La(i)})),u.videoTracks&&(i.j.D(u.videoTracks,"addtrack",function(){return La(i)}),i.j.D(u.videoTracks,"removetrack",function(){return La(i)}),i.j.D(u.videoTracks,"change",function(){return La(i)})),(u.webkitPresentationMode||u.webkitSupportsFullscreen)&&i.j.D(u,"webkitpresentationmodechanged",function(){i.xe&&V6(i,!0)}),u.textTracks){var b=function(){i.m===Ml&&i.u instanceof ns&&Qf(i),La(i)};i.j.D(u.textTracks,"addtrack",function(w){if(w.track)switch(w=w.track,w.kind){case"metadata":gke(i,w);break;case"chapters":yke(i,w);break;default:b()}}),i.j.D(u.textTracks,"removetrack",b),i.j.D(u.textTracks,"change",b)}u.preload!="none"&&i.j.Ba(u,"loadedmetadata",function(){i.B.G=Date.now()/1e3-f})}function fke(i,u,f,m){var b,w,A,R,N,V,K,Y,se,ce,pe,ve,ye,$e,De,qe,ot,bt,tt,Ge,ft,yt,mt,_t,kt,Bt,jt,It;return re(function(Pt){switch(Pt.g){case 1:for(Og(i,"load"),b=i.h,i.N=new K3({Ye:function(){return b.playbackRate},Tc:function(){return b.defaultPlaybackRate},ph:function(Yt){b.playbackRate=Yt},ui:function(Yt){b.currentTime+=Yt}}),FX(i,b,u),("onchange"in o.screen)&&i.j.D(o.screen,"change",function(){if(i.K.getConfiguration){var Yt=i.K.getConfiguration();Yt.hdrLevel=="AUTO"?lv(i):i.g.preferredVideoHdrLevel=="AUTO"&&i.g.abr.enabled&&(Yt.hdrLevel="AUTO",i.K.configure(Yt),lv(i))}}),w=!1,A=_(i.i.variants),R=A.next();!R.done;R=A.next())N=R.value,(V=N.video&&N.video.dependencyStream)&&(w=Il(V));uke(i,i.g,w),i.Fd=i.g.preferredTextLanguage,i.Md=i.g.preferredTextRole,i.Ld=i.g.preferForcedSubs,r7(i.i.presentationTimeline,i.g.playRangeStart,i.g.playRangeEnd),i.o.init(function(Yt,cn,tr){i.i&&i.l&&Yt!=i.l.o&&l2(i,Yt,!0,cn===void 0?!1:cn,tr===void 0?0:tr)}),i.o.setMediaElement(b),i.o.setCmsdManager(i.wa),i.l=xke(i),i.l.configure(i.g.streaming),i.m=Us,i.dispatchEvent(_i("streaming")),K=f;case 2:for((se=i.l.o)||K||(K=JX(i,!0)),ce=[],Y=se||K,pe=_([Y.video,Y.audio]),ve=pe.next();!ve.done;ve=pe.next())(ye=ve.value)&&!ye.segmentIndex&&(ce.push(ye.createSegmentIndex()),ye.dependencyStream&&ce.push(ye.dependencyStream.createSegmentIndex()));if(!(ce.length>0)){Pt.A(4);break}return L(Pt,Promise.all(ce),4);case 4:if(!Y||Y.disabledUntilTime!=0){Pt.A(2);break}if(i.I&&i.I.onInitialVariantChosen&&i.I.onInitialVariantChosen(Y),i.i.isLowLatency&&(i.g.streaming.lowLatencyMode?i.configure(i.Zf):rt("Low-latency live stream detected, but low-latency streaming mode is not enabled in Shaka Player. Set streaming.lowLatencyMode configuration to true, and see https://bit.ly/3clctcj for details.")),i.M&&(H6e(i.M,i.i.isLowLatency&&i.g.streaming.lowLatencyMode),W6e(i.M,u*1e3)),r7(i.i.presentationTimeline,i.g.playRangeStart,i.g.playRangeEnd),XSe(i.l,i.g.playRangeStart,i.g.playRangeEnd),i.Sa=!0,i.dispatchEvent(_i("canupdatestarttime")),$e=function(Yt){i.G=bke(i,Yt),i.ob=_ke(i,Yt),VX(i,b,!1)},i.g.streaming.startAtSegmentBoundary||(De=i.O,De==null&&i.i.startTime&&(De=i.i.startTime),$e(De)),se){Pt.A(7);break}if(!i.g.streaming.startAtSegmentBoundary){Pt.A(8);break}return qe=i.i.presentationTimeline,i.O instanceof Date&&(bt=qe.m||qe.i,tt=i.O.getTime()/1e3-bt,tt!=null&&(ot=tt)),ot==null&&(ot=typeof i.O=="number"?i.O:i.h.currentTime),i.O==null&&i.i.startTime&&(ot=i.i.startTime),Ge=qe.Xb(),ft=qe.Gb(),otft&&(ot=ft),L(Pt,Ake(K,ot),9);case 9:yt=Pt.h,$e(yt);case 8:l2(i,K,!0,!1,0);case 7:return i.G.ready(),mt=i.Kc().find(function(Yt){return Yt.active}),mt||((_t=cg(i.i.textStreams,i.Fd,i.Md,i.Ld)[0]||null)&&PL(i.B.h,_t,!0),K&&(_t?(lq(K.audio,_t,i.g)&&(i.$=!0),i.$&&i.u.setTextVisibility(!0)):(i.$=!1,i.u.setTextVisibility(!1)),rZ(i)),_t&&(i.g.streaming.alwaysStreamText||i.Og())&&(m6(i.l,_t),u2(i))),L(Pt,i.l.start(m),10);case 10:i.g.abr.enabled&&(i.o.enable(),iZ(i)),La(i),i.i.variants.some(function(Yt){return Yt.primary}),((kt=i.W())&&(i.g.streaming.liveSync&&i.g.streaming.liveSync.enabled||i.i.serviceDescription||i.g.streaming.liveSync.panicMode)||i.g.streaming.vodDynamicPlaybackRate)&&(Bt=function(){return ZX(i)},i.j.D(b,"timeupdate",Bt)),kt||(jt=function(){return H6(i)},i.j.D(b,"timeupdate",jt),H6(i),i.i.nextUrl&&(i.g.streaming.preloadNextUrlWindow>0&&(It=function(){var Yt;return re(function(cn){if(cn.g==1)return Yt=i.Qa().end-i.h.currentTime,isNaN(Yt)||!(Yt<=i.g.streaming.preloadNextUrlWindow)?cn.A(0):(i.j.Ma(b,"timeupdate",It),L(cn,i.preload(i.i.nextUrl),4));i.Ta=cn.h,B(cn)})},i.j.D(b,"timeupdate",It)),i.j.D(b,"ended",function(){i.load(i.Ta||i.i.nextUrl)}))),i.C&&i.C.onManifestUpdated(kt),B(Pt)}})}function hke(i,u){var f,m,b;return re(function(w){return w.g==1?(f=Date.now()/1e3,m=!0,i.F=i.md({tc:i.J,onError:function(A){$g(i,A)},vf:function(){},onExpirationUpdated:function(){var A=_i("expirationupdated");i.dispatchEvent(A)},onEvent:function(A){i.dispatchEvent(A),A.type=="drmsessionupdate"&&m&&(m=!1,i.B.m=Date.now()/1e3-f)}}),i.F.configure(i.g.drm),b=uq([u]),i.F.O=!0,L(w,Eq(i.F,[b],[]),2)):L(w,i.F.fc(i.h),0)})}function pke(i,u,f){var m,b,w,A,R,N,V,K,Y,se,ce,pe;return re(function(ve){switch(ve.g){case 1:if(Og(i,"src-equals"),m=i.h,i.G=new TY(m),b=!1,i.ze.push(function(){b=!0}),i.dispatchEvent(_i("canupdatestarttime")),i.O!=null&&i.G.Wf(i.O),i.ob=Ske(i,i.O||0),i.N=new K3({Ye:function(){return m.playbackRate},Tc:function(){return m.defaultPlaybackRate},ph:function(ye){m.playbackRate=ye},ui:function(ye){m.currentTime+=ye}}),VX(i,m,!0),m.textTracks&&(V6(i),w=function(ye){if(!(i.u instanceof ns)){var $e=z6(i).find(function(De){return De.mode!=="disabled"});$e&&($e.mode=ye?"showing":"hidden"),i.u instanceof Qs&&($e=Cke(i))&&($e.mode=!ye&&i.u.isTextVisible()?"showing":"hidden")}},i.j.D(m,"enterpictureinpicture",function(){return w(!0)}),i.j.D(m,"leavepictureinpicture",function(){return w(!1)}),m.remote?(i.j.D(m.remote,"connect",function(){return w(!1)}),i.j.D(m.remote,"connecting",function(){return w(!1)}),i.j.D(m.remote,"disconnect",function(){return w(!1)})):"webkitCurrentPlaybackTargetIsWireless"in m&&i.j.D(m,"webkitcurrentplaybacktargetiswirelesschanged",function(){return w(!1)}),A=m,(A.webkitPresentationMode||A.webkitSupportsFullscreen)&&i.j.D(A,"webkitpresentationmodechanged",function(){A.webkitPresentationMode?w(A.webkitPresentationMode!=="inline"):A.webkitSupportsFullscreen&&w(A.webkitDisplayingFullscreen)})),FX(i,m,u),R=G6e(i.M,i.X,f),!R.includes("#t=")&&(i.g.playRangeStart>0||isFinite(i.g.playRangeEnd))&&(R+="#t=",i.g.playRangeStart>0&&(R+=i.g.playRangeStart),isFinite(i.g.playRangeEnd)&&(R+=","+i.g.playRangeEnd)),!i.H){ve.A(2);break}return L(ve,i.H.destroy(),3);case 3:i.H=null;case 2:return s6(m),m.src=R,N=Oe(),N.Ua()=="TV"&&m.load(),m.preload!="none"&&!m.autoplay&&T3(f)&&N.Ha()==="WEBKIT"&&m.load(),i.m=Ml,i.dispatchEvent(_i("streaming")),V=new ci,Ag(m,HTMLMediaElement.HAVE_METADATA,i.j,function(){i.G.ready(),i.aa&&T3(i.aa)||V.resolve()}),K=function(){return new Promise(function(ye){var $e=new yr(ye);i.j.D(m.textTracks,"change",function(){return $e.ia(.5)}),$e.ia(.5)})},Ag(m,HTMLMediaElement.HAVE_CURRENT_DATA,i.j,function(){var ye,$e,De,qe,ot;return re(function(bt){if(bt.g==1)return L(bt,K(),2);if(b)return bt.return();if(vke(i),ye=z6(i),ye.some(function(tt){return tt.mode==="showing"})&&(i.$=!0,i.u.setTextVisibility(!0)),!(i.u instanceof ns))for(ye.length&&(i.u.enableTextDisplayer?i.u.enableTextDisplayer():rn("Text displayer w/ enableTextDisplayer",'Text displayer should have a "enableTextDisplayer" method')),$e=!1,De=_(ye),qe=De.next();!qe.done;qe=De.next())ot=qe.value,ot.mode!=="disabled"&&($e?(ot.mode="disabled",rt("Found more than one enabled text track, disabling it",ot)):(KX(i,ot),$e=!0));mke(i),i.aa&&T3(i.aa)&&V.resolve(),B(bt)})}),m.error?V.reject(n7(i)):m.preload=="none"&&(rt('With