var q4e=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Lzt=q4e((uf,jl)=>{(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 ba(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Si={},Km=[],ga=()=>{},Fm=()=>!1,wv=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),o3=e=>e.startsWith("onUpdate:"),gi=Object.assign,s3=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Y4e=Object.prototype.hasOwnProperty,ji=(e,t)=>Y4e.call(e,t),zn=Array.isArray,qm=e=>Dg(e)==="[object Map]",Cv=e=>Dg(e)==="[object Set]",AF=e=>Dg(e)==="[object Date]",$ue=e=>Dg(e)==="[object RegExp]",wr=e=>typeof e=="function",Ir=e=>typeof e=="string",Wl=e=>typeof e=="symbol",zi=e=>e!==null&&typeof e=="object",a3=e=>(zi(e)||wr(e))&&wr(e.then)&&wr(e.catch),CV=Object.prototype.toString,Dg=e=>CV.call(e),Nue=e=>Dg(e).slice(8,-1),Ck=e=>Dg(e)==="[object Object]",l3=e=>Ir(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,_h=ba(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Bue=ba("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),u3=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},X4e=/-\w/g,Ao=u3(e=>e.replace(X4e,t=>t.slice(1).toUpperCase())),Z4e=/\B([A-Z])/g,fl=u3(e=>e.replace(Z4e,"-$1").toLowerCase()),xv=u3(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ym=u3(e=>e?`on${xv(e)}`:""),cl=(e,t)=>!Object.is(e,t),Xm=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},A2=e=>{const t=parseFloat(e);return isNaN(t)?e:t},I2=e=>{const t=Ir(e)?Number(e):NaN;return isNaN(t)?e:t};let Mee;const xk=()=>Mee||(Mee=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),Q4e=/^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/;function J4e(e){return Q4e.test(e)?`__props.${e}`:`__props[${JSON.stringify(e)}]`}function eAe(e,t){return e+JSON.stringify(t,(n,r)=>typeof r=="function"?r.toString():r)}const tAe={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"},nAe={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"},rAe={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"},iAe={STABLE:1,1:"STABLE",DYNAMIC:2,2:"DYNAMIC",FORWARDED:3,3:"FORWARDED"},oAe={1:"STABLE",2:"DYNAMIC",3:"FORWARDED"},sAe="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",EV=ba(sAe),aAe=EV,Dee=2;function Fue(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-Dee;c<=l+Dee||n>a;c++){if(c<0||c>=r.length)continue;const f=c+1;s.push(`${f}${" ".repeat(Math.max(3-String(f).length,0))}| ${r[c]}`);const h=r[c].length,p=o[c]&&o[c].length||0;if(c===l){const m=t-(a-(h+p)),g=Math.max(1,n>a?h-m:n-t);s.push(" | "+" ".repeat(m)+"^".repeat(g))}else if(c>l){if(n>a){const m=Math.max(Math.min(n-a,h),1);s.push(" | "+"^".repeat(m))}a+=h+p}}break}return s.join(` `)}function je(e){if(zn(e)){const t={};for(let n=0;n{if(n){const r=n.split(uAe);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function dAe(e){if(!e)return"";if(Ir(e))return e;let t="";for(const n in e){const r=e[n];if(Ir(r)||typeof r=="number"){const o=n.startsWith("--")?n:fl(n);t+=`${o}:${r};`}}return t}function ae(e){let t="";if(Ir(e))t=e;else if(zn(e))for(let n=0;n/="'\u0009\u000a\u000c\u0020]/,l8={};function yAe(e){if(l8.hasOwnProperty(e))return l8[e];const t=gAe.test(e);return t&&console.error(`unsafe attribute name: ${e}`),l8[e]=!t}const bAe={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},_Ae=ba("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"),SAe=ba("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"),kAe=ba("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 wAe(e){if(e==null)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"}const CAe=/["'&<>]/;function xAe(e){const t=""+e,n=CAe.exec(t);if(!n)return t;let r="",o,a,s=0;for(a=n.index;a||--!>|?@[\\\]^`{|}~]/g;function AAe(e,t){return e.replace(Gue,n=>t?n==='"'?'\\\\\\"':`\\\\${n}`:`\\${n}`)}function IAe(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&rLh(n,t))}const Kue=e=>!!(e&&e.__v_isRef===!0),Be=e=>Ir(e)?e:e==null?"":zn(e)||zi(e)&&(e.toString===CV||!wr(e.toString))?Kue(e)?Be(e.value):JSON.stringify(e,que,2):String(e),que=(e,t)=>Kue(t)?que(e,t.value):qm(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,o],a)=>(n[u8(r,a)+" =>"]=o,n),{})}:Cv(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>u8(n))}:Wl(t)?u8(t):zi(t)&&!zn(t)&&!Ck(t)?String(t):t,u8=(e,t="")=>{var n;return Wl(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};function Yue(e){return e==null?"initial":typeof e=="string"?e===""?" ":e:String(e)}const LAe=Object.freeze(Object.defineProperty({__proto__:null,EMPTY_ARR:Km,EMPTY_OBJ:Si,NO:Fm,NOOP:ga,PatchFlagNames:nAe,PatchFlags:tAe,ShapeFlags:rAe,SlotFlags:iAe,camelize:Ao,capitalize:xv,cssVarNameEscapeSymbolsRE:Gue,def:xV,escapeHtml:xAe,escapeHtmlComment:TAe,extend:gi,genCacheKey:eAe,genPropsAccessExp:J4e,generateCodeFrame:Fue,getEscapedCssVarName:AAe,getGlobalThis:xk,hasChanged:cl,hasOwn:ji,hyphenate:fl,includeBooleanAttr:AV,invokeArrayFns:Xm,isArray:zn,isBooleanAttr:mAe,isBuiltInDirective:Bue,isDate:AF,isFunction:wr,isGloballyAllowed:EV,isGloballyWhitelisted:aAe,isHTMLTag:jue,isIntegerKey:l3,isKnownHtmlAttr:_Ae,isKnownMathMLAttr:kAe,isKnownSvgAttr:SAe,isMap:qm,isMathMLTag:Vue,isModelListener:o3,isObject:zi,isOn:wv,isPlainObject:Ck,isPromise:a3,isRegExp:$ue,isRenderableAttrValue:wAe,isReservedProp:_h,isSSRSafeAttrName:yAe,isSVGTag:Uue,isSet:Cv,isSpecialBooleanAttr:Wue,isString:Ir,isSymbol:Wl,isVoidTag:zue,looseEqual:Lh,looseIndexOf:Ek,looseToNumber:A2,makeMap:ba,normalizeClass:ae,normalizeCssVarValue:Yue,normalizeProps:Ui,normalizeStyle:je,objectToString:CV,parseStringStyle:TV,propsToAttrMap:bAe,remove:s3,slotFlagsText:oAe,stringifyStyle:dAe,toDisplayString:Be,toHandlerKey:Ym,toNumber:I2,toRawType:Nue,toTypeString:Dg},Symbol.toStringTag,{value:"Module"}));/** * @vue/reactivity v3.5.22 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let ol;class IV{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=ol,!t&&ol&&(this.index=(ol.scopes||(ol.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&&(ol=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(LS){let t=LS;for(LS=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;IS;){let t=IS;for(IS=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 Que(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Jue(e){let t,n=e.depsTail,r=n;for(;r;){const o=r.prevDep;r.version===-1?(r===n&&(n=o),DV(r),PAe(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=o}e.deps=t,e.depsTail=n}function IF(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(ece(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function ece(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===P2)||(e.globalVersion=P2,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!IF(e))))return;e.flags|=2;const t=e.dep,n=xo,r=bd;xo=e,bd=!0;try{Que(e);const o=e.fn(e._value);(t.version===0||cl(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{xo=n,bd=r,Jue(e),e.flags&=-3}}function DV(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)DV(a,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function PAe(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}function RAe(e,t){e.effect instanceof L2&&(e=e.effect.fn);const n=new L2(e);t&&gi(n,t);try{n.run()}catch(o){throw n.stop(),o}const r=n.run.bind(n);return r.effect=n,r}function MAe(e){e.effect.stop()}let bd=!0;const tce=[];function Ph(){tce.push(bd),bd=!1}function Rh(){const e=tce.pop();bd=e===void 0?!0:e}function Oee(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=xo;xo=void 0;try{t()}finally{xo=n}}}let P2=0,DAe=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 d3{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(!xo||!bd||xo===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==xo)n=this.activeLink=new DAe(xo,this),xo.deps?(n.prevDep=xo.depsTail,xo.depsTail.nextDep=n,xo.depsTail=n):xo.deps=xo.depsTail=n,nce(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=xo.depsTail,n.nextDep=void 0,xo.depsTail.nextDep=n,xo.depsTail=n,xo.deps===n&&(xo.deps=r)}return n}trigger(t){this.version++,P2++,this.notify(t)}notify(t){RV();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{MV()}}}function nce(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)nce(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const CA=new WeakMap,Zm=Symbol(""),LF=Symbol(""),R2=Symbol("");function dl(e,t,n){if(bd&&xo){let r=CA.get(e);r||CA.set(e,r=new Map);let o=r.get(n);o||(r.set(n,o=new d3),o.map=r,o.key=n),o.track()}}function fh(e,t,n,r,o,a){const s=CA.get(e);if(!s){P2++;return}const l=c=>{c&&c.trigger()};if(RV(),t==="clear")s.forEach(l);else{const c=zn(e),f=c&&l3(n);if(c&&n==="length"){const h=Number(r);s.forEach((p,m)=>{(m==="length"||m===R2||!Wl(m)&&m>=h)&&l(p)})}else switch((n!==void 0||s.has(void 0))&&l(s.get(n)),f&&l(s.get(R2)),t){case"add":c?f&&l(s.get("length")):(l(s.get(Zm)),qm(e)&&l(s.get(LF)));break;case"delete":c||(l(s.get(Zm)),qm(e)&&l(s.get(LF)));break;case"set":qm(e)&&l(s.get(Zm));break}}MV()}function OAe(e,t){const n=CA.get(e);return n&&n.get(t)}function W0(e){const t=Pi(e);return t===e?t:(dl(t,"iterate",R2),ec(e)?t:t.map(Ma))}function f3(e){return dl(e=Pi(e),"iterate",R2),e}const $Ae={__proto__:null,[Symbol.iterator](){return d8(this,Symbol.iterator,Ma)},concat(...e){return W0(this).concat(...e.map(t=>zn(t)?W0(t):t))},entries(){return d8(this,"entries",e=>(e[1]=Ma(e[1]),e))},every(e,t){return Zf(this,"every",e,t,void 0,arguments)},filter(e,t){return Zf(this,"filter",e,t,n=>n.map(Ma),arguments)},find(e,t){return Zf(this,"find",e,t,Ma,arguments)},findIndex(e,t){return Zf(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Zf(this,"findLast",e,t,Ma,arguments)},findLastIndex(e,t){return Zf(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Zf(this,"forEach",e,t,void 0,arguments)},includes(...e){return f8(this,"includes",e)},indexOf(...e){return f8(this,"indexOf",e)},join(e){return W0(this).join(e)},lastIndexOf(...e){return f8(this,"lastIndexOf",e)},map(e,t){return Zf(this,"map",e,t,void 0,arguments)},pop(){return A_(this,"pop")},push(...e){return A_(this,"push",e)},reduce(e,...t){return $ee(this,"reduce",e,t)},reduceRight(e,...t){return $ee(this,"reduceRight",e,t)},shift(){return A_(this,"shift")},some(e,t){return Zf(this,"some",e,t,void 0,arguments)},splice(...e){return A_(this,"splice",e)},toReversed(){return W0(this).toReversed()},toSorted(e){return W0(this).toSorted(e)},toSpliced(...e){return W0(this).toSpliced(...e)},unshift(...e){return A_(this,"unshift",e)},values(){return d8(this,"values",Ma)}};function d8(e,t,n){const r=f3(e),o=r[t]();return r!==e&&!ec(e)&&(o._next=o.next,o.next=()=>{const a=o._next();return a.done||(a.value=n(a.value)),a}),o}const NAe=Array.prototype;function Zf(e,t,n,r,o,a){const s=f3(e),l=s!==e&&!ec(e),c=s[t];if(c!==NAe[t]){const p=c.apply(e,a);return l?Ma(p):p}let f=n;s!==e&&(l?f=function(p,m){return n.call(this,Ma(p),m,e)}:n.length>2&&(f=function(p,m){return n.call(this,p,m,e)}));const h=c.call(s,f,r);return l&&o?o(h):h}function $ee(e,t,n,r){const o=f3(e);let a=n;return o!==e&&(ec(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,Ma(l),c,e)}),o[t](a,...r)}function f8(e,t,n){const r=Pi(e);dl(r,"iterate",R2);const o=r[t](...n);return(o===-1||o===!1)&&v3(n[0])?(n[0]=Pi(n[0]),r[t](...n)):o}function A_(e,t,n=[]){Ph(),RV();const r=Pi(e)[t].apply(e,n);return MV(),Rh(),r}const BAe=ba("__proto__,__v_isRef,__isVue"),rce=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Wl));function FAe(e){Wl(e)||(e=String(e));const t=Pi(this);return dl(t,"has",e),t.hasOwnProperty(e)}class ice{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?cce:uce:a?lce:ace).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const s=zn(t);if(!o){let c;if(s&&(c=$Ae[n]))return c;if(n==="hasOwnProperty")return FAe}const l=Reflect.get(t,n,Io(t)?t:r);if((Wl(n)?rce.has(n):BAe(n))||(o||dl(t,"get",n),a))return l;if(Io(l)){const c=s&&l3(n)?l:l.value;return o&&zi(c)?M2(c):c}return zi(l)?o?M2(l):qt(l):l}}class oce extends ice{constructor(t=!1){super(!1,t)}set(t,n,r,o){let a=t[n];if(!this._isShallow){const c=Mh(a);if(!ec(r)&&!Mh(r)&&(a=Pi(a),r=Pi(r)),!zn(t)&&Io(a)&&!Io(r))return c||(a.value=r),!0}const s=zn(t)&&l3(n)?Number(n)e,zx=e=>Reflect.getPrototypeOf(e);function HAe(e,t,n){return function(...r){const o=this.__v_raw,a=Pi(o),s=qm(a),l=e==="entries"||e===Symbol.iterator&&s,c=e==="keys"&&s,f=o[e](...r),h=n?PF:t?xA:Ma;return!t&&dl(a,"iterate",c?LF:Zm),{next(){const{value:p,done:m}=f.next();return m?{value:p,done:m}:{value:l?[h(p[0]),h(p[1])]:h(p),done:m}},[Symbol.iterator](){return this}}}}function Hx(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function WAe(e,t){const n={get(o){const a=this.__v_raw,s=Pi(a),l=Pi(o);e||(cl(o,l)&&dl(s,"get",o),dl(s,"get",l));const{has:c}=zx(s),f=t?PF:e?xA:Ma;if(c.call(s,o))return f(a.get(o));if(c.call(s,l))return f(a.get(l));a!==s&&a.get(o)},get size(){const o=this.__v_raw;return!e&&dl(Pi(o),"iterate",Zm),o.size},has(o){const a=this.__v_raw,s=Pi(a),l=Pi(o);return e||(cl(o,l)&&dl(s,"has",o),dl(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=Pi(l),f=t?PF:e?xA:Ma;return!e&&dl(c,"iterate",Zm),l.forEach((h,p)=>o.call(a,f(h),f(p),s))}};return gi(n,e?{add:Hx("add"),set:Hx("set"),delete:Hx("delete"),clear:Hx("clear")}:{add(o){!t&&!ec(o)&&!Mh(o)&&(o=Pi(o));const a=Pi(this);return zx(a).has.call(a,o)||(a.add(o),fh(a,"add",o,o)),this},set(o,a){!t&&!ec(a)&&!Mh(a)&&(a=Pi(a));const s=Pi(this),{has:l,get:c}=zx(s);let f=l.call(s,o);f||(o=Pi(o),f=l.call(s,o));const h=c.call(s,o);return s.set(o,a),f?cl(a,h)&&fh(s,"set",o,a):fh(s,"add",o,a),this},delete(o){const a=Pi(this),{has:s,get:l}=zx(a);let c=s.call(a,o);c||(o=Pi(o),c=s.call(a,o)),l&&l.call(a,o);const f=a.delete(o);return c&&fh(a,"delete",o,void 0),f},clear(){const o=Pi(this),a=o.size!==0,s=o.clear();return a&&fh(o,"clear",void 0,void 0),s}}),["keys","values","entries",Symbol.iterator].forEach(o=>{n[o]=HAe(o,e,t)}),n}function h3(e,t){const n=WAe(e,t);return(r,o,a)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?r:Reflect.get(ji(n,o)&&o in r?n:r,o,a)}const GAe={get:h3(!1,!1)},KAe={get:h3(!1,!0)},qAe={get:h3(!0,!1)},YAe={get:h3(!0,!0)},ace=new WeakMap,lce=new WeakMap,uce=new WeakMap,cce=new WeakMap;function XAe(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ZAe(e){return e.__v_skip||!Object.isExtensible(e)?0:XAe(Nue(e))}function qt(e){return Mh(e)?e:p3(e,!1,jAe,GAe,ace)}function OV(e){return p3(e,!1,VAe,KAe,lce)}function M2(e){return p3(e,!0,UAe,qAe,uce)}function QAe(e){return p3(e,!0,zAe,YAe,cce)}function p3(e,t,n,r,o){if(!zi(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const a=ZAe(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 cf(e){return Mh(e)?cf(e.__v_raw):!!(e&&e.__v_isReactive)}function Mh(e){return!!(e&&e.__v_isReadonly)}function ec(e){return!!(e&&e.__v_isShallow)}function v3(e){return e?!!e.__v_raw:!1}function Pi(e){const t=e&&e.__v_raw;return t?Pi(t):e}function m3(e){return!ji(e,"__v_skip")&&Object.isExtensible(e)&&xV(e,"__v_skip",!0),e}const Ma=e=>zi(e)?qt(e):e,xA=e=>zi(e)?M2(e):e;function Io(e){return e?e.__v_isRef===!0:!1}function fe(e){return dce(e,!1)}function Qm(e){return dce(e,!0)}function dce(e,t){return Io(e)?e:new JAe(e,t)}class JAe{constructor(t,n){this.dep=new d3,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Pi(t),this._value=n?t:Ma(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||ec(t)||Mh(t);t=r?t:Pi(t),cl(t,n)&&(this._rawValue=t,this._value=r?t:Ma(t),this.dep.trigger())}}function eIe(e){e.dep&&e.dep.trigger()}function nt(e){return Io(e)?e.value:e}function tIe(e){return wr(e)?e():nt(e)}const nIe={get:(e,t,n)=>t==="__v_raw"?e:nt(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return Io(o)&&!Io(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function $V(e){return cf(e)?e:new Proxy(e,nIe)}class rIe{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new d3,{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 fce(e){return new rIe(e)}function Qt(e){const t=zn(e)?new Array(e.length):{};for(const n in e)t[n]=hce(e,n);return t}class iIe{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 OAe(Pi(this._object),this._key)}}class oIe{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 Cu(e,t,n){return Io(e)?e:wr(e)?new oIe(e):zi(e)&&arguments.length>1?hce(e,t,n):fe(e)}function hce(e,t,n){const r=e[t];return Io(r)?r:new iIe(e,t,n)}class sIe{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new d3(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=P2-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&xo!==this)return Zue(this,!0),!0}get value(){const t=this.dep.track();return ece(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function aIe(e,t,n=!1){let r,o;return wr(e)?r=e:(r=e.get,o=e.set),new sIe(r,o,n)}const lIe={GET:"get",HAS:"has",ITERATE:"iterate"},uIe={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},Wx={},EA=new WeakMap;let Np;function cIe(){return Np}function pce(e,t=!1,n=Np){if(n){let r=EA.get(n);r||EA.set(n,r=[]),r.push(e)}}function dIe(e,t,n=Si){const{immediate:r,deep:o,once:a,scheduler:s,augmentJob:l,call:c}=n,f=_=>o?_:ec(_)||o===!1||o===0?hh(_,1):hh(_);let h,p,m,g,b=!1,S=!1;if(Io(e)?(p=()=>e.value,b=ec(e)):cf(e)?(p=()=>f(e),b=!0):zn(e)?(S=!0,b=e.some(_=>cf(_)||ec(_)),p=()=>e.map(_=>{if(Io(_))return _.value;if(cf(_))return f(_);if(wr(_))return c?c(_,2):_()})):wr(e)?t?p=c?()=>c(e,2):e:p=()=>{if(m){Ph();try{m()}finally{Rh()}}const _=Np;Np=h;try{return c?c(e,3,[g]):e(g)}finally{Np=_}}:p=ga,t&&o){const _=p,A=o===!0?1/0:o;p=()=>hh(_(),A)}const k=c3(),C=()=>{h.stop(),k&&k.active&&s3(k.effects,h)};if(a&&t){const _=t;t=(...A)=>{_(...A),C()}}let x=S?new Array(e.length).fill(Wx):Wx;const E=_=>{if(!(!(h.flags&1)||!h.dirty&&!_))if(t){const A=h.run();if(o||b||(S?A.some((R,M)=>cl(R,x[M])):cl(A,x))){m&&m();const R=Np;Np=h;try{const M=[A,x===Wx?void 0:S&&x[0]===Wx?[]:x,g];x=A,c?c(t,3,M):t(...M)}finally{Np=R}}}else h.run()};return l&&l(E),h=new L2(p),h.scheduler=s?()=>s(E,!1):E,g=_=>pce(_,!1,h),m=h.onStop=()=>{const _=EA.get(h);if(_){if(c)c(_,4);else for(const A of _)A();EA.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 hh(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--,Io(e))hh(e.value,t,n);else if(zn(e))for(let r=0;r{hh(r,t,n)});else if(Ck(e)){for(const r in e)hh(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&hh(e[r],t,n)}return e}/** * @vue/runtime-core v3.5.22 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/const vce=[];function fIe(e){vce.push(e)}function hIe(){vce.pop()}function pIe(e,t){}const vIe={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"},mIe={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 j1(e,t,n,r){try{return r?e(...r):e()}catch(o){Og(o,t,n)}}function Fc(e,t,n,r){if(wr(e)){const o=j1(e,t,n,r);return o&&a3(o)&&o.catch(a=>{Og(a,t,n)}),o}if(zn(e)){const o=[];for(let a=0;a>>1,o=Nl[r],a=O2(o);a=O2(n)?Nl.push(e):Nl.splice(yIe(t),0,e),e.flags|=1,gce()}}function gce(){TA||(TA=mce.then(yce))}function D2(e){zn(e)?By.push(...e):Bp&&e.id===-1?Bp.splice(by+1,0,e):e.flags&1||(By.push(e),e.flags|=1),gce()}function Nee(e,t,n=qd+1){for(;nO2(n)-O2(r));if(By.length=0,Bp){Bp.push(...t);return}for(Bp=t,by=0;bye.id==null?e.flags&2?-1:1/0:e.id;function yce(e){try{for(qd=0;qd_y.emit(o,...a)),Gx=[]):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=>{bce(a,t)}),setTimeout(()=>{_y||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Gx=[])},3e3)):Gx=[]}let Ba=null,g3=null;function $2(e){const t=Ba;return Ba=e,g3=e&&e.type.__scopeId||null,t}function bIe(e){g3=e}function _Ie(){g3=null}const SIe=e=>de;function de(e,t=Ba,n){if(!t||e._n)return e;const r=(...o)=>{r._d&&F2(-1);const a=$2(t);let s;try{s=e(...o)}finally{$2(a),r._d&&F2(1)}return s};return r._n=!0,r._c=!0,r._d=!0,r}function Ai(e,t){if(Ba===null)return e;const n=Ik(Ba),r=e.dirs||(e.dirs=[]);for(let o=0;oe.__isTeleport,PS=e=>e&&(e.disabled||e.disabled===""),Bee=e=>e&&(e.defer||e.defer===""),Fee=e=>typeof SVGElement<"u"&&e instanceof SVGElement,jee=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,RF=(e,t)=>{const n=e&&e.to;return Ir(n)?t?t(n):null:n},kce={name:"Teleport",__isTeleport:!0,process(e,t,n,r,o,a,s,l,c,f){const{mc:h,pc:p,pbc:m,o:{insert:g,querySelector:b,createText:S,createComment:k}}=f,C=PS(t.props);let{shapeFlag:x,children:E,dynamicChildren:_}=t;if(e==null){const A=t.el=S(""),R=t.anchor=S("");g(A,n,r),g(R,n,r);const M=(N,L)=>{x&16&&h(E,N,L,o,a,s,l,c)},D=()=>{const N=t.target=RF(t.props,b),L=wce(N,t,S,g);N&&(s!=="svg"&&Fee(N)?s="svg":s!=="mathml"&&jee(N)&&(s="mathml"),o&&o.isCE&&(o.ce._teleportTargets||(o.ce._teleportTargets=new Set)).add(N),C||(M(N,L),IT(t,!1)))};C&&(M(n,R),IT(t,!0)),Bee(t.props)?(t.el.__isMounted=!1,ia(()=>{D(),delete t.el.__isMounted},a)):D()}else{if(Bee(t.props)&&e.el.__isMounted===!1){ia(()=>{kce.process(e,t,n,r,o,a,s,l,c,f)},a);return}t.el=e.el,t.targetStart=e.targetStart;const A=t.anchor=e.anchor,R=t.target=e.target,M=t.targetAnchor=e.targetAnchor,D=PS(e.props),N=D?n:R,L=D?A:M;if(s==="svg"||Fee(R)?s="svg":(s==="mathml"||jee(R))&&(s="mathml"),_?(m(e.dynamicChildren,_,N,o,a,s,l),YV(e,t,!0)):c||p(e,t,N,L,o,a,s,l,!1),C)D?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Kx(t,n,A,f,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const B=t.target=RF(t.props,b);B&&Kx(t,B,null,f,0)}else D&&Kx(t,R,M,f,1);IT(t,C)}},remove(e,t,n,{um:r,o:{remove:o}},a){const{shapeFlag:s,children:l,anchor:c,targetStart:f,targetAnchor:h,target:p,props:m}=e;if(p&&(o(f),o(h)),a&&o(c),s&16){const g=a||!PS(m);for(let b=0;b{e.isMounted=!0}),Fo(()=>{e.isUnmounting=!0}),e}const mc=[Function,Array],FV={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:mc,onEnter:mc,onAfterEnter:mc,onEnterCancelled:mc,onBeforeLeave:mc,onLeave:mc,onAfterLeave:mc,onLeaveCancelled:mc,onBeforeAppear:mc,onAppear:mc,onAfterAppear:mc,onAppearCancelled:mc},Cce=e=>{const t=e.subTree;return t.component?Cce(t.component):t},wIe={name:"BaseTransition",props:FV,setup(e,{slots:t}){const n=fo(),r=BV();return()=>{const o=t.default&&y3(t.default(),!0);if(!o||!o.length)return;const a=xce(o),s=Pi(e),{mode:l}=s;if(r.isLeaving)return h8(a);const c=Uee(a);if(!c)return h8(a);let f=d1(c,s,r,n,p=>f=p);c.type!==ps&&Dh(c,f);let h=n.subTree&&Uee(n.subTree);if(h&&h.type!==ps&&!pd(h,c)&&Cce(n).type!==ps){let p=d1(h,s,r,n);if(Dh(h,p),l==="out-in"&&c.type!==ps)return r.isLeaving=!0,p.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete p.afterLeave,h=void 0},h8(a);l==="in-out"&&c.type!==ps?p.delayLeave=(m,g,b)=>{const S=Tce(r,h);S[String(h.key)]=h,m[ch]=()=>{g(),m[ch]=void 0,delete f.delayedLeave,h=void 0},f.delayedLeave=()=>{b(),delete f.delayedLeave,h=void 0}}:h=void 0}else h&&(h=void 0);return a}}};function xce(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==ps){t=n;break}}return t}const Ece=wIe;function Tce(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 d1(e,t,n,r,o){const{appear:a,mode:s,persisted:l=!1,onBeforeEnter:c,onEnter:f,onAfterEnter:h,onEnterCancelled:p,onBeforeLeave:m,onLeave:g,onAfterLeave:b,onLeaveCancelled:S,onBeforeAppear:k,onAppear:C,onAfterAppear:x,onAppearCancelled:E}=t,_=String(e.key),A=Tce(n,e),R=(N,L)=>{N&&Fc(N,r,9,L)},M=(N,L)=>{const B=L[1];R(N,L),zn(N)?N.every(U=>U.length<=1)&&B():N.length<=1&&B()},D={mode:s,persisted:l,beforeEnter(N){let L=c;if(!n.isMounted)if(a)L=k||c;else return;N[ch]&&N[ch](!0);const B=A[_];B&&pd(e,B)&&B.el[ch]&&B.el[ch](),R(L,[N])},enter(N){let L=f,B=h,U=p;if(!n.isMounted)if(a)L=C||f,B=x||h,U=E||p;else return;let W=!1;const V=N[qx]=z=>{W||(W=!0,z?R(U,[N]):R(B,[N]),D.delayedLeave&&D.delayedLeave(),N[qx]=void 0)};L?M(L,[N,V]):V()},leave(N,L){const B=String(e.key);if(N[qx]&&N[qx](!0),n.isUnmounting)return L();R(m,[N]);let U=!1;const W=N[ch]=V=>{U||(U=!0,L(),V?R(S,[N]):R(b,[N]),N[ch]=void 0,A[B]===e&&delete A[B])};A[B]=e,g?M(g,[N,W]):W()},clone(N){const L=d1(N,t,n,r,o);return o&&o(L),L}};return D}function h8(e){if(Tk(e))return e=yl(e),e.children=null,e}function Uee(e){if(!Tk(e))return Sce(e.type)&&e.children?xce(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&&wr(n.default))return n.default()}}function Dh(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Dh(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 y3(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 IA=new WeakMap;function Fy(e,t,n,r,o=!1){if(zn(e)){e.forEach((b,S)=>Fy(b,t&&(zn(t)?t[S]:t),n,r,o));return}if(tv(r)&&!o){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&Fy(e,t,n,r.component.subTree);return}const a=r.shapeFlag&4?Ik(r.component):r.el,s=o?null:a,{i:l,r:c}=e,f=t&&t.r,h=l.refs===Si?l.refs={}:l.refs,p=l.setupState,m=Pi(p),g=p===Si?Fm:b=>ji(m,b);if(f!=null&&f!==c){if(Vee(t),Ir(f))h[f]=null,g(f)&&(p[f]=null);else if(Io(f)){f.value=null;const b=t;b.k&&(h[b.k]=null)}}if(wr(c))j1(c,l,12,[s,h]);else{const b=Ir(c),S=Io(c);if(b||S){const k=()=>{if(e.f){const C=b?g(c)?p[c]:h[c]:c.value;if(o)zn(C)&&s3(C,a);else if(zn(C))C.includes(a)||C.push(a);else if(b)h[c]=[a],g(c)&&(p[c]=h[c]);else{const x=[a];c.value=x,e.k&&(h[e.k]=x)}}else b?(h[c]=s,g(c)&&(p[c]=s)):S&&(c.value=s,e.k&&(h[e.k]=s))};if(s){const C=()=>{k(),IA.delete(e)};C.id=-1,IA.set(e,C),ia(C,n)}else Vee(e),k()}}}function Vee(e){const t=IA.get(e);t&&(t.flags|=8,IA.delete(e))}let zee=!1;const G0=()=>{zee||(console.error("Hydration completed but contains mismatches."),zee=!0)},EIe=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",TIe=e=>e.namespaceURI.includes("MathML"),Yx=e=>{if(e.nodeType===1){if(EIe(e))return"svg";if(TIe(e))return"mathml"}},Ty=e=>e.nodeType===8;function AIe(e){const{mt:t,p:n,o:{patchProp:r,createText:o,nextSibling:a,parentNode:s,remove:l,insert:c,createComment:f}}=e,h=(E,_)=>{if(!_.hasChildNodes()){n(null,E,_),AA(),_._vnode=E;return}p(_.firstChild,E,null,null,null),AA(),_._vnode=E},p=(E,_,A,R,M,D=!1)=>{D=D||!!_.dynamicChildren;const N=Ty(E)&&E.data==="[",L=()=>S(E,_,A,R,M,N),{type:B,ref:U,shapeFlag:W,patchFlag:V}=_;let z=E.nodeType;_.el=E,V===-2&&(D=!1,_.dynamicChildren=null);let Y=null;switch(B){case nv:z!==3?_.children===""?(c(_.el=o(""),s(E),E),Y=E):Y=L():(E.data!==_.children&&(G0(),E.data=_.children),Y=a(E));break;case ps:x(E)?(Y=a(E),C(_.el=E.content.firstChild,E,A)):z!==8||N?Y=L():Y=a(E);break;case eg:if(N&&(E=a(E),z=E.nodeType),z===1||z===3){Y=E;const oe=!_.children.length;for(let ne=0;ne<_.staticCount;ne++)oe&&(_.children+=Y.nodeType===1?Y.outerHTML:Y.data),ne===_.staticCount-1&&(_.anchor=Y),Y=a(Y);return N?a(Y):Y}else L();break;case Ut:N?Y=b(E,_,A,R,M,D):Y=L();break;default:if(W&1)(z!==1||_.type.toLowerCase()!==E.tagName.toLowerCase())&&!x(E)?Y=L():Y=m(E,_,A,R,M,D);else if(W&6){_.slotScopeIds=M;const oe=s(E);if(N?Y=k(E):Ty(E)&&E.data==="teleport start"?Y=k(E,E.data,"teleport end"):Y=a(E),t(_,oe,null,A,R,Yx(oe),D),tv(_)&&!_.type.__asyncResolved){let ne;N?(ne=O(Ut),ne.anchor=Y?Y.previousSibling:oe.lastChild):ne=E.nodeType===3?ze(""):O("div"),ne.el=E,_.component.subTree=ne}}else W&64?z!==8?Y=L():Y=_.type.hydrate(E,_,A,R,M,D,e,g):W&128&&(Y=_.type.hydrate(E,_,A,R,Yx(s(E)),M,D,e,p))}return U!=null&&Fy(U,null,R,_),Y},m=(E,_,A,R,M,D)=>{D=D||!!_.dynamicChildren;const{type:N,props:L,patchFlag:B,shapeFlag:U,dirs:W,transition:V}=_,z=N==="input"||N==="option";if(z||B!==-1){W&&Xd(_,null,A,"created");let Y=!1;if(x(E)){Y=Zce(null,V)&&A&&A.vnode.props&&A.vnode.props.appear;const ne=E.content.firstChild;if(Y){const X=ne.getAttribute("class");X&&(ne.$cls=X),V.beforeEnter(ne)}C(ne,E,A),_.el=E=ne}if(U&16&&!(L&&(L.innerHTML||L.textContent))){let ne=g(E.firstChild,_,E,A,R,M,D);for(;ne;){Xx(E,1)||G0();const X=ne;ne=ne.nextSibling,l(X)}}else if(U&8){let ne=_.children;ne[0]===` `&&(E.tagName==="PRE"||E.tagName==="TEXTAREA")&&(ne=ne.slice(1)),E.textContent!==ne&&(Xx(E,0)||G0(),E.textContent=_.children)}if(L){if(z||!D||B&48){const ne=E.tagName.includes("-");for(const X in L)(z&&(X.endsWith("value")||X==="indeterminate")||wv(X)&&!_h(X)||X[0]==="."||ne)&&r(E,X,null,L[X],void 0,A)}else if(L.onClick)r(E,"onClick",null,L.onClick,void 0,A);else if(B&4&&cf(L.style))for(const ne in L.style)L.style[ne]}let oe;(oe=L&&L.onVnodeBeforeMount)&&cu(oe,A,_),W&&Xd(_,null,A,"beforeMount"),((oe=L&&L.onVnodeMounted)||W||Y)&&sde(()=>{oe&&cu(oe,A,_),Y&&V.enter(E),W&&Xd(_,null,A,"mounted")},R)}return E.nextSibling},g=(E,_,A,R,M,D,N)=>{N=N||!!_.dynamicChildren;const L=_.children,B=L.length;for(let U=0;U{const{slotScopeIds:N}=_;N&&(M=M?M.concat(N):N);const L=s(E),B=g(a(E),_,L,A,R,M,D);return B&&Ty(B)&&B.data==="]"?a(_.anchor=B):(G0(),c(_.anchor=f("]"),L,B),B)},S=(E,_,A,R,M,D)=>{if(Xx(E.parentElement,1)||G0(),_.el=null,D){const B=k(E);for(;;){const U=a(E);if(U&&U!==B)l(U);else break}}const N=a(E),L=s(E);return l(E),n(null,_,L,N,A,R,Yx(L),M),A&&(A.vnode.el=_.el,S3(A,_.el)),N},k=(E,_="[",A="]")=>{let R=0;for(;E;)if(E=a(E),E&&Ty(E)&&(E.data===_&&R++,E.data===A)){if(R===0)return a(E);R--}return E},C=(E,_,A)=>{const R=_.parentNode;R&&R.replaceChild(E,_);let M=A;for(;M;)M.vnode.el===_&&(M.vnode.el=M.subTree.el=E),M=M.parent},x=E=>E.nodeType===1&&E.tagName==="TEMPLATE";return[h,p]}const Hee="data-allow-mismatch",IIe={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function Xx(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(Hee);)e=e.parentElement;const n=e&&e.getAttribute(Hee);if(n==null)return!1;if(n==="")return!0;{const r=n.split(",");return t===0&&r.includes("children")?!0:r.includes(IIe[t])}}const LIe=xk().requestIdleCallback||(e=>setTimeout(e,1)),PIe=xk().cancelIdleCallback||(e=>clearTimeout(e)),RIe=(e=1e4)=>t=>{const n=LIe(t,{timeout:e});return()=>PIe(n)};function MIe(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(MIe(o))return t(),r.disconnect(),!1;r.observe(o)}}),()=>r.disconnect()},OIe=e=>t=>{if(e){const n=matchMedia(e);if(n.matches)t();else return n.addEventListener("change",t,{once:!0}),()=>n.removeEventListener("change",t)}},$Ie=(e=[])=>(t,n)=>{Ir(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 NIe(e,t){if(Ty(e)&&e.data==="["){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(Ty(r))if(r.data==="]"){if(--n===0)break}else r.data==="["&&n++;r=r.nextSibling}}else t(e)}const tv=e=>!!e.type.__asyncLoader;function Ng(e){wr(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 f=null,h,p=0;const m=()=>(p++,f=null,g()),g=()=>{let b;return f||(b=f=t().catch(S=>{if(S=S instanceof Error?S:new Error(String(S)),c)return new Promise((k,C)=>{c(S,()=>k(m()),()=>C(S),p+1)});throw S}).then(S=>b!==f&&f?f:(S&&(S.__esModule||S[Symbol.toStringTag]==="Module")&&(S=S.default),h=S,S)))};return _e({name:"AsyncComponentWrapper",__asyncLoader:g,__asyncHydrate(b,S,k){let C=!1;(S.bu||(S.bu=[])).push(()=>C=!0);const x=()=>{C||k()},E=a?()=>{const _=a(x,A=>NIe(b,A));_&&(S.bum||(S.bum=[])).push(_)}:x;h?E():g().then(()=>!S.isUnmounted&&E())},get __asyncResolved(){return h},setup(){const b=Na;if(jV(b),h)return()=>p8(h,b);const S=E=>{f=null,Og(E,b,13,!r)};if(l&&b.suspense||f1)return g().then(E=>()=>p8(E,b)).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,b.parent&&Tk(b.parent.vnode)&&b.parent.update()}).catch(E=>{S(E),C.value=E}),()=>{if(k.value&&h)return p8(h,b);if(C.value&&r)return O(r,{error:C.value});if(n&&!x.value)return O(n)}}})}function p8(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 Tk=e=>e.type.__isKeepAlive,BIe={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=fo(),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:f,um:h,o:{createElement:p}}}=r,m=p("div");r.activate=(x,E,_,A,R)=>{const M=x.component;f(x,E,_,0,l),c(M.vnode,x,E,_,M,l,A,x.slotScopeIds,R),ia(()=>{M.isDeactivated=!1,M.a&&Xm(M.a);const D=x.props&&x.props.onVnodeMounted;D&&cu(D,M.parent,x)},l)},r.deactivate=x=>{const E=x.component;PA(E.m),PA(E.a),f(x,m,null,1,l),ia(()=>{E.da&&Xm(E.da);const _=x.props&&x.props.onVnodeUnmounted;_&&cu(_,E.parent,x),E.isDeactivated=!0},l)};function g(x){v8(x),h(x,n,l,!0)}function b(x){o.forEach((E,_)=>{const A=zF(E.type);A&&!x(A)&&S(_)})}function S(x){const E=o.get(x);E&&(!s||!pd(E,s))?g(E):s&&v8(s),o.delete(x),a.delete(x)}Dt(()=>[e.include,e.exclude],([x,E])=>{x&&b(_=>uS(x,_)),E&&b(_=>!uS(E,_))},{flush:"post",deep:!0});let k=null;const C=()=>{k!=null&&(RA(n.subTree.type)?ia(()=>{o.set(k,Zx(n.subTree))},n.subTree.suspense):o.set(k,Zx(n.subTree)))};return gn(C),Ga(C),Fo(()=>{o.forEach(x=>{const{subTree:E,suspense:_}=n,A=Zx(E);if(x.type===A.type&&x.key===A.key){v8(A);const R=A.component.da;R&&ia(R,_);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(!Bi(E)||!(E.shapeFlag&4)&&!(E.shapeFlag&128))return s=null,E;let _=Zx(E);if(_.type===ps)return s=null,_;const A=_.type,R=zF(tv(_)?_.type.__asyncResolved||{}:A),{include:M,exclude:D,max:N}=e;if(M&&(!R||!uS(M,R))||D&&R&&uS(D,R))return _.shapeFlag&=-257,s=_,E;const L=_.key==null?A:_.key,B=o.get(L);return _.el&&(_=yl(_),E.shapeFlag&128&&(E.ssContent=_)),k=L,B?(_.el=B.el,_.component=B.component,_.transition&&Dh(_,_.transition),_.shapeFlag|=512,a.delete(L),a.add(L)):(a.add(L),N&&a.size>parseInt(N,10)&&S(a.values().next().value)),_.shapeFlag|=256,s=_,RA(E.type)?E:_}}},FIe=BIe;function uS(e,t){return zn(e)?e.some(n=>uS(n,t)):Ir(e)?e.split(",").includes(t):$ue(e)?(e.lastIndex=0,e.test(t)):!1}function Ace(e,t){Ice(e,"a",t)}function UV(e,t){Ice(e,"da",t)}function Ice(e,t,n=Na){const r=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(b3(t,r,n),n){let o=n.parent;for(;o&&o.parent;)Tk(o.parent.vnode)&&jIe(r,t,n,o),o=o.parent}}function jIe(e,t,n,r){const o=b3(t,e,r,!0);yi(()=>{s3(r[t],o)},n)}function v8(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Zx(e){return e.shapeFlag&128?e.ssContent:e}function b3(e,t,n=Na,r=!1){if(n){const o=n[e]||(n[e]=[]),a=t.__weh||(t.__weh=(...s)=>{Ph();const l=mg(n),c=Fc(t,n,e,s);return l(),Rh(),c});return r?o.unshift(a):o.push(a),a}}const Fh=e=>(t,n=Na)=>{(!f1||e==="sp")&&b3(e,(...r)=>t(...r),n)},Lce=Fh("bm"),gn=Fh("m"),VV=Fh("bu"),Ga=Fh("u"),Fo=Fh("bum"),yi=Fh("um"),Pce=Fh("sp"),Rce=Fh("rtg"),Mce=Fh("rtc");function Dce(e,t=Na){b3("ec",e,t)}const zV="components",UIe="directives";function Pe(e,t){return HV(zV,e,!0,t)||e}const Oce=Symbol.for("v-ndc");function Fa(e){return Ir(e)?HV(zV,e,!1)||e:e||Oce}function U1(e){return HV(UIe,e)}function HV(e,t,n=!0,r=!1){const o=Ba||Na;if(o){const a=o.type;if(e===zV){const l=zF(a,!1);if(l&&(l===t||l===Ao(t)||l===xv(Ao(t))))return a}const s=Wee(o[e]||a[e],t)||Wee(o.appContext[e],t);return!s&&r?a:s}}function Wee(e,t){return e&&(e[t]||e[Ao(t)]||e[xv(Ao(t))])}function mn(e,t,n,r){let o;const a=n&&n[r],s=zn(e);if(s||Ir(e)){const l=s&&cf(e);let c=!1,f=!1;l&&(c=!ec(e),f=Mh(e),e=f3(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,f=l.length;c{const a=r.fn(...o);return a&&(a.key=r.key),a}:r.fn)}return e}function ct(e,t,n={},r,o){if(Ba.ce||Ba.parent&&tv(Ba.parent)&&Ba.parent.ce){const f=Object.keys(n).length>0;return t!=="default"&&(n.name=t),H(),Ye(Ut,null,[O("slot",n,r&&r())],f?-2:64)}let a=e[t];a&&a._c&&(a._d=!1),H();const s=a&&WV(a(n)),l=n.key||s&&s.key,c=Ye(Ut,{key:(l&&!Wl(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 WV(e){return e.some(t=>Bi(t)?!(t.type===ps||t.type===Ut&&!WV(t.children)):!0)?e:null}function VIe(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:Ym(r)]=e[r];return n}const MF=e=>e?dde(e)?Ik(e):MF(e.parent):null,RS=gi(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=>MF(e.parent),$root:e=>MF(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>GV(e),$forceUpdate:e=>e.f||(e.f=()=>{NV(e.update)}),$nextTick:e=>e.n||(e.n=yn.bind(e.proxy)),$watch:e=>y3e.bind(e)}),m8=(e,t)=>e!==Si&&!e.__isScriptSetup&&ji(e,t),DF={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 f;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(m8(r,t))return s[t]=1,r[t];if(o!==Si&&ji(o,t))return s[t]=2,o[t];if((f=e.propsOptions[0])&&ji(f,t))return s[t]=3,a[t];if(n!==Si&&ji(n,t))return s[t]=4,n[t];OF&&(s[t]=0)}}const h=RS[t];let p,m;if(h)return t==="$attrs"&&dl(e.attrs,"get",""),h(e);if((p=l.__cssModules)&&(p=p[t]))return p;if(n!==Si&&ji(n,t))return s[t]=4,n[t];if(m=c.config.globalProperties,ji(m,t))return m[t]},set({_:e},t,n){const{data:r,setupState:o,ctx:a}=e;return m8(o,t)?(o[t]=n,!0):r!==Si&&ji(r,t)?(r[t]=n,!0):ji(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,f;return!!(n[l]||e!==Si&&l[0]!=="$"&&ji(e,l)||m8(t,l)||(c=a[0])&&ji(c,l)||ji(r,l)||ji(RS,l)||ji(o.config.globalProperties,l)||(f=s.__cssModules)&&f[l])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ji(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},zIe=gi({},DF,{get(e,t){if(t!==Symbol.unscopables)return DF.get(e,t,e)},has(e,t){return t[0]!=="_"&&!EV(t)}});function HIe(){return null}function WIe(){return null}function GIe(e){}function KIe(e){}function qIe(){return null}function YIe(){}function XIe(e,t){return null}function ZIe(){return $ce().slots}function QIe(){return $ce().attrs}function $ce(e){const t=fo();return t.setupContext||(t.setupContext=pde(t))}function N2(e){return zn(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function JIe(e,t){const n=N2(e);for(const r in t){if(r.startsWith("__skip"))continue;let o=n[r];o?zn(o)||wr(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 e3e(e,t){return!e||!t?e||t:zn(e)&&zn(t)?e.concat(t):gi({},N2(e),N2(t))}function t3e(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function n3e(e){const t=fo();let n=e();return jF(),a3(n)&&(n=n.catch(r=>{throw mg(t),r})),[n,()=>mg(t)]}let OF=!0;function r3e(e){const t=GV(e),n=e.proxy,r=e.ctx;OF=!1,t.beforeCreate&&Gee(t.beforeCreate,e,"bc");const{data:o,computed:a,methods:s,watch:l,provide:c,inject:f,created:h,beforeMount:p,mounted:m,beforeUpdate:g,updated:b,activated:S,deactivated:k,beforeDestroy:C,beforeUnmount:x,destroyed:E,unmounted:_,render:A,renderTracked:R,renderTriggered:M,errorCaptured:D,serverPrefetch:N,expose:L,inheritAttrs:B,components:U,directives:W,filters:V}=t;if(f&&i3e(f,r,null),s)for(const oe in s){const ne=s[oe];wr(ne)&&(r[oe]=ne.bind(n))}if(o){const oe=o.call(n,n);zi(oe)&&(e.data=qt(oe))}if(OF=!0,a)for(const oe in a){const ne=a[oe],X=wr(ne)?ne.bind(n,n):wr(ne.get)?ne.get.bind(n,n):ga,K=!wr(ne)&&wr(ne.set)?ne.set.bind(n):ga,re=F({get:X,set:K});Object.defineProperty(r,oe,{enumerable:!0,configurable:!0,get:()=>re.value,set:ee=>re.value=ee})}if(l)for(const oe in l)Nce(l[oe],r,n,oe);if(c){const oe=wr(c)?c.call(n):c;Reflect.ownKeys(oe).forEach(ne=>{Xr(ne,oe[ne])})}h&&Gee(h,e,"c");function Y(oe,ne){zn(ne)?ne.forEach(X=>oe(X.bind(n))):ne&&oe(ne.bind(n))}if(Y(Lce,p),Y(gn,m),Y(VV,g),Y(Ga,b),Y(Ace,S),Y(UV,k),Y(Dce,D),Y(Mce,R),Y(Rce,M),Y(Fo,x),Y(yi,_),Y(Pce,N),zn(L))if(L.length){const oe=e.exposed||(e.exposed={});L.forEach(ne=>{Object.defineProperty(oe,ne,{get:()=>n[ne],set:X=>n[ne]=X,enumerable:!0})})}else e.exposed||(e.exposed={});A&&e.render===ga&&(e.render=A),B!=null&&(e.inheritAttrs=B),U&&(e.components=U),W&&(e.directives=W),N&&jV(e)}function i3e(e,t,n=ga){zn(e)&&(e=$F(e));for(const r in e){const o=e[r];let a;zi(o)?"default"in o?a=In(o.from||r,o.default,!0):a=In(o.from||r):a=In(o),Io(a)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>a.value,set:s=>a.value=s}):t[r]=a}}function Gee(e,t,n){Fc(zn(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Nce(e,t,n,r){let o=r.includes(".")?nde(n,r):()=>n[r];if(Ir(e)){const a=t[e];wr(a)&&Dt(o,a)}else if(wr(e))Dt(o,e.bind(n));else if(zi(e))if(zn(e))e.forEach(a=>Nce(a,t,n,r));else{const a=wr(e.handler)?e.handler.bind(n):t[e.handler];wr(a)&&Dt(o,a,e)}}function GV(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(f=>LA(c,f,s,!0)),LA(c,t,s)),zi(t)&&a.set(t,c),c}function LA(e,t,n,r=!1){const{mixins:o,extends:a}=t;a&&LA(e,a,n,!0),o&&o.forEach(s=>LA(e,s,n,!0));for(const s in t)if(!(r&&s==="expose")){const l=o3e[s]||n&&n[s];e[s]=l?l(e[s],t[s]):t[s]}return e}const o3e={data:Kee,props:qee,emits:qee,methods:cS,computed:cS,beforeCreate:Rl,created:Rl,beforeMount:Rl,mounted:Rl,beforeUpdate:Rl,updated:Rl,beforeDestroy:Rl,beforeUnmount:Rl,destroyed:Rl,unmounted:Rl,activated:Rl,deactivated:Rl,errorCaptured:Rl,serverPrefetch:Rl,components:cS,directives:cS,watch:a3e,provide:Kee,inject:s3e};function Kee(e,t){return t?e?function(){return gi(wr(e)?e.call(this,this):e,wr(t)?t.call(this,this):t)}:t:e}function s3e(e,t){return cS($F(e),$F(t))}function $F(e){if(zn(e)){const t={};for(let n=0;n1)return n&&wr(t)?t.call(r&&r.proxy):t}}function Fce(){return!!(fo()||Jm)}const jce={},Uce=()=>Object.create(jce),Vce=e=>Object.getPrototypeOf(e)===jce;function c3e(e,t,n,r=!1){const o={},a=Uce();e.propsDefaults=Object.create(null),zce(e,t,o,a);for(const s in e.propsOptions[0])s in o||(o[s]=void 0);n?e.props=r?o:OV(o):e.type.props?e.props=o:e.props=a,e.attrs=a}function d3e(e,t,n,r){const{props:o,attrs:a,vnode:{patchFlag:s}}=e,l=Pi(o),[c]=e.propsOptions;let f=!1;if((r||s>0)&&!(s&16)){if(s&8){const h=e.vnode.dynamicProps;for(let p=0;p{c=!0;const[m,g]=Hce(p,t,!0);gi(s,m),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,Km),Km;if(zn(a))for(let h=0;he==="_"||e==="_ctx"||e==="$stable",qV=e=>zn(e)?e.map(du):[du(e)],h3e=(e,t,n)=>{if(t._n)return t;const r=de((...o)=>qV(t(...o)),n);return r._c=!1,r},Wce=(e,t,n)=>{const r=e._ctx;for(const o in e){if(KV(o))continue;const a=e[o];if(wr(a))t[o]=h3e(o,a,r);else if(a!=null){const s=qV(a);t[o]=()=>s}}},Gce=(e,t)=>{const n=qV(t);e.slots.default=()=>n},Kce=(e,t,n)=>{for(const r in t)(n||!KV(r))&&(e[r]=t[r])},p3e=(e,t,n)=>{const r=e.slots=Uce();if(e.vnode.shapeFlag&32){const o=t._;o?(Kce(r,t,n),n&&xV(r,"_",o,!0)):Wce(t,r)}else t&&Gce(e,t)},v3e=(e,t,n)=>{const{vnode:r,slots:o}=e;let a=!0,s=Si;if(r.shapeFlag&32){const l=t._;l?n&&l===1?a=!1:Kce(o,t,n):(a=!t.$stable,Wce(t,o)),s=t}else t&&(Gce(e,t),s={default:1});if(a)for(const l in o)!KV(l)&&s[l]==null&&delete o[l]},ia=sde;function qce(e){return Xce(e)}function Yce(e){return Xce(e,AIe)}function Xce(e,t){const n=xk();n.__VUE__=!0;const{insert:r,remove:o,patchProp:a,createElement:s,createText:l,createComment:c,setText:f,setElementText:h,parentNode:p,nextSibling:m,setScopeId:g=ga,insertStaticContent:b}=e,S=(ke,Se,Ne,qe=null,Je=null,ot=null,yt=void 0,at=null,ut=!!Se.dynamicChildren)=>{if(ke===Se)return;ke&&!pd(ke,Se)&&(qe=ve(ke),ee(ke,Je,ot,!0),ke=null),Se.patchFlag===-2&&(ut=!1,Se.dynamicChildren=null);const{type:vt,ref:Wt,shapeFlag:Ft}=Se;switch(vt){case nv:k(ke,Se,Ne,qe);break;case ps:C(ke,Se,Ne,qe);break;case eg:ke==null&&x(Se,Ne,qe,yt);break;case Ut:U(ke,Se,Ne,qe,Je,ot,yt,at,ut);break;default:Ft&1?A(ke,Se,Ne,qe,Je,ot,yt,at,ut):Ft&6?W(ke,Se,Ne,qe,Je,ot,yt,at,ut):(Ft&64||Ft&128)&&vt.process(ke,Se,Ne,qe,Je,ot,yt,at,ut,We)}Wt!=null&&Je?Fy(Wt,ke&&ke.ref,ot,Se||ke,!Se):Wt==null&&ke&&ke.ref!=null&&Fy(ke.ref,null,ot,ke,!0)},k=(ke,Se,Ne,qe)=>{if(ke==null)r(Se.el=l(Se.children),Ne,qe);else{const Je=Se.el=ke.el;Se.children!==ke.children&&f(Je,Se.children)}},C=(ke,Se,Ne,qe)=>{ke==null?r(Se.el=c(Se.children||""),Ne,qe):Se.el=ke.el},x=(ke,Se,Ne,qe)=>{[ke.el,ke.anchor]=b(ke.children,Se,Ne,qe,ke.el,ke.anchor)},E=({el:ke,anchor:Se},Ne,qe)=>{let Je;for(;ke&&ke!==Se;)Je=m(ke),r(ke,Ne,qe),ke=Je;r(Se,Ne,qe)},_=({el:ke,anchor:Se})=>{let Ne;for(;ke&&ke!==Se;)Ne=m(ke),o(ke),ke=Ne;o(Se)},A=(ke,Se,Ne,qe,Je,ot,yt,at,ut)=>{Se.type==="svg"?yt="svg":Se.type==="math"&&(yt="mathml"),ke==null?R(Se,Ne,qe,Je,ot,yt,at,ut):N(ke,Se,Je,ot,yt,at,ut)},R=(ke,Se,Ne,qe,Je,ot,yt,at)=>{let ut,vt;const{props:Wt,shapeFlag:Ft,transition:Jt,dirs:an}=ke;if(ut=ke.el=s(ke.type,ot,Wt&&Wt.is,Wt),Ft&8?h(ut,ke.children):Ft&16&&D(ke.children,ut,null,qe,Je,g8(ke,ot),yt,at),an&&Xd(ke,null,qe,"created"),M(ut,ke,ke.scopeId,yt,qe),Wt){for(const wt in Wt)wt!=="value"&&!_h(wt)&&a(ut,wt,null,Wt[wt],ot,qe);"value"in Wt&&a(ut,"value",null,Wt.value,ot),(vt=Wt.onVnodeBeforeMount)&&cu(vt,qe,ke)}an&&Xd(ke,null,qe,"beforeMount");const mt=Zce(Je,Jt);mt&&Jt.beforeEnter(ut),r(ut,Se,Ne),((vt=Wt&&Wt.onVnodeMounted)||mt||an)&&ia(()=>{vt&&cu(vt,qe,ke),mt&&Jt.enter(ut),an&&Xd(ke,null,qe,"mounted")},Je)},M=(ke,Se,Ne,qe,Je)=>{if(Ne&&g(ke,Ne),qe)for(let ot=0;ot{for(let vt=ut;vt{const at=Se.el=ke.el;let{patchFlag:ut,dynamicChildren:vt,dirs:Wt}=Se;ut|=ke.patchFlag&16;const Ft=ke.props||Si,Jt=Se.props||Si;let an;if(Ne&&nm(Ne,!1),(an=Jt.onVnodeBeforeUpdate)&&cu(an,Ne,Se,ke),Wt&&Xd(Se,ke,Ne,"beforeUpdate"),Ne&&nm(Ne,!0),(Ft.innerHTML&&Jt.innerHTML==null||Ft.textContent&&Jt.textContent==null)&&h(at,""),vt?L(ke.dynamicChildren,vt,at,Ne,qe,g8(Se,Je),ot):yt||ne(ke,Se,at,null,Ne,qe,g8(Se,Je),ot,!1),ut>0){if(ut&16)B(at,Ft,Jt,Ne,Je);else if(ut&2&&Ft.class!==Jt.class&&a(at,"class",null,Jt.class,Je),ut&4&&a(at,"style",Ft.style,Jt.style,Je),ut&8){const mt=Se.dynamicProps;for(let wt=0;wt{an&&cu(an,Ne,Se,ke),Wt&&Xd(Se,ke,Ne,"updated")},qe)},L=(ke,Se,Ne,qe,Je,ot,yt)=>{for(let at=0;at{if(Se!==Ne){if(Se!==Si)for(const ot in Se)!_h(ot)&&!(ot in Ne)&&a(ke,ot,Se[ot],null,Je,qe);for(const ot in Ne){if(_h(ot))continue;const yt=Ne[ot],at=Se[ot];yt!==at&&ot!=="value"&&a(ke,ot,at,yt,Je,qe)}"value"in Ne&&a(ke,"value",Se.value,Ne.value,Je)}},U=(ke,Se,Ne,qe,Je,ot,yt,at,ut)=>{const vt=Se.el=ke?ke.el:l(""),Wt=Se.anchor=ke?ke.anchor:l("");let{patchFlag:Ft,dynamicChildren:Jt,slotScopeIds:an}=Se;an&&(at=at?at.concat(an):an),ke==null?(r(vt,Ne,qe),r(Wt,Ne,qe),D(Se.children||[],Ne,Wt,Je,ot,yt,at,ut)):Ft>0&&Ft&64&&Jt&&ke.dynamicChildren?(L(ke.dynamicChildren,Jt,Ne,Je,ot,yt,at),(Se.key!=null||Je&&Se===Je.subTree)&&YV(ke,Se,!0)):ne(ke,Se,Ne,Wt,Je,ot,yt,at,ut)},W=(ke,Se,Ne,qe,Je,ot,yt,at,ut)=>{Se.slotScopeIds=at,ke==null?Se.shapeFlag&512?Je.ctx.activate(Se,Ne,qe,yt,ut):V(Se,Ne,qe,Je,ot,yt,ut):z(ke,Se,ut)},V=(ke,Se,Ne,qe,Je,ot,yt)=>{const at=ke.component=cde(ke,qe,Je);if(Tk(ke)&&(at.ctx.renderer=We),fde(at,!1,yt),at.asyncDep){if(Je&&Je.registerDep(at,Y,yt),!ke.el){const ut=at.subTree=O(ps);C(null,ut,Se,Ne),ke.placeholder=ut.el}}else Y(at,ke,Se,Ne,Je,ot,yt)},z=(ke,Se,Ne)=>{const qe=Se.component=ke.component;if(x3e(ke,Se,Ne))if(qe.asyncDep&&!qe.asyncResolved){oe(qe,Se,Ne);return}else qe.next=Se,qe.update();else Se.el=ke.el,qe.vnode=Se},Y=(ke,Se,Ne,qe,Je,ot,yt)=>{const at=()=>{if(ke.isMounted){let{next:Ft,bu:Jt,u:an,parent:mt,vnode:wt}=ke;{const zt=Qce(ke);if(zt){Ft&&(Ft.el=wt.el,oe(ke,Ft,yt)),zt.asyncDep.then(()=>{ke.isUnmounted||at()});return}}let Ge=Ft,Ue;nm(ke,!1),Ft?(Ft.el=wt.el,oe(ke,Ft,yt)):Ft=wt,Jt&&Xm(Jt),(Ue=Ft.props&&Ft.props.onVnodeBeforeUpdate)&&cu(Ue,mt,Ft,wt),nm(ke,!0);const st=LT(ke),kt=ke.subTree;ke.subTree=st,S(kt,st,p(kt.el),ve(kt),ke,Je,ot),Ft.el=st.el,Ge===null&&S3(ke,st.el),an&&ia(an,Je),(Ue=Ft.props&&Ft.props.onVnodeUpdated)&&ia(()=>cu(Ue,mt,Ft,wt),Je)}else{let Ft;const{el:Jt,props:an}=Se,{bm:mt,m:wt,parent:Ge,root:Ue,type:st}=ke,kt=tv(Se);if(nm(ke,!1),mt&&Xm(mt),!kt&&(Ft=an&&an.onVnodeBeforeMount)&&cu(Ft,Ge,Se),nm(ke,!0),Jt&&He){const zt=()=>{ke.subTree=LT(ke),He(Jt,ke.subTree,ke,Je,null)};kt&&st.__asyncHydrate?st.__asyncHydrate(Jt,ke,zt):zt()}else{Ue.ce&&Ue.ce._def.shadowRoot!==!1&&Ue.ce._injectChildStyle(st);const zt=ke.subTree=LT(ke);S(null,zt,Ne,qe,ke,Je,ot),Se.el=zt.el}if(wt&&ia(wt,Je),!kt&&(Ft=an&&an.onVnodeMounted)){const zt=Se;ia(()=>cu(Ft,Ge,zt),Je)}(Se.shapeFlag&256||Ge&&tv(Ge.vnode)&&Ge.vnode.shapeFlag&256)&&ke.a&&ia(ke.a,Je),ke.isMounted=!0,Se=Ne=qe=null}};ke.scope.on();const ut=ke.effect=new L2(at);ke.scope.off();const vt=ke.update=ut.run.bind(ut),Wt=ke.job=ut.runIfDirty.bind(ut);Wt.i=ke,Wt.id=ke.uid,ut.scheduler=()=>NV(Wt),nm(ke,!0),vt()},oe=(ke,Se,Ne)=>{Se.component=ke;const qe=ke.vnode.props;ke.vnode=Se,ke.next=null,d3e(ke,Se.props,qe,Ne),v3e(ke,Se.children,Ne),Ph(),Nee(ke),Rh()},ne=(ke,Se,Ne,qe,Je,ot,yt,at,ut=!1)=>{const vt=ke&&ke.children,Wt=ke?ke.shapeFlag:0,Ft=Se.children,{patchFlag:Jt,shapeFlag:an}=Se;if(Jt>0){if(Jt&128){K(vt,Ft,Ne,qe,Je,ot,yt,at,ut);return}else if(Jt&256){X(vt,Ft,Ne,qe,Je,ot,yt,at,ut);return}}an&8?(Wt&16&&be(vt,Je,ot),Ft!==vt&&h(Ne,Ft)):Wt&16?an&16?K(vt,Ft,Ne,qe,Je,ot,yt,at,ut):be(vt,Je,ot,!0):(Wt&8&&h(Ne,""),an&16&&D(Ft,Ne,qe,Je,ot,yt,at,ut))},X=(ke,Se,Ne,qe,Je,ot,yt,at,ut)=>{ke=ke||Km,Se=Se||Km;const vt=ke.length,Wt=Se.length,Ft=Math.min(vt,Wt);let Jt;for(Jt=0;JtWt?be(ke,Je,ot,!0,!1,Ft):D(Se,Ne,qe,Je,ot,yt,at,ut,Ft)},K=(ke,Se,Ne,qe,Je,ot,yt,at,ut)=>{let vt=0;const Wt=Se.length;let Ft=ke.length-1,Jt=Wt-1;for(;vt<=Ft&&vt<=Jt;){const an=ke[vt],mt=Se[vt]=ut?Fp(Se[vt]):du(Se[vt]);if(pd(an,mt))S(an,mt,Ne,null,Je,ot,yt,at,ut);else break;vt++}for(;vt<=Ft&&vt<=Jt;){const an=ke[Ft],mt=Se[Jt]=ut?Fp(Se[Jt]):du(Se[Jt]);if(pd(an,mt))S(an,mt,Ne,null,Je,ot,yt,at,ut);else break;Ft--,Jt--}if(vt>Ft){if(vt<=Jt){const an=Jt+1,mt=anJt)for(;vt<=Ft;)ee(ke[vt],Je,ot,!0),vt++;else{const an=vt,mt=vt,wt=new Map;for(vt=mt;vt<=Jt;vt++){const Lt=Se[vt]=ut?Fp(Se[vt]):du(Se[vt]);Lt.key!=null&&wt.set(Lt.key,vt)}let Ge,Ue=0;const st=Jt-mt+1;let kt=!1,zt=0;const _t=new Array(st);for(vt=0;vt=st){ee(Lt,Je,ot,!0);continue}let dt;if(Lt.key!=null)dt=wt.get(Lt.key);else for(Ge=mt;Ge<=Jt;Ge++)if(_t[Ge-mt]===0&&pd(Lt,Se[Ge])){dt=Ge;break}dt===void 0?ee(Lt,Je,ot,!0):(_t[dt-mt]=vt+1,dt>=zt?zt=dt:kt=!0,S(Lt,Se[dt],Ne,null,Je,ot,yt,at,ut),Ue++)}const $e=kt?m3e(_t):Km;for(Ge=$e.length-1,vt=st-1;vt>=0;vt--){const Lt=mt+vt,dt=Se[Lt],It=Se[Lt+1],At=Lt+1{const{el:ot,type:yt,transition:at,children:ut,shapeFlag:vt}=ke;if(vt&6){re(ke.component.subTree,Se,Ne,qe);return}if(vt&128){ke.suspense.move(Se,Ne,qe);return}if(vt&64){yt.move(ke,Se,Ne,We);return}if(yt===Ut){r(ot,Se,Ne);for(let Ft=0;Ftat.enter(ot),Je);else{const{leave:Ft,delayLeave:Jt,afterLeave:an}=at,mt=()=>{ke.ctx.isUnmounted?o(ot):r(ot,Se,Ne)},wt=()=>{ot._isLeaving&&ot[ch](!0),Ft(ot,()=>{mt(),an&&an()})};Jt?Jt(ot,mt,wt):wt()}else r(ot,Se,Ne)},ee=(ke,Se,Ne,qe=!1,Je=!1)=>{const{type:ot,props:yt,ref:at,children:ut,dynamicChildren:vt,shapeFlag:Wt,patchFlag:Ft,dirs:Jt,cacheIndex:an}=ke;if(Ft===-2&&(Je=!1),at!=null&&(Ph(),Fy(at,null,Ne,ke,!0),Rh()),an!=null&&(Se.renderCache[an]=void 0),Wt&256){Se.ctx.deactivate(ke);return}const mt=Wt&1&&Jt,wt=!tv(ke);let Ge;if(wt&&(Ge=yt&&yt.onVnodeBeforeUnmount)&&cu(Ge,Se,ke),Wt&6)ye(ke.component,Ne,qe);else{if(Wt&128){ke.suspense.unmount(Ne,qe);return}mt&&Xd(ke,null,Se,"beforeUnmount"),Wt&64?ke.type.remove(ke,Se,Ne,We,qe):vt&&!vt.hasOnce&&(ot!==Ut||Ft>0&&Ft&64)?be(vt,Se,Ne,!1,!0):(ot===Ut&&Ft&384||!Je&&Wt&16)&&be(ut,Se,Ne),qe&&le(ke)}(wt&&(Ge=yt&&yt.onVnodeUnmounted)||mt)&&ia(()=>{Ge&&cu(Ge,Se,ke),mt&&Xd(ke,null,Se,"unmounted")},Ne)},le=ke=>{const{type:Se,el:Ne,anchor:qe,transition:Je}=ke;if(Se===Ut){Q(Ne,qe);return}if(Se===eg){_(ke);return}const ot=()=>{o(Ne),Je&&!Je.persisted&&Je.afterLeave&&Je.afterLeave()};if(ke.shapeFlag&1&&Je&&!Je.persisted){const{leave:yt,delayLeave:at}=Je,ut=()=>yt(Ne,ot);at?at(ke.el,ot,ut):ut()}else ot()},Q=(ke,Se)=>{let Ne;for(;ke!==Se;)Ne=m(ke),o(ke),ke=Ne;o(Se)},ye=(ke,Se,Ne)=>{const{bum:qe,scope:Je,job:ot,subTree:yt,um:at,m:ut,a:vt}=ke;PA(ut),PA(vt),qe&&Xm(qe),Je.stop(),ot&&(ot.flags|=8,ee(yt,ke,Se,Ne)),at&&ia(at,Se),ia(()=>{ke.isUnmounted=!0},Se)},be=(ke,Se,Ne,qe=!1,Je=!1,ot=0)=>{for(let yt=ot;yt{if(ke.shapeFlag&6)return ve(ke.component.subTree);if(ke.shapeFlag&128)return ke.suspense.next();const Se=m(ke.anchor||ke.el),Ne=Se&&Se[_ce];return Ne?m(Ne):Se};let Ce=!1;const De=(ke,Se,Ne)=>{ke==null?Se._vnode&&ee(Se._vnode,null,null,!0):S(Se._vnode||null,ke,Se,null,null,null,Ne),Se._vnode=ke,Ce||(Ce=!0,Nee(),AA(),Ce=!1)},We={p:S,um:ee,m:re,r:le,mt:V,mc:D,pc:ne,pbc:L,n:ve,o:e};let Xe,He;return t&&([Xe,He]=t(We)),{render:De,hydrate:Xe,createApp:u3e(De,Xe)}}function g8({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 nm({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Zce(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function YV(e,t,n=!1){const r=e.children,o=t.children;if(zn(r)&&zn(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 Qce(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Qce(t)}function PA(e){if(e)for(let t=0;tIn(Jce);function As(e,t){return Ak(e,null,t)}function g3e(e,t){return Ak(e,null,{flush:"post"})}function tde(e,t){return Ak(e,null,{flush:"sync"})}function Dt(e,t,n){return Ak(e,t,n)}function Ak(e,t,n=Si){const{immediate:r,deep:o,flush:a,once:s}=n,l=gi({},n),c=t&&r||!t&&a!=="post";let f;if(f1){if(a==="sync"){const g=ede();f=g.__watcherHandles||(g.__watcherHandles=[])}else if(!c){const g=()=>{};return g.stop=ga,g.resume=ga,g.pause=ga,g}}const h=Na;l.call=(g,b,S)=>Fc(g,h,b,S);let p=!1;a==="post"?l.scheduler=g=>{ia(g,h&&h.suspense)}:a!=="sync"&&(p=!0,l.scheduler=(g,b)=>{b?g():NV(g)}),l.augmentJob=g=>{t&&(g.flags|=4),p&&(g.flags|=2,h&&(g.id=h.uid,g.i=h))};const m=dIe(e,t,l);return f1&&(f?f.push(m):c&&m()),m}function y3e(e,t,n){const r=this.proxy,o=Ir(e)?e.includes(".")?nde(r,e):()=>r[e]:e.bind(r,r);let a;wr(t)?a=t:(a=t.handler,n=t);const s=mg(this),l=Ak(o,a.bind(r),n);return s(),l}function nde(e,t){const n=t.split(".");return()=>{let r=e;for(let o=0;o{let h,p=Si,m;return tde(()=>{const g=e[o];cl(h,g)&&(h=g,f())}),{get(){return c(),n.get?n.get(h):h},set(g){const b=n.set?n.set(g):g;if(!cl(b,h)&&!(p!==Si&&cl(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,f()),r.emit(`update:${t}`,b),cl(g,b)&&cl(g,p)&&!cl(b,m)&&f(),p=g,m=b}}});return l[Symbol.iterator]=()=>{let c=0;return{next(){return c<2?{value:c++?s||Si:l,done:!1}:{done:!0}}}},l}const rde=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Ao(t)}Modifiers`]||e[`${fl(t)}Modifiers`];function _3e(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||Si;let o=n;const a=t.startsWith("update:"),s=a&&rde(r,t.slice(7));s&&(s.trim&&(o=n.map(h=>Ir(h)?h.trim():h)),s.number&&(o=n.map(A2)));let l,c=r[l=Ym(t)]||r[l=Ym(Ao(t))];!c&&a&&(c=r[l=Ym(fl(t))]),c&&Fc(c,e,6,o);const f=r[l+"Once"];if(f){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Fc(f,e,6,o)}}const S3e=new WeakMap;function ide(e,t,n=!1){const r=n?S3e:t.emitsCache,o=r.get(e);if(o!==void 0)return o;const a=e.emits;let s={},l=!1;if(!wr(e)){const c=f=>{const h=ide(f,t,!0);h&&(l=!0,gi(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):(zn(a)?a.forEach(c=>s[c]=null):gi(s,a),zi(e)&&r.set(e,s),s)}function _3(e,t){return!e||!wv(t)?!1:(t=t.slice(2).replace(/Once$/,""),ji(e,t[0].toLowerCase()+t.slice(1))||ji(e,fl(t))||ji(e,t))}function LT(e){const{type:t,vnode:n,proxy:r,withProxy:o,propsOptions:[a],slots:s,attrs:l,emit:c,render:f,renderCache:h,props:p,data:m,setupState:g,ctx:b,inheritAttrs:S}=e,k=$2(e);let C,x;try{if(n.shapeFlag&4){const _=o||r,A=_;C=du(f.call(A,_,h,p,g,m,b)),x=l}else{const _=t;C=du(_.length>1?_(p,{attrs:l,slots:s,emit:c}):_(p,null)),x=t.props?l:w3e(l)}}catch(_){MS.length=0,Og(_,e,1),C=O(ps)}let E=C;if(x&&S!==!1){const _=Object.keys(x),{shapeFlag:A}=E;_.length&&A&7&&(a&&_.some(o3)&&(x=C3e(x,a)),E=yl(E,x,!1,!0))}return n.dirs&&(E=yl(E,null,!1,!0),E.dirs=E.dirs?E.dirs.concat(n.dirs):n.dirs),n.transition&&Dh(E,n.transition),C=E,$2(k),C}function k3e(e,t=!0){let n;for(let r=0;r{let t;for(const n in e)(n==="class"||n==="style"||wv(n))&&((t||(t={}))[n]=e[n]);return t},C3e=(e,t)=>{const n={};for(const r in e)(!o3(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function x3e(e,t,n){const{props:r,children:o,component:a}=e,{props:s,children:l,patchFlag:c}=t,f=a.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?Xee(r,s,f):!!s;if(c&8){const h=t.dynamicProps;for(let p=0;pe.__isSuspense;let BF=0;const E3e={name:"Suspense",__isSuspense:!0,process(e,t,n,r,o,a,s,l,c,f){if(e==null)A3e(t,n,r,o,a,s,l,c,f);else{if(a&&a.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}I3e(e,t,n,r,o,s,l,c,f)}},hydrate:L3e,normalize:P3e},T3e=E3e;function B2(e,t){const n=e.props&&e.props[t];wr(n)&&n()}function A3e(e,t,n,r,o,a,s,l,c){const{p:f,o:{createElement:h}}=c,p=h("div"),m=e.suspense=ode(e,o,r,t,p,n,a,s,l,c);f(null,m.pendingBranch=e.ssContent,p,null,r,m,a,s),m.deps>0?(B2(e,"onPending"),B2(e,"onFallback"),f(null,e.ssFallback,t,n,r,null,a,s),jy(m,e.ssFallback)):m.resolve(!1,!0)}function I3e(e,t,n,r,o,a,s,l,{p:c,um:f,o:{createElement:h}}){const p=t.suspense=e.suspense;p.vnode=t,t.el=e.el;const m=t.ssContent,g=t.ssFallback,{activeBranch:b,pendingBranch:S,isInFallback:k,isHydrating:C}=p;if(S)p.pendingBranch=m,pd(S,m)?(c(S,m,p.hiddenContainer,null,o,p,a,s,l),p.deps<=0?p.resolve():k&&(C||(c(b,g,n,r,o,null,a,s,l),jy(p,g)))):(p.pendingId=BF++,C?(p.isHydrating=!1,p.activeBranch=S):f(S,o,p),p.deps=0,p.effects.length=0,p.hiddenContainer=h("div"),k?(c(null,m,p.hiddenContainer,null,o,p,a,s,l),p.deps<=0?p.resolve():(c(b,g,n,r,o,null,a,s,l),jy(p,g))):b&&pd(b,m)?(c(b,m,n,r,o,p,a,s,l),p.resolve(!0)):(c(null,m,p.hiddenContainer,null,o,p,a,s,l),p.deps<=0&&p.resolve()));else if(b&&pd(b,m))c(b,m,n,r,o,p,a,s,l),jy(p,m);else if(B2(t,"onPending"),p.pendingBranch=m,m.shapeFlag&512?p.pendingId=m.component.suspenseId:p.pendingId=BF++,c(null,m,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 ode(e,t,n,r,o,a,s,l,c,f,h=!1){const{p,m,um:g,n:b,o:{parentNode:S,remove:k}}=f;let C;const x=R3e(e);x&&t&&t.pendingBranch&&(C=t.pendingId,t.deps++);const E=e.props?I2(e.props.timeout):void 0,_=a,A={vnode:e,parent:t,parentComponent:n,namespace:s,container:r,hiddenContainer:o,deps:0,pendingId:BF++,timeout:typeof E=="number"?E:-1,activeBranch:null,pendingBranch:null,isInFallback:!h,isHydrating:h,isUnmounted:!1,effects:[],resolve(R=!1,M=!1){const{vnode:D,activeBranch:N,pendingBranch:L,pendingId:B,effects:U,parentComponent:W,container:V}=A;let z=!1;A.isHydrating?A.isHydrating=!1:R||(z=N&&L.transition&&L.transition.mode==="out-in",z&&(N.transition.afterLeave=()=>{B===A.pendingId&&(m(L,V,a===_?b(N):a,0),D2(U))}),N&&(S(N.el)===V&&(a=b(N)),g(N,W,A,!0)),z||m(L,V,a,0)),jy(A,L),A.pendingBranch=null,A.isInFallback=!1;let Y=A.parent,oe=!1;for(;Y;){if(Y.pendingBranch){Y.effects.push(...U),oe=!0;break}Y=Y.parent}!oe&&!z&&D2(U),A.effects=[],x&&t&&t.pendingBranch&&C===t.pendingId&&(t.deps--,t.deps===0&&!M&&t.resolve()),B2(D,"onResolve")},fallback(R){if(!A.pendingBranch)return;const{vnode:M,activeBranch:D,parentComponent:N,container:L,namespace:B}=A;B2(M,"onFallback");const U=b(D),W=()=>{A.isInFallback&&(p(null,R,L,U,N,null,B,l,c),jy(A,R))},V=R.transition&&R.transition.mode==="out-in";V&&(D.transition.afterLeave=W),A.isInFallback=!0,g(D,N,null,!0),V||W()},move(R,M,D){A.activeBranch&&m(A.activeBranch,R,M,D),A.container=R},next(){return A.activeBranch&&b(A.activeBranch)},registerDep(R,M,D){const N=!!A.pendingBranch;N&&A.deps++;const L=R.vnode.el;R.asyncDep.catch(B=>{Og(B,R,0)}).then(B=>{if(R.isUnmounted||A.isUnmounted||A.pendingId!==R.suspenseId)return;R.asyncResolved=!0;const{vnode:U}=R;UF(R,B,!1),L&&(U.el=L);const W=!L&&R.subTree.el;M(R,U,S(L||R.subTree.el),L?null:b(R.subTree),A,s,D),W&&k(W),S3(R,U.el),N&&--A.deps===0&&A.resolve()})},unmount(R,M){A.isUnmounted=!0,A.activeBranch&&g(A.activeBranch,n,R,M),A.pendingBranch&&g(A.pendingBranch,n,R,M)}};return A}function L3e(e,t,n,r,o,a,s,l,c){const f=t.suspense=ode(t,r,n,e.parentNode,document.createElement("div"),null,o,a,s,l,!0),h=c(e,f.pendingBranch=t.ssContent,n,f,a,s);return f.deps===0&&f.resolve(!1,!0),h}function P3e(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=Zee(r?n.default:n),e.ssFallback=r?Zee(n.fallback):O(ps)}function Zee(e){let t;if(wr(e)){const n=vg&&e._c;n&&(e._d=!1,H()),e=e(),n&&(e._d=!0,t=vl,ade())}return zn(e)&&(e=k3e(e)),e=du(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function sde(e,t){t&&t.pendingBranch?zn(e)?t.effects.push(...e):t.effects.push(e):D2(e)}function jy(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,S3(r,o))}function R3e(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const Ut=Symbol.for("v-fgt"),nv=Symbol.for("v-txt"),ps=Symbol.for("v-cmt"),eg=Symbol.for("v-stc"),MS=[];let vl=null;function H(e=!1){MS.push(vl=e?null:[])}function ade(){MS.pop(),vl=MS[MS.length-1]||null}let vg=1;function F2(e,t=!1){vg+=e,e<0&&vl&&t&&(vl.hasOnce=!0)}function lde(e){return e.dynamicChildren=vg>0?vl||Km:null,ade(),vg>0&&vl&&vl.push(e),e}function J(e,t,n,r,o,a){return lde(I(e,t,n,r,o,a,!0))}function Ye(e,t,n,r,o){return lde(O(e,t,n,r,o,!0))}function Bi(e){return e?e.__v_isVNode===!0:!1}function pd(e,t){return e.type===t.type&&e.key===t.key}function M3e(e){}const ude=({key:e})=>e??null,PT=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Ir(e)||Io(e)||wr(e)?{i:Ba,r:e,k:t,f:!!n}:e:null);function I(e,t=null,n=null,r=0,o=null,a=e===Ut?0:1,s=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ude(t),ref:t&&PT(t),scopeId:g3,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:Ba};return l?(XV(c,n),a&128&&e.normalize(c)):n&&(c.shapeFlag|=Ir(n)?8:16),vg>0&&!s&&vl&&(c.patchFlag>0||a&6)&&c.patchFlag!==32&&vl.push(c),c}const O=D3e;function D3e(e,t=null,n=null,r=0,o=null,a=!1){if((!e||e===Oce)&&(e=ps),Bi(e)){const l=yl(e,t,!0);return n&&XV(l,n),vg>0&&!a&&vl&&(l.shapeFlag&6?vl[vl.indexOf(e)]=l:vl.push(l)),l.patchFlag=-2,l}if(U3e(e)&&(e=e.__vccOpts),t){t=ma(t);let{class:l,style:c}=t;l&&!Ir(l)&&(t.class=ae(l)),zi(c)&&(v3(c)&&!zn(c)&&(c=gi({},c)),t.style=je(c))}const s=Ir(e)?1:RA(e)?128:Sce(e)?64:zi(e)?4:wr(e)?2:0;return I(e,t,n,r,o,s,a,!0)}function ma(e){return e?v3(e)||Vce(e)?gi({},e):e:null}function yl(e,t,n=!1,r=!1){const{props:o,ref:a,patchFlag:s,children:l,transition:c}=e,f=t?Bt(o||{},t):o,h={__v_isVNode:!0,__v_skip:!0,type:e.type,props:f,key:f&&ude(f),ref:t&&t.ref?n&&a?zn(a)?a.concat(PT(t)):[a,PT(t)]:PT(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!==Ut?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&&yl(e.ssContent),ssFallback:e.ssFallback&&yl(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&r&&Dh(h,c.clone(h)),h}function ze(e=" ",t=0){return O(nv,null,e,t)}function rv(e,t){const n=O(eg,null,e);return n.staticCount=t,n}function Re(e="",t=!1){return t?(H(),Ye(ps,null,e)):O(ps,null,e)}function du(e){return e==null||typeof e=="boolean"?O(ps):zn(e)?O(Ut,null,e.slice()):Bi(e)?Fp(e):O(nv,null,String(e))}function Fp(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:yl(e)}function XV(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(zn(t))n=16;else if(typeof t=="object")if(r&65){const o=t.default;o&&(o._c&&(o._d=!1),XV(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!Vce(t)?t._ctx=Ba:o===3&&Ba&&(Ba.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else wr(t)?(t={default:t,_ctx:Ba},n=32):(t=String(t),r&64?(n=16,t=[ze(t)]):n=8);e.children=t,e.shapeFlag|=n}function Bt(...e){const t={};for(let n=0;nNa||Ba;let MA,FF;{const e=xk(),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)}};MA=t("__VUE_INSTANCE_SETTERS__",n=>Na=n),FF=t("__VUE_SSR_SETTERS__",n=>f1=n)}const mg=e=>{const t=Na;return MA(e),e.scope.on(),()=>{e.scope.off(),MA(t)}},jF=()=>{Na&&Na.scope.off(),MA(null)};function dde(e){return e.vnode.shapeFlag&4}let f1=!1;function fde(e,t=!1,n=!1){t&&FF(t);const{props:r,children:o}=e.vnode,a=dde(e);c3e(e,r,a,t),p3e(e,o,n||t);const s=a?N3e(e,t):void 0;return t&&FF(!1),s}function N3e(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,DF);const{setup:r}=n;if(r){Ph();const o=e.setupContext=r.length>1?pde(e):null,a=mg(e),s=j1(r,e,0,[e.props,o]),l=a3(s);if(Rh(),a(),(l||e.sp)&&!tv(e)&&jV(e),l){if(s.then(jF,jF),t)return s.then(c=>{UF(e,c,t)}).catch(c=>{Og(c,e,0)});e.asyncDep=s}else UF(e,s,t)}else hde(e,t)}function UF(e,t,n){wr(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:zi(t)&&(e.setupState=$V(t)),hde(e,n)}let DA,VF;function B3e(e){DA=e,VF=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,zIe))}}const F3e=()=>!DA;function hde(e,t,n){const r=e.type;if(!e.render){if(!t&&DA&&!r.render){const o=r.template||GV(e).template;if(o){const{isCustomElement:a,compilerOptions:s}=e.appContext.config,{delimiters:l,compilerOptions:c}=r,f=gi(gi({isCustomElement:a,delimiters:l},s),c);r.render=DA(o,f)}}e.render=r.render||ga,VF&&VF(e)}{const o=mg(e);Ph();try{r3e(e)}finally{Rh(),o()}}}const j3e={get(e,t){return dl(e,"get",""),e[t]}};function pde(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,j3e),slots:e.slots,emit:e.emit,expose:t}}function Ik(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy($V(m3(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in RS)return RS[n](e)},has(t,n){return n in t||n in RS}})):e.proxy}function zF(e,t=!0){return wr(e)?e.displayName||e.name:e.name||t&&e.__name}function U3e(e){return wr(e)&&"__vccOpts"in e}const F=(e,t)=>aIe(e,t,f1);function sa(e,t,n){try{F2(-1);const r=arguments.length;return r===2?zi(t)&&!zn(t)?Bi(t)?O(e,null,[t]):O(e,t):O(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Bi(n)&&(n=[n]),O(e,t,n))}finally{F2(1)}}function V3e(){}function z3e(e,t,n,r){const o=n[r];if(o&&vde(o,e))return o;const a=t();return a.memo=e.slice(),a.cacheIndex=r,n[r]=a}function vde(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let r=0;r0&&vl&&vl.push(e),!0}const mde="3.5.22",H3e=ga,W3e=mIe,G3e=_y,K3e=bce,q3e={createComponentInstance:cde,setupComponent:fde,renderComponentRoot:LT,setCurrentRenderingInstance:$2,isVNode:Bi,normalizeVNode:du,getComponentPublicInstance:Ik,ensureValidVNode:WV,pushWarningContext:fIe,popWarningContext:hIe},Y3e=q3e,X3e=null,Z3e=null,Q3e=null;/** * @vue/runtime-dom v3.5.22 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let HF;const Qee=typeof window<"u"&&window.trustedTypes;if(Qee)try{HF=Qee.createPolicy("vue",{createHTML:e=>e})}catch{}const gde=HF?e=>HF.createHTML(e):e=>e,J3e="http://www.w3.org/2000/svg",eLe="http://www.w3.org/1998/Math/MathML",oh=typeof document<"u"?document:null,Jee=oh&&oh.createElement("template"),tLe={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"?oh.createElementNS(J3e,e):t==="mathml"?oh.createElementNS(eLe,e):n?oh.createElement(e,{is:n}):oh.createElement(e);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>oh.createTextNode(e),createComment:e=>oh.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>oh.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{Jee.innerHTML=gde(r==="svg"?`${e}`:r==="mathml"?`${e}`:e);const l=Jee.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]}},mp="transition",I_="animation",h1=Symbol("_vtc"),yde={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},bde=gi({},FV,yde),nLe=e=>(e.displayName="Transition",e.props=bde,e),Is=nLe((e,{slots:t})=>sa(Ece,_de(e),t)),rm=(e,t=[])=>{zn(e)?e.forEach(n=>n(...t)):e&&e(...t)},ete=e=>e?zn(e)?e.some(t=>t.length>1):e.length>1:!1;function _de(e){const t={};for(const U in e)U in yde||(t[U]=e[U]);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:f=s,appearToClass:h=l,leaveFromClass:p=`${n}-leave-from`,leaveActiveClass:m=`${n}-leave-active`,leaveToClass:g=`${n}-leave-to`}=e,b=rLe(o),S=b&&b[0],k=b&&b[1],{onBeforeEnter:C,onEnter:x,onEnterCancelled:E,onLeave:_,onLeaveCancelled:A,onBeforeAppear:R=C,onAppear:M=x,onAppearCancelled:D=E}=t,N=(U,W,V,z)=>{U._enterCancelled=z,Rp(U,W?h:l),Rp(U,W?f:s),V&&V()},L=(U,W)=>{U._isLeaving=!1,Rp(U,p),Rp(U,g),Rp(U,m),W&&W()},B=U=>(W,V)=>{const z=U?M:x,Y=()=>N(W,U,V);rm(z,[W,Y]),tte(()=>{Rp(W,U?c:a),Kd(W,U?h:l),ete(z)||nte(W,r,S,Y)})};return gi(t,{onBeforeEnter(U){rm(C,[U]),Kd(U,a),Kd(U,s)},onBeforeAppear(U){rm(R,[U]),Kd(U,c),Kd(U,f)},onEnter:B(!1),onAppear:B(!0),onLeave(U,W){U._isLeaving=!0;const V=()=>L(U,W);Kd(U,p),U._enterCancelled?(Kd(U,m),WF(U)):(WF(U),Kd(U,m)),tte(()=>{U._isLeaving&&(Rp(U,p),Kd(U,g),ete(_)||nte(U,r,k,V))}),rm(_,[U,V])},onEnterCancelled(U){N(U,!1,void 0,!0),rm(E,[U])},onAppearCancelled(U){N(U,!0,void 0,!0),rm(D,[U])},onLeaveCancelled(U){L(U),rm(A,[U])}})}function rLe(e){if(e==null)return null;if(zi(e))return[y8(e.enter),y8(e.leave)];{const t=y8(e);return[t,t]}}function y8(e){return I2(e)}function Kd(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[h1]||(e[h1]=new Set)).add(t)}function Rp(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[h1];n&&(n.delete(t),n.size||(e[h1]=void 0))}function tte(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let iLe=0;function nte(e,t,n,r){const o=e._endId=++iLe,a=()=>{o===e._endId&&r()};if(n!=null)return setTimeout(a,n);const{type:s,timeout:l,propCount:c}=Sde(e,t);if(!s)return r();const f=s+"end";let h=0;const p=()=>{e.removeEventListener(f,m),a()},m=g=>{g.target===e&&++h>=c&&p()};setTimeout(()=>{h(n[b]||"").split(", "),o=r(`${mp}Delay`),a=r(`${mp}Duration`),s=rte(o,a),l=r(`${I_}Delay`),c=r(`${I_}Duration`),f=rte(l,c);let h=null,p=0,m=0;t===mp?s>0&&(h=mp,p=s,m=a.length):t===I_?f>0&&(h=I_,p=f,m=c.length):(p=Math.max(s,f),h=p>0?s>f?mp:I_:null,m=h?h===mp?a.length:c.length:0);const g=h===mp&&/\b(?:transform|all)(?:,|$)/.test(r(`${mp}Property`).toString());return{type:h,timeout:p,propCount:m,hasTransform:g}}function rte(e,t){for(;e.lengthite(n)+ite(e[r])))}function ite(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function WF(e){return(e?e.ownerDocument:document).body.offsetHeight}function oLe(e,t,n){const r=e[h1];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const OA=Symbol("_vod"),kde=Symbol("_vsh"),ns={name:"show",beforeMount(e,{value:t},{transition:n}){e[OA]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):L_(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),L_(e,!0),r.enter(e)):r.leave(e,()=>{L_(e,!1)}):L_(e,t))},beforeUnmount(e,{value:t}){L_(e,t)}};function L_(e,t){e.style.display=t?e[OA]:"none",e[kde]=!t}function sLe(){ns.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const wde=Symbol("");function aLe(e){const t=fo();if(!t)return;const n=t.ut=(o=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(a=>$A(a,o))},r=()=>{const o=e(t.proxy);t.ce?$A(t.ce,o):GF(t.subTree,o),n(o)};VV(()=>{D2(r)}),gn(()=>{Dt(r,ga,{flush:"post"});const o=new MutationObserver(r);o.observe(t.subTree.el.parentNode,{childList:!0}),yi(()=>o.disconnect())})}function GF(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{GF(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)$A(e.el,t);else if(e.type===Ut)e.children.forEach(n=>GF(n,t));else if(e.type===eg){let{el:n,anchor:r}=e;for(;n&&($A(n,t),n!==r);)n=n.nextSibling}}function $A(e,t){if(e.nodeType===1){const n=e.style;let r="";for(const o in t){const a=Yue(t[o]);n.setProperty(`--${o}`,a),r+=`--${o}: ${a};`}n[wde]=r}}const lLe=/(?:^|;)\s*display\s*:/;function uLe(e,t,n){const r=e.style,o=Ir(n);let a=!1;if(n&&!o){if(t)if(Ir(t))for(const s of t.split(";")){const l=s.slice(0,s.indexOf(":")).trim();n[l]==null&&RT(r,l,"")}else for(const s in t)n[s]==null&&RT(r,s,"");for(const s in n)s==="display"&&(a=!0),RT(r,s,n[s])}else if(o){if(t!==n){const s=r[wde];s&&(n+=";"+s),r.cssText=n,a=lLe.test(n)}}else t&&e.removeAttribute("style");OA in e&&(e[OA]=a?r.display:"",e[kde]&&(r.display="none"))}const ote=/\s*!important$/;function RT(e,t,n){if(zn(n))n.forEach(r=>RT(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=cLe(e,t);ote.test(n)?e.setProperty(fl(r),n.replace(ote,""),"important"):e[r]=n}}const ste=["Webkit","Moz","ms"],b8={};function cLe(e,t){const n=b8[t];if(n)return n;let r=Ao(t);if(r!=="filter"&&r in e)return b8[t]=r;r=xv(r);for(let o=0;o_8||(pLe.then(()=>_8=0),_8=Date.now());function mLe(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Fc(gLe(r,n.value),t,5,[r])};return n.value=e,n.attached=vLe(),n}function gLe(e,t){if(zn(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 fte=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,yLe=(e,t,n,r,o,a)=>{const s=o==="svg";t==="class"?oLe(e,r,s):t==="style"?uLe(e,n,r):wv(t)?o3(t)||fLe(e,t,n,r,a):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):bLe(e,t,r,s))?(ute(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&<e(e,t,r,s,a,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Ir(r))?ute(e,Ao(t),r,a,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),lte(e,t,r,s))};function bLe(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&fte(t)&&wr(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 fte(t)&&Ir(n)?!1:t in e}const hte={};function Cde(e,t,n){let r=_e(e,t);Ck(r)&&(r=gi({},r,t));class o extends k3{constructor(s){super(r,s,n)}}return o.def=r,o}const _Le=((e,t)=>Cde(e,t,Mde)),SLe=typeof HTMLElement<"u"?HTMLElement:class{};class k3 extends SLe{constructor(t,n={},r=v1){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!==v1?this._root=this.shadowRoot:t.shadowRoot!==!1?(this.attachShadow(gi({},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 k3){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,yn(()=>{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&&!zn(a))for(const c in a){const f=a[c];(f===Number||f&&f.type===Number)&&(c in this._props&&(this._props[c]=I2(this._props[c])),(l||(l=Object.create(null)))[Ao(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)ji(this,r)||Object.defineProperty(this,r,{get:()=>nt(n[r])})}_resolveProps(t){const{props:n}=t,r=zn(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(Ao))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):hte;const o=Ao(t);n&&this._numberProps&&this._numberProps[o]&&(r=I2(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===hte?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(fl(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(fl(t),n+""):n||this.removeAttribute(fl(t)),a&&a.observe(this,{attributes:!0})}}_update(){const t=this._createVNode();this._app&&(t.appContext=this._app._context),jc(t,this._root)}_createVNode(){const t={};this.shadowRoot||(t.onVnodeMounted=t.onVnodeUpdated=this._renderSlots.bind(this));const n=O(this._def,gi(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,Ck(s[0])?gi({detail:s},s[0]):{detail:s}))};r.emit=(a,...s)=>{o(a,s),fl(a)!==a&&o(fl(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 xde(e){const t=fo(),n=t&&t.ce;return n||null}function kLe(){const e=xde();return e&&e.shadowRoot}function wLe(e="$style"){{const t=fo();if(!t)return Si;const n=t.type.__cssModules;if(!n)return Si;const r=n[e];return r||Si}}const Ede=new WeakMap,Tde=new WeakMap,NA=Symbol("_moveCb"),pte=Symbol("_enterCb"),CLe=e=>(delete e.props.mode,e),xLe=CLe({name:"TransitionGroup",props:gi({},bde,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=fo(),r=BV();let o,a;return Ga(()=>{if(!o.length)return;const s=e.moveClass||`${e.name||"v"}-move`;if(!ILe(o[0].el,n.vnode.el,s)){o=[];return}o.forEach(ELe),o.forEach(TLe);const l=o.filter(ALe);WF(n.vnode.el),l.forEach(c=>{const f=c.el,h=f.style;Kd(f,s),h.transform=h.webkitTransform=h.transitionDuration="";const p=f[NA]=m=>{m&&m.target!==f||(!m||m.propertyName.endsWith("transform"))&&(f.removeEventListener("transitionend",p),f[NA]=null,Rp(f,s))};f.addEventListener("transitionend",p)}),o=[]}),()=>{const s=Pi(e),l=_de(s);let c=s.tag||Ut;if(o=[],a)for(let f=0;f{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}=Sde(r);return a.removeChild(r),s}const uv=e=>{const t=e.props["onUpdate:modelValue"]||!1;return zn(t)?n=>Xm(t,n):t};function LLe(e){e.target.composing=!0}function vte(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Rc=Symbol("_assign"),Gl={created(e,{modifiers:{lazy:t,trim:n,number:r}},o){e[Rc]=uv(o);const a=r||o.props&&o.props.type==="number";ph(e,t?"change":"input",s=>{if(s.target.composing)return;let l=e.value;n&&(l=l.trim()),a&&(l=A2(l)),e[Rc](l)}),n&&ph(e,"change",()=>{e.value=e.value.trim()}),t||(ph(e,"compositionstart",LLe),ph(e,"compositionend",vte),ph(e,"change",vte))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:o,number:a}},s){if(e[Rc]=uv(s),e.composing)return;const l=(a||e.type==="number")&&!/^0\d/.test(e.value)?A2(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))}},ZV={deep:!0,created(e,t,n){e[Rc]=uv(n),ph(e,"change",()=>{const r=e._modelValue,o=p1(e),a=e.checked,s=e[Rc];if(zn(r)){const l=Ek(r,o),c=l!==-1;if(a&&!c)s(r.concat(o));else if(!a&&c){const f=[...r];f.splice(l,1),s(f)}}else if(Cv(r)){const l=new Set(r);a?l.add(o):l.delete(o),s(l)}else s(Ade(e,a))})},mounted:mte,beforeUpdate(e,t,n){e[Rc]=uv(n),mte(e,t,n)}};function mte(e,{value:t,oldValue:n},r){e._modelValue=t;let o;if(zn(t))o=Ek(t,r.props.value)>-1;else if(Cv(t))o=t.has(r.props.value);else{if(t===n)return;o=Lh(t,Ade(e,!0))}e.checked!==o&&(e.checked=o)}const QV={created(e,{value:t},n){e.checked=Lh(t,n.props.value),e[Rc]=uv(n),ph(e,"change",()=>{e[Rc](p1(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[Rc]=uv(r),t!==n&&(e.checked=Lh(t,r.props.value))}},JV={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const o=Cv(t);ph(e,"change",()=>{const a=Array.prototype.filter.call(e.options,s=>s.selected).map(s=>n?A2(p1(s)):p1(s));e[Rc](e.multiple?o?new Set(a):a:a[0]),e._assigning=!0,yn(()=>{e._assigning=!1})}),e[Rc]=uv(r)},mounted(e,{value:t}){gte(e,t)},beforeUpdate(e,t,n){e[Rc]=uv(n)},updated(e,{value:t}){e._assigning||gte(e,t)}};function gte(e,t){const n=e.multiple,r=zn(t);if(!(n&&!r&&!Cv(t))){for(let o=0,a=e.options.length;oString(f)===String(l)):s.selected=Ek(t,l)>-1}else s.selected=t.has(l);else if(Lh(p1(s),t)){e.selectedIndex!==o&&(e.selectedIndex=o);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function p1(e){return"_value"in e?e._value:e.value}function Ade(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const w3={created(e,t,n){Qx(e,t,n,null,"created")},mounted(e,t,n){Qx(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){Qx(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){Qx(e,t,n,r,"updated")}};function Ide(e,t){switch(e){case"SELECT":return JV;case"TEXTAREA":return Gl;default:switch(t){case"checkbox":return ZV;case"radio":return QV;default:return Gl}}}function Qx(e,t,n,r,o){const s=Ide(e.tagName,n.props&&n.props.type)[o];s&&s(e,t,n,r)}function PLe(){Gl.getSSRProps=({value:e})=>({value:e}),QV.getSSRProps=({value:e},t)=>{if(t.props&&Lh(t.props.value,e))return{checked:!0}},ZV.getSSRProps=({value:e},t)=>{if(zn(e)){if(t.props&&Ek(e,t.props.value)>-1)return{checked:!0}}else if(Cv(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},w3.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const n=Ide(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}const RLe=["ctrl","shift","alt","meta"],MLe={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)=>RLe.some(n=>e[`${n}Key`]&&!t.includes(n))},rs=(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=fl(o.key);if(t.some(s=>s===a||DLe[s]===a))return e(o)}))},Lde=gi({patchProp:yLe},tLe);let DS,yte=!1;function Pde(){return DS||(DS=qce(Lde))}function Rde(){return DS=yte?DS:Yce(Lde),yte=!0,DS}const jc=((...e)=>{Pde().render(...e)}),OLe=((...e)=>{Rde().hydrate(...e)}),v1=((...e)=>{const t=Pde().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=Ode(r);if(!o)return;const a=t._component;!wr(a)&&!a.render&&!a.template&&(a.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const s=n(o,!1,Dde(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),s},t}),Mde=((...e)=>{const t=Rde().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=Ode(r);if(o)return n(o,!0,Dde(o))},t});function Dde(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Ode(e){return Ir(e)?document.querySelector(e):e}let bte=!1;const $Le=()=>{bte||(bte=!0,PLe(),sLe())},NLe=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:Ece,BaseTransitionPropsValidators:FV,Comment:ps,DeprecationTypes:Q3e,EffectScope:IV,ErrorCodes:vIe,ErrorTypeStrings:W3e,Fragment:Ut,KeepAlive:FIe,ReactiveEffect:L2,Static:eg,Suspense:T3e,Teleport:$g,Text:nv,TrackOpTypes:lIe,Transition:Is,TransitionGroup:V1,TriggerOpTypes:uIe,VueElement:k3,assertNumber:pIe,callWithAsyncErrorHandling:Fc,callWithErrorHandling:j1,camelize:Ao,capitalize:xv,cloneVNode:yl,compatUtils:Z3e,computed:F,createApp:v1,createBlock:Ye,createCommentVNode:Re,createElementBlock:J,createElementVNode:I,createHydrationRenderer:Yce,createPropsRestProxy:t3e,createRenderer:qce,createSSRApp:Mde,createSlots:_o,createStaticVNode:rv,createTextVNode:ze,createVNode:O,customRef:fce,defineAsyncComponent:Ng,defineComponent:_e,defineCustomElement:Cde,defineEmits:WIe,defineExpose:GIe,defineModel:YIe,defineOptions:KIe,defineProps:HIe,defineSSRCustomElement:_Le,defineSlots:qIe,devtools:G3e,effect:RAe,effectScope:LV,getCurrentInstance:fo,getCurrentScope:c3,getCurrentWatcher:cIe,getTransitionRawChildren:y3,guardReactiveProps:ma,h:sa,handleError:Og,hasInjectionContext:Fce,hydrate:OLe,hydrateOnIdle:RIe,hydrateOnInteraction:$Ie,hydrateOnMediaQuery:OIe,hydrateOnVisible:DIe,initCustomFormatter:V3e,initDirectivesForSSR:$Le,inject:In,isMemoSame:vde,isProxy:v3,isReactive:cf,isReadonly:Mh,isRef:Io,isRuntimeOnly:F3e,isShallow:ec,isVNode:Bi,markRaw:m3,mergeDefaults:JIe,mergeModels:e3e,mergeProps:Bt,nextTick:yn,normalizeClass:ae,normalizeProps:Ui,normalizeStyle:je,onActivated:Ace,onBeforeMount:Lce,onBeforeUnmount:Fo,onBeforeUpdate:VV,onDeactivated:UV,onErrorCaptured:Dce,onMounted:gn,onRenderTracked:Mce,onRenderTriggered:Rce,onScopeDispose:PV,onServerPrefetch:Pce,onUnmounted:yi,onUpdated:Ga,onWatcherCleanup:pce,openBlock:H,popScopeId:_Ie,provide:Xr,proxyRefs:$V,pushScopeId:bIe,queuePostFlushCb:D2,reactive:qt,readonly:M2,ref:fe,registerRuntimeCompiler:B3e,render:jc,renderList:mn,renderSlot:ct,resolveComponent:Pe,resolveDirective:U1,resolveDynamicComponent:Fa,resolveFilter:X3e,resolveTransitionHooks:d1,setBlockTracking:F2,setDevtoolsHook:K3e,setTransitionHooks:Dh,shallowReactive:OV,shallowReadonly:QAe,shallowRef:Qm,ssrContextKey:Jce,ssrUtils:Y3e,stop:MAe,toDisplayString:Be,toHandlerKey:Ym,toHandlers:VIe,toRaw:Pi,toRef:Cu,toRefs:Qt,toValue:tIe,transformVNodeArgs:M3e,triggerRef:eIe,unref:nt,useAttrs:QIe,useCssModule:wLe,useCssVars:aLe,useHost:xde,useId:CIe,useModel:b3e,useSSRContext:ede,useShadowRoot:kLe,useSlots:ZIe,useTemplateRef:xIe,useTransitionState:BV,vModelCheckbox:ZV,vModelDynamic:w3,vModelRadio:QV,vModelSelect:JV,vModelText:Gl,vShow:ns,version:mde,warn:H3e,watch:Dt,watchEffect:As,watchPostEffect:g3e,watchSyncEffect:tde,withAsyncContext:n3e,withCtx:de,withDefaults:XIe,withDirectives:Ai,withKeys:mh,withMemo:z3e,withModifiers:rs,withScopeId:SIe},Symbol.toStringTag,{value:"Module"}));/*! * vue-router v4.5.1 * (c) 2025 Eduardo San Martin Morote * @license MIT */const Sy=typeof document<"u";function $de(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function BLe(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&$de(e.default)}const Ji=Object.assign;function S8(e,t){const n={};for(const r in t){const o=t[r];n[r]=Sd(o)?o.map(e):e(o)}return n}const OS=()=>{},Sd=Array.isArray,Nde=/#/g,FLe=/&/g,jLe=/\//g,ULe=/=/g,VLe=/\?/g,Bde=/\+/g,zLe=/%5B/g,HLe=/%5D/g,Fde=/%5E/g,WLe=/%60/g,jde=/%7B/g,GLe=/%7C/g,Ude=/%7D/g,KLe=/%20/g;function ez(e){return encodeURI(""+e).replace(GLe,"|").replace(zLe,"[").replace(HLe,"]")}function qLe(e){return ez(e).replace(jde,"{").replace(Ude,"}").replace(Fde,"^")}function KF(e){return ez(e).replace(Bde,"%2B").replace(KLe,"+").replace(Nde,"%23").replace(FLe,"%26").replace(WLe,"`").replace(jde,"{").replace(Ude,"}").replace(Fde,"^")}function YLe(e){return KF(e).replace(ULe,"%3D")}function XLe(e){return ez(e).replace(Nde,"%23").replace(VLe,"%3F")}function ZLe(e){return e==null?"":XLe(e).replace(jLe,"%2F")}function j2(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const QLe=/\/$/,JLe=e=>e.replace(QLe,"");function k8(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=rPe(r??t,n),{fullPath:r+(a&&"?")+a+s,path:r,query:o,hash:j2(s)}}function ePe(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function _te(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function tPe(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&m1(t.matched[r],n.matched[o])&&Vde(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function m1(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Vde(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!nPe(e[n],t[n]))return!1;return!0}function nPe(e,t){return Sd(e)?Ste(e,t):Sd(t)?Ste(t,e):e===t}function Ste(e,t){return Sd(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function rPe(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 gp={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var U2;(function(e){e.pop="pop",e.push="push"})(U2||(U2={}));var $S;(function(e){e.back="back",e.forward="forward",e.unknown=""})($S||($S={}));function iPe(e){if(!e)if(Sy){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),JLe(e)}const oPe=/^[^#]+#/;function sPe(e,t){return e.replace(oPe,"#")+t}function aPe(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 C3=()=>({left:window.scrollX,top:window.scrollY});function lPe(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=aPe(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 kte(e,t){return(history.state?history.state.position-t:-1)+e}const qF=new Map;function uPe(e,t){qF.set(e,t)}function cPe(e){const t=qF.get(e);return qF.delete(e),t}let dPe=()=>location.protocol+"//"+location.host;function zde(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),_te(c,"")}return _te(n,e)+r+o}function fPe(e,t,n,r){let o=[],a=[],s=null;const l=({state:m})=>{const g=zde(e,location),b=n.value,S=t.value;let k=0;if(m){if(n.value=g,t.value=m,s&&s===b){s=null;return}k=S?m.position-S.position:0}else r(g);o.forEach(C=>{C(n.value,b,{delta:k,type:U2.pop,direction:k?k>0?$S.forward:$S.back:$S.unknown})})};function c(){s=n.value}function f(m){o.push(m);const g=()=>{const b=o.indexOf(m);b>-1&&o.splice(b,1)};return a.push(g),g}function h(){const{history:m}=window;m.state&&m.replaceState(Ji({},m.state,{scroll:C3()}),"")}function p(){for(const m of a)m();a=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",h)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",h,{passive:!0}),{pauseListeners:c,listen:f,destroy:p}}function wte(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?C3():null}}function hPe(e){const{history:t,location:n}=window,r={value:zde(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,f,h){const p=e.indexOf("#"),m=p>-1?(n.host&&document.querySelector("base")?e:e.slice(p))+c:dPe()+e+c;try{t[h?"replaceState":"pushState"](f,"",m),o.value=f}catch(g){console.error(g),n[h?"replace":"assign"](m)}}function s(c,f){const h=Ji({},t.state,wte(o.value.back,c,o.value.forward,!0),f,{position:o.value.position});a(c,h,!0),r.value=c}function l(c,f){const h=Ji({},o.value,t.state,{forward:c,scroll:C3()});a(h.current,h,!0);const p=Ji({},wte(r.value,c,null),{position:h.position+1},f);a(c,p,!1),r.value=c}return{location:r,state:o,push:l,replace:s}}function pPe(e){e=iPe(e);const t=hPe(e),n=fPe(e,t.state,t.location,t.replace);function r(a,s=!0){s||n.pauseListeners(),history.go(a)}const o=Ji({location:"",base:e,go:r,createHref:sPe.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 vPe(e){return typeof e=="string"||e&&typeof e=="object"}function Hde(e){return typeof e=="string"||typeof e=="symbol"}const Wde=Symbol("");var Cte;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Cte||(Cte={}));function g1(e,t){return Ji(new Error,{type:e,[Wde]:!0},t)}function Qf(e,t){return e instanceof Error&&Wde in e&&(t==null||!!(e.type&t))}const xte="[^/]+?",mPe={sensitive:!1,strict:!1,start:!0,end:!0},gPe=/[.+*?^${}()[\]/\\]/g;function yPe(e,t){const n=Ji({},mPe,t),r=[];let o=n.start?"^":"";const a=[];for(const f of e){const h=f.length?[]:[90];n.strict&&!f.length&&(o+="/");for(let p=0;pt.length?t.length===1&&t[0]===80?1:-1:0}function Gde(e,t){let n=0;const r=e.score,o=t.score;for(;n0&&t[t.length-1]<0}const _Pe={type:0,value:""},SPe=/[a-zA-Z0-9_]/;function kPe(e){if(!e)return[[]];if(e==="/")return[[_Pe]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(g){throw new Error(`ERR (${n})/"${f}": ${g}`)}let n=0,r=n;const o=[];let a;function s(){a&&o.push(a),a=[]}let l=0,c,f="",h="";function p(){f&&(n===0?a.push({type:0,value:f}):n===1||n===2||n===3?(a.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${f}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:f,regexp:h,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),f="")}function m(){f+=c}for(;l{s(E)}:OS}function s(p){if(Hde(p)){const m=r.get(p);m&&(r.delete(p),n.splice(n.indexOf(m),1),m.children.forEach(s),m.alias.forEach(s))}else{const m=n.indexOf(p);m>-1&&(n.splice(m,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 m=TPe(p,n);n.splice(m,0,p),p.record.name&&!Ite(p)&&r.set(p.record.name,p)}function f(p,m){let g,b={},S,k;if("name"in p&&p.name){if(g=r.get(p.name),!g)throw g1(1,{location:p});k=g.record.name,b=Ji(Tte(m.params,g.keys.filter(E=>!E.optional).concat(g.parent?g.parent.keys.filter(E=>E.optional):[]).map(E=>E.name)),p.params&&Tte(p.params,g.keys.map(E=>E.name))),S=g.stringify(b)}else if(p.path!=null)S=p.path,g=n.find(E=>E.re.test(S)),g&&(b=g.parse(S),k=g.record.name);else{if(g=m.name?r.get(m.name):n.find(E=>E.re.test(m.path)),!g)throw g1(1,{location:p,currentLocation:m});k=g.record.name,b=Ji({},m.params,p.params),S=g.stringify(b)}const C=[];let x=g;for(;x;)C.unshift(x.record),x=x.parent;return{name:k,path:S,params:b,matched:C,meta:EPe(C)}}e.forEach(p=>a(p));function h(){n.length=0,r.clear()}return{addRoute:a,resolve:f,removeRoute:s,clearRoutes:h,getRoutes:l,getRecordMatcher:o}}function Tte(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Ate(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:xPe(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 xPe(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 Ite(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function EPe(e){return e.reduce((t,n)=>Ji(t,n.meta),{})}function Lte(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function TPe(e,t){let n=0,r=t.length;for(;n!==r;){const a=n+r>>1;Gde(e,t[a])<0?r=a:n=a+1}const o=APe(e);return o&&(r=t.lastIndexOf(o,r-1)),r}function APe(e){let t=e;for(;t=t.parent;)if(Kde(t)&&Gde(e,t)===0)return t}function Kde({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function IPe(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;oa&&KF(a)):[r&&KF(r)]).forEach(a=>{a!==void 0&&(t+=(t.length?"&":"")+n,a!=null&&(t+="="+a))})}return t}function LPe(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=Sd(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return t}const PPe=Symbol(""),Rte=Symbol(""),x3=Symbol(""),tz=Symbol(""),YF=Symbol("");function P_(){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 jp(e,t,n,r,o,a=s=>s()){const s=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise((l,c)=>{const f=m=>{m===!1?c(g1(4,{from:n,to:t})):m instanceof Error?c(m):vPe(m)?c(g1(2,{from:t,to:m})):(s&&r.enterCallbacks[o]===s&&typeof m=="function"&&s.push(m),l())},h=a(()=>e.call(r&&r.instances[o],t,n,f));let p=Promise.resolve(h);e.length<3&&(p=p.then(f)),p.catch(m=>c(m))})}function w8(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($de(c)){const h=(c.__vccOpts||c)[t];h&&a.push(jp(h,n,r,s,l,o))}else{let f=c();a.push(()=>f.then(h=>{if(!h)throw new Error(`Couldn't resolve component "${l}" at "${s.path}"`);const p=BLe(h)?h.default:h;s.mods[l]=h,s.components[l]=p;const g=(p.__vccOpts||p)[t];return g&&jp(g,n,r,s,l,o)()}))}}return a}function Mte(e){const t=In(x3),n=In(tz),r=F(()=>{const c=nt(e.to);return t.resolve(c)}),o=F(()=>{const{matched:c}=r.value,{length:f}=c,h=c[f-1],p=n.matched;if(!h||!p.length)return-1;const m=p.findIndex(m1.bind(null,h));if(m>-1)return m;const g=Dte(c[f-2]);return f>1&&Dte(h)===g&&p[p.length-1].path!==g?p.findIndex(m1.bind(null,c[f-2])):m}),a=F(()=>o.value>-1&&$Pe(n.params,r.value.params)),s=F(()=>o.value>-1&&o.value===n.matched.length-1&&Vde(n.params,r.value.params));function l(c={}){if(OPe(c)){const f=t[nt(e.replace)?"replace":"push"](nt(e.to)).catch(OS);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>f),f}return Promise.resolve()}return{route:r,href:F(()=>r.value.href),isActive:a,isExactActive:s,navigate:l}}function RPe(e){return e.length===1?e[0]:e}const MPe=_e({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:Mte,setup(e,{slots:t}){const n=qt(Mte(e)),{options:r}=In(x3),o=F(()=>({[Ote(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Ote(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const a=t.default&&RPe(t.default(n));return e.custom?a:sa("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},a)}}}),DPe=MPe;function OPe(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 $Pe(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(!Sd(o)||o.length!==r.length||r.some((a,s)=>a!==o[s]))return!1}return!0}function Dte(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Ote=(e,t,n)=>e??t??n,NPe=_e({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=In(YF),o=F(()=>e.route||r.value),a=In(Rte,0),s=F(()=>{let f=nt(a);const{matched:h}=o.value;let p;for(;(p=h[f])&&!p.components;)f++;return f}),l=F(()=>o.value.matched[s.value]);Xr(Rte,F(()=>s.value+1)),Xr(PPe,l),Xr(YF,o);const c=fe();return Dt(()=>[c.value,l.value,e.name],([f,h,p],[m,g,b])=>{h&&(h.instances[p]=f,g&&g!==h&&f&&f===m&&(h.leaveGuards.size||(h.leaveGuards=g.leaveGuards),h.updateGuards.size||(h.updateGuards=g.updateGuards))),f&&h&&(!g||!m1(h,g)||!m)&&(h.enterCallbacks[p]||[]).forEach(S=>S(f))},{flush:"post"}),()=>{const f=o.value,h=e.name,p=l.value,m=p&&p.components[h];if(!m)return $te(n.default,{Component:m,route:f});const g=p.props[h],b=g?g===!0?f.params:typeof g=="function"?g(f):g:null,k=sa(m,Ji({},b,t,{onVnodeUnmounted:C=>{C.component.isUnmounted&&(p.instances[h]=null)},ref:c}));return $te(n.default,{Component:k,route:f})||k}}});function $te(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const BPe=NPe;function FPe(e){const t=CPe(e.routes,e),n=e.parseQuery||IPe,r=e.stringifyQuery||Pte,o=e.history,a=P_(),s=P_(),l=P_(),c=Qm(gp);let f=gp;Sy&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const h=S8.bind(null,ve=>""+ve),p=S8.bind(null,ZLe),m=S8.bind(null,j2);function g(ve,Ce){let De,We;return Hde(ve)?(De=t.getRecordMatcher(ve),We=Ce):We=ve,t.addRoute(We,De)}function b(ve){const Ce=t.getRecordMatcher(ve);Ce&&t.removeRoute(Ce)}function S(){return t.getRoutes().map(ve=>ve.record)}function k(ve){return!!t.getRecordMatcher(ve)}function C(ve,Ce){if(Ce=Ji({},Ce||c.value),typeof ve=="string"){const Se=k8(n,ve,Ce.path),Ne=t.resolve({path:Se.path},Ce),qe=o.createHref(Se.fullPath);return Ji(Se,Ne,{params:m(Ne.params),hash:j2(Se.hash),redirectedFrom:void 0,href:qe})}let De;if(ve.path!=null)De=Ji({},ve,{path:k8(n,ve.path,Ce.path).path});else{const Se=Ji({},ve.params);for(const Ne in Se)Se[Ne]==null&&delete Se[Ne];De=Ji({},ve,{params:p(Se)}),Ce.params=p(Ce.params)}const We=t.resolve(De,Ce),Xe=ve.hash||"";We.params=h(m(We.params));const He=ePe(r,Ji({},ve,{hash:qLe(Xe),path:We.path})),ke=o.createHref(He);return Ji({fullPath:He,hash:Xe,query:r===Pte?LPe(ve.query):ve.query||{}},We,{redirectedFrom:void 0,href:ke})}function x(ve){return typeof ve=="string"?k8(n,ve,c.value.path):Ji({},ve)}function E(ve,Ce){if(f!==ve)return g1(8,{from:Ce,to:ve})}function _(ve){return M(ve)}function A(ve){return _(Ji(x(ve),{replace:!0}))}function R(ve){const Ce=ve.matched[ve.matched.length-1];if(Ce&&Ce.redirect){const{redirect:De}=Ce;let We=typeof De=="function"?De(ve):De;return typeof We=="string"&&(We=We.includes("?")||We.includes("#")?We=x(We):{path:We},We.params={}),Ji({query:ve.query,hash:ve.hash,params:We.path!=null?{}:ve.params},We)}}function M(ve,Ce){const De=f=C(ve),We=c.value,Xe=ve.state,He=ve.force,ke=ve.replace===!0,Se=R(De);if(Se)return M(Ji(x(Se),{state:typeof Se=="object"?Ji({},Xe,Se.state):Xe,force:He,replace:ke}),Ce||De);const Ne=De;Ne.redirectedFrom=Ce;let qe;return!He&&tPe(r,We,De)&&(qe=g1(16,{to:Ne,from:We}),re(We,We,!0,!1)),(qe?Promise.resolve(qe):L(Ne,We)).catch(Je=>Qf(Je)?Qf(Je,2)?Je:K(Je):ne(Je,Ne,We)).then(Je=>{if(Je){if(Qf(Je,2))return M(Ji({replace:ke},x(Je.to),{state:typeof Je.to=="object"?Ji({},Xe,Je.to.state):Xe,force:He}),Ce||Ne)}else Je=U(Ne,We,!0,ke,Xe);return B(Ne,We,Je),Je})}function D(ve,Ce){const De=E(ve,Ce);return De?Promise.reject(De):Promise.resolve()}function N(ve){const Ce=Q.values().next().value;return Ce&&typeof Ce.runWithContext=="function"?Ce.runWithContext(ve):ve()}function L(ve,Ce){let De;const[We,Xe,He]=jPe(ve,Ce);De=w8(We.reverse(),"beforeRouteLeave",ve,Ce);for(const Se of We)Se.leaveGuards.forEach(Ne=>{De.push(jp(Ne,ve,Ce))});const ke=D.bind(null,ve,Ce);return De.push(ke),be(De).then(()=>{De=[];for(const Se of a.list())De.push(jp(Se,ve,Ce));return De.push(ke),be(De)}).then(()=>{De=w8(Xe,"beforeRouteUpdate",ve,Ce);for(const Se of Xe)Se.updateGuards.forEach(Ne=>{De.push(jp(Ne,ve,Ce))});return De.push(ke),be(De)}).then(()=>{De=[];for(const Se of He)if(Se.beforeEnter)if(Sd(Se.beforeEnter))for(const Ne of Se.beforeEnter)De.push(jp(Ne,ve,Ce));else De.push(jp(Se.beforeEnter,ve,Ce));return De.push(ke),be(De)}).then(()=>(ve.matched.forEach(Se=>Se.enterCallbacks={}),De=w8(He,"beforeRouteEnter",ve,Ce,N),De.push(ke),be(De))).then(()=>{De=[];for(const Se of s.list())De.push(jp(Se,ve,Ce));return De.push(ke),be(De)}).catch(Se=>Qf(Se,8)?Se:Promise.reject(Se))}function B(ve,Ce,De){l.list().forEach(We=>N(()=>We(ve,Ce,De)))}function U(ve,Ce,De,We,Xe){const He=E(ve,Ce);if(He)return He;const ke=Ce===gp,Se=Sy?history.state:{};De&&(We||ke?o.replace(ve.fullPath,Ji({scroll:ke&&Se&&Se.scroll},Xe)):o.push(ve.fullPath,Xe)),c.value=ve,re(ve,Ce,De,ke),K()}let W;function V(){W||(W=o.listen((ve,Ce,De)=>{if(!ye.listening)return;const We=C(ve),Xe=R(We);if(Xe){M(Ji(Xe,{replace:!0,force:!0}),We).catch(OS);return}f=We;const He=c.value;Sy&&uPe(kte(He.fullPath,De.delta),C3()),L(We,He).catch(ke=>Qf(ke,12)?ke:Qf(ke,2)?(M(Ji(x(ke.to),{force:!0}),We).then(Se=>{Qf(Se,20)&&!De.delta&&De.type===U2.pop&&o.go(-1,!1)}).catch(OS),Promise.reject()):(De.delta&&o.go(-De.delta,!1),ne(ke,We,He))).then(ke=>{ke=ke||U(We,He,!1),ke&&(De.delta&&!Qf(ke,8)?o.go(-De.delta,!1):De.type===U2.pop&&Qf(ke,20)&&o.go(-1,!1)),B(We,He,ke)}).catch(OS)}))}let z=P_(),Y=P_(),oe;function ne(ve,Ce,De){K(ve);const We=Y.list();return We.length?We.forEach(Xe=>Xe(ve,Ce,De)):console.error(ve),Promise.reject(ve)}function X(){return oe&&c.value!==gp?Promise.resolve():new Promise((ve,Ce)=>{z.add([ve,Ce])})}function K(ve){return oe||(oe=!ve,V(),z.list().forEach(([Ce,De])=>ve?De(ve):Ce()),z.reset()),ve}function re(ve,Ce,De,We){const{scrollBehavior:Xe}=e;if(!Sy||!Xe)return Promise.resolve();const He=!De&&cPe(kte(ve.fullPath,0))||(We||!De)&&history.state&&history.state.scroll||null;return yn().then(()=>Xe(ve,Ce,He)).then(ke=>ke&&lPe(ke)).catch(ke=>ne(ke,ve,Ce))}const ee=ve=>o.go(ve);let le;const Q=new Set,ye={currentRoute:c,listening:!0,addRoute:g,removeRoute:b,clearRoutes:t.clearRoutes,hasRoute:k,getRoutes:S,resolve:C,options:e,push:_,replace:A,go:ee,back:()=>ee(-1),forward:()=>ee(1),beforeEach:a.add,beforeResolve:s.add,afterEach:l.add,onError:Y.add,isReady:X,install(ve){const Ce=this;ve.component("RouterLink",DPe),ve.component("RouterView",BPe),ve.config.globalProperties.$router=Ce,Object.defineProperty(ve.config.globalProperties,"$route",{enumerable:!0,get:()=>nt(c)}),Sy&&!le&&c.value===gp&&(le=!0,_(o.location).catch(Xe=>{}));const De={};for(const Xe in gp)Object.defineProperty(De,Xe,{get:()=>c.value[Xe],enumerable:!0});ve.provide(x3,Ce),ve.provide(tz,OV(De)),ve.provide(YF,c);const We=ve.unmount;Q.add(ve),ve.unmount=function(){Q.delete(ve),Q.size<1&&(f=gp,W&&W(),W=null,c.value=gp,le=!1,oe=!1),We()}}};function be(ve){return ve.reduce((Ce,De)=>Ce.then(()=>N(De)),Promise.resolve())}return ye}function jPe(e,t){const n=[],r=[],o=[],a=Math.max(t.matched.length,e.matched.length);for(let s=0;sm1(f,l))?r.push(l):n.push(l));const c=e.matched[s];c&&(t.matched.find(f=>m1(f,c))||o.push(c))}return[n,r,o]}function _l(){return In(x3)}function E3(e){return In(tz)}const Bg=Object.prototype.toString;function Qn(e){return Bg.call(e)==="[object Array]"}function Sl(e){return Bg.call(e)==="[object Null]"}function bl(e){return Bg.call(e)==="[object Boolean]"}function fr(e){return Bg.call(e)==="[object Object]"}const gg=e=>Bg.call(e)==="[object Promise]";function is(e){return Bg.call(e)==="[object String]"}function Ke(e){return Bg.call(e)==="[object Number]"&&e===e}function kn(e){return e===void 0}function _n(e){return typeof e=="function"}function UPe(e){return fr(e)&&Object.keys(e).length===0}function Nte(e){return e||e===0}function MT(e){return e===window}const qde=e=>e?.$!==void 0,VPe=e=>/\[Q]Q/.test(e);function Mc(e){return fr(e)&&"$y"in e&&"$M"in e&&"$D"in e&&"$d"in e&&"$H"in e&&"$m"in e&&"$s"in e}const Va=Symbol("ArcoConfigProvider"),Jx={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:"日"}}},zPe={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:Jx,datePicker:{view:Jx.view,month:Jx.month,week:Jx.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:"暂无"}},nz=fe("zh-CN"),BA=qt({"zh-CN":zPe}),HPe=(e,t)=>{for(const n of Object.keys(e))(!BA[n]||t?.overwrite)&&(BA[n]=e[n])},WPe=e=>{if(!BA[e]){console.warn(`use ${e} failed! Please add ${e} first`);return}nz.value=e},GPe=()=>nz.value,Lo=()=>{const e=In(Va,void 0),t=F(()=>{var o;return(o=e?.locale)!=null?o:BA[nz.value]}),n=F(()=>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 is(l)&&a.length>0?l.replace(/{(\d+)}/g,(c,f)=>{var h;return(h=a[f])!=null?h:c}):l}}},KPe="A",qPe="arco",XF="$arco",Hn=e=>{var t;return(t=e?.componentPrefix)!=null?t:KPe},Wn=(e,t)=>{var n;t&&t.classPrefix&&(e.config.globalProperties[XF]={...(n=e.config.globalProperties[XF])!=null?n:{},classPrefix:t.classPrefix})},Ae=e=>{var t,n,r;const o=fo(),a=In(Va,void 0),s=(r=(n=a?.prefixCls)!=null?n:(t=o?.appContext.config.globalProperties[XF])==null?void 0:t.classPrefix)!=null?r:qPe;return e?`${s}-${e}`:s};var Yde=(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(){!ZF||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),e5e?(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(){!ZF||!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=JPe.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})(),Xde=(function(e,t){for(var n=0,r=Object.keys(t);n"u"||!(Element instanceof Object))){if(!(t instanceof y1(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new u5e(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 y1(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 c5e(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})(),Qde=typeof WeakMap<"u"?new WeakMap:new Yde,Jde=(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=t5e.getInstance(),r=new d5e(t,n,this);Qde.set(this,r)}return e})();["observe","unobserve","disconnect"].forEach(function(e){Jde.prototype[e]=function(){var t;return(t=Qde.get(this))[e].apply(t,arguments)}});var A3=(function(){return typeof FA.ResizeObserver<"u"?FA.ResizeObserver:Jde})();const I3=e=>!!(e&&e.shapeFlag&1),Lk=(e,t)=>!!(e&&e.shapeFlag&6),f5e=(e,t)=>!!(e&&e.shapeFlag&8),L3=(e,t)=>!!(e&&e.shapeFlag&16),P3=(e,t)=>!!(e&&e.shapeFlag&32),Uy=e=>{var t,n;if(e)for(const r of e){if(I3(r)||Lk(r))return r;if(L3(r,r.children)){const o=Uy(r.children);if(o)return o}else if(P3(r,r.children)){const o=(n=(t=r.children).default)==null?void 0:n.call(t);if(o){const a=Uy(o);if(a)return a}}else if(Qn(r)){const o=Uy(r);if(o)return o}}},h5e=e=>{if(!e)return!0;for(const t of e)if(t.children)return!1;return!0},efe=(e,t)=>{if(e&&e.length>0)for(let n=0;n0&&efe(o,t))return!0}return!1},rz=e=>{if(L3(e,e.children))return e.children;if(Qn(e))return e},tfe=e=>{var t,n;if(I3(e))return e.el;if(Lk(e)){if(((t=e.el)==null?void 0:t.nodeType)===1)return e.el;if((n=e.component)!=null&&n.subTree){const r=tfe(e.component.subTree);if(r)return r}}else{const r=rz(e);return nfe(r)}},nfe=e=>{if(e&&e.length>0)for(const t of e){const n=tfe(t);if(n)return n}},df=(e,t=!1)=>{var n,r;const o=[];for(const a of e??[])I3(a)||Lk(a)||t&&f5e(a,a.children)?o.push(a):L3(a,a.children)?o.push(...df(a.children,t)):P3(a,a.children)?o.push(...df((r=(n=a.children).default)==null?void 0:r.call(n),t)):Qn(a)&&o.push(...df(a,t));return o};function p5e(e){function t(n){const r=[];return n.forEach(o=>{var a,s;Bi(o)&&o.type===Ut?P3(o,o.children)?r.push(...t(((s=(a=o.children).default)==null?void 0:s.call(a))||[])):L3(o,o.children)?r.push(...t(o.children)):is(o.children)&&r.push(o.children):r.push(o)}),r}return t(e)}const Bl=e=>{if(e)return _n(e)?e:()=>e},rfe=(e,t)=>{var n;const r=[];if(Lk(e,e.type))e.type.name===t?e.component&&r.push(e.component.uid):(n=e.component)!=null&&n.subTree&&r.push(...rfe(e.component.subTree,t));else{const o=rz(e);o&&r.push(...ife(o,t))}return r},ife=(e,t)=>{const n=[];if(e&&e.length>0)for(const r of e)n.push(...rfe(r,t));return n};var kd=_e({name:"ResizeObserver",emits:["resize"],setup(e,{emit:t,slots:n}){let r;const o=fe(),a=F(()=>qde(o.value)?o.value.$el:o.value),s=c=>{c&&(r=new A3(f=>{const h=f[0];t("resize",h)}),r.observe(c))},l=()=>{r&&(r.disconnect(),r=null)};return Dt(a,c=>{r&&l(),c&&s(c)}),gn(()=>{a.value&&s(a.value)}),yi(()=>{l()}),()=>{var c,f;const h=Uy((f=(c=n.default)==null?void 0:c.call(n))!=null?f:[]);return h?yl(h,{ref:o},!0):null}}});const ofe=typeof window>"u"?global:window,sfe=ofe.requestAnimationFrame,UA=ofe.cancelAnimationFrame;function yg(e){let t=0;const n=(...r)=>{t&&UA(t),t=sfe(()=>{e(...r),t=0})};return n.cancel=()=>{UA(t),t=0},n}const Vy=()=>{},afe=()=>{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)}},Pk=(()=>{try{return!(typeof window<"u"&&document!==void 0)}catch{return!0}})(),Ti=Pk?Vy:(e,t,n,r=!1)=>{e.addEventListener(t,n,r)},Yi=Pk?Vy:(e,t,n,r=!1)=>{e.removeEventListener(t,n,r)},v5e=(e,t)=>{if(!e||!t)return!1;let n=t;for(;n;){if(n===e)return!0;n=n.parentNode}return!1},R3=e=>{const t=document.createElement("div");return t.setAttribute("class",`arco-overlay arco-overlay-${e}`),t},lfe=(e,t)=>{var n;return Pk?Vy():(n=(t??document).querySelector(e))!=null?n:void 0},Qd=(e,t)=>{if(is(e)){const n=e[0]==="#"?`[id='${e.slice(1)}']`:e;return lfe(n,t)}return e},m5e=(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}},g5e=e=>e.tagName==="BODY"?document.documentElement.scrollHeight>window.innerHeight:e.scrollHeight>e.offsetHeight,y5e=e=>e.tagName==="BODY"?window.innerWidth-afe().width:e.offsetWidth-e.clientWidth;var Oe=(e,t)=>{for(const[n,r]of t)e[n]=r;return e};function b5e(e){return MT(e)?{top:0,bottom:window.innerHeight}:e.getBoundingClientRect()}const _5e=_e({name:"Affix",components:{ResizeObserver:kd},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=Ae("affix"),{target:r,targetContainer:o}=Qt(e),a=fe(),s=fe(),l=fe(!1),c=fe({}),f=fe({}),h=F(()=>({[n]:l.value})),p=yg(()=>{if(!a.value||!s.value)return;const{offsetTop:m,offsetBottom:g}=e,b=kn(g)?"top":"bottom",S=a.value.getBoundingClientRect(),k=b5e(s.value);let C=!1,x={};const E={width:`${a.value.offsetWidth}px`,height:`${a.value.offsetHeight}px`};b==="top"?(C=S.top-k.top<(m||0),x=C?{position:"fixed",top:`${k.top+(m||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,f.value={...x,...C?E:{}}});return gn(()=>{As(m=>{const g=r&&r.value!==window&&Qd(r.value)||window;s.value=g,g&&(Ti(g,"scroll",p),Ti(g,"resize",p),m(()=>{Yi(g,"scroll",p),Yi(g,"resize",p)}))}),As(m=>{if(!s.value)return;const g=o&&o.value!==window&&Qd(o.value)||window;g&&(Ti(g,"scroll",p),Ti(g,"resize",p),m(()=>{Yi(g,"scroll",p),Yi(g,"resize",p)}))})}),{wrapperRef:a,isFixed:l,classNames:h,placeholderStyles:c,fixedStyles:f,updatePositionThrottle:p}},methods:{updatePosition(){this.updatePositionThrottle()}}}),S5e={ref:"wrapperRef"};function k5e(e,t,n,r,o,a){const s=Pe("ResizeObserver");return H(),Ye(s,{onResize:e.updatePositionThrottle},{default:de(()=>[I("div",S5e,[e.isFixed?(H(),J("div",{key:0,style:je(e.placeholderStyles)},null,4)):Re("v-if",!0),I("div",{class:ae(e.classNames),style:je(e.fixedStyles)},[O(s,{onResize:e.updatePositionThrottle},{default:de(()=>[ct(e.$slots,"default")]),_:3},8,["onResize"])],6)],512)]),_:3},8,["onResize"])}var C8=Oe(_5e,[["render",k5e]]);const w5e=Object.assign(C8,{install:(e,t)=>{Wn(e,t);const n=Hn(t);e.component(n+C8.name,C8)}}),C5e=_e({name:"IconHover",props:{prefix:{type:String},size:{type:String,default:"medium"},disabled:{type:Boolean,default:!1}},setup(){return{prefixCls:Ae("icon-hover")}}});function x5e(e,t,n,r,o,a){return H(),J("span",{class:ae([e.prefixCls,{[`${e.prefix}-icon-hover`]:e.prefix,[`${e.prefixCls}-size-${e.size}`]:e.size!=="medium",[`${e.prefixCls}-disabled`]:e.disabled}])},[ct(e.$slots,"default")],2)}var ko=Oe(C5e,[["render",x5e]]);const E5e=_e({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=Ae("icon"),r=F(()=>[n,`${n}-close`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),T5e=["stroke-width","stroke-linecap","stroke-linejoin"];function A5e(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,T5e)}var x8=Oe(E5e,[["render",A5e]]);const ms=Object.assign(x8,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+x8.name,x8)}}),I5e=_e({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=Ae("icon"),r=F(()=>[n,`${n}-info-circle-fill`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),L5e=["stroke-width","stroke-linecap","stroke-linejoin"];function P5e(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,L5e)}var E8=Oe(I5e,[["render",P5e]]);const z1=Object.assign(E8,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+E8.name,E8)}}),R5e=_e({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=Ae("icon"),r=F(()=>[n,`${n}-check-circle-fill`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),M5e=["stroke-width","stroke-linecap","stroke-linejoin"];function D5e(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,M5e)}var T8=Oe(R5e,[["render",D5e]]);const jh=Object.assign(T8,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+T8.name,T8)}}),O5e=_e({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=Ae("icon"),r=F(()=>[n,`${n}-exclamation-circle-fill`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),$5e=["stroke-width","stroke-linecap","stroke-linejoin"];function N5e(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,$5e)}var A8=Oe(O5e,[["render",N5e]]);const kf=Object.assign(A8,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+A8.name,A8)}}),B5e=_e({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=Ae("icon"),r=F(()=>[n,`${n}-close-circle-fill`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),F5e=["stroke-width","stroke-linecap","stroke-linejoin"];function j5e(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,F5e)}var I8=Oe(B5e,[["render",j5e]]);const Fg=Object.assign(I8,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+I8.name,I8)}}),U5e=_e({name:"Alert",components:{IconHover:ko,IconClose:ms,IconInfoCircleFill:z1,IconCheckCircleFill:jh,IconExclamationCircleFill:kf,IconCloseCircleFill:Fg},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=Ae("alert"),o=fe(!0),a=c=>{o.value=!1,n("close",c)},s=()=>{n("afterClose")},l=F(()=>[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 V5e(e,t,n,r,o,a){const s=Pe("icon-info-circle-fill"),l=Pe("icon-check-circle-fill"),c=Pe("icon-exclamation-circle-fill"),f=Pe("icon-close-circle-fill"),h=Pe("icon-close"),p=Pe("icon-hover");return H(),Ye(Is,{name:"zoom-in-top",onAfterLeave:e.handleAfterLeave},{default:de(()=>[e.visible?(H(),J("div",{key:0,role:"alert",class:ae(e.cls)},[e.showIcon&&!(e.type==="normal"&&!e.$slots.icon)?(H(),J("div",{key:0,class:ae(`${e.prefixCls}-icon`)},[ct(e.$slots,"icon",{},()=>[e.type==="info"?(H(),Ye(s,{key:0})):e.type==="success"?(H(),Ye(l,{key:1})):e.type==="warning"?(H(),Ye(c,{key:2})):e.type==="error"?(H(),Ye(f,{key:3})):Re("v-if",!0)])],2)):Re("v-if",!0),I("div",{class:ae(`${e.prefixCls}-body`)},[e.title||e.$slots.title?(H(),J("div",{key:0,class:ae(`${e.prefixCls}-title`)},[ct(e.$slots,"title",{},()=>[ze(Be(e.title),1)])],2)):Re("v-if",!0),I("div",{class:ae(`${e.prefixCls}-content`)},[ct(e.$slots,"default")],2)],2),e.$slots.action?(H(),J("div",{key:1,class:ae(`${e.prefixCls}-action`)},[ct(e.$slots,"action")],2)):Re("v-if",!0),e.closable?(H(),J("div",{key:2,tabindex:"-1",role:"button","aria-label":"Close",class:ae(`${e.prefixCls}-close-btn`),onClick:t[0]||(t[0]=(...m)=>e.handleClose&&e.handleClose(...m))},[ct(e.$slots,"close-element",{},()=>[O(p,null,{default:de(()=>[O(h)]),_:1})])],2)):Re("v-if",!0)],2)):Re("v-if",!0)]),_:3},8,["onAfterLeave"])}var L8=Oe(U5e,[["render",V5e]]);const ufe=Object.assign(L8,{install:(e,t)=>{Wn(e,t);const n=Hn(t);e.component(n+L8.name,L8)}});function Fte(e){return typeof e=="object"&&e!=null&&e.nodeType===1}function jte(e,t){return(!t||e!=="hidden")&&e!=="visible"&&e!=="clip"}function P8(e,t){if(e.clientHeightt||a>e&&s=t&&l>=n?a-e-r:s>t&&ln?s-t+o:0}var QF=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(Se){return Se!==s};if(!Fte(e))throw new TypeError("Invalid target");for(var f,h,p=document.scrollingElement||document.documentElement,m=[],g=e;Fte(g)&&c(g);){if((g=(h=(f=g).parentElement)==null?f.getRootNode().host||null:h)===p){m.push(g);break}g!=null&&g===document.body&&P8(g)&&!P8(document.documentElement)||g!=null&&P8(g,l)&&m.push(g)}for(var b=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,A=x.top,R=x.right,M=x.bottom,D=x.left,N=o==="start"||o==="nearest"?A:o==="end"?M:A+E/2,L=a==="center"?D+_/2:a==="end"?R:D,B=[],U=0;U=0&&D>=0&&M<=S&&R<=b&&A>=oe&&M<=X&&D>=K&&R<=ne)return B;var re=getComputedStyle(W),ee=parseInt(re.borderLeftWidth,10),le=parseInt(re.borderTopWidth,10),Q=parseInt(re.borderRightWidth,10),ye=parseInt(re.borderBottomWidth,10),be=0,ve=0,Ce="offsetWidth"in W?W.offsetWidth-W.clientWidth-ee-Q:0,De="offsetHeight"in W?W.offsetHeight-W.clientHeight-le-ye:0,We="offsetWidth"in W?W.offsetWidth===0?0:Y/W.offsetWidth:0,Xe="offsetHeight"in W?W.offsetHeight===0?0:z/W.offsetHeight:0;if(p===W)be=o==="start"?N:o==="end"?N-S:o==="nearest"?eE(C,C+S,S,le,ye,C+N,C+N+E,E):N-S/2,ve=a==="start"?L:a==="center"?L-b/2:a==="end"?L-b:eE(k,k+b,b,ee,Q,k+L,k+L+_,_),be=Math.max(0,be+C),ve=Math.max(0,ve+k);else{be=o==="start"?N-oe-le:o==="end"?N-X+ye+De:o==="nearest"?eE(oe,X,z,le,ye+De,N,N+E,E):N-(oe+z/2)+De/2,ve=a==="start"?L-K-ee:a==="center"?L-(K+Y/2)+Ce/2:a==="end"?L-ne+Q+Ce:eE(K,ne,Y,ee,Q+Ce,L,L+_,_);var He=W.scrollLeft,ke=W.scrollTop;N+=ke-(be=Math.max(0,Math.min(ke+be/Xe,W.scrollHeight-z/Xe+De))),L+=He-(ve=Math.max(0,Math.min(He+ve/We,W.scrollWidth-Y/We+Ce)))}B.push({el:W,top:be,left:ve})}return B},Rk=function(e){return function(t){return Math.pow(t,e)}},Mk=function(e){return function(t){return 1-Math.abs(Math.pow(t-1,e))}},M3=function(e){return function(t){return t<.5?Rk(e)(t*2)/2:Mk(e)(t*2-1)/2+.5}},z5e=function(e){return e},H5e=Rk(2),W5e=Mk(2),G5e=M3(2),K5e=Rk(3),q5e=Mk(3),Y5e=M3(3),X5e=Rk(4),Z5e=Mk(4),Q5e=M3(4),J5e=Rk(5),eRe=Mk(5),tRe=M3(5),nRe=function(e){return 1+Math.sin(Math.PI/2*e-Math.PI/2)},rRe=function(e){return Math.sin(Math.PI/2*e)},iRe=function(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2},iz=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)},cfe=function(e){return 1-iz(1-e)},oRe=function(e){return e<.5?cfe(e*2)*.5:iz(e*2-1)*.5+.5},sRe=Object.freeze({linear:z5e,quadIn:H5e,quadOut:W5e,quadInOut:G5e,cubicIn:K5e,cubicOut:q5e,cubicInOut:Y5e,quartIn:X5e,quartOut:Z5e,quartInOut:Q5e,quintIn:J5e,quintOut:eRe,quintInOut:tRe,sineIn:nRe,sineOut:rRe,sineInOut:iRe,bounceOut:iz,bounceIn:cfe,bounceInOut:oRe}),jg=function(t){var n=t.from,r=t.to,o=t.duration,a=t.delay,s=t.easing,l=t.onStart,c=t.onUpdate,f=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=f,this.startTime=Date.now()+this.delay,this.started=!1,this.finished=!1,this.timer=null,this.keys={}};jg.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])*sRe[this.easing](this.elapsed/this.duration);this.started||(this.onStart&&this.onStart(this.keys),this.started=!0),this.onUpdate(this.keys)}};jg.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()};jg.prototype.stop=function(){cancelAnimationFrame(this.timer),this.timer=null};function aRe(e,t,n){new jg({from:{scrollTop:e.scrollTop},to:{scrollTop:t},easing:"quartOut",duration:300,onUpdate:o=>{e.scrollTop=o.scrollTop},onFinish:()=>{_n(n)&&n()}}).start()}const dfe=Symbol("ArcoAnchor"),lRe=["start","end","center","nearest"],uRe=_e({name:"Anchor",props:{boundary:{type:[Number,String],default:"start",validator:e=>Ke(e)||lRe.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=Ae("anchor"),r=fe(),o=fe(),a=qt({}),s=fe(""),l=fe(!1),c=fe(),f=fe(),h=(A,R)=>{A&&(a[A]=R)},p=A=>{delete a[A]},m=(A,R)=>{e.changeHash||A.preventDefault(),R&&(g(R),S(R)),t("select",R,s.value)},g=A=>{try{const R=Qd(A);if(!R)return;let M,D=0;Ke(e.boundary)?(M="start",D=e.boundary):M=e.boundary;const N=QF(R,{block:M});if(!N.length)return;const{el:L,top:B}=N[0],U=B-D;aRe(L,U,()=>{l.value=!1}),l.value=!0}catch(R){console.error(R)}},b=yg(()=>{if(l.value)return;const A=k();if(A&&A.id){const R=`#${A.id}`;S(R)}}),S=A=>{if(!a[A]&&r.value){const R=Qd(`a[data-href='${A}']`,r.value);if(!R)return;a[A]=R}A!==s.value&&(s.value=A,yn(()=>{t("change",A)}))},k=()=>{if(!c.value||!f.value)return;const A=Ke(e.boundary)?e.boundary:0,R=f.value.getBoundingClientRect();for(const M of Object.keys(a)){const D=Qd(M);if(D){const{top:N}=D.getBoundingClientRect(),L=MT(c.value)?N-A:N-R.top-A;if(L>=0&&L<=R.height/2)return D}}};Dt(s,()=>{const A=a[s.value];!e.lineLess&&A&&o.value&&(o.value.style.top=`${A.offsetTop}px`)});const C=()=>{c.value&&Ti(c.value,"scroll",b)},x=()=>{c.value&&Yi(c.value,"scroll",b)},E=()=>{e.scrollContainer?(c.value=MT(e.scrollContainer)?window:Qd(e.scrollContainer),f.value=MT(e.scrollContainer)?document.documentElement:Qd(e.scrollContainer)):(c.value=window,f.value=document.documentElement)};gn(()=>{E();const A=decodeURIComponent(window.location.hash);A?(g(A),S(A)):b(),C()}),Fo(()=>{x()}),Xr(dfe,qt({currentLink:s,addLink:h,removeLink:p,handleClick:m}));const _=F(()=>[n,{[`${n}-line-less`]:e.lineLess}]);return{prefixCls:n,cls:_,anchorRef:r,lineSliderRef:o}}});function cRe(e,t,n,r,o,a){return H(),J("div",{ref:"anchorRef",class:ae(e.cls)},[e.lineLess?Re("v-if",!0):(H(),J("div",{key:0,ref:"lineSliderRef",class:ae(`${e.prefixCls}-line-slider`)},null,2)),I("ul",{class:ae(`${e.prefixCls}-list`)},[ct(e.$slots,"default")],2)],2)}var R8=Oe(uRe,[["render",cRe]]);const dRe=_e({name:"AnchorLink",props:{title:String,href:String},setup(e){const t=Ae("anchor"),n=`${t}-link`,r=fe(),o=In(dfe,void 0);gn(()=>{e.href&&r.value&&o?.addLink(e.href,r.value)});const a=F(()=>[`${n}-item`,{[`${n}-active`]:o?.currentLink===e.href}]);return{prefixCls:t,linkCls:n,cls:a,linkRef:r,handleClick:l=>o?.handleClick(l,e.href)}}}),fRe=["href"];function hRe(e,t,n,r,o,a){return H(),J("li",{ref:"linkRef",class:ae(e.cls)},[I("a",{class:ae(e.linkCls),href:e.href,onClick:t[0]||(t[0]=(...s)=>e.handleClick&&e.handleClick(...s))},[ct(e.$slots,"default",{},()=>[ze(Be(e.title),1)])],10,fRe),e.$slots.sublist?(H(),J("ul",{key:0,class:ae(`${e.prefixCls}-sublist`)},[ct(e.$slots,"sublist")],2)):Re("v-if",!0)],2)}var DT=Oe(dRe,[["render",hRe]]);const pRe=Object.assign(R8,{Link:DT,install:(e,t)=>{Wn(e,t);const n=Hn(t);e.component(n+R8.name,R8),e.component(n+DT.name,DT)}}),D3=["info","success","warning","error"],cv=["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"],vRe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-loading`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),mRe=["stroke-width","stroke-linecap","stroke-linejoin"];function gRe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,mRe)}var M8=Oe(vRe,[["render",gRe]]);const za=Object.assign(M8,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+M8.name,M8)}}),yRe=_e({name:"FeedbackIcon",components:{IconLoading:za,IconCheckCircleFill:jh,IconExclamationCircleFill:kf,IconCloseCircleFill:Fg},props:{type:{type:String}},setup(e){const t=Ae("feedback-icon");return{cls:F(()=>[t,`${t}-status-${e.type}`])}}});function bRe(e,t,n,r,o,a){const s=Pe("icon-loading"),l=Pe("icon-check-circle-fill"),c=Pe("icon-exclamation-circle-fill"),f=Pe("icon-close-circle-fill");return H(),J("span",{class:ae(e.cls)},[e.type==="validating"?(H(),Ye(s,{key:0})):e.type==="success"?(H(),Ye(l,{key:1})):e.type==="warning"?(H(),Ye(c,{key:2})):e.type==="error"?(H(),Ye(f,{key:3})):Re("v-if",!0)],2)}var Dk=Oe(yRe,[["render",bRe]]);const oz={key:"Enter"},ffe={key:"Backspace",code:"Backspace"},_Re={code:"ArrowLeft"},SRe={code:"ArrowRight"},ya=(e,t)=>{const n={...e};for(const r of t)r in n&&delete n[r];return n};function pf(e,t){const n={};return t.forEach(r=>{const o=r;r in e&&(n[o]=e[o])}),n}const JF=Symbol("ArcoFormItemContext"),sz=Symbol("ArcoFormContext"),wo=({size:e,disabled:t,error:n,uninject:r}={})=>{const o=r?{}:In(JF,{}),a=F(()=>{var h;return(h=e?.value)!=null?h:o.size}),s=F(()=>t?.value||o.disabled),l=F(()=>n?.value||o.error),c=Cu(o,"feedback"),f=Cu(o,"eventHandlers");return{formItemCtx:o,mergedSize:a,mergedDisabled:s,mergedError:l,feedback:c,eventHandlers:f}},_a=(e,{defaultValue:t="medium"}={})=>{const n=In(Va,void 0);return{mergedSize:F(()=>{var o,a;return(a=(o=e?.value)!=null?o:n?.size)!=null?a:t})}};function hfe(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 f=a[l-1],h=o.indexOf(f,l-1);h!==-1&&(c=h+1)}e.value.setSelectionRange(c,c)}return[n,r]}var NS=_e({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}=Qt(e),c=Ae("input"),f=fe(),{mergedSize:h,mergedDisabled:p,mergedError:m,feedback:g,eventHandlers:b}=wo({size:o,disabled:a,error:s}),{mergedSize:S}=_a(h),[k,C]=hfe(f),x=fe(e.defaultValue),E=F(()=>{var ke;return(ke=e.modelValue)!=null?ke:x.value});let _=E.value;Dt(l,ke=>{(kn(ke)||Sl(ke))&&(x.value="")}),Dt(E,(ke,Se)=>{_=Se});const A=fe(!1),R=F(()=>e.allowClear&&!e.readonly&&!p.value&&!!E.value),M=fe(!1),D=fe(""),N=ke=>{var Se;return _n(e.wordLength)?e.wordLength(ke):(Se=ke.length)!=null?Se:0},L=F(()=>N(E.value)),B=F(()=>m.value||!!(fr(e.maxLength)&&e.maxLength.errorOnly&&L.value>W.value)),U=F(()=>fr(e.maxLength)&&!!e.maxLength.errorOnly),W=F(()=>fr(e.maxLength)?e.maxLength.length:e.maxLength),V=F(()=>{const ke=N("a");return Math.floor(W.value/ke)}),z=ke=>{var Se,Ne;W.value&&!U.value&&N(ke)>W.value&&(ke=(Ne=(Se=e.wordSlice)==null?void 0:Se.call(e,ke,W.value))!=null?Ne:ke.slice(0,V.value)),x.value=ke,t("update:modelValue",ke)},Y=ke=>{f.value&&ke.target!==f.value&&(ke.preventDefault(),f.value.focus())},oe=(ke,Se)=>{var Ne,qe;ke!==_&&(_=ke,t("change",ke,Se),(qe=(Ne=b.value)==null?void 0:Ne.onChange)==null||qe.call(Ne,Se))},ne=ke=>{var Se,Ne;A.value=!0,t("focus",ke),(Ne=(Se=b.value)==null?void 0:Se.onFocus)==null||Ne.call(Se,ke)},X=ke=>{var Se,Ne;A.value=!1,oe(E.value,ke),t("blur",ke),(Ne=(Se=b.value)==null?void 0:Se.onBlur)==null||Ne.call(Se,ke)},K=ke=>{var Se,Ne,qe;const{value:Je,selectionStart:ot,selectionEnd:yt}=ke.target;if(ke.type==="compositionend"){if(M.value=!1,D.value="",W.value&&!U.value&&L.value>=W.value&&N(Je)>W.value&&ot===yt){re();return}z(Je),t("input",Je,ke),(Ne=(Se=b.value)==null?void 0:Se.onInput)==null||Ne.call(Se,ke),re()}else M.value=!0,D.value=E.value+((qe=ke.data)!=null?qe:"")},re=()=>{k(),yn(()=>{f.value&&E.value!==f.value.value&&(f.value.value=E.value,C())})},ee=ke=>{var Se,Ne;const{value:qe}=ke.target;if(!M.value){if(W.value&&!U.value&&L.value>=W.value&&N(qe)>W.value&&ke.inputType==="insertText"){re();return}z(qe),t("input",qe,ke),(Ne=(Se=b.value)==null?void 0:Se.onInput)==null||Ne.call(Se,ke),re()}},le=ke=>{z(""),oe("",ke),t("clear",ke)},Q=ke=>{const Se=ke.key||ke.code;!M.value&&Se===oz.key&&(oe(E.value,ke),t("pressEnter",ke))},ye=F(()=>[`${c}-outer`,`${c}-outer-size-${S.value}`,{[`${c}-outer-has-suffix`]:!!n.suffix,[`${c}-outer-disabled`]:p.value}]),be=F(()=>[`${c}-wrapper`,{[`${c}-error`]:B.value,[`${c}-disabled`]:p.value,[`${c}-focus`]:A.value}]),ve=F(()=>[c,`${c}-size-${S.value}`]),Ce=F(()=>ya(r,cv)),De=F(()=>pf(r,cv)),We=F(()=>{const ke={...De.value,...e.inputAttrs};return B.value&&(ke["aria-invalid"]=!0),ke}),Xe=ke=>{var Se;return O("span",Bt({class:be.value,onMousedown:Y},ke?void 0:Ce.value),[n.prefix&&O("span",{class:`${c}-prefix`},[n.prefix()]),O("input",Bt({ref:f,class:ve.value,value:E.value,type:e.type,placeholder:e.placeholder,readonly:e.readonly,disabled:p.value,onInput:ee,onKeydown:Q,onFocus:ne,onBlur:X,onCompositionstart:K,onCompositionupdate:K,onCompositionend:K},We.value),null),R.value&&O(ko,{prefix:c,class:`${c}-clear-btn`,onClick:le},{default:()=>[O(ms,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,ze("/"),W.value]),(Se=n.suffix)==null?void 0:Se.call(n),!!g.value&&O(Dk,{type:g.value},null)])])};return{inputRef:f,render:()=>n.prepend||n.append||e.prepend||e.append?O("span",Bt({class:ye.value},Ce.value),[(n.prepend||e.prepend)&&O("span",{class:`${c}-prepend`},[n.prepend?n.prepend():e.prepend]),Xe(!0),(n.append||e.append)&&O("span",{class:`${c}-append`},[n.append?n.append():e.append])]):Xe()}},methods:{focus(){var e;(e=this.inputRef)==null||e.focus()},blur(){var e;(e=this.inputRef)==null||e.blur()}},render(){return this.render()}});const kRe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-search`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),wRe=["stroke-width","stroke-linecap","stroke-linejoin"];function CRe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,wRe)}var D8=Oe(kRe,[["render",CRe]]);const bg=Object.assign(D8,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+D8.name,D8)}}),pfe=Symbol("ArcoButtonGroup"),xRe=_e({name:"Button",components:{IconLoading:za},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}=Qt(e),o=Ae("btn"),a=In(pfe,void 0),s=F(()=>{var g;return(g=n.value)!=null?g:a?.size}),l=F(()=>!!(r.value||a?.disabled)),{mergedSize:c,mergedDisabled:f}=wo({size:s,disabled:l}),{mergedSize:h}=_a(c),p=F(()=>{var g,b,S,k,C,x;return[o,`${o}-${(b=(g=e.type)!=null?g:a?.type)!=null?b:"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`]:f.value,[`${o}-link`]:is(e.href)}]});return{prefixCls:o,cls:p,mergedDisabled:f,handleClick:g=>{if(e.disabled||e.loading){g.preventDefault();return}t("click",g)}}}}),ERe=["href"],TRe=["type","disabled","autofocus"];function ARe(e,t,n,r,o,a){const s=Pe("icon-loading");return e.href?(H(),J("a",{key:0,class:ae([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?(H(),J("span",{key:0,class:ae(`${e.prefixCls}-icon`)},[e.loading?(H(),Ye(s,{key:0,spin:"true"})):ct(e.$slots,"icon",{key:1})],2)):Re("v-if",!0),ct(e.$slots,"default")],10,ERe)):(H(),J("button",{key:1,class:ae([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?(H(),J("span",{key:0,class:ae(`${e.prefixCls}-icon`)},[e.loading?(H(),Ye(s,{key:0,spin:!0})):ct(e.$slots,"icon",{key:1})],2)):Re("v-if",!0),ct(e.$slots,"default")],10,TRe))}var O8=Oe(xRe,[["render",ARe]]);const IRe=_e({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}=Qt(e),s=Ae("btn-group");return Xr(pfe,qt({type:t,size:n,shape:a,status:r,disabled:o})),{prefixCls:s}}});function LRe(e,t,n,r,o,a){return H(),J("div",{class:ae(e.prefixCls)},[ct(e.$slots,"default")],2)}var BS=Oe(IRe,[["render",LRe]]);const Ho=Object.assign(O8,{Group:BS,install:(e,t)=>{Wn(e,t);const n=Hn(t);e.component(n+O8.name,O8),e.component(n+BS.name,BS)}});var OT=_e({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}=Qt(e),o=Ae("input-search"),{mergedSize:a}=_a(r),s=fe(),l=p=>{s.value.inputRef&&t("search",s.value.inputRef.value,p)},c=()=>{var p;return O(Ut,null,[e.loading?O(za,null,null):O(ko,{onClick:l},{default:()=>[O(bg,null,null)]}),(p=n.suffix)==null?void 0:p.call(n)])},f=()=>{var p;let m={};return e.buttonText||n["button-default"]||n["button-icon"]?m={default:(p=n["button-default"])!=null?p:e.buttonText?()=>e.buttonText:void 0,icon:n["button-icon"]}:m={icon:()=>O(bg,null,null)},O(Ho,Bt({type:"primary",class:`${o}-btn`,disabled:e.disabled,size:a.value,loading:e.loading},e.buttonProps,{onClick:l}),m)};return{inputRef:s,render:()=>O(NS,{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?f: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 PRe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-eye`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),RRe=["stroke-width","stroke-linecap","stroke-linejoin"];function MRe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,RRe)}var $8=Oe(PRe,[["render",MRe]]);const dv=Object.assign($8,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+$8.name,$8)}}),DRe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-eye-invisible`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),ORe=["stroke-width","stroke-linecap","stroke-linejoin"];function $Re(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,ORe)}var N8=Oe(DRe,[["render",$Re]]);const vfe=Object.assign(N8,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+N8.name,N8)}});function ja(e){const t=fe(e);return[t,r=>{t.value=r}]}function aa(e,t){const{value:n}=Qt(t),[r,o]=ja(kn(n.value)?e:n.value);return Dt(n,s=>{kn(s)&&o(void 0)}),[F(()=>kn(n.value)?r.value:n.value),o,r]}const NRe=_e({name:"InputPassword",components:{IconEye:dv,IconEyeInvisible:vfe,AIconHover:ko,AInput:NS},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}=Qt(e),o=fe(),a=()=>{c(!s.value)},[s,l]=aa(r.value,qt({value:n})),c=f=>{f!==s.value&&(t("visibility-change",f),t("update:visibility",f),l(f))};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 BRe(e,t,n,r,o,a){const s=Pe("icon-eye"),l=Pe("icon-eye-invisible"),c=Pe("a-icon-hover"),f=Pe("a-input");return H(),Ye(f,{ref:"inputRef",type:e.mergedVisible?"password":"text"},_o({_:2},[e.$slots.prepend?{name:"prepend",fn:de(()=>[ct(e.$slots,"prepend")]),key:"0"}:void 0,e.$slots.prefix?{name:"prefix",fn:de(()=>[ct(e.$slots,"prefix")]),key:"1"}:void 0,e.invisibleButton||e.$slots.suffix?{name:"suffix",fn:de(()=>[e.invisibleButton?(H(),Ye(c,{key:0,onClick:e.handleInvisible,onMousedown:t[0]||(t[0]=rs(()=>{},["prevent"])),onMouseup:t[1]||(t[1]=rs(()=>{},["prevent"]))},{default:de(()=>[e.mergedVisible?(H(),Ye(l,{key:1})):(H(),Ye(s,{key:0}))]),_:1},8,["onClick"])):Re("v-if",!0),ct(e.$slots,"suffix")]),key:"2"}:void 0,e.$slots.append?{name:"append",fn:de(()=>[ct(e.$slots,"append")]),key:"3"}:void 0]),1032,["type"])}var $T=Oe(NRe,[["render",BRe]]);const FRe=_e({name:"InputGroup",setup(){return{prefixCls:Ae("input-group")}}});function jRe(e,t,n,r,o,a){return H(),J("div",{class:ae(e.prefixCls)},[ct(e.$slots,"default")],2)}var zy=Oe(FRe,[["render",jRe]]);const Ev=Object.assign(NS,{Search:OT,Password:$T,Group:zy,install:(e,t)=>{Wn(e,t);const n=Hn(t);e.component(n+NS.name,NS),e.component(n+zy.name,zy),e.component(n+OT.name,OT),e.component(n+$T.name,$T)}}),URe=()=>{const{height:e,width:t}=afe();return{width:Math.min(t,window.innerWidth),height:Math.min(e,window.innerHeight)}},Ute=(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}},VRe=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"}},tE=(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}},zRe=(e,t,{containerRect:n,triggerRect:r,popupRect:o,offset:a,translate:s})=>{const l=VRe(e),c=URe(),f={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"&&f.top<0)if(r.top>o.height)t.top=-n.top;else{const p=dS("bottom",r,o,{offset:a,translate:s});c.height-(n.top+p.top+o.height)>0&&(h=tE(e,"bottom"),t.top=p.top)}if(l==="bottom"&&f.bottom<0)if(c.height-r.bottom>o.height)t.top=-n.top+(c.height-o.height);else{const p=dS("top",r,o,{offset:a,translate:s});n.top+p.top>0&&(h=tE(e,"top"),t.top=p.top)}if(l==="left"&&f.left<0)if(r.left>o.width)t.left=-n.left;else{const p=dS("right",r,o,{offset:a,translate:s});c.width-(n.left+p.left+o.width)>0&&(h=tE(e,"right"),t.left=p.left)}if(l==="right"&&f.right<0)if(c.width-r.right>o.width)t.left=-n.left+(c.width-o.width);else{const p=dS("left",r,o,{offset:a,translate:s});n.left+p.left>0&&(h=tE(e,"left"),t.left=p.left)}return(l==="top"||l==="bottom")&&(f.left<0?t.left=-n.left:f.right<0&&(t.left=-n.left+(c.width-o.width))),(l==="left"||l==="right")&&(f.top<0?t.top=-n.top:f.bottom<0&&(t.top=-n.top+(c.height-o.height))),{popupPosition:t,position:h}},dS=(e,t,n,{offset:r=0,translate:o=[0,0]}={})=>{var a;const s=(a=Qn(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}}},HRe=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}`},WRe=(e,t,n,r,{offset:o=0,translate:a=[0,0],customStyle:s={},autoFitPosition:l=!1}={})=>{let c=e,f=dS(e,n,r,{offset:o,translate:a});if(l){const p=zRe(e,f,{containerRect:t,popupRect:r,triggerRect:n,offset:o,translate:a});f=p.popupPosition,c=p.position}return{style:{left:`${f.left}px`,top:`${f.top}px`,...s},position:c}},GRe=(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}},KRe=e=>e.scrollHeight>e.offsetHeight||e.scrollWidth>e.offsetWidth,Vte=e=>{var t;const n=[];let r=e;for(;r&&r!==document.documentElement;)KRe(r)&&n.push(r),r=(t=r.parentElement)!=null?t:void 0;return n},mfe=()=>{const e={},t=fe(),n=()=>{const r=nfe(e.value);r!==t.value&&(t.value=r)};return gn(()=>n()),Ga(()=>n()),{children:e,firstElement:t}};var fv=_e({name:"ResizeObserver",props:{watchOnUpdated:Boolean},emits:["resize"],setup(e,{emit:t,slots:n}){const{children:r,firstElement:o}=mfe();let a;const s=c=>{c&&(a=new A3(f=>{const h=f[0];t("resize",h)}),a.observe(c))},l=()=>{a&&(a.disconnect(),a=null)};return Dt(o,c=>{a&&l(),c&&s(c)}),Fo(()=>{a&&l()}),()=>{var c;return r.value=(c=n.default)==null?void 0:c.call(n),r.value}}});function hd(e,t){const n=fe(e[t]);return Ga(()=>{const r=e[t];n.value!==r&&(n.value=r)}),n}const zte=Symbol("ArcoTrigger"),qRe=1e3,YRe=5e3,XRe=1;class ZRe{constructor(){this.popupStack={popup:new Set,dialog:new Set,message:new Set},this.getNextZIndex=t=>(t==="message"?Array.from(this.popupStack.message).pop()||YRe:Array.from(this.popupStack.popup).pop()||qRe)+XRe,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 B8=new ZRe;function H1(e,{visible:t,runOnMounted:n}={}){const r=fe(0),o=()=>{r.value=B8.add(e)},a=()=>{B8.delete(r.value,e)},s=()=>e==="dialog"?B8.isLastDialog(r.value):!1;return Dt(()=>t?.value,l=>{l?o():a()},{immediate:!0}),n&&(gn(()=>{o()}),Fo(()=>{a()})),{zIndex:M2(r),open:o,close:a,isLastDialog:s}}const QRe=({elementRef:e,onResize:t})=>{let n;return{createResizeObserver:()=>{e.value&&(n=new A3(a=>{const s=a[0];_n(t)&&t(s)}),n.observe(e.value))},destroyResizeObserver:()=>{n&&(n.disconnect(),n=null)}}};var az=_e({name:"ClientOnly",setup(e,{slots:t}){const n=fe(!1);return gn(()=>n.value=!0),()=>{var r;return n.value?(r=t.default)==null?void 0:r.call(t):null}}});const lz=({popupContainer:e,visible:t,defaultContainer:n="body",documentContainer:r})=>{const o=fe(e.value),a=fe(),s=()=>{const l=Qd(e.value),c=l?e.value:n,f=l??(r?document.documentElement:Qd(n));c!==o.value&&(o.value=c),f!==a.value&&(a.value=f)};return gn(()=>s()),Dt(t,l=>{o.value!==e.value&&l&&s()}),{teleportContainer:o,containerRef:a}},JRe=["onClick","onMouseenter","onMouseleave","onFocusin","onFocusout","onContextmenu"];var F8=_e({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}=Qt(e),a=Ae("trigger"),s=F(()=>ya(r,JRe)),l=In(Va,void 0),c=F(()=>[].concat(e.trigger)),f=new Set,h=In(zte,void 0),{children:p,firstElement:m}=mfe(),g=fe(),b=fe(e.defaultPopupVisible),S=fe(e.position),k=fe({}),C=fe({}),x=fe({}),E=fe(),_=fe({top:0,left:0});let A=null,R=null;const M=F(()=>{var wt;return(wt=e.popupVisible)!=null?wt:b.value}),{teleportContainer:D,containerRef:N}=lz({popupContainer:o,visible:M,documentContainer:!0}),{zIndex:L}=H1("popup",{visible:M});let B=0,U=!1,W=!1;const V=()=>{B&&(window.clearTimeout(B),B=0)},z=wt=>{if(e.alignPoint){const{pageX:Ge,pageY:Ue}=wt;_.value={top:Ue,left:Ge}}},Y=()=>{if(!m.value||!g.value||!N.value)return;const wt=N.value.getBoundingClientRect(),Ge=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}:Ute(m.value,wt),Ue=()=>Ute(g.value,wt),st=Ue(),{style:kt,position:zt}=WRe(e.position,wt,Ge,st,{offset:e.popupOffset,translate:e.popupTranslate,customStyle:e.popupStyle,autoFitPosition:e.autoFitPosition});e.autoFitTransformOrigin&&(C.value={transformOrigin:HRe(zt)}),e.autoFitPopupMinWidth?kt.minWidth=`${Ge.width}px`:e.autoFitPopupWidth&&(kt.width=`${Ge.width}px`),S.value!==zt&&(S.value=zt),k.value=kt,e.showArrow&&yn(()=>{x.value=GRe(zt,Ge,Ue(),{customStyle:e.arrowStyle})})},oe=(wt,Ge)=>{if(wt===M.value&&B===0)return;const Ue=()=>{b.value=wt,t("update:popupVisible",wt),t("popupVisibleChange",wt),wt&&yn(()=>{Y()})};wt||(A=null,R=null),Ge?(V(),wt!==M.value&&(B=window.setTimeout(Ue,Ge))):Ue()},ne=wt=>{var Ge;(Ge=r.onClick)==null||Ge.call(r,wt),!(e.disabled||M.value&&!e.clickToClose)&&(c.value.includes("click")?(z(wt),oe(!M.value)):c.value.includes("contextMenu")&&M.value&&oe(!1))},X=wt=>{var Ge;(Ge=r.onMouseenter)==null||Ge.call(r,wt),!(e.disabled||!c.value.includes("hover"))&&(z(wt),oe(!0,e.mouseEnterDelay))},K=wt=>{h?.onMouseenter(wt),X(wt)},re=wt=>{var Ge;(Ge=r.onMouseleave)==null||Ge.call(r,wt),!(e.disabled||!c.value.includes("hover"))&&oe(!1,e.mouseLeaveDelay)},ee=wt=>{h?.onMouseleave(wt),re(wt)},le=wt=>{var Ge;(Ge=r.onFocusin)==null||Ge.call(r,wt),!(e.disabled||!c.value.includes("focus"))&&oe(!0,e.focusDelay)},Q=wt=>{var Ge;(Ge=r.onFocusout)==null||Ge.call(r,wt),!(e.disabled||!c.value.includes("focus"))&&e.blurToClose&&oe(!1)},ye=wt=>{var Ge;(Ge=r.onContextmenu)==null||Ge.call(r,wt),!(e.disabled||!c.value.includes("contextMenu")||M.value&&!e.clickToClose)&&(z(wt),oe(!M.value),wt.preventDefault())};Xr(zte,qt({onMouseenter:K,onMouseleave:ee,addChildRef:wt=>{f.add(wt),h?.addChildRef(wt)},removeChildRef:wt=>{f.delete(wt),h?.removeChildRef(wt)}}));const Ce=()=>{Yi(document.documentElement,"mousedown",Xe),U=!1},De=hd(n,"content"),We=F(()=>{var wt;return e.hideEmpty&&h5e((wt=De.value)==null?void 0:wt.call(De))}),Xe=wt=>{var Ge,Ue,st;if(!((Ge=m.value)!=null&&Ge.contains(wt.target)||(Ue=g.value)!=null&&Ue.contains(wt.target))){for(const kt of f)if((st=kt.value)!=null&&st.contains(wt.target))return;Ce(),oe(!1)}},He=(wt,Ge)=>{const[Ue,st]=wt,{scrollTop:kt,scrollLeft:zt}=Ge;return Math.abs(kt-Ue)>=e.scrollToCloseDistance||Math.abs(zt-st)>=e.scrollToCloseDistance},ke=yg(wt=>{if(M.value)if(e.scrollToClose||l?.scrollToClose){const Ge=wt.target;A||(A=[Ge.scrollTop,Ge.scrollLeft]),He(A,Ge)?oe(!1):Y()}else Y()}),Se=()=>{Yi(window,"scroll",Ne),W=!1},Ne=yg(wt=>{const Ge=wt.target.documentElement;R||(R=[Ge.scrollTop,Ge.scrollLeft]),He(R,Ge)&&(oe(!1),Se())}),qe=()=>{M.value&&Y()},Je=()=>{qe(),t("resize")},ot=wt=>{e.preventFocus&&wt.preventDefault()};h?.addChildRef(g);const yt=F(()=>M.value?e.openedClass:void 0);let at;Dt(M,wt=>{if(e.clickOutsideToClose&&(!wt&&U?Ce():wt&&!U&&(Ti(document.documentElement,"mousedown",Xe),U=!0)),(e.scrollToClose||l?.scrollToClose)&&(Ti(window,"scroll",Ne),W=!0),e.updateAtScroll||l?.updateAtScroll){if(wt){at=Vte(m.value);for(const Ge of at)Ge.addEventListener("scroll",ke)}else if(at){for(const Ge of at)Ge.removeEventListener("scroll",ke);at=void 0}}wt&&(Wt.value=!0)}),Dt(()=>[e.autoFitPopupWidth,e.autoFitPopupMinWidth],()=>{M.value&&Y()});const{createResizeObserver:ut,destroyResizeObserver:vt}=QRe({elementRef:N,onResize:qe});gn(()=>{if(ut(),M.value&&(Y(),e.clickOutsideToClose&&!U&&(Ti(document.documentElement,"mousedown",Xe),U=!0),e.updateAtScroll||l?.updateAtScroll)){at=Vte(m.value);for(const wt of at)wt.addEventListener("scroll",ke)}}),Ga(()=>{M.value&&Y()}),UV(()=>{oe(!1)}),Fo(()=>{if(h?.removeChildRef(g),vt(),U&&Ce(),W&&Se(),at){for(const wt of at)wt.removeEventListener("scroll",ke);at=void 0}});const Wt=fe(M.value),Ft=fe(!1),Jt=()=>{Ft.value=!0},an=()=>{Ft.value=!1,M.value&&t("show")},mt=()=>{Ft.value=!1,M.value||(Wt.value=!1,t("hide"))};return()=>{var wt,Ge;return p.value=(Ge=(wt=n.default)==null?void 0:wt.call(n))!=null?Ge:[],efe(p.value,{class:yt.value,onClick:ne,onMouseenter:X,onMouseleave:re,onFocusin:le,onFocusout:Q,onContextmenu:ye}),O(Ut,null,[e.autoFixPosition?O(fv,{onResize:Je},{default:()=>[p.value]}):p.value,O(az,null,{default:()=>[O($g,{to:D.value,disabled:!e.renderToBody},{default:()=>[(!e.unmountOnClose||M.value||Wt.value)&&!We.value&&O(fv,{onResize:qe},{default:()=>[O("div",Bt({ref:g,class:[`${a}-popup`,`${a}-position-${S.value}`],style:{...k.value,zIndex:L.value,pointerEvents:Ft.value?"none":"auto"},"trigger-placement":S.value,onMouseenter:K,onMouseleave:ee,onMousedown:ot},s.value),[O(Is,{name:e.animationName,duration:e.duration,appear:!0,onBeforeEnter:Jt,onAfterEnter:an,onBeforeLeave:Jt,onAfterLeave:mt},{default:()=>{var Ue;return[Ai(O("div",{class:`${a}-popup-wrapper`,style:C.value},[O("div",{class:[`${a}-content`,e.contentClass],style:e.contentStyle},[(Ue=n.content)==null?void 0:Ue.call(n)]),e.showArrow&&O("div",{ref:E,class:[`${a}-arrow`,e.arrowClass],style:x.value},null)]),[[ns,M.value]])]}})])]})]})]})])}}});const la=Object.assign(F8,{install:(e,t)=>{Wn(e,t);const n=Hn(t);e.component(n+F8.name,F8)}}),eMe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-empty`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),tMe=["stroke-width","stroke-linecap","stroke-linejoin"];function nMe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,tMe)}var j8=Oe(eMe,[["render",nMe]]);const uz=Object.assign(j8,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+j8.name,j8)}});var NT=_e({name:"Empty",inheritAttrs:!1,props:{description:String,imgSrc:String,inConfigProvider:{type:Boolean,default:!1}},setup(e,{slots:t,attrs:n}){const r=Ae("empty"),{t:o}=Lo(),a=In(Va,void 0);return()=>{var s,l,c,f;return!e.inConfigProvider&&a?.slots.empty&&!(t.image||e.imgSrc||e.description)?a.slots.empty({component:"empty"}):O("div",Bt({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(uz,null,null)]),O("div",{class:`${r}-description`},[(f=(c=t.default)==null?void 0:c.call(t))!=null?f:e.description||o("empty.description")])])}}});const Uh=Object.assign(NT,{install:(e,t)=>{Wn(e,t);const n=Hn(t);e.component(n+NT.name,NT)}}),rMe=5;var iMe=_e({name:"DotLoading",props:{size:{type:Number}},setup(e){const t=Ae("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(rMe).fill(1).map((r,o)=>O("div",{class:`${t}-item`,key:o,style:n},null))])}}}),U8=_e({name:"Spin",props:{size:{type:Number},loading:Boolean,dot:Boolean,tip:String,hideIcon:{type:Boolean,default:!1}},setup(e,{slots:t}){const n=Ae("spin"),r=In(Va,void 0),o=F(()=>[n,{[`${n}-loading`]:e.loading,[`${n}-with-tip`]:e.tip&&!t.default}]),a=()=>{if(t.icon){const l=Uy(t.icon());if(l)return yl(l,{spin:!0})}return t.element?t.element():e.dot?O(iMe,{size:e.size},null):r?.slots.loading?r.slots.loading():O(za,{spin:!0,size:e.size},null)},s=()=>{var l,c,f;const h=e.size?{fontSize:`${e.size}px`}:void 0,p=!!((l=t.tip)!=null?l:e.tip);return O(Ut,null,[!e.hideIcon&&O("div",{class:`${n}-icon`,style:h},[a()]),p&&O("div",{class:`${n}-tip`},[(f=(c=t.tip)==null?void 0:c.call(t))!=null?f:e.tip])])};return()=>O("div",{class:o.value},[t.default?O(Ut,null,[t.default(),e.loading&&O("div",{class:`${n}-mask`},[O("div",{class:`${n}-mask-icon`},[s()])])]):s()])}});const wd=Object.assign(U8,{install:(e,t)=>{Wn(e,t);const n=Hn(t);e.component(n+U8.name,U8)}}),oMe=_e({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=Ae("scrollbar"),r=fe(!1),o=fe(),a=fe(),s=F(()=>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),f=fe(0),h=F(()=>{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&&(f.value=x[s.value.client]-a.value.getBoundingClientRect()[s.value.direction],c.value=!0,Ti(window,"mousemove",b),Ti(window,"mouseup",S),Ti(window,"contextmenu",S))},m=x=>{var E,_,A,R;if(x.preventDefault(),a.value){const M=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-((R=(A=e.data)==null?void 0:A.thumbSize)!=null?R:0));M!==l.value&&(l.value=M,t("scroll",M))}},g=x=>x<0?0:e.data&&x>e.data.max?e.data.max:x,b=x=>{if(o.value&&a.value){const E=g(x[s.value.client]-o.value.getBoundingClientRect()[s.value.direction]-f.value);E!==l.value&&(l.value=E,t("scroll",E))}},S=()=>{c.value=!1,Yi(window,"mousemove",b),Yi(window,"mouseup",S)},k=x=>{c.value||(x=g(x),x!==l.value&&(l.value=x))},C=F(()=>[`${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:m,setOffset:k}}});function sMe(e,t,n,r,o,a){return H(),Ye(Is,null,{default:de(()=>[I("div",{ref:"trackRef",class:ae([`${e.prefixCls}-track`,`${e.prefixCls}-track-direction-${e.direction}`]),onMousedown:t[1]||(t[1]=rs((...s)=>e.handleTrackClick&&e.handleTrackClick(...s),["self"]))},[I("div",{ref:"thumbRef",class:ae(e.thumbCls),style:je(e.thumbStyle),onMousedown:t[0]||(t[0]=(...s)=>e.handleThumbMouseDown&&e.handleThumbMouseDown(...s))},[I("div",{class:ae(`${e.prefixCls}-thumb-bar`)},null,2)],38)],34)]),_:1})}var aMe=Oe(oMe,[["render",sMe]]);const Hte=20,nE=15,lMe=_e({name:"Scrollbar",components:{ResizeObserver:fv,Thumb:aMe},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=Ae("scrollbar"),r=fe(),o=fe(),a=fe(),s=fe(),l=fe(),c=fe(!1),f=fe(!1),h=F(()=>c.value&&!e.disableHorizontal),p=F(()=>f.value&&!e.disableVertical),m=fe(!1),g=()=>{var _,A,R,M,D,N;if(r.value){const{clientWidth:L,clientHeight:B,offsetWidth:U,offsetHeight:W,scrollWidth:V,scrollHeight:z,scrollTop:Y,scrollLeft:oe}=r.value;c.value=V>L,f.value=z>B,m.value=h.value&&p.value;const ne=e.type==="embed"&&m.value?U-nE:U,X=e.type==="embed"&&m.value?W-nE:W,K=Math.round(ne/Math.min(V/L,ne/Hte)),re=ne-K,ee=(V-L)/re,le=Math.round(X/Math.min(z/B,X/Hte)),Q=X-le,ye=(z-B)/Q;if(o.value={ratio:ee,thumbSize:K,max:re},a.value={ratio:ye,thumbSize:le,max:Q},Y>0){const be=Math.round(Y/((A=(_=a.value)==null?void 0:_.ratio)!=null?A:1));(R=l.value)==null||R.setOffset(be)}if(oe>0){const be=Math.round(oe/((D=(M=a.value)==null?void 0:M.ratio)!=null?D:1));(N=s.value)==null||N.setOffset(be)}}};gn(()=>{g()});const b=()=>{g()},S=_=>{var A,R,M,D,N,L;if(r.value){if(h.value&&!e.disableHorizontal){const B=Math.round(r.value.scrollLeft/((R=(A=o.value)==null?void 0:A.ratio)!=null?R:1));(M=s.value)==null||M.setOffset(B)}if(p.value&&!e.disableVertical){const B=Math.round(r.value.scrollTop/((N=(D=a.value)==null?void 0:D.ratio)!=null?N:1));(L=l.value)==null||L.setOffset(B)}}t("scroll",_)},k=_=>{var A,R;r.value&&r.value.scrollTo({left:_*((R=(A=o.value)==null?void 0:A.ratio)!=null?R:1)})},C=_=>{var A,R;r.value&&r.value.scrollTo({top:_*((R=(A=a.value)==null?void 0:A.ratio)!=null?R:1)})},x=F(()=>{const _={};return e.type==="track"&&(h.value&&(_.paddingBottom=`${nE}px`),p.value&&(_.paddingRight=`${nE}px`)),[_,e.outerStyle]}),E=F(()=>[`${n}`,`${n}-type-${e.type}`,{[`${n}-both`]:m.value},e.outerClass]);return{prefixCls:n,cls:E,style:x,containerRef:r,horizontalThumbRef:s,verticalThumbRef:l,horizontalData:o,verticalData:a,isBoth:m,hasHorizontalScrollbar:h,hasVerticalScrollbar:p,handleResize:b,handleScroll:S,handleHorizontalScroll:k,handleVerticalScroll:C}},methods:{scrollTo(e,t){var n,r;fr(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 uMe(e,t,n,r,o,a){const s=Pe("ResizeObserver"),l=Pe("thumb");return H(),J("div",{class:ae(e.cls),style:je(e.style)},[O(s,{onResize:e.handleResize},{default:de(()=>[I("div",Bt({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(()=>[ct(e.$slots,"default")]),_:3},8,["onResize"])],16)]),_:3},8,["onResize"]),!e.hide&&e.hasHorizontalScrollbar?(H(),Ye(l,{key:0,ref:"horizontalThumbRef",data:e.horizontalData,direction:"horizontal",both:e.isBoth,onScroll:e.handleHorizontalScroll},null,8,["data","both","onScroll"])):Re("v-if",!0),!e.hide&&e.hasVerticalScrollbar?(H(),Ye(l,{key:1,ref:"verticalThumbRef",data:e.verticalData,direction:"vertical",both:e.isBoth,onScroll:e.handleVerticalScroll},null,8,["data","both","onScroll"])):Re("v-if",!0)],6)}var V8=Oe(lMe,[["render",uMe]]);const Cd=Object.assign(V8,{install:(e,t)=>{Wn(e,t);const n=Hn(t);e.component(n+V8.name,V8)}}),Ay=e=>{const t=fe(),n=()=>qde(t.value)?t.value.$refs[e]:t.value,r=fe();return gn(()=>{r.value=n()}),Dt([t],()=>{r.value=n()}),{componentRef:t,elementRef:r}},O3=e=>{const t=F(()=>!!e.value),n=F(()=>{if(e.value)return{type:"embed",...bl(e.value)?void 0:e.value}});return{displayScrollbar:t,scrollbarProps:n}},cMe=_e({name:"SelectDropdown",components:{ScrollbarComponent:Cd,Empty:Uh,Spin:wd},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}=Qt(e),l=Ae("select-dropdown"),c=In(Va,void 0),f=(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}=Ay("containerRef"),{displayScrollbar:m,scrollbarProps:g}=O3(s),b=k=>{const{scrollTop:C,scrollHeight:x,offsetHeight:E}=k.target;x-(C+E)<=e.bottomOffset&&t("reachBottom",k),t("scroll",k)},S=F(()=>[l,{[`${l}-has-header`]:!!n.header,[`${l}-has-footer`]:!!n.footer}]);return{prefixCls:l,SelectEmpty:f,cls:S,wrapperRef:p,wrapperComRef:h,handleScroll:b,displayScrollbar:m,scrollbarProps:g}}});function dMe(e,t,n,r,o,a){const s=Pe("spin");return H(),J("div",{class:ae(e.cls)},[e.$slots.header&&(!e.empty||e.showHeaderOnEmpty)?(H(),J("div",{key:0,class:ae(`${e.prefixCls}-header`)},[ct(e.$slots,"header")],2)):Re("v-if",!0),e.loading?(H(),Ye(s,{key:1,class:ae(`${e.prefixCls}-loading`)},null,8,["class"])):e.empty?(H(),J("div",{key:2,class:ae(`${e.prefixCls}-empty`)},[ct(e.$slots,"empty",{},()=>[(H(),Ye(Fa(e.SelectEmpty?e.SelectEmpty:"Empty")))])],2)):Re("v-if",!0),e.virtualList&&!e.loading&&!e.empty?ct(e.$slots,"virtual-list",{key:3}):Re("v-if",!0),e.virtualList?Re("v-if",!0):Ai((H(),Ye(Fa(e.displayScrollbar?"ScrollbarComponent":"div"),Bt({key:4,ref:"wrapperComRef",class:`${e.prefixCls}-list-wrapper`},e.scrollbarProps,{onScroll:e.handleScroll}),{default:de(()=>[I("ul",{class:ae(`${e.prefixCls}-list`)},[ct(e.$slots,"default")],2)]),_:3},16,["class","onScroll"])),[[ns,!e.loading&&!e.empty]]),e.$slots.footer&&(!e.empty||e.showFooterOnEmpty)?(H(),J("div",{key:5,class:ae(`${e.prefixCls}-footer`)},[ct(e.$slots,"footer")],2)):Re("v-if",!0)],2)}var cz=Oe(cMe,[["render",dMe]]),Wte=_e({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 gfe=Symbol("ArcoCheckboxGroup");var BT=_e({name:"Checkbox",components:{IconCheck:Wte,IconHover:ko},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}=Qt(e),a=Ae("checkbox"),s=fe(),l=e.uninjectGroupContext?void 0:In(gfe,void 0),c=l?.name==="ArcoCheckboxGroup",{mergedDisabled:f,eventHandlers:h}=wo({disabled:r}),p=fe(e.defaultChecked),m=F(()=>{var _;return c?l?.computedValue:(_=e.modelValue)!=null?_:p.value}),g=F(()=>{var _;return Qn(m.value)?m.value.includes((_=e.value)!=null?_:!0):m.value}),b=F(()=>l?.disabled||f?.value||!g.value&&l?.isMaxed),S=_=>{_.stopPropagation()},k=_=>{var A,R,M,D;const{checked:N}=_.target;let L=N;if(Qn(m.value)){const B=new Set(m.value);N?B.add((A=e.value)!=null?A:!0):B.delete((R=e.value)!=null?R:!0),L=Array.from(B)}p.value=N,c&&Qn(L)?l?.handleChange(L,_):(t("update:modelValue",L),t("change",L,_),(D=(M=h.value)==null?void 0:M.onChange)==null||D.call(M,_)),yn(()=>{s.value&&s.value.checked!==g.value&&(s.value.checked=g.value)})},C=F(()=>[a,{[`${a}-checked`]:g.value,[`${a}-indeterminate`]:e.indeterminate,[`${a}-disabled`]:b.value}]),x=_=>{var A,R;(R=(A=h.value)==null?void 0:A.onFocus)==null||R.call(A,_)},E=_=>{var A,R;(R=(A=h.value)==null?void 0:A.onBlur)==null||R.call(A,_)};return Dt(o,_=>{(kn(_)||Sl(_))&&(p.value=!1)}),Dt(m,_=>{var A;let R;Qn(_)?R=_.includes((A=e.value)!=null?A:!0):R=_,p.value!==R&&(p.value=R),s.value&&s.value.checked!==R&&(s.value.checked=R)}),()=>{var _,A,R,M;return O("label",{"aria-disabled":b.value,class:C.value},[O("input",{ref:s,type:"checkbox",checked:g.value,value:e.value,class:`${a}-target`,disabled:b.value,onClick:S,onChange:k,onFocus:x,onBlur:E},null),(M=(R=(A=n.checkbox)!=null?A:(_=l?.slots)==null?void 0:_.checkbox)==null?void 0:R({checked:g.value,disabled:b.value}))!=null?M:O(ko,{class:`${a}-icon-hover`,disabled:b.value||g.value},{default:()=>[O("div",{class:`${a}-icon`},[g.value&&O(Wte,{class:`${a}-icon-check`},null)])]}),n.default&&O("span",{class:`${a}-label`},[n.default()])])}}}),FT=_e({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}=Qt(e),o=Ae("checkbox-group"),{mergedDisabled:a,eventHandlers:s}=wo({disabled:r}),l=fe(e.defaultValue),c=F(()=>Qn(e.modelValue)?e.modelValue:l.value),f=F(()=>e.max===void 0?!1:c.value.length>=e.max),h=F(()=>{var b;return((b=e.options)!=null?b:[]).map(S=>is(S)||Ke(S)?{label:S,value:S}:S)});Xr(gfe,qt({name:"ArcoCheckboxGroup",computedValue:c,disabled:a,isMaxed:f,slots:n,handleChange:(b,S)=>{var k,C;l.value=b,t("update:modelValue",b),t("change",b,S),(C=(k=s.value)==null?void 0:k.onChange)==null||C.call(k,S)}}));const m=F(()=>[o,`${o}-direction-${e.direction}`]);Dt(()=>e.modelValue,b=>{Qn(b)?l.value=[...b]:l.value=[]});const g=()=>h.value.map(b=>{const S=c.value.includes(b.value);return O(BT,{key:b.value,value:b.value,disabled:b.disabled||!S&&f.value,indeterminate:b.indeterminate,modelValue:S},{default:()=>[n.label?n.label({data:b}):_n(b.label)?b.label():b.label]})});return()=>{var b;return O("span",{class:m.value},[h.value.length>0?g():(b=n.default)==null?void 0:b.call(n)])}}});const _d=Object.assign(BT,{Group:FT,install:(e,t)=>{Wn(e,t);const n=Hn(t);e.component(n+BT.name,BT),e.component(n+FT.name,FT)}}),yfe=Symbol("ArcoSelectContext"),fMe=e=>fr(e)&&"isGroup"in e,bfe=e=>fr(e)&&"isGroup"in e,hMe=(e,t="value")=>String(fr(e)?e[t]:e),_g=(e,t="value")=>fr(e)?`__arco__option__object__${e[t]}`:e||Ke(e)||is(e)||bl(e)?`__arco__option__${typeof e}-${e}`:"",pMe=e=>e.has("__arco__option__string-"),vMe=(e,{valueKey:t,fieldNames:n,origin:r,index:o=-1})=>{var a;if(fr(e)){const l=e[n.value];return{raw:e,index:o,key:_g(l,t),origin:r,value:l,label:(a=e[n.label])!=null?a:hMe(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:_g(e,t),origin:r,...s}},ej=(e,{valueKey:t,fieldNames:n,origin:r,optionInfoMap:o})=>{var a;const s=[];for(const l of e)if(fMe(l)){const c=ej((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=vMe(l,{valueKey:t,fieldNames:n,origin:r});s.push(c),o.get(c.key)||o.set(c.key,c)}return s},Gte=(e,{inputValue:t,filterOption:n})=>{const r=o=>{var a;const s=[];for(const l of o)if(bfe(l)){const c=r((a=l.options)!=null?a:[]);c.length>0&&s.push({...l,options:c})}else $3(l,{inputValue:t,filterOption:n})&&s.push(l);return s};return r(e)},$3=(e,{inputValue:t,filterOption:n})=>_n(n)?!t||n(t,e.raw):n?e.label.toLowerCase().includes((t??"").toLowerCase()):!0,mMe=(e,t)=>{if(!e||!t||e.length!==t.length)return!1;for(const n of Object.keys(e))if(!W1(e[n],t[n]))return!1;return!0},gMe=(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]"?mMe(e,t):n==="[object Array]"?gMe(e,t):n==="[object Function]"?e===t?!0:e.toString()===t.toString():e===t},yMe=_e({name:"Option",components:{Checkbox:_d},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}=Qt(e),o=Ae("select-option"),a=In(yfe,void 0),s=fo(),l=fe(),c=fe(n.value);Dt(n,(R,M)=>{W1(R,M)||(c.value=R)});const f=fe(""),h=F(()=>{var R,M;return(M=(R=e.value)!=null?R:e.label)!=null?M:f.value}),p=F(()=>{var R;return(R=e.label)!=null?R:f.value}),m=F(()=>_g(h.value,a?.valueKey)),g=F(()=>{var R;return(R=a?.component)!=null?R:"li"}),b=()=>{var R;if(!e.label&&l.value){const M=(R=l.value.textContent)!=null?R:"";f.value!==M&&(f.value=M)}};gn(()=>b()),Ga(()=>b());const S=F(()=>{var R;return(R=a?.valueKeys.includes(m.value))!=null?R:!1}),k=F(()=>a?.activeKey===m.value);let C=fe(!0);if(!e.internal){const R=qt({raw:{value:h,label:p,disabled:t,tagProps:c},ref:l,index:r,key:m,origin:"slot",value:h,label:p,disabled:t,tagProps:c});C=F(()=>$3(R,{inputValue:a?.inputValue,filterOption:a?.filterOption})),s&&a?.addSlotOptionInfo(s.uid,R),Fo(()=>{s&&a?.removeSlotOptionInfo(s.uid)})}const x=R=>{e.disabled||a?.onSelect(m.value,R)},E=()=>{e.disabled||a?.setActiveKey(m.value)},_=()=>{e.disabled||a?.setActiveKey()},A=F(()=>[o,{[`${o}-disabled`]:e.disabled,[`${o}-selected`]:S.value,[`${o}-active`]:k.value,[`${o}-multiple`]:a?.multiple}]);return{prefixCls:o,cls:A,selectCtx:a,itemRef:l,component:g,isSelected:S,isValid:C,handleClick:x,handleMouseEnter:E,handleMouseLeave:_}}});function bMe(e,t,n,r,o,a){const s=Pe("checkbox");return Ai((H(),Ye(Fa(e.component),{ref:"itemRef",class:ae([e.cls,{[`${e.prefixCls}-has-suffix`]:!!e.$slots.suffix}]),onClick:e.handleClick,onMouseenter:e.handleMouseEnter,onMouseleave:e.handleMouseLeave},{default:de(()=>[e.$slots.icon?(H(),J("span",{key:0,class:ae(`${e.prefixCls}-icon`)},[ct(e.$slots,"icon")],2)):Re("v-if",!0),e.selectCtx&&e.selectCtx.multiple?(H(),Ye(s,{key:1,class:ae(`${e.prefixCls}-checkbox`),"model-value":e.isSelected,disabled:e.disabled,"uninject-group-context":""},{default:de(()=>[ct(e.$slots,"default",{},()=>[ze(Be(e.label),1)])]),_:3},8,["class","model-value","disabled"])):(H(),J("span",{key:2,class:ae(`${e.prefixCls}-content`)},[ct(e.$slots,"default",{},()=>[ze(Be(e.label),1)])],2)),e.$slots.suffix?(H(),J("span",{key:3,class:ae(`${e.prefixCls}-suffix`)},[ct(e.$slots,"suffix")],2)):Re("v-if",!0)]),_:3},40,["class","onClick","onMouseenter","onMouseleave"])),[[ns,e.isValid]])}var tg=Oe(yMe,[["render",bMe]]);const _Me={value:"value",label:"label",disabled:"disabled",tagProps:"tagProps",render:"render"},SMe=({options:e,extraOptions:t,inputValue:n,filterOption:r,showExtraOptions:o,valueKey:a,fieldNames:s})=>{const l=F(()=>({..._Me,...s?.value})),c=qt(new Map),f=F(()=>Array.from(c.values()).sort((E,_)=>Ke(E.index)&&Ke(_.index)?E.index-_.index:0)),h=F(()=>{var E,_;const A=new Map;return{optionInfos:ej((E=e?.value)!=null?E:[],{valueKey:(_=a?.value)!=null?_:"value",fieldNames:l.value,origin:"options",optionInfoMap:A}),optionInfoMap:A}}),p=F(()=>{var E,_;const A=new Map;return{optionInfos:ej((E=t?.value)!=null?E:[],{valueKey:(_=a?.value)!=null?_:"value",fieldNames:l.value,origin:"extraOptions",optionInfoMap:A}),optionInfoMap:A}}),m=qt(new Map);Dt([f,e??fe([]),t??fe([]),a??fe("value")],()=>{m.clear(),f.value.forEach((E,_)=>{m.set(E.key,{...E,index:_})}),h.value.optionInfoMap.forEach(E=>{m.has(E.key)||(E.index=m.size,m.set(E.key,E))}),p.value.optionInfoMap.forEach(E=>{m.has(E.key)||(E.index=m.size,m.set(E.key,E))})},{immediate:!0,deep:!0});const g=F(()=>{var E;const _=Gte(h.value.optionInfos,{inputValue:n?.value,filterOption:r?.value});return((E=o?.value)==null||E)&&_.push(...Gte(p.value.optionInfos,{inputValue:n?.value,filterOption:r?.value})),_}),b=F(()=>Array.from(m.values()).filter(E=>E.origin==="extraOptions"&&o?.value===!1?!1:$3(E,{inputValue:n?.value,filterOption:r?.value}))),S=F(()=>b.value.filter(E=>!E.disabled).map(E=>E.key));return{validOptions:g,optionInfoMap:m,validOptionInfos:b,enabledOptionKeys:S,getNextSlotOptionIndex:()=>c.size,addSlotOptionInfo:(E,_)=>{c.set(E,_)},removeSlotOptionInfo:E=>{c.delete(E)}}},No={ENTER:"Enter",ESC:"Escape",SPACE:" ",ARROW_UP:"ArrowUp",ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight"},Kte=e=>JSON.stringify({key:e.key,ctrl:!!e.ctrl,shift:!!e.shift,alt:!!e.alt,meta:!!e.meta}),N3=e=>{const t={};return e.forEach((n,r)=>{const o=is(r)?{key:r}:r;t[Kte(o)]=n}),n=>{const r=Kte({key:n.key,ctrl:n.ctrlKey,shift:n.shiftKey,alt:n.altKey,meta:n.metaKey}),o=t[r];o&&(n.stopPropagation(),o(n))}},dz=({multiple:e,options:t,extraOptions:n,inputValue:r,filterOption:o,showExtraOptions:a,component:s,valueKey:l,fieldNames:c,loading:f,popupVisible:h,valueKeys:p,dropdownRef:m,optionRefs:g,virtualListRef:b,onSelect:S,onPopupVisibleChange:k,enterToOpen:C=!0,defaultActiveFirstOption:x})=>{const{validOptions:E,optionInfoMap:_,validOptionInfos:A,enabledOptionKeys:R,getNextSlotOptionIndex:M,addSlotOptionInfo:D,removeSlotOptionInfo:N}=SMe({options:t,extraOptions:n,inputValue:r,filterOption:o,showExtraOptions:a,valueKey:l,fieldNames:c}),L=fe();Dt(R,z=>{(!L.value||!z.includes(L.value))&&(L.value=z[0])});const B=z=>{L.value=z},U=z=>{const Y=R.value.length;if(Y===0)return;if(!L.value)return z==="down"?R.value[0]:R.value[Y-1];const oe=R.value.indexOf(L.value),ne=(Y+oe+(z==="up"?-1:1))%Y;return R.value[ne]},W=z=>{var Y,oe;b?.value&&b.value.scrollTo({key:z});const ne=_.get(z),X=(Y=m?.value)==null?void 0:Y.wrapperRef,K=(oe=g?.value[z])!=null?oe:ne?.ref;if(!X||!K||X.scrollHeight===X.offsetHeight)return;const re=m5e(K,X),ee=X.scrollTop;re.top<0?X.scrollTo(0,ee+re.top):re.bottom<0&&X.scrollTo(0,ee-re.bottom)};Dt(h,z=>{var Y;if(z){const oe=p.value[p.value.length-1];let ne=(Y=x?.value)==null||Y?R.value[0]:void 0;R.value.includes(oe)&&(ne=oe),ne!==L.value&&(L.value=ne),yn(()=>{L.value&&W(L.value)})}});const V=N3(new Map([[No.ENTER,z=>{!f?.value&&!z.isComposing&&(h.value?L.value&&(S(L.value,z),z.preventDefault()):C&&(k(!0),z.preventDefault()))}],[No.ESC,z=>{h.value&&(k(!1),z.preventDefault())}],[No.ARROW_DOWN,z=>{if(h.value){const Y=U("down");Y&&(L.value=Y,W(Y)),z.preventDefault()}}],[No.ARROW_UP,z=>{if(h.value){const Y=U("up");Y&&(L.value=Y,W(Y)),z.preventDefault()}}]]));return Xr(yfe,qt({multiple:e,valueKey:l,inputValue:r,filterOption:o,component:s,valueKeys:p,activeKey:L,setActiveKey:B,onSelect:S,getNextSlotOptionIndex:M,addSlotOptionInfo:D,removeSlotOptionInfo:N})),{validOptions:E,optionInfoMap:_,validOptionInfos:A,enabledOptionKeys:R,activeKey:L,setActiveKey:B,addSlotOptionInfo:D,removeSlotOptionInfo:N,getNextActiveKey:U,scrollIntoView:W,handleKeyDown:V}},kMe=({dataKeys:e,contentRef:t,fixedSize:n,estimatedSize:r,buffer:o})=>{const a=fe(0),s=new Map,l=F(()=>e.value.length),c=fe(0),f=F(()=>{const M=c.value+o.value*3;return M>l.value?l.value:M}),h=F(()=>{const M=l.value-o.value*3;return M<0?0:M}),p=M=>{M<0?c.value=0:M>h.value?c.value=h.value:c.value=M},m=fe(n.value),g=F(()=>r.value!==30?r.value:a.value||r.value),b=(M,D)=>{s.set(M,D)},S=M=>{var D;if(m.value)return g.value;const N=e.value[M];return(D=s.get(N))!=null?D:g.value},k=M=>s.has(M);gn(()=>{const M=Array.from(s.values()).reduce((D,N)=>D+N,0);M>0&&(a.value=M/s.size)});const C=M=>m.value?g.value*M:x(0,M),x=(M,D)=>{let N=0;for(let L=M;Lm.value?g.value*c.value:x(0,c.value)),_=M=>{const D=M>=E.value;let N=Math.abs(M-E.value);const L=D?c.value:c.value-1;let B=0;for(;N>0;)N-=S(L+B),D?B++:B--;return B},A=M=>{const D=_(M),N=c.value+D-o.value;return N<0?0:N>h.value?h.value:N},R=F(()=>m.value?g.value*(l.value-f.value):x(f.value,l.value));return{frontPadding:E,behindPadding:R,start:c,end:f,getStartByScroll:A,setItemSize:b,hasItemSize:k,setStart:p,getScrollOffset:C}};var wMe=_e({name:"VirtualListItem",props:{hasItemSize:{type:Function,required:!0},setItemSize:{type:Function,required:!0}},setup(e,{slots:t}){var n;const r=(n=fo())==null?void 0:n.vnode.key,o=fe(),a=()=>{var s,l,c,f;const h=(l=(s=o.value)==null?void 0:s.$el)!=null?l:o.value,p=(f=(c=h?.getBoundingClientRect)==null?void 0:c.call(h).height)!=null?f:h?.offsetHeight;p&&e.setItemSize(r,p)};return gn(()=>a()),Fo(()=>a()),()=>{var s;const l=Uy((s=t.default)==null?void 0:s.call(t));return l?yl(l,{ref:o},!0):null}}});const CMe=_e({name:"VirtualList",components:{VirtualListItem:wMe},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}=Qt(e),c=Ae("virtual-list"),f=F(()=>fr(e.component)?{container:"div",list:"div",content:"div",...e.component}:{container:e.component,list:"div",content:"div"}),h=fe(),p=fe(),m=F(()=>({height:Ke(l.value)?`${l.value}px`:l.value,overflow:"auto"})),g=F(()=>n.value.map((L,B)=>{var U;return(U=L[r.value])!=null?U:B})),{frontPadding:b,behindPadding:S,start:k,end:C,getStartByScroll:x,setItemSize:E,hasItemSize:_,setStart:A,getScrollOffset:R}=kMe({dataKeys:g,contentRef:p,fixedSize:o,estimatedSize:a,buffer:s}),M=F(()=>e.threshold&&n.value.length<=e.threshold?n.value:n.value.slice(k.value,C.value)),D=L=>{const{scrollTop:B,scrollHeight:U,offsetHeight:W}=L.target,V=x(B);V!==k.value&&(A(V),yn(()=>{N(B)})),t("scroll",L),Math.floor(U-(B+W))<=0&&t("reachBottom",L)},N=L=>{var B,U;if(h.value)if(Ke(L))h.value.scrollTop=L;else{const W=(U=L.index)!=null?U:g.value.indexOf((B=L.key)!=null?B:"");A(W-s.value),h.value.scrollTop=R(W),yn(()=>{if(h.value){const V=R(W);V!==h.value.scrollTop&&(h.value.scrollTop=V)}})}};return{prefixCls:c,containerRef:h,contentRef:p,frontPadding:b,currentList:M,behindPadding:S,onScroll:D,setItemSize:E,hasItemSize:_,start:k,scrollTo:N,style:m,mergedComponent:f}}});function xMe(e,t,n,r,o,a){const s=Pe("VirtualListItem");return H(),Ye(Fa(e.mergedComponent.container),{ref:"containerRef",class:ae(e.prefixCls),style:je(e.style),onScroll:e.onScroll},{default:de(()=>[(H(),Ye(Fa(e.mergedComponent.list),Bt(e.listAttrs,{style:e.paddingPosition==="list"?{paddingTop:`${e.frontPadding}px`,paddingBottom:`${e.behindPadding}px`}:{}}),{default:de(()=>[(H(),Ye(Fa(e.mergedComponent.content),Bt({ref:"contentRef"},e.contentAttrs,{style:e.paddingPosition==="content"?{paddingTop:`${e.frontPadding}px`,paddingBottom:`${e.behindPadding}px`}:{}}),{default:de(()=>[(H(!0),J(Ut,null,mn(e.currentList,(l,c)=>{var f;return H(),Ye(s,{key:(f=l[e.itemKey])!=null?f:e.start+c,"has-item-size":e.hasItemSize,"set-item-size":e.setItemSize},{default:de(()=>[ct(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 G1=Oe(CMe,[["render",xMe]]),z8=_e({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}=Qt(e),a=Ae("auto-complete"),{mergedDisabled:s,eventHandlers:l}=wo({disabled:Cu(e,"disabled")}),c=fe(e.defaultValue),f=fe(),h=F(()=>{var K;return(K=e.modelValue)!=null?K:c.value});Dt(o,K=>{(kn(K)||Sl(K))&&(c.value="")});const p=F(()=>h.value?[_g(h.value)]:[]),{data:m}=Qt(e),g=fe(),b=fe({}),S=fe(!1),k=F(()=>S.value&&V.value.length>0),C=fe(),x=F(()=>e.virtualListProps?"div":"li"),E=K=>{S.value=K},_=(K,re)=>{var ee;return!!((ee=re.label)!=null&&ee.includes(K))},A=F(()=>_n(e.filterOption)?e.filterOption:e.filterOption&&e.strict?_:e.filterOption),R=K=>{var re,ee;c.value=K,t("update:modelValue",K),t("change",K),(ee=(re=l.value)==null?void 0:re.onChange)==null||ee.call(re)},M=K=>{var re,ee;c.value="",t("update:modelValue",""),t("change",""),(ee=(re=l.value)==null?void 0:re.onChange)==null||ee.call(re),t("clear",K)},D=(K,re)=>{var ee,le;const Q=(ee=W.get(K))==null?void 0:ee.value;t("select",Q),R(Q),(le=f.value)==null||le.blur()},N=K=>{t("search",K),R(K)},L=K=>{t("dropdownScroll",K)},B=K=>{t("dropdownReachBottom",K)},{validOptions:U,optionInfoMap:W,validOptionInfos:V,handleKeyDown:z}=dz({options:m,inputValue:h,filterOption:A,popupVisible:k,valueKeys:p,component:x,dropdownRef:g,optionRefs:b,onSelect:D,onPopupVisibleChange:E}),Y=K=>{if(_n(r.option)&&K.value){const re=W.get(K.key),ee=r.option;return()=>ee({data:re})}return()=>K.label},oe=K=>O(tg,{ref:re=>{re?.$el&&(b.value[K.key]=re.$el)},key:K.key,value:K.value,disabled:K.disabled,internal:!0},{default:Y(K)}),ne=()=>O(cz,{ref:g,class:`${a}-dropdown`,virtualList:!!e.virtualListProps,onScroll:L,onReachBottom:B},{default:()=>[...U.value.map(K=>oe(K))],"virtual-list":()=>O(G1,Bt(e.virtualListProps,{ref:C,data:U.value}),{item:({item:K})=>oe(K)}),footer:r.footer});return{inputRef:f,render:()=>O(la,Bt({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(Ev,Bt({ref:f},n,{allowClear:e.allowClear,modelValue:h.value,disabled:s.value,onInput:N,onClear:M,onKeydown:z}),r)],content:ne})}},methods:{focus(){var e;(e=this.inputRef)==null||e.focus()},blur(){var e;(e=this.inputRef)==null||e.blur()}},render(){return this.render()}});const EMe=Object.assign(z8,{install:(e,t)=>{Wn(e,t);const n=Hn(t);e.component(n+z8.name,z8)}}),fz=({itemRef:e,selector:t,index:n,parentClassName:r})=>{const o=fe(-1),a=F(()=>{var f;return(f=n?.value)!=null?f:o.value}),s=fe(),l=()=>{var f,h,p;let m=(h=(f=e.value)==null?void 0:f.parentElement)!=null?h:void 0;if(r)for(;m&&!m.className.includes(r);)m=(p=m.parentElement)!=null?p:void 0;return m},c=()=>{if(kn(n?.value)&&s.value&&e.value){const f=Array.from(s.value.querySelectorAll(t)).indexOf(e.value);f!==o.value&&(o.value=f)}};return Dt(e,()=>{e.value&&!s.value&&(s.value=l())}),gn(()=>{e.value&&(s.value=l()),c()}),Ga(()=>c()),{computedIndex:a}},_fe=Symbol("ArcoAvatarGroup"),TMe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-image-close`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),AMe=["stroke-width","stroke-linecap","stroke-linejoin"];function IMe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[rv('',5)]),14,AMe)}var H8=Oe(TMe,[["render",IMe]]);const B3=Object.assign(H8,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+H8.name,H8)}}),LMe=_e({name:"Avatar",components:{ResizeObserver:fv,IconImageClose:B3,IconLoading:za},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}=Qt(e),f=Ae("avatar"),h=In(_fe,void 0),p=fe(),m=fe(),g=F(()=>{var V;return(V=h?.shape)!=null?V:o.value}),b=F(()=>{var V;return(V=h?.size)!=null?V:a.value}),S=F(()=>{var V;return(V=h?.autoFixFontSize)!=null?V:s.value}),k=fe(!1),C=fe(!1),x=fe(!0),E=fe(!1),_=h?fz({itemRef:p,selector:`.${f}`}).computedIndex:fe(-1),A=F(()=>{var V;const z=Ke(b.value)?{width:`${b.value}px`,height:`${b.value}px`,fontSize:`${b.value/2}px`}:{};return h&&(z.zIndex=h.zIndexAscend?_.value+1:h.total-_.value,z.marginLeft=_.value!==0?`-${((V=b.value)!=null?V:40)/4}px`:"0"),z}),R=PMe({triggerIconStyle:c?.value,inlineStyle:r.style,triggerType:l.value}),M=()=>{!k.value&&!e.imageUrl&&yn(()=>{var V;if(!m.value||!p.value)return;const z=m.value.clientWidth,Y=(V=b.value)!=null?V:p.value.offsetWidth,oe=Y/(z+8);Y&&oe<1&&(m.value.style.transform=`scale(${oe}) translateX(-50%)`),x.value=!0})};gn(()=>{var V;(V=m.value)!=null&&V.firstElementChild&&["IMG","PICTURE"].includes(m.value.firstElementChild.tagName)&&(k.value=!0),S.value&&M()}),Dt(a,()=>{S.value&&M()});const D=F(()=>[f,`${f}-${g.value}`]),N=F(()=>k.value||e.imageUrl?`${f}-image`:`${f}-text`);return{prefixCls:f,itemRef:p,cls:D,outerStyle:A,wrapperRef:m,wrapperCls:N,computedTriggerIconStyle:R,isImage:k,shouldLoad:x,isLoaded:E,hasError:C,onClick:V=>{n("click",V)},handleResize:()=>{S.value&&M()},handleImgLoad:()=>{E.value=!0,n("load")},handleImgError:()=>{C.value=!0,n("error")}}}}),PMe=({triggerType:e,inlineStyle:t={},triggerIconStyle:n={}})=>{let r={};return e==="button"&&(!n||n&&!n.color)&&t&&t.backgroundColor&&(r={color:t.backgroundColor}),{...n,...r}},RMe=["src"];function MMe(e,t,n,r,o,a){const s=Pe("IconImageClose"),l=Pe("IconLoading"),c=Pe("resize-observer");return H(),J("div",{ref:"itemRef",style:je(e.outerStyle),class:ae([e.cls,{[`${e.prefixCls}-with-trigger-icon`]:!!e.$slots["trigger-icon"]}]),onClick:t[2]||(t[2]=(...f)=>e.onClick&&e.onClick(...f))},[O(c,{onResize:e.handleResize},{default:de(()=>[I("span",{ref:"wrapperRef",class:ae(e.wrapperCls)},[e.imageUrl?(H(),J(Ut,{key:0},[e.hasError?ct(e.$slots,"error",{key:0},()=>[I("div",{class:ae(`${e.prefixCls}-image-icon`)},[O(s)],2)]):Re("v-if",!0),!(e.hasError||!e.shouldLoad)&&!e.isLoaded?ct(e.$slots,"default",{key:1},()=>[I("div",{class:ae(`${e.prefixCls}-image-icon`)},[O(l)],2)]):Re("v-if",!0),e.hasError||!e.shouldLoad?Re("v-if",!0):(H(),J("img",{key:2,src:e.imageUrl,style:je({width:e.size+"px",height:e.size+"px",objectFit:e.objectFit}),alt:"avatar",onLoad:t[0]||(t[0]=(...f)=>e.handleImgLoad&&e.handleImgLoad(...f)),onError:t[1]||(t[1]=(...f)=>e.handleImgError&&e.handleImgError(...f))},null,44,RMe))],64)):ct(e.$slots,"default",{key:1})],2)]),_:3},8,["onResize"]),e.$slots["trigger-icon"]?(H(),J("div",{key:0,class:ae(`${e.prefixCls}-trigger-icon-${e.triggerType}`),style:je(e.computedTriggerIconStyle)},[ct(e.$slots,"trigger-icon")],6)):Re("v-if",!0)],6)}var jT=Oe(LMe,[["render",MMe]]);const DMe=_e({name:"Popover",components:{Trigger:la},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=Ae("popover"),r=fe(e.defaultPopupVisible),o=F(()=>{var c;return(c=e.popupVisible)!=null?c:r.value}),a=c=>{r.value=c,t("update:popupVisible",c),t("popupVisibleChange",c)},s=F(()=>[`${n}-popup-content`,e.contentClass]),l=F(()=>[`${n}-popup-arrow`,e.arrowClass]);return{prefixCls:n,computedPopupVisible:o,contentCls:s,arrowCls:l,handlePopupVisibleChange:a}}});function OMe(e,t,n,r,o,a){const s=Pe("trigger");return H(),Ye(s,{class:ae(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:ae(`${e.prefixCls}-title`)},[ct(e.$slots,"title",{},()=>[ze(Be(e.title),1)])],2),I("div",{class:ae(`${e.prefixCls}-content`)},[ct(e.$slots,"content",{},()=>[ze(Be(e.content),1)])],2)]),default:de(()=>[ct(e.$slots,"default")]),_:3},8,["class","trigger","position","popup-visible","content-class","content-style","arrow-class","arrow-style","popup-container","onPopupVisibleChange"])}var W8=Oe(DMe,[["render",OMe]]);const hz=Object.assign(W8,{install:(e,t)=>{Wn(e,t);const n=Hn(t);e.component(n+W8.name,W8)}}),UT=_e({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}=Qt(e),s=Ae("avatar-group"),l=fe(0);return Xr(_fe,qt({shape:n,size:r,autoFixFontSize:o,zIndexAscend:a,total:l})),()=>{var c,f;const h=df((f=(c=t.default)==null?void 0:c.call(t))!=null?f:[]),p=e.maxCount>0?h.slice(0,e.maxCount):h,m=e.maxCount>0?h.slice(e.maxCount):[];return l.value!==h.length&&(l.value=h.length),O("div",{class:s},[p,m.length>0&&O(hz,e.maxPopoverTriggerProps,{default:()=>[O(jT,{class:`${s}-max-count-avatar`,style:e.maxStyle},{default:()=>[ze("+"),m.length]})],content:()=>O("div",null,[m])})])}}}),$Me=Object.assign(jT,{Group:UT,install:(e,t)=>{Wn(e,t);const n=Hn(t);e.component(n+jT.name,jT),e.component(n+UT.name,UT)}}),NMe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-to-top`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 FMe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,BMe)}var G8=Oe(NMe,[["render",FMe]]);const Sfe=Object.assign(G8,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+G8.name,G8)}}),jMe=_e({name:"BackTop",components:{IconToTop:Sfe},props:{visibleHeight:{type:Number,default:200},targetContainer:{type:[String,Object]},easing:{type:String,default:"quartOut"},duration:{type:Number,default:200}},setup(e){const t=Ae("back-top"),n=fe(!1),r=fe(),o=!e.targetContainer,a=yg(()=>{if(r.value){const{visibleHeight:c}=e,{scrollTop:f}=r.value;n.value=f>=c}}),s=c=>is(c)?document.querySelector(c):c;return gn(()=>{r.value=o?document?.documentElement:s(e.targetContainer),r.value&&(Ti(o?window:r.value,"scroll",a),a())}),yi(()=>{a.cancel(),r.value&&Yi(o?window:r.value,"scroll",a)}),{prefixCls:t,visible:n,scrollToTop:()=>{if(r.value){const{scrollTop:c}=r.value;new jg({from:{scrollTop:c},to:{scrollTop:0},easing:e.easing,duration:e.duration,onUpdate:h=>{r.value&&(r.value.scrollTop=h.scrollTop)}}).start()}}}}});function UMe(e,t,n,r,o,a){const s=Pe("icon-to-top");return H(),Ye(Is,{name:"fade-in"},{default:de(()=>[e.visible?(H(),J("div",{key:0,class:ae(e.prefixCls),onClick:t[0]||(t[0]=(...l)=>e.scrollToTop&&e.scrollToTop(...l))},[ct(e.$slots,"default",{},()=>[I("button",{class:ae(`${e.prefixCls}-btn`)},[O(s)],2)])],2)):Re("v-if",!0)]),_:3})}var K8=Oe(jMe,[["render",UMe]]);const VMe=Object.assign(K8,{install:(e,t)=>{Wn(e,t);const n=Hn(t);e.component(n+K8.name,K8)}}),zMe=["red","orangered","orange","gold","lime","green","cyan","arcoblue","purple","pinkpurple","magenta","gray"],HMe=["normal","processing","success","warning","danger"];var q8=_e({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=>HMe.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:f}=Qt(e),h=Ae("badge"),p=WMe(h,n?.value,t?.default),m=F(()=>{const b={...o?.value||{}},[S,k]=a?.value||[];S&&(b.marginRight=`${-S}px`),k&&(b.marginTop=`${k}px`);const C=!r?.value||zMe.includes(r?.value)?{}:{backgroundColor:r.value};return{mergedStyle:{...C,...b},computedDotStyle:b,computedColorStyle:C}}),g=()=>{const b=s?.value,S=r?.value,k=n?.value,C=l?.value,x=Number(f?.value),E=f?.value!=null,{computedDotStyle:_,mergedStyle:A}=m.value;return t.content?O("span",{class:`${h}-custom-dot`,style:_},[t.content()]):b&&!S&&!k?O("span",{class:`${h}-text`,style:_},[b]):k||S&&!E?O("span",{class:`${h}-status-wrapper`},[O("span",{class:[`${h}-status-dot`,{[`${h}-status-${k}`]:k,[`${h}-color-${S}`]:S}],style:A},null),b&&O("span",{class:`${h}-status-text`},[b])]):(C||S)&&x>0?O("span",{class:[`${h}-dot`,{[`${h}-color-${S}`]:S}],style:A},null):x===0?null:O("span",{class:`${h}-number`,style:A},[O("span",null,[c.value&&x>c.value?`${c.value}+`:x])])};return()=>O("span",{class:p.value},[t.default&&t.default(),g()])}});const WMe=(e,t,n)=>F(()=>[e,{[`${e}-status`]:t,[`${e}-no-children`]:!n}]),GMe=Object.assign(q8,{install:(e,t)=>{Wn(e,t);const n=Hn(t);e.component(n+q8.name,q8)}}),kfe=Symbol("ArcoBreadcrumb"),KMe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-more`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),qMe=["stroke-width","stroke-linecap","stroke-linejoin"];function YMe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,qMe)}var Y8=Oe(KMe,[["render",YMe]]);const Tv=Object.assign(Y8,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+Y8.name,Y8)}}),XMe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-down`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),ZMe=["stroke-width","stroke-linecap","stroke-linejoin"];function QMe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,ZMe)}var X8=Oe(XMe,[["render",QMe]]);const Av=Object.assign(X8,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+X8.name,X8)}}),JMe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-oblique-line`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),e8e=["stroke-width","stroke-linecap","stroke-linejoin"];function t8e(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,e8e)}var Z8=Oe(JMe,[["render",t8e]]);const wfe=Object.assign(Z8,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+Z8.name,Z8)}}),pz=Symbol("ArcoDropdown"),n8e=_e({name:"DropdownPanel",components:{Scrollbar:Cd,Empty:Uh},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=Ae("dropdown"),o=In(pz,{}),a=fe(),s=f=>{const{scrollTop:h,scrollHeight:p,offsetHeight:m}=f.target;p-(h+m)<=e.bottomOffset&&t("reachBottom",f),t("scroll",f)},l=F(()=>{if(Ke(o.popupMaxHeight))return{maxHeight:`${o.popupMaxHeight}px`};if(!o.popupMaxHeight)return{maxHeight:"none",overflowY:"hidden"}}),c=F(()=>[r,{[`${r}-has-footer`]:!!n.footer}]);return{prefixCls:r,cls:c,style:l,wrapperRef:a,handleScroll:s}}});function r8e(e,t,n,r,o,a){const s=Pe("empty"),l=Pe("Scrollbar");return H(),J("div",{class:ae(e.cls)},[e.isEmpty?(H(),J("div",{key:0,class:ae(`${e.prefixCls}-empty`)},[ct(e.$slots,"empty",{},()=>[O(s)])],2)):Re("v-if",!0),O(l,{ref:"wrapperRef",class:ae(`${e.prefixCls}-list-wrapper`),style:je(e.style),onScroll:e.handleScroll},{default:de(()=>[I("ul",{class:ae(`${e.prefixCls}-list`)},[ct(e.$slots,"default")],2)]),_:3},8,["class","style","onScroll"]),e.$slots.footer&&!e.isEmpty?(H(),J("div",{key:1,class:ae(`${e.prefixCls}-footer`)},[ct(e.$slots,"footer")],2)):Re("v-if",!0)],2)}var Cfe=Oe(n8e,[["render",r8e]]);const F3=({popupVisible:e,defaultPopupVisible:t,emit:n})=>{var r;const o=fe((r=t?.value)!=null?r:!1),a=F(()=>{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 Dt(a,l=>{o.value!==l&&(o.value=l)}),{computedPopupVisible:a,handlePopupVisibleChange:s}},i8e=_e({name:"Dropdown",components:{Trigger:la,DropdownPanel:Cfe},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}=Qt(e),a=Ae("dropdown"),{computedPopupVisible:s,handlePopupVisibleChange:l}=F3({defaultPopupVisible:n,popupVisible:r,emit:t});return Xr(pz,qt({popupMaxHeight:o,onOptionClick:(f,h)=>{t("select",f,h),e.hideOnSelect&&l(!1)}})),{prefixCls:a,computedPopupVisible:s,handlePopupVisibleChange:l}}});function o8e(e,t,n,r,o,a){const s=Pe("DropdownPanel"),l=Pe("Trigger");return H(),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,_o({default:de(()=>[ct(e.$slots,"content")]),_:2},[e.$slots.footer?{name:"footer",fn:de(()=>[ct(e.$slots,"footer")]),key:"0"}:void 0]),1024)]),default:de(()=>[ct(e.$slots,"default")]),_:3},8,["popup-visible","trigger","position","popup-container","opened-class","onPopupVisibleChange"])}var VT=Oe(i8e,[["render",o8e]]);const s8e=_e({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=Ae("dropdown-option"),r=fe(),o=F(()=>{var c,f,h;return(h=(f=e.value)!=null?f:(c=r.value)==null?void 0:c.textContent)!=null?h:void 0}),a=e.uninjectContext?void 0:In(pz,void 0),s=c=>{e.disabled||(t("click",c),a?.onOptionClick(o.value,c))},l=F(()=>[n,{[`${n}-disabled`]:e.disabled,[`${n}-active`]:e.active}]);return{prefixCls:n,cls:l,liRef:r,handleClick:s}}});function a8e(e,t,n,r,o,a){return H(),J("li",{ref:"liRef",class:ae([e.cls,{[`${e.prefixCls}-has-suffix`]:!!e.$slots.suffix}]),onClick:t[0]||(t[0]=(...s)=>e.handleClick&&e.handleClick(...s))},[e.$slots.icon?(H(),J("span",{key:0,class:ae(`${e.prefixCls}-icon`)},[ct(e.$slots,"icon")],2)):Re("v-if",!0),I("span",{class:ae(`${e.prefixCls}-content`)},[ct(e.$slots,"default")],2),e.$slots.suffix?(H(),J("span",{key:1,class:ae(`${e.prefixCls}-suffix`)},[ct(e.$slots,"suffix")],2)):Re("v-if",!0)],2)}var Hy=Oe(s8e,[["render",a8e]]);const l8e=_e({name:"Dgroup",props:{title:String},setup(){return{prefixCls:Ae("dropdown-group")}}});function u8e(e,t,n,r,o,a){return H(),J(Ut,null,[I("li",{class:ae(`${e.prefixCls}-title`)},[ct(e.$slots,"title",{},()=>[ze(Be(e.title),1)])],2),ct(e.$slots,"default")],64)}var zT=Oe(l8e,[["render",u8e]]);const c8e=_e({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=Ae("icon"),r=F(()=>[n,`${n}-right`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),d8e=["stroke-width","stroke-linecap","stroke-linejoin"];function f8e(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,d8e)}var Q8=Oe(c8e,[["render",f8e]]);const Ni=Object.assign(Q8,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+Q8.name,Q8)}}),h8e=_e({name:"Dsubmenu",components:{Trigger:la,DropdownPanel:Cfe,DropdownOption:Hy,IconRight:Ni},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}=Qt(e),o=Ae("dropdown"),{computedPopupVisible:a,handlePopupVisibleChange:s}=F3({defaultPopupVisible:n,popupVisible:r,emit:t});return{prefixCls:o,computedPopupVisible:a,handlePopupVisibleChange:s}}});function p8e(e,t,n,r,o,a){const s=Pe("IconRight"),l=Pe("dropdown-option"),c=Pe("dropdown-panel"),f=Pe("Trigger");return H(),Ye(f,{"popup-visible":e.computedPopupVisible,trigger:e.trigger,position:e.position,disabled:e.disabled,"popup-offset":4,onPopupVisibleChange:e.handlePopupVisibleChange},{content:de(()=>[O(c,{class:ae(`${e.prefixCls}-submenu`)},_o({default:de(()=>[ct(e.$slots,"content")]),_:2},[e.$slots.footer?{name:"footer",fn:de(()=>[ct(e.$slots,"footer")]),key:"0"}:void 0]),1032,["class"])]),default:de(()=>[O(l,Bt(e.optionProps,{active:e.computedPopupVisible,"uninject-context":""}),_o({suffix:de(()=>[ct(e.$slots,"suffix",{},()=>[O(s)])]),default:de(()=>[ct(e.$slots,"default")]),_:2},[e.$slots.icon?{name:"icon",fn:de(()=>[ct(e.$slots,"icon")]),key:"0"}:void 0]),1040,["active"])]),_:3},8,["popup-visible","trigger","position","disabled","onPopupVisibleChange"])}var HT=Oe(h8e,[["render",p8e]]);const v8e=_e({name:"DropdownButton",components:{IconMore:Tv,Button:Ho,ButtonGroup:BS,Dropdown:VT},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}=Qt(e),o=Ae("dropdown"),{computedPopupVisible:a,handlePopupVisibleChange:s}=F3({defaultPopupVisible:n,popupVisible:r,emit:t});return{prefixCls:o,computedPopupVisible:a,handleClick:f=>{t("click",f)},handleSelect:(f,h)=>{t("select",f,h)},handlePopupVisibleChange:s}}});function m8e(e,t,n,r,o,a){const s=Pe("Button"),l=Pe("IconMore"),c=Pe("Dropdown"),f=Pe("ButtonGroup");return H(),Ye(f,null,{default:de(()=>[O(s,Bt({size:e.size,type:e.type,disabled:e.disabled},e.buttonProps,{onClick:e.handleClick}),{default:de(()=>[ct(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(()=>[ct(e.$slots,"content")]),default:de(()=>[O(s,{size:e.size,type:e.type,disabled:e.disabled},{icon:de(()=>[ct(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 WT=Oe(v8e,[["render",m8e]]);const xfe=Object.assign(VT,{Option:Hy,Group:zT,Submenu:HT,Button:WT,install:(e,t)=>{Wn(e,t);const n=Hn(t);e.component(n+VT.name,VT),e.component(n+Hy.name,Hy),e.component(n+zT.name,zT),e.component(n+HT.name,HT),e.component(n+WT.name,WT)}});var FS=_e({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=Ae("breadcrumb-item"),o=In(kfe,void 0),a=fe(!1),s=F(()=>!(o&&o.needHide&&e.index>1&&e.index<=o.total-o.maxCount)),l=F(()=>o&&o.needHide?e.index===1:!1),c=F(()=>o?e.index{a.value=b},h=()=>{var b,S,k,C,x,E,_;if(!c.value)return null;const A=(_=(E=(x=(S=(b=t.separator)==null?void 0:b.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(wfe,null,null);return O("div",{"aria-hidden":"true",class:`${r}-separator`},[A])},p=()=>{var b,S,k,C;return O("div",Bt({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:(b=o.slots)["more-icon"])==null?void 0:S.call(b))!=null?k:O(Tv,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(Av,null,null)])])},m=()=>{var b,S,k;return(k=(b=t.droplist)==null?void 0:b.call(t))!=null?k:(S=e.droplist)==null?void 0:S.map(C=>O(Hy,{value:C.path},{default:()=>[C.label]}))},g=()=>O(xfe,Bt({popupVisible:a.value,onPopupVisibleChange:f},e.dropdownProps),{default:()=>[p()],content:m});return()=>s.value?O(Ut,null,[t.droplist||e.droplist?g():p(),h()]):null}}),J8=_e({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}=Qt(e),a=Ae("breadcrumb"),s=fe(0),l=F(()=>n.value>0&&s.value>n.value+1);Xr(kfe,qt({total:s,maxCount:n,separator:r,needHide:l,slots:t}));const c=(p,m,g)=>{var b,S;if(m.indexOf(p)===m.length-1)return O("span",null,[p.label]);const k=(S=(b=e.customUrl)==null?void 0:b.call(e,g))!=null?S:`#/${g.join("/").replace(/^\//,"")}`;return O("a",{href:k},[p.label])},f=()=>{var p;if(!((p=o.value)!=null&&p.length))return null;s.value!==o.value.length&&(s.value=o.value.length);const m=[];return o.value.map((g,b,S)=>{m.push((g.path||"").replace(/^\//,""));const k=[...m];return O(FS,{key:g.path||g.label,index:b,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,m;const g=df((m=(p=t.default)==null?void 0:p.call(t))!=null?m:[]);return s.value!==g.length&&(s.value=g.length),g.map((b,S)=>{var k;return b.props=Bt((k=b.props)!=null?k:{},{index:S}),b})};return()=>O("div",{role:"list",class:a},[t.default?h():f()])}});const g8e=Object.assign(J8,{Item:FS,install:(e,t)=>{Wn(e,t);const n=Hn(t);e.component(n+J8.name,J8),e.component(n+FS.name,FS)}});var y8e=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 j3(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 GT={exports:{}},b8e=GT.exports,qte;function Efe(){return qte||(qte=1,(function(e,t){(function(n,r){e.exports=r()})(b8e,(function(){var n=1e3,r=6e4,o=36e5,a="millisecond",s="second",l="minute",c="hour",f="day",h="week",p="month",m="quarter",g="year",b="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(V){var z=["th","st","nd","rd"],Y=V%100;return"["+V+(z[(Y-20)%10]||z[Y]||z[0])+"]"}},E=function(V,z,Y){var oe=String(V);return!oe||oe.length>=z?V:""+Array(z+1-oe.length).join(Y)+V},_={s:E,z:function(V){var z=-V.utcOffset(),Y=Math.abs(z),oe=Math.floor(Y/60),ne=Y%60;return(z<=0?"+":"-")+E(oe,2,"0")+":"+E(ne,2,"0")},m:function V(z,Y){if(z.date()1)return V(K[0])}else{var re=z.name;R[re]=z,ne=re}return!oe&&ne&&(A=ne),ne||!oe&&A},L=function(V,z){if(D(V))return V.clone();var Y=typeof z=="object"?z:{};return Y.date=V,Y.args=arguments,new U(Y)},B=_;B.l=N,B.i=D,B.w=function(V,z){return L(V,{locale:z.$L,utc:z.$u,x:z.$x,$offset:z.$offset})};var U=(function(){function V(Y){this.$L=N(Y.locale,null,!0),this.parse(Y),this.$x=this.$x||Y.x||{},this[M]=!0}var z=V.prototype;return z.parse=function(Y){this.$d=(function(oe){var ne=oe.date,X=oe.utc;if(ne===null)return new Date(NaN);if(B.u(ne))return new Date;if(ne instanceof Date)return new Date(ne);if(typeof ne=="string"&&!/Z$/i.test(ne)){var K=ne.match(k);if(K){var re=K[2]-1||0,ee=(K[7]||"0").substring(0,3);return X?new Date(Date.UTC(K[1],re,K[3]||1,K[4]||0,K[5]||0,K[6]||0,ee)):new Date(K[1],re,K[3]||1,K[4]||0,K[5]||0,K[6]||0,ee)}}return new Date(ne)})(Y),this.init()},z.init=function(){var Y=this.$d;this.$y=Y.getFullYear(),this.$M=Y.getMonth(),this.$D=Y.getDate(),this.$W=Y.getDay(),this.$H=Y.getHours(),this.$m=Y.getMinutes(),this.$s=Y.getSeconds(),this.$ms=Y.getMilliseconds()},z.$utils=function(){return B},z.isValid=function(){return this.$d.toString()!==S},z.isSame=function(Y,oe){var ne=L(Y);return this.startOf(oe)<=ne&&ne<=this.endOf(oe)},z.isAfter=function(Y,oe){return L(Y)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)}],m=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},b={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=m("months"),x=(m("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=m("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=f(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,U){var W=U&&U.toUpperCase();return B||x[U]||n[U]||x[W].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(V,z,Y){return z||Y.slice(1)}))}))).match(r),_=E.length,A=0;A<_;A+=1){var R=E[A],M=b[R],D=M&&M[0],N=M&&M[1];E[A]=N?{regex:D,parser:N}:R.replace(/^\[|\]$/g,"")}return function(L){for(var B={},U=0,W=0;U<_;U+=1){var V=E[U];if(typeof V=="string")W+=V.length;else{var z=V.regex,Y=V.parser,oe=L.slice(W),ne=z.exec(oe)[0];Y.call(B,ne),L=L.replace(ne,"")}}return(function(X){var K=X.afternoon;if(K!==void 0){var re=X.hours;K?re<12&&(X.hours+=12):re===12&&(X.hours=0),delete X.afternoon}})(B),B}}return function(k,C,x){x.p.customParseFormat=!0,k&&k.parseTwoDigitYear&&(f=k.parseTwoDigitYear);var E=C.prototype,_=E.parse;E.parse=function(A){var R=A.date,M=A.utc,D=A.args;this.$u=M;var N=D[1];if(typeof N=="string"){var L=D[2]===!0,B=D[3]===!0,U=L||B,W=D[2];B&&(W=D[2]),c=this.$locale(),!L&&W&&(c=x.Ls[W]),this.$d=(function(oe,ne,X,K){try{if(["x","X"].indexOf(ne)>-1)return new Date((ne==="X"?1e3:1)*oe);var re=S(ne)(oe),ee=re.year,le=re.month,Q=re.day,ye=re.hours,be=re.minutes,ve=re.seconds,Ce=re.milliseconds,De=re.zone,We=re.week,Xe=new Date,He=Q||(ee||le?1:Xe.getDate()),ke=ee||Xe.getFullYear(),Se=0;ee&&!le||(Se=le>0?le-1:Xe.getMonth());var Ne,qe=ye||0,Je=be||0,ot=ve||0,yt=Ce||0;return De?new Date(Date.UTC(ke,Se,He,qe,Je,ot,yt+60*De.offset*1e3)):X?new Date(Date.UTC(ke,Se,He,qe,Je,ot,yt)):(Ne=new Date(ke,Se,He,qe,Je,ot,yt),We&&(Ne=K(Ne).week(We).toDate()),Ne)}catch{return new Date("")}})(R,N,M,x),this.init(),W&&W!==!0&&(this.$L=this.locale(W).$L),U&&R!=this.format(N)&&(this.$d=new Date("")),c={}}else if(N instanceof Array)for(var V=N.length,z=1;z<=V;z+=1){D[1]=N[z-1];var Y=x.apply(this,D);if(Y.isValid()){this.$d=Y.$d,this.$L=Y.$L,this.init();break}z===V&&(this.$d=new Date(""))}else _.call(this,A)}}}))})(KT)),KT.exports}var w8e=k8e();const C8e=Td(w8e);var qT={exports:{}},x8e=qT.exports,Xte;function E8e(){return Xte||(Xte=1,(function(e,t){(function(n,r){e.exports=r()})(x8e,(function(){return function(n,r,o){r.prototype.isBetween=function(a,s,l,c){var f=o(a),h=o(s),p=(c=c||"()")[0]==="(",m=c[1]===")";return(p?this.isAfter(f,l):!this.isBefore(f,l))&&(m?this.isBefore(h,l):!this.isAfter(h,l))||(p?this.isBefore(f,l):!this.isAfter(f,l))&&(m?this.isAfter(h,l):!this.isBefore(h,l))}}}))})(qT)),qT.exports}var T8e=E8e();const A8e=Td(T8e);var YT={exports:{}},I8e=YT.exports,Zte;function L8e(){return Zte||(Zte=1,(function(e,t){(function(n,r){e.exports=r()})(I8e,(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 f=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var h=s(this).startOf(r).add(1,r).date(f),p=s(this).endOf(n);if(h.isBefore(p))return 1}var m=s(this).startOf(r).date(f).startOf(n).subtract(1,"millisecond"),g=this.diff(m,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)}}}))})(YT)),YT.exports}var P8e=L8e();const R8e=Td(P8e);var XT={exports:{}},M8e=XT.exports,Qte;function D8e(){return Qte||(Qte=1,(function(e,t){(function(n,r){e.exports=r()})(M8e,(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 f=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 f.s(l.week(),p==="w"?1:2,"0");case"W":case"WW":return f.s(l.isoWeek(),p==="W"?1:2,"0");case"k":case"kk":return f.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)}}}))})(XT)),XT.exports}var O8e=D8e();const $8e=Td(O8e);var ZT={exports:{}},N8e=ZT.exports,Jte;function B8e(){return Jte||(Jte=1,(function(e,t){(function(n,r){e.exports=r()})(N8e,(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}}}))})(ZT)),ZT.exports}var F8e=B8e();const j8e=Td(F8e);var QT={exports:{}},U8e=QT.exports,ene;function V8e(){return ene||(ene=1,(function(e,t){(function(n,r){e.exports=r()})(U8e,(function(){var n="month",r="quarter";return function(o,a){var s=a.prototype;s.quarter=function(f){return this.$utils().u(f)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(f-1))};var l=s.add;s.add=function(f,h){return f=Number(f),this.$utils().p(h)===r?this.add(3*f,n):l.bind(this)(f,h)};var c=s.startOf;s.startOf=function(f,h){var p=this.$utils(),m=!!p.u(h)||h;if(p.p(f)===r){var g=this.quarter()-1;return m?this.month(3*g).startOf(n).startOf("day"):this.month(3*g+2).endOf(n).endOf("day")}return c.bind(this)(f,h)}}}))})(QT)),QT.exports}var z8e=V8e();const H8e=Td(z8e);var JT={exports:{}},W8e=JT.exports,tne;function G8e(){return tne||(tne=1,(function(e,t){(function(n,r){e.exports=r(Efe())})(W8e,(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}))})(JT)),JT.exports}G8e();const K8e=(e,t,n)=>{n=function(a,s){if(Mc(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=Mc,a},n.isDayjs=Mc};ll.extend(K8e);ll.extend(C8e);ll.extend(A8e);ll.extend(R8e);ll.extend($8e);ll.extend(j8e);ll.extend(H8e);const Es=ll,Ws={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 vz(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:Qn(t)&&Qn(e)?n(t[0],e[0])||n(t[1],e[1]):!Qn(t)&&!Qn(e)?n(t,e):!0}function rc(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(VPe(t))return Es(n(o),t.replace(/\[Q]Q/,"MM"));if(Es(o,t).isValid())return Es(o,t)}return Es(o)}};return Qn(e)?e.map(r):r(e)}function gu(e){const t=n=>n?n.toDate():void 0;return Qn(e)?e.map(t):t(e)}function Tfe(e,t){Es.locale({...Es.Ls[e.toLocaleLowerCase()],weekStart:t})}function q8e(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 ng(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 rE(e,t){if(e&&Qn(e))return e[t]}function Afe({prefixCls:e,mergedValue:t,rangeValues:n,hoverRangeValues:r,panel:o,isSameTime:a,innerMode:s}){return function(c,f){const h=rE(n,0),p=rE(n,1),m=rE(r,0),g=rE(r,1),b=!c.isPrev&&!c.isNext,S=b&&o,k=S,C=S;m&&h&&m.isBefore(h);const E=p&&g&&g.isAfter(p)&&C;let _=a(c.time,Ua());return s==="year"&&(_=Ua().isSame(c.time,"date")),[`${e}-cell`,{[`${e}-cell-in-view`]:b,[`${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`]:f}]}}const nne=42,VA=e=>({year:e.year(),month:e.month()+1,date:e.date(),day:e.day(),time:e}),X8e=e=>({start:VA(Ws.startOf(e,"month")),end:VA(Ws.endOf(e,"month")),days:e.daysInMonth()});function Ife(e,{dayStartOfWeek:t=0,isWeek:n}){const r=X8e(e),o=Array(nne).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,f=[...s[l]];s[l].unshift({weekRows:f,weekOfYear:c.week()})}return s}var Lfe=_e({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}=Qt(e),r=Ae("calendar"),o=e.pageShowDate.year(),a=F(()=>Afe({prefixCls:r,mergedValue:e.value,panel:!1,innerMode:e.mode,rangeValues:[],hoverRangeValues:[],isSameTime:(c,f)=>c.isSame(f,"day")}));function s(c){return c.map((f,h)=>{var p;if(f.time){const m=()=>e.selectHandler(f.time,!1),g=e.isWeek?{onClick:m}:{},b=e.isWeek?{}:{onClick:m};return O("div",Bt({key:h,class:a.value(f,!1)},g),[t.default?(p=t.default)==null?void 0:p.call(t,{year:f.year,month:f.month,date:f.date}):O("div",Bt({class:`${r}-date`},b),[O("div",{class:`${r}-date-value`},[e.panel?f.date:O("div",{class:`${r}-date-circle`},[f.date])])])])}if("weekOfYear"in f){const m=e.value.year(),g=e.value.month()+1,b=e.value.week(),S=e.value&&f.weekRows.find(k=>k.year===m&&k.month===g)&&b===f.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`},[f.weekOfYear])])])}return null})}let l=n.value;return typeof e.current=="number"&&(l=Ife(Es(`${o}-${ng(e.current+1,2,"0")}-01`),{dayStartOfWeek:e.dayStartOfWeek,isWeek:e.isWeek})),()=>O("div",{class:e.cell?`${r}-month-cell`:`${r}-month`},[O(Y8e,{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,f)=>O("div",{key:f,class:[`${r}-month-row`,{[`${r}-row-week`]:e.isWeek}]},[s(c)]))])])}});const Pfe=["January","February","March","April","May","June","July","August","September","October","November","December"].map((e,t)=>({name:e,value:t})),Rfe=Array(3);for(let e=0;e<3;e++)Rfe[e]=Pfe.slice(e*4,4*(e+1));const Mfe=Array(4);for(let e=0;e<4;e++)Mfe[e]=Pfe.slice(e*3,3*(e+1));var Z8e=_e({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=Ae("calendar"),n=F(()=>Afe({prefixCls:t,mergedValue:e.value,panel:!1,innerMode:e.mode,rangeValues:[],hoverRangeValues:[],isSameTime:(s,l)=>s.isSame(l,"month")})),{t:r}=Lo(),o=F(()=>e.pageShowData.year()),a=e.panel?Mfe:Rfe;return()=>O("div",{class:`${t}-year`},[a.map((s,l)=>O("div",{class:`${t}-year-row`,key:l},[s.map(c=>{const f=Es(`${o.value}-${ng(c.value+1,2,"0")}-01`),h=e.panel?{onClick:()=>e.selectHandler(f,!1)}:{};return O("div",{key:c.value,class:n.value({...c,time:f},!1)},[e.panel?O("div",Bt({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(Lfe,{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 Q8e=({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:""),f=fe(!1),h=fe(!1),p=fe("");let m;const g=F(()=>{var R;return(R=t?.value)!=null?R:c.value}),b=(R,M)=>{c.value=R,n(o,R),n(r,R,M)},S=R=>{const{value:M}=R.target;h.value||(b(M,R),yn(()=>{l.value&&g.value!==l.value.value&&(l.value.value=g.value)}))},k=R=>{r==="input"&&g.value!==m&&(m=g.value,n("change",g.value,R))},C=R=>{var M;const{value:D}=R.target;R.type==="compositionend"?(h.value=!1,p.value="",b(D,R),yn(()=>{l.value&&g.value!==l.value.value&&(l.value.value=g.value)})):(h.value=!0,p.value=g.value+((M=R.data)!=null?M:""))},x=R=>{var M,D;f.value=!0,m=g.value,n("focus",R),(D=(M=a?.value)==null?void 0:M.onFocus)==null||D.call(M,R)},E=R=>{var M,D;f.value=!1,n("blur",R),(D=(M=a?.value)==null?void 0:M.onBlur)==null||D.call(M,R),k(R)},_=R=>{const M=R.key||R.code;!h.value&&M===oz.key&&(n("pressEnter",R),k(R))},A=R=>{l.value&&R.target!==l.value&&(R.preventDefault(),l.value.focus())};return Dt(g,R=>{l.value&&R!==l.value.value&&(l.value.value=R)}),{inputRef:l,_value:c,_focused:f,isComposition:h,compositionValue:p,computedValue:g,handleInput:S,handleComposition:C,handleFocus:x,handleBlur:E,handleKeyDown:_,handleMousedown:A}};var J8e=_e({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:f}=Qt(e),h=(o=e.baseCls)!=null?o:Ae("input-label"),{mergedSize:p,mergedDisabled:m,mergedError:g,eventHandlers:b}=wo({size:a,disabled:s,error:l,uninject:f?.value}),{mergedSize:S}=_a(p),{inputRef:k,_focused:C,computedValue:x,handleInput:E,handleComposition:_,handleFocus:A,handleBlur:R,handleMousedown:M}=Q8e({modelValue:c,emit:n,eventName:"inputValueChange",updateEventName:"update:inputValue",eventHandlers:b}),D=F(()=>{var oe;return(oe=e.focused)!=null?oe:C.value}),N=F(()=>e.enabledInput&&C.value||!e.modelValue),L=()=>{var oe,ne;return e.modelValue?(ne=(oe=e.formatLabel)==null?void 0:oe.call(e,e.modelValue))!=null?ne:e.modelValue.label:""},B=F(()=>e.enabledInput&&e.modelValue?L():e.placeholder),U=()=>{var oe,ne;return e.modelValue?(ne=(oe=r.default)==null?void 0:oe.call(r,{data:e.modelValue}))!=null?ne:L():null},W=F(()=>[h,`${h}-size-${S.value}`,{[`${h}-search`]:e.enabledInput,[`${h}-focus`]:D.value,[`${h}-disabled`]:m.value,[`${h}-error`]:g.value}]),V=F(()=>ya(t,cv)),z=F(()=>pf(t,cv));return{inputRef:k,render:()=>O("span",Bt(V.value,{class:W.value,title:L(),onMousedown:M}),[r.prefix&&O("span",{class:`${h}-prefix`},[r.prefix()]),O("input",Bt(z.value,{ref:k,class:[`${h}-input`,{[`${h}-input-hidden`]:!N.value}],value:x.value,readonly:!e.enabledInput,placeholder:B.value,disabled:m.value,onInput:E,onFocus:A,onBlur:R,onCompositionstart:_,onCompositionupdate:_,onCompositionend:_}),null),O("span",{class:[`${h}-value`,{[`${h}-value-hidden`]:N.value}]},[U()]),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 eDe=(e,t)=>{const n=[];for(const r of e)if(fr(r))n.push({raw:r,value:r[t.value],label:r[t.label],closable:r[t.closable],tagProps:r[t.tagProps]});else if(e||Ke(e)){const o={value:r,label:String(r),closable:!0};n.push({raw:o,...o})}return n},rne=["red","orangered","orange","gold","lime","green","cyan","blue","arcoblue","purple","pinkpurple","magenta","gray"],tDe=_e({name:"Tag",components:{IconHover:ko,IconClose:ms,IconLoading:za},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}=Qt(e),r=Ae("tag"),o=F(()=>e.color&&rne.includes(e.color)),a=F(()=>e.color&&!rne.includes(e.color)),s=fe(e.defaultVisible),l=fe(e.defaultChecked),c=F(()=>{var k;return(k=e.visible)!=null?k:s.value}),f=F(()=>{var k;return e.checkable?(k=e.checked)!=null?k:l.value:!0}),{mergedSize:h}=_a(n),p=F(()=>h.value==="mini"?"small":h.value),m=k=>{s.value=!1,t("update:visible",!1),t("close",k)},g=k=>{if(e.checkable){const C=!f.value;l.value=C,t("update:checked",C),t("check",C,k)}},b=F(()=>[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`]:f.value,[`${r}-custom-color`]:a.value}]),S=F(()=>{if(a.value)return{backgroundColor:e.color}});return{prefixCls:r,cls:b,style:S,computedVisible:c,computedChecked:f,handleClick:g,handleClose:m}}});function nDe(e,t,n,r,o,a){const s=Pe("icon-close"),l=Pe("icon-hover"),c=Pe("icon-loading");return e.computedVisible?(H(),J("span",{key:0,class:ae(e.cls),style:je(e.style),onClick:t[0]||(t[0]=(...f)=>e.handleClick&&e.handleClick(...f))},[e.$slots.icon?(H(),J("span",{key:0,class:ae(`${e.prefixCls}-icon`)},[ct(e.$slots,"icon")],2)):Re("v-if",!0),e.nowrap?(H(),J("span",{key:1,class:ae(`${e.prefixCls}-text`)},[ct(e.$slots,"default")],2)):ct(e.$slots,"default",{key:2}),e.closable?(H(),Ye(l,{key:3,role:"button","aria-label":"Close",prefix:e.prefixCls,class:ae(`${e.prefixCls}-close-btn`),onClick:rs(e.handleClose,["stop"])},{default:de(()=>[ct(e.$slots,"close-icon",{},()=>[O(s)])]),_:3},8,["prefix","class","onClick"])):Re("v-if",!0),e.loading?(H(),J("span",{key:4,class:ae(`${e.prefixCls}-loading-icon`)},[O(c)],2)):Re("v-if",!0)],6)):Re("v-if",!0)}var eD=Oe(tDe,[["render",nDe]]);const mz=Object.assign(eD,{install:(e,t)=>{Wn(e,t);const n=Hn(t);e.component(n+eD.name,eD)}}),rDe={value:"value",label:"label",closable:"closable",tagProps:"tagProps"};var tD=_e({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}=Qt(e),f=e.baseCls||Ae("input-tag"),h=fe(),p=fe(),{mergedSize:m,mergedDisabled:g,mergedError:b,feedback:S,eventHandlers:k}=wo({size:o,disabled:a,error:s,uninject:l?.value}),{mergedSize:C}=_a(m),x=F(()=>({...rDe,...e.fieldNames})),E=fe(!1),_=fe(e.defaultValue),A=fe(e.defaultInputValue),R=fe(!1),M=fe(""),D=F(()=>fr(e.retainInputValue)?{create:!1,blur:!1,...e.retainInputValue}:{create:e.retainInputValue,blur:e.retainInputValue}),N=qt({width:"12px"}),L=F(()=>e.focused||E.value),B=(Se,Ne)=>{A.value=Se,t("update:inputValue",Se),t("inputValueChange",Se,Ne)},U=Se=>{var Ne;const{value:qe}=Se.target;Se.type==="compositionend"?(R.value=!1,M.value="",B(qe,Se),yn(()=>{h.value&&V.value!==h.value.value&&(h.value.value=V.value)})):(R.value=!0,M.value=V.value+((Ne=Se.data)!=null?Ne:""))},W=F(()=>{var Se;return(Se=e.modelValue)!=null?Se:_.value}),V=F(()=>{var Se;return(Se=e.inputValue)!=null?Se:A.value});Dt(c,Se=>{(kn(Se)||Sl(Se))&&(_.value=[])});const z=Se=>{h.value&&Se.target!==h.value&&(Se.preventDefault(),h.value.focus())},Y=Se=>{const{value:Ne}=Se.target;R.value||(B(Ne,Se),yn(()=>{h.value&&V.value!==h.value.value&&(h.value.value=V.value)}))},oe=F(()=>eDe(W.value,x.value)),ne=F(()=>{if(e.maxTagCount>0){const Se=oe.value.length-e.maxTagCount;if(Se>0){const Ne=oe.value.slice(0,e.maxTagCount),qe={value:"__arco__more",label:`+${Se}...`,closable:!1};return Ne.push({raw:qe,...qe}),Ne}}return oe.value}),X=(Se,Ne)=>{var qe,Je;_.value=Se,t("update:modelValue",Se),t("change",Se,Ne),(Je=(qe=k.value)==null?void 0:qe.onChange)==null||Je.call(qe,Ne)},K=(Se,Ne,qe)=>{var Je;const ot=(Je=W.value)==null?void 0:Je.filter((yt,at)=>at!==Ne);X(ot,qe),t("remove",Se,qe)},re=Se=>{X([],Se),t("clear",Se)},ee=F(()=>!g.value&&!e.readonly&&e.allowClear&&!!W.value.length),le=Se=>{var Ne;if(V.value){if(Se.preventDefault(),e.uniqueValue&&((Ne=W.value)!=null&&Ne.includes(V.value))){t("pressEnter",V.value,Se);return}const qe=W.value.concat(V.value);X(qe,Se),t("pressEnter",V.value,Se),D.value.create||B("",Se)}},Q=Se=>{var Ne,qe;E.value=!0,t("focus",Se),(qe=(Ne=k.value)==null?void 0:Ne.onFocus)==null||qe.call(Ne,Se)},ye=Se=>{var Ne,qe;E.value=!1,!D.value.blur&&V.value&&B("",Se),t("blur",Se),(qe=(Ne=k.value)==null?void 0:Ne.onBlur)==null||qe.call(Ne,Se)},be=()=>{for(let Se=oe.value.length-1;Se>=0;Se--)if(oe.value[Se].closable)return Se;return-1},ve=Se=>{if(g.value||e.readonly)return;const Ne=Se.key||Se.code;if(!R.value&&V.value&&Ne===oz.key&&le(Se),!R.value&&ne.value.length>0&&!V.value&&Ne===ffe.key){const qe=be();qe>=0&&K(oe.value[qe].value,qe,Se)}},Ce=Se=>{Se>12?N.width=`${Se}px`:N.width="12px"};gn(()=>{p.value&&Ce(p.value.offsetWidth)});const De=()=>{p.value&&Ce(p.value.offsetWidth)};Dt(V,Se=>{h.value&&!R.value&&Se!==h.value.value&&(h.value.value=Se)});const We=F(()=>[f,`${f}-size-${C.value}`,{[`${f}-disabled`]:g.value,[`${f}-disabled-input`]:e.disabledInput,[`${f}-error`]:b.value,[`${f}-focus`]:L.value,[`${f}-readonly`]:e.readonly,[`${f}-has-tag`]:ne.value.length>0,[`${f}-has-prefix`]:!!n.prefix,[`${f}-has-suffix`]:!!n.suffix||ee.value||S.value,[`${f}-has-placeholder`]:!W.value.length}]),Xe=F(()=>ya(r,cv)),He=F(()=>pf(r,cv));return{inputRef:h,render:()=>{var Se;return O("span",Bt({class:We.value,onMousedown:z},Xe.value),[O(kd,{onResize:De},{default:()=>[O("span",{ref:p,class:`${f}-mirror`},[ne.value.length>0?M.value||V.value:M.value||V.value||e.placeholder])]}),n.prefix&&O("span",{class:`${f}-prefix`},[n.prefix()]),O(V1,{tag:"span",name:"input-tag-zoom",class:[`${f}-inner`,{[`${f}-nowrap`]:e.tagNowrap}]},{default:()=>[ne.value.map((Ne,qe)=>O(mz,Bt({key:`tag-${Ne.value}`,class:`${f}-tag`,closable:!g.value&&!e.readonly&&Ne.closable,visible:!0,nowrap:e.tagNowrap},Ne.tagProps,{onClose:Je=>K(Ne.value,qe,Je)}),{default:()=>{var Je,ot,yt,at;return[(at=(yt=(Je=n.tag)==null?void 0:Je.call(n,{data:Ne.raw}))!=null?yt:(ot=e.formatTag)==null?void 0:ot.call(e,Ne.raw))!=null?at:Ne.label]}})),O("input",Bt(He.value,{ref:h,key:"input-tag-input",class:`${f}-input`,style:N,placeholder:ne.value.length===0?e.placeholder:void 0,disabled:g.value,readonly:e.readonly||e.disabledInput,onInput:Y,onKeydown:ve,onFocus:Q,onBlur:ye,onCompositionstart:U,onCompositionupdate:U,onCompositionend:U}),null)]}),ee.value&&O(ko,{class:`${f}-clear-btn`,onClick:re,onMousedown:Ne=>Ne.stopPropagation()},{default:()=>[O(ms,null,null)]}),(n.suffix||!!S.value)&&O("span",{class:`${f}-suffix`},[(Se=n.suffix)==null?void 0:Se.call(n),!!S.value&&O(Dk,{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 Dfe=Object.assign(tD,{install:(e,t)=>{Wn(e,t);const n=Hn(t);e.component(n+tD.name,tD)}});var zA=_e({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=>Qn(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}=Qt(e),s=Ae("select-view"),{feedback:l,eventHandlers:c,mergedDisabled:f,mergedSize:h,mergedError:p}=wo({size:r,disabled:o,error:a}),{mergedSize:m}=_a(h),{opened:g}=Qt(e),b=fe(),S=F(()=>{var B;return(B=b.value)==null?void 0:B.inputRef}),k=F(()=>e.modelValue.length===0),C=F(()=>e.allowSearch||e.allowCreate),x=F(()=>e.allowClear&&!e.disabled&&!k.value),E=B=>{var U,W;t("focus",B),(W=(U=c.value)==null?void 0:U.onFocus)==null||W.call(U,B)},_=B=>{var U,W;t("blur",B),(W=(U=c.value)==null?void 0:U.onBlur)==null||W.call(U,B)},A=B=>{t("remove",B)},R=B=>{t("clear",B)},M=()=>{var B,U,W,V;return e.loading?(U=(B=n["loading-icon"])==null?void 0:B.call(n))!=null?U:O(za,null,null):e.allowSearch&&e.opened?(V=(W=n["search-icon"])==null?void 0:W.call(n))!=null?V:O(bg,null,null):n["arrow-icon"]?n["arrow-icon"]():O(Av,{class:`${s}-arrow-icon`},null)},D=()=>O(Ut,null,[x.value&&O(ko,{class:`${s}-clear-btn`,onClick:R,onMousedown:B=>B.stopPropagation()},{default:()=>[O(ms,null,null)]}),O("span",{class:`${s}-icon`},[M()]),!!l.value&&O(Dk,{type:l.value},null)]);Dt(g,B=>{!B&&S.value&&S.value.isSameNode(document.activeElement)&&S.value.blur()});const N=F(()=>[`${s}-${e.multiple?"multiple":"single"}`,{[`${s}-opened`]:e.opened,[`${s}-borderless`]:!e.bordered}]);return{inputRef:S,handleFocus:E,handleBlur:_,render:()=>e.multiple?O(Dfe,{ref:b,baseCls:s,class:N.value,modelValue:e.modelValue,inputValue:e.inputValue,focused:e.opened,placeholder:e.placeholder,disabled:f.value,size:m.value,error:p.value,maxTagCount:e.maxTagCount,disabledInput:!e.allowSearch&&!e.allowCreate,tagNowrap:e.tagNowrap,retainInputValue:!0,uninjectFormItemContext:!0,onRemove:A,onFocus:E,onBlur:_},{prefix:n.prefix,suffix:D,tag:n.label}):O(J8e,{ref:b,baseCls:s,class:N.value,modelValue:e.modelValue[0],inputValue:e.inputValue,focused:e.opened,placeholder:e.placeholder,disabled:f.value,size:m.value,error:p.value,enabledInput:C.value,uninjectFormItemContext:!0,onFocus:E,onBlur:_},{default:n.label,prefix:n.prefix,suffix:D})}},methods:{focus(){this.inputRef&&this.inputRef.focus()},blur(){this.inputRef&&this.inputRef.blur()}},render(){return this.render()}});const iDe=_e({name:"Optgroup",props:{label:{type:String}},setup(){return{prefixCls:Ae("select-group")}}});function oDe(e,t,n,r,o,a){return H(),J(Ut,null,[I("li",{class:ae(`${e.prefixCls}-title`)},[ct(e.$slots,"label",{},()=>[ze(Be(e.label),1)])],2),ct(e.$slots,"default")],64)}var jS=Oe(iDe,[["render",oDe]]);const ine=typeof window>"u"?global:window;function z2(e,t){let n=0;return(...r)=>{n&&ine.clearTimeout(n),n=ine.setTimeout(()=>{n=0,e(...r)},t)}}function sDe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Bi(e)}const aDe={value:"value",label:"label",disabled:"disabled",tagProps:"tagProps",render:"render"};var nD=_e({name:"Select",components:{Trigger:la,SelectView:zA},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=>kn(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:f,multiple:h,popupVisible:p,defaultPopupVisible:m,showExtraOptions:g,modelValue:b,fieldNames:S,loading:k,defaultActiveFirstOption:C}=Qt(e),x=Ae("select"),{mergedSize:E,mergedDisabled:_,mergedError:A,eventHandlers:R}=wo({size:o,disabled:a,error:s}),M=F(()=>e.virtualListProps?"div":"li"),D=F(()=>fr(e.allowSearch)&&!!e.allowSearch.retainInputValue);F(()=>{if(_n(e.formatLabel))return mt=>{const wt=ot.get(mt.value);return e.formatLabel(wt)}});const N=fe(),L=fe({}),B=fe(),{computedPopupVisible:U,handlePopupVisibleChange:W}=F3({popupVisible:p,defaultPopupVisible:m,emit:n}),V=fe(e.defaultValue),z=F(()=>{var mt;const wt=(mt=e.modelValue)!=null?mt:V.value;return(Qn(wt)?wt:wt||Ke(wt)||is(wt)||bl(wt)?[wt]:[]).map(Ue=>({value:Ue,key:_g(Ue,e.valueKey)}))});Dt(b,mt=>{(kn(mt)||Sl(mt))&&(V.value=h.value?[]:mt)});const Y=F(()=>z.value.map(mt=>mt.key)),oe=F(()=>({...aDe,...S?.value})),ne=fe(),X=mt=>{const wt={};return mt.forEach(Ge=>{wt[Ge]=ot.get(Ge)}),wt},K=mt=>{ne.value=X(mt)},re=mt=>_n(e.fallbackOption)?e.fallbackOption(mt):{[oe.value.value]:mt,[oe.value.label]:String(fr(mt)?mt[f?.value]:mt)},ee=()=>{const mt=[],wt=[];if(e.allowCreate||e.fallbackOption){for(const Ge of z.value)if(!wt.includes(Ge.key)&&Ge.value!==""){const Ue=ot.get(Ge.key);(!Ue||Ue.origin==="extraOptions")&&(mt.push(Ge),wt.push(Ge.key))}}if(e.allowCreate&&be.value){const Ge=_g(be.value);if(!wt.includes(Ge)){const Ue=ot.get(Ge);(!Ue||Ue.origin==="extraOptions")&&mt.push({value:be.value,key:Ge})}}return mt},le=fe([]),Q=F(()=>le.value.map(mt=>{var wt;let Ge=re(mt.value);const Ue=(wt=ne.value)==null?void 0:wt[mt.key];return!kn(Ue)&&!UPe(Ue)&&(Ge={...Ge,...Ue}),Ge}));yn(()=>{As(()=>{var mt;const wt=ee();if(wt.length!==le.value.length)le.value=wt;else if(wt.length>0){for(let Ge=0;Ge{var mt;return(mt=e.inputValue)!=null?mt:ye.value});Dt(U,mt=>{!mt&&!D.value&&be.value&&De("")});const ve=mt=>{var wt,Ge;return e.multiple?mt.map(Ue=>{var st,kt;return(kt=(st=ot.get(Ue))==null?void 0:st.value)!=null?kt:""}):(Ge=(wt=ot.get(mt[0]))==null?void 0:wt.value)!=null?Ge:pMe(ot)?void 0:""},Ce=mt=>{var wt,Ge;const Ue=ve(mt);V.value=Ue,n("update:modelValue",Ue),n("change",Ue),(Ge=(wt=R.value)==null?void 0:wt.onChange)==null||Ge.call(wt),K(mt)},De=mt=>{ye.value=mt,n("update:inputValue",mt),n("inputValueChange",mt)},We=(mt,wt)=>{if(e.multiple){if(Y.value.includes(mt)){const Ge=Y.value.filter(Ue=>Ue!==mt);Ce(Ge)}else if(at.value.includes(mt))if(e.limit>0&&Y.value.length>=e.limit){const Ge=ot.get(mt);n("exceedLimit",Ge?.value,wt)}else{const Ge=Y.value.concat(mt);Ce(Ge)}D.value||De("")}else{if(mt!==Y.value[0]&&Ce([mt]),D.value){const Ge=ot.get(mt);Ge&&De(Ge.label)}W(!1)}},Xe=z2(mt=>{n("search",mt)},e.searchDelay),He=mt=>{mt!==be.value&&(U.value||W(!0),De(mt),e.allowSearch&&Xe(mt))},ke=mt=>{const wt=ot.get(mt),Ge=Y.value.filter(Ue=>Ue!==mt);Ce(Ge),n("remove",wt?.value)},Se=mt=>{mt?.stopPropagation();const wt=Y.value.filter(Ge=>{var Ue;return(Ue=ot.get(Ge))==null?void 0:Ue.disabled});Ce(wt),De(""),n("clear",mt)},Ne=mt=>{n("dropdownScroll",mt)},qe=mt=>{n("dropdownReachBottom",mt)},{validOptions:Je,optionInfoMap:ot,validOptionInfos:yt,enabledOptionKeys:at,handleKeyDown:ut}=dz({multiple:h,options:l,extraOptions:Q,inputValue:be,filterOption:c,showExtraOptions:g,component:M,valueKey:f,fieldNames:S,loading:k,popupVisible:U,valueKeys:Y,dropdownRef:N,optionRefs:L,virtualListRef:B,defaultActiveFirstOption:C,onSelect:We,onPopupVisibleChange:W}),vt=F(()=>{var mt;const wt=[];for(const Ge of z.value){const Ue=ot.get(Ge.key);Ue&&wt.push({...Ue,value:Ge.key,label:(mt=Ue?.label)!=null?mt:String(fr(Ge.value)?Ge.value[f?.value]:Ge.value),closable:!Ue?.disabled,tagProps:Ue?.tagProps})}return wt}),Wt=mt=>{if(_n(t.option)){const wt=t.option;return()=>wt({data:mt.raw})}return _n(mt.render)?mt.render:()=>mt.label},Ft=mt=>{if(bfe(mt)){let wt;return O(jS,{key:mt.key,label:mt.label},sDe(wt=mt.options.map(Ge=>Ft(Ge)))?wt:{default:()=>[wt]})}return $3(mt,{inputValue:be.value,filterOption:c?.value})?O(tg,{ref:wt=>{wt?.$el&&(L.value[mt.key]=wt.$el)},key:mt.key,value:mt.value,label:mt.label,disabled:mt.disabled,internal:!0},{default:Wt(mt)}):null},Jt=()=>O(cz,{ref:N,loading:e.loading,empty:yt.value.length===0,virtualList:!!e.virtualListProps,scrollbar:e.scrollbar,showHeaderOnEmpty:e.showHeaderOnEmpty,showFooterOnEmpty:e.showFooterOnEmpty,onScroll:Ne,onReachBottom:qe},{default:()=>{var mt,wt;return[...(wt=(mt=t.default)==null?void 0:mt.call(t))!=null?wt:[],...Je.value.map(Ft)]},"virtual-list":()=>O(G1,Bt(e.virtualListProps,{ref:B,data:Je.value}),{item:({item:mt})=>Ft(mt)}),empty:t.empty,header:t.header,footer:t.footer}),an=({data:mt})=>{var wt,Ge,Ue,st;if((t.label||_n(e.formatLabel))&&mt){const kt=ot.get(mt.value);if(kt?.raw)return(Ue=(wt=t.label)==null?void 0:wt.call(t,{data:kt.raw}))!=null?Ue:(Ge=e.formatLabel)==null?void 0:Ge.call(e,kt.raw)}return(st=mt?.label)!=null?st:""};return()=>O(la,Bt({trigger:"click",position:"bl",popupOffset:4,animationName:"slide-dynamic-origin",hideEmpty:!0,preventFocus:!0,autoFitPopupWidth:!0,autoFitTransformOrigin:!0,disabled:_.value,popupVisible:U.value,unmountOnClose:e.unmountOnClose,clickToClose:!(e.allowSearch||e.allowCreate),popupContainer:e.popupContainer,onPopupVisibleChange:W},e.triggerProps),{default:()=>{var mt,wt;return[(wt=(mt=t.trigger)==null?void 0:mt.call(t))!=null?wt:O(zA,Bt({class:x,modelValue:vt.value,inputValue:be.value,multiple:e.multiple,disabled:_.value,error:A.value,loading:e.loading,allowClear:e.allowClear,allowCreate:e.allowCreate,allowSearch:!!e.allowSearch,opened:U.value,maxTagCount:e.maxTagCount,placeholder:e.placeholder,bordered:e.bordered,size:E.value,tagNowrap:e.tagNowrap,onInputValueChange:He,onRemove:ke,onClear:Se,onKeydown:ut},r),{label:an,prefix:t.prefix,"arrow-icon":t["arrow-icon"],"loading-icon":t["loading-icon"],"search-icon":t["search-icon"]})]},content:Jt})}});const H2=Object.assign(nD,{Option:tg,OptGroup:jS,install:(e,t)=>{Wn(e,t);const n=Hn(t);e.component(n+nD.name,nD),e.component(n+tg.name,tg),e.component(n+jS.name,jS)}}),Ofe=Symbol("RadioGroup");var e4=_e({name:"Radio",components:{IconHover:ko},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=Ae("radio"),{modelValue:o}=Qt(e),a=e.uninjectGroupContext?void 0:In(Ofe,void 0),{mergedDisabled:s,eventHandlers:l}=wo({disabled:Cu(e,"disabled")}),c=fe(null),f=fe(e.defaultChecked),h=F(()=>a?.name==="ArcoRadioGroup"),p=F(()=>{var _;return(_=a?.type)!=null?_:e.type}),m=F(()=>a?.disabled||s.value),g=F(()=>{var _,A;return h.value?a?.value===((_=e.value)!=null?_:!0):kn(e.modelValue)?f.value:e.modelValue===((A=e.value)!=null?A:!0)});Dt(o,_=>{(kn(_)||Sl(_))&&(f.value=!1)}),Dt(g,(_,A)=>{_!==A&&(f.value=_,c.value&&(c.value.checked=_))});const b=_=>{var A,R;(R=(A=l.value)==null?void 0:A.onFocus)==null||R.call(A,_)},S=_=>{var A,R;(R=(A=l.value)==null?void 0:A.onBlur)==null||R.call(A,_)},k=_=>{_.stopPropagation()},C=_=>{var A,R,M,D,N;f.value=!0,h.value?a?.handleChange((A=e.value)!=null?A:!0,_):(t("update:modelValue",(R=e.value)!=null?R:!0),t("change",(M=e.value)!=null?M:!0,_),(N=(D=l.value)==null?void 0:D.onChange)==null||N.call(D,_)),yn(()=>{c.value&&c.value.checked!==g.value&&(c.value.checked=g.value)})},x=F(()=>[`${p.value==="button"?`${r}-button`:r}`,{[`${r}-checked`]:g.value,[`${r}-disabled`]:m.value}]),E=()=>O(Ut,null,[O(Pe("icon-hover"),{class:`${r}-icon-hover`,disabled:m.value||g.value},{default:()=>[O("span",{class:`${r}-icon`},null)]}),n.default&&O("span",{class:`${r}-label`},[n.default()])]);return()=>{var _,A,R,M;return O("label",{class:x.value},[O("input",{ref:c,type:"radio",checked:g.value,value:e.value,class:`${r}-target`,disabled:m.value,onClick:k,onChange:C,onFocus:b,onBlur:S},null),p.value==="radio"?(M=(R=(A=n.radio)!=null?A:(_=a?.slots)==null?void 0:_.radio)==null?void 0:R({checked:g.value,disabled:m.value}))!=null?M:E():O("span",{class:`${r}-button-content`},[n.default&&n.default()])])}}}),t4=_e({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=Ae("radio-group"),{size:o,type:a,disabled:s,modelValue:l}=Qt(e),{mergedDisabled:c,mergedSize:f,eventHandlers:h}=wo({size:o,disabled:s}),{mergedSize:p}=_a(f),m=fe(e.defaultValue),g=F(()=>{var x;return(x=e.modelValue)!=null?x:m.value}),b=F(()=>{var x;return((x=e.options)!=null?x:[]).map(E=>is(E)||Ke(E)?{label:E,value:E}:E)});Xr(Ofe,qt({name:"ArcoRadioGroup",value:g,size:p,type:a,disabled:c,slots:n,handleChange:(x,E)=>{var _,A;m.value=x,t("update:modelValue",x),t("change",x,E),(A=(_=h.value)==null?void 0:_.onChange)==null||A.call(_,E)}})),Dt(g,x=>{m.value!==x&&(m.value=x)}),Dt(l,x=>{(kn(x)||Sl(x))&&(m.value="")});const k=F(()=>[`${r}${e.type==="button"?"-button":""}`,`${r}-size-${p.value}`,`${r}-direction-${e.direction}`,{[`${r}-disabled`]:c.value}]),C=()=>b.value.map(x=>O(e4,{key:x.value,value:x.value,disabled:x.disabled,modelValue:g.value===x.value},{default:()=>[n.label?n.label({data:x}):_n(x.label)?x.label():x.label]}));return()=>{var x;return O("span",{class:k.value},[b.value.length>0?C():(x=n.default)==null?void 0:x.call(n)])}}});const b1=Object.assign(e4,{Group:t4,install:(e,t)=>{Wn(e,t);const n=Hn(t);e.component(n+e4.name,e4),e.component(n+t4.name,t4)}}),lDe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-left`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),uDe=["stroke-width","stroke-linecap","stroke-linejoin"];function cDe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,uDe)}var rD=Oe(lDe,[["render",cDe]]);const kl=Object.assign(rD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+rD.name,rD)}});function dDe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Bi(e)}function one(e){return e.parentElement}var fDe=_e({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=Ae("calendar"),{t:r}=Lo(),o=Qn(e.modes)?e.modes.map(h=>({label:r(`datePicker.view.${h}`),value:h})):[],a=e.headerType==="select",s=F(()=>e.pageShowData.year()),l=F(()=>e.pageShowData.month()+1),c=F(()=>{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}),f=[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(Ut,null,[O(H2,{size:"small",class:`${n}-header-value-year`,value:s,options:c.value,onChange:e.onYearChange,getPopupContainer:one},null),e.mode==="month"&&O(H2,{size:"small",class:`${n}-header-value-month`,value:l,options:f,onChange:e.onMonthChange,getPopupContainer:one},null)]):O(Ut,null,[O("div",{class:`${n}-header-icon`,role:"button",tabIndex:0,onClick:()=>e.changePageShowDate("prev",e.mode)},[O(kl,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(Ni,null,null)])]),O(Ho,{size:"small",onClick:()=>e.move(Ua())},dDe(h=r("datePicker.today"))?h:{default:()=>[h]})]),O("div",{class:`${n}-header-right`},[O(b1.Group,{size:"small",type:"button",options:o,onChange:e.onModeChange,modelValue:e.mode},null)])])}}});function hDe(e,t){return e==="month"||e==="year"&&!t?"YYYY-MM-DD":"YYYY-MM"}var iD=_e({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}=Qt(e),a=Ae("calendar"),s=fe(e.defaultMode),{t:l}=Lo(),c=F(()=>e.mode?e.mode:s.value),f=hDe(c.value,e.panel),h=fe(rc(e.defaultValue||Date.now(),f)),p=F(()=>e.modelValue?rc(e.modelValue,f):h.value),m=fe(p.value||Ua()),g=F(()=>Ife(m.value,{dayStartOfWeek:r.value,isWeek:o.value}));function b(D){m.value=D,t("panelChange",D.toDate())}function S(D){h.value=D,t("change",D.toDate()),t("update:modelValue",D.toDate()),b(D)}function k(D,N=!1){N||S(D)}let C="";c.value==="month"?C=l("calendar.formatMonth"):c.value==="year"&&(C=l("calendar.formatYear"));function x(D,N){D==="prev"&&(m.value=Ws.subtract(m.value,1,N)),D==="next"&&(m.value=Ws.add(m.value,1,N)),t("panelChange",m.value.toDate())}function E(D){const N=Ws.set(m.value,"year",D);m.value=N,t("panelChange",N.toDate())}function _(D){const N=Ws.set(m.value,"month",D-1);m.value=N,t("panelChange",N.toDate())}function A(D){s.value=D}const R=F(()=>[a,c.value==="month"?`${a}-mode-month`:`${a}-mode-year`,{[`${a}-panel`]:e.panel&&(c.value==="month"||c.value==="year")}]),M=e.panel?{width:e.panelWidth}:{};return()=>O("div",Bt({class:R.value,style:M},q8e(e)),[O(fDe,{move:S,headerValueFormat:C,modes:e.modes,mode:c.value,pageShowData:m.value,dayStartOfWeek:e.dayStartOfWeek,isWeek:e.isWeek,onModeChange:A,onYearChange:E,onMonthChange:_,changePageShowDate:x},{default:n.header}),c.value==="month"&&O("div",{class:`${a}-body`},[O(Lfe,{key:m.value.month(),pageData:g.value,value:p.value,mode:c.value,selectHandler:k,isWeek:e.isWeek,dayStartOfWeek:e.dayStartOfWeek,pageShowDate:m.value},{default:n.default})]),c.value==="year"&&O("div",{class:`${a}-body`},[O(Z8e,{key:m.value.year(),pageData:g.value,pageShowData:m.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 $fe=Object.assign(iD,{install:(e,t)=>{Wn(e,t);const n=Hn(t);e.component(n+iD.name,iD)}}),gz=Symbol("ArcoCard");var oD=_e({name:"Card",components:{Spin:wd},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=Ae("card"),{size:r}=Qt(e),{mergedSize:o}=_a(r),a=F(()=>o.value==="small"||o.value==="mini"?"small":"medium"),s=f=>{const h=df(f);return O("div",{class:`${n}-actions`},[O("div",{class:`${n}-actions-right`},[h.map((p,m)=>O("span",{key:`action-${m}`,class:`${n}-actions-item`},[p]))])])},l=qt({hasMeta:!1,hasGrid:!1,slots:t,renderActions:s});Xr(gz,l);const c=F(()=>[n,`${n}-size-${a.value}`,{[`${n}-loading`]:e.loading,[`${n}-bordered`]:e.bordered,[`${n}-hoverable`]:e.hoverable,[`${n}-contain-grid`]:l.hasGrid}]);return()=>{var f,h,p,m,g,b,S;const k=!!((f=t.title)!=null?f: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`},[(m=(p=t.title)==null?void 0:p.call(t))!=null?m:e.title]),C&&O("div",{class:`${n}-header-extra`},[(b=(g=t.extra)==null?void 0:g.call(t))!=null?b:e.extra])]),t.cover&&O("div",{class:`${n}-cover`},[t.cover()]),O("div",{class:`${n}-body`,style:e.bodyStyle},[e.loading?O(wd,null,null):(S=t.default)==null?void 0:S.call(t),t.actions&&!l.hasMeta&&s(t.actions())])])}}}),n4=_e({name:"CardMeta",props:{title:{type:String},description:{type:String}},setup(e,{slots:t}){const n=Ae("card-meta"),r=In(gz);return gn(()=>{r&&(r.hasMeta=!0)}),()=>{var o,a,s,l,c,f;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`},[(f=(c=t.description)==null?void 0:c.call(t))!=null?f: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 pDe=_e({name:"CardGrid",props:{hoverable:{type:Boolean,default:!1}},setup(e){const t=Ae("card-grid"),n=In(gz);return gn(()=>{n&&(n.hasGrid=!0)}),{cls:F(()=>[t,{[`${t}-hoverable`]:e.hoverable}])}}});function vDe(e,t,n,r,o,a){return H(),J("div",{class:ae(e.cls)},[ct(e.$slots,"default")],2)}var r4=Oe(pDe,[["render",vDe]]);const mDe=Object.assign(oD,{Meta:n4,Grid:r4,install:(e,t)=>{Wn(e,t);const n=Hn(t);e.component(n+oD.name,oD),e.component(n+n4.name,n4),e.component(n+r4.name,r4)}}),gDe=_e({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=Ae("carousel-indicator"),r=l=>{var c;if(l.preventDefault(),e.type==="slider"){const f=l.offsetX,h=l.currentTarget.clientWidth;if(l.target===l.currentTarget){const p=Math.floor(f/h*e.count);p!==e.activeIndex&&t("select",p)}}else{const f=Number.parseInt((c=l.target.getAttribute("data-index"))!=null?c:"",10);!Number.isNaN(f)&&f!==e.activeIndex&&t("select",f)}},o=F(()=>e.trigger==="click"?{onClick:r}:{onMouseover:r}),a=F(()=>[`${n}`,`${n}-${e.type}`,`${n}-${e.position}`]),s=F(()=>{const l=100/e.count;return{width:`${l}%`,left:`${e.activeIndex*l}%`}});return{prefixCls:n,eventHandlers:o,cls:a,sliderStyle:s}}}),yDe=["data-index"];function bDe(e,t,n,r,o,a){return H(),J("div",Bt({class:e.cls},e.eventHandlers),[e.type==="slider"?(H(),J("span",{key:0,style:je(e.sliderStyle),class:ae([`${e.prefixCls}-item`,`${e.prefixCls}-item-active`])},null,6)):(H(!0),J(Ut,{key:1},mn(Array(e.count),(s,l)=>(H(),J("span",{key:l,"data-index":l,class:ae([`${e.prefixCls}-item`,{[`${e.prefixCls}-item-active`]:l===e.activeIndex}])},null,10,yDe))),128))],16)}var _De=Oe(gDe,[["render",bDe]]);const SDe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-up`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),kDe=["stroke-width","stroke-linecap","stroke-linejoin"];function wDe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,kDe)}var sD=Oe(SDe,[["render",wDe]]);const Ok=Object.assign(sD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+sD.name,sD)}}),CDe=_e({name:"Arrow",components:{IconUp:Ok,IconDown:Av,IconLeft:kl,IconRight:Ni},props:{direction:{type:String,default:"horizontal"},showArrow:{type:String,default:"always"}},emits:["previousClick","nextClick"],setup(e,{emit:t}){const n=Ae("carousel"),r=s=>{t("previousClick",s)},o=s=>{t("nextClick",s)},a=F(()=>[`${n}-arrow`,{[`${n}-arrow-hover`]:e.showArrow==="hover"}]);return{prefixCls:n,cls:a,onPreviousClick:r,onNextClick:o}}});function xDe(e,t,n,r,o,a){const s=Pe("IconLeft"),l=Pe("IconUp"),c=Pe("IconRight"),f=Pe("IconDown");return H(),J("div",{class:ae(e.cls)},[I("div",{class:ae(`${e.prefixCls}-arrow-${e.direction==="vertical"?"top":"left"}`),onClick:t[0]||(t[0]=(...h)=>e.onPreviousClick&&e.onPreviousClick(...h))},[e.direction==="horizontal"?(H(),Ye(s,{key:0})):(H(),Ye(l,{key:1}))],2),I("div",{class:ae(`${e.prefixCls}-arrow-${e.direction==="vertical"?"bottom":"right"}`),onClick:t[1]||(t[1]=(...h)=>e.onNextClick&&e.onNextClick(...h))},[e.direction==="horizontal"?(H(),Ye(c,{key:0})):(H(),Ye(f,{key:1}))],2)],2)}var EDe=Oe(CDe,[["render",xDe]]);const Nfe=Symbol("ArcoCarousel"),$k=e=>{const t={},n=fe([]),r=()=>{if(t.value){const o=ife(t.value,e);(o.length!==n.value.length||o.toString()!==n.value.toString())&&(n.value=o)}};return gn(()=>r()),Ga(()=>r()),{children:t,components:n}},sne={interval:3e3,hoverToPause:!0};function aD(e,t){const n=+e;return typeof n=="number"&&!Number.isNaN(n)?(n+t)%t:e}var lD=_e({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}=Qt(e),l=Ae("carousel"),c=fe(!1),f=fe(),h=fe(),p=F(()=>fr(e.autoPlay)?{...sne,...e.autoPlay}:e.autoPlay?sne:{});let m=0,g=0;const{children:b,components:S}=$k("CarouselItem"),k=fe(e.defaultCurrent-1),C=F(()=>{const V=S.value.length,z=Ke(r.value)?aD(r.value-1,V):k.value,Y=aD(z-1,V),oe=aD(z+1,V);return{mergedIndex:z,mergedPrevIndex:Y,mergedNextIndex:oe}}),x=qt({items:S,slideTo:_,mergedIndexes:C,previousIndex:f,animationName:o,slideDirection:h,transitionTimingFunction:s,moveSpeed:a});Xr(Nfe,x);const E=()=>{m&&window.clearInterval(m)};As(()=>{var V;const{interval:z}=p.value||{},{mergedNextIndex:Y}=C.value,oe=((V=S.value)==null?void 0:V.length)>1&&!c.value&&!!z;E(),oe&&(m=window.setInterval(()=>{_({targetIndex:Y})},z))}),Fo(()=>{E()});function _({targetIndex:V,isNegative:z=!1,isManual:Y=!1}){!g&&V!==C.value.mergedIndex&&(f.value=k.value,k.value=V,h.value=z?"negative":"positive",g=window.setTimeout(()=>{g=0},a.value),t("update:current",k.value+1),t("change",k.value+1,f.value+1,Y))}const A=()=>_({targetIndex:C.value.mergedPrevIndex,isNegative:!0,isManual:!0}),R=()=>_({targetIndex:C.value.mergedNextIndex,isManual:!0}),M=V=>_({targetIndex:V,isNegative:Vp.value.hoverToPause?{onMouseenter:()=>{c.value=!0},onMouseleave:()=>{c.value=!1}}:{}),N=F(()=>e.indicatorType!=="never"&&S.value.length>1),L=F(()=>e.showArrow!=="never"&&S.value.length>1),B=F(()=>[l,`${l}-indicator-position-${e.indicatorPosition}`]),U=F(()=>[`${l}-${e.animationName}`,`${l}-${e.direction}`,{[`${l}-negative`]:h.value==="negative"}]),W=F(()=>[`${l}-indicator-wrapper`,`${l}-indicator-wrapper-${e.indicatorPosition}`]);return()=>{var V;return b.value=(V=n.default)==null?void 0:V.call(n),O("div",Bt({class:B.value},D.value),[O("div",{class:U.value},[b.value]),N.value&&O("div",{class:W.value},[O(_De,{class:e.indicatorClass,type:e.indicatorType,count:S.value.length,activeIndex:C.value.mergedIndex,position:e.indicatorPosition,trigger:e.trigger,onSelect:M},null)]),L.value&&O(EDe,{class:e.arrowClass,direction:e.direction,showArrow:e.showArrow,onPreviousClick:A,onNextClick:R},null)])}}});const TDe=_e({name:"CarouselItem",setup(){const e=Ae("carousel-item"),t=fo(),n=In(Nfe,{}),r=F(()=>{var l,c,f;return(f=(c=n.items)==null?void 0:c.indexOf((l=t?.uid)!=null?l:-1))!=null?f:-1}),o=F(()=>{var l;return((l=n.mergedIndexes)==null?void 0:l.mergedIndex)===r.value}),a=F(()=>{const{previousIndex:l,animationName:c,slideDirection:f,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"&&f&&o.value,[`${e}-slide-out`]:c==="slide"&&f&&r.value===l}}),s=F(()=>{const{transitionTimingFunction:l,moveSpeed:c}=n;return{transitionTimingFunction:l,transitionDuration:`${c}ms`,animationTimingFunction:l,animationDuration:`${c}ms`}});return{cls:a,animationStyle:s,isCurrent:o}}}),ADe=["aria-hidden"];function IDe(e,t,n,r,o,a){return H(),J("div",{"aria-hidden":!e.isCurrent,class:ae(e.cls),style:je(e.animationStyle)},[ct(e.$slots,"default")],14,ADe)}var i4=Oe(TDe,[["render",IDe]]);const LDe=Object.assign(lD,{Item:i4,install:(e,t)=>{Wn(e,t);const n=Hn(t);e.component(n+lD.name,lD),e.component(n+i4.name,i4)}}),Bfe=(e,{optionMap:t,leafOptionMap:n,leafOptionSet:r,leafOptionValueMap:o,totalLevel:a,checkStrictly:s,enabledLazyLoad:l,lazyLoadOptions:c,valueKey:f,fieldNames:h})=>{let p=0;const m=(b,S,k)=>{var C;const x=(C=S?.path)!=null?C:[];return p=Math.max(p,k??1),b.map((E,_)=>{var A;const R=E[h.value],M={raw:E,value:R,label:(A=E[h.label])!=null?A:String(R),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(fr(R)?R[f.value]:R),parent:S,path:[],pathValue:[]},D=x.concat(M),N=[],L=D.map(B=>(N.push(B.value),B.valueKey)).join("-");return M.path=D,M.pathValue=N,M.key=L,E[h.children]?(M.isLeaf=!1,M.children=m(E[h.children],M,(k??1)+1)):l&&!M.isLeaf?(M.isLeaf=!1,c[L]&&(M.children=m(c[L],M,(k??1)+1))):M.isLeaf=!0,M.children&&!M.disabled&&(M.totalLeafOptions=M.children.reduce((B,U)=>Ke(U.totalLeafOptions)?B+U.totalLeafOptions:U.disabled||U.selectionDisabled?B:B+(U.isLeaf?1:0),0),M.totalLeafOptions===0&&!s.value&&(M.selectionDisabled=!0)),t.set(M.key,M),(M.isLeaf||s.value)&&(r.add(M),n.set(M.key,M),o.has(M.valueKey)||o.set(M.valueKey,M.key)),M})},g=m(e);return a.value=p,g},yz=(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,f)=>s.test(f)?c+1:c,0);l>0&&l>=((r=e.totalLeafOptions)!=null?r:1)?o=!0:l>0&&(a=!0)}return{checked:o,indeterminate:a}},bz=e=>{const t=[];if(e.isLeaf)t.push(e.key);else if(e.children)for(const n of e.children)t.push(...bz(n));return t},_z=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(..._z(n));return t},Ffe=(e,{valueKey:t,leafOptionValueMap:n})=>{var r;if(Qn(e))return e.map(a=>fr(a)?a[t]:a).join("-");const o=fr(e)?e[t]:e;return(r=n.get(String(o)))!=null?r:String(o)},jfe=(e,{multiple:t,pathMode:n})=>Qn(e)?n&&!t&&e.length>0&&!Qn(e[0])?[e]:e:kn(e)||Sl(e)||e===""?[]:[e],Ufe=e=>e.path.map(t=>t.label).join(" / "),Sz=Symbol("ArcoCascader");var tj=_e({name:"CascaderOption",props:{option:{type:Object,required:!0},active:Boolean,multiple:Boolean,checkStrictly:Boolean,searchOption:Boolean,pathLabel:Boolean},setup(e){const t=Ae("cascader-option"),n=In(Sz,{}),r=fe(!1),o={},a=h=>{var p;if(_n(n.loadMore)&&!e.option.isLeaf){const{isLeaf:m,children:g,key:b}=e.option;!m&&!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,b))}))}(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=F(()=>[t,{[`${t}-active`]:e.active,[`${t}-disabled`]:e.option.disabled}]),l=F(()=>{var h;return e.checkStrictly?{checked:(h=n.valueMap)==null?void 0:h.has(e.option.key),indeterminate:!1}:yz(e.option,n.valueMap)}),c=()=>{var h,p,m;return e.pathLabel?(p=(h=n?.formatLabel)==null?void 0:h.call(n,e.option.path.map(g=>g.raw)))!=null?p:Ufe(e.option):(m=n.slots)!=null&&m.option?n.slots.option({data:e.option}):_n(e.option.render)?e.option.render():e.option.label},f=()=>r.value?O(za,null,null):!e.searchOption&&!e.option.isLeaf?O(Ni,null,null):null;return()=>{var h;return O("li",Bt({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(_d,{modelValue:l.value.checked,indeterminate:l.value.indeterminate,disabled:e.option.disabled||e.option.selectionDisabled,uninjectGroupContext:!0,onChange:(p,m)=>{var g;m.stopPropagation(),a(),(g=n.onClickOption)==null||g.call(n,e.option,!l.value.checked)},onClick:p=>p.stopPropagation()},null),e.checkStrictly&&!e.multiple&&O(b1,{modelValue:(h=n.valueMap)==null?void 0:h.has(e.option.key),disabled:e.option.disabled,uninjectGroupContext:!0,onChange:(p,m)=>{var g;m.stopPropagation(),a(),(g=n.onClickOption)==null||g.call(n,e.option,!0)},onClick:p=>p.stopPropagation()},null),O("div",{class:`${t}-label`},[c(),f()])])}}}),PDe=_e({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=Ae("cascader"),r=In(Va,void 0),o=fe(),a=fe(!!e.virtualListProps),s=()=>{var l,c,f,h,p;return(p=(h=(l=t.empty)==null?void 0:l.call(t))!=null?h:(f=r==null?void 0:(c=r.slots).empty)==null?void 0:f.call(c,{component:"cascader"}))!=null?p:O(Uh,null,null)};return()=>{var l;return O("div",{class:`${n}-panel-column`,style:{zIndex:e.totalLevel-e.level}},[e.column.length===0?O(Cd,{class:`${n}-column-content`},{default:()=>[O("div",{class:`${n}-list-empty`},[s()])]}):a.value?O(G1,Bt({key:(l=e.column)==null?void 0:l.length},e.virtualListProps,{ref:o,data:e.column}),{item:({item:c})=>O(tj,{key:c.key,option:c,active:e.selectedPath.includes(c.key)||c.key===e.activeKey,multiple:e.multiple,checkStrictly:e.checkStrictly},null)}):O(Cd,{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(tj,{key:c.key,option:c,active:e.selectedPath.includes(c.key)||c.key===e.activeKey,multiple:e.multiple,checkStrictly:e.checkStrictly},null))])]})])}}});function RDe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Bi(e)}var Vfe=_e({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=Ae("cascader"),r=In(Va,void 0),o=()=>{var s,l,c,f,h;return(h=(f=(s=t.empty)==null?void 0:s.call(t))!=null?f:(c=r==null?void 0:(l=r.slots).empty)==null?void 0:c.call(l,{component:"cascader"}))!=null?h:O(Uh,null,null)},a=()=>e.loading?O("div",{key:"panel-column-loading",class:[`${n}-panel-column`,`${n}-panel-column-loading`]},[O(wd,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(PDe,{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(V1,{tag:"div",name:"cascader-slide",class:[`${n}-panel`,{[`${n}-dropdown-panel`]:e.dropdown}]},RDe(s=a())?s:{default:()=>[s]})}}});function MDe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Bi(e)}var DDe=_e({name:"CascaderSearchPanel",props:{options:{type:Array,required:!0},loading:Boolean,activeKey:String,multiple:Boolean,checkStrictly:Boolean,pathLabel:Boolean},setup(e,{slots:t}){const n=Ae("cascader"),r=In(Va,void 0),o=()=>{var a,s,l,c,f;return e.loading?O(wd,null,null):e.options.length===0?O("div",{class:`${n}-list-empty`},[(f=(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?f:O(Uh,null,null)]):O("ul",{role:"menu",class:[`${n}-list`,`${n}-search-list`,{[`${n}-list-multiple`]:e.multiple}]},[e.options.map(h=>O(tj,{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(Cd,{class:[`${n}-panel`,`${n}-search-panel`]},MDe(a=o())?a:{default:()=>[a]})}}});const zfe=(e,{optionMap:t,filteredLeafOptions:n,showSearchPanel:r,expandChild:o})=>{const a=fe(),s=F(()=>{if(a.value)return t.get(a.value)}),l=fe([]),c=F(()=>{const b=[e.value];for(const S of l.value){const k=t.get(S);k?.children&&b.push(k.children)}return b}),f=b=>{var S;const k=m(b);l.value=(S=k?.path.map(C=>C.key))!=null?S:[]},h=b=>{a.value=b},p=F(()=>{var b;return r?.value?n.value.filter(S=>!S.disabled):s.value&&s.value.parent?(b=s.value.parent.children)==null?void 0:b.filter(S=>!S.disabled):e.value.filter(S=>!S.disabled)}),m=b=>{let S=b?t.get(b):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:f,getNextActiveNode:b=>{var S,k,C,x,E,_,A;const R=(k=(S=p.value)==null?void 0:S.length)!=null?k:0;if(a.value){const M=(x=(C=p.value)==null?void 0:C.findIndex(D=>D.key===a.value))!=null?x:0;return b==="next"?(E=p.value)==null?void 0:E[(R+M+1)%R]:(_=p.value)==null?void 0:_[(R+M-1)%R]}return(A=p.value)==null?void 0:A[0]}}},ODe=_e({name:"Cascader",components:{Trigger:la,SelectView:zA,BaseCascaderPanel:Vfe,CascaderSearchPanel:DDe},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:f,expandTrigger:h,expandChild:p,pathMode:m,multiple:g}=Qt(e),b=fe(e.defaultValue),S=fe(e.defaultInputValue),k=fe(e.defaultPopupVisible),{mergedDisabled:C,eventHandlers:x}=wo({disabled:c});Dt(l,yt=>{(kn(yt)||Sl(yt))&&(b.value=e.multiple?[]:void 0)});const E=fe([]),_=fe(1),A=qt(new Map),R=qt(new Map),M=qt(new Map),D=qt(new Set),N=qt({}),L=(yt,at)=>{N[at]=yt},B={value:"value",label:"label",disabled:"disabled",children:"children",tagProps:"tagProps",render:"render",isLeaf:"isLeaf"},U=F(()=>({...B,...e.fieldNames}));Dt([r,N,U],([yt,at,ut])=>{A.clear(),R.clear(),M.clear(),D.clear(),E.value=Bfe(yt??[],{enabledLazyLoad:!!e.loadMore,lazyLoadOptions:N,optionMap:A,leafOptionSet:D,leafOptionMap:R,leafOptionValueMap:M,totalLevel:_,checkStrictly:o,valueKey:f,fieldNames:ut})},{immediate:!0,deep:!0});const W=F(()=>{var yt;const at=jfe((yt=e.modelValue)!=null?yt:b.value,{multiple:e.multiple,pathMode:e.pathMode});return new Map(at.map(ut=>[Ffe(ut,{valueKey:e.valueKey,leafOptionValueMap:M}),ut]))}),V=F(()=>{var yt;return(yt=e.inputValue)!=null?yt:S.value}),z=F(()=>{var yt;return(yt=e.popupVisible)!=null?yt:k.value}),Y=yt=>{var at;return yt?.toLocaleLowerCase().includes((at=V.value)==null?void 0:at.toLocaleLowerCase())},oe=F(()=>(e.checkStrictly?Array.from(A.values()):Array.from(D)).filter(at=>{var ut;return _n(e.filterOption)?e.filterOption(V.value,at.raw):e.checkStrictly?Y(at.label):(ut=at.path)==null?void 0:ut.find(vt=>Y(vt.label))})),ne=yt=>{var at,ut,vt;const Wt=e.multiple?yt:(at=yt[0])!=null?at:"";yt.length===0&&(Ne(),Se()),b.value=Wt,t("update:modelValue",Wt),t("change",Wt),(vt=(ut=x.value)==null?void 0:ut.onChange)==null||vt.call(ut)};Dt([g,m],()=>{const yt=[];W.value.forEach((at,ut)=>{const vt=R.get(ut);vt&&yt.push(m.value?vt.pathValue:vt.value)}),ne(yt)});const X=yt=>{z.value!==yt&&(k.value=yt,t("popupVisibleChange",yt))},K=yt=>{if(e.multiple){const at=R.get(yt);if(at)ee(at,!1);else{const ut=[];W.value.forEach((vt,Wt)=>{Wt!==yt&&ut.push(vt)}),ne(ut)}}},re=yt=>{ne([e.pathMode?yt.pathValue:yt.value]),X(!1)},ee=(yt,at)=>{if(at){const ut=e.checkStrictly?[yt]:_z(yt);ne([...W.value.values(),...ut.filter(vt=>!W.value.has(vt.key)).map(vt=>e.pathMode?vt.pathValue:vt.value)])}else{const ut=e.checkStrictly?[yt.key]:bz(yt),vt=[];W.value.forEach((Wt,Ft)=>{ut.includes(Ft)||vt.push(Wt)}),ne(vt)}ye("","optionChecked")},le=(yt,at)=>{e.multiple?ee(yt,at??!0):re(yt)},Q=z2(yt=>{t("search",yt)},e.searchDelay),ye=(yt,at)=>{yt!==V.value&&(at==="manual"&&!z.value&&(k.value=!0,t("popupVisibleChange",!0)),S.value=yt,t("inputValueChange",yt),e.allowSearch&&Q(yt))};Dt(z,yt=>{if(yt){if(W.value.size>0){const at=Array.from(W.value.keys()),ut=at[at.length-1],vt=R.get(ut);vt&&vt.key!==We.value&&(Ne(vt.key),Se(vt.key))}}else W.value.size===0&&(Ne(),Se()),ye("","optionListHide")});const be=yt=>{if(yt.stopPropagation(),e.multiple){const at=[];W.value.forEach((ut,vt)=>{const Wt=R.get(vt);Wt?.disabled&&at.push(e.pathMode?Wt.pathValue:Wt.value)}),ne(at)}else ne([]);ye("","manual"),t("clear")},ve=F(()=>e.allowSearch&&V.value.length>0),Ce=yt=>{t("focus",yt)},De=yt=>{t("blur",yt)},{activeKey:We,activeOption:Xe,selectedPath:He,displayColumns:ke,setActiveKey:Se,setSelectedPath:Ne,getNextActiveNode:qe}=zfe(E,{optionMap:A,filteredLeafOptions:oe,showSearchPanel:ve,expandChild:p});Xr(Sz,qt({onClickOption:le,setActiveKey:Se,setSelectedPath:Ne,loadMore:a,expandTrigger:h,addLazyLoadOptions:L,formatLabel:s,slots:n,valueMap:W}));const Je=N3(new Map([[No.ENTER,yt=>{if(z.value){if(Xe.value){let at;e.checkStrictly||Xe.value.isLeaf?at=!W.value.has(Xe.value.key):at=!yz(Xe.value,W.value).checked,Ne(Xe.value.key),le(Xe.value,at)}}else X(!0)}],[No.ESC,yt=>{X(!1)}],[No.ARROW_DOWN,yt=>{yt.preventDefault();const at=qe("next");Se(at?.key)}],[No.ARROW_UP,yt=>{yt.preventDefault();const at=qe("preview");Se(at?.key)}],[No.ARROW_RIGHT,yt=>{var at,ut;ve.value||(yt.preventDefault(),(at=Xe.value)!=null&&at.children&&(Ne(Xe.value.key),Se((ut=Xe.value.children[0])==null?void 0:ut.key)))}],[No.ARROW_LEFT,yt=>{var at;ve.value||(yt.preventDefault(),(at=Xe.value)!=null&&at.parent&&(Ne(Xe.value.parent.key),Se(Xe.value.parent.key)))}]])),ot=F(()=>{const yt=[];return W.value.forEach((at,ut)=>{var vt,Wt;const Ft=R.get(ut);if(Ft)yt.push({value:ut,label:(Wt=(vt=e.formatLabel)==null?void 0:vt.call(e,Ft.path.map(Jt=>Jt.raw)))!=null?Wt:Ufe(Ft),closable:!Ft.disabled,tagProps:Ft.tagProps});else if(e.fallback){const Jt=_n(e.fallback)?e.fallback(at):Qn(at)?at.join(" / "):String(at);yt.push({value:ut,label:Jt,closable:!0})}}),yt});return{optionInfos:E,filteredLeafOptions:oe,selectedPath:He,activeKey:We,displayColumns:ke,computedInputValue:V,computedPopupVisible:z,handleClear:be,selectViewValue:ot,handleInputValueChange:ye,showSearchPanel:ve,handlePopupVisibleChange:X,handleFocus:Ce,handleBlur:De,handleRemove:K,mergedDisabled:C,handleKeyDown:Je,totalLevel:_}}});function $De(e,t,n,r,o,a){const s=Pe("select-view"),l=Pe("cascader-search-panel"),c=Pe("base-cascader-panel"),f=Pe("trigger");return H(),Ye(f,Bt(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?(H(),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},_o({_:2},[e.$slots.empty?{name:"empty",fn:de(()=>[ct(e.$slots,"empty")]),key:"0"}:void 0]),1032,["options","active-key","multiple","check-strictly","loading","path-label"])):(H(),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:""},_o({_:2},[e.$slots.empty?{name:"empty",fn:de(()=>[ct(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,Bt({"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}),_o({_:2},[e.$slots.label?{name:"label",fn:de(h=>[ct(e.$slots,"label",Ui(ma(h)))]),key:"0"}:void 0,e.$slots.prefix?{name:"prefix",fn:de(()=>[ct(e.$slots,"prefix")]),key:"1"}:void 0,e.$slots["arrow-icon"]?{name:"arrow-icon",fn:de(()=>[ct(e.$slots,"arrow-icon")]),key:"2"}:void 0,e.$slots["loading-icon"]?{name:"loading-icon",fn:de(()=>[ct(e.$slots,"loading-icon")]),key:"3"}:void 0,e.$slots["search-icon"]?{name:"search-icon",fn:de(()=>[ct(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 uD=Oe(ODe,[["render",$De]]);const NDe=_e({name:"CascaderPanel",components:{BaseCascaderPanel:Vfe},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:f}=Qt(e),h=fe(e.defaultValue);Dt(s,X=>{(kn(X)||Sl(X))&&(h.value=e.multiple?[]:void 0)});const p=fe([]),m=fe(1),g=qt(new Map),b=qt(new Map),S=qt(new Map),k=qt(new Set),C=qt({}),x=(X,K)=>{C[K]=X},E={value:"value",label:"label",disabled:"disabled",children:"children",tagProps:"tagProps",render:"render",isLeaf:"isLeaf"},_=F(()=>({...E,...e.fieldNames}));Dt([r,C,_],([X,K,re])=>{g.clear(),b.clear(),S.clear(),k.clear(),p.value=Bfe(X??[],{enabledLazyLoad:!!e.loadMore,lazyLoadOptions:K,optionMap:g,leafOptionSet:k,leafOptionMap:b,leafOptionValueMap:S,totalLevel:m,checkStrictly:o,fieldNames:re,valueKey:l})},{immediate:!0});const A=F(()=>{var X;const K=jfe((X=e.modelValue)!=null?X:h.value,{multiple:e.multiple,pathMode:e.pathMode});return new Map(K.map(re=>[Ffe(re,{valueKey:e.valueKey,leafOptionValueMap:S}),re]))}),R=F(()=>e.checkStrictly?Array.from(g.values()):Array.from(k)),M=X=>{var K;const re=e.multiple?X:(K=X[0])!=null?K:"";X.length===0&&(Y(),z()),h.value=re,t("update:modelValue",re),t("change",re)},D=X=>{M([e.pathMode?X.pathValue:X.value])},N=(X,K)=>{if(K){const re=e.checkStrictly?[X]:_z(X);M([...A.value.values(),...re.filter(ee=>!A.value.has(ee.key)).map(ee=>e.pathMode?ee.pathValue:ee.value)])}else{const re=e.checkStrictly?[X.key]:bz(X),ee=[];A.value.forEach((le,Q)=>{re.includes(Q)||ee.push(le)}),M(ee)}},L=(X,K)=>{e.multiple?N(X,K??!0):D(X)},{activeKey:B,activeOption:U,selectedPath:W,displayColumns:V,setActiveKey:z,setSelectedPath:Y,getNextActiveNode:oe}=zfe(p,{optionMap:g,filteredLeafOptions:R,expandChild:c});Xr(Sz,qt({onClickOption:L,setActiveKey:z,setSelectedPath:Y,loadMore:a,addLazyLoadOptions:x,slots:n,valueMap:A,expandTrigger:f}));const ne=N3(new Map([[No.ENTER,X=>{if(U.value){let K;e.checkStrictly||U.value.isLeaf?K=!A.value.has(U.value.key):K=!yz(U.value,A.value).checked,Y(U.value.key),L(U.value,K)}}],[No.ARROW_DOWN,X=>{X.preventDefault();const K=oe("next");z(K?.key)}],[No.ARROW_UP,X=>{X.preventDefault();const K=oe("preview");z(K?.key)}],[No.ARROW_RIGHT,X=>{var K,re;X.preventDefault(),(K=U.value)!=null&&K.children&&(Y(U.value.key),z((re=U.value.children[0])==null?void 0:re.key))}],[No.ARROW_LEFT,X=>{var K;X.preventDefault(),(K=U.value)!=null&&K.parent&&(Y(U.value.parent.key),z(U.value.parent.key))}]]));return{optionInfos:p,filteredLeafOptions:R,selectedPath:W,activeKey:B,displayColumns:V,handleKeyDown:ne,totalLevel:m}}});function BDe(e,t,n,r,o,a){const s=Pe("base-cascader-panel");return H(),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},_o({_:2},[e.$slots.empty?{name:"empty",fn:de(()=>[ct(e.$slots,"empty")]),key:"0"}:void 0]),1032,["display-columns","selected-path","active-key","multiple","total-level","check-strictly","onKeydown"])}var o4=Oe(NDe,[["render",BDe]]);const FDe=Object.assign(uD,{CascaderPanel:o4,install:(e,t)=>{Wn(e,t);const n=Hn(t);e.component(n+uD.name,uD),e.component(n+o4.name,o4)}}),Hfe=Symbol("collapseCtx"),jDe=_e({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}=Qt(e),s=Ae("collapse"),l=fe(e.defaultActiveKey),c=F(()=>{var p;const m=(p=e.activeKey)!=null?p:l.value;return Qn(m)?m:[m]});Xr(Hfe,qt({activeKeys:c,slots:n,showExpandIcon:a,expandIconPosition:r,destroyOnHide:o,handleClick:(p,m)=>{let g=[];if(e.accordion)c.value.includes(p)||(g=[p]),l.value=g;else{g=[...c.value];const b=g.indexOf(p);b>-1?g.splice(b,1):e.accordion?g=[p]:g.push(p),l.value=g}t("update:activeKey",g),t("change",g,m)}}));const h=F(()=>[s,{[`${s}-borderless`]:!e.bordered}]);return{prefixCls:s,cls:h}}});function UDe(e,t,n,r,o,a){return H(),J("div",{class:ae(e.cls)},[ct(e.$slots,"default")],2)}var cD=Oe(jDe,[["render",UDe]]);const VDe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-caret-right`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),zDe=["stroke-width","stroke-linecap","stroke-linejoin"];function HDe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,zDe)}var dD=Oe(VDe,[["render",HDe]]);const kz=Object.assign(dD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+dD.name,dD)}}),WDe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-caret-left`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),GDe=["stroke-width","stroke-linecap","stroke-linejoin"];function KDe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,GDe)}var fD=Oe(WDe,[["render",KDe]]);const wz=Object.assign(fD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+fD.name,fD)}});var s4=_e({name:"CollapseItem",components:{IconHover:ko,IconCaretRight:kz,IconCaretLeft:wz},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=fo(),o=Ae("collapse-item"),a=In(Hfe,{}),s=r&&Ke(r?.vnode.key)?r.vnode.key:String((n=r?.vnode.key)!=null?n:""),l=F(()=>{var _;return(_=a.activeKeys)==null?void 0:_.includes(s)}),c=F(()=>a.destroyOnHide||e.destroyOnHide),f=F(()=>{var _;return(_=a?.showExpandIcon)!=null?_:e.showExpandIcon}),h=fe(c.value?l.value:!0),p=F(()=>{var _;return(_=a?.expandIconPosition)!=null?_:"left"}),m=_=>{var A;e.disabled||(A=a.handleClick)==null||A.call(a,s,_)};Dt(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)}},b=F(()=>[o,{[`${o}-active`]:l.value}]),S=F(()=>[`${o}-header`,`${o}-header-${a?.expandIconPosition}`,{[`${o}-header-disabled`]:e.disabled}]),k=F(()=>[{[`${o}-icon-right`]:a?.expandIconPosition==="right"}]),C=F(()=>[`${o}-content`,{[`${o}-content-expend`]:l.value}]),x=()=>p.value==="right"?O(Pe("icon-caret-left"),{class:`${o}-expand-icon`},null):O(Pe("icon-caret-right"),{class:`${o}-expand-icon`},null),E=()=>f.value&&O(Pe("icon-hover"),{prefix:o,class:k.value,disabled:e.disabled},{default:()=>{var _,A,R,M;return[(M=(R=(A=t["expand-icon"])!=null?A:(_=a?.slots)==null?void 0:_["expand-icon"])==null?void 0:R({active:l.value,disabled:e.disabled,position:p.value}))!=null?M:x()]}});return()=>{var _,A,R;return O("div",{class:b.value},[O("div",{role:"button","aria-disabled":e.disabled,"aria-expanded":l.value,tabindex:"0",class:S.value,onClick:m},[E(),O("div",{class:`${o}-header-title`},[(A=(_=t.header)==null?void 0:_.call(t))!=null?A:e.header]),t.extra&&O("div",{class:`${o}-header-extra`},[(R=t.extra)==null?void 0:R.call(t)])]),O(Is,Bt({name:"collapse-slider"},g),{default:()=>{var M;return[Ai(O("div",{role:"region",class:C.value},[h.value&&O("div",{ref:"contentBoxRef",class:`${o}-content-box`},[(M=t.default)==null?void 0:M.call(t)])]),[[ns,l.value]])]}})])}}});const qDe=Object.assign(cD,{Item:s4,install:(e,t)=>{Wn(e,t);const n=Hn(t);e.component(n+cD.name,cD),e.component(n+s4.name,s4)}}),YDe=["#00B42A","#3C7EFF","#FF7D00","#F76965","#F7BA1E","#F5319D","#D91AD9","#9FDB1D","#FADC19","#722ED1","#3491FA","#7BE188","#93BEFF","#FFCF8B","#FBB0A7","#FCE996","#FB9DC7","#F08EE6","#DCF190","#FDFA94","#C396ED","#9FD4FD"],Wfe=(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,f=[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(f*255),g:Math.round(h*255),b:Math.round(p*255)}},U3=(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),ane=e=>na(e)/255,e6e=e=>{let t=Up.rgb.exec(e);return t?{r:parseInt(t[1],10),g:parseInt(t[2],10),b:parseInt(t[3],10)}:(t=Up.rgba.exec(e),t?{r:parseInt(t[1],10),g:parseInt(t[2],10),b:parseInt(t[3],10),a:parseFloat(t[4])}:(t=Up.hex8.exec(e),t?{r:na(t[1]),g:na(t[2]),b:na(t[3]),a:ane(t[4])}:(t=Up.hex6.exec(e),t?{r:na(t[1]),g:na(t[2]),b:na(t[3])}:(t=Up.hex4.exec(e),t?{r:na(t[1]+t[1]),g:na(t[2]+t[2]),b:na(t[3]+t[3]),a:ane(t[4]+t[4])}:(t=Up.hex3.exec(e),t?{r:na(t[1]+t[1]),g:na(t[2]+t[2]),b:na(t[3]+t[3])}:!1)))))},t6e=e=>{var t;const n=e6e(e);return n?{...U3(n.r,n.g,n.b),a:(t=n.a)!=null?t:1}:{h:0,s:1,v:1,a:1}},Gfe=e=>{if(e=e.trim().toLowerCase(),e.length===0)return!1;let t=Up.hex6.exec(e);return t?{r:na(t[1]),g:na(t[2]),b:na(t[3])}:(t=Up.hex3.exec(e),t?{r:na(t[1]+t[1]),g:na(t[2]+t[2]),b:na(t[3]+t[3])}:!1)},lne=(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(),n6e=(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(),Kfe=({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:m}=h,g=r.value.getBoundingClientRect(),b=[a(p-g.x,g.width),a(m-g.y,g.height)];(b[0]!==e[0]||b[1]!==e[1])&&t?.(b)},l=()=>{n.value=!1,window.removeEventListener("mousemove",f),window.removeEventListener("mouseup",l),window.removeEventListener("contextmenu",l)},c=h=>{n.value=!0,s(h),window.addEventListener("mousemove",f),window.addEventListener("mouseup",l),window.addEventListener("contextmenu",l)};function f(h){h.preventDefault(),h.buttons>0?s(h):l()}return{active:n,blockRef:r,handlerRef:o,onMouseDown:c}};var une=_e({name:"ControlBar",props:{x:{type:Number,required:!0},color:{type:Object,required:!0},colorString:String,type:String,onChange:Function},setup(e){const t=Ae("color-picker"),n=F(()=>e.color.rgb),{blockRef:r,handlerRef:o,onMouseDown:a}=Kfe({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()])}}),r6e=_e({name:"Palette",props:{color:{type:Object,required:!0},onChange:Function},setup(e){const t=Ae("color-picker"),n=F(()=>e.color.hsv),{blockRef:r,handlerRef:o,onMouseDown:a}=Kfe({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=F(()=>{const l=Wfe(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 Cz(e,t){return t===void 0&&(t=15),+parseFloat(Number(e).toPrecision(t))}function vf(e){var t=e.toString().split(/[eE]/),n=(t[0].split(".")[1]||"").length-+(t[1]||0);return n>0?n:0}function W2(e){if(e.toString().indexOf("e")===-1)return Number(e.toString().replace(".",""));var t=vf(e);return t>0?Cz(Number(e)*Math.pow(10,t)):Number(e)}function nj(e){Yfe&&(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=Ae("icon"),r=F(()=>[n,`${n}-plus`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),u6e=["stroke-width","stroke-linecap","stroke-linejoin"];function c6e(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,u6e)}var hD=Oe(l6e,[["render",c6e]]);const mf=Object.assign(hD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+hD.name,hD)}}),d6e=_e({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=Ae("icon"),r=F(()=>[n,`${n}-minus`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),f6e=["stroke-width","stroke-linecap","stroke-linejoin"];function h6e(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,f6e)}var pD=Oe(d6e,[["render",h6e]]);const Sg=Object.assign(pD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+pD.name,pD)}}),p6e=800,v6e=150;zl.enableBoundaryChecking(!1);var vD=_e({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}=Qt(e),s=Ae("input-number"),l=fe(),{mergedSize:c,mergedDisabled:f,eventHandlers:h}=wo({size:o,disabled:a}),{mergedSize:p}=_a(c),m=F(()=>{if(Ke(e.precision)){const re=`${e.step}`.split(".")[1],ee=re&&re.length||0;return Math.max(ee,e.precision)}}),g=re=>{var ee,le;if(!Ke(re))return"";const Q=m.value?re.toFixed(m.value):String(re);return(le=(ee=e.formatter)==null?void 0:ee.call(e,Q))!=null?le:Q},b=fe(g((r=e.modelValue)!=null?r:e.defaultValue)),S=F(()=>{var re,ee;if(!b.value)return;const le=Number((ee=(re=e.parser)==null?void 0:re.call(e,b.value))!=null?ee:b.value);return Number.isNaN(le)?void 0:le}),k=fe(Ke(S.value)&&S.value<=e.min),C=fe(Ke(S.value)&&S.value>=e.max);let x=0;const E=()=>{x&&(window.clearTimeout(x),x=0)},_=re=>{if(!kn(re))return Ke(e.min)&&ree.max&&(re=e.max),Ke(m.value)?zl.round(re,m.value):re},A=re=>{let ee=!1,le=!1;Ke(re)&&(re<=e.min&&(ee=!0),re>=e.max&&(le=!0)),C.value!==le&&(C.value=le),k.value!==ee&&(k.value=ee)},R=()=>{const re=_(S.value),ee=g(re);(re!==S.value||b.value!==ee)&&(b.value=ee),t("update:modelValue",re)};Dt(()=>[e.max,e.min],()=>{R(),A(S.value)});const M=(re,ee)=>{if(f.value||re==="plus"&&C.value||re==="minus"&&k.value)return;let le;Ke(S.value)?le=_(zl[re](S.value,e.step)):le=e.min===-1/0?0:e.min,b.value=g(le),A(le),t("update:modelValue",le),t("change",le,ee)},D=(re,ee,le=!1)=>{var Q;re.preventDefault(),!e.readOnly&&((Q=l.value)==null||Q.focus(),M(ee,re),le&&(x=window.setTimeout(()=>re.target.dispatchEvent(re),x?v6e:p6e)))},N=(re,ee)=>{var le,Q,ye,be;re=re.trim().replace(/。/g,"."),re=(Q=(le=e.parser)==null?void 0:le.call(e,re))!=null?Q:re,(Ke(Number(re))||/^(\.|-)$/.test(re))&&(b.value=(be=(ye=e.formatter)==null?void 0:ye.call(e,re))!=null?be:re,A(S.value),t("input",S.value,b.value,ee),e.modelEvent==="input"&&(t("update:modelValue",S.value),t("change",S.value,ee)))},L=re=>{t("focus",re)},B=(re,ee)=>{ee instanceof MouseEvent&&!re||(R(),t("change",S.value,ee))},U=re=>{t("blur",re)},W=re=>{var ee,le;b.value="",t("update:modelValue",void 0),t("change",void 0,re),(le=(ee=h.value)==null?void 0:ee.onChange)==null||le.call(ee,re),t("clear",re)},V=N3(new Map([[No.ARROW_UP,re=>{re.preventDefault(),!e.readOnly&&M("plus",re)}],[No.ARROW_DOWN,re=>{re.preventDefault(),!e.readOnly&&M("minus",re)}]])),z=re=>{t("keydown",re),re.defaultPrevented||V(re)};Dt(()=>e.modelValue,re=>{re!==S.value&&(b.value=g(re),A(re))});const Y=()=>{var re,ee,le;return e.readOnly?null:O(Ut,null,[n.suffix&&O("div",{class:`${s}-suffix`},[(re=n.suffix)==null?void 0:re.call(n)]),O("div",{class:`${s}-step`},[O("button",{class:[`${s}-step-button`,{[`${s}-step-button-disabled`]:f.value||C.value}],type:"button",tabindex:"-1",disabled:f.value||C.value,onMousedown:Q=>D(Q,"plus",!0),onMouseup:E,onMouseleave:E},[n.plus?(ee=n.plus)==null?void 0:ee.call(n):O(Ok,null,null)]),O("button",{class:[`${s}-step-button`,{[`${s}-step-button-disabled`]:f.value||k.value}],type:"button",tabindex:"-1",disabled:f.value||k.value,onMousedown:Q=>D(Q,"minus",!0),onMouseup:E,onMouseleave:E},[n.minus?(le=n.minus)==null?void 0:le.call(n):O(Av,null,null)])])])},oe=F(()=>[s,`${s}-mode-${e.mode}`,`${s}-size-${p.value}`,{[`${s}-readonly`]:e.readOnly}]),ne=()=>O(Ho,{size:p.value,tabindex:"-1",class:`${s}-step-button`,disabled:f.value||k.value,onMousedown:re=>D(re,"minus",!0),onMouseup:E,onMouseleave:E},{icon:()=>O(Sg,null,null)}),X=()=>O(Ho,{size:p.value,tabindex:"-1",class:`${s}-step-button`,disabled:f.value||C.value,onMousedown:re=>D(re,"plus",!0),onMouseup:E,onMouseleave:E},{icon:()=>O(mf,null,null)});return{inputRef:l,render:()=>{const re=e.mode==="embed"?{prepend:n.prepend,prefix:n.prefix,suffix:e.hideButton?n.suffix:Y,append:n.append}:{prepend:e.hideButton?n.prepend:ne,prefix:n.prefix,suffix:n.suffix,append:e.hideButton?n.append:X};return O(Ev,{key:`__arco__${e.mode}`,ref:l,class:oe.value,type:"text",allowClear:e.allowClear,size:p.value,modelValue:b.value,placeholder:e.placeholder,disabled:f.value,readonly:e.readOnly,error:e.error,inputAttrs:{role:"spinbutton","aria-valuemax":e.max,"aria-valuemin":e.min,"aria-valuenow":b.value,...e.inputAttrs},onInput:N,onFocus:L,onBlur:U,onClear:W,onChange:B,onKeydown:z},re)}}},methods:{focus(){var e;(e=this.inputRef)==null||e.focus()},blur(){var e;(e=this.inputRef)==null||e.blur()}},render(){return this.render()}});const Nk=Object.assign(vD,{install:(e,t)=>{Wn(e,t);const n=Hn(t);e.component(n+vD.name,vD)}});var Xfe=_e({name:"InputAlpha",props:{value:{type:Number,required:!0},disabled:Boolean,onChange:Function},setup(e){const t=Ae("color-picker");return()=>O(Nk,{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:()=>"%"})}}),m6e=_e({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=Ae("color-picker"),{color:n}=Qt(e),r=o=>{var a;const s={...n.value.rgb,...o},l=U3(s.r,s.g,s.b);(a=e.onHsvChange)==null||a.call(e,l)};return()=>O(zy,{class:`${t}-input-group`},{default:()=>[["r","g","b"].map(o=>O(Nk,{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(Xfe,{disabled:e.disabled,value:e.alpha,onChange:e.onAlphaChange},null)]})}}),g6e=_e({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=Ae("color-picker"),{color:n}=Qt(e),[r,o]=ja(n.value.hex),a=c=>{var f;const h=Gfe(c)||{r:255,g:0,b:0},p=U3(h.r,h.g,h.b);(f=e.onHsvChange)==null||f.call(e,p)},s=c=>{var f,h;const p=(h=(f=c.match(/[a-fA-F0-9]*/g))==null?void 0:f.join(""))!=null?h:"";p!==n.value.hex&&a(p.toUpperCase())},l=c=>{if(!c.clipboardData)return;let f=c.clipboardData.getData("Text");f.startsWith("#")&&(f=f.slice(1)),s(f),c.preventDefault()};return Dt(n,()=>{n.value.hex!==r.value&&o(n.value.hex)}),()=>O(zy,{class:`${t}-input-group`},{default:()=>[O(Ev,{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(Xfe,{disabled:e.disabled,value:e.alpha,onChange:e.onAlphaChange},null)]})}}),y6e=_e({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}=Lo(),n=Ae("color-picker"),r=F(()=>e.color.hsv),[o,a]=ja(e.format||"hex"),s=m=>{a(m)};fe(!1);const l=m=>{var g;const b=Gfe(m)||{r:255,g:0,b:0},S=U3(b.r,b.g,b.b);(g=e.onHsvChange)==null||g.call(e,S)},c=()=>{const m={color:e.color,alpha:e.alpha,disabled:e.disabled,disabledAlpha:e.disabledAlpha,onHsvChange:e.onHsvChange,onAlphaChange:e.onAlphaChange};return o.value==="rgb"?O(m6e,m,null):O(g6e,m,null)},f=m=>O("div",{key:m,class:`${n}-color-block`,style:{backgroundColor:m},onClick:()=>l(m)},[O("div",{class:`${n}-block`,style:{backgroundColor:m}},null)]),h=(m,g)=>O("div",{class:`${n}-colors-section`},[O("div",{class:`${n}-colors-text`},[m]),O("div",{class:`${n}-colors-wrapper`},[g?.length?O("div",{class:`${n}-colors-list`},[g.map(f)]):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(r6e,{color:e.color,onChange:(m,g)=>{var b;return(b=e.onHsvChange)==null?void 0:b.call(e,{h:r.value.h,s:m,v:g})}},null),O("div",{class:`${n}-panel-control`},[O("div",{class:`${n}-control-wrapper`},[O("div",null,[O(une,{type:"hue",x:r.value.h,color:e.color,colorString:e.colorString,onChange:m=>{var g;return(g=e.onHsvChange)==null?void 0:g.call(e,{h:m,s:r.value.s,v:r.value.v})}},null),!e.disabledAlpha&&O(une,{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(H2,{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()])}}),mD=_e({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:()=>YDe}},emits:{"update:modelValue":e=>!0,change:e=>!0,"popup-visible-change":(e,t)=>!0},setup(e,{emit:t,slots:n}){const r=Ae("color-picker"),o=F(()=>{var x;return(x=e.modelValue)!=null?x:e.defaultValue}),a=F(()=>t6e(o.value||"")),[s,l]=ja(a.value.a),[c,f]=ja({h:a.value.h,s:a.value.s,v:a.value.v});Dt(()=>a.value,x=>{o.value!==m.value&&(l(x.a),f({h:x.h,s:x.s,v:x.v}))});const h=F(()=>{const x=Wfe(c.value.h,c.value.s,c.value.v),E=lne(x.r,x.g,x.b);return{hsv:c.value,rgb:x,hex:E}}),p=F(()=>{const{r:x,g:E,b:_}=h.value.rgb;return`rgba(${x}, ${E}, ${_}, ${s.value.toFixed(2)})`}),m=F(()=>{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?`#${n6e(x,E,_,s.value)}`:`#${lne(x,E,_)}`});Dt(m,x=>{t("update:modelValue",x),t("change",x)});const g=x=>{!e.disabled&&f(x)},b=x=>{!e.disabled&&l(x)},S=x=>{t("popup-visible-change",x,m.value)},k=()=>O("div",{class:{[r]:!0,[`${r}-size-${e.size}`]:e.size,[`${r}-disabled`]:e.disabled}},[O("div",{class:`${r}-preview`,style:{backgroundColor:m.value}},null),e.showText&&O("div",{class:`${r}-value`},[m.value]),O("input",{class:`${r}-input`,value:m.value,disabled:e.disabled},null)]),C=()=>O(y6e,{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:b},null);return()=>e.hideTrigger?C():O(la,Bt({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 b6e=Object.assign(mD,{install:(e,t)=>{Wn(e,t);const n=Hn(t);e.component(n+mD.name,mD)}});function Zfe(e,t,n){return F(()=>!!(e[n]||t[n]))}const _6e=_e({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=Ae("comment"),[r,o,a,s]=["author","avatar","content","datetime"].map(c=>Zfe(e,t,c)),l=F(()=>{const{align:c}=e;return{...is(c)?{datetime:c,actions:c}:c}});return{prefixCls:n,hasAuthor:r,hasAvatar:o,hasContent:a,hasDatetime:s,computedAlign:l}}}),S6e=["src"],k6e={key:0},w6e={key:0},C6e={key:0};function x6e(e,t,n,r,o,a){return H(),J("div",{class:ae(e.prefixCls)},[e.hasAvatar?(H(),J("div",{key:0,class:ae(`${e.prefixCls}-avatar`)},[e.avatar?(H(),J("img",{key:0,src:e.avatar,alt:"comment-avatar"},null,8,S6e)):ct(e.$slots,"avatar",{key:1})],2)):Re("v-if",!0),I("div",{class:ae(`${e.prefixCls}-inner`)},[I("div",{class:ae(`${e.prefixCls}-inner-content`)},[e.hasAuthor||e.hasDatetime?(H(),J("div",{key:0,class:ae(`${e.prefixCls}-title ${e.prefixCls}-title-align-${e.computedAlign.datetime}`)},[e.hasAuthor?(H(),J("span",{key:0,class:ae(`${e.prefixCls}-author`)},[e.author?(H(),J("span",k6e,Be(e.author),1)):ct(e.$slots,"author",{key:1})],2)):Re("v-if",!0),e.hasDatetime?(H(),J("span",{key:1,class:ae(`${e.prefixCls}-datetime`)},[e.datetime?(H(),J("span",w6e,Be(e.datetime),1)):ct(e.$slots,"datetime",{key:1})],2)):Re("v-if",!0)],2)):Re("v-if",!0),e.hasContent?(H(),J("div",{key:1,class:ae(`${e.prefixCls}-content`)},[e.content?(H(),J("span",C6e,Be(e.content),1)):ct(e.$slots,"content",{key:1})],2)):Re("v-if",!0),e.$slots.actions?(H(),J("div",{key:2,class:ae(`${e.prefixCls}-actions ${e.prefixCls}-actions-align-${e.computedAlign.actions}`)},[ct(e.$slots,"actions")],2)):Re("v-if",!0)],2),e.$slots.default?(H(),J("div",{key:0,class:ae(`${e.prefixCls}-inner-comment`)},[ct(e.$slots,"default")],2)):Re("v-if",!0)],2)],2)}var gD=Oe(_6e,[["render",x6e]]);const E6e=Object.assign(gD,{install:(e,t)=>{Wn(e,t);const n=Hn(t);e.component(n+gD.name,gD)}}),T6e=_e({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}=Qt(e),c=qt({slots:t,prefixCls:n,locale:r,size:o,updateAtScroll:a,scrollToClose:s,exchangeTime:l});if(e.global){const f=fo();f&&f.appContext.app.provide(Va,c)}else Xr(Va,c)}});function A6e(e,t,n,r,o,a){return ct(e.$slots,"default")}var yD=Oe(T6e,[["render",A6e]]);const I6e=Object.assign(yD,{install:(e,t)=>{Wn(e,t);const n=Hn(t);e.component(n+yD.name,yD)}});function L6e(e){const{modelValue:t,defaultValue:n,format:r}=Qt(e),o=F(()=>rc(t.value,r.value)),a=F(()=>rc(n.value,r.value)),[s,l]=ja(kn(o.value)?kn(a.value)?void 0:a.value:o.value);return Dt(o,()=>{kn(o.value)&&l(void 0)}),{value:F(()=>o.value||s.value),setValue:l}}const P6e=_e({name:"DateInput",components:{IconHover:ko,IconClose:ms,FeedbackIcon:Dk},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:f}=Qt(e),{mergedSize:h,mergedDisabled:p,mergedError:m,feedback:g}=wo({size:s,disabled:a,error:r}),{mergedSize:b}=_a(h),S=Ae("picker"),k=F(()=>[S,`${S}-size-${b.value}`,{[`${S}-focused`]:o.value,[`${S}-disabled`]:p.value,[`${S}-error`]:m.value,[`${S}-has-prefix`]:n.prefix}]),C=F(()=>{if(f?.value)return f?.value;if(l?.value&&Mc(l.value))return _n(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()}}}),R6e=["disabled","placeholder","value"];function M6e(e,t,n,r,o,a){const s=Pe("IconClose"),l=Pe("IconHover"),c=Pe("FeedbackIcon");return H(),J("div",{class:ae(e.classNames)},[e.$slots.prefix?(H(),J("div",{key:0,class:ae(`${e.prefixCls}-prefix`)},[ct(e.$slots,"prefix")],2)):Re("v-if",!0),I("div",{class:ae(`${e.prefixCls}-input`)},[I("input",Bt({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]=mh((...f)=>e.onPressEnter&&e.onPressEnter(...f),["enter"])),onInput:t[1]||(t[1]=(...f)=>e.onChange&&e.onChange(...f)),onBlur:t[2]||(t[2]=(...f)=>e.onBlur&&e.onBlur(...f))}),null,16,R6e)],2),I("div",{class:ae(`${e.prefixCls}-suffix`)},[e.allowClear&&!e.mergedDisabled&&e.displayValue?(H(),Ye(l,{key:0,prefix:e.prefixCls,class:ae(`${e.prefixCls}-clear-icon`),onClick:e.onClear},{default:de(()=>[O(s)]),_:1},8,["prefix","class","onClick"])):Re("v-if",!0),I("span",{class:ae(`${e.prefixCls}-suffix-icon`)},[ct(e.$slots,"suffix-icon")],2),e.feedback?(H(),Ye(c,{key:1,type:e.feedback},null,8,["type"])):Re("v-if",!0)],2)],2)}var Qfe=Oe(P6e,[["render",M6e]]);function rj(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 cne=new Map;function D6e(e,t,n){const r=cne.get(e);kn(r)||cancelAnimationFrame(r),n<=0&&(e.scrollTop=t),cne.set(e,requestAnimationFrame(()=>{new jg({from:{scrollTop:e.scrollTop},to:{scrollTop:t},duration:n,onUpdate:a=>{e.scrollTop=a.scrollTop}}).start()}))}function nf(e,t){const n=r=>{if(Qn(r))return r.map(o=>n(o));if(!kn(r))return r.format(t)};return n(e)}function fS(e){return kn(e)?!0:Qn(e)?e.length===0||e.length===2&&Mc(e[0])&&Mc(e[1]):!1}function HA(e,t){return e?typeof e=="string"&&Es(e,t).format(t)===e:!1}function O6e(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)||[],f=r?.(o,a)||[],h=(p,m)=>!kn(p)&&m.includes(p);return h(o,l)||h(a,c)||h(s,f)}var Vh=_e({name:"RenderFunction",props:{renderFunc:{type:Function,required:!0}},render(){return this.renderFunc(this.$attrs)}});const Jfe=Symbol("PickerInjectionKey");function Bk(){const{datePickerT:e}=In(Jfe)||{};return e||((t,...n)=>t)}const $6e=_e({name:"PanelShortcuts",components:{Button:Ho,RenderFunction:Vh},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:Bk(),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:_n}}});function N6e(e,t,n,r,o,a){const s=Pe("Button"),l=Pe("RenderFunction");return H(),J("div",{class:ae(`${e.prefixCls}-shortcuts`)},[e.showNowBtn?(H(),Ye(s,{key:0,size:"mini",onClick:t[0]||(t[0]=()=>e.onNowClick())},{default:de(()=>[ze(Be(e.datePickerT("datePicker.now")),1)]),_:1})):Re("v-if",!0),(H(!0),J(Ut,null,mn(e.shortcuts,(c,f)=>(H(),Ye(s,{key:f,size:"mini",onClick:()=>e.onItemClick(c),onMouseenter:()=>e.onItemMouseEnter(c),onMouseleave:()=>e.onItemMouseLeave(c)},{default:de(()=>[e.isFunction(c.label)?(H(),Ye(l,{key:0,"render-func":c.label},null,8,["render-func"])):(H(),J(Ut,{key:1},[ze(Be(c.label),1)],64))]),_:2},1032,["onClick","onMouseenter","onMouseleave"]))),128))],2)}var ehe=Oe($6e,[["render",N6e]]);function _1(e){return[...Array(e)]}function ij(e){if(!kn(e))return Qn(e)?e:[e,void 0]}function Mp(e){return!!e&&Mc(e[0])&&Mc(e[1])}function B6e(e){return kn(e)||e.length===0||Mp(e)}function the(e,t,n){const r=t||e;return(n||e).set("year",r.year()).set("month",r.month()).set("date",r.date())}const F6e=_e({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=Ae("icon"),r=F(()=>[n,`${n}-double-left`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),j6e=["stroke-width","stroke-linecap","stroke-linejoin"];function U6e(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,j6e)}var bD=Oe(F6e,[["render",U6e]]);const nhe=Object.assign(bD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+bD.name,bD)}}),V6e=_e({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=Ae("icon"),r=F(()=>[n,`${n}-double-right`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),z6e=["stroke-width","stroke-linecap","stroke-linejoin"];function H6e(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,z6e)}var _D=Oe(V6e,[["render",H6e]]);const rhe=Object.assign(_D,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+_D.name,_D)}}),W6e=_e({name:"PanelHeader",components:{IconLeft:kl,IconRight:Ni,IconDoubleLeft:nhe,IconDoubleRight:rhe,RenderFunction:Vh},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:F(()=>_n(e.onPrev)),showSuperPrev:F(()=>_n(e.onSuperPrev)),showNext:F(()=>_n(e.onNext)),showSuperNext:F(()=>_n(e.onSuperNext)),year:F(()=>["date","quarter","month","week"].includes(e.mode)&&e.value?e.value.format("YYYY"):""),month:F(()=>["date","week"].includes(e.mode)&&e.value?e.value.format("MM"):""),getIconClassName:t=>[`${e.prefixCls}-header-icon`,{[`${e.prefixCls}-header-icon-hidden`]:!t}]}}}),G6e={key:1};function K6e(e,t,n,r,o,a){const s=Pe("RenderFunction"),l=Pe("IconDoubleLeft"),c=Pe("IconLeft"),f=Pe("IconRight"),h=Pe("IconDoubleRight");return H(),J("div",{class:ae(`${e.prefixCls}-header`)},[I("div",{class:ae(e.getIconClassName(e.showSuperPrev)),onClick:t[0]||(t[0]=(...p)=>e.onSuperPrev&&e.onSuperPrev(...p))},[e.showSuperPrev?(H(),J(Ut,{key:0},[e.icons&&e.icons.prevDouble?(H(),Ye(s,{key:0,"render-func":e.icons&&e.icons.prevDouble},null,8,["render-func"])):(H(),Ye(l,{key:1}))],64)):Re("v-if",!0)],2),I("div",{class:ae(e.getIconClassName(e.showPrev)),onClick:t[1]||(t[1]=(...p)=>e.onPrev&&e.onPrev(...p))},[e.showPrev?(H(),J(Ut,{key:0},[e.icons&&e.icons.prev?(H(),Ye(s,{key:0,"render-func":e.icons&&e.icons.prev},null,8,["render-func"])):(H(),Ye(c,{key:1}))],64)):Re("v-if",!0)],2),I("div",{class:ae(`${e.prefixCls}-header-title`)},[e.onLabelClick&&(e.year||e.month)?(H(),J(Ut,{key:0},[e.year?(H(),J("span",{key:0,class:ae(`${e.prefixCls}-header-label`),onClick:t[2]||(t[2]=()=>e.onLabelClick&&e.onLabelClick("year"))},Be(e.year),3)):Re("v-if",!0),e.year&&e.month?(H(),J("span",G6e,"-")):Re("v-if",!0),e.month?(H(),J("span",{key:2,class:ae(`${e.prefixCls}-header-label`),onClick:t[3]||(t[3]=()=>e.onLabelClick&&e.onLabelClick("month"))},Be(e.month),3)):Re("v-if",!0)],64)):(H(),J(Ut,{key:1},[ze(Be(e.title),1)],64))],2),I("div",{class:ae(e.getIconClassName(e.showNext)),onClick:t[4]||(t[4]=(...p)=>e.onNext&&e.onNext(...p))},[e.showNext?(H(),J(Ut,{key:0},[e.icons&&e.icons.next?(H(),Ye(s,{key:0,"render-func":e.icons&&e.icons.next},null,8,["render-func"])):(H(),Ye(f,{key:1}))],64)):Re("v-if",!0)],2),I("div",{class:ae(e.getIconClassName(e.showSuperNext)),onClick:t[5]||(t[5]=(...p)=>e.onSuperNext&&e.onSuperNext(...p))},[e.showSuperNext?(H(),J(Ut,{key:0},[e.icons&&e.icons.nextDouble?(H(),Ye(s,{key:0,"render-func":e.icons&&e.icons.nextDouble},null,8,["render-func"])):(H(),Ye(h,{key:1}))],64)):Re("v-if",!0)],2)],2)}var z3=Oe(W6e,[["render",K6e]]);function q6e(e){const{rangeValues:t}=Qt(e),n=F(()=>t?.value&&t.value.every(Mc)?V2(t.value):t?.value),r=F(()=>{var a;return(a=n.value)==null?void 0:a[0]}),o=F(()=>{var a;return(a=n.value)==null?void 0:a[1]});return{getCellClassName:(a,s)=>{const{value:l,isSameTime:c,mode:f,prefixCls:h}=e,p=!a.isPrev&&!a.isNext,m=l&&c(a.value,l);let g=c(a.value,Ua());f==="week"&&(g=Ua().isSame(a.value,"date"));const b=p&&r.value&&c(a.value,r.value),S=p&&o.value&&c(a.value,o.value),k=p&&r.value&&o.value&&(b||S||a.value.isBetween(r.value,o.value,null,"[]"));return[`${h}-cell`,{[`${h}-cell-in-view`]:p,[`${h}-cell-today`]:g,[`${h}-cell-selected`]:m,[`${h}-cell-range-start`]:b,[`${h}-cell-range-end`]:S,[`${h}-cell-in-range`]:k,[`${h}-cell-disabled`]:s},a.classNames]}}}const Y6e=_e({name:"PanelBody",components:{RenderFunction:Vh},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}=Qt(e),{getCellClassName:c}=q6e(qt({prefixCls:n,value:r,isSameTime:a,mode:s,rangeValues:l})),f=h=>!!(_n(o?.value)&&o?.value(gu(h.value)));return{isWeek:F(()=>s?.value==="week"),getCellClassName:h=>{const p=f(h);return c(h,p)},onCellClick:h=>{f(h)||t("cell-click",h)},onCellMouseEnter:h=>{f(h)||t("cell-mouse-enter",h)},onCellMouseLeave:h=>{f(h)||t("cell-mouse-enter",h)},getDateValue:gu}}}),X6e=["onMouseenter","onMouseleave","onClick"];function Z6e(e,t,n,r,o,a){const s=Pe("RenderFunction");return H(),J("div",{class:ae(`${e.prefixCls}-body`)},[(H(!0),J(Ut,null,mn(e.rows,(l,c)=>(H(),J("div",{key:c,class:ae([`${e.prefixCls}-row`,{[`${e.prefixCls}-row-week`]:e.isWeek}])},[(H(!0),J(Ut,null,mn(l,(f,h)=>(H(),J(Ut,null,[Re(" 一年中的第几周,只在 week 模式下显示 "),e.isWeek&&h===0?(H(),J("div",{key:h,class:ae([`${e.prefixCls}-cell`,`${e.prefixCls}-cell-week`])},[I("div",{class:ae(`${e.prefixCls}-date`)},[I("div",{class:ae(`${e.prefixCls}-date-value`)},Be(f.label),3)],2)],2)):(H(),J("div",{key:h,class:ae(e.getCellClassName(f)),onMouseenter:()=>{e.onCellMouseEnter(f)},onMouseleave:()=>{e.onCellMouseLeave(f)},onClick:()=>{e.onCellClick(f)}},[e.dateRender?(H(),Ye(s,{key:0,"render-func":e.dateRender,date:e.getDateValue(f.value)},null,8,["render-func","date"])):(H(),J("div",{key:1,class:ae(`${e.prefixCls}-date`)},[I("div",{class:ae(`${e.prefixCls}-date-value`)},Be(f.label),3)],2))],42,X6e))],64))),256))],2))),128))],2)}var H3=Oe(Y6e,[["render",Z6e]]);const Q6e=_e({name:"PanelWeekList",props:{prefixCls:{type:String,required:!0},weekList:{type:Array,required:!0}},setup(){const e=Bk();return{labelList:F(()=>["sunday","monday","tuesday","wednesday","thursday","friday","saturday"].map(n=>e(`datePicker.week.short.${n}`)))}}});function J6e(e,t,n,r,o,a){return H(),J("div",{class:ae(`${e.prefixCls}-week-list`)},[(H(!0),J(Ut,null,mn(e.weekList,s=>(H(),J("div",{key:s,class:ae(`${e.prefixCls}-week-list-item`)},Be(e.labelList[s]||""),3))),128))],2)}var eOe=Oe(Q6e,[["render",J6e]]);const tOe=_e({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}=Qt(e),o=fe(new Map),a=fe();function s(l=!1){if(!a.value||kn(r?.value)||!n?.value)return;const c=o.value.get(r.value);c&&D6e(a.value,c.offsetTop,l?100:0)}return Dt([r,n],(l,[,c])=>{n.value!==c?yn(()=>{s()}):s(!0)}),gn(()=>{s()}),{refWrapper:a,refMap:o,onItemRef(l,c){o.value.set(c.value,l)},onItemClick(l){l.disabled||t("select",l.value)}}}}),nOe=["onClick"];function rOe(e,t,n,r,o,a){return H(),J("div",{ref:"refWrapper",class:ae(`${e.prefixCls}-column`)},[I("ul",null,[(H(!0),J(Ut,null,mn(e.list,s=>(H(),J("li",{key:s.value,ref_for:!0,ref:l=>{e.onItemRef(l,s)},class:ae([`${e.prefixCls}-cell`,{[`${e.prefixCls}-cell-disabled`]:s.disabled,[`${e.prefixCls}-cell-selected`]:s.selected}]),onClick:()=>{e.onItemClick(s)}},[I("div",{class:ae(`${e.prefixCls}-cell-inner`)},Be(s.label),3)],10,nOe))),128))])],2)}var iOe=Oe(tOe,[["render",rOe]]);function oOe(e){const{format:t,step:n,use12Hours:r,hideDisabledOptions:o,disabledHours:a,disabledMinutes:s,disabledSeconds:l,selectedHour:c,selectedMinute:f,selectedSecond:h,selectedAmpm:p,disabled:m}=Qt(e),g=F(()=>{var x;const{hour:E=1}=n?.value||{},_=((x=a?.value)==null?void 0:x.call(a))||[];let A=[];for(let R=0;R<(r.value?12:24);R+=E)A.push(R);return r.value&&(A[0]=12),o.value&&_.length&&(A=A.filter(R=>_.indexOf(R)<0)),A.map(R=>({label:ng(R,2,"0"),value:R,selected:c.value===R,disabled:m?.value||_.includes(R)}))}),b=F(()=>{var x;const{minute:E=1}=n?.value||{},_=((x=s?.value)==null?void 0:x.call(s,c.value))||[];let A=[];for(let R=0;R<60;R+=E)A.push(R);return o.value&&_.length&&(A=A.filter(R=>_.indexOf(R)<0)),A.map(R=>({label:ng(R,2,"0"),value:R,selected:f.value===R,disabled:m?.value||_.includes(R)}))}),S=F(()=>{var x;const{second:E=1}=n?.value||{},_=((x=l?.value)==null?void 0:x.call(l,c.value,f.value))||[];let A=[];for(let R=0;R<60;R+=E)A.push(R);return o.value&&_.length&&(A=A.filter(R=>_.indexOf(R)<0)),A.map(R=>({label:ng(R,2,"0"),value:R,selected:h.value===R,disabled:m?.value||_.includes(R)}))}),k=["am","pm"],C=F(()=>{const x=rj(t.value).list.includes("A");return k.map(E=>({label:x?E.toUpperCase():E,value:E,selected:p.value===E,disabled:m?.value}))});return{hours:g,minutes:b,seconds:S,ampmList:C}}function xz(e){const{format:t,use12Hours:n,defaultFormat:r}=Qt(e),o=F(()=>{let f=t?.value||r?.value;return(!f||!rj(f).list.length)&&(f=n?.value?"hh:mm:ss a":"HH:mm:ss"),f}),a=F(()=>rj(o.value)),s=F(()=>a.value.list),l=F(()=>a.value.use12Hours),c=F(()=>!!(n?.value||l.value));return{columns:s,use12Hours:c,format:o}}function ihe(e){const t=n=>O6e(n,{disabledHours:e.disabledHours,disabledMinutes:e.disabledMinutes,disabledSeconds:e.disabledSeconds});return n=>Qn(n)?n.some(r=>t(r)):t(n)}const sOe=_e({name:"TimePickerPanel",components:{TimeColumn:iOe,Button:Ho},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=>Mc(e),confirm:e=>Mc(e)},setup(e,{emit:t}){const{value:n,visible:r,format:o,step:a,use12Hours:s,hideDisabledOptions:l,disabledHours:c,disabledMinutes:f,disabledSeconds:h,disabled:p}=Qt(e),m=Ae("timepicker"),{t:g}=Lo(),{columns:b,use12Hours:S,format:k}=xz(qt({format:o,use12Hours:s})),C=fe(n?.value),x=Y=>{C.value=Y};Dt([r,n],()=>{r.value&&x(n?.value)});const E=F(()=>{var Y;const oe=(Y=C.value)==null?void 0:Y.hour();return kn(oe)||!S.value?oe:oe>12?oe-12:oe===0?12:oe}),_=F(()=>{var Y;return(Y=C.value)==null?void 0:Y.minute()}),A=F(()=>{var Y;return(Y=C.value)==null?void 0:Y.second()}),R=F(()=>{var Y;const oe=(Y=C.value)==null?void 0:Y.hour();return!kn(oe)&&oe>=12?"pm":"am"}),{hours:M,minutes:D,seconds:N,ampmList:L}=oOe(qt({format:k,step:a,use12Hours:S,hideDisabledOptions:l,disabledHours:c,disabledMinutes:f,disabledSeconds:h,selectedHour:E,selectedMinute:_,selectedSecond:A,selectedAmpm:R,disabled:p})),B=ihe(qt({disabledHours:c,disabledMinutes:f,disabledSeconds:h})),U=F(()=>B(C.value));function W(Y){kn(Y)||t("confirm",Y)}function V(Y){x(Y),t("select",Y)}function z(Y,oe="hour"){let ne;const X=E.value||"00",K=_.value||"00",re=A.value||"00",ee=R.value||"am";switch(oe){case"hour":ne=`${Y}:${K}:${re}`;break;case"minute":ne=`${X}:${Y}:${re}`;break;case"second":ne=`${X}:${K}:${Y}`;break;case"ampm":ne=`${X}:${K}:${re} ${Y}`;break;default:ne="00:00:00"}let le="HH:mm:ss";S.value&&(le="HH:mm:ss a",oe!=="ampm"&&(ne=`${ne} ${ee}`)),ne=Es(ne,le),V(ne)}return{prefixCls:m,t:g,hours:M,minutes:D,seconds:N,ampmList:L,selectedValue:C,selectedHour:E,selectedMinute:_,selectedSecond:A,selectedAmpm:R,computedUse12Hours:S,confirmBtnDisabled:U,columns:b,onSelect:z,onSelectNow(){const Y=Es(new Date);V(Y)},onConfirm(){W(C.value)}}}});function aOe(e,t,n,r,o,a){const s=Pe("TimeColumn"),l=Pe("Button");return H(),J(Ut,null,[I("div",{class:ae(e.prefixCls)},[e.columns.includes("H")||e.columns.includes("h")?(H(),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"])):Re("v-if",!0),e.columns.includes("m")?(H(),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"])):Re("v-if",!0),e.columns.includes("s")?(H(),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"])):Re("v-if",!0),e.computedUse12Hours?(H(),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"])):Re("v-if",!0)],2),e.$slots["extra-footer"]?(H(),J("div",{key:0,class:ae(`${e.prefixCls}-footer-extra-wrapper`)},[ct(e.$slots,"extra-footer")],2)):Re("v-if",!0),e.hideFooter?Re("v-if",!0):(H(),J("div",{key:1,class:ae(`${e.prefixCls}-footer-btn-wrapper`)},[e.isRange?Re("v-if",!0):(H(),Ye(l,{key:0,size:"mini",onClick:e.onSelectNow},{default:de(()=>[ze(Be(e.t("datePicker.now")),1)]),_:1},8,["onClick"])),O(l,{type:"primary",size:"mini",disabled:e.confirmBtnDisabled||!e.selectedValue,onClick:e.onConfirm},{default:de(()=>[ze(Be(e.t("datePicker.ok")),1)]),_:1},8,["disabled","onClick"])],2))],64)}var WA=Oe(sOe,[["render",aOe]]);const lOe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-calendar`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),uOe=["stroke-width","stroke-linecap","stroke-linejoin"];function cOe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,uOe)}var SD=Oe(lOe,[["render",cOe]]);const Fk=Object.assign(SD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+SD.name,SD)}}),dOe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-clock-circle`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),fOe=["stroke-width","stroke-linecap","stroke-linejoin"];function hOe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,fOe)}var kD=Oe(dOe,[["render",hOe]]);const W3=Object.assign(kD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+kD.name,kD)}}),ohe=6,oj=7,pOe=ohe*oj;function vOe(e){return{label:e.date(),value:e}}const mOe=_e({name:"DatePanel",components:{PanelHeader:z3,PanelBody:H3,PanelWeekList:eOe,TimePanel:WA,IconCalendar:Fk,IconClockCircle:W3},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:f,disabledTime:h}=Qt(e),p=Bk(),m=F(()=>l?.value==="week"),g=F(()=>Ae(m.value?"panel-week":"panel-date")),b=Ae("picker"),[S,k]=aa("date",qt({value:f})),C=F(()=>c.value&&n.value),x=F(()=>!c.value||!C.value||S.value==="date"),E=F(()=>c.value&&(!C.value||S.value==="time")),_=F(()=>[g.value,{[`${g.value}-with-view-tabs`]:C.value}]),A=F(()=>r.value.format("YYYY-MM")),R=F(()=>{var W;return c.value&&((W=h?.value)==null?void 0:W.call(h,gu(o?.value||Ua())))||{}}),M=F(()=>{const W=[0,1,2,3,4,5,6],V=Math.max(a.value%7,0);return[...W.slice(V),...W.slice(0,V)]}),D=F(()=>{const W=Ws.startOf(r.value,"month"),V=W.day(),z=W.daysInMonth(),Y=M.value.indexOf(V),oe=_1(pOe);for(let X=0;XY+z-1};return _1(ohe).map((X,K)=>{const re=oe.slice(K*oj,(K+1)*oj);if(m.value){const ee=re[0].value;re.unshift({label:ee.week(),value:ee})}return re})}),N=F(()=>s?.value||((W,V)=>W.isSame(V,"day")));function L(W){t("select",W.value)}function B(W){t("time-picker-select",W)}function U(W){t("cell-mouse-enter",W.value)}return{prefixCls:g,classNames:_,pickerPrefixCls:b,headerTitle:A,rows:D,weekList:F(()=>m.value?[-1,...M.value]:M.value),mergedIsSameTime:N,disabledTimeProps:R,onCellClick:L,onCellMouseEnter:U,onTimePanelSelect:B,showViewTabs:C,showDateView:x,showTimeView:E,changeViewTo:W=>{t("current-view-change",W),t("update:currentView",W),k(W)},datePickerT:p}}});function gOe(e,t,n,r,o,a){const s=Pe("PanelHeader"),l=Pe("PanelWeekList"),c=Pe("PanelBody"),f=Pe("TimePanel"),h=Pe("IconCalendar"),p=Pe("IconClockCircle");return H(),J("div",{class:ae(e.classNames)},[e.showDateView?(H(),J("div",{key:0,class:ae(`${e.prefixCls}-inner`)},[O(s,Bt({...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)):Re("v-if",!0),e.showTimeView?(H(),J("div",{key:1,class:ae(`${e.prefixCls}-timepicker`)},[I("header",{class:ae(`${e.prefixCls}-timepicker-title`)},Be(e.datePickerT("datePicker.selectTime")),3),O(f,Bt({...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)):Re("v-if",!0),e.showViewTabs?(H(),J("div",{key:2,class:ae(`${e.prefixCls}-footer`)},[I("div",{class:ae(`${e.prefixCls}-view-tabs`)},[I("div",{class:ae([`${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:ae(`${e.prefixCls}-view-tab-pane-text`)},Be(e.footerValue&&e.footerValue.format("YYYY-MM-DD")),3)],2),I("div",{class:ae([`${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:ae(`${e.prefixCls}-view-tab-pane-text`)},Be(e.timePickerValue&&e.timePickerValue.format("HH:mm:ss")),3)],2)],2)],2)):Re("v-if",!0)],2)}var Ez=Oe(mOe,[["render",gOe]]);const yOe=_e({name:"WeekPanel",components:{DatePanel:Ez},props:{dayStartOfWeek:{type:Number,default:0}},emits:["select","cell-mouse-enter"],setup(e,{emit:t}){return Lo(),{isSameTime:(r,o)=>Ws.isSameWeek(r,o,e.dayStartOfWeek),onSelect:r=>{const o=Ws.startOfWeek(r,e.dayStartOfWeek);t("select",o)},onCellMouseEnter:r=>{const o=Ws.startOfWeek(r,e.dayStartOfWeek);t("cell-mouse-enter",o)}}}});function bOe(e,t,n,r,o,a){const s=Pe("DatePanel");return H(),Ye(s,Bt(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 she=Oe(yOe,[["render",bOe]]);const _Oe=["January","February","March","April","May","June","July","August","September","October","November","December"],SOe=12,kOe=4,dne=3,wOe=_e({name:"MonthPanel",components:{PanelHeader:z3,PanelBody:H3},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=Bk(),{headerValue:r}=Qt(e),o=F(()=>Ae("panel-month")),a=Ae("picker"),s=F(()=>r.value.format("YYYY")),l=F(()=>{const p=r.value.year(),m=e.abbreviation?"short":"long",g=_1(SOe).map((S,k)=>({label:n(`datePicker.month.${m}.${_Oe[k]}`),value:Es(`${p}-${k+1}`,"YYYY-M")}));return _1(kOe).map((S,k)=>g.slice(k*dne,(k+1)*dne))}),c=(p,m)=>p.isSame(m,"month");function f(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:f,onCellMouseEnter:h}}});function COe(e,t,n,r,o,a){const s=Pe("PanelHeader"),l=Pe("PanelBody");return H(),J("div",{class:ae(e.prefixCls)},[I("div",{class:ae(`${e.prefixCls}-inner`)},[O(s,Bt({...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 ahe=Oe(wOe,[["render",COe]]);const sj=4,a4=3,xOe=sj*a4,wD=10,EOe=_e({name:"YearPanel",components:{PanelHeader:z3,PanelBody:H3},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}=Qt(e),r=F(()=>Ae("panel-year")),o=Ae("picker"),a=F(()=>{const h=Math.floor(n.value.year()/wD)*wD-1,p=_1(xOe).map((g,b)=>({label:h+b,value:Es(`${h+b}`,"YYYY"),isPrev:b<1,isNext:b>wD}));return _1(sj).map((g,b)=>p.slice(b*a4,(b+1)*a4))}),s=F(()=>`${a.value[0][1].label}-${a.value[sj-1][a4-1].label}`),l=(h,p)=>h.isSame(p,"year");function c(h){t("select",h.value)}function f(h){t("cell-mouse-enter",h.value)}return{prefixCls:r,pickerPrefixCls:o,headerTitle:s,rows:a,isSameTime:l,onCellClick:c,onCellMouseEnter:f}}});function TOe(e,t,n,r,o,a){const s=Pe("PanelHeader"),l=Pe("PanelBody");return H(),J("div",{class:ae(e.prefixCls)},[I("div",{class:ae(`${e.prefixCls}-inner`)},[O(s,Bt({...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 lhe=Oe(EOe,[["render",TOe]]);const AOe=_e({name:"QuarterPanel",components:{PanelHeader:z3,PanelBody:H3},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}=Qt(e),r=F(()=>Ae("panel-quarter")),o=Ae("picker"),a=F(()=>n.value.format("YYYY")),s=F(()=>{const h=n.value.year();return[[1,2,3,4].map(p=>({label:`Q${p}`,value:Es(`${h}-${ng((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 f(h){t("cell-mouse-enter",h.value)}return{prefixCls:r,pickerPrefixCls:o,headerTitle:a,rows:s,isSameTime:l,onCellClick:c,onCellMouseEnter:f}}});function IOe(e,t,n,r,o,a){const s=Pe("PanelHeader"),l=Pe("PanelBody");return H(),J("div",{class:ae(e.prefixCls)},[I("div",{class:ae(`${e.prefixCls}-inner`)},[O(s,Bt({...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 uhe=Oe(AOe,[["render",IOe]]);const LOe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-link`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),POe=["stroke-width","stroke-linecap","stroke-linejoin"];function ROe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,POe)}var CD=Oe(LOe,[["render",ROe]]);const dd=Object.assign(CD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+CD.name,CD)}}),MOe=_e({name:"Link",components:{IconLink:dd,IconLoading:za},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=Ae("link"),o=Zfe(e,t,"icon"),a=l=>{if(e.disabled||e.loading){l.preventDefault();return}n("click",l)};return{cls:F(()=>[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}}}),DOe=["href"];function OOe(e,t,n,r,o,a){const s=Pe("icon-loading"),l=Pe("icon-link");return H(),J("a",{href:e.disabled?void 0:e.href,class:ae(e.cls),onClick:t[0]||(t[0]=(...c)=>e.handleClick&&e.handleClick(...c))},[e.loading||e.showIcon?(H(),J("span",{key:0,class:ae(`${e.prefixCls}-icon`)},[e.loading?(H(),Ye(s,{key:0})):ct(e.$slots,"icon",{key:1},()=>[O(l)])],2)):Re("v-if",!0),ct(e.$slots,"default")],10,DOe)}var xD=Oe(MOe,[["render",OOe]]);const che=Object.assign(xD,{install:(e,t)=>{Wn(e,t);const n=Hn(t);e.component(n+xD.name,xD)}}),$Oe=_e({name:"PanelFooter",components:{Link:che,Button:Ho},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:Bk(),onTodayClick:()=>{t("today-btn-click")},onConfirmBtnClick:()=>{t("confirm-btn-click")}}}});function NOe(e,t,n,r,o,a){const s=Pe("Link"),l=Pe("Button");return H(),J("div",{class:ae(`${e.prefixCls}-footer`)},[e.$slots.extra?(H(),J("div",{key:0,class:ae(`${e.prefixCls}-footer-extra-wrapper`)},[ct(e.$slots,"extra")],2)):Re("v-if",!0),e.showTodayBtn?(H(),J("div",{key:1,class:ae(`${e.prefixCls}-footer-now-wrapper`)},[O(s,{onClick:e.onTodayClick},{default:de(()=>[ze(Be(e.datePickerT("datePicker.today")),1)]),_:1},8,["onClick"])],2)):Re("v-if",!0),e.$slots.btn||e.showConfirmBtn?(H(),J("div",{key:2,class:ae(`${e.prefixCls}-footer-btn-wrapper`)},[ct(e.$slots,"btn"),e.showConfirmBtn?(H(),Ye(l,{key:0,class:ae(`${e.prefixCls}-btn-confirm`),type:"primary",size:"mini",disabled:e.confirmBtnDisabled,onClick:e.onConfirmBtnClick},{default:de(()=>[ze(Be(e.datePickerT("datePicker.ok")),1)]),_:1},8,["class","disabled","onClick"])):Re("v-if",!0)],2)):Re("v-if",!0)],2)}var dhe=Oe($Oe,[["render",NOe]]);function fhe(e){const{mode:t}=Qt(e),n=F(()=>({date:1,week:1,year:120,quarter:12,month:12})[t.value]),r=F(()=>["year"].includes(t.value)?120:12);return{span:n,superSpan:r}}function GA(e){const{mode:t,value:n,defaultValue:r,selectedValue:o,format:a,onChange:s}=Qt(e),l=F(()=>t?.value||"date"),{span:c,superSpan:f}=fhe(qt({mode:l})),h=(A,R)=>{const M=l.value==="date"||l.value==="week"?"M":"y";return A.isSame(R,M)},p=F(()=>rc(n?.value,a.value)),m=F(()=>rc(r?.value,a.value)),g=fe(m.value||Ua()),b=F(()=>p.value||g.value),S=A=>{A&&(g.value=A)},k=(A,R=!0)=>{var M;A&&(R&&!h(b.value,A)&&((M=s?.value)==null||M.call(s,A)),S(A))};o?.value&&S(o.value),Dt(()=>o?.value,A=>{k(A)});function C(){return o?.value||m.value||Ua()}function x(A=!0){const R=C();A?k(R):S(R)}const E=F(()=>c.value!==f.value),_=F(()=>({onSuperPrev:()=>{k(Ws.subtract(b.value,f.value,"M"))},onPrev:E.value?()=>{k(Ws.subtract(b.value,c.value,"M"))}:void 0,onNext:E.value?()=>{k(Ws.add(b.value,c.value,"M"))}:void 0,onSuperNext:()=>{k(Ws.add(b.value,f.value,"M"))}}));return{headerValue:b,setHeaderValue:k,headerOperations:_,resetHeaderValue:x,getDefaultLocalValue:C}}const BOe=_e({name:"DatePikerPanel",components:{DatePanel:Ez,PanelShortcuts:ehe,PanelFooter:dhe,WeekPanel:she,MonthPanel:ahe,YearPanel:lhe,QuarterPanel:uhe,RenderFunction:Vh},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:f,dateRender:h,showConfirmBtn:p,headerValue:m,headerIcons:g,headerOperations:b,headerMode:S}=Qt(e),k=F(()=>!!(r.value&&r.value.length)),C=F(()=>f.value&&p.value&&!k.value),x=F(()=>C.value||k.value),E=F(()=>x.value&&o.value==="left"),_=F(()=>x.value&&o.value==="right"),A=F(()=>x.value&&o.value==="bottom"),R=F(()=>[`${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}]),M=F(()=>s?.value||Ua()),{headerValue:D,setHeaderValue:N,headerOperations:L}=GA(qt({mode:S,format:a}));Dt(m,Q=>{N(Q)});function B(Q){const{value:ye}=Q;return rc(_n(ye)?ye():ye,Q.format||a.value)}function U(Q){t("shortcut-click",B(Q),Q)}function W(Q){t("shortcut-mouse-enter",B(Q))}function V(Q){t("shortcut-mouse-leave",B(Q))}function z(Q){t("cell-click",Q)}function Y(Q){t("time-picker-select",Q)}function oe(){t("today-btn-click",Ua())}function ne(){t("confirm")}function X(Q){t("header-label-click",Q)}function K(Q){t("header-select",Q)}function re(){t("month-header-click")}const ee=qt({prefixCls:n,shortcuts:r,showNowBtn:C,onItemClick:U,onItemMouseEnter:W,onItemMouseLeave:V,onNowClick:oe}),le=qt({value:s,headerValue:m,headerIcons:g,headerOperations:b,disabledDate:l,dateRender:h,onSelect:z,onHeaderLabelClick:X});return{classNames:R,showShortcutsInLeft:E,showShortcutsInRight:_,showShortcutsInBottom:A,shortcutsProps:ee,commonPanelProps:le,footerValue:M,onTodayBtnClick:oe,onConfirmBtnClick:ne,onTimePickerSelect:Y,onHeaderPanelSelect:K,headerPanelHeaderValue:D,headerPanelHeaderOperations:L,onMonthHeaderLabelClick:re}}});function FOe(e,t,n,r,o,a){const s=Pe("PanelShortcuts"),l=Pe("YearPanel"),c=Pe("MonthPanel"),f=Pe("WeekPanel"),h=Pe("QuarterPanel"),p=Pe("DatePanel"),m=Pe("RenderFunction"),g=Pe("PanelFooter");return H(),J("div",{class:ae(e.classNames)},[e.showShortcutsInLeft?(H(),Ye(s,Ui(Bt({key:0},e.shortcutsProps)),null,16)):Re("v-if",!0),I("div",{class:ae(`${e.prefixCls}-panel-wrapper`)},[e.headerMode?(H(),J(Ut,{key:0},[e.headerMode==="year"?(H(),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"?(H(),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"])):Re("v-if",!0)],64)):(H(),J(Ut,{key:1},[e.mode==="week"?(H(),Ye(f,Bt({key:0},e.commonPanelProps,{"day-start-of-week":e.dayStartOfWeek}),null,16,["day-start-of-week"])):e.mode==="month"?(H(),Ye(c,Bt({key:1,abbreviation:e.abbreviation},e.commonPanelProps),null,16,["abbreviation"])):e.mode==="year"?(H(),Ye(l,Ui(Bt({key:2},e.commonPanelProps)),null,16)):e.mode==="quarter"?(H(),Ye(h,Ui(Bt({key:3},e.commonPanelProps)),null,16)):(H(),Ye(p,Bt({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},_o({_:2},[e.extra?{name:"extra",fn:de(()=>[e.extra?(H(),Ye(m,{key:0,"render-func":e.extra},null,8,["render-func"])):Re("v-if",!0)]),key:"0"}:void 0,e.showShortcutsInBottom?{name:"btn",fn:de(()=>[O(s,Ui(ma(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?(H(),Ye(s,Ui(Bt({key:1},e.shortcutsProps)),null,16)):Re("v-if",!0)],2)}var jOe=Oe(BOe,[["render",FOe]]);function UOe(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 VOe(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 hhe(e){const{format:t,mode:n,showTime:r,valueFormat:o}=Qt(e),a=F(()=>!_n(t?.value)&&t?.value||UOe(n?.value,r?.value)),s=F(()=>o?.value||VOe(n?.value,r?.value)),l=F(()=>["timestamp","Date"].includes(s.value)?a.value:s.value);return{format:a,valueFormat:s,parseValueFormat:l}}function phe(e){const{mode:t,showTime:n,disabledDate:r,disabledTime:o,isRange:a}=Qt(e),s=F(()=>t?.value==="date"&&n?.value),l=F(()=>(h,p)=>{if(!r?.value)return!1;const m=gu(h);return a?.value?r.value(m,p):r.value(m)}),c=(h,p)=>(p?.()||[]).includes(h),f=F(()=>(h,p)=>{if(!s.value||!o?.value)return!1;const m=gu(h),g=a?.value?o.value(m,p):o.value(m);return c(h.hour(),g.disabledHours)||c(h.minute(),g.disabledMinutes)||c(h.second(),g.disabledSeconds)});return function(p,m){return p&&(l.value(p,m||"start")||f.value(p,m||"start"))}}const rg=(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 rg(t?.value||{},l)||r(a,...s)};return Xr(Jfe,{datePickerT:o}),o}function aj(e){const{timePickerProps:t,selectedValue:n}=Qt(e),r=F(()=>{var p;return(p=t?.value)==null?void 0:p.format}),o=F(()=>{var p;return!!((p=t?.value)!=null&&p.use12Hours)}),{format:a}=xz(qt({format:r,use12Hours:o})),s=F(()=>{var p;return rc((p=t?.value)==null?void 0:p.defaultValue,a.value)}),l=()=>n?.value||s.value||Ua(),c=fe(l());function f(p){p&&(c.value=p)}function h(){c.value=l()}return Dt(n,p=>{f(p)}),[c,f,h]}function mhe(e,t){return t==="timestamp"?e.toDate().getTime():t==="Date"?e.toDate():e.format(t)}function zOe(e){const{format:t}=Qt(e);return n=>mhe(n,t.value)}function ED(e,t){return e.map(n=>n?mhe(n,t):void 0)}const HOe=_e({name:"Picker",components:{DateInput:Qfe,Trigger:la,PickerPanel:jOe,IconCalendar:Fk},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:f,defaultPopupVisible:h,disabled:p,showTime:m,timePickerProps:g,disabledDate:b,disabledTime:S,readonly:k,locale:C,pickerValue:x,defaultPickerValue:E,dayStartOfWeek:_,previewShortcut:A,showConfirmBtn:R}=Qt(e),{locale:M}=Lo();As(()=>{Tfe(M.value,_.value)});const{mergedDisabled:D,eventHandlers:N}=wo({disabled:p}),L=vhe(qt({locale:C})),B=Ae("picker"),U=fe(),W=F(()=>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:V,valueFormat:z,parseValueFormat:Y}=hhe(qt({format:s,mode:r,showTime:m,valueFormat:l})),oe=F(()=>s&&_n(s.value)?cn=>{var hr;return(hr=s.value)==null?void 0:hr.call(s,gu(cn))}:V.value),ne=zOe(qt({format:z})),X=phe(qt({mode:r,disabledDate:b,disabledTime:S,showTime:m})),K=F(()=>m.value||R.value),re=F(()=>K.value&&(!De.value||X(De.value))),ee=F(()=>r.value==="date"&&m.value),{value:le,setValue:Q}=L6e(qt({modelValue:o,defaultValue:a,format:Y})),[ye,be]=ja(),[ve,Ce]=ja(),De=F(()=>{var cn;return(cn=ye.value)!=null?cn:le.value}),We=F(()=>{var cn,hr;return(hr=(cn=ve.value)!=null?cn:ye.value)!=null?hr:le.value}),[Xe,He]=ja(),[ke,Se]=aa(h.value,qt({value:f})),Ne=cn=>{ke.value!==cn&&(Se(cn),t("popup-visible-change",cn),t("update:popupVisible",cn))},{headerValue:qe,setHeaderValue:Je,headerOperations:ot,resetHeaderValue:yt}=GA(qt({mode:r,value:x,defaultValue:E,selectedValue:We,format:Y,onChange:cn=>{const hr=ne(cn),di=nf(cn,Y.value),gs=gu(cn);t("picker-value-change",hr,gs,di),t("update:pickerValue",hr)}})),[at,,ut]=aj(qt({timePickerProps:g,selectedValue:We})),vt=F(()=>!k.value&&!_n(oe.value)),Wt=fe();Dt(ke,cn=>{be(void 0),Ce(void 0),Wt.value=void 0,cn&&(yt(),ut()),cn||He(void 0)});function Ft(cn,hr){var di,gs;const Po=cn?ne(cn):void 0,Ps=nf(cn,Y.value),Kc=gu(cn);vz(cn,le.value)&&(t("update:modelValue",Po),t("change",Po,Kc,Ps),(gs=(di=N.value)==null?void 0:di.onChange)==null||gs.call(di)),hr&&t("ok",Po,Kc,Ps)}function Jt(cn,hr,di){X(cn)||(Ft(cn,di),Q(cn),be(void 0),Ce(void 0),He(void 0),Wt.value=void 0,bl(hr)&&Ne(hr))}function an(cn,hr){if(be(cn),Ce(void 0),He(void 0),Wt.value=void 0,hr){const di=cn?ne(cn):void 0,gs=nf(cn,Y.value),Po=gu(cn);t("select",di,Po,gs)}}function mt(cn){U.value&&U.value.focus&&U.value.focus(cn)}function wt(cn,hr){return!ee.value&&!g.value?cn:the(Ua(),cn,hr)}function Ge(cn){D.value||Ne(cn)}function Ue(cn){cn.stopPropagation(),Jt(void 0),t("clear")}function st(){var cn,hr;(hr=(cn=N.value)==null?void 0:cn.onBlur)==null||hr.call(cn)}function kt(cn){Ne(!0);const hr=cn.target.value;if(He(hr),!HA(hr,V.value))return;const di=Es(hr,V.value);X(di)||(K.value?an(di):Jt(di,!0))}function zt(){Jt(We.value,!1)}function _t(cn){K.value?an(cn,!0):Jt(cn,!1)}function $e(cn){const hr=wt(cn,at.value);_t(hr)}function Lt(cn){const hr=wt(We.value||Ua(),cn);_t(hr)}function dt(){Jt(We.value,!1,!0)}function It(){e.disabledInput&&mt()}let At;yi(()=>{clearTimeout(At)});function jt(cn){clearTimeout(At),Ce(cn),He(void 0)}function nn(){clearTimeout(At),At=setTimeout(()=>{Ce(void 0)},100)}function Ct(cn,hr){t("select-shortcut",hr),Jt(cn,!1)}function en(cn){Wt.value=cn}function Jn(){Wt.value="year"}function dn(cn){let hr=qe.value;if(hr=hr.set("year",cn.year()),Wt.value==="month"&&(hr=hr.set("month",cn.month())),Je(hr),r.value==="quarter"||r.value==="month"){Wt.value=void 0;return}Wt.value=Wt.value==="year"?"month":void 0}const Un=F(()=>({format:V.value,...ya(g?.value||{},["defaultValue"]),visible:ke.value})),Zr=F(()=>({...pf(e,["mode","shortcuts","shortcutsPosition","dayStartOfWeek","disabledDate","disabledTime","showTime","hideTrigger","abbreviation"]),showNowBtn:e.showNowBtn&&r.value==="date",prefixCls:B,format:Y.value,value:We.value,visible:ke.value,showConfirmBtn:K.value,confirmBtnDisabled:re.value,timePickerProps:Un.value,extra:n.extra,dateRender:n.cell,headerValue:qe.value,headerIcons:{prev:n["icon-prev"],prevDouble:n["icon-prev-double"],next:n["icon-next"],nextDouble:n["icon-next-double"]},headerOperations:ot.value,timePickerValue:at.value,headerMode:Wt.value,onCellClick:$e,onTimePickerSelect:Lt,onConfirm:dt,onShortcutClick:Ct,onShortcutMouseEnter:A.value?jt:void 0,onShortcutMouseLeave:A.value?nn:void 0,onTodayBtnClick:_t,onHeaderLabelClick:en,onHeaderSelect:dn,onMonthHeaderClick:Jn}));return{prefixCls:B,refInput:U,panelProps:Zr,panelValue:We,inputValue:Xe,selectedValue:le,inputFormat:oe,computedPlaceholder:W,panelVisible:ke,inputEditable:vt,needConfirm:K,mergedDisabled:D,onPanelVisibleChange:Ge,onInputClear:Ue,onInputChange:kt,onInputPressEnter:zt,onInputBlur:st,onPanelClick:It}}});function WOe(e,t,n,r,o,a){const s=Pe("IconCalendar"),l=Pe("DateInput"),c=Pe("PickerPanel"),f=Pe("Trigger");return e.hideTrigger?(H(),Ye(c,Ui(Bt({key:1},{...e.$attrs,...e.panelProps})),null,16)):(H(),Ye(f,Bt({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,Bt(e.panelProps,{onClick:e.onPanelClick}),null,16,["onClick"])]),default:de(()=>[ct(e.$slots,"default",{},()=>[O(l,Bt(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}),_o({"suffix-icon":de(()=>[ct(e.$slots,"suffix-icon",{},()=>[O(s)])]),_:2},[e.$slots.prefix?{name:"prefix",fn:de(()=>[ct(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 jk=Oe(HOe,[["render",WOe]]),TD=_e({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(jk,Bt(e,t,{mode:"date"}),n)}}),l4=_e({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(jk,Bt(e,t,{mode:"week"}),n)}}),u4=_e({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(jk,Bt(e,t,{mode:"month"}),n)}}),c4=_e({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(jk,Bt(e,t,{mode:"year"}),n)}}),d4=_e({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(jk,Bt(e,t,{mode:"quarter"}),n)}});function GOe(e){const{modelValue:t,defaultValue:n,format:r}=Qt(e),o=F(()=>rc(ij(t.value),r.value)),a=F(()=>rc(ij(n.value),r.value)),[s,l]=ja(kn(o.value)?kn(a.value)?[]:a.value:o.value);return Dt(o,()=>{kn(o.value)&&l([])}),{value:F(()=>o.value||s.value),setValue:l}}function KOe(e){const{startHeaderMode:t,endHeaderMode:n,mode:r,value:o,defaultValue:a,selectedValue:s,format:l,onChange:c}=Qt(e),f=F(()=>["date","week"].includes(r.value)),h=F(()=>f.value?"M":"y"),p=(ye,be)=>ye.isSame(be,h.value),{span:m,superSpan:g}=fhe(qt({mode:r})),b=F(()=>t?.value||r.value),S=F(()=>n?.value||r.value),k=F(()=>{var ye;return(ye=o.value)==null?void 0:ye[0]}),C=F(()=>{var ye;return(ye=o.value)==null?void 0:ye[1]}),x=F(()=>{var ye;return(ye=a.value)==null?void 0:ye[0]}),E=F(()=>{var ye;return(ye=a.value)==null?void 0:ye[1]}),_=ye=>{c?.value&&c.value(ye)},{headerValue:A,setHeaderValue:R,headerOperations:M,getDefaultLocalValue:D}=GA(qt({mode:b,value:k,defaultValue:x,selectedValue:void 0,format:l,onChange:ye=>{_([ye,N.value])}})),{headerValue:N,setHeaderValue:L,headerOperations:B,getDefaultLocalValue:U}=GA(qt({mode:S,value:C,defaultValue:E,selectedValue:void 0,format:l,onChange:ye=>{_([A.value,ye])}})),W=ye=>{const be=p(A.value,ye[0]),ve=p(N.value,ye[1]);R(ye[0],!1),L(ye[1],!1),(!be||!ve)&&c?.value&&c?.value(ye)};function V(ye){let[be,ve]=V2(ye);const Ce=Ws.add(be,m.value,"M");return ve.isBefore(Ce,h.value)&&(ve=Ce),[be,ve]}function z(){var ye,be;let ve=(ye=s.value)==null?void 0:ye[0],Ce=(be=s.value)==null?void 0:be[1];return ve&&Ce&&([ve,Ce]=V2([ve,Ce])),[ve,Ce]}const[Y,oe]=z(),[ne,X]=V([Y||A.value,oe||N.value]);R(ne,!1),L(X,!1);const K=()=>{const ye=D(),be=U();yn(()=>{const[ve,Ce]=z(),[De,We]=V([ve||ye,Ce||be]);W([De,We])})},re=F(()=>Ws.add(A.value,m.value,"M").isBefore(N.value,h.value)),ee=F(()=>Ws.add(A.value,g.value,"M").isBefore(N.value,h.value)),le=F(()=>{const ye=["onSuperPrev"];return f.value&&ye.push("onPrev"),re.value&&f&&ye.push("onNext"),ee.value&&ye.push("onSuperNext"),pf(M.value,ye)}),Q=F(()=>{const ye=["onSuperNext"];return f.value&&ye.push("onNext"),re.value&&f.value&&ye.push("onPrev"),ee.value&&ye.push("onSuperPrev"),pf(B.value,ye)});return{startHeaderValue:A,endHeaderValue:N,startHeaderOperations:le,endHeaderOperations:Q,setHeaderValue:W,resetHeaderValue:K}}const qOe=_e({name:"DateInputRange",components:{IconHover:ko,IconClose:ms,FeedbackIcon:Dk},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:f,inputValue:h}=Qt(e),{mergedSize:p,mergedDisabled:m,mergedError:g,feedback:b}=wo({size:s,error:r}),{mergedSize:S}=_a(p),k=fe(),C=fe(),x=Y=>m.value?m.value:Qn(a.value)?a.value[Y]:a.value,E=F(()=>x(0)),_=F(()=>x(1)),A=Ae("picker"),R=F(()=>[A,`${A}-range`,`${A}-size-${S.value}`,{[`${A}-focused`]:o.value,[`${A}-disabled`]:E.value&&_.value,[`${A}-error`]:g.value,[`${A}-has-prefix`]:n.prefix}]);function M(Y){return[`${A}-input`,{[`${A}-input-active`]:Y===f?.value}]}function D(Y){var oe,ne;if(h?.value)return(oe=h?.value)==null?void 0:oe[Y];const X=(ne=l?.value)==null?void 0:ne[Y];if(X&&Mc(X))return _n(c.value)?c.value(X):X.format(c.value)}const N=F(()=>D(0)),L=F(()=>D(1));function B(Y){t("focused-index-change",Y),t("update:focusedIndex",Y)}function U(Y){Y.stopPropagation(),t("change",Y)}function W(){t("press-enter")}function V(Y){Y.preventDefault()}function z(Y){t("clear",Y)}return{prefixCls:A,classNames:R,refInput0:k,refInput1:C,disabled0:E,disabled1:_,mergedDisabled:m,getDisabled:x,getInputWrapClassName:M,displayValue0:N,displayValue1:L,changeFocusedInput:B,onChange:U,onPressEnter:W,onPressTab:V,onClear:z,feedback:b}},methods:{focus(e){const t=Ke(e)?e:this.focusedIndex,n=t===0?this.refInput0:this.refInput1;!kn(t)&&!this.getDisabled(t)&&n&&n.focus&&n.focus()},blur(){const e=this.focusedIndex===0?this.refInput0:this.refInput1;e&&e.blur&&e.blur()}}}),YOe=["disabled","placeholder","value"],XOe=["disabled","placeholder","value"];function ZOe(e,t,n,r,o,a){const s=Pe("IconClose"),l=Pe("IconHover"),c=Pe("FeedbackIcon");return H(),J("div",{class:ae(e.classNames)},[e.$slots.prefix?(H(),J("div",{key:0,class:ae(`${e.prefixCls}-prefix`)},[ct(e.$slots,"prefix")],2)):Re("v-if",!0),I("div",{class:ae(e.getInputWrapClassName(0))},[I("input",Bt({ref:"refInput0",disabled:e.disabled0,placeholder:e.placeholder[0],value:e.displayValue0},e.readonly?{readonly:!0}:{},{onInput:t[0]||(t[0]=(...f)=>e.onChange&&e.onChange(...f)),onKeydown:[t[1]||(t[1]=mh((...f)=>e.onPressEnter&&e.onPressEnter(...f),["enter"])),t[2]||(t[2]=mh((...f)=>e.onPressTab&&e.onPressTab(...f),["tab"]))],onClick:t[3]||(t[3]=()=>e.changeFocusedInput(0))}),null,16,YOe)],2),I("span",{class:ae(`${e.prefixCls}-separator`)},[ct(e.$slots,"separator",{},()=>[t[8]||(t[8]=ze(" - "))])],2),I("div",{class:ae(e.getInputWrapClassName(1))},[I("input",Bt({ref:"refInput1",disabled:e.disabled1,placeholder:e.placeholder[1],value:e.displayValue1},e.readonly?{readonly:!0}:{},{onInput:t[4]||(t[4]=(...f)=>e.onChange&&e.onChange(...f)),onKeydown:[t[5]||(t[5]=mh((...f)=>e.onPressEnter&&e.onPressEnter(...f),["enter"])),t[6]||(t[6]=mh((...f)=>e.onPressTab&&e.onPressTab(...f),["tab"]))],onClick:t[7]||(t[7]=()=>e.changeFocusedInput(1))}),null,16,XOe)],2),I("div",{class:ae(`${e.prefixCls}-suffix`)},[e.allowClear&&!e.mergedDisabled&&e.value.length===2?(H(),Ye(l,{key:0,prefix:e.prefixCls,class:ae(`${e.prefixCls}-clear-icon`),onClick:e.onClear},{default:de(()=>[O(s)]),_:1},8,["prefix","class","onClick"])):Re("v-if",!0),I("span",{class:ae(`${e.prefixCls}-suffix-icon`)},[ct(e.$slots,"suffix-icon")],2),e.feedback?(H(),Ye(c,{key:1,type:e.feedback},null,8,["type"])):Re("v-if",!0)],2)],2)}var ghe=Oe(qOe,[["render",ZOe]]);const QOe=_e({name:"DateRangePikerPanel",components:{PanelShortcuts:ehe,PanelFooter:dhe,RenderFunction:Vh,DatePanel:Ez,WeekPanel:she,MonthPanel:ahe,YearPanel:lhe,QuarterPanel:uhe},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:f,startHeaderProps:h,endHeaderProps:p,dateRender:m,visible:g,startHeaderMode:b,endHeaderMode:S}=Qt(e),k=F(()=>Qn(r.value)&&r.value.length),C=F(()=>[`${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");Dt(g,(ee,le)=>{ee&&!le&&(x.value="date")});function E(ee){return rc(ij(_n(ee.value)?ee.value():ee.value),ee.format||a.value)}function _(ee){t("shortcut-click",E(ee),ee)}function A(ee){t("shortcut-mouse-enter",E(ee))}function R(ee){t("shortcut-mouse-leave",E(ee))}function M(ee){t("cell-click",ee)}function D(ee){t("cell-mouse-enter",ee)}function N(){t("confirm")}function L(ee){t("time-picker-select",ee,"start")}function B(ee){t("time-picker-select",ee,"end")}function U(ee){t("start-header-label-click",ee)}function W(ee){t("end-header-label-click",ee)}function V(ee){t("start-header-select",ee)}function z(ee){t("end-header-select",ee)}function Y(ee){return _n(c?.value)?le=>{var Q;return((Q=c?.value)==null?void 0:Q.call(c,le,ee===0?"start":"end"))||!1}:void 0}function oe(ee){return _n(f?.value)?le=>{var Q;return((Q=f?.value)==null?void 0:Q.call(f,le,ee===0?"start":"end"))||!1}:void 0}function ne(ee){return _n(m?.value)?le=>{var Q;const ye={...le,type:ee===0?"start":"end"};return(Q=m?.value)==null?void 0:Q.call(m,ye)}:void 0}const X=qt({prefixCls:n,shortcuts:r,onItemClick:_,onItemMouseEnter:A,onItemMouseLeave:R}),K=F(()=>({...h.value,rangeValues:l.value,disabledDate:Y(0),dateRender:ne(0),onSelect:b.value?V:M,onCellMouseEnter:D,onHeaderLabelClick:U})),re=F(()=>({...p.value,rangeValues:l.value,disabledDate:Y(1),dateRender:ne(1),onSelect:S.value?z:M,onCellMouseEnter:D,onHeaderLabelClick:W}));return{pick:pf,classNames:C,showShortcuts:k,shortcutsProps:X,startPanelProps:K,endPanelProps:re,getDisabledTimeFunc:oe,onConfirmBtnClick:N,currentDateView:x,onStartTimePickerSelect:L,onEndTimePickerSelect:B,onStartHeaderPanelSelect:V,onEndHeaderPanelSelect:z}}});function JOe(e,t,n,r,o,a){const s=Pe("PanelShortcuts"),l=Pe("YearPanel"),c=Pe("MonthPanel"),f=Pe("WeekPanel"),h=Pe("QuarterPanel"),p=Pe("DatePanel"),m=Pe("RenderFunction"),g=Pe("PanelFooter");return H(),J("div",{class:ae(e.classNames)},[e.showShortcuts&&e.shortcutsPosition==="left"?(H(),Ye(s,Ui(Bt({key:0},e.shortcutsProps)),null,16)):Re("v-if",!0),I("div",{class:ae(`${e.prefixCls}-range-panel-wrapper`)},[Re(" panel "),I("div",{class:ae(`${e.prefixCls}-range`)},[I("div",{class:ae(`${e.prefixCls}-range-wrapper`)},[e.startHeaderMode||e.endHeaderMode?(H(),J(Ut,{key:0},[e.startHeaderMode==="year"?(H(),Ye(l,Ui(Bt({key:0},e.startPanelProps)),null,16)):Re("v-if",!0),e.endHeaderMode==="year"?(H(),Ye(l,Ui(Bt({key:1},e.endPanelProps)),null,16)):e.startHeaderMode==="month"?(H(),Ye(c,Bt({key:2},e.startPanelProps,{abbreviation:e.abbreviation}),null,16,["abbreviation"])):e.endHeaderMode==="month"?(H(),Ye(c,Bt({key:3},e.endPanelProps,{abbreviation:e.abbreviation}),null,16,["abbreviation"])):Re("v-if",!0)],64)):(H(),J(Ut,{key:1},[Re(" week "),e.mode==="week"?(H(),J(Ut,{key:0},[O(f,Bt(e.startPanelProps,{"day-start-of-week":e.dayStartOfWeek}),null,16,["day-start-of-week"]),O(f,Bt(e.endPanelProps,{"day-start-of-week":e.dayStartOfWeek}),null,16,["day-start-of-week"])],64)):e.mode==="month"?(H(),J(Ut,{key:1},[Re(" month "),O(c,Bt(e.startPanelProps,{abbreviation:e.abbreviation}),null,16,["abbreviation"]),O(c,Bt(e.endPanelProps,{abbreviation:e.abbreviation}),null,16,["abbreviation"])],64)):e.mode==="year"?(H(),J(Ut,{key:2},[Re(" year "),O(l,Ui(ma(e.startPanelProps)),null,16),O(l,Ui(ma(e.endPanelProps)),null,16)],64)):e.mode==="quarter"?(H(),J(Ut,{key:3},[Re(" quarter "),O(h,Ui(ma(e.startPanelProps)),null,16),O(h,Ui(ma(e.endPanelProps)),null,16)],64)):(H(),J(Ut,{key:4},[Re(" date "),O(p,Bt({currentView:e.currentDateView,"onUpdate:currentView":t[0]||(t[0]=b=>e.currentDateView=b)},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,Bt({currentView:e.currentDateView,"onUpdate:currentView":t[1]||(t[1]=b=>e.currentDateView=b)},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),Re(" footer "),O(g,{"prefix-cls":e.prefixCls,"show-today-btn":!1,"show-confirm-btn":e.showConfirmBtn,"confirm-btn-disabled":e.confirmBtnDisabled,onConfirmBtnClick:e.onConfirmBtnClick},_o({_:2},[e.extra||e.$slots.extra?{name:"extra",fn:de(()=>[e.$slots.extra?ct(e.$slots,"extra",{key:0}):(H(),Ye(m,{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,Ui(ma(e.shortcutsProps)),null,16)]),key:"1"}:void 0]),1032,["prefix-cls","show-confirm-btn","confirm-btn-disabled","onConfirmBtnClick"])],2),e.showShortcuts&&e.shortcutsPosition==="right"?(H(),Ye(s,Ui(Bt({key:1},e.shortcutsProps)),null,16)):Re("v-if",!0)],2)}var e$e=Oe(QOe,[["render",JOe]]);function t$e(e){const{timePickerProps:t,selectedValue:n}=Qt(e),r=F(()=>{var C;return(C=n?.value)==null?void 0:C[0]}),o=F(()=>{var C;return(C=n?.value)==null?void 0:C[1]}),a=F(()=>{var C;return(C=t?.value)==null?void 0:C.defaultValue}),s=F(()=>Qn(a.value)?{...t?.value,defaultValue:a.value[0]}:t?.value),l=F(()=>Qn(a.value)?{...t?.value,defaultValue:a.value[1]}:t?.value),[c,f,h]=aj(qt({timePickerProps:s,selectedValue:r})),[p,m,g]=aj(qt({timePickerProps:l,selectedValue:o})),b=F(()=>[c.value,p.value]);function S(C){C&&(f(C[0]),m(C[1]))}function k(){h(),g()}return[b,S,k]}const n$e=_e({name:"RangePicker",components:{RangePickerPanel:e$e,DateRangeInput:ghe,Trigger:la,IconCalendar:Fk},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:f,placeholder:h,timePickerProps:p,disabled:m,disabledDate:g,disabledTime:b,locale:S,pickerValue:k,defaultPickerValue:C,valueFormat:x,size:E,error:_,dayStartOfWeek:A,exchangeTime:R,previewShortcut:M,showConfirmBtn:D}=Qt(e),{locale:N}=Lo(),L=In(Va,void 0);As(()=>{Tfe(N.value,A.value)});const B=F(()=>{var Qe;return!(!R.value||!((Qe=L?.exchangeTime)==null||Qe))}),{mergedSize:U,mergedDisabled:W,mergedError:V,eventHandlers:z}=wo({size:E,error:_}),Y=vhe(qt({locale:S})),oe=Ae("picker"),ne=F(()=>h?.value||{date:Y("datePicker.rangePlaceholder.date"),month:Y("datePicker.rangePlaceholder.month"),year:Y("datePicker.rangePlaceholder.year"),week:Y("datePicker.rangePlaceholder.week"),quarter:Y("datePicker.rangePlaceholder.quarter")}[r.value]||Y("datePicker.rangePlaceholder.date")),{format:X,valueFormat:K,parseValueFormat:re}=hhe(qt({mode:r,format:a,showTime:o,valueFormat:x})),ee=F(()=>{const Qe=m.value===!0||W.value||Qn(m.value)&&m.value[0]===!0,rt=m.value===!0||W.value||Qn(m.value)&&m.value[1]===!0;return[Qe,rt]}),le=F(()=>ee.value[0]&&ee.value[1]);function Q(Qe=0){return ee.value[Qe]?Qe^1:Qe}const ye=fe(),be=fe(Q()),ve=F(()=>{const Qe=be.value,rt=Qe^1;return ee.value[rt]?Qe:rt}),Ce=F(()=>ee.value[be.value^1]),{value:De,setValue:We}=GOe(qt({modelValue:s,defaultValue:l,format:re})),[Xe,He]=ja(),[ke,Se]=ja(),Ne=F(()=>{var Qe;return(Qe=Xe.value)!=null?Qe:De.value}),qe=F(()=>{var Qe,rt;return(rt=(Qe=ke.value)!=null?Qe:Xe.value)!=null?rt:De.value}),[Je,ot]=ja(),yt=fe(),at=fe(),[ut,vt]=aa(f.value,qt({value:c})),Wt=Qe=>{ut.value!==Qe&&(vt(Qe),t("popup-visible-change",Qe),t("update:popupVisible",Qe))},{startHeaderValue:Ft,endHeaderValue:Jt,startHeaderOperations:an,endHeaderOperations:mt,resetHeaderValue:wt,setHeaderValue:Ge}=KOe(qt({mode:r,startHeaderMode:yt,endHeaderMode:at,value:k,defaultValue:C,selectedValue:qe,format:re,onChange:Qe=>{const rt=ED(Qe,K.value),Mt=nf(Qe,re.value),Xt=gu(Qe);t("picker-value-change",rt,Xt,Mt),t("update:pickerValue",rt)}}));function Ue(Qe){yt.value=Qe}function st(Qe){at.value=Qe}function kt(Qe){let rt=Ft.value;rt=rt.set("year",Qe.year()),yt.value==="month"&&(rt=rt.set("month",Qe.month())),Ge([rt,Jt.value]),yt.value=void 0}function zt(Qe){let rt=Jt.value;rt=rt.set("year",Qe.year()),at.value==="month"&&(rt=rt.set("month",Qe.month())),Ge([Ft.value,rt]),at.value=void 0}const _t=fe([qe.value[0]||Ua(),qe.value[1]||Ua()]);Dt(qe,()=>{const[Qe,rt]=qe.value;_t.value[0]=Qe||_t.value[0],_t.value[1]=rt||_t.value[1]});const[$e,Lt,dt]=t$e(qt({timePickerProps:p,selectedValue:qe})),It=F(()=>r.value==="date"&&o.value),At=F(()=>It.value||p.value),jt=phe(qt({mode:r,isRange:!0,showTime:o,disabledDate:g,disabledTime:b})),nn=F(()=>It.value||D.value),Ct=F(()=>nn.value&&(!Mp(Ne.value)||jt(Ne.value[0],"start")||jt(Ne.value[1],"end")));Dt(ut,Qe=>{yt.value=void 0,at.value=void 0,He(void 0),Se(void 0),Qe&&(wt(),dt(),be.value=Q(be.value),yn(()=>hr(be.value))),Qe||ot(void 0)}),Dt(be,()=>{e.disabledInput&&(hr(be.value),ot(void 0))});function en(Qe,rt){var Mt,Xt;const Gt=Qe?ED(Qe,K.value):void 0,un=nf(Qe,re.value),hn=gu(Qe);vz(Qe,De.value)&&(t("update:modelValue",Gt),t("change",Gt,hn,un),(Xt=(Mt=z.value)==null?void 0:Mt.onChange)==null||Xt.call(Mt)),rt&&t("ok",Gt,hn,un)}function Jn(Qe){let rt=V2(Qe);return At.value&&!B.value&&(rt=[di(rt[0],Qe[0]),di(rt[1],Qe[1])]),rt}function dn(Qe,rt,Mt){if(jt(Qe?.[0],"start")||jt(Qe?.[1],"end"))return;let Xt=Qe?[...Qe]:void 0;Mp(Xt)&&(Xt=Jn(Xt)),en(Xt,Mt),We(Xt||[]),He(void 0),Se(void 0),ot(void 0),yt.value=void 0,at.value=void 0,bl(rt)&&Wt(rt)}function Un(Qe){const rt=ED(Qe,K.value),Mt=nf(Qe,re.value),Xt=gu(Qe);t("select",rt,Xt,Mt)}function Zr(Qe,rt){const{emitSelect:Mt=!1,updateHeader:Xt=!1}=rt||{};let Gt=[...Qe];Mp(Gt)&&(Gt=Jn(Gt)),He(Gt),Se(void 0),ot(void 0),yt.value=void 0,at.value=void 0,Mt&&Un(Gt),Xt&&wt()}function cn(Qe,rt){const{updateHeader:Mt=!1}=rt||{};Se(Qe),ot(void 0),Mt&&wt()}function hr(Qe){ye.value&&ye.value.focus&&ye.value.focus(Qe)}function di(Qe,rt){return At.value?the(Ua(),Qe,rt):Qe}function gs(Qe){Wt(Qe)}function Po(Qe){if(Xe.value&&qe.value[ve.value]&&(!nn.value||!Mp(Xe.value))){const rt=[...qe.value],Mt=di(Qe,$e.value[be.value]);rt[be.value]=Mt,cn(rt)}}function Ps(Qe=!1){return Ce.value?[...De.value]:Xe.value?Qe||!Mp(Xe.value)?[...Xe.value]:[]:Qe?[...De.value]:[]}function Kc(Qe){const rt=Ps(),Mt=di(Qe,$e.value[be.value]);rt[be.value]=Mt,Un(rt),!nn.value&&Mp(rt)?dn(rt,!1):(Zr(rt),Mp(rt)?be.value=0:be.value=ve.value)}function Xi(Qe,rt){const Mt=rt==="start"?0:1,Xt=di($e.value[Mt],Qe),Gt=[...$e.value];Gt[Mt]=Xt,Lt(Gt);const un=Ps(!0);un[Mt]&&(un[Mt]=Xt,Zr(un,{emitSelect:!0}))}let ql;yi(()=>{clearTimeout(ql)});function ce(Qe){clearTimeout(ql),cn(Qe,{updateHeader:!0})}function se(){clearTimeout(ql),ql=setTimeout(()=>{Se(void 0),ot(void 0),wt()},100)}function te(Qe,rt){t("select-shortcut",rt),dn(Qe,!1)}function Z(){dn(qe.value,!1,!0)}function pe(Qe){Qe.stopPropagation(),dn(void 0),t("clear")}function xe(Qe){Wt(!0);const rt=Qe.target.value;if(!rt){ot(void 0);return}const Mt=nf(qe.value,X.value),Xt=Qn(Je.value)?[...Je.value]:Mt||[];if(Xt[be.value]=rt,ot(Xt),!HA(rt,X.value))return;const Gt=Es(rt,X.value);if(jt(Gt,be.value===0?"start":"end"))return;const un=Qn(qe.value)?[...qe.value]:[];un[be.value]=Gt,Zr(un,{updateHeader:!0})}function we(){B6e(qe.value)?dn(qe.value,!1):be.value=ve.value}const Le=F(()=>({format:X.value,...ya(p?.value||{},["defaultValue"]),visible:ut.value})),it=F(()=>({prev:n["icon-prev"],prevDouble:n["icon-prev-double"],next:n["icon-next"],nextDouble:n["icon-next-double"]})),et=qt({headerValue:Ft,headerOperations:an,headerIcons:it}),ht=qt({headerValue:Jt,headerOperations:mt,headerIcons:it}),Ee=F(()=>({...pf(e,["mode","showTime","shortcuts","shortcutsPosition","dayStartOfWeek","disabledDate","disabledTime","hideTrigger","abbreviation"]),prefixCls:oe,format:re.value,value:qe.value,showConfirmBtn:nn.value,confirmBtnDisabled:Ct.value,timePickerValue:$e.value,timePickerProps:Le.value,extra:n.extra,dateRender:n.cell,startHeaderProps:et,endHeaderProps:ht,footerValue:_t.value,disabled:ee.value,visible:ut.value,onCellClick:Kc,onCellMouseEnter:Po,onShortcutClick:te,onShortcutMouseEnter:M.value?ce:void 0,onShortcutMouseLeave:M.value?se:void 0,onConfirm:Z,onTimePickerSelect:Xi,startHeaderMode:yt.value,endHeaderMode:at.value,onStartHeaderLabelClick:Ue,onEndHeaderLabelClick:st,onStartHeaderSelect:kt,onEndHeaderSelect:zt}));return{prefixCls:oe,refInput:ye,computedFormat:X,computedPlaceholder:ne,panelVisible:ut,panelValue:qe,inputValue:Je,focusedIndex:be,triggerDisabled:le,mergedSize:U,mergedError:V,onPanelVisibleChange:gs,onInputClear:pe,onInputChange:xe,onInputPressEnter:we,rangePanelProps:Ee}}});function r$e(e,t,n,r,o,a){const s=Pe("IconCalendar"),l=Pe("DateRangeInput"),c=Pe("RangePickerPanel"),f=Pe("Trigger");return e.hideTrigger?(H(),Ye(c,Ui(Bt({key:1},{...e.$attrs,...e.rangePanelProps})),null,16)):(H(),Ye(f,Bt({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,Ui(ma(e.rangePanelProps)),null,16)]),default:de(()=>[ct(e.$slots,"default",{},()=>[O(l,Bt({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}),_o({"suffix-icon":de(()=>[ct(e.$slots,"suffix-icon",{},()=>[O(s)])]),separator:de(()=>[ct(e.$slots,"separator",{},()=>[ze(Be(e.separator||"-"),1)])]),_:2},[e.$slots.prefix?{name:"prefix",fn:de(()=>[ct(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 f4=Oe(n$e,[["render",r$e]]);const i$e=Object.assign(TD,{WeekPicker:l4,MonthPicker:u4,YearPicker:c4,QuarterPicker:d4,RangePicker:f4,install:(e,t)=>{Wn(e,t);const n=Hn(t);e.component(n+TD.name,TD),e.component(n+c4.name,c4),e.component(n+d4.name,d4),e.component(n+u4.name,u4),e.component(n+l4.name,l4),e.component(n+f4.name,f4)}}),qA=["xxl","xl","lg","md","sm","xs"],iE={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 im=[],o$e=-1,oE={};const YA={matchHandlers:{},dispatch(e,t){return oE=e,im.length<1?!1:(im.forEach(n=>{n.func(oE,t)}),!0)},subscribe(e){im.length===0&&this.register();const t=(++o$e).toString();return im.push({token:t,func:e}),e(oE,null),t},unsubscribe(e){im=im.filter(t=>t.token!==e),im.length===0&&this.unregister()},unregister(){Object.keys(iE).forEach(e=>{const t=iE[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(iE).forEach(e=>{const t=iE[e];if(!t)return;const n=({matches:o})=>{this.dispatch({...oE,[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 fne(e){return fr(e)}function Sh(e,t,n=!1){const r=fe({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),o=F(()=>{let s=t;if(fne(e.value))for(let l=0;l{a=YA.subscribe(s=>{fne(e.value)&&(r.value=s)})}),yi(()=>{a&&YA.unsubscribe(a)}),o}var AD=_e({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}=Qt(e),o=Ae("descriptions"),{mergedSize:a}=_a(r),s=Sh(n,3,!0),l=F(()=>{var A;return(A=fr(e.align)?e.align.label:e.align)!=null?A:"left"}),c=F(()=>{var A;return(A=fr(e.align)?e.align.value:e.align)!=null?A:"left"}),f=F(()=>({textAlign:l.value,...e.labelStyle})),h=F(()=>({textAlign:c.value,...e.valueStyle})),p=A=>{const R=[];let M=[],D=0;const N=()=>{if(M.length){const L=s.value-D;M[M.length-1].span+=L,R.push(M)}};return A.forEach(L=>{var B,U;const W=Math.min((U=Bi(L)?(B=L.props)==null?void 0:B.span:L.span)!=null?U:1,s.value);D+W>s.value&&(N(),M=[],D=0),M.push({data:L,span:W}),D+=W}),N(),R},m=F(()=>{var A;return p((A=e.data)!=null?A:[])}),g=(A,R)=>{var M,D,N,L,B;return Bi(A)?P3(A,A.children)&&((D=(M=A.children).label)==null?void 0:D.call(M))||((N=A.props)==null?void 0:N.label):(B=(L=t.label)==null?void 0:L.call(t,{label:A.label,index:R,data:A}))!=null?B:_n(A.label)?A.label():A.label},b=(A,R)=>{var M,D;return Bi(A)?A:(D=(M=t.value)==null?void 0:M.call(t,{value:A.value,index:R,data:A}))!=null?D:_n(A.value)?A.value():A.value},S=A=>O(Ut,null,[O("tr",{class:`${o}-row`},[A.map((R,M)=>O("td",{key:`label-${M}`,class:[`${o}-item-label`,`${o}-item-label-block`],style:f.value,colspan:R.span},[g(R.data,M)]))]),O("tr",{class:`${o}-row`},[A.map((R,M)=>O("td",{key:`value-${M}`,class:[`${o}-item-value`,`${o}-item-value-block`],style:h.value,colspan:R.span},[b(R.data,M)]))])]),k=(A,R)=>O("tr",{class:`${o}-row`,key:`tr-${R}`},[A.map(M=>O(Ut,null,[O("td",{class:[`${o}-item-label`,`${o}-item-label-block`],style:f.value},[g(M.data,R)]),O("td",{class:[`${o}-item-value`,`${o}-item-value-block`],style:h.value,colspan:M.span*2-1},[b(M.data,R)])]))]),C=(A,R)=>O("tr",{class:`${o}-row`,key:`inline-${R}`},[A.map((M,D)=>O("td",{key:`item-${D}`,class:`${o}-item`,colspan:M.span},[O("div",{class:[`${o}-item-label`,`${o}-item-label-inline`],style:f.value},[g(M.data,D)]),O("div",{class:[`${o}-item-value`,`${o}-item-value-inline`],style:h.value},[b(M.data,D)])]))]),x=(A,R)=>["inline-horizontal","inline-vertical"].includes(e.layout)?C(A,R):e.layout==="vertical"?S(A):k(A,R),E=F(()=>[o,`${o}-layout-${e.layout}`,`${o}-size-${a.value}`,{[`${o}-border`]:e.bordered},{[`${o}-table-layout-fixed`]:e.tableLayout==="fixed"}]),_=()=>{var A,R;const M=(R=(A=t.title)==null?void 0:A.call(t))!=null?R:e.title;return M?O("div",{class:`${o}-title`},[M]):null};return()=>{const A=t.default?p(df(t.default())):m.value;return O("div",{class:E.value},[_(),O("div",{class:`${o}-body`},[O("table",{class:`${o}-table`},[O("tbody",null,[A.map((R,M)=>x(R,M))])])])])}}});const s$e=_e({name:"DescriptionsItem",props:{span:{type:Number,default:1},label:String},setup(){return{prefixCls:Ae("descriptions")}}});function a$e(e,t,n,r,o,a){return ct(e.$slots,"default")}var h4=Oe(s$e,[["render",a$e]]);const l$e=Object.assign(AD,{DescriptionsItem:h4,install:(e,t)=>{Wn(e,t);const n=Hn(t);e.component(n+AD.name,AD),e.component(n+h4.name,h4)}});var ID=_e({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=Ae("divider"),r=F(()=>e.direction==="horizontal"),o=F(()=>{const a={};if(e.size&&(a[r.value?"border-bottom-width":"border-left-width"]=Ke(e.size)?`${e.size}px`:e.size),e.type&&(a[r.value?"border-bottom-style":"border-left-style"]=e.type),!kn(e.margin)){const s=Ke(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 u$e=Object.assign(ID,{install:(e,t)=>{Wn(e,t);const n=Hn(t);e.component(n+ID.name,ID)}}),yhe=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=y5e(a);(s>0||g5e(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}}}},c$e=["top","right","bottom","left"],d$e=_e({name:"Drawer",components:{ClientOnly:az,ArcoButton:Ho,IconHover:ko,IconClose:ms},inheritAttrs:!1,props:{visible:{type:Boolean,default:!1},defaultVisible:{type:Boolean,default:!1},placement:{type:String,default:"right",validator:e=>c$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}=Qt(e),r=Ae("drawer"),{t:o}=Lo(),a=fe(e.defaultVisible),s=F(()=>{var W;return(W=e.visible)!=null?W:a.value}),l=fe(!1),c=F(()=>e.okLoading||l.value),{teleportContainer:f,containerRef:h}=lz({popupContainer:n,visible:s}),p=fe(s.value);let m=!1;const g=W=>{e.escToClose&&W.key===No.ESC&&C()&&R(W)},b=()=>{e.escToClose&&!m&&(m=!0,Ti(document.documentElement,"keydown",g))},S=()=>{m&&(m=!1,Yi(document.documentElement,"keydown",g))},{zIndex:k,isLastDialog:C}=H1("dialog",{visible:s}),x=F(()=>h?.value===document.body);let E=0;const _=()=>{E++,l.value&&(l.value=!1),a.value=!1,t("update:visible",!1)},A=async W=>{const V=E,z=await new Promise(async Y=>{var oe;if(_n(e.onBeforeOk)){let ne=e.onBeforeOk((X=!0)=>Y(X));if((gg(ne)||!bl(ne))&&(l.value=!0),gg(ne))try{ne=(oe=await ne)!=null?oe:!0}catch(X){throw ne=!1,X}bl(ne)&&Y(ne)}else Y(!0)});V===E&&(z?(t("ok",W),_()):l.value&&(l.value=!1))},R=W=>{var V;let z=!0;_n(e.onBeforeCancel)&&(z=(V=e.onBeforeCancel())!=null?V:!1),z&&(t("cancel",W),_())},M=W=>{e.maskClosable&&R(W)},D=()=>{s.value&&t("open")},N=()=>{s.value||(p.value=!1,B(),t("close"))},{setOverflowHidden:L,resetOverflow:B}=yhe(h);gn(()=>{s.value&&(p.value=!0,L(),b())}),Fo(()=>{B(),S()}),Dt(s,W=>{a.value!==W&&(a.value=W),W?(t("beforeOpen"),p.value=!0,L(),b()):(t("beforeClose"),S())});const U=F(()=>{var W;const V={[e.placement]:0,...(W=e.drawerStyle)!=null?W:{}};return["right","left"].includes(e.placement)?V.width=Ke(e.width)?`${e.width}px`:e.width:V.height=Ke(e.height)?`${e.height}px`:e.height,V});return{prefixCls:r,style:U,t:o,mounted:p,computedVisible:s,mergedOkLoading:c,zIndex:k,handleOk:A,handleCancel:R,handleOpen:D,handleClose:N,handleMask:M,isFixed:x,teleportContainer:f}}});function f$e(e,t,n,r,o,a){const s=Pe("icon-close"),l=Pe("icon-hover"),c=Pe("arco-button"),f=Pe("client-only");return H(),Ye(f,null,{default:de(()=>[(H(),Ye($g,{to:e.teleportContainer,disabled:!e.renderToBody},[!e.unmountOnClose||e.computedVisible||e.mounted?Ai((H(),J("div",Bt({key:0,class:`${e.prefixCls}-container`,style:e.isFixed?{zIndex:e.zIndex}:{zIndex:"inherit",position:"absolute"}},e.$attrs),[O(Is,{name:"fade-drawer",appear:""},{default:de(()=>[e.mask?Ai((H(),J("div",{key:0,class:ae(`${e.prefixCls}-mask`),onClick:t[0]||(t[0]=(...h)=>e.handleMask&&e.handleMask(...h))},null,2)),[[ns,e.computedVisible]]):Re("v-if",!0)]),_:1}),O(Is,{name:`slide-${e.placement}-drawer`,appear:"",onAfterEnter:e.handleOpen,onAfterLeave:e.handleClose,persisted:""},{default:de(()=>[Ai(I("div",{class:ae(e.prefixCls),style:je(e.style)},[e.header?(H(),J("div",{key:0,class:ae(`${e.prefixCls}-header`)},[ct(e.$slots,"header",{},()=>[e.$slots.title||e.title?(H(),J("div",{key:0,class:ae(`${e.prefixCls}-title`)},[ct(e.$slots,"title",{},()=>[ze(Be(e.title),1)])],2)):Re("v-if",!0),e.closable?(H(),J("div",{key:1,tabindex:"-1",role:"button","aria-label":"Close",class:ae(`${e.prefixCls}-close-btn`),onClick:t[1]||(t[1]=(...h)=>e.handleCancel&&e.handleCancel(...h))},[O(l,null,{default:de(()=>[O(s)]),_:1})],2)):Re("v-if",!0)])],2)):Re("v-if",!0),I("div",{class:ae([`${e.prefixCls}-body`,e.bodyClass]),style:je(e.bodyStyle)},[ct(e.$slots,"default")],6),e.footer?(H(),J("div",{key:1,class:ae(`${e.prefixCls}-footer`)},[ct(e.$slots,"footer",{},()=>[e.hideCancel?Re("v-if",!0):(H(),Ye(c,Bt({key:0},e.cancelButtonProps,{onClick:e.handleCancel}),{default:de(()=>[ze(Be(e.cancelText||e.t("drawer.cancelText")),1)]),_:1},16,["onClick"])),O(c,Bt({type:"primary",loading:e.mergedOkLoading},e.okButtonProps,{onClick:e.handleOk}),{default:de(()=>[ze(Be(e.okText||e.t("drawer.okText")),1)]),_:1},16,["loading","onClick"])])],2)):Re("v-if",!0)],6),[[ns,e.computedVisible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],16)),[[ns,e.computedVisible||e.mounted]]):Re("v-if",!0)],8,["to","disabled"]))]),_:3})}var p4=Oe(d$e,[["render",f$e]]);const hne=(e,t)=>{let n=R3("drawer");const r=()=>{f.component&&(f.component.props.visible=!1),_n(e.onOk)&&e.onOk()},o=()=>{f.component&&(f.component.props.visible=!1),_n(e.onCancel)&&e.onCancel()},a=async()=>{await yn(),n&&(jc(null,n),document.body.removeChild(n)),n=null,_n(e.onClose)&&e.onClose()},s=()=>{f.component&&(f.component.props.visible=!1)},l=h=>{f.component&&Object.entries(h).forEach(([p,m])=>{f.component.props[p]=m})},f=O(p4,{...{visible:!0,renderToBody:!1,unmountOnClose:!0,onOk:r,onCancel:o,onClose:a},...ya(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:Bl(e.content),header:typeof e.header!="boolean"?Bl(e.header):void 0,title:Bl(e.title),footer:typeof e.footer!="boolean"?Bl(e.footer):void 0});return(t??lj._context)&&(f.appContext=t??lj._context),jc(f,n),document.body.appendChild(n),{close:s,update:l}},lj=Object.assign(p4,{open:hne,install:(e,t)=>{Wn(e,t);const n=Hn(t);e.component(n+p4.name,p4);const r={open:(o,a=e._context)=>hne(o,a)};e.config.globalProperties.$drawer=r},_context:null});function bhe(e){return e===Object(e)&&Object.keys(e).length!==0}function h$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 p$e(e){return e===!1?{block:"end",inline:"nearest"}:bhe(e)?e:{block:"start",inline:"nearest"}}function _he(e,t){var n=e.isConnected||e.ownerDocument.documentElement.contains(e);if(bhe(t)&&typeof t.behavior=="function")return t.behavior(n?QF(e,t):[]);if(n){var r=p$e(t);return h$e(QF(e,r),r.behavior)}}const pne=["success","warning","error","validating"],v$e=e=>{let t="";for(const n of Object.keys(e)){const r=e[n];r&&(!t||pne.indexOf(r)>pne.indexOf(t))&&(t=e[n])}return t},m$e=e=>{const t=[];for(const n of Object.keys(e)){const r=e[n];r&&t.push(r)}return t},She=(e,t)=>{const n=t.replace(/[[.]/g,"_").replace(/\]/g,"");return e?`${e}-${n}`:`${n}`},g$e=_e({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=Ae("form"),r=fe(),{id:o,model:a,layout:s,disabled:l,labelAlign:c,labelColProps:f,wrapperColProps:h,labelColStyle:p,wrapperColStyle:m,size:g,rules:b}=Qt(e),{mergedSize:S}=_a(g),k=F(()=>e.layout==="horizontal"&&e.autoLabelWidth),C=[],x=[],E=qt({}),_=F(()=>Math.max(...Object.values(E))),A=ne=>{ne&&ne.field&&C.push(ne)},R=ne=>{ne&&ne.field&&C.splice(C.indexOf(ne),1)},M=ne=>{C.forEach(X=>{ne[X.field]&&X.setField(ne[X.field])})},D=(ne,X)=>{X&&E[X]!==ne&&(E[X]=ne)},N=ne=>{ne&&delete E[ne]},L=ne=>{const X=ne?[].concat(ne):[];C.forEach(K=>{(X.length===0||X.includes(K.field))&&K.resetField()})},B=ne=>{const X=ne?[].concat(ne):[];C.forEach(K=>{(X.length===0||X.includes(K.field))&&K.clearValidate()})},U=(ne,X)=>{const re=(r.value||document.body).querySelector(`#${She(e.id,ne)}`);re&&_he(re,{behavior:"smooth",block:"nearest",scrollMode:"if-needed",...X})},W=ne=>{const X=bl(e.scrollToFirstError)?void 0:e.scrollToFirstError;U(ne,X)},V=ne=>{const X=[];return C.forEach(K=>{X.push(K.validate())}),Promise.all(X).then(K=>{const re={};let ee=!1;return K.forEach(le=>{le&&(ee=!0,re[le.field]=le)}),ee&&e.scrollToFirstError&&W(Object.keys(re)[0]),_n(ne)&&ne(ee?re:void 0),ee?re:void 0})},z=(ne,X)=>{const K=[];for(const re of C)(Qn(ne)&&ne.includes(re.field)||ne===re.field)&&K.push(re.validate());return Promise.all(K).then(re=>{const ee={};let le=!1;return re.forEach(Q=>{Q&&(le=!0,ee[Q.field]=Q)}),le&&e.scrollToFirstError&&W(Object.keys(ee)[0]),_n(X)&&X(le?ee:void 0),le?ee:void 0})},Y=ne=>{const X=[];C.forEach(K=>{X.push(K.validate())}),Promise.all(X).then(K=>{const re={};let ee=!1;K.forEach(le=>{le&&(ee=!0,re[le.field]=le)}),ee?(e.scrollToFirstError&&W(Object.keys(re)[0]),t("submitFailed",{values:a.value,errors:re},ne)):t("submitSuccess",a.value,ne),t("submit",{values:a.value,errors:ee?re:void 0},ne)})};return Xr(sz,qt({id:o,layout:s,disabled:l,labelAlign:c,labelColProps:f,wrapperColProps:h,labelColStyle:p,wrapperColStyle:m,model:a,size:S,rules:b,fields:C,touchedFields:x,addField:A,removeField:R,validateField:z,setLabelWidth:D,removeLabelWidth:N,maxLabelWidth:_,autoLabelWidth:k})),{cls:F(()=>[n,`${n}-layout-${e.layout}`,`${n}-size-${S.value}`,{[`${n}-auto-label-width`]:e.autoLabelWidth}]),formRef:r,handleSubmit:Y,innerValidate:V,innerValidateField:z,innerResetFields:L,innerClearValidate:B,innerSetFields:M,innerScrollToField:U}},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)}}}),y$e=["id"];function b$e(e,t,n,r,o,a){return H(),J("form",{id:e.id,ref:"formRef",class:ae(e.cls),onSubmit:t[0]||(t[0]=rs((...s)=>e.handleSubmit&&e.handleSubmit(...s),["prevent"]))},[ct(e.$slots,"default")],42,y$e)}var LD=Oe(g$e,[["render",b$e]]),K1=Object.prototype.toString;function G3(e){return K1.call(e)==="[object Array]"}function kh(e){return K1.call(e)==="[object Object]"}function uj(e){return K1.call(e)==="[object String]"}function _$e(e){return K1.call(e)==="[object Number]"&&e===e}function S$e(e){return K1.call(e)==="[object Boolean]"}function cj(e){return K1.call(e)==="[object Function]"}function k$e(e){return kh(e)&&Object.keys(e).length===0}function Pm(e){return e==null||e===""}function khe(e){return G3(e)&&!e.length}var Tz=function(e,t){if(typeof e!="object"||typeof t!="object")return e===t;if(cj(e)&&cj(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=Tz(e[n],t[n]);if(!r)return!1}return!0},Az=function(e,t){var n=Object.assign({},e);return Object.keys(t||{}).forEach(function(r){var o=n[r],a=t?.[r];n[r]=kh(o)?Object.assign(Object.assign({},o),a):a||o}),n},w$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})(Ad),E$e=(function(e){function t(r,o){e.call(this,r,Object.assign(Object.assign({},o),{type:"number"})),this.validate(o&&o.strict?_$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 Pm(this.obj)?this:this.validate(this.obj>=o,this.getValidateMsg("number.min",{min:o}))},t.prototype.max=function(o){return Pm(this.obj)?this:this.validate(this.obj<=o,this.getValidateMsg("number.max",{max:o}))},t.prototype.equal=function(o){return Pm(this.obj)?this:this.validate(this.obj===o,this.getValidateMsg("number.equal",{equal:o}))},t.prototype.range=function(o,a){return Pm(this.obj)?this:this.validate(this.obj>=o&&this.obj<=a,this.getValidateMsg("number.range",{min:o,max:a}))},n.positive.get=function(){return Pm(this.obj)?this:this.validate(this.obj>0,this.getValidateMsg("number.positive"))},n.negative.get=function(){return Pm(this.obj)?this:this.validate(this.obj<0,this.getValidateMsg("number.negative"))},Object.defineProperties(t.prototype,n),t})(Ad),T$e=(function(e){function t(r,o){e.call(this,r,Object.assign(Object.assign({},o),{type:"array"})),this.validate(o&&o.strict?G3(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(Tz(this.obj,o),this.getValidateMsg("array.deepEqual",{value:this.obj,deepEqual:o})):this},n.empty.get=function(){return this.validate(khe(this.obj),this.getValidateMsg("array.empty",{value:this.obj}))},Object.defineProperties(t.prototype,n),t})(Ad),A$e=(function(e){function t(r,o){e.call(this,r,Object.assign(Object.assign({},o),{type:"object"})),this.validate(o&&o.strict?kh(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(Tz(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(k$e(this.obj),this.getValidateMsg("object.empty"))},Object.defineProperties(t.prototype,n),t})(Ad),I$e=(function(e){function t(r,o){e.call(this,r,Object.assign(Object.assign({},o),{type:"boolean"})),this.validate(o&&o.strict?S$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})(Ad),L$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,}))$/,P$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"),R$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}$/,M$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||L$e.test(this.obj),this.getValidateMsg("type.email"))},n.url.get=function(){return this.type="url",this.validate(this.obj===void 0||P$e.test(this.obj),this.getValidateMsg("type.url"))},n.ip.get=function(){return this.type="ip",this.validate(this.obj===void 0||R$e.test(this.obj),this.getValidateMsg("type.ip"))},Object.defineProperties(t.prototype,n),t})(Ad),D$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})(Ad),XA=function(e,t){return new whe(e,Object.assign({field:"value"},t))};XA.globalConfig={};XA.setGlobalConfig=function(e){XA.globalConfig=e||{}};var whe=function(t,n){var r=XA.globalConfig,o=Object.assign(Object.assign(Object.assign({},r),n),{validateMessages:Az(r.validateMessages,n.validateMessages)});this.string=new x$e(t,o),this.number=new E$e(t,o),this.array=new T$e(t,o),this.object=new A$e(t,o),this.boolean=new I$e(t,o),this.type=new M$e(t,o),this.custom=new D$e(t,o)},Iz=function(t,n){n===void 0&&(n={}),this.schema=t,this.options=n};Iz.prototype.messages=function(t){this.options=Object.assign(Object.assign({},this.options),{validateMessages:Az(this.options.validateMessages,t)})};Iz.prototype.validate=function(t,n){var r=this;if(!kh(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(G3(r.schema[l]))for(var c=function(p){var m=r.schema[l][p],g=m.type,b=m.message;if(!g&&!m.validator)throw"You must specify a type to field "+l+"!";var S=Object.assign(Object.assign({},r.options),{message:b,field:l});"ignoreEmptyString"in m&&(S.ignoreEmptyString=m.ignoreEmptyString),"strict"in m&&(S.strict=m.strict);var k=new whe(t[l],S),C=k.type[g]||null;if(!C)if(m.validator){C=k.custom.validate(m.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(m).forEach(function(x){m.required&&(C=C.isRequired),x!=="message"&&C[x]&&m[x]&&typeof C[x]=="object"&&(C=C[x]),C[x]&&m[x]!==void 0&&typeof C[x]=="function"&&(C=C[x](m[x]))}),C.collect(function(x){x&&s(l,x)}),a)return"break"},f=0;f0?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 Che=Symbol("RowContextInjectionKey"),xhe=Symbol("GridContextInjectionKey"),Ehe=Symbol("GridDataCollectorInjectionKey"),O$e=_e({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}=Qt(e),s=Ae("row"),l=F(()=>({[`${s}`]:!o.value,[`${s}-nowrap`]:!a.value,[`${s}-align-${n.value}`]:n.value,[`${s}-justify-${r.value}`]:r.value})),c=F(()=>Array.isArray(t.value)?t.value[0]:t.value),f=F(()=>Array.isArray(t.value)?t.value[1]:0),h=Sh(c,0),p=Sh(f,0),m=F(()=>{const b={};if((h.value||p.value)&&!o.value){const S=-h.value/2,k=-p.value/2;S&&(b.marginLeft=`${S}px`,b.marginRight=`${S}px`),k&&(b.marginTop=`${k}px`,b.marginBottom=`${k}px`)}return b}),g=F(()=>[h.value,p.value]);return Xr(Che,qt({gutter:g,div:o})),{classNames:l,styles:m}}});function $$e(e,t,n,r,o,a){return H(),J("div",{class:ae(e.classNames),style:je(e.styles)},[ct(e.$slots,"default")],6)}var US=Oe(O$e,[["render",$$e]]);function N$e(e){return F(()=>{const{val:n,key:r,xs:o,sm:a,md:s,lg:l,xl:c,xxl:f}=e.value;if(!o&&!a&&!s&&!l&&!c&&!f)return n;const h={};return qA.forEach(p=>{const m=e.value[p];Ke(m)?h[p]=m:fr(m)&&Ke(m[r])&&(h[p]=m[r])}),h})}function B$e(e){if(is(e)&&(["initial","auto","none"].includes(e)||/^\d+$/.test(e))||Ke(e))return e;if(is(e)&&/^\d+(px|em|rem|%)$/.test(e))return`0 0 ${e}`}const F$e=_e({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=Ae("col"),n=In(Che,{}),r=F(()=>B$e(e.flex)),o=F(()=>{const{div:p}=n,{span:m,offset:g,order:b,xs:S,sm:k,md:C,lg:x,xl:E,xxl:_}=e,A={[`${t}`]:!p,[`${t}-order-${b}`]:b,[`${t}-${m}`]:!p&&!S&&!k&&!C&&!x&&!E&&!_,[`${t}-offset-${g}`]:g&&g>0},R={xs:S,sm:k,md:C,lg:x,xl:E,xxl:_};return Object.keys(R).forEach(M=>{const D=R[M];D&&Ke(D)?A[`${t}-${M}-${D}`]=!0:D&&fr(D)&&(A[`${t}-${M}-${D.span}`]=D.span,A[`${t}-${M}-offset-${D.offset}`]=D.offset,A[`${t}-${M}-order-${D.order}`]=D.order)}),A}),a=F(()=>r.value?t:o.value),s=F(()=>{const{gutter:p,div:m}=n,g={};if(Array.isArray(p)&&!m){const b=p[0]&&p[0]/2||0,S=p[1]&&p[1]/2||0;b&&(g.paddingLeft=`${b}px`,g.paddingRight=`${b}px`),S&&(g.paddingTop=`${S}px`,g.paddingBottom=`${S}px`)}return g}),l=F(()=>r.value?{flex:r.value}:{}),c=F(()=>pf(e,qA)),f=N$e(F(()=>({val:e.span,key:"span",...c.value}))),h=Sh(f,24,!0);return{visible:F(()=>!!h.value),classNames:a,styles:F(()=>({...s.value,...l.value}))}}});function j$e(e,t,n,r,o,a){return e.visible?(H(),J("div",{key:0,class:ae(e.classNames),style:je(e.styles)},[ct(e.$slots,"default")],6)):Re("v-if",!0)}var VS=Oe(F$e,[["render",j$e]]);function U$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 V$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(f))}else a=r.map((l,c)=>c);return{overflow:o,displayIndexList:a}}const z$e=_e({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}=Qt(e),s=Sh(t,24),l=Sh(r,0),c=Sh(n,0),f=Ae("grid"),h=F(()=>[f]),p=F(()=>[{gap:`${c.value}px ${l.value}px`,"grid-template-columns":`repeat(${s.value}, minmax(0px, 1fr))`}]),m=qt(new Map),g=F(()=>{const S=[];for(const[k,C]of m.entries())S[k]=C;return S}),b=qt({overflow:!1,displayIndexList:[],cols:s.value,colGap:l.value});return As(()=>{b.cols=s.value,b.colGap=l.value}),As(()=>{const S=V$e({cols:s.value,collapsed:a.value,collapsedRows:o.value,itemDataList:g.value});b.overflow=S.overflow,b.displayIndexList=S.displayIndexList}),Xr(xhe,b),Xr(Ehe,{collectItemData(S,k){m.set(S,k)},removeItemData(S){m.delete(S)}}),{classNames:h,style:p}}});function H$e(e,t,n,r,o,a){return H(),J("div",{class:ae(e.classNames),style:je(e.style)},[ct(e.$slots,"default")],6)}var PD=Oe(z$e,[["render",H$e]]);const W$e=_e({name:"GridItem",props:{span:{type:[Number,Object],default:1},offset:{type:[Number,Object],default:0},suffix:{type:Boolean,default:!1}},setup(e){const t=Ae("grid-item"),n=fe(),{computedIndex:r}=fz({itemRef:n,selector:`.${t}`}),o=In(xhe,{overflow:!1,displayIndexList:[],cols:24,colGap:0}),a=In(Ehe),s=F(()=>{var k;return(k=o?.displayIndexList)==null?void 0:k.includes(r.value)}),{span:l,offset:c}=Qt(e),f=Sh(l,1),h=Sh(c,0),p=F(()=>U$e(o.cols,{...e,span:f.value,offset:h.value})),m=F(()=>[t]),g=F(()=>{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)`}:{}}),b=F(()=>{const{suffix:k,span:C}=p.value,{cols:x}=o;return k?`${x-C+1}`:`span ${C}`}),S=F(()=>{const{span:k}=p.value;return n.value?[{"grid-column":`${b.value} / span ${k}`},g.value,!s.value||k===0?{display:"none"}:{}]:[]});return As(()=>{r.value!==-1&&a?.collectItemData(r.value,p.value)}),yi(()=>{r.value!==-1&&a?.removeItemData(r.value)}),{classNames:m,style:S,domRef:n,overflow:F(()=>o.overflow)}}});function G$e(e,t,n,r,o,a){return H(),J("div",{ref:"domRef",class:ae(e.classNames),style:je(e.style)},[ct(e.$slots,"default",{overflow:e.overflow})],6)}var v4=Oe(W$e,[["render",G$e]]);const hS=Object.assign(PD,{Row:US,Col:VS,Item:v4,install:(e,t)=>{Wn(e,t);const n=Hn(t);e.component(n+US.name,US),e.component(n+VS.name,VS),e.component(n+PD.name,PD),e.component(n+v4.name,v4)}}),K$e=_e({name:"Tooltip",components:{Trigger:la},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=Ae("tooltip"),r=fe(e.defaultPopupVisible),o=F(()=>{var h;return(h=e.popupVisible)!=null?h:r.value}),a=h=>{r.value=h,t("update:popupVisible",h),t("popupVisibleChange",h)},s=F(()=>[`${n}-content`,e.contentClass,{[`${n}-mini`]:e.mini}]),l=F(()=>{if(e.backgroundColor||e.contentStyle)return{backgroundColor:e.backgroundColor,...e.contentStyle}}),c=F(()=>[`${n}-popup-arrow`,e.arrowClass]),f=F(()=>{if(e.backgroundColor||e.arrowStyle)return{backgroundColor:e.backgroundColor,...e.arrowStyle}});return{prefixCls:n,computedPopupVisible:o,contentCls:s,computedContentStyle:l,arrowCls:c,computedArrowStyle:f,handlePopupVisibleChange:a}}});function q$e(e,t,n,r,o,a){const s=Pe("Trigger");return H(),Ye(s,{class:ae(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(()=>[ct(e.$slots,"content",{},()=>[ze(Be(e.content),1)])]),default:de(()=>[ct(e.$slots,"default")]),_:3},8,["class","position","popup-visible","content-class","content-style","arrow-class","arrow-style","popup-container","onPopupVisibleChange"])}var RD=Oe(K$e,[["render",q$e]]);const Uc=Object.assign(RD,{install:(e,t)=>{Wn(e,t);const n=Hn(t);e.component(n+RD.name,RD)}}),Y$e=_e({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=Ae("icon"),r=F(()=>[n,`${n}-question-circle`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),X$e=["stroke-width","stroke-linecap","stroke-linejoin"];function Z$e(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,X$e)}var MD=Oe(Y$e,[["render",Z$e]]);const The=Object.assign(MD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+MD.name,MD)}}),Q$e=_e({name:"FormItemLabel",components:{ResizeObserver:fv,Tooltip:Uc,IconQuestionCircle:The},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=Ae("form-item-label"),t=In(sz,void 0),n=fo(),r=fe(),o=()=>{r.value&&Ke(r.value.offsetWidth)&&t?.setLabelWidth(r.value.offsetWidth,n?.uid)};return gn(()=>{r.value&&Ke(r.value.offsetWidth)&&t?.setLabelWidth(r.value.offsetWidth,n?.uid)}),Fo(()=>{t?.removeLabelWidth(n?.uid)}),{prefixCls:e,labelRef:r,handleResize:o}}});function J$e(e,t,n,r,o,a){const s=Pe("icon-question-circle"),l=Pe("Tooltip"),c=Pe("ResizeObserver");return H(),Ye(c,{onResize:e.handleResize},{default:de(()=>[(H(),Ye(Fa(e.component),Bt({ref:"labelRef",class:e.prefixCls},e.attrs),{default:de(()=>[e.required&&e.asteriskPosition==="start"?(H(),J("strong",{key:0,class:ae(`${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)):Re("v-if",!0),ct(e.$slots,"default"),e.tooltip?(H(),Ye(l,{key:1,content:e.tooltip},{default:de(()=>[O(s,{class:ae(`${e.prefixCls}-tooltip`)},null,8,["class"])]),_:1},8,["content"])):Re("v-if",!0),e.required&&e.asteriskPosition==="end"?(H(),J("strong",{key:2,class:ae(`${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)):Re("v-if",!0),ze(" "+Be(e.showColon?":":""),1)]),_:3},16,["class"]))]),_:3},8,["onResize"])}var eNe=Oe(Q$e,[["render",J$e]]);const tNe=_e({name:"FormItemMessage",props:{error:{type:Array,default:()=>[]},help:String},setup(){return{prefixCls:Ae("form-item-message")}}});function nNe(e,t,n,r,o,a){return e.error.length>0?(H(!0),J(Ut,{key:0},mn(e.error,s=>(H(),Ye(Is,{key:s,name:"form-blink",appear:""},{default:de(()=>[I("div",{role:"alert",class:ae([e.prefixCls])},Be(s),3)]),_:2},1024))),128)):e.help||e.$slots.help?(H(),Ye(Is,{key:1,name:"form-blink",appear:""},{default:de(()=>[I("div",{class:ae([e.prefixCls,`${e.prefixCls}-help`])},[ct(e.$slots,"help",{},()=>[ze(Be(e.help),1)])],2)]),_:3})):Re("v-if",!0)}var rNe=Oe(tNe,[["render",nNe]]);const iNe=_e({name:"FormItem",components:{ArcoRow:US,ArcoCol:VS,FormItemLabel:eNe,FormItemMessage:rNe},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=Ae("form-item"),{field:n}=Qt(e),r=In(sz,{}),{autoLabelWidth:o,layout:a}=Qt(r),{i18nMessage:s}=Lo(),l=F(()=>{var K;const re={...(K=e.labelColProps)!=null?K:r.labelColProps};return e.labelColFlex?re.flex=e.labelColFlex:r.autoLabelWidth&&(re.flex=`${r.maxLabelWidth}px`),re}),c=F(()=>{var K;const re={...(K=e.wrapperColProps)!=null?K:r.wrapperColProps};return n.value&&(re.id=She(r.id,n.value)),(e.labelColFlex||r.autoLabelWidth)&&(re.flex="auto"),re}),f=F(()=>{var K;return(K=e.labelColStyle)!=null?K:r.labelColStyle}),h=F(()=>{var K;return(K=e.wrapperColStyle)!=null?K:r.wrapperColStyle}),p=rg(r.model,e.field),m=qt({}),g=qt({}),b=F(()=>v$e(m)),S=F(()=>m$e(g)),k=fe(!1),C=F(()=>rg(r.model,e.field)),x=F(()=>{var K;return!!((K=e.disabled)!=null?K:r?.disabled)}),E=F(()=>{var K;return(K=e.validateStatus)!=null?K:b.value}),_=F(()=>E.value==="error"),A=F(()=>{var K,re,ee;const le=[].concat((ee=(re=e.rules)!=null?re:(K=r?.rules)==null?void 0:K[e.field])!=null?ee:[]),Q=le.some(ye=>ye.required);return e.required&&!Q?[{required:!0}].concat(le):le}),R=F(()=>A.value.some(K=>K.required)),M=e.noStyle?In(JF,void 0):void 0,D=(K,{status:re,message:ee})=>{m[K]=re,g[K]=ee,e.noStyle&&M?.updateValidateState(K,{status:re,message:ee})},N=F(()=>e.feedback&&E.value?E.value:void 0),L=()=>{var K;if(k.value)return Promise.resolve();const re=A.value;if(!n.value||re.length===0)return b.value&&W(),Promise.resolve();const ee=n.value,le=C.value;D(ee,{status:"",message:""});const Q=new Iz({[ee]:re.map(({...ye})=>(!ye.type&&!ye.validator&&(ye.type="string"),ye))},{ignoreEmptyString:!0,validateMessages:(K=s.value.form)==null?void 0:K.validateMessages});return new Promise(ye=>{Q.validate({[ee]:le},be=>{var ve;const Ce=!!be?.[ee];D(ee,{status:Ce?"error":"",message:(ve=be?.[ee].message)!=null?ve:""});const De=Ce?{label:e.label,field:n.value,value:be[ee].value,type:be[ee].type,isRequiredError:!!be[ee].requiredError,message:be[ee].message}:void 0;ye(De)})})},B=F(()=>[].concat(e.validateTrigger)),U=F(()=>B.value.reduce((K,re)=>{switch(re){case"change":return K.onChange=()=>{L()},K;case"input":return K.onInput=()=>{yn(()=>{L()})},K;case"focus":return K.onFocus=()=>{L()},K;case"blur":return K.onBlur=()=>{L()},K;default:return K}},{}));Xr(JF,qt({eventHandlers:U,size:r&&Cu(r,"size"),disabled:x,error:_,feedback:N,updateValidateState:D}));const W=()=>{n.value&&D(n.value,{status:"",message:""})},Y=qt({field:n,disabled:x,error:_,validate:L,clearValidate:W,resetField:()=>{W(),k.value=!0,r?.model&&n.value&&KA(r.model,n.value,p),yn(()=>{k.value=!1})},setField:K=>{var re,ee;n.value&&(k.value=!0,"value"in K&&r?.model&&n.value&&KA(r.model,n.value,K.value),(K.status||K.message)&&D(n.value,{status:(re=K.status)!=null?re:"",message:(ee=K.message)!=null?ee:""}),yn(()=>{k.value=!1}))}});gn(()=>{var K;Y.field&&((K=r.addField)==null||K.call(r,Y))}),Fo(()=>{var K;Y.field&&((K=r.removeField)==null||K.call(r,Y))});const oe=F(()=>[t,`${t}-layout-${r.layout}`,{[`${t}-error`]:_.value,[`${t}-status-${E.value}`]:!!E.value},e.rowClass]),ne=F(()=>[`${t}-label-col`,{[`${t}-label-col-left`]:r.labelAlign==="left",[`${t}-label-col-flex`]:r.autoLabelWidth||e.labelColFlex}]),X=F(()=>[`${t}-wrapper-col`,{[`${t}-wrapper-col-flex`]:!c.value}]);return{prefixCls:t,cls:oe,isRequired:R,isError:_,finalMessage:S,mergedLabelCol:l,mergedWrapperCol:c,labelColCls:ne,autoLabelWidth:o,layout:a,mergedLabelStyle:f,wrapperColCls:X,mergedWrapperStyle:h}}});function oNe(e,t,n,r,o,a){var s;const l=Pe("FormItemLabel"),c=Pe("ArcoCol"),f=Pe("FormItemMessage"),h=Pe("ArcoRow");return e.noStyle?ct(e.$slots,"default",{key:0}):(H(),Ye(h,Bt({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?Re("v-if",!0):(H(),Ye(c,Bt({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?ct(e.$slots,"label",{key:0},()=>[ze(Be(e.label),1)]):Re("v-if",!0)]),_:3},8,["required","show-colon","asterisk-position","component","attrs","tooltip"])]),_:3},16,["class","style"])),O(c,Bt({class:e.wrapperColCls,style:e.mergedWrapperStyle},e.mergedWrapperCol),{default:de(()=>[I("div",{class:ae(`${e.prefixCls}-content-wrapper`)},[I("div",{class:ae([`${e.prefixCls}-content`,{[`${e.prefixCls}-content-flex`]:e.contentFlex},e.contentClass])},[ct(e.$slots,"default")],2)],2),e.isError||e.$slots.help||e.help?(H(),Ye(f,{key:0,error:e.finalMessage,help:e.help},_o({_:2},[e.$slots.help?{name:"help",fn:de(()=>[ct(e.$slots,"help")]),key:"0"}:void 0]),1032,["error","help"])):Re("v-if",!0),e.$slots.extra||e.extra?(H(),J("div",{key:1,class:ae(`${e.prefixCls}-extra`)},[ct(e.$slots,"extra",{},()=>[ze(Be(e.extra),1)])],2)):Re("v-if",!0)]),_:3},16,["class","style"])]),_:3},16,["class","wrap","div"]))}var m4=Oe(iNe,[["render",oNe]]);const sNe=Object.assign(LD,{Item:m4,install:(e,t)=>{Wn(e,t);const n=Hn(t);e.component(n+LD.name,LD),e.component(n+m4.name,m4)}}),aNe=_e({name:"Icon",props:{type:String,size:[Number,String],rotate:Number,spin:Boolean},setup(e){const t=Ae("icon"),n=F(()=>{const o={};return e.size&&(o.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(o.transform=`rotate(${e.rotate}deg)`),o});return{cls:F(()=>[t,{[`${t}-loading`]:e.spin},e.type]),innerStyle:n}}});function lNe(e,t,n,r,o,a){return H(),J("svg",{class:ae(e.cls),style:je(e.innerStyle),fill:"currentColor"},[ct(e.$slots,"default")],6)}var g4=Oe(aNe,[["render",lNe]]);function uNe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Bi(e)}const vne=[],cNe=e=>{const{src:t,extraProps:n={}}=e;if(!Pk&&t?.length&&!vne.includes(t)){const r=document.createElement("script");r.setAttribute("src",t),r.setAttribute("data-namespace",t),vne.push(t),document.body.appendChild(r)}return _e({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(g4,Bt(r,n),uNe(s)?s:{default:()=>[s]})}}})},Ahe=Object.assign(g4,{addFromIconFontCn:cNe,install:(e,t)=>{Wn(e,t);const n=Hn(t);e.component(n+g4.name,g4)}}),dNe=_e({name:"ImageFooter",props:{title:{type:String},description:{type:String}},setup(){return{prefixCls:Ae("image-footer")}}}),fNe=["title"],hNe=["title"];function pNe(e,t,n,r,o,a){return H(),J("div",{class:ae(e.prefixCls)},[e.title||e.description?(H(),J("div",{key:0,class:ae(`${e.prefixCls}-caption`)},[e.title?(H(),J("div",{key:0,class:ae(`${e.prefixCls}-caption-title`),title:e.title},Be(e.title),11,fNe)):Re("v-if",!0),e.description?(H(),J("div",{key:1,class:ae(`${e.prefixCls}-caption-description`),title:e.description},Be(e.description),11,hNe)):Re("v-if",!0)],2)):Re("v-if",!0),e.$slots.extra?(H(),J("div",{key:1,class:ae(`${e.prefixCls}-extra`)},[ct(e.$slots,"extra")],2)):Re("v-if",!0)],2)}var vNe=Oe(dNe,[["render",pNe]]);const mNe=_e({name:"ImagePreviewArrow",components:{IconLeft:kl,IconRight:Ni},props:{onPrev:{type:Function},onNext:{type:Function}},setup(){return{prefixCls:Ae("image-preview-arrow")}}});function gNe(e,t,n,r,o,a){const s=Pe("icon-left"),l=Pe("icon-right");return H(),J("div",{class:ae(e.prefixCls)},[I("div",{class:ae([`${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:ae([`${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 yNe=Oe(mNe,[["render",gNe]]);function bNe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Bi(e)}var ZA=_e({name:"ImagePreviewAction",components:{Tooltip:Uc},inheritAttrs:!1,props:{name:{type:String},disabled:{type:Boolean}},setup(e,{slots:t,attrs:n}){const r=Ae("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",Bt({class:[`${r}`,{[`${r}-disabled`]:s}],onMousedown:f=>{f.preventDefault()}},n),[O("span",{class:`${r}-content`},[l])]);return a?O(Uc,{class:`${r}-tooltip`,content:a},bNe(c)?c:{default:()=>[c]}):c}}}),_Ne=_e({name:"ImagePreviewToolbar",components:{RenderFunction:Vh,PreviewAction:ZA},props:{actions:{type:Array,default:()=>[]},actionsLayout:{type:Array,default:()=>[]}},setup(e){const{actions:t,actionsLayout:n}=Qt(e),r=Ae("image-preview-toolbar"),o=F(()=>{const a=new Set(n.value),s=c=>a.has(c.key);return t.value.filter(s).sort((c,f)=>{const h=n.value.indexOf(c.key),p=n.value.indexOf(f.key);return h>p?1:-1})});return{prefixCls:r,resultActions:o}}});function SNe(e,t,n,r,o,a){const s=Pe("RenderFunction"),l=Pe("PreviewAction");return H(),J("div",{class:ae(e.prefixCls)},[(H(!0),J(Ut,null,mn(e.resultActions,c=>(H(),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)),ct(e.$slots,"default")],2)}var kNe=Oe(_Ne,[["render",SNe]]);function Ihe(e){const t=fe("beforeLoad"),n=F(()=>t.value==="beforeLoad"),r=F(()=>t.value==="loading"),o=F(()=>t.value==="error"),a=F(()=>t.value==="loaded");return{status:t,isBeforeLoad:n,isLoading:r,isError:o,isLoaded:a,setLoadStatus:s=>{t.value=s}}}function wNe(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 b=t.value.getBoundingClientRect(),S=n.value.getBoundingClientRect(),[k,C]=wNe(b,S,o.value[0],o.value[1],r.value);(k!==o.value[0]||C!==o.value[1])&&(o.value=[k,C])},h=b=>{b.preventDefault&&b.preventDefault();const S=c[0]+(b.pageX-s)/r.value,k=c[1]+(b.pageY-l)/r.value;o.value=[S,k]},p=b=>{b.preventDefault&&b.preventDefault(),a.value=!1,f(),g()},m=b=>{b.target===b.currentTarget&&(b.preventDefault&&b.preventDefault(),a.value=!0,s=b.pageX,l=b.pageY,c=[...o.value],Ti(window,"mousemove",h,!1),Ti(window,"mouseup",p,!1))};function g(){Yi(window,"mousemove",h,!1),Yi(window,"mouseup",p,!1)}return As(b=>{n.value&&Ti(n.value,"mousedown",m),b(()=>{n.value&&Yi(n.value,"mousedown",m),g()})}),Dt([r],()=>{yn(()=>f())}),{translate:o,moving:a,resetTranslate(){o.value=[0,0]}}}const xNe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-zoom-out`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),ENe=["stroke-width","stroke-linecap","stroke-linejoin"];function TNe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,ENe)}var DD=Oe(xNe,[["render",TNe]]);const Lhe=Object.assign(DD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+DD.name,DD)}}),ANe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-zoom-in`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),INe=["stroke-width","stroke-linecap","stroke-linejoin"];function LNe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,INe)}var OD=Oe(ANe,[["render",LNe]]);const Phe=Object.assign(OD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+OD.name,OD)}}),PNe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-fullscreen`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),RNe=["stroke-width","stroke-linecap","stroke-linejoin"];function MNe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,RNe)}var $D=Oe(PNe,[["render",MNe]]);const q3=Object.assign($D,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+$D.name,$D)}}),DNe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-rotate-left`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),ONe=["stroke-width","stroke-linecap","stroke-linejoin"];function $Ne(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,ONe)}var ND=Oe(DNe,[["render",$Ne]]);const Rhe=Object.assign(ND,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+ND.name,ND)}}),NNe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-rotate-right`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),BNe=["stroke-width","stroke-linecap","stroke-linejoin"];function FNe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,BNe)}var BD=Oe(NNe,[["render",FNe]]);const Mhe=Object.assign(BD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+BD.name,BD)}}),jNe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-original-size`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),UNe=["stroke-width","stroke-linecap","stroke-linejoin"];function VNe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,UNe)}var FD=Oe(jNe,[["render",VNe]]);const Dhe=Object.assign(FD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+FD.name,FD)}});function zNe(e){const{container:t,hidden:n}=Qt(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 f=a(t.value);f&&(o.width=c.width,t.value.style.width=`calc(${t.value.style.width||"100%"} - ${f}px)`),o.overflow=c.overflow,t.value.style.overflow="hidden"}},l=()=>{if(t.value&&r){const c=o;Object.keys(c).forEach(f=>{t.value.style[f]=c[f]})}r=!1,o={}};return As(c=>{n.value?s():l(),c(()=>{l()})}),[l,s]}function HNe(e,t){const{popupContainer:n}=Qt(t);return F(()=>(is(n.value)?lfe(n.value):n.value)||e)}const vd=[25,33,50,67,75,80,90,100,110,125,150,175,200,250,300,400,500].map(e=>+(e/100).toFixed(2)),Ohe=vd[0],$he=vd[vd.length-1];function WNe(e=1,t="zoomIn"){let n=vd.indexOf(e);return n===-1&&(n=KNe(e)),t==="zoomIn"?n===vd.length-1?e:vd[n+1]:n===0?e:vd[n-1]}function GNe(e,t=1.1,n="zoomIn"){const r=n==="zoomIn"?t:1/t,o=Number.parseFloat((e*r).toFixed(3));return Math.min($he,Math.max(Ohe,o))}function KNe(e){let t=vd.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}=Lo(),{src:r,popupContainer:o,visible:a,defaultVisible:s,maskClosable:l,actionsLayout:c,defaultScale:f,zoomRate:h}=Qt(e),p=fe(),m=fe(),g=Ae("image-preview"),[b,S]=aa(s.value,qt({value:a})),k=F(()=>[g,{[`${g}-hide`]:!b.value}]),C=HNe(document.body,qt({popupContainer:o})),x=F(()=>C.value===document.body),{zIndex:E}=H1("dialog",{visible:b}),_=F(()=>({...x.value?{zIndex:E.value,position:"fixed"}:{zIndex:"inherit",position:"absolute"}})),{isLoading:A,isLoaded:R,setLoadStatus:M}=Ihe(),D=fe(0),N=fe(f.value),{translate:L,moving:B,resetTranslate:U}=CNe(qt({wrapperEl:p,imageEl:m,visible:b,scale:N})),W=fe(!1);let V=null;const z=()=>{!W.value&&(W.value=!0),V&&clearTimeout(V),V=setTimeout(()=>{W.value=!1},1e3)};zNe(qt({container:C,hidden:b}));function Y(){D.value=0,N.value=f.value,U()}const oe=De=>c.value.includes(De),ne=De=>{switch(De.stopPropagation(),De.preventDefault(),De.key){case No.ESC:e.escToClose&&le();break;case No.ARROW_LEFT:e.groupArrowProps.onPrev&&e.groupArrowProps.onPrev();break;case No.ARROW_RIGHT:e.groupArrowProps.onNext&&e.groupArrowProps.onNext();break;case No.ARROW_UP:oe("zoomIn")&&Ce("zoomIn");break;case No.ARROW_DOWN:oe("zoomOut")&&Ce("zoomOut");break;case No.SPACE:oe("originalSize")&&ye(1);break}},X=yg(De=>{if(De.preventDefault(),De.stopPropagation(),!e.wheelZoom)return;const Xe=(De.deltaY||De.deltaX)>0?"zoomOut":"zoomIn",He=GNe(N.value,h.value,Xe);ye(He)});let K=!1;const re=()=>{yn(()=>{var De;(De=p?.value)==null||De.focus()}),e.keyboard&&!K&&(K=!0,Ti(C.value,"keydown",ne))},ee=()=>{K&&(K=!1,Yi(C.value,"keydown",ne))};Dt([r,b],()=>{b.value?(Y(),M("loading"),re()):ee()});function le(){b.value&&(t("close"),t("update:visible",!1),S(!1))}function Q(De){var We;(We=p?.value)==null||We.focus(),l.value&&De.target===De.currentTarget&&le()}function ye(De){N.value!==De&&(N.value=De,z())}function be(){const De=p.value.getBoundingClientRect(),We=m.value.getBoundingClientRect(),Xe=De.height/(We.height/N.value),He=De.width/(We.width/N.value),ke=Math.max(Xe,He);ye(ke)}function ve(De){const Xe=De==="clockwise"?(D.value+jD)%360:D.value===0?360-jD:D.value-jD;D.value=Xe}function Ce(De){const We=WNe(N.value,De);ye(We)}return Fo(()=>{ee()}),{prefixCls:g,classNames:k,container:C,wrapperStyles:_,scale:N,translate:L,rotate:D,moving:B,mergedVisible:b,isLoading:A,isLoaded:R,scaleValueVisible:W,refWrapper:p,refImage:m,onWheel:X,onMaskClick:Q,onCloseClick:le,onImgLoad(){M("loaded")},onImgError(){M("error")},actions:F(()=>[{key:"fullScreen",name:n("imagePreview.fullScreen"),content:()=>sa(q3),onClick:()=>be()},{key:"rotateRight",name:n("imagePreview.rotateRight"),content:()=>sa(Mhe),onClick:()=>ve("clockwise")},{key:"rotateLeft",name:n("imagePreview.rotateLeft"),content:()=>sa(Rhe),onClick:()=>ve("counterclockwise")},{key:"zoomIn",name:n("imagePreview.zoomIn"),content:()=>sa(Phe),onClick:()=>Ce("zoomIn"),disabled:N.value===$he},{key:"zoomOut",name:n("imagePreview.zoomOut"),content:()=>sa(Lhe),onClick:()=>Ce("zoomOut"),disabled:N.value===Ohe},{key:"originalSize",name:n("imagePreview.originalSize"),content:()=>sa(Dhe),onClick:()=>ye(1)}])}}});const YNe=["src"];function XNe(e,t,n,r,o,a){const s=Pe("IconLoading"),l=Pe("PreviewToolbar"),c=Pe("IconClose"),f=Pe("PreviewArrow");return H(),Ye($g,{to:e.container,disabled:!e.renderToBody},[I("div",{class:ae(e.classNames),style:je(e.wrapperStyles)},[O(Is,{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:ae(`${e.prefixCls}-mask`)},null,2),[[ns,e.mergedVisible]])]),_:1}),e.mergedVisible?(H(),J("div",{key:0,ref:"refWrapper",tabindex:"0",class:ae(`${e.prefixCls}-wrapper`),onClick:t[6]||(t[6]=(...h)=>e.onMaskClick&&e.onMaskClick(...h)),onWheel:t[7]||(t[7]=rs((...h)=>e.onWheel&&e.onWheel(...h),["prevent","stop"]))},[Re(" img "),I("div",{class:ae(`${e.prefixCls}-img-container`),style:je({transform:`scale(${e.scale}, ${e.scale})`}),onClick:t[4]||(t[4]=(...h)=>e.onMaskClick&&e.onMaskClick(...h))},[(H(),J("img",{ref:"refImage",key:e.src,src:e.src,class:ae([`${e.prefixCls}-img`,{[`${e.prefixCls}-img-moving`]:e.moving}]),style:je({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,YNe))],6),Re(" loading "),e.isLoading?(H(),J("div",{key:0,class:ae(`${e.prefixCls}-loading`)},[O(s)],2)):Re("v-if",!0),Re(" scale value "),O(Is,{name:"image-fade"},{default:de(()=>[e.scaleValueVisible?(H(),J("div",{key:0,class:ae(`${e.prefixCls}-scale-value`)},Be((e.scale*100).toFixed(0))+"% ",3)):Re("v-if",!0)]),_:1}),Re(" toolbar "),e.isLoaded&&e.actionsLayout.length?(H(),Ye(l,{key:1,actions:e.actions,"actions-layout":e.actionsLayout},{default:de(()=>[ct(e.$slots,"actions")]),_:3},8,["actions","actions-layout"])):Re("v-if",!0),Re(" close btn "),e.closable?(H(),J("div",{key:2,class:ae(`${e.prefixCls}-close-btn`),onClick:t[5]||(t[5]=(...h)=>e.onCloseClick&&e.onCloseClick(...h))},[O(c)],2)):Re("v-if",!0),Re(" group arrow "),e.inGroup?(H(),Ye(f,Ui(Bt({key:3},e.groupArrowProps)),null,16)):Re("v-if",!0)],34)):Re("v-if",!0)],6)],8,["to","disabled"])}var Wy=Oe(qNe,[["render",XNe]]);function mne(e){if(kn(e))return;if(!Ke(e)&&/^\d+(%)$/.test(e))return e;const t=parseInt(e,10);return Ke(t)?`${t}px`:void 0}const Nhe=Symbol("PreviewGroupInjectionKey");let ZNe=0;const QNe=_e({name:"Image",components:{IconImageClose:B3,IconLoading:za,ImageFooter:vNe,ImagePreview:Wy},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}=Lo(),{height:a,width:s,hideFooter:l,title:c,description:f,src:h,footerPosition:p,defaultPreviewVisible:m,previewVisible:g,preview:b,previewProps:S}=Qt(e),k=In(Nhe,void 0),C=Ae("image"),x=fe(),{isLoaded:E,isError:_,isLoading:A,setLoadStatus:R}=Ihe(),M=F(()=>({width:mne(s?.value),height:mne(a?.value)})),D=F(()=>e.fit?{objectFit:e.fit}:{}),N=F(()=>[`${C}`,{[`${C}-loading`]:A.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=F(()=>[M.value,t.style]),B=F(()=>c?.value||f?.value||n.extra?bl(l.value)?!l.value&&E.value:l.value==="never":!1),U=F(()=>ya(t,["class","style"])),[W,V]=aa(m.value,qt({value:g})),z=F(()=>!k?.preview&&b.value);As(()=>{Pk||!x.value||(x.value.src=h?.value,R("loading"))});const Y=ZNe++;As(re=>{var ee,le,Q;const ye=(Q=k?.registerImageUrl)==null?void 0:Q.call(k,Y,((le=(ee=S?.value)==null?void 0:ee.src)!=null?le:h?.value)||"",b.value);re(()=>{ye?.()})});function oe(){R("loaded")}function ne(){R("error")}function X(){b.value&&(k?.preview?k.preview(Y):(r("preview-visible-change",!0),V(!0)))}function K(){r("preview-visible-change",!1),V(!1)}return{t:o,refImg:x,prefixCls:C,wrapperClassNames:N,wrapperStyles:L,showFooter:B,imgProps:U,imgStyle:M,isLoaded:E,isError:_,isLoading:A,mergedPreviewVisible:W,mergePreview:z,onImgLoaded:oe,onImgLoadError:ne,onImgClick:X,onPreviewClose:K,fitStyle:D}}}),JNe=["title","alt"];function eBe(e,t,n,r,o,a){const s=Pe("IconImageClose"),l=Pe("IconLoading"),c=Pe("ImageFooter"),f=Pe("ImagePreview");return H(),J("div",{class:ae(e.wrapperClassNames),style:je(e.wrapperStyles)},[I("img",Bt({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,JNe),e.isLoaded?Re("v-if",!0):(H(),J("div",{key:0,class:ae(`${e.prefixCls}-overlay`)},[e.isError?ct(e.$slots,"error",{key:0},()=>[I("div",{class:ae(`${e.prefixCls}-error`)},[I("div",{class:ae(`${e.prefixCls}-error-icon`)},[ct(e.$slots,"error-icon",{},()=>[O(s)])],2),e.alt||e.description?(H(),J("div",{key:0,class:ae(`${e.prefixCls}-error-alt`)},Be(e.alt||e.description),3)):Re("v-if",!0)],2)]):Re("v-if",!0),e.isLoading&&(e.showLoader||e.$slots.loader)?ct(e.$slots,"loader",{key:1},()=>[I("div",{class:ae([`${e.prefixCls}-loader`])},[I("div",{class:ae(`${e.prefixCls}-loader-spin`)},[O(l),I("div",{class:ae(`${e.prefixCls}-loader-spin-text`)},Be(e.t("image.loading")),3)],2)],2)]):Re("v-if",!0)],2)),e.showFooter?(H(),Ye(c,{key:1,class:ae(e.footerClass),"prefix-cls":e.prefixCls,title:e.title,description:e.description},_o({_:2},[e.$slots.extra?{name:"extra",fn:de(()=>[ct(e.$slots,"extra")]),key:"0"}:void 0]),1032,["class","prefix-cls","title","description"])):Re("v-if",!0),e.isLoaded&&e.mergePreview?(H(),Ye(f,Bt({key:2,src:e.src},e.previewProps,{visible:e.mergedPreviewVisible,"render-to-body":e.renderToBody,onClose:e.onPreviewClose}),{actions:de(()=>[ct(e.$slots,"preview-actions")]),_:3},16,["src","visible","render-to-body","onClose"])):Re("v-if",!0)],6)}var UD=Oe(QNe,[["render",eBe]]),tBe=_e({name:"ImagePreviewGroup",components:{ImagePreview:Wy},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}=Qt(e),[c,f]=aa(o.value,qt({value:r})),h=L=>{L!==c.value&&(t("visible-change",L),t("update:visible",L),f(L))},p=F(()=>new Map(Qn(n?.value)?n?.value.map((L,B)=>[B,{url:L,canPreview:!0}]):[])),m=fe(new Map(p.value||[])),g=F(()=>Array.from(m.value.keys())),b=F(()=>g.value.length);function S(L,B,U){return p.value.has(L)||m.value.set(L,{url:B,canPreview:U}),function(){p.value.has(L)||m.value.delete(L)}}Dt(p,()=>{m.value=new Map(p.value||[])});const[k,C]=aa(s.value,qt({value:a})),x=L=>{L!==k.value&&(t("change",L),t("update:current",L),C(L))},E=F(()=>g.value[k.value]),_=L=>{const B=g.value.indexOf(L);B!==k.value&&x(B)},A=F(()=>{var L;return(L=m.value.get(E.value))==null?void 0:L.url});Xr(Nhe,qt({registerImageUrl:S,preview:L=>{h(!0),_(L)}}));const R=F(()=>{const L=(U,W)=>{var V;for(let z=U;z<=W;z++){const Y=g.value[z];if((V=m.value.get(Y))!=null&&V.canPreview)return z}},B=L(k.value+1,b.value-1);return kn(B)&&l.value?L(0,k.value-1):B}),M=F(()=>{const L=(U,W)=>{var V;for(let z=U;z>=W;z--){const Y=g.value[z];if((V=m.value.get(Y))!=null&&V.canPreview)return z}},B=L(k.value-1,0);return kn(B)&&l.value?L(b.value-1,k.value+1):B}),D=F(()=>kn(M.value)?void 0:()=>{!kn(M.value)&&x(M.value)}),N=F(()=>kn(R.value)?void 0:()=>{!kn(R.value)&&x(R.value)});return{mergedVisible:c,currentUrl:A,prevIndex:M,nextIndex:R,onClose(){h(!1)},groupArrowProps:qt({onPrev:D,onNext:N})}}});function nBe(e,t,n,r,o,a){const s=Pe("ImagePreview");return H(),J(Ut,null,[ct(e.$slots,"default"),O(s,Bt({...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}),_o({_:2},[e.$slots.actions?{name:"actions",fn:de(()=>[ct(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 zS=Oe(tBe,[["render",nBe]]);const rBe=Object.assign(UD,{Preview:Wy,PreviewGroup:zS,install:(e,t)=>{Wn(e,t);const n=Hn(t);e.component(n+UD.name,UD),e.component(n+Wy.name,Wy),e.component(n+zS.name,zS),e.component(n+ZA.name,ZA)}}),Bhe=Symbol("LayoutSiderInjectionKey"),Fhe=Symbol("SiderInjectionKey");var iBe=_e({name:"Layout",props:{hasSider:{type:Boolean}},setup(e){const t=fe([]),n=Ae("layout"),r=F(()=>[n,{[`${n}-has-sider`]:e.hasSider||t.value.length}]);return Xr(Bhe,{onSiderMount:o=>t.value.push(o),onSiderUnMount:o=>{t.value=t.value.filter(a=>a!==o)}}),{classNames:r}}});function oBe(e,t,n,r,o,a){return H(),J("section",{class:ae(e.classNames)},[ct(e.$slots,"default")],2)}var VD=Oe(iBe,[["render",oBe]]);const sBe=_e({name:"LayoutHeader",setup(){return{classNames:[Ae("layout-header")]}}});function aBe(e,t,n,r,o,a){return H(),J("header",{class:ae(e.classNames)},[ct(e.$slots,"default")],2)}var y4=Oe(sBe,[["render",aBe]]);const lBe=_e({name:"LayoutContent",setup(){return{classNames:[Ae("layout-content")]}}});function uBe(e,t,n,r,o,a){return H(),J("main",{class:ae(e.classNames)},[ct(e.$slots,"default")],2)}var b4=Oe(lBe,[["render",uBe]]);const cBe=_e({name:"LayoutFooter",setup(){return{classNames:[Ae("layout-footer")]}}});function dBe(e,t,n,r,o,a){return H(),J("footer",{class:ae(e.classNames)},[ct(e.$slots,"default")],2)}var _4=Oe(cBe,[["render",dBe]]);const fBe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-drag-dot`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),hBe=["stroke-width","stroke-linecap","stroke-linejoin"];function pBe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,hBe)}var zD=Oe(fBe,[["render",pBe]]);const jhe=Object.assign(zD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+zD.name,zD)}}),vBe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-drag-dot-vertical`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),mBe=["stroke-width","stroke-linecap","stroke-linejoin"];function gBe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,mBe)}var HD=Oe(vBe,[["render",gBe]]);const Y3=Object.assign(HD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+HD.name,HD)}});var yBe=_e({name:"ResizeTrigger",components:{ResizeObserver:kd,IconDragDot:jhe,IconDragDotVertical:Y3},props:{prefixCls:{type:String,required:!0},direction:{type:String,default:"horizontal"}},emits:["resize"],setup(e,{emit:t}){const{direction:n,prefixCls:r}=Qt(e),o=F(()=>n?.value==="horizontal");return{classNames:F(()=>[r.value,{[`${r.value}-horizontal`]:o.value,[`${r.value}-vertical`]:!o.value}]),onResize:l=>{t("resize",l)},isHorizontal:o}}});function bBe(e,t,n,r,o,a){const s=Pe("IconDragDot"),l=Pe("IconDragDotVertical"),c=Pe("ResizeObserver");return H(),Ye(c,{onResize:e.onResize},{default:de(()=>[I("div",{class:ae(e.classNames)},[Re(" @slot 自定义内容 "),ct(e.$slots,"default",{},()=>[I("div",{class:ae(`${e.prefixCls}-icon-wrapper`)},[Re(" @slot 自定义 icon "),ct(e.$slots,"icon",{},()=>[e.isHorizontal?(H(),Ye(s,{key:0,class:ae(`${e.prefixCls}-icon`)},null,8,["class"])):(H(),Ye(l,{key:1,class:ae(`${e.prefixCls}-icon`)},null,8,["class"]))])],2)])],2)]),_:3},8,["onResize"])}var Uhe=Oe(yBe,[["render",bBe]]);const Vhe="left",zhe="right",Lz="top",Pz="bottom",_Be=[Vhe,zhe,Lz,Pz];function gne(e,t){if(e===0)return 0;const n=e-t;return n<=0?0:n}function WD(e){return[Lz,Pz].indexOf(e)>-1}const SBe=_e({name:"ResizeBox",components:{ResizeTrigger:Uhe},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}=Qt(e),[a,s]=aa(null,qt({value:r})),[l,c]=aa(null,qt({value:n})),f=fe(),h=qt({}),p=Ae("resizebox"),m=F(()=>[p]),g=F(()=>({...Ke(a.value)?{width:`${a.value}px`}:{},...Ke(l.value)?{height:`${l.value}px`}:{},...h})),b=F(()=>o.value.filter(_=>_Be.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:A,startPageY:R,startWidth:M,startHeight:D,direction:N}=S;let L=M,B=D;const U=_.pageX-A,W=_.pageY-R;switch(N){case Vhe:L=M-U,s(L),t("update:width",L);break;case zhe:L=M+U,s(L),t("update:width",L);break;case Lz:B=D-W,c(B),t("update:height",B);break;case Pz:B=D+W,c(B),t("update:height",B);break}t("moving",{width:L,height:B},_)}function C(_){S.moving=!1,Yi(window,"mousemove",k),Yi(window,"mouseup",C),Yi(window,"contextmenu",C),document.body.style.cursor="default",t("movingEnd",_)}function x(_,A){var R,M;t("movingStart",A),S.moving=!0,S.startPageX=A.pageX,S.startPageY=A.pageY,S.direction=_;const{top:D,left:N,right:L,bottom:B}=S.padding;S.startWidth=gne(((R=f.value)==null?void 0:R.clientWidth)||0,N+L),S.startHeight=gne(((M=f.value)==null?void 0:M.clientHeight)||0,D+B),Ti(window,"mousemove",k),Ti(window,"mouseup",C),Ti(window,"contextmenu",C),document.body.style.cursor=WD(_)?"row-resize":"col-resize"}function E(_,A){const{width:R,height:M}=A.contentRect,D=WD(_)?M:R;S.padding[_]=D,h[`padding-${_}`]=`${D}px`}return{prefixCls:p,classNames:m,styles:g,wrapperRef:f,onMoveStart:x,isHorizontal:WD,allowDirections:b,onTiggerResize:E}}});function kBe(e,t,n,r,o,a){const s=Pe("ResizeTrigger");return H(),Ye(Fa(e.component),Bt({ref:"wrapperRef",class:e.classNames},e.$attrs,{style:e.styles}),{default:de(()=>[ct(e.$slots,"default"),(H(!0),J(Ut,null,mn(e.allowDirections,l=>(H(),Ye(s,{key:l,"prefix-cls":`${e.prefixCls}-trigger`,class:ae(`${e.prefixCls}-direction-${l}`),direction:e.isHorizontal(l)?"horizontal":"vertical",onMousedown:c=>{e.onMoveStart(l,c)},onResize:c=>{e.onTiggerResize(l,c)}},_o({default:de(()=>[e.$slots["resize-trigger"]?ct(e.$slots,"resize-trigger",{key:0,direction:l}):Re("v-if",!0)]),_:2},[e.$slots["resize-trigger-icon"]?{name:"icon",fn:de(()=>[ct(e.$slots,"resize-trigger-icon",{direction:l})]),key:"0"}:void 0]),1032,["prefix-cls","class","direction","onMousedown","onResize"]))),128))]),_:3},16,["class","style"])}var GD=Oe(SBe,[["render",kBe]]);const Hhe=Object.assign(GD,{install:(e,t)=>{Wn(e,t);const n=Hn(t);e.component(n+GD.name,GD)}});function Whe(e,t){const n=F(()=>Io(e)?e.value:e);let r="";gn(()=>{r=YA.subscribe((o,a)=>{n.value&&(!a||a===n.value)&&t(!!o[n.value])})}),yi(()=>{r&&YA.unsubscribe(r)})}const wBe=(()=>{let e=0;return(t="")=>(e+=1,`${t}${e}`)})();var CBe=_e({name:"LayoutSider",components:{IconLeft:kl,IconRight:Ni,ResizeBox:Hhe},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:f}=Qt(e),[h,p]=aa(o.value,qt({value:r})),m=F(()=>f.value?"ResizeBox":"div"),g=F(()=>a.value&&!s.value),b=Ae("layout-sider"),S=F(()=>[b,{[`${b}-light`]:n.value==="light",[`${b}-has-trigger`]:g.value,[`${b}-collapsed`]:r.value}]),k=F(()=>{const{width:A,collapsedWidth:R}=e,M=h.value?R:A;return Ke(M)?`${M}px`:String(M)}),C=F(()=>[`${b}-trigger`,{[`${b}-trigger-light`]:n.value==="light"}]),x=()=>{const A=!h.value;p(A),t("update:collapsed",A),t("collapse",A,"clickTrigger")};Whe(l,A=>{const R=!A;R!==h.value&&(p(R),t("update:collapsed",R),t("collapse",R,"responsive"),t("breakpoint",R))});const E=wBe("__arco_layout_sider"),_=In(Bhe,void 0);return gn(()=>{var A;(A=_?.onSiderMount)==null||A.call(_,E)}),yi(()=>{var A;(A=_?.onSiderUnMount)==null||A.call(_,E)}),Xr(Fhe,qt({theme:n,collapsed:h,collapsedWidth:c})),{componentTag:m,prefixCls:b,classNames:S,triggerClassNames:C,localCollapsed:h,siderWidth:k,showTrigger:g,toggleTrigger:x}}});const xBe={key:0},EBe={key:1};function TBe(e,t,n,r,o,a){const s=Pe("IconLeft"),l=Pe("IconRight");return H(),Ye(Fa(e.componentTag),Bt({class:e.classNames,style:{width:e.siderWidth}},e.resizeDirections?{directions:e.resizeDirections}:{}),{default:de(()=>[I("div",{class:ae(`${e.prefixCls}-children`)},[ct(e.$slots,"default")],2),e.showTrigger?(H(),J("div",{key:0,class:ae(e.triggerClassNames),style:je({width:e.siderWidth}),onClick:t[0]||(t[0]=(...c)=>e.toggleTrigger&&e.toggleTrigger(...c))},[ct(e.$slots,"trigger",{collapsed:e.localCollapsed},()=>[e.reverseArrow?(H(),J("div",EBe,[e.localCollapsed?(H(),Ye(s,{key:0})):(H(),Ye(l,{key:1}))])):(H(),J("div",xBe,[e.localCollapsed?(H(),Ye(l,{key:1})):(H(),Ye(s,{key:0}))]))])],6)):Re("v-if",!0)]),_:3},16,["class","style"])}var S4=Oe(CBe,[["render",TBe]]);const ABe=Object.assign(VD,{Header:y4,Content:b4,Footer:_4,Sider:S4,install:(e,t)=>{Wn(e,t);const n=Hn(t);e.component(n+VD.name,VD),e.component(n+y4.name,y4),e.component(n+b4.name,b4),e.component(n+_4.name,_4),e.component(n+S4.name,S4)}}),IBe=_e({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=Ae("pagination-item"),r=F(()=>e.current===e.pageNumber),o=l=>{e.disabled||t("click",e.pageNumber,l)},a=F(()=>[n,{[`${n}-active`]:r.value}]),s=F(()=>r.value?e.activeStyle:e.style);return{prefixCls:n,cls:a,mergedStyle:s,handleClick:o}}});function LBe(e,t,n,r,o,a){return H(),J("li",{class:ae(e.cls),style:je(e.mergedStyle),onClick:t[0]||(t[0]=(...s)=>e.handleClick&&e.handleClick(...s))},[ct(e.$slots,"default",{page:e.pageNumber},()=>[ze(Be(e.pageNumber),1)])],6)}var PBe=Oe(IBe,[["render",LBe]]);const Ghe=(e,{min:t,max:n})=>en?n:e,RBe=_e({name:"StepPager",components:{IconLeft:kl,IconRight:Ni},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=Ae("pagination-item"),r=e.type==="next",o=F(()=>e.disabled?e.disabled:!e.pages||r&&e.current===e.pages?!0:!r&&e.current<=1),a=F(()=>Ghe(e.current+(r?1:-1),{min:1,max:e.pages})),s=c=>{o.value||t("click",a.value)},l=F(()=>[n,`${n}-${e.type}`,{[`${n}-disabled`]:o.value}]);return{prefixCls:n,cls:l,isNext:r,handleClick:s}}});function MBe(e,t,n,r,o,a){const s=Pe("icon-right"),l=Pe("icon-left");return H(),Ye(Fa(e.simple?"span":"li"),{class:ae(e.cls),onClick:e.handleClick},{default:de(()=>[ct(e.$slots,"default",{type:e.isNext?"next":"previous"},()=>[e.isNext?(H(),Ye(s,{key:0})):(H(),Ye(l,{key:1}))])]),_:3},8,["class","onClick"])}var yne=Oe(RBe,[["render",MBe]]);const DBe=_e({name:"EllipsisPager",components:{IconMore:Tv},props:{current:{type:Number,required:!0},step:{type:Number,default:5},pages:{type:Number,required:!0}},emits:["click"],setup(e,{emit:t}){const n=Ae("pagination-item"),r=F(()=>Ghe(e.current+e.step,{min:1,max:e.pages})),o=s=>{t("click",r.value)},a=F(()=>[n,`${n}-ellipsis`]);return{prefixCls:n,cls:a,handleClick:o}}});function OBe(e,t,n,r,o,a){const s=Pe("icon-more");return H(),J("li",{class:ae(e.cls),onClick:t[0]||(t[0]=(...l)=>e.handleClick&&e.handleClick(...l))},[ct(e.$slots,"default",{},()=>[O(s)])],2)}var $Be=Oe(DBe,[["render",OBe]]);const NBe=_e({name:"PageJumper",components:{InputNumber:Nk},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=Ae("pagination-jumper"),{t:r}=Lo(),o=fe(e.simple?e.current:void 0),a=c=>{const f=parseInt(c.toString(),10);return Number.isNaN(f)?void 0:String(f)},s=c=>{t("change",o.value),yn(()=>{e.simple||(o.value=void 0)})};Dt(()=>e.current,c=>{e.simple&&c!==o.value&&(o.value=c)});const l=F(()=>[n,{[`${n}-simple`]:e.simple}]);return{prefixCls:n,cls:l,t:r,inputValue:o,handleChange:s,handleFormatter:a}}});function BBe(e,t,n,r,o,a){const s=Pe("input-number");return H(),J("span",{class:ae(e.cls)},[e.simple?Re("v-if",!0):(H(),J("span",{key:0,class:ae([`${e.prefixCls}-prepend`,`${e.prefixCls}-text-goto`])},[ct(e.$slots,"jumper-prepend",{},()=>[ze(Be(e.t("pagination.goto")),1)])],2)),O(s,{modelValue:e.inputValue,"onUpdate:modelValue":t[0]||(t[0]=l=>e.inputValue=l),class:ae(`${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"]?(H(),J("span",{key:1,class:ae(`${e.prefixCls}-append`)},[ct(e.$slots,"jumper-append")],2)):Re("v-if",!0),e.simple?(H(),J(Ut,{key:2},[I("span",{class:ae(`${e.prefixCls}-separator`)},"/",2),I("span",{class:ae(`${e.prefixCls}-total-page`)},Be(e.pages),3)],64)):Re("v-if",!0)],2)}var bne=Oe(NBe,[["render",BBe]]);const FBe=_e({name:"PageOptions",components:{ArcoSelect:H2},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=Ae("pagination-options"),{t:r}=Lo(),o=F(()=>e.sizeOptions.map(s=>({value:s,label:`${s} ${r("pagination.countPerPage")}`})));return{prefixCls:n,options:o,handleChange:s=>{t("change",s)}}}});function jBe(e,t,n,r,o,a){const s=Pe("arco-select");return H(),J("span",{class:ae(e.prefixCls)},[O(s,Bt({"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 UBe=Oe(FBe,[["render",jBe]]),KD=_e({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=Ae("pagination"),{t:o}=Lo(),{disabled:a,pageItemStyle:s,activePageItemStyle:l,size:c}=Qt(e),{mergedSize:f}=_a(c),h=fe(e.defaultCurrent),p=fe(e.defaultPageSize),m=F(()=>{var R;return(R=e.current)!=null?R:h.value}),g=F(()=>{var R;return(R=e.pageSize)!=null?R:p.value}),b=F(()=>Math.ceil(e.total/g.value)),S=R=>{R!==m.value&&Ke(R)&&!e.disabled&&(h.value=R,t("update:current",R),t("change",R))},k=R=>{p.value=R,t("update:pageSize",R),t("pageSizeChange",R)},C=qt({current:m,pages:b,disabled:a,style:s,activeStyle:l,onClick:S}),x=(R,M={})=>R==="more"?O($Be,Bt(M,C),{default:n["page-item-ellipsis"]}):R==="previous"?O(yne,Bt({type:"previous"},M,C),{default:n["page-item-step"]}):R==="next"?O(yne,Bt({type:"next"},M,C),{default:n["page-item-step"]}):O(PBe,Bt(M,C),{default:n["page-item"]}),E=F(()=>{const R=[];if(b.value2+e.bufferSize&&(N=!0,M=Math.min(m.value-e.bufferSize,b.value-2*e.bufferSize)),m.valuee.simple?O("span",{class:`${r}-simple`},[x("previous",{simple:!0}),O(bne,{disabled:e.disabled,current:m.value,size:f.value,pages:b.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})]);Dt(g,(R,M)=>{if(e.autoAdjust&&R!==M&&m.value>1){const D=M*(m.value-1)+1,N=Math.ceil(D/R);N!==m.value&&(h.value=N,t("update:current",N),t("change",N))}}),Dt(b,(R,M)=>{if(e.autoAdjust&&R!==M&&m.value>1&&m.value>R){const D=Math.max(R,1);h.value=D,t("update:current",D),t("change",D)}});const A=F(()=>[r,`${r}-size-${f.value}`,{[`${r}-simple`]:e.simple,[`${r}-disabled`]:e.disabled}]);return()=>{var R,M;return e.hideOnSinglePage&&b.value<=1?null:O("div",{class:A.value},[e.showTotal&&O("span",{class:`${r}-total`},[(M=(R=n.total)==null?void 0:R.call(n,{total:e.total}))!=null?M:o("pagination.total",e.total)]),_(),e.showPageSize&&O(UBe,{disabled:e.disabled,sizeOptions:e.pageSizeOptions,pageSize:g.value,size:f.value,onChange:k,selectProps:e.pageSizeProps},null),!e.simple&&e.showJumper&&O(bne,{disabled:e.disabled,current:m.value,pages:b.value,size:f.value,onChange:S},{"jumper-prepend":n["jumper-prepend"],"jumper-append":n["jumper-append"]})])}}});const Rz=Object.assign(KD,{install:(e,t)=>{Wn(e,t);const n=Hn(t);e.component(n+KD.name,KD)}}),VBe=(e,{emit:t})=>{var n,r;const o=fe(fr(e.paginationProps)&&(n=e.paginationProps.defaultCurrent)!=null?n:1),a=fe(fr(e.paginationProps)&&(r=e.paginationProps.defaultPageSize)!=null?r:10),s=F(()=>{var h;return fr(e.paginationProps)&&(h=e.paginationProps.current)!=null?h:o.value}),l=F(()=>{var h;return fr(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 _ne(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Bi(e)}var qD=_e({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}=Qt(e),o=Ae("list"),a=In(Va,void 0),{componentRef:s,elementRef:l}=Ay("containerRef"),c=F(()=>e.virtualListProps),{displayScrollbar:f,scrollbarProps:h}=O3(r);let p=0;const m=V=>{const{scrollTop:z,scrollHeight:Y,offsetHeight:oe}=V.target,ne=Math.floor(Y-(z+oe));z>p&&ne<=e.bottomOffset&&t("reachBottom"),t("scroll"),p=z};gn(()=>{if(l.value){const{scrollTop:V,scrollHeight:z,offsetHeight:Y}=l.value;z<=V+Y&&t("reachBottom")}});const{current:g,pageSize:b,handlePageChange:S,handlePageSizeChange:k}=VBe(e,{emit:t}),C=V=>{if(!e.paginationProps)return V;if(e.paginationProps&&V.length>b.value){const z=(g.value-1)*b.value;return V.slice(z,z+b.value)}return V},x=V=>{let z;if(!e.gridProps)return null;const Y=C(V);if(e.gridProps.span){const oe=[],ne=24/e.gridProps.span;for(let X=0;X{var ye;return O(hS.Col,{key:`${ee}-${Q}`,class:`${o}-col`,span:(ye=e.gridProps)==null?void 0:ye.span},{default:()=>{var be;return[Bi(le)?le:(be=n.item)==null?void 0:be.call(n,{item:le,index:Q})]}})}))?K:{default:()=>[K]}))}return oe}return O(hS.Row,{class:`${o}-row`,gutter:e.gridProps.gutter},_ne(z=Y.map((oe,ne)=>O(hS.Col,Bt({key:ne,class:`${o}-col`},ya(e.gridProps,["gutter"])),{default:()=>{var X;return[Bi(oe)?oe:(X=n.item)==null?void 0:X.call(n,{item:oe,index:ne})]}})))?z:{default:()=>[z]})},E=V=>C(V).map((Y,oe)=>{var ne;return Bi(Y)?Y:(ne=n.item)==null?void 0:ne.call(n,{item:Y,index:oe})}),_=()=>{const V=n.default?df(n.default()):e.data;return V&&V.length>0?e.gridProps?x(V):E(V):U()},A=()=>{if(!e.paginationProps)return null;const V=ya(e.paginationProps,["current","pageSize","defaultCurrent","defaultPageSize"]);return O(Rz,Bt({class:`${o}-pagination`},V,{current:g.value,pageSize:b.value,onChange:S,onPageSizeChange:k}),null)},R=F(()=>[o,`${o}-${e.size}`,{[`${o}-bordered`]:e.bordered,[`${o}-split`]:e.split,[`${o}-hover`]:e.hoverable}]),M=F(()=>{if(e.maxHeight)return{maxHeight:Ke(e.maxHeight)?`${e.maxHeight}px`:e.maxHeight,overflowY:"auto"}}),D=F(()=>[`${o}-content`,{[`${o}-virtual`]:c.value}]),N=fe(),L=()=>{var V;const z=C((V=e.data)!=null?V:[]);return z.length?O(G1,Bt({ref:N,class:D.value,data:z},e.virtualListProps,{onScroll:m}),{item:({item:Y,index:oe})=>{var ne;return(ne=n.item)==null?void 0:ne.call(n,{item:Y,index:oe})}}):U()},B=()=>n["scroll-loading"]?O("div",{class:[`${o}-item`,`${o}-scroll-loading`]},[n["scroll-loading"]()]):null,U=()=>{var V,z,Y,oe,ne;return n["scroll-loading"]?null:(ne=(oe=(V=n.empty)==null?void 0:V.call(n))!=null?oe:(Y=a==null?void 0:(z=a.slots).empty)==null?void 0:Y.call(z,{component:"list"}))!=null?ne:O(Uh,null,null)};return{virtualListRef:N,render:()=>{const V=f.value?Cd:"div";return O("div",{class:`${o}-wrapper`},[O(wd,{class:`${o}-spin`,loading:e.loading},{default:()=>[O(V,Bt({ref:s,class:R.value,style:M.value},h.value,{onScroll:m}),{default:()=>[O("div",{class:`${o}-content-wrapper`},[n.header&&O("div",{class:`${o}-header`},[n.header()]),c.value&&!e.gridProps?O(Ut,null,[L(),B()]):O("div",{role:"list",class:D.value},[_(),B()]),n.footer&&O("div",{class:`${o}-footer`},[n.footer()])])]}),A()]})])}}},methods:{scrollIntoView(e){this.virtualListRef&&this.virtualListRef.scrollTo(e)}},render(){return this.render()}}),k4=_e({name:"ListItem",props:{actionLayout:{type:String,default:"horizontal"}},setup(e,{slots:t}){const n=Ae("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 zBe=_e({name:"ListItemMeta",props:{title:String,description:String},setup(e,{slots:t}){const n=Ae("list-item-meta"),r=!!(e.title||e.description||t.title||t.description);return{prefixCls:n,hasContent:r}}});function HBe(e,t,n,r,o,a){return H(),J("div",{class:ae(e.prefixCls)},[e.$slots.avatar?(H(),J("div",{key:0,class:ae(`${e.prefixCls}-avatar`)},[ct(e.$slots,"avatar")],2)):Re("v-if",!0),e.hasContent?(H(),J("div",{key:1,class:ae(`${e.prefixCls}-content`)},[e.$slots.title||e.title?(H(),J("div",{key:0,class:ae(`${e.prefixCls}-title`)},[ct(e.$slots,"title",{},()=>[ze(Be(e.title),1)])],2)):Re("v-if",!0),e.$slots.description||e.description?(H(),J("div",{key:1,class:ae(`${e.prefixCls}-description`)},[ct(e.$slots,"description",{},()=>[ze(Be(e.description),1)])],2)):Re("v-if",!0)],2)):Re("v-if",!0)],2)}var w4=Oe(zBe,[["render",HBe]]);const Khe=Object.assign(qD,{Item:Object.assign(k4,{Meta:w4}),install:(e,t)=>{Wn(e,t);const n=Hn(t);e.component(n+qD.name,qD),e.component(n+k4.name,k4),e.component(n+w4.name,w4)}}),WBe=["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"],dj=e=>{const t={};return WBe.forEach(n=>{t[n]=e.getPropertyValue(n)}),t},GBe=_e({name:"Textarea",components:{ResizeObserver:kd,IconHover:ko,IconClose:ms},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}=Qt(e),s=Ae("textarea"),{mergedDisabled:l,mergedError:c,eventHandlers:f}=wo({disabled:r,error:o}),h=fe(),p=fe(),m=fe(),g=fe(),b=fe(e.defaultValue),S=F(()=>{var Ne;return(Ne=a.value)!=null?Ne:b.value}),[k,C]=hfe(h);Dt(a,Ne=>{(kn(Ne)||Sl(Ne))&&(b.value="")});const x=F(()=>fr(e.maxLength)&&!!e.maxLength.errorOnly),E=F(()=>fr(e.maxLength)?e.maxLength.length:e.maxLength),_=Ne=>{var qe;return _n(e.wordLength)?e.wordLength(Ne):(qe=Ne.length)!=null?qe:0},A=F(()=>_(S.value)),R=F(()=>c.value||!!(E.value&&x.value&&A.value>E.value)),M=fe(!1),D=fe(!1),N=F(()=>e.allowClear&&!l.value&&S.value),L=fe(!1),B=fe(""),U=()=>{k(),yn(()=>{h.value&&S.value!==h.value.value&&(h.value.value=S.value,C())})},W=(Ne,qe=!0)=>{var Je,ot;E.value&&!x.value&&_(Ne)>E.value&&(Ne=(ot=(Je=e.wordSlice)==null?void 0:Je.call(e,Ne,E.value))!=null?ot:Ne.slice(0,E.value)),b.value=Ne,qe&&t("update:modelValue",Ne),U()};let V=S.value;const z=(Ne,qe)=>{var Je,ot;Ne!==V&&(V=Ne,t("change",Ne,qe),(ot=(Je=f.value)==null?void 0:Je.onChange)==null||ot.call(Je,qe))},Y=Ne=>{var qe,Je;D.value=!0,V=S.value,t("focus",Ne),(Je=(qe=f.value)==null?void 0:qe.onFocus)==null||Je.call(qe,Ne)},oe=Ne=>{var qe,Je;D.value=!1,t("blur",Ne),(Je=(qe=f.value)==null?void 0:qe.onBlur)==null||Je.call(qe,Ne),z(S.value,Ne)},ne=Ne=>{var qe,Je;const{value:ot}=Ne.target;if(Ne.type==="compositionend"){if(L.value=!1,B.value="",E.value&&!x.value&&S.value.length>=E.value&&_(ot)>E.value){U();return}t("input",ot,Ne),W(ot),(Je=(qe=f.value)==null?void 0:qe.onInput)==null||Je.call(qe,Ne)}else L.value=!0},X=Ne=>{var qe,Je;const{value:ot}=Ne.target;if(L.value)B.value=ot;else{if(E.value&&!x.value&&S.value.length>=E.value&&_(ot)>E.value&&Ne.inputType==="insertText"){U();return}t("input",ot,Ne),W(ot),(Je=(qe=f.value)==null?void 0:qe.onInput)==null||Je.call(qe,Ne)}},K=Ne=>{W(""),z("",Ne),t("clear",Ne)};Dt(a,Ne=>{Ne!==S.value&&W(Ne??"",!1)});const re=Ne=>ya(n,cv),ee=Ne=>pf(n,cv),le=ee(),Q=F(()=>{const Ne={...le,...e.textareaAttrs};return R.value&&(Ne["aria-invalid"]=!0),Ne}),ye=F(()=>[`${s}-wrapper`,{[`${s}-focus`]:D.value,[`${s}-disabled`]:l.value,[`${s}-error`]:R.value,[`${s}-scroll`]:M.value}]);let be;const ve=fe(0),Ce=fe(0),De=F(()=>!fr(e.autoSize)||!e.autoSize.minRows?0:e.autoSize.minRows*ve.value+Ce.value),We=F(()=>!fr(e.autoSize)||!e.autoSize.maxRows?0:e.autoSize.maxRows*ve.value+Ce.value),Xe=()=>{const Ne=dj(be);ve.value=Number.parseInt(Ne["line-height"]||0,10),Ce.value=Number.parseInt(Ne["border-width"]||0,10)*2+Number.parseInt(Ne["padding-top"]||0,10)+Number.parseInt(Ne["padding-bottom"]||0,10),g.value=Ne,yn(()=>{var qe;const Je=(qe=m.value)==null?void 0:qe.offsetHeight;let ot=Je??0,yt="hidden";De.value&&otWe.value&&(ot=We.value,yt="auto"),p.value={height:`${ot}px`,resize:"none",overflow:yt}})};gn(()=>{h.value&&(be=window.getComputedStyle(h.value),e.autoSize&&Xe()),Se()});const He=()=>{e.autoSize&&m.value&&Xe(),Se()},ke=Ne=>{h.value&&Ne.target!==h.value&&(Ne.preventDefault(),h.value.focus())},Se=()=>{h.value&&(h.value.scrollHeight>h.value.offsetHeight?M.value||(M.value=!0):M.value&&(M.value=!1))};return Dt(S,()=>{e.autoSize&&m.value&&Xe(),Se()}),{prefixCls:s,wrapperCls:ye,textareaRef:h,textareaStyle:p,mirrorRef:m,mirrorStyle:g,computedValue:S,showClearBtn:N,valueLength:A,computedMaxLength:E,mergedDisabled:l,mergeTextareaAttrs:Q,getWrapperAttrs:re,getTextareaAttrs:ee,handleInput:X,handleFocus:Y,handleBlur:oe,handleComposition:ne,handleClear:K,handleResize:He,handleMousedown:ke}},methods:{focus(){var e;(e=this.$refs.textareaRef)==null||e.focus()},blur(){var e;(e=this.$refs.textareaRef)==null||e.blur()}}}),KBe=["disabled","value","placeholder"];function qBe(e,t,n,r,o,a){const s=Pe("resize-observer"),l=Pe("icon-close"),c=Pe("icon-hover");return H(),J("div",Bt(e.getWrapperAttrs(e.$attrs),{class:e.wrapperCls,onMousedown:t[7]||(t[7]=(...f)=>e.handleMousedown&&e.handleMousedown(...f))}),[e.autoSize?(H(),J("div",{key:0,ref:"mirrorRef",class:ae(`${e.prefixCls}-mirror`),style:je(e.mirrorStyle)},Be(`${e.computedValue} `),7)):Re("v-if",!0),O(s,{onResize:e.handleResize},{default:de(()=>[I("textarea",Bt({ref:"textareaRef"},e.mergeTextareaAttrs,{disabled:e.mergedDisabled,class:e.prefixCls,style:e.textareaStyle,value:e.computedValue,placeholder:e.placeholder,onInput:t[0]||(t[0]=(...f)=>e.handleInput&&e.handleInput(...f)),onFocus:t[1]||(t[1]=(...f)=>e.handleFocus&&e.handleFocus(...f)),onBlur:t[2]||(t[2]=(...f)=>e.handleBlur&&e.handleBlur(...f)),onCompositionstart:t[3]||(t[3]=(...f)=>e.handleComposition&&e.handleComposition(...f)),onCompositionupdate:t[4]||(t[4]=(...f)=>e.handleComposition&&e.handleComposition(...f)),onCompositionend:t[5]||(t[5]=(...f)=>e.handleComposition&&e.handleComposition(...f))}),null,16,KBe)]),_:1},8,["onResize"]),ct(e.$slots,"suffix"),e.computedMaxLength&&e.showWordLimit?(H(),J("div",{key:1,class:ae(`${e.prefixCls}-word-limit`)},Be(e.valueLength)+"/"+Be(e.computedMaxLength),3)):Re("v-if",!0),e.showClearBtn?(H(),J("div",{key:2,class:ae(`${e.prefixCls}-clear-btn`),onClick:t[6]||(t[6]=(...f)=>e.handleClear&&e.handleClear(...f))},[O(c,null,{default:de(()=>[O(l)]),_:1})],2)):Re("v-if",!0)],16)}var YD=Oe(GBe,[["render",qBe]]);const qhe=Object.assign(YD,{install:(e,t)=>{Wn(e,t);const n=Hn(t);e.component(n+YD.name,YD)}}),YBe=e=>{const{value:t,selectionStart:n}=e;return t.slice(0,n)},XBe=(e,t)=>[].concat(t).reduce((r,o)=>{const a=e.lastIndexOf(o);return a>r.location?{location:a,prefix:o}:r},{location:-1,prefix:""}),ZBe=(e,t)=>!t||!e.includes(t);function QBe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Bi(e)}var XD=_e({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=Ae("mention");let a;const{mergedDisabled:s,eventHandlers:l}=wo({disabled:Cu(e,"disabled")}),{data:c,modelValue:f}=Qt(e),h=fe(),p=fe({}),m=fe(e.defaultValue),g=F(()=>{var le;return(le=e.modelValue)!=null?le:m.value});Dt(f,le=>{(kn(le)||Sl(le))&&(m.value="")});const b=F(()=>g.value?[_g(g.value)]:[]),S=fe({measuring:!1,location:-1,prefix:"",text:""}),k=()=>{S.value={measuring:!1,location:-1,prefix:"",text:""}},C=fe(),x=F(()=>S.value.text),E=fe(!0),_=(le,Q)=>{var ye,be;const ve=YBe(Q.target),Ce=XBe(ve,e.prefix);if(Ce.location>-1){const De=ve.slice(Ce.location+Ce.prefix.length);ZBe(De,e.split)?(R.value=!0,S.value={measuring:!0,text:De,...Ce},t("search",De,Ce.prefix)):S.value.location>-1&&k()}else S.value.location>-1&&k();m.value=le,t("update:modelValue",le),t("change",le),(be=(ye=l.value)==null?void 0:ye.onChange)==null||be.call(ye)},A=le=>{var Q,ye;m.value="",t("update:modelValue",""),t("change",""),(ye=(Q=l.value)==null?void 0:Q.onChange)==null||ye.call(Q),t("clear",le)},R=fe(!1),M=F(()=>R.value&&S.value.measuring&&W.value.length>0),D=()=>{z.value=dj(a)},N=le=>{R.value=le},L=(le,Q)=>{var ye,be,ve;const{value:Ce}=(ye=U.get(le))!=null?ye:{},De=S.value.location,We=S.value.location+S.value.text.length;let Xe=m.value.slice(0,De),He=m.value.slice(We+1);Xe+=!Xe||Xe.endsWith(e.split)||Xe.endsWith(` `)?"":e.split,He=(!He||He.startsWith(e.split)||He.startsWith(` `)?"":e.split)+He;const ke=`${S.value.prefix}${Ce}`,Se=`${Xe}${ke}${He}`;m.value=Se,t("select",Ce),t("update:modelValue",Se),t("change",Se),k(),(ve=(be=l.value)==null?void 0:be.onChange)==null||ve.call(be)},{validOptions:B,optionInfoMap:U,validOptionInfos:W,handleKeyDown:V}=dz({options:c,inputValue:x,filterOption:E,popupVisible:M,valueKeys:b,dropdownRef:h,optionRefs:p,onSelect:L,onPopupVisibleChange:N,enterToOpen:!1}),z=fe();gn(()=>{var le;e.type==="textarea"&&((le=C.value)!=null&&le.textareaRef)&&(a=window.getComputedStyle(C.value.textareaRef),z.value=dj(a))});const Y=le=>{if(_n(r.option)&&le.value){const Q=U.get(le.key),ye=r.option;return()=>ye({data:Q})}return()=>le.label},oe=le=>O(tg,{ref:Q=>{Q?.$el&&(p.value[le.key]=Q.$el)},key:le.key,value:le.value,disabled:le.disabled,internal:!0},{default:Y(le)}),ne=()=>{let le;return O(cz,{ref:h},QBe(le=B.value.map(Q=>oe(Q)))?le:{default:()=>[le]})},X=fe();Dt(M,le=>{e.type==="textarea"&&le&&yn(()=>{var Q,ye;(Q=C.value)!=null&&Q.textareaRef&&C.value.textareaRef.scrollTop>0&&((ye=X.value)==null||ye.scrollTo(0,C.value.textareaRef.scrollTop))})});const K=le=>{t("focus",le)},re=le=>{t("blur",le)};return{inputRef:C,render:()=>{var le;return e.type==="textarea"?O("div",{class:o},[O(kd,{onResize:D},{default:()=>[O(qhe,Bt(n,{ref:C,allowClear:e.allowClear,modelValue:g.value,disabled:s.value,onInput:_,onClear:A,onFocus:K,onBlur:re,onKeydown:V}),null)]}),S.value.measuring&&W.value.length>0&&O("div",{ref:X,style:z.value,class:`${o}-measure`},[(le=g.value)==null?void 0:le.slice(0,S.value.location),O(la,{trigger:"focus",position:"bl",popupOffset:4,preventFocus:!0,popupVisible:M.value,clickToClose:!1,onPopupVisibleChange:N},{default:()=>[O("span",null,[ze("@")])],content:ne})])]):O(la,{trigger:"focus",position:"bl",animationName:"slide-dynamic-origin",popupOffset:4,preventFocus:!0,popupVisible:M.value,clickToClose:!1,autoFitPopupWidth:!0,autoFitTransformOrigin:!0,disabled:s.value,onPopupVisibleChange:N},{default:()=>[O(Ev,Bt(n,{ref:C,allowClear:e.allowClear,modelValue:g.value,disabled:s.value,onInput:_,onClear:A,onFocus:K,onBlur:re,onKeydown:V}),r)],content:ne})}}},methods:{focus(){var e;(e=this.inputRef)==null||e.focus()},blur(){var e;(e=this.inputRef)==null||e.blur()}},render(){return this.render()}});const JBe=Object.assign(XD,{install:(e,t)=>{Wn(e,t);const n=Hn(t);e.component(n+XD.name,XD)}}),Mz=Symbol("MenuInjectionKey"),Dz=Symbol("LevelInjectionKey"),Yhe=Symbol("DataCollectorInjectionKey"),e7e=_e({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=Ae("icon"),r=F(()=>[n,`${n}-menu-fold`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),t7e=["stroke-width","stroke-linecap","stroke-linejoin"];function n7e(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,t7e)}var ZD=Oe(e7e,[["render",n7e]]);const Xhe=Object.assign(ZD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+ZD.name,ZD)}}),r7e=_e({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=Ae("icon"),r=F(()=>[n,`${n}-menu-unfold`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),i7e=["stroke-width","stroke-linecap","stroke-linejoin"];function o7e(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,i7e)}var QD=Oe(r7e,[["render",o7e]]);const Zhe=Object.assign(QD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+QD.name,QD)}});function Oz(e){const t=F(()=>Io(e)?e.value:e);Xr(Dz,qt({level:t}))}function Uk(e){const{provideNextLevel:t}=e||{},n=In(Dz),r=F(()=>n?.level||1);if(t){const o=F(()=>r.value+1);Oz(o)}return{level:r}}function Sne(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 Qhe(e=!1){return e?void 0:In(Yhe)}function Jhe(e){const{key:t,type:n}=e,r=fe([]),o=Qhe(n==="menu");return Xr(Yhe,{collectSubMenu(s,l,c=!1){const f={key:s,children:l};if(c){const h=r.value.find(p=>p.key===s);h?h.children=l:r.value.push(f)}else r.value=[...r.value,f];c&&(n==="popupMenu"?o?.reportMenuData(r.value):n==="subMenu"&&!kn(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"&&!kn(t)&&o?.collectSubMenu(t,r.value,!0)}}),n==="subMenu"&&!kn(t)?(gn(()=>{o?.collectSubMenu(t,r.value)}),yi(()=>{o?.removeSubMenu(t)})):n==="popupMenu"&&gn(()=>{o?.reportMenuData(r.value)}),{menuData:r,subMenuKeys:F(()=>Sne(r.value,s=>!!s.children)),menuItemKeys:F(()=>Sne(r.value,s=>!s.children))}}function s7e(e,t){const n=[],r=o=>{for(let a=0;a{f.value=b};Dt(t,()=>{kn(t.value)&&h([])});let p=[];gn(()=>{p=[...a.value];let b=[];if(r.value&&(b=c.value?a.value.slice(0,1):[...a.value]),o.value){const S=s.value.map(k=>s7e(l.value,k));S.length&&(!r.value||c.value)&&(b=c.value?S[0]:[...new Set([].concat(...S))])}b.length&&h(b)});let m=!1;Dt(a,(b,S=[])=>{if(m||!a7e(b,p)){const k=g.value.filter(C=>b.includes(C));if(r.value){const C=b.filter(x=>!S.includes(x));k.push(...C)}h(c.value?k.slice(0,1):k)}m=!0});const g=F(()=>t.value||f.value);return{openKeys:g,localOpenKeys:f,setOpenKeys:h,open(b,S){let k=[];return g.value.indexOf(b)>-1?c.value&&S===1?k=[]:k=g.value.filter(C=>C!==b):c.value&&S===1?k=[b]:k=g.value.concat([b]),h(k),k}}}const u7e=_e({name:"BaseMenu",components:{IconMenuFold:Xhe,IconMenuUnfold:Zhe},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:f,autoScrollIntoView:h,collapsedWidth:p,autoOpen:m,collapsed:g,defaultCollapsed:b,selectedKeys:S,defaultSelectedKeys:k,openKeys:C,defaultOpenKeys:x,triggerProps:E,tooltipProps:_,autoOpenSelected:A,breakpoint:R,popupMaxHeight:M,prefixCls:D,inTrigger:N,siderCollapsed:L,isRoot:B}=Qt(e),{subMenuKeys:U,menuData:W}=Jhe({type:B.value?"menu":"popupMenu"}),[V,z]=aa(k.value,qt({value:S})),{openKeys:Y,setOpenKeys:oe,open:ne}=l7e(qt({modelValue:C,defaultValue:x,autoOpen:m,autoOpenSelected:A,selectedKeys:V,subMenuKeys:U,menuData:W,accordion:l})),[X,K]=aa(b.value,qt({value:g})),re=F(()=>L.value||X.value||o.value==="popButton"),ee=F(()=>["horizontal","popButton"].indexOf(o.value)<0&&!N.value&&c.value),le=(Xe,He)=>{Xe!==X.value&&(K(Xe),t("update:collapsed",Xe),t("collapse",Xe,He))},Q=()=>{le(!X.value,"clickTrigger")};Whe(R,Xe=>{le(!Xe,"responsive")});const ye=F(()=>D?.value||Ae("menu")),be=F(()=>[ye.value,`${ye.value}-${a?.value}`,{[`${ye.value}-horizontal`]:o.value==="horizontal",[`${ye.value}-vertical`]:o.value!=="horizontal",[`${ye.value}-collapsed`]:re.value,[`${ye.value}-pop`]:o.value==="pop"||re.value,[`${ye.value}-pop-button`]:o.value==="popButton"}]),ve=F(()=>{const Xe=Ke(p.value)?`${p.value}px`:void 0,He=fr(r.value)?r.value:void 0,ke=re.value?Xe:He?.width;return[He?ya(He,["width"]):r.value,{width:ke}]}),Ce=hd(n,"expand-icon-down"),De=hd(n,"expand-icon-right"),We=qt({theme:a,mode:o,levelIndent:s,autoScrollIntoView:h,selectedKeys:V,openKeys:Y,prefixCls:ye,scrollConfig:f,inTrigger:N,collapsed:re,triggerProps:E,tooltipProps:_,popupMaxHeight:M,expandIconDown:Ce,expandIconRight:De,onMenuItemClick:Xe=>{z([Xe]),t("update:selectedKeys",[Xe]),t("menu-item-click",Xe)},onSubMenuClick:(Xe,He)=>{const ke=ne(Xe,He);oe(ke),t("update:openKeys",ke),t("sub-menu-click",Xe,ke)}});return Xr(Mz,We),Oz(1),{computedPrefixCls:ye,classNames:be,computedStyle:ve,computedCollapsed:re,computedHasCollapseButton:ee,onCollapseBtnClick:Q}}});function c7e(e,t,n,r,o,a){const s=Pe("IconMenuUnfold"),l=Pe("IconMenuFold");return H(),J("div",Bt({class:e.classNames},e.$attrs,{style:e.computedStyle}),[I("div",{class:ae(`${e.computedPrefixCls}-inner`)},[ct(e.$slots,"default")],2),e.computedHasCollapseButton?(H(),J("div",{key:0,class:ae(`${e.computedPrefixCls}-collapse-button`),onClick:t[0]||(t[0]=(...c)=>e.onCollapseBtnClick&&e.onCollapseBtnClick(...c))},[ct(e.$slots,"collapse-icon",{collapsed:e.computedCollapsed},()=>[e.computedCollapsed?(H(),Ye(s,{key:0})):(H(),Ye(l,{key:1}))])],2)):Re("v-if",!0)],16)}var fj=Oe(u7e,[["render",c7e]]);function kne(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 Ug(){return In(Mz)||{}}const d7e=(()=>{let e=0;return(t="")=>(e+=1,`${t}${e}`)})();function X3(){const e=fo();return{key:F(()=>e?.vnode.key||d7e("__arco_menu"))}}const f7e=_e({name:"MenuIndent",props:{level:{type:Number,default:1}},setup(){const e=Ae("menu"),t=Ug();return{prefixCls:e,levelIndent:Cu(t,"levelIndent")}}});function h7e(e,t,n,r,o,a){return e.level>1?(H(),J("span",{key:0,class:ae(`${e.prefixCls}-indent-list`)},[(H(!0),J(Ut,null,mn(e.level-1,s=>(H(),J("span",{key:s,class:ae(`${e.prefixCls}-indent`),style:je(`width: ${e.levelIndent}px`)},null,6))),128))],2)):Re("v-if",!0)}var Z3=Oe(f7e,[["render",h7e]]);const p7e=_e({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 v7e(e,t,n,r,o,a){return H(),Ye(Is,{onBeforeEnter:e.onBeforeEnter,onEnter:e.onEnter,onAfterEnter:e.onAfterEnter,onBeforeLeave:e.onBeforeLeave,onLeave:e.onLeave,onAfterLeave:e.onAfterLeave},{default:de(()=>[ct(e.$slots,"default")]),_:3},8,["onBeforeEnter","onEnter","onAfterEnter","onBeforeLeave","onLeave","onAfterLeave"])}var m7e=Oe(p7e,[["render",v7e]]);const g7e=_e({name:"SubMenuInline",components:{MenuIndent:Z3,ExpandTransition:m7e},props:{title:{type:String},isChildrenSelected:{type:Boolean}},setup(e){const{key:t}=X3(),{level:n}=Uk({provideNextLevel:!0}),r=Ug(),o=F(()=>r.prefixCls),a=F(()=>`${o.value}-inline`),s=F(()=>[a.value]),l=F(()=>e.isChildrenSelected),c=F(()=>(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 y7e(e,t,n,r,o,a){const s=Pe("MenuIndent"),l=Pe("ExpandTransition");return H(),J("div",{class:ae(e.classNames)},[I("div",{class:ae([`${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?(H(),J(Ut,{key:0},[I("span",{class:ae(`${e.menuPrefixCls}-icon`)},[ct(e.$slots,"icon")],2),I("span",{class:ae(`${e.menuPrefixCls}-title`)},[ct(e.$slots,"title",{},()=>[ze(Be(e.title),1)])],2)],64)):ct(e.$slots,"title",{key:1},()=>[ze(Be(e.title),1)]),I("span",{class:ae([`${e.menuPrefixCls}-icon-suffix`,{"is-open":e.isOpen}])},[ct(e.$slots,"expand-icon-down")],2)],2),O(l,null,{default:de(()=>[Ai(I("div",{class:ae(`${e.prefixCls}-content`)},[ct(e.$slots,"default")],2),[[ns,e.isOpen]])]),_:3})],2)}var b7e=Oe(g7e,[["render",y7e]]);const _7e=_e({name:"SubMenuPop",components:{Menu:fj,Trigger:la,MenuIndent:Z3,RenderFunction:Vh},inheritAttrs:!1,props:{title:{type:String},selectable:{type:Boolean},isChildrenSelected:{type:Boolean},popupMaxHeight:{type:[Boolean,Number],default:void 0}},setup(e){const{key:t}=X3(),{level:n}=Uk(),{selectable:r,isChildrenSelected:o,popupMaxHeight:a}=Qt(e),s=Ug(),{onSubMenuClick:l,onMenuItemClick:c}=s,f=F(()=>s.prefixCls),h=F(()=>s.mode),p=F(()=>s.selectedKeys||[]),m=F(()=>`${f.value}-pop`),g=F(()=>r.value&&p.value.includes(t.value)||o.value),b=F(()=>[`${m.value}`,`${m.value}-header`,{[`${f.value}-selected`]:g.value}]),S=F(()=>h.value==="horizontal"&&!s.inTrigger),k=fe(!1),C=A=>{k.value=A},x=Ae("trigger"),E=F(()=>{var A;return[`${m.value}-trigger`,{[`${m.value}-trigger-dark`]:s.theme==="dark"},(A=s.triggerProps)==null?void 0:A.class]}),_=F(()=>ya(s.triggerProps||{},["class"]));return{menuPrefixCls:f,mode:h,level:n,classNames:b,isSelected:g,selectedKeys:p,needPopOnBottom:S,popVisible:k,triggerPrefixCls:x,triggerClassNames:E,triggerProps:_,menuContext:s,popupMenuStyles:F(()=>{var A;const R=(A=a.value)!=null?A:s.popupMaxHeight;return Ke(R)?{maxHeight:`${R}px`}:R?{}:{maxHeight:"unset"}}),onClick:()=>{l&&l(t.value,n.value),r.value&&c&&c(t.value)},onMenuItemClick:A=>{c&&c(A),C(!1)},onVisibleChange:A=>{C(A)}}}});function S7e(e,t,n,r,o,a){const s=Pe("MenuIndent"),l=Pe("RenderFunction"),c=Pe("Menu"),f=Pe("Trigger");return H(),Ye(f,Bt({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:je(e.popupMenuStyles),onMenuItemClick:e.onMenuItemClick},_o({default:de(()=>[ct(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",Bt({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))}),[Re(" header "),O(s,{level:e.level},null,8,["level"]),e.$slots.icon?(H(),J(Ut,{key:0},[I("span",{class:ae(`${e.menuPrefixCls}-icon`)},[ct(e.$slots,"icon")],2),I("span",{class:ae(`${e.menuPrefixCls}-title`)},[ct(e.$slots,"title",{},()=>[ze(Be(e.title),1)])],2)],64)):ct(e.$slots,"title",{key:1},()=>[ze(Be(e.title),1)]),Re(" suffix "),I("span",{class:ae(`${e.menuPrefixCls}-icon-suffix`)},[e.needPopOnBottom?ct(e.$slots,"expand-icon-down",{key:0}):ct(e.$slots,"expand-icon-right",{key:1})],2),e.isSelected&&e.mode==="horizontal"?(H(),J("div",{key:2,class:ae(`${e.menuPrefixCls}-selected-label`)},null,2)):Re("v-if",!0)],16)]),_:3},16,["class","position","popup-visible","onPopupVisibleChange"])}var k7e=Oe(_7e,[["render",S7e]]),HS=_e({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}=X3(),{level:r}=Uk(),{popup:o}=Qt(e),a=Ug(),s=F(()=>{const{mode:h,collapsed:p,inTrigger:m}=a;return!!(typeof o.value=="function"?o.value(r.value):o.value)||p||m||h!=="vertical"}),{subMenuKeys:l,menuItemKeys:c}=Jhe({key:n.value,type:"subMenu"}),f=F(()=>{const h=a.selectedKeys||[],p=m=>{for(let g=0;g[O(Av,null,null)]),"expand-icon-right":this.$slots["expand-icon-right"]||a||(()=>[O(Ni,null,null)])};return r?O(k7e,Bt({key:n,title:e.title,selectable:e.selectable,isChildrenSelected:s,popupMaxHeight:e.popupMaxHeight},t),l):O(b7e,Bt({key:n,title:e.title,isChildrenSelected:s},t),l)}});const w7e=10;function wne(e){return e&&+e.getBoundingClientRect().width.toFixed(2)}function Cne(e){const t=Number(e.replace("px",""));return Number.isNaN(t)?0:t}var C7e=_e({name:"MenuOverflowWrap",setup(e,{slots:t}){const r=`${Ug().prefixCls}-overflow`,o=`${r}-sub-menu`,a=`${r}-hidden-menu-item`,s=`${r}-sub-menu-mirror`,l=fe(),c=fe(null),f=fe();function h(){const p=l.value,m=wne(p),g=[].slice.call(p.children);let b=0,S=0,k=0;for(let C=0;C-1,A=E.indexOf(s)>-1;if(_)continue;const R=wne(x)+Cne(kne(x,"marginLeft"))+Cne(kne(x,"marginRight"));if(A){k=R;continue}if(S+=R,S+k+w7e>m){c.value=b-1;return}b++}c.value=null}return gn(()=>{h(),f.value=new A3(p=>{p.forEach(h)}),l.value&&f.value.observe(l.value)}),yi(()=>{f.value&&f.value.disconnect()}),()=>{const p=(g,b)=>{const{isMirror:S=!1,props:k={}}=b||{};return O(HS,Bt({key:`__arco-menu-overflow-sub-menu${S?"-mirror":""}`,class:S?s:o},k),{title:()=>O("span",null,[ze("...")]),default:()=>g})},m=()=>{var g;const b=((g=t.default)==null?void 0:g.call(t))||[],S=p5e(b);let k=null;const C=p(null,{isMirror:!0}),x=S.map((E,_)=>{const A=yl(E,c.value!==null&&_>c.value?{class:a}:{class:""});if(c.value!==null&&_===c.value+1){const R=S.slice(_).map(M=>yl(M));k=p(R)}return A});return[C,...x,k]};return O("div",{class:`${r}-wrap`,ref:l},[m()])}}}),JD=_e({name:"Menu",components:{BaseMenu:fj},inheritAttrs:!1,props:{theme:{type:String},mode:{type:String,default:"vertical"}},setup(e,{attrs:t,slots:n}){const{theme:r,mode:o}=Qt(e),a=In(Fhe,void 0),s=F(()=>a?.collapsed||!1),l=F(()=>r?.value||a?.theme||"light");return Xr(Mz,void 0),Xr(Dz,void 0),()=>O(fj,Bt(e,t,{theme:l.value,inTrigger:!1,siderCollapsed:s.value,isRoot:!0}),{...n,default:o.value==="horizontal"&&n.default?()=>O(C7e,null,{default:()=>{var c;return[(c=n.default)==null?void 0:c.call(n)]}}):n.default})}}),C4=_e({name:"MenuItem",inheritAttrs:!1,props:{disabled:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:t}){const{key:n}=X3(),{level:r}=Uk(),o=Ug(),a=fe(),s=F(()=>(o.selectedKeys||[]).indexOf(n.value)>-1),l=Qhe();gn(()=>{l?.collectMenuItem(n.value)}),yi(()=>{l?.removeMenuItem(n.value)});function c(){o.autoScrollIntoView&&a.value&&s.value&&_he(a.value,{behavior:"smooth",block:"nearest",scrollMode:"if-needed",boundary:document.documentElement,...o.scrollConfig||{}})}let f;return gn(()=>{f=setTimeout(()=>{c()},500)}),yi(()=>{clearTimeout(f)}),Dt([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:f,mode:h,tooltipProps:p}=r,m=c&&!f&&n===1,g=h==="vertical"&&n>1,b=((t=(e=this.$slots).default)==null?void 0:t.call(e))||[],S=g&&!f&&!c,k=this.$slots.icon&&this.$slots.icon(),C=[S&&O(Z3,{level:n},null),k&&O("span",{class:`${l}-icon`},[k]),S||k?O("span",{class:[`${l}-item-inner`,{[`${l}-title`]:k}]},[b]):b].filter(Boolean),x=O("div",Bt({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(m){const E=[`${l}-item-tooltip`,p?.class];return O(Uc,Bt({trigger:"hover",position:"right",class:E},ya(p||{},["class"])),{default:()=>x,content:()=>b})}return x}});const x7e=_e({name:"MenuItemGroup",components:{MenuIndent:Z3},props:{title:{type:String}},setup(){const{level:e}=Uk(),t=F(()=>e.value===1?e.value+1:e.value);Oz(t);const n=Ug(),r=F(()=>n.prefixCls),o=F(()=>[`${r.value}-group`]);return{prefixCls:r,classNames:o,level:e}}});function E7e(e,t,n,r,o,a){const s=Pe("MenuIndent");return H(),J("div",{class:ae(e.classNames)},[I("div",{class:ae(`${e.prefixCls}-group-title`)},[O(s,{level:e.level},null,8,["level"]),ct(e.$slots,"title",{},()=>[ze(Be(e.title),1)])],2),ct(e.$slots,"default")],2)}var x4=Oe(x7e,[["render",E7e]]);const T7e=Object.assign(JD,{Item:C4,ItemGroup:x4,SubMenu:HS,install:(e,t)=>{Wn(e,t);const n=Hn(t);e.component(n+JD.name,JD),e.component(n+C4.name,C4),e.component(n+x4.name,x4),e.component(n+HS.name,HS)}}),A7e=_e({name:"Message",components:{AIconHover:ko,IconInfoCircleFill:z1,IconCheckCircleFill:jh,IconExclamationCircleFill:kf,IconCloseCircleFill:Fg,IconClose:ms,IconLoading:za},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=Ae("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 gn(()=>{a()}),Ga(()=>{e.resetOnUpdate&&(s(),a())}),yi(()=>{s()}),{handleMouseEnter:()=>{e.resetOnHover&&s()},handleMouseLeave:()=>{e.resetOnHover&&a()},prefixCls:n,handleClose:o}}});function I7e(e,t,n,r,o,a){const s=Pe("icon-info-circle-fill"),l=Pe("icon-check-circle-fill"),c=Pe("icon-exclamation-circle-fill"),f=Pe("icon-close-circle-fill"),h=Pe("icon-loading"),p=Pe("icon-close"),m=Pe("a-icon-hover");return H(),J("li",{role:"alert",class:ae([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)?(H(),J("span",{key:0,class:ae(`${e.prefixCls}-icon`)},[ct(e.$slots,"icon",{},()=>[e.type==="info"?(H(),Ye(s,{key:0})):e.type==="success"?(H(),Ye(l,{key:1})):e.type==="warning"?(H(),Ye(c,{key:2})):e.type==="error"?(H(),Ye(f,{key:3})):e.type==="loading"?(H(),Ye(h,{key:4})):Re("v-if",!0)])],2)):Re("v-if",!0),I("span",{class:ae(`${e.prefixCls}-content`)},[ct(e.$slots,"default")],2),e.closable?(H(),J("span",{key:1,class:ae(`${e.prefixCls}-close-btn`),onClick:t[0]||(t[0]=(...g)=>e.handleClose&&e.handleClose(...g))},[O(m,null,{default:de(()=>[O(p)]),_:1})],2)):Re("v-if",!0)],34)}var L7e=Oe(A7e,[["render",I7e]]);function P7e(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Bi(e)}var R7e=_e({name:"MessageList",props:{messages:{type:Array,default:()=>[]},position:{type:String,default:"top"}},emits:["close","afterClose"],setup(e,t){const n=Ae("message-list"),{zIndex:r}=H1("message",{runOnMounted:!0});return()=>{let o;return O(V1,{class:[n,`${n}-${e.position}`],name:"fade-message",tag:"ul",style:{zIndex:r.value},onAfterLeave:()=>t.emit("afterClose")},P7e(o=e.messages.map(a=>{const s={default:Bl(a.content),icon:Bl(a.icon)};return O(L7e,{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 M7e{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=qt({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&&(jc(null,this.container),document.body.removeChild(this.container),this.container=null,Gy[this.position]=void 0)};const{position:r="top"}=t;this.container=R3("message"),this.messageIds=new Set,this.messages=fe([]),this.position=r;const o=O(R7e,{messages:this.messages.value,position:r,onClose:this.remove,onAfterClose:this.destroy});(n??Pt._context)&&(o.appContext=n??Pt._context),jc(o,this.container),document.body.appendChild(this.container)}}const Gy={},epe=[...D3,"loading","normal"],E4=epe.reduce((e,t)=>(e[t]=(n,r)=>{is(n)&&(n={content:n});const o={type:t,...n},{position:a="top"}=o;return Gy[a]||(Gy[a]=new M7e(o,r)),Gy[a].add(o)},e),{});E4.clear=e=>{var t;e?(t=Gy[e])==null||t.clear():Object.values(Gy).forEach(n=>n?.clear())};const Pt={...E4,install:e=>{const t={clear:E4.clear};for(const n of epe)t[n]=(r,o=e._context)=>E4[n](r,o);e.config.globalProperties.$message=t},_context:null},D7e=({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]),f=fe([0,0]),h=()=>{var b,S,k;if(t.value&&e.value){const{top:C,left:x}=t.value.getBoundingClientRect(),{clientWidth:E,clientHeight:_}=t.value,{top:A,left:R,width:M,height:D}=e.value.getBoundingClientRect(),N=r.value?0:(b=e.value)==null?void 0:b.offsetTop,L=R-x,B=A-C-N;(L!==((S=s.value)==null?void 0:S[0])||B!==((k=s.value)==null?void 0:k[1]))&&(s.value=[L,B]);const U=E>M?E-M:0,W=_>D?_-D-N:0;(U!==f.value[0]||W!==f.value[1])&&(f.value=[U,W]),N&&(c.value=[0,0-N])}},p=b=>{n.value&&(b.preventDefault(),o.value=!0,h(),a.value=[b.x,b.y],Ti(window,"mousemove",m),Ti(window,"mouseup",g),Ti(window,"contextmenu",g))},m=b=>{if(o.value){const S=b.x-a.value[0],k=b.y-a.value[1];let C=s.value[0]+S,x=s.value[1]+k;Cf.value[0]&&(C=f.value[0]),xf.value[1]&&(x=f.value[1]),l.value=[C,x]}},g=()=>{o.value=!1,Yi(window,"mousemove",m),Yi(window,"mouseup",g)};return{position:l,handleMoveDown:p}};var O7e=_e({name:"Modal",components:{ClientOnly:az,ArcoButton:Ho,IconHover:ko,IconClose:ms,IconInfoCircleFill:z1,IconCheckCircleFill:jh,IconExclamationCircleFill:kf,IconCloseCircleFill:Fg},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}=Qt(e),a=Ae("modal"),{t:s}=Lo(),l=fe(),c=fe(),f=fe(e.defaultVisible),h=F(()=>{var ye;return(ye=e.visible)!=null?ye:f.value}),p=fe(!1),m=F(()=>e.okLoading||p.value),g=F(()=>e.draggable&&!e.fullscreen),{teleportContainer:b,containerRef:S}=lz({popupContainer:r,visible:h}),k=fe(h.value),C=F(()=>e.okText||s("modal.okText")),x=F(()=>e.cancelText||s("modal.cancelText")),{zIndex:E,isLastDialog:_}=H1("dialog",{visible:h});let A=!1;const R=ye=>{e.escToClose&&ye.key===No.ESC&&_()&&V(ye)},M=()=>{e.escToClose&&!A&&(A=!0,Ti(document.documentElement,"keydown",R))},D=()=>{A=!1,Yi(document.documentElement,"keydown",R)};let N=0;const{position:L,handleMoveDown:B}=D7e({wrapperRef:l,modalRef:c,draggable:g,alignCenter:o}),U=()=>{N++,p.value&&(p.value=!1),f.value=!1,t("update:visible",!1)},W=async ye=>{const be=N,ve=await new Promise(async Ce=>{var De;if(_n(e.onBeforeOk)){let We=e.onBeforeOk((Xe=!0)=>Ce(Xe));if((gg(We)||!bl(We))&&(p.value=!0),gg(We))try{We=(De=await We)!=null?De:!0}catch(Xe){throw We=!1,Xe}bl(We)&&Ce(We)}else Ce(!0)});be===N&&(ve?(t("ok",ye),U()):p.value&&(p.value=!1))},V=ye=>{var be;let ve=!0;_n(e.onBeforeCancel)&&(ve=(be=e.onBeforeCancel())!=null?be:!1),ve&&(t("cancel",ye),U())},z=fe(!1),Y=ye=>{ye.target===l.value&&(z.value=!0)},oe=ye=>{e.mask&&e.maskClosable&&z.value&&V(ye)},ne=()=>{h.value&&(!v5e(l.value,document.activeElement)&&document.activeElement instanceof HTMLElement&&document.activeElement.blur(),t("open"))},X=()=>{h.value||(g.value&&(L.value=void 0),k.value=!1,re(),t("close"))},{setOverflowHidden:K,resetOverflow:re}=yhe(S);gn(()=>{S.value=Qd(e.popupContainer),h.value&&(K(),e.escToClose&&M())}),Fo(()=>{re(),D()}),Dt(h,ye=>{f.value!==ye&&(f.value=ye),ye?(t("beforeOpen"),k.value=!0,z.value=!1,K(),M()):(t("beforeClose"),D())}),Dt(n,()=>{L.value&&(L.value=void 0)});const ee=F(()=>[`${a}-wrapper`,{[`${a}-wrapper-align-center`]:e.alignCenter&&!e.fullscreen,[`${a}-wrapper-moved`]:!!L.value}]),le=F(()=>[`${a}`,e.modalClass,{[`${a}-simple`]:e.simple,[`${a}-draggable`]:g.value,[`${a}-fullscreen`]:e.fullscreen}]),Q=F(()=>{var ye;const be={...(ye=e.modalStyle)!=null?ye:{}};return e.width&&!e.fullscreen&&(be.width=Ke(e.width)?`${e.width}px`:e.width),!e.alignCenter&&e.top&&(be.top=Ke(e.top)?`${e.top}px`:e.top),L.value&&(be.transform=`translate(${L.value[0]}px, ${L.value[1]}px)`),be});return{prefixCls:a,mounted:k,computedVisible:h,containerRef:S,wrapperRef:l,mergedModalStyle:Q,okDisplayText:C,cancelDisplayText:x,zIndex:E,handleOk:W,handleCancel:V,handleMaskClick:oe,handleMaskMouseDown:Y,handleOpen:ne,handleClose:X,mergedOkLoading:m,modalRef:c,wrapperCls:ee,modalCls:le,teleportContainer:b,handleMoveDown:B}}});function $7e(e,t,n,r,o,a){const s=Pe("icon-info-circle-fill"),l=Pe("icon-check-circle-fill"),c=Pe("icon-exclamation-circle-fill"),f=Pe("icon-close-circle-fill"),h=Pe("icon-close"),p=Pe("icon-hover"),m=Pe("arco-button"),g=Pe("client-only");return H(),Ye(g,null,{default:de(()=>[(H(),Ye($g,{to:e.teleportContainer,disabled:!e.renderToBody},[!e.unmountOnClose||e.computedVisible||e.mounted?Ai((H(),J("div",Bt({key:0,class:`${e.prefixCls}-container`,style:{zIndex:e.zIndex}},e.$attrs),[O(Is,{name:e.maskAnimationName,appear:""},{default:de(()=>[e.mask?Ai((H(),J("div",{key:0,ref:"maskRef",class:ae(`${e.prefixCls}-mask`),style:je(e.maskStyle)},null,6)),[[ns,e.computedVisible]]):Re("v-if",!0)]),_:1},8,["name"]),I("div",{ref:"wrapperRef",class:ae(e.wrapperCls),onClick:t[2]||(t[2]=rs((...b)=>e.handleMaskClick&&e.handleMaskClick(...b),["self"])),onMousedown:t[3]||(t[3]=rs((...b)=>e.handleMaskMouseDown&&e.handleMaskMouseDown(...b),["self"]))},[O(Is,{name:e.modalAnimationName,appear:"",onAfterEnter:e.handleOpen,onAfterLeave:e.handleClose,persisted:""},{default:de(()=>[Ai(I("div",{ref:"modalRef",class:ae(e.modalCls),style:je(e.mergedModalStyle)},[!e.hideTitle&&(e.$slots.title||e.title||e.closable)?(H(),J("div",{key:0,class:ae(`${e.prefixCls}-header`),onMousedown:t[1]||(t[1]=(...b)=>e.handleMoveDown&&e.handleMoveDown(...b))},[e.$slots.title||e.title?(H(),J("div",{key:0,class:ae([`${e.prefixCls}-title`,`${e.prefixCls}-title-align-${e.titleAlign}`])},[e.messageType?(H(),J("div",{key:0,class:ae(`${e.prefixCls}-title-icon`)},[e.messageType==="info"?(H(),Ye(s,{key:0})):Re("v-if",!0),e.messageType==="success"?(H(),Ye(l,{key:1})):Re("v-if",!0),e.messageType==="warning"?(H(),Ye(c,{key:2})):Re("v-if",!0),e.messageType==="error"?(H(),Ye(f,{key:3})):Re("v-if",!0)],2)):Re("v-if",!0),ct(e.$slots,"title",{},()=>[ze(Be(e.title),1)])],2)):Re("v-if",!0),!e.simple&&e.closable?(H(),J("div",{key:1,tabindex:"-1",role:"button","aria-label":"Close",class:ae(`${e.prefixCls}-close-btn`),onClick:t[0]||(t[0]=(...b)=>e.handleCancel&&e.handleCancel(...b))},[O(p,null,{default:de(()=>[O(h)]),_:1})],2)):Re("v-if",!0)],34)):Re("v-if",!0),I("div",{class:ae([`${e.prefixCls}-body`,e.bodyClass]),style:je(e.bodyStyle)},[ct(e.$slots,"default")],6),e.footer?(H(),J("div",{key:1,class:ae(`${e.prefixCls}-footer`)},[ct(e.$slots,"footer",{},()=>[e.hideCancel?Re("v-if",!0):(H(),Ye(m,Bt({key:0},e.cancelButtonProps,{onClick:e.handleCancel}),{default:de(()=>[ze(Be(e.cancelDisplayText),1)]),_:1},16,["onClick"])),O(m,Bt({type:"primary"},e.okButtonProps,{loading:e.mergedOkLoading,onClick:e.handleOk}),{default:de(()=>[ze(Be(e.okDisplayText),1)]),_:1},16,["loading","onClick"])])],2)):Re("v-if",!0)],6),[[ns,e.computedVisible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],34)],16)),[[ns,e.computedVisible||e.mounted]]):Re("v-if",!0)],8,["to","disabled"]))]),_:3})}var T4=Oe(O7e,[["render",$7e]]);const e6=(e,t)=>{let n=R3("modal");const r=()=>{f.component&&(f.component.props.visible=!1),_n(e.onOk)&&e.onOk()},o=()=>{f.component&&(f.component.props.visible=!1),_n(e.onCancel)&&e.onCancel()},a=async()=>{await yn(),n&&(jc(null,n),document.body.removeChild(n)),n=null,_n(e.onClose)&&e.onClose()},s=()=>{f.component&&(f.component.props.visible=!1)},l=h=>{f.component&&Object.entries(h).forEach(([p,m])=>{f.component.props[p]=m})},f=O(T4,{...{visible:!0,renderToBody:!1,unmountOnClose:!0,onOk:r,onCancel:o,onClose:a},...ya(e,["content","title","footer","visible","unmountOnClose","onOk","onCancel","onClose"]),footer:typeof e.footer=="boolean"?e.footer:void 0},{default:Bl(e.content),title:Bl(e.title),footer:typeof e.footer!="boolean"?Bl(e.footer):void 0});return(t??gf._context)&&(f.appContext=t??gf._context),jc(f,n),document.body.appendChild(n),{close:s,update:l}},t6={open:e6,confirm:(e,t)=>{const n={simple:!0,messageType:"warning",...e};return e6(n,t)},...D3.reduce((e,t)=>(e[t]=(n,r)=>{const o={simple:!0,hideCancel:!0,messageType:t,...n};return e6(o,r)},e),{})},gf=Object.assign(T4,{...t6,install:(e,t)=>{Wn(e,t);const n=Hn(t);e.component(n+T4.name,T4);const r={};for(const o of Object.keys(t6))r[o]=(a,s=e._context)=>t6[o](a,s);e.config.globalProperties.$modal=r},_context:null}),N7e=e=>e.replace(/\B([A-Z])/g,"-$1").toLowerCase(),B7e=_e({name:"Notification",components:{AIconHover:ko,IconInfoCircleFill:z1,IconCheckCircleFill:jh,IconExclamationCircleFill:kf,IconCloseCircleFill:Fg,IconClose:ms},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=Ae("notification");let r=0;const o=()=>{t.emit("close")};return gn(()=>{e.duration>0&&(r=window.setTimeout(o,e.duration))}),Ga(()=>{e.resetOnUpdate&&(r&&(window.clearTimeout(r),r=0),e.duration>0&&(r=window.setTimeout(o,e.duration)))}),yi(()=>{r&&window.clearTimeout(r)}),{prefixCls:n,handleClose:o}}});function F7e(e,t,n,r,o,a){const s=Pe("icon-info-circle-fill"),l=Pe("icon-check-circle-fill"),c=Pe("icon-exclamation-circle-fill"),f=Pe("icon-close-circle-fill"),h=Pe("icon-close"),p=Pe("a-icon-hover");return H(),J("li",{role:"alert",class:ae([e.prefixCls,`${e.prefixCls}-${e.type}`,{[`${e.prefixCls}-closable`]:e.closable}])},[e.showIcon?(H(),J("div",{key:0,class:ae(`${e.prefixCls}-left`)},[I("div",{class:ae(`${e.prefixCls}-icon`)},[ct(e.$slots,"icon",{},()=>[e.type==="info"?(H(),Ye(s,{key:0})):e.type==="success"?(H(),Ye(l,{key:1})):e.type==="warning"?(H(),Ye(c,{key:2})):e.type==="error"?(H(),Ye(f,{key:3})):Re("v-if",!0)])],2)],2)):Re("v-if",!0),I("div",{class:ae(`${e.prefixCls}-right`)},[e.$slots.default?(H(),J("div",{key:0,class:ae(`${e.prefixCls}-title`)},[ct(e.$slots,"default")],2)):Re("v-if",!0),e.$slots.content?(H(),J("div",{key:1,class:ae(`${e.prefixCls}-content`)},[ct(e.$slots,"content")],2)):Re("v-if",!0),e.$slots.footer?(H(),J("div",{key:2,class:ae(`${e.prefixCls}-footer`)},[ct(e.$slots,"footer")],2)):Re("v-if",!0)],2),e.closable?(H(),J("div",{key:1,class:ae(`${e.prefixCls}-close-btn`),onClick:t[0]||(t[0]=(...m)=>e.handleClose&&e.handleClose(...m))},[ct(e.$slots,"closeIconElement",{},()=>[O(p,null,{default:de(()=>[ct(e.$slots,"closeIcon",{},()=>[O(h)])]),_:3})])],2)):Re("v-if",!0)],2)}var j7e=Oe(B7e,[["render",F7e]]);const U7e=["topLeft","topRight","bottomLeft","bottomRight"];function V7e(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Bi(e)}var z7e=_e({name:"NotificationList",props:{notifications:{type:Array,default:()=>[]},position:{type:String,default:"topRight",validator:e=>U7e.includes(e)}},emits:["close","afterClose"],setup(e,t){const n=Ae("notification-list"),r=N7e(e.position),{zIndex:o}=H1("message",{runOnMounted:!0}),a=e.position.includes("Right");return()=>{let s;return O(V1,{class:[n,`${n}-${r}`],style:{zIndex:o.value},name:`slide-${a?"right":"left"}-notification`,onAfterLeave:()=>t.emit("afterClose"),tag:"ul"},V7e(s=e.notifications.map(l=>{const c={default:Bl(l.title),content:Bl(l.content),icon:Bl(l.icon),footer:Bl(l.footer),closeIcon:Bl(l.closeIcon),closeIconElement:Bl(l.closeIconElement)};return O(j7e,{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 H7e{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=qt({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&&(jc(null,this.container),document.body.removeChild(this.container),this.container=null,ig[this.position]=void 0)};const{position:r="topRight"}=t;this.container=R3("notification"),this.notificationIds=new Set,this.notifications=fe([]),this.position=r;const o=O(z7e,{notifications:this.notifications.value,position:r,onClose:this.remove,onAfterClose:this.destroy});(n??hj._context)&&(o.appContext=n??hj._context),jc(o,this.container),document.body.appendChild(this.container)}}const ig={},WS=D3.reduce((e,t)=>(e[t]=(n,r)=>{is(n)&&(n={content:n});const o={type:t,...n},{position:a="topRight"}=o;return ig[a]||(ig[a]=new H7e(o,r)),ig[a].add(o)},e),{});WS.remove=e=>{e&&Object.values(ig).forEach(t=>t?.remove(e))};WS.clear=e=>{var t;e?(t=ig[e])==null||t.clear():Object.values(ig).forEach(n=>n?.clear())};const hj={...WS,install:e=>{const t={clear:WS.clear};for(const n of D3)t[n]=(r,o=e._context)=>WS[n](r,o);e.config.globalProperties.$notification=t},_context:null},W7e=_e({name:"PageHeader",components:{AIconHover:ko,IconLeft:kl},props:{title:String,subtitle:String,showBack:{type:Boolean,default:!0}},emits:["back"],setup(e,{emit:t,slots:n}){const r=Ae("page-header"),o=s=>{t("back",s)},a=F(()=>[r,{[`${r}-with-breadcrumb`]:!!n.breadcrumb,[`${r}-with-content`]:!!n.default}]);return{prefixCls:r,cls:a,handleBack:o}}});function G7e(e,t,n,r,o,a){const s=Pe("icon-left"),l=Pe("a-icon-hover");return H(),J("div",{class:ae(e.cls)},[I("div",{class:ae(`${e.prefixCls}-wrapper`)},[e.$slots.breadcrumb?(H(),J("div",{key:0,class:ae(`${e.prefixCls}-breadcrumb`)},[ct(e.$slots,"breadcrumb")],2)):Re("v-if",!0),I("div",{class:ae(`${e.prefixCls}-header`)},[I("span",{class:ae(`${e.prefixCls}-main`)},[e.showBack?(H(),Ye(l,{key:0,class:ae(`${e.prefixCls}-back-btn`),prefix:e.prefixCls,onClick:e.handleBack},{default:de(()=>[ct(e.$slots,"back-icon",{},()=>[O(s)])]),_:3},8,["class","prefix","onClick"])):Re("v-if",!0),I("span",{class:ae(`${e.prefixCls}-title`)},[ct(e.$slots,"title",{},()=>[ze(Be(e.title),1)])],2),e.$slots.subtitle||e.subtitle?(H(),J("span",{key:1,class:ae(`${e.prefixCls}-divider`)},null,2)):Re("v-if",!0),e.$slots.subtitle||e.subtitle?(H(),J("span",{key:2,class:ae(`${e.prefixCls}-subtitle`)},[ct(e.$slots,"subtitle",{},()=>[ze(Be(e.subtitle),1)])],2)):Re("v-if",!0)],2),e.$slots.extra?(H(),J("span",{key:0,class:ae(`${e.prefixCls}-extra`)},[ct(e.$slots,"extra")],2)):Re("v-if",!0)],2)],2),e.$slots.default?(H(),J("div",{key:0,class:ae(`${e.prefixCls}-content`)},[ct(e.$slots,"default")],2)):Re("v-if",!0)],2)}var n6=Oe(W7e,[["render",G7e]]);const K7e=Object.assign(n6,{install:(e,t)=>{Wn(e,t);const n=Hn(t);e.component(n+n6.name,n6)}}),q7e=_e({name:"Popconfirm",components:{ArcoButton:Ho,Trigger:la,IconInfoCircleFill:z1,IconCheckCircleFill:jh,IconExclamationCircleFill:kf,IconCloseCircleFill:Fg},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=Ae("popconfirm"),{t:r}=Lo(),o=fe(e.defaultPopupVisible),a=F(()=>{var S;return(S=e.popupVisible)!=null?S:o.value}),s=fe(!1),l=F(()=>e.okLoading||s.value);let c=0;const f=()=>{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)):f()},p=async()=>{const S=c,k=await new Promise(async C=>{var x;if(_n(e.onBeforeOk)){let E=e.onBeforeOk((_=!0)=>C(_));if((gg(E)||!bl(E))&&(s.value=!0),gg(E))try{E=(x=await E)!=null?x:!0}catch(_){throw E=!1,_}bl(E)&&C(E)}else C(!0)});S===c&&(k?(t("ok"),f()):s.value&&(s.value=!1))},m=()=>{var S;let k=!0;_n(e.onBeforeCancel)&&(k=(S=e.onBeforeCancel())!=null?S:!1),k&&(t("cancel"),f())},g=F(()=>[`${n}-popup-content`,e.contentClass]),b=F(()=>[`${n}-popup-arrow`,e.arrowClass]);return{prefixCls:n,contentCls:g,arrowCls:b,computedPopupVisible:a,mergedOkLoading:l,handlePopupVisibleChange:h,handleOk:p,handleCancel:m,t:r}}});function Y7e(e,t,n,r,o,a){const s=Pe("icon-info-circle-fill"),l=Pe("icon-check-circle-fill"),c=Pe("icon-exclamation-circle-fill"),f=Pe("icon-close-circle-fill"),h=Pe("arco-button"),p=Pe("trigger");return H(),Ye(p,{class:ae(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:ae(`${e.prefixCls}-body`)},[I("span",{class:ae(`${e.prefixCls}-icon`)},[ct(e.$slots,"icon",{},()=>[e.type==="info"?(H(),Ye(s,{key:0})):e.type==="success"?(H(),Ye(l,{key:1})):e.type==="warning"?(H(),Ye(c,{key:2})):e.type==="error"?(H(),Ye(f,{key:3})):Re("v-if",!0)])],2),I("span",{class:ae(`${e.prefixCls}-content`)},[ct(e.$slots,"content",{},()=>[ze(Be(e.content),1)])],2)],2),I("div",{class:ae(`${e.prefixCls}-footer`)},[O(h,Bt({size:"mini"},e.cancelButtonProps,{onClick:e.handleCancel}),{default:de(()=>[ze(Be(e.cancelText||e.t("popconfirm.cancelText")),1)]),_:1},16,["onClick"]),O(h,Bt({type:"primary",size:"mini"},e.okButtonProps,{loading:e.mergedOkLoading,onClick:e.handleOk}),{default:de(()=>[ze(Be(e.okText||e.t("popconfirm.okText")),1)]),_:1},16,["loading","onClick"])],2)]),default:de(()=>[ct(e.$slots,"default")]),_:3},8,["class","position","popup-visible","popup-container","content-class","content-style","arrow-class","arrow-style","onPopupVisibleChange"])}var r6=Oe(q7e,[["render",Y7e]]);const X7e=Object.assign(r6,{install:(e,t)=>{Wn(e,t);const n=Hn(t);e.component(n+r6.name,r6)}}),Z7e={small:3,medium:4,large:8},Q7e=e=>{if(e)return fr(e)?{backgroundImage:`linear-gradient(to right, ${Object.keys(e).map(n=>`${e[n]} ${n}`).join(",")})`}:{backgroundColor:e}},J7e=_e({name:"ProgressLine",components:{IconExclamationCircleFill:kf},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=Ae("progress-line"),n=F(()=>e.strokeWidth!==4?e.strokeWidth:Z7e[e.size]),r=F(()=>`${zl.times(e.percent,100)}%`),o=F(()=>({width:e.width,height:`${n.value}px`,backgroundColor:e.trackColor})),a=F(()=>({width:`${e.percent*100}%`,...Q7e(e.color)}));return{prefixCls:t,style:o,barStyle:a,text:r}}}),e9e=["aria-valuenow"];function t9e(e,t,n,r,o,a){const s=Pe("icon-exclamation-circle-fill");return H(),J("div",{role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.percent,class:ae(`${e.prefixCls}-wrapper`)},[I("div",{class:ae(e.prefixCls),style:je(e.style)},[I("div",{class:ae(`${e.prefixCls}-bar-buffer`)},null,2),I("div",{class:ae([`${e.prefixCls}-bar`]),style:je(e.barStyle)},null,6)],6),e.showText?(H(),J("div",{key:0,class:ae(`${e.prefixCls}-text`)},[ct(e.$slots,"text",{percent:e.percent},()=>[ze(Be(e.text)+" ",1),e.status==="danger"?(H(),Ye(s,{key:0})):Re("v-if",!0)])],2)):Re("v-if",!0)],10,e9e)}var n9e=Oe(J7e,[["render",t9e]]);const r9e=_e({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=Ae("icon"),r=F(()=>[n,`${n}-exclamation`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),i9e=["stroke-width","stroke-linecap","stroke-linejoin"];function o9e(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,i9e)}var i6=Oe(r9e,[["render",o9e]]);const $z=Object.assign(i6,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+i6.name,i6)}}),s9e=_e({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=Ae("icon"),r=F(()=>[n,`${n}-check`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),a9e=["stroke-width","stroke-linecap","stroke-linejoin"];function l9e(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,a9e)}var o6=Oe(s9e,[["render",l9e]]);const Vg=Object.assign(o6,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+o6.name,o6)}});let xne=0;const u9e={mini:16,small:48,medium:64,large:80},c9e={mini:4,small:3,medium:4,large:4},d9e=_e({name:"ProgressCircle",components:{IconExclamation:$z,IconCheck:Vg},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=Ae("progress-circle"),n=fr(e.color),r=F(()=>{var p;return(p=e.width)!=null?p:u9e[e.size]}),o=F(()=>{var p;return(p=e.strokeWidth)!=null?p:e.size==="mini"?r.value/2:c9e[e.size]}),a=F(()=>{var p;return(p=e.pathStrokeWidth)!=null?p:e.size==="mini"?o.value:Math.max(2,o.value-2)}),s=F(()=>(r.value-o.value)/2),l=F(()=>Math.PI*2*s.value),c=F(()=>r.value/2),f=F(()=>(xne+=1,`${t}-linear-gradient-${xne}`)),h=F(()=>`${zl.times(e.percent,100)}%`);return{prefixCls:t,isLinearGradient:n,radius:s,text:h,perimeter:l,center:c,mergedWidth:r,mergedStrokeWidth:o,mergedPathStrokeWidth:a,linearGradientId:f}}}),f9e=["aria-valuenow"],h9e=["viewBox"],p9e={key:0},v9e=["id"],m9e=["offset","stop-color"],g9e=["cx","cy","r","stroke-width"],y9e=["cx","cy","r","stroke-width"];function b9e(e,t,n,r,o,a){const s=Pe("icon-check"),l=Pe("icon-exclamation");return H(),J("div",{role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.percent,class:ae(`${e.prefixCls}-wrapper`),style:je({width:`${e.mergedWidth}px`,height:`${e.mergedWidth}px`})},[e.type==="circle"&&e.size==="mini"&&e.status==="success"?(H(),Ye(s,{key:0,style:je({fontSize:e.mergedWidth-2,color:e.color})},null,8,["style"])):(H(),J("svg",{key:1,viewBox:`0 0 ${e.mergedWidth} ${e.mergedWidth}`,class:ae(`${e.prefixCls}-svg`)},[e.isLinearGradient?(H(),J("defs",p9e,[I("linearGradient",{id:e.linearGradientId,x1:"0",y1:"1",x2:"0",y2:"0"},[(H(!0),J(Ut,null,mn(Object.keys(e.color),c=>(H(),J("stop",{key:c,offset:c,"stop-color":e.color[c]},null,8,m9e))),128))],8,v9e)])):Re("v-if",!0),I("circle",{class:ae(`${e.prefixCls}-bg`),fill:"none",cx:e.center,cy:e.center,r:e.radius,"stroke-width":e.mergedPathStrokeWidth,style:je({stroke:e.trackColor})},null,14,g9e),I("circle",{class:ae(`${e.prefixCls}-bar`),fill:"none",cx:e.center,cy:e.center,r:e.radius,"stroke-width":e.mergedStrokeWidth,style:je({stroke:e.isLinearGradient?`url(#${e.linearGradientId})`:e.color,strokeDasharray:e.perimeter,strokeDashoffset:(e.percent>=1?0:1-e.percent)*e.perimeter})},null,14,y9e)],10,h9e)),e.showText&&e.size!=="mini"?(H(),J("div",{key:2,class:ae(`${e.prefixCls}-text`)},[ct(e.$slots,"text",{percent:e.percent},()=>[e.status==="danger"?(H(),Ye(l,{key:0})):e.status==="success"?(H(),Ye(s,{key:1})):(H(),J(Ut,{key:2},[ze(Be(e.text),1)],64))])],2)):Re("v-if",!0)],14,f9e)}var _9e=Oe(d9e,[["render",b9e]]);const S9e=_e({name:"ProgressSteps",components:{IconExclamationCircleFill:kf},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=Ae("progress-steps"),n=F(()=>{var a;return((a=e.strokeWidth)!=null?a:e.size==="small")?8:4}),r=F(()=>[...Array(e.steps)].map((a,s)=>e.percent>0&&e.percent>1/e.steps*s)),o=F(()=>`${zl.times(e.percent,100)}%`);return{prefixCls:t,stepList:r,mergedStrokeWidth:n,text:o}}}),k9e=["aria-valuenow"];function w9e(e,t,n,r,o,a){const s=Pe("icon-exclamation-circle-fill");return H(),J("div",{role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.percent,class:ae(`${e.prefixCls}-wrapper`)},[I("div",{class:ae(e.prefixCls),style:je({height:`${e.mergedStrokeWidth}px`})},[(H(!0),J(Ut,null,mn(e.stepList,(l,c)=>(H(),J("div",{key:c,class:ae([`${e.prefixCls}-item`,{[`${e.prefixCls}-item-active`]:l}]),style:je({backgroundColor:l?e.color:e.trackColor})},null,6))),128))],6),e.showText?(H(),J("div",{key:0,class:ae(`${e.prefixCls}-text`)},[ct(e.$slots,"text",{percent:e.percent},()=>[ze(Be(e.text)+" ",1),e.status==="danger"?(H(),Ye(s,{key:0})):Re("v-if",!0)])],2)):Re("v-if",!0)],10,k9e)}var C9e=Oe(S9e,[["render",w9e]]);const x9e=_e({name:"Progress",components:{ProgressLine:n9e,ProgressCircle:_9e,ProgressSteps:C9e},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=Ae("progress"),{size:n}=Qt(e),r=F(()=>e.steps>0?"steps":e.type),o=F(()=>e.status||(e.percent>=1?"success":"normal")),{mergedSize:a}=_a(n);return{cls:F(()=>[t,`${t}-type-${r.value}`,`${t}-size-${a.value}`,`${t}-status-${o.value}`]),computedStatus:o,mergedSize:a}}});function E9e(e,t,n,r,o,a){const s=Pe("progress-steps"),l=Pe("progress-line"),c=Pe("progress-circle");return H(),J("div",{class:ae(e.cls)},[e.steps>0?(H(),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},_o({_:2},[e.$slots.text?{name:"text",fn:de(f=>[ct(e.$slots,"text",Ui(ma(f)))]),key:"0"}:void 0]),1032,["stroke-width","percent","color","track-color","width","steps","size","show-text"])):e.type==="line"&&e.mergedSize!=="mini"?(H(),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},_o({_:2},[e.$slots.text?{name:"text",fn:de(f=>[ct(e.$slots,"text",Ui(ma(f)))]),key:"0"}:void 0]),1032,["stroke-width","animation","percent","color","track-color","size","buffer-color","width","show-text","status"])):(H(),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},_o({_:2},[e.$slots.text?{name:"text",fn:de(f=>[ct(e.$slots,"text",Ui(ma(f)))]),key:"0"}:void 0]),1032,["type","stroke-width","path-stroke-width","width","percent","color","track-color","size","show-text","status"]))],2)}var s6=Oe(x9e,[["render",E9e]]);const tpe=Object.assign(s6,{install:(e,t)=>{Wn(e,t);const n=Hn(t);e.component(n+s6.name,s6)}}),T9e=_e({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=Ae("icon"),r=F(()=>[n,`${n}-star-fill`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),A9e=["stroke-width","stroke-linecap","stroke-linejoin"];function I9e(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,A9e)}var a6=Oe(T9e,[["render",I9e]]);const Nz=Object.assign(a6,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+a6.name,a6)}}),L9e=_e({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=Ae("icon"),r=F(()=>[n,`${n}-face-meh-fill`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),P9e=["stroke-width","stroke-linecap","stroke-linejoin"];function R9e(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,P9e)}var l6=Oe(L9e,[["render",R9e]]);const pj=Object.assign(l6,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+l6.name,l6)}}),M9e=_e({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=Ae("icon"),r=F(()=>[n,`${n}-face-smile-fill`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),D9e=["stroke-width","stroke-linecap","stroke-linejoin"];function O9e(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,D9e)}var u6=Oe(M9e,[["render",O9e]]);const npe=Object.assign(u6,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+u6.name,u6)}}),$9e=_e({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=Ae("icon"),r=F(()=>[n,`${n}-face-frown-fill`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),N9e=["stroke-width","stroke-linecap","stroke-linejoin"];function B9e(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,N9e)}var c6=Oe($9e,[["render",B9e]]);const rpe=Object.assign(c6,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+c6.name,c6)}});var d6=_e({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}=Qt(e),o=Ae("rate"),{mergedDisabled:a,eventHandlers:s}=wo({disabled:Cu(e,"disabled")}),l=fe(e.defaultValue),c=fe(!1);Dt(r,D=>{(kn(D)||Sl(D))&&(l.value=0)});const f=fe(0),h=F(()=>{var D;return(D=e.modelValue)!=null?D:l.value}),p=F(()=>{const D=e.allowHalf?zl.times(zl.round(zl.divide(h.value,.5),0),.5):Math.round(h.value);return f.value||D}),m=F(()=>a.value||e.readonly),g=F(()=>[...Array(e.grading?5:e.count)]),b=F(()=>{var D;if(is(e.color))return g.value.map(()=>e.color);if(fr(e.color)){const N=Object.keys(e.color).map(B=>Number(B)).sort((B,U)=>U-B);let L=(D=N.pop())!=null?D:g.value.length;return g.value.map((B,U)=>{var W;return U+1>L&&(L=(W=N.pop())!=null?W:L),e.color[String(L)]})}}),S=()=>{f.value&&(f.value=0,t("hoverChange",0))},k=(D,N)=>{const L=N&&e.allowHalf?D+.5:D+1;L!==f.value&&(f.value=L,t("hoverChange",L))},C=(D,N)=>{var L,B,U,W;const V=N&&e.allowHalf?D+.5:D+1;c.value=!0,V!==h.value?(l.value=V,t("update:modelValue",V),t("change",V),(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=(U=s.value)==null?void 0:U.onChange)==null||W.call(U))},x=D=>{c.value&&D+1>=h.value-1&&(c.value=!1)},E=(D,N)=>D>N?O(pj,null,null):N<=2?O(rpe,null,null):N<=3?O(pj,null,null):O(npe,null,null),_=(D,N=!1)=>({role:"radio","aria-checked":D+(N?.5:1)<=h.value,"aria-setsize":g.value.length,"aria-posinset":D+(N?.5:1)}),A=D=>e.grading?E(D,p.value):n.character?n.character({index:D}):O(Nz,null,null),R=D=>{const N=m.value?{}:{onMouseenter:()=>k(D,!0),onClick:()=>C(D,!0)},L=m.value?{}:{onMouseenter:()=>k(D,!1),onClick:()=>C(D,!1)},B=c.value?{animationDelay:`${50*D}ms`}:void 0,U=Math.ceil(p.value)-1,W=b.value&&e.allowHalf&&D+.5===p.value?{color:b.value[U]}:void 0,V=b.value&&D+1<=p.value?{color:b.value[U]}:void 0,z=[`${o}-character`,{[`${o}-character-half`]:e.allowHalf&&D+.5===p.value,[`${o}-character-full`]:D+1<=p.value,[`${o}-character-scale`]:c.value&&D+1x(D)}),[O("div",Bt({class:`${o}-character-left`,style:W},N,e.allowHalf?_(D,!0):void 0),[A(D)]),O("div",Bt({class:`${o}-character-right`,style:V},L,e.allowHalf?_(D):void 0),[A(D)])])},M=F(()=>[o,{[`${o}-readonly`]:e.readonly,[`${o}-disabled`]:a.value}]);return()=>O("div",{class:M.value,onMouseleave:S},[g.value.map((D,N)=>R(N))])}});const F9e=Object.assign(d6,{install:(e,t)=>{Wn(e,t);const n=Hn(t);e.component(n+d6.name,d6)}}),j9e=_e({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=Ae("icon"),r=F(()=>[n,`${n}-info`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),U9e=["stroke-width","stroke-linecap","stroke-linejoin"];function V9e(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,U9e)}var f6=Oe(j9e,[["render",V9e]]);const ipe=Object.assign(f6,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+f6.name,f6)}});var z9e=_e({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)])])])}}),H9e=_e({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"}},[ze("?")])])])])])])])])}}),W9e=_e({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;'},[ze("!")])])])]),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 G9e=["info","success","warning","error","403","404","500",null],K9e=_e({name:"Result",components:{IconInfo:ipe,IconCheck:Vg,IconExclamation:$z,IconClose:ms,ResultForbidden:z9e,ResultNotFound:H9e,ResultServerError:W9e},props:{status:{type:String,default:"info",validator:e=>G9e.includes(e)},title:String,subtitle:String},setup(){return{prefixCls:Ae("result")}}});function q9e(e,t,n,r,o,a){const s=Pe("icon-info"),l=Pe("icon-check"),c=Pe("icon-exclamation"),f=Pe("icon-close"),h=Pe("result-forbidden"),p=Pe("result-not-found"),m=Pe("result-server-error");return H(),J("div",{class:ae(e.prefixCls)},[I("div",{class:ae([`${e.prefixCls}-icon`,{[`${e.prefixCls}-icon-${e.status}`]:e.status,[`${e.prefixCls}-icon-custom`]:e.status===null}])},[I("div",{class:ae(`${e.prefixCls}-icon-tip`)},[ct(e.$slots,"icon",{},()=>[e.status==="info"?(H(),Ye(s,{key:0})):e.status==="success"?(H(),Ye(l,{key:1})):e.status==="warning"?(H(),Ye(c,{key:2})):e.status==="error"?(H(),Ye(f,{key:3})):e.status==="403"?(H(),Ye(h,{key:4})):e.status==="404"?(H(),Ye(p,{key:5})):e.status==="500"?(H(),Ye(m,{key:6})):Re("v-if",!0)])],2)],2),e.title||e.$slots.title?(H(),J("div",{key:0,class:ae(`${e.prefixCls}-title`)},[ct(e.$slots,"title",{},()=>[ze(Be(e.title),1)])],2)):Re("v-if",!0),e.subtitle||e.$slots.subtitle?(H(),J("div",{key:1,class:ae(`${e.prefixCls}-subtitle`)},[ct(e.$slots,"subtitle",{},()=>[ze(Be(e.subtitle),1)])],2)):Re("v-if",!0),e.$slots.extra?(H(),J("div",{key:2,class:ae(`${e.prefixCls}-extra`)},[ct(e.$slots,"extra")],2)):Re("v-if",!0),e.$slots.default?(H(),J("div",{key:3,class:ae(`${e.prefixCls}-content`)},[ct(e.$slots,"default")],2)):Re("v-if",!0)],2)}var h6=Oe(K9e,[["render",q9e]]);const Y9e=Object.assign(h6,{install:(e,t)=>{Wn(e,t);const n=Hn(t);e.component(n+h6.name,h6)}}),X9e=_e({name:"Skeleton",props:{loading:{type:Boolean,default:!0},animation:{type:Boolean,default:!1}},setup(e){const t=Ae("skeleton"),n=F(()=>[t,{[`${t}-animation`]:e.animation}]);return{prefixCls:t,cls:n}}});function Z9e(e,t,n,r,o,a){return H(),J("div",{class:ae(e.cls)},[e.loading?ct(e.$slots,"default",{key:0}):ct(e.$slots,"content",{key:1})],2)}var p6=Oe(X9e,[["render",Z9e]]);const Q9e=_e({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=Ae("skeleton-line"),n=[];for(let r=0;r0&&(o.marginTop=`${e.lineSpacing}px`),n.push(o)}return{prefixCls:t,lines:n}}});function J9e(e,t,n,r,o,a){return H(!0),J(Ut,null,mn(e.lines,(s,l)=>(H(),J("ul",{key:l,class:ae(e.prefixCls)},[I("li",{class:ae(`${e.prefixCls}-row`),style:je(s)},null,6)],2))),128)}var A4=Oe(Q9e,[["render",J9e]]);const eFe=_e({name:"SkeletonShape",props:{shape:{type:String,default:"square"},size:{type:String,default:"medium"}},setup(e){const t=Ae("skeleton-shape"),n=F(()=>[t,`${t}-${e.shape}`,`${t}-${e.size}`]);return{prefixCls:t,cls:n}}});function tFe(e,t,n,r,o,a){return H(),J("div",{class:ae(e.cls)},null,2)}var I4=Oe(eFe,[["render",tFe]]);const nFe=Object.assign(p6,{Line:A4,Shape:I4,install:(e,t)=>{Wn(e,t);const n=Hn(t);e.component(n+p6.name,p6),e.component(n+A4.name,A4),e.component(n+I4.name,I4)}}),rFe=_e({name:"SliderButton",components:{Tooltip:Uc},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=Ae("slider-btn"),r=fe(!1),o=p=>{e.disabled||(p.preventDefault(),r.value=!0,Ti(window,"mousemove",a),Ti(window,"touchmove",a),Ti(window,"mouseup",s),Ti(window,"contextmenu",s),Ti(window,"touchend",s),t("movestart"))},a=p=>{let m,g;p.type.startsWith("touch")?(g=p.touches[0].clientY,m=p.touches[0].clientX):(g=p.clientY,m=p.clientX),t("moving",m,g)},s=()=>{r.value=!1,Yi(window,"mousemove",a),Yi(window,"mouseup",s),Yi(window,"touchend",s),t("moveend")},l=F(()=>[n]),c=F(()=>{var p;return((p=e.tooltipPosition)!=null?p:e.direction==="vertical")?"right":"top"}),f=F(()=>{var p,m;return(m=(p=e.formatTooltip)==null?void 0:p.call(e,e.value))!=null?m:`${e.value}`}),h=F(()=>e.showTooltip?r.value?!0:void 0:!1);return{prefixCls:n,cls:l,tooltipContent:f,mergedTooltipPosition:c,popupVisible:h,handleMouseDown:o}}}),iFe=["aria-disabled","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext"];function oFe(e,t,n,r,o,a){const s=Pe("tooltip");return H(),Ye(s,{"popup-visible":e.popupVisible,position:e.mergedTooltipPosition,content:e.tooltipContent},{default:de(()=>[I("div",Bt(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]=rs(()=>{},["prevent"])),onClick:t[3]||(t[3]=rs(()=>{},["stop"]))}),null,16,iFe)]),_:1},8,["popup-visible","position","content"])}var sFe=Oe(rFe,[["render",oFe]]);const Gp=(e,[t,n])=>{const r=Math.max((e-t)/(n-t),0);return`${zl.round(r*100,2)}%`},Q3=(e,t)=>t==="vertical"?{bottom:e}:{left:e},aFe=_e({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:Ae("slider"),getStyle:r=>Q3(Gp(r,[e.min,e.max]),e.direction)}}});function lFe(e,t,n,r,o,a){return H(),J("div",{class:ae(`${e.prefixCls}-dots`)},[(H(!0),J(Ut,null,mn(e.data,(s,l)=>(H(),J("div",{key:l,class:ae(`${e.prefixCls}-dot-wrapper`),style:je(e.getStyle(s.key))},[I("div",{class:ae([`${e.prefixCls}-dot`,{[`${e.prefixCls}-dot-active`]:s.isActive}])},null,2)],6))),128))],2)}var uFe=Oe(aFe,[["render",lFe]]);const cFe=_e({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:Ae("slider"),getStyle:r=>Q3(Gp(r,[e.min,e.max]),e.direction)}}});function dFe(e,t,n,r,o,a){return H(),J("div",{class:ae(`${e.prefixCls}-marks`)},[(H(!0),J(Ut,null,mn(e.data,(s,l)=>(H(),J("div",{key:l,"aria-hidden":"true",class:ae(`${e.prefixCls}-mark`),style:je(e.getStyle(s.key))},Be(s.content),7))),128))],2)}var fFe=Oe(cFe,[["render",dFe]]);const hFe=_e({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=Ae("slider"),n=F(()=>{const o=[],a=Math.floor((e.max-e.min)/e.step);for(let s=0;s<=a;s++){const l=zl.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=>Q3(Gp(o,[e.min,e.max]),e.direction)}}});function pFe(e,t,n,r,o,a){return H(),J("div",{class:ae(`${e.prefixCls}-ticks`)},[(H(!0),J(Ut,null,mn(e.steps,(s,l)=>(H(),J("div",{key:l,class:ae([`${e.prefixCls}-tick`,{[`${e.prefixCls}-tick-active`]:s.isActive}]),style:je(e.getStyle(s.key))},null,6))),128))],2)}var vFe=Oe(hFe,[["render",pFe]]);const mFe=_e({name:"SliderInput",components:{InputNumber:Nk},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:Ae("slider")}}});function gFe(e,t,n,r,o,a){const s=Pe("input-number");return H(),J("div",{class:ae(`${e.prefixCls}-input`)},[e.range?(H(),J(Ut,{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:ae(`${e.prefixCls}-input-hyphens`)},null,2)],64)):Re("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 yFe=Oe(mFe,[["render",gFe]]);const bFe=_e({name:"Slider",components:{SliderButton:sFe,SliderDots:uFe,SliderMarks:fFe,SliderTicks:vFe,SliderInput:yFe},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}=Qt(e),r=Ae("slider"),{mergedDisabled:o,eventHandlers:a}=wo({disabled:Cu(e,"disabled")}),s=fe(null),l=fe(),c=e.modelValue?e.modelValue:e.defaultValue,f=fe(Qn(c)?c[0]:0),h=fe(Qn(c)?c[1]:c);Dt(n,B=>{var U,W,V,z,Y;Qn(B)?(f.value=(W=(U=B[0])!=null?U:e.min)!=null?W:0,h.value=(z=(V=B[1])!=null?V:e.min)!=null?z:0):h.value=(Y=B??e.min)!=null?Y:0});const p=()=>{var B,U;e.range?(t("update:modelValue",[f.value,h.value]),t("change",[f.value,h.value])):(t("update:modelValue",h.value),t("change",h.value)),(U=(B=a.value)==null?void 0:B.onChange)==null||U.call(B)},m=B=>{B=B??e.min,f.value=B,p()},g=B=>{B=B??e.min,h.value=B,p()},b=F(()=>{var B,U,W;return e.range?Qn(e.modelValue)?e.modelValue:[f.value,(B=e.modelValue)!=null?B:h.value]:kn(e.modelValue)?[f.value,h.value]:Qn(e.modelValue)?[(U=e.min)!=null?U:0,e.modelValue[1]]:[(W=e.min)!=null?W:0,e.modelValue]}),S=F(()=>Object.keys(e.marks||{}).map(B=>{var U;const W=Number(B);return{key:W,content:(U=e.marks)==null?void 0:U[W],isActive:W>=b.value[0]&&W<=b.value[1]}})),k=B=>Q3(Gp(B,[e.min,e.max]),e.direction),C=fe(!1),x=()=>{C.value=!0,s.value&&(l.value=s.value.getBoundingClientRect())};function E(B,U){if(!l.value)return 0;const{left:W,top:V,width:z,height:Y}=l.value,oe=e.direction==="horizontal"?z:Y,ne=oe*e.step/(e.max-e.min);let X=e.direction==="horizontal"?B-W:V+Y-U;X<0&&(X=0),X>oe&&(X=oe);const K=Math.round(X/ne);return zl.plus(e.min,zl.times(K,e.step))}const _=(B,U)=>{h.value=E(B,U),p()},A=B=>{if(o.value)return;const{clientX:U,clientY:W}=B;s.value&&(l.value=s.value.getBoundingClientRect()),h.value=E(U,W),p()};function R([B,U]){return B>U&&([B,U]=[U,B]),e.direction==="vertical"?{bottom:Gp(B,[e.min,e.max]),top:Gp(e.max+e.min-U,[e.min,e.max])}:{left:Gp(B,[e.min,e.max]),right:Gp(e.max+e.min-U,[e.min,e.max])}}const M=(B,U)=>{f.value=E(B,U),p()},D=()=>{C.value=!1},N=F(()=>[r,{[`${r}-vertical`]:e.direction==="vertical",[`${r}-with-marks`]:!!e.marks}]),L=F(()=>[`${r}-track`,{[`${r}-track-disabled`]:o.value,[`${r}-track-vertical`]:e.direction==="vertical"}]);return{prefixCls:r,cls:N,trackCls:L,trackRef:s,computedValue:b,mergedDisabled:o,markList:S,getBtnStyle:k,getBarStyle:R,handleClick:A,handleMoveStart:x,handleEndMoving:_,handleMoveEnd:D,handleStartMoving:M,handleStartChange:m,handleEndChange:g}}});function _Fe(e,t,n,r,o,a){const s=Pe("slider-ticks"),l=Pe("slider-dots"),c=Pe("slider-marks"),f=Pe("slider-button"),h=Pe("slider-input");return H(),J("div",{class:ae(e.cls)},[I("div",{ref:"trackRef",class:ae(e.trackCls),onClick:t[0]||(t[0]=(...p)=>e.handleClick&&e.handleClick(...p))},[I("div",{class:ae(`${e.prefixCls}-bar`),style:je(e.getBarStyle(e.computedValue))},null,6),e.showTicks?(H(),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"])):Re("v-if",!0),e.marks?(H(),Ye(l,{key:1,data:e.markList,min:e.min,max:e.max,direction:e.direction},null,8,["data","min","max","direction"])):Re("v-if",!0),e.marks?(H(),Ye(c,{key:2,data:e.markList,min:e.min,max:e.max,direction:e.direction},null,8,["data","min","max","direction"])):Re("v-if",!0),e.range?(H(),Ye(f,{key:3,style:je(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"])):Re("v-if",!0),O(f,{style:je(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?(H(),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"])):Re("v-if",!0)],2)}var v6=Oe(bFe,[["render",_Fe]]);const SFe=Object.assign(v6,{install:(e,t)=>{Wn(e,t);const n=Hn(t);e.component(n+v6.name,v6)}});var m6=_e({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=Ae("space"),r=F(()=>{var l;return(l=e.align)!=null?l:e.direction==="horizontal"?"center":""}),o=F(()=>[n,{[`${n}-${e.direction}`]:e.direction,[`${n}-align-${r.value}`]:r.value,[`${n}-wrap`]:e.wrap,[`${n}-fill`]:e.fill}]);function a(l){if(Ke(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={},f=`${a(Qn(e.size)?e.size[0]:e.size)}px`,h=`${a(Qn(e.size)?e.size[1]:e.size)}px`;return l?e.wrap?{marginBottom:h}:{}:(e.direction==="horizontal"&&(c.marginRight=f),(e.direction==="vertical"||e.wrap)&&(c.marginBottom=h),c)};return()=>{var l;const c=df((l=t.default)==null?void 0:l.call(t),!0).filter(f=>f.type!==ps);return O("div",{class:o.value},[c.map((f,h)=>{var p,m;const g=t.split&&h>0;return O(Ut,{key:(p=f.key)!=null?p:`item-${h}`},[g&&O("div",{class:`${n}-item-split`,style:s(!1)},[(m=t.split)==null?void 0:m.call(t)]),O("div",{class:`${n}-item`,style:s(h===c.length-1)},[f])])})])}}});const kFe=Object.assign(m6,{install:(e,t)=>{Wn(e,t);const n=Hn(t);e.component(n+m6.name,m6)}});function ope(e){const t=is(e)?parseFloat(e):e;let n="";return Ke(e)||String(t)===e?n=t>1?"px":"%":n="px",{size:t,unit:n,isPx:n==="px"}}function sE({size:e,defaultSize:t,containerSize:n}){const r=ope(e??t);return r.isPx?r.size:r.size*n}function wFe(e,t){return parseFloat(e)/parseFloat(t)}const CFe=_e({name:"Split",components:{ResizeTrigger:Uhe},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}=Qt(e),l=fe(0),c=fe(),f=Ae("split"),[h,p]=aa(o.value,qt({value:r})),m=F(()=>ope(h.value)),g=F(()=>n.value==="horizontal"),b=F(()=>[f,{[`${f}-horizontal`]:g.value,[`${f}-vertical`]:!g.value}]),S=F(()=>{const{size:N,unit:L,isPx:B}=m.value;return{flex:`0 0 calc(${B?N:N*100}${L} - ${l.value/2}px)`}}),k={startPageX:0,startPageY:0,startContainerSize:0,startSize:0};async function C(){const N=()=>{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||N())&&await yn(),N()}function x(N,L){if(!L)return;const B=m.value.isPx?`${N}px`:wFe(N,L);h.value!==B&&(p(B),t("update:size",B))}function E(N,L){const B=sE({size:N,containerSize:L}),U=sE({size:a.value,defaultSize:"0px",containerSize:L}),W=sE({size:s.value,defaultSize:`${L}px`,containerSize:L});let V=B;return V=Math.max(V,U),V=Math.min(V,W),V}function _({startContainerSize:N,startSize:L,startPosition:B,endPosition:U}){const W=sE({size:L,containerSize:N});return E(`${W+(U-B)}px`,N)}function A(N){t("moving",N);const L=g.value?_({startContainerSize:k.startContainerSize,startSize:k.startSize,startPosition:k.startPageX,endPosition:N.pageX}):_({startContainerSize:k.startContainerSize,startSize:k.startSize,startPosition:k.startPageY,endPosition:N.pageY});x(L,k.startContainerSize)}function R(N){Yi(window,"mousemove",A),Yi(window,"mouseup",R),Yi(window,"contextmenu",R),document.body.style.cursor="default",t("moveEnd",N)}async function M(N){t("moveStart",N),k.startPageX=N.pageX,k.startPageY=N.pageY,k.startContainerSize=await C(),k.startSize=h.value,Ti(window,"mousemove",A),Ti(window,"mouseup",R),Ti(window,"contextmenu",R),document.body.style.cursor=g.value?"col-resize":"row-resize"}function D(N){const{width:L,height:B}=N.contentRect;l.value=g.value?L:B}return gn(async()=>{const N=await C(),L=E(h.value,N);x(L,N)}),{prefixCls:f,classNames:b,isHorizontal:g,wrapperRef:c,onMoveStart:M,onTriggerResize:D,firstPaneStyles:S}}});function xFe(e,t,n,r,o,a){const s=Pe("ResizeTrigger");return H(),Ye(Fa(e.component),{ref:"wrapperRef",class:ae(e.classNames)},{default:de(()=>[I("div",{class:ae([`${e.prefixCls}-pane`,`${e.prefixCls}-pane-first`]),style:je(e.firstPaneStyles)},[ct(e.$slots,"first")],6),e.disabled?Re("v-if",!0):(H(),Ye(s,{key:0,"prefix-cls":`${e.prefixCls}-trigger`,direction:e.isHorizontal?"vertical":"horizontal",onMousedown:e.onMoveStart,onResize:e.onTriggerResize},{default:de(()=>[ct(e.$slots,"resize-trigger")]),icon:de(()=>[ct(e.$slots,"resize-trigger-icon")]),_:3},8,["prefix-cls","direction","onMousedown","onResize"])),I("div",{class:ae([`${e.prefixCls}-pane`,`${e.prefixCls}-pane-second`])},[ct(e.$slots,"second")],2)]),_:3},8,["class"])}var g6=Oe(CFe,[["render",xFe]]);const EFe=Object.assign(g6,{install:(e,t)=>{Wn(e,t);const n=Hn(t);e.component(n+g6.name,g6)}}),TFe=_e({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=Ae("statistic"),r=F(()=>Ke(e.value)?e.value:0),o=fe((t=e.valueFrom)!=null?t:e.value),a=fe(null),{value:s}=Qt(e),l=F(()=>kn(e.value)),c=(h=(m=>(m=e.valueFrom)!=null?m:0)(),p=r.value)=>{var m;h!==p&&(a.value=new jg({from:{value:h},to:{value:p},duration:e.animationDuration,easing:"quartOut",onUpdate:g=>{o.value=g.value},onFinish:()=>{o.value=p}}),(m=a.value)==null||m.start())},f=F(()=>{let h=o.value;if(Ke(h)){Ke(e.precision)&&(h=zl.round(h,e.precision).toFixed(e.precision));const p=String(h).split("."),m=e.showGroupSeparator?Number(p[0]).toLocaleString("en-US"):p[0],g=p[1];return{isNumber:!0,integer:m,decimal:g}}return e.format&&(h=ll(h).format(e.format)),{isNumber:!1,value:h}});return gn(()=>{e.animation&&e.start&&c()}),Dt(()=>e.start,h=>{h&&e.animation&&!a.value&&c()}),Dt(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:f}}}),AFe={key:0};function IFe(e,t,n,r,o,a){return H(),J("div",{class:ae(e.prefixCls)},[e.title||e.$slots.title?(H(),J("div",{key:0,class:ae(`${e.prefixCls}-title`)},[ct(e.$slots,"title",{},()=>[ze(Be(e.title),1)])],2)):Re("v-if",!0),I("div",{class:ae(`${e.prefixCls}-content`)},[I("div",{class:ae(`${e.prefixCls}-value`),style:je(e.valueStyle)},[e.showPlaceholder?(H(),J("span",AFe,Be(e.placeholder),1)):(H(),J(Ut,{key:1},[e.$slots.prefix?(H(),J("span",{key:0,class:ae(`${e.prefixCls}-prefix`)},[ct(e.$slots,"prefix")],2)):Re("v-if",!0),e.formatValue.isNumber?(H(),J(Ut,{key:1},[I("span",{class:ae(`${e.prefixCls}-value-integer`)},Be(e.formatValue.integer),3),e.formatValue.decimal?(H(),J("span",{key:0,class:ae(`${e.prefixCls}-value-decimal`)}," ."+Be(e.formatValue.decimal),3)):Re("v-if",!0)],64)):(H(),J(Ut,{key:2},[ze(Be(e.formatValue.value),1)],64)),e.$slots.suffix?(H(),J("span",{key:3,class:ae(`${e.prefixCls}-suffix`)},[ct(e.$slots,"suffix")],2)):Re("v-if",!0)],64))],6),e.extra||e.$slots.extra?(H(),J("div",{key:0,class:ae(`${e.prefixCls}-extra`)},[ct(e.$slots,"extra",{},()=>[ze(Be(e.extra),1)])],2)):Re("v-if",!0)],2)],2)}var y6=Oe(TFe,[["render",IFe]]);const LFe=[["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 b6(e,t){let n=e;return LFe.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 PFe=_e({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=Ae("statistic"),{start:r,value:o,now:a,format:s}=Qt(e),l=fe(b6(Math.max(ll(e.value).diff(ll(e.now),"millisecond"),0),e.format));Dt([o,a,s],()=>{const p=b6(Math.max(ll(e.value).diff(ll(e.now),"millisecond"),0),e.format);p!==l.value&&(l.value=p)});const c=fe(0),f=()=>{c.value&&(window.clearInterval(c.value),c.value=0)},h=()=>{ll(e.value).valueOf(){const p=ll(e.value).diff(ll(),"millisecond");p<=0&&(f(),t("finish")),l.value=b6(Math.max(p,0),e.format)},1e3/30))};return gn(()=>{e.start&&h()}),Fo(()=>{f()}),Dt(r,p=>{p&&!c.value&&h()}),{prefixCls:n,displayValue:l}}});function RFe(e,t,n,r,o,a){return H(),J("div",{class:ae([`${e.prefixCls}`,`${e.prefixCls}-countdown`])},[e.title||e.$slots.title?(H(),J("div",{key:0,class:ae(`${e.prefixCls}-title`)},[ct(e.$slots,"title",{},()=>[ze(Be(e.title),1)])],2)):Re("v-if",!0),I("div",{class:ae(`${e.prefixCls}-content`)},[I("div",{class:ae(`${e.prefixCls}-value`),style:je(e.valueStyle)},Be(e.displayValue),7)],2)],2)}var L4=Oe(PFe,[["render",RFe]]);const MFe=Object.assign(y6,{Countdown:L4,install:(e,t)=>{Wn(e,t);const n=Hn(t);e.component(n+y6.name,y6),e.component(n+L4.name,L4)}}),spe=Symbol("ArcoSteps"),DFe=_e({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}=Qt(e),a=Ae("steps"),s=fe(e.defaultCurrent),l=F(()=>{var C;return(C=e.current)!=null?C:s.value}),c=F(()=>["navigation","arrow"].includes(e.type)?"horizontal":e.direction),f=F(()=>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))},m=qt(new Map),g=F(()=>Array.from(m.values()).filter(C=>C.status==="error").map(C=>C.step)),b=(C,x)=>{m.set(C,x)},S=C=>{m.delete(C)},k=F(()=>[a,`${a}-${c.value}`,`${a}-label-${f.value}`,`${a}-mode-${r.value}`,{[`${a}-changeable`]:e.changeable,[`${a}-size-small`]:e.small&&e.type!=="dot",[`${a}-line-less`]:o.value}]);return Xr(spe,qt({type:r,direction:c,labelPlacement:f,lineLess:o,current:l,errorSteps:g,getStatus:h,addItem:b,removeItem:S,onClick:p,parentCls:a})),{cls:k}}});function OFe(e,t,n,r,o,a){return H(),J("div",{class:ae(e.cls)},[ct(e.$slots,"default")],2)}var _6=Oe(DFe,[["render",OFe]]);const $Fe=_e({name:"Step",components:{IconCheck:Vg,IconClose:ms},props:{title:String,description:String,status:{type:String},disabled:{type:Boolean,default:!1}},setup(e){const t=Ae("steps-item"),n=fo(),r=Ae("steps-icon"),o=In(spe,void 0),a=F(()=>{var b;return(b=o?.type)!=null?b:"default"}),s=fe(),{computedIndex:l}=fz({itemRef:s,selector:`.${t}`,parentClassName:o?.parentCls}),c=F(()=>l.value+1),f=F(()=>{var b,S;return(S=(b=e.status)!=null?b:o?.getStatus(c.value))!=null?S:"process"}),h=F(()=>{var b;return(b=o?.errorSteps.includes(c.value+1))!=null?b:!1});n&&o?.addItem(n.uid,qt({step:c,status:f})),Fo(()=>{n&&o?.removeItem(n.uid)});const p=F(()=>!o?.lineLess&&(o?.labelPlacement==="vertical"||o?.direction==="vertical")),m=b=>{e.disabled||o?.onClick(c.value,b)},g=F(()=>[t,`${t}-${f.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:f,type:a,handleClick:m}}});function NFe(e,t,n,r,o,a){const s=Pe("icon-check"),l=Pe("icon-close");return H(),J("div",{ref:"itemRef",class:ae(e.cls),onClick:t[0]||(t[0]=(...c)=>e.handleClick&&e.handleClick(...c))},[e.showTail?(H(),J("div",{key:0,class:ae(`${e.prefixCls}-tail`)},null,2)):Re("v-if",!0),e.type!=="arrow"?(H(),J("div",{key:1,class:ae(`${e.prefixCls}-node`)},[ct(e.$slots,"node",{step:e.stepNumber,status:e.computedStatus},()=>[e.type!=="dot"?(H(),J("div",{key:0,class:ae(e.iconCls)},[ct(e.$slots,"icon",{step:e.stepNumber,status:e.computedStatus},()=>[e.computedStatus==="finish"?(H(),Ye(s,{key:0})):e.computedStatus==="error"?(H(),Ye(l,{key:1})):(H(),J(Ut,{key:2},[ze(Be(e.stepNumber),1)],64))])],2)):Re("v-if",!0)])],2)):Re("v-if",!0),I("div",{class:ae(`${e.prefixCls}-content`)},[I("div",{class:ae(`${e.prefixCls}-title`)},[ct(e.$slots,"default",{},()=>[ze(Be(e.title),1)])],2),e.description||e.$slots.description?(H(),J("div",{key:0,class:ae(`${e.prefixCls}-description`)},[ct(e.$slots,"description",{},()=>[ze(Be(e.description),1)])],2)):Re("v-if",!0)],2)],2)}var P4=Oe($Fe,[["render",NFe]]);const BFe=Object.assign(_6,{Step:P4,install:(e,t)=>{Wn(e,t);const n=Hn(t);e.component(n+_6.name,_6),e.component(n+P4.name,P4)}}),FFe=_e({name:"Switch",components:{IconLoading:za},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}=Qt(e),a=Ae("switch"),{mergedSize:s}=_a(r),{mergedDisabled:l,mergedSize:c,eventHandlers:f}=wo({disabled:n,size:s}),h=fe(e.defaultChecked?e.checkedValue:e.uncheckedValue),p=F(()=>{var _;return((_=e.modelValue)!=null?_:h.value)===e.checkedValue}),m=fe(!1),g=F(()=>m.value||e.loading),b=(_,A)=>{var R,M;h.value=_?e.checkedValue:e.uncheckedValue,t("update:modelValue",h.value),t("change",h.value,A),(M=(R=f.value)==null?void 0:R.onChange)==null||M.call(R,A)},S=async _=>{if(g.value||l.value)return;const A=!p.value,R=A?e.checkedValue:e.uncheckedValue,M=e.beforeChange;if(_n(M)){m.value=!0;try{const D=await M(R);(D??!0)&&b(A,_)}finally{m.value=!1}}else b(A,_)},k=_=>{var A,R;t("focus",_),(R=(A=f.value)==null?void 0:A.onFocus)==null||R.call(A,_)},C=_=>{var A,R;t("blur",_),(R=(A=f.value)==null?void 0:A.onBlur)==null||R.call(A,_)};Dt(o,_=>{(kn(_)||Sl(_))&&(h.value=e.uncheckedValue)});const x=F(()=>[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=F(()=>{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}}}),jFe=["aria-checked","disabled"];function UFe(e,t,n,r,o,a){const s=Pe("icon-loading");return H(),J("button",{type:"button",role:"switch","aria-checked":e.computedCheck,class:ae(e.cls),style:je(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:ae(`${e.prefixCls}-handle`)},[I("span",{class:ae(`${e.prefixCls}-handle-icon`)},[e.computedLoading?(H(),Ye(s,{key:0})):(H(),J(Ut,{key:1},[e.computedCheck?ct(e.$slots,"checked-icon",{key:0}):ct(e.$slots,"unchecked-icon",{key:1})],64))],2)],2),Re(" prettier-ignore "),e.type!=="line"&&e.size!=="small"&&(e.$slots.checked||e.checkedText||e.$slots.unchecked||e.uncheckedText)?(H(),J(Ut,{key:0},[I("span",{class:ae(`${e.prefixCls}-text-holder`)},[e.computedCheck?ct(e.$slots,"checked",{key:0},()=>[ze(Be(e.checkedText),1)]):ct(e.$slots,"unchecked",{key:1},()=>[ze(Be(e.uncheckedText),1)])],2),I("span",{class:ae(`${e.prefixCls}-text`)},[e.computedCheck?ct(e.$slots,"checked",{key:0},()=>[ze(Be(e.checkedText),1)]):ct(e.$slots,"unchecked",{key:1},()=>[ze(Be(e.uncheckedText),1)])],2)],64)):Re("v-if",!0)],46,jFe)}var S6=Oe(FFe,[["render",UFe]]);const VFe=Object.assign(S6,{install:(e,t)=>{Wn(e,t);const n=Hn(t);e.component(n+S6.name,S6)}}),zFe=e=>{let t=0;const n=r=>{if(Qn(r)&&r.length>0)for(const o of r)o.children?n(o.children):t+=1};return n(e),t},ape=e=>{let t=0;if(Qn(e)&&e.length>0){t=1;for(const n of e)if(n.children){const r=ape(n.children);r>0&&(t=Math.max(t,r+1))}}return t},Ene=(e,t)=>{let{parent:n}=e;for(;n;)n.fixed===t&&(t==="left"?n.isLastLeftFixed=!0:n.isFirstRightFixed=!0),n=n.parent},HFe=(e,t,n)=>{const r=ape(e);t.clear();const o=[],a=[...Array(r)].map(()=>[]);let s,l;const c=(f,{level:h=0,parent:p,fixed:m}={})=>{var g;for(const b of f){const S={...b,parent:p};if(Qn(S.children)){const k=zFe(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),(m||S.fixed)&&(S.fixed=(g=S.fixed)!=null?g:m,S.fixed==="left"?s=o.length:kn(l)&&(l=o.length)),(kn(S.dataIndex)||Sl(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),kn(s)||(o[s].isLastLeftFixed=!0,Ene(o[s],"left")),kn(l)||(o[l].isFirstRightFixed=!0,Ene(o[l],"right")),{dataColumns:o,groupColumns:a}},WFe=(e,t)=>{for(let n=0;n{var n;const r=WFe(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},Bz=e=>e.children&&e.children.length>0?Bz(e.children[0]):e,KFe=e=>e.children&&e.children.length>0?Bz(e.children[e.children.length-1]):e,qFe=(e,{dataColumns:t,operations:n})=>{var r,o,a;let s=0;if(e.fixed==="left"){for(const f of n)s+=(r=f.width)!=null?r:40;const c=Bz(e);for(const f of t){if(c.dataIndex===f.dataIndex)break;s+=(a=(o=f._resizeWidth)!=null?o:f.width)!=null?a:0}return s}const l=KFe(e);for(let c=t.length-1;c>0;c--){const f=t[c];if(l.dataIndex===f.dataIndex)break;f.fixed==="right"&&(s+=f.width)}return s},lpe=(e,t)=>t.fixed?[`${e}-col-fixed-left`,{[`${e}-col-fixed-left-last`]:t.isLastLeftFixed}]:[],upe=(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}]:[],cpe=(e,{dataColumns:t,operations:n})=>{if(e.fixed){const r=`${qFe(e,{dataColumns:t,operations:n})}px`;return e.fixed==="left"?{left:r}:{right:r}}return{}},dpe=(e,t)=>e.fixed?{left:`${GFe(e,t)}px`}:{};function fpe(e){return e.map(t=>{const n={...t};return n.children&&(n.children=fpe(n.children)),n})}function hpe(e){return e.map(t=>{const n=t.raw;return t.children&&n.children&&(n.children=hpe(t.children)),t.raw})}const Fz=e=>{const t=[];if(e.children)for(const n of e.children)n.isLeaf?t.push(n.key):t.push(...Fz(n));return t},YFe=(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}},R_=(e,t,n=!1)=>n?e.filter(r=>!t.includes(r)):Array.from(new Set(e.concat(t))),XFe=e=>{const t=[];for(let n=0;n{var s,l,c;const f=F(()=>{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=F(()=>{var E,_,A;return(A=(_=e.value)!=null?_:(E=n.value)==null?void 0:E.selectedRowKeys)!=null?A:h.value}),m=F(()=>p.value.filter(E=>r.value.includes(E)));return{isRadio:f,selectedRowKeys:p,currentSelectedRowKeys:m,handleSelectAll:E=>{const _=R_(p.value,o.value,!E);h.value=_,a("selectAll",E),a("selectionChange",_),a("update:selectedKeys",_)},handleSelect:(E,_)=>{const A=f.value?[_.key]:R_(p.value,[_.key],!E);h.value=A,a("select",A,_.key,_.raw),a("selectionChange",A),a("update:selectedKeys",A)},handleSelectAllLeafs:(E,_)=>{const A=R_(p.value,Fz(E),!_);h.value=A,a("select",A,E.key,E.raw),a("selectionChange",A),a("update:selectedKeys",A)},select:(E,_=!0)=>{const A=[].concat(E),R=f.value?A:R_(p.value,A,!_);h.value=R,a("selectionChange",R),a("update:selectedKeys",R)},selectAll:(E=!0)=>{const _=R_(p.value,o.value,!E);h.value=_,a("selectionChange",_),a("update:selectedKeys",_)},clearSelected:()=>{h.value=[],a("selectionChange",[]),a("update:selectedKeys",[])}}},QFe=({expandedKeys:e,defaultExpandedKeys:t,defaultExpandAllRows:n,expandable:r,allRowKeys:o,emit:a})=>{const l=fe((()=>{var m,g;return t.value?t.value:(m=r.value)!=null&&m.defaultExpandedRowKeys?r.value.defaultExpandedRowKeys:n.value||(g=r.value)!=null&&g.defaultExpandAllRows?[...o.value]:[]})()),c=F(()=>{var m,g,b;return(b=(g=e.value)!=null?g:(m=r.value)==null?void 0:m.expandedRowKeys)!=null?b:l.value});return{expandedRowKeys:c,handleExpand:(m,g)=>{const S=c.value.includes(m)?c.value.filter(k=>m!==k):c.value.concat(m);l.value=S,a("expand",m,g),a("expandedChange",S),a("update:expandedKeys",S)},expand:(m,g=!0)=>{const b=[].concat(m),S=g?c.value.concat(b):c.value.filter(k=>!b.includes(k));l.value=S,a("expandedChange",S),a("update:expandedKeys",S)},expandAll:(m=!0)=>{const g=m?[...o.value]:[];l.value=g,a("expandedChange",g),a("update:expandedKeys",g)}}},JFe=(e,t)=>{var n,r;const o=fe(fr(e.pagination)&&(n=e.pagination.defaultCurrent)!=null?n:1),a=fe(fr(e.pagination)&&(r=e.pagination.defaultPageSize)!=null?r:10),s=F(()=>{var h;return fr(e.pagination)&&(h=e.pagination.pageSize)!=null?h:a.value});return{page:F(()=>{var h;return fr(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)}}},eje=_e({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 tje(e,t,n,r,o,a){return H(),J("colgroup",null,[(H(!0),J(Ut,null,mn(e.operations,s=>(H(),J("col",{key:`arco-col-${s.name}`,class:ae(`arco-table-${s.name}-col`),style:je(e.fixedWidth(s.width))},null,6))),128)),(H(!0),J(Ut,null,mn(e.dataColumns,s=>(H(),J("col",{key:`arco-col-${s.dataIndex}`,style:je(e.fixedWidth(e.columnWidth&&s.dataIndex&&e.columnWidth[s.dataIndex]||s.width,s.minWidth))},null,4))),128))])}var aE=Oe(eje,[["render",tje]]),GS=_e({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})}}}),KS=_e({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})}}}),vh=_e({name:"Tr",props:{expand:{type:Boolean},empty:{type:Boolean},checked:{type:Boolean},rowIndex:Number,record:{type:Object,default:()=>({})}},setup(e,{slots:t}){const n=Ae("table"),r=F(()=>[`${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 nje=_e({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=Ae("icon"),r=F(()=>[n,`${n}-caret-down`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),rje=["stroke-width","stroke-linecap","stroke-linejoin"];function ije(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,rje)}var k6=Oe(nje,[["render",ije]]);const jz=Object.assign(k6,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+k6.name,k6)}}),oje=_e({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=Ae("icon"),r=F(()=>[n,`${n}-caret-up`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,sje)}var w6=Oe(oje,[["render",aje]]);const ppe=Object.assign(w6,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+w6.name,w6)}}),lje=_e({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=Ae("icon"),r=F(()=>[n,`${n}-filter`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),uje=["stroke-width","stroke-linecap","stroke-linejoin"];function cje(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,uje)}var C6=Oe(lje,[["render",cje]]);const Uz=Object.assign(C6,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+C6.name,C6)}}),dje=({column:e,tableCtx:t})=>{const n=F(()=>{var f;if(e.value.dataIndex&&e.value.dataIndex===((f=t.sorter)==null?void 0:f.field))return t.sorter.direction}),r=F(()=>{var f,h,p;return(p=(h=(f=e.value)==null?void 0:f.sortable)==null?void 0:h.sortDirections)!=null?p:[]}),o=F(()=>r.value.length>0),a=F(()=>r.value.includes("ascend")),s=F(()=>r.value.includes("descend")),l=F(()=>{var f,h;return n.value?n.value===r.value[0]&&(h=r.value[1])!=null?h:"":(f=r.value[0])!=null?f:""});return{sortOrder:n,hasSorter:o,hasAscendBtn:a,hasDescendBtn:s,nextSortOrder:l,handleClickSorter:f=>{var h;e.value.dataIndex&&((h=t.onSorterChange)==null||h.call(t,e.value.dataIndex,l.value,f))}}},fje=({column:e,tableCtx:t})=>{const n=F(()=>{var g;return e.value.dataIndex&&((g=t.filters)!=null&&g[e.value.dataIndex])?t.filters[e.value.dataIndex]:[]}),r=fe(!1),o=F(()=>n.value.length>0),a=F(()=>{var g;return!!((g=e.value.filterable)!=null&&g.multiple)}),s=fe(n.value);Dt(n,g=>{Qn(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 b;e.value.dataIndex&&((b=t.onFilterChange)==null||b.call(t,e.value.dataIndex,s.value,g)),l(!1)},handleFilterReset:g=>{var b;c([]),e.value.dataIndex&&((b=t.onFilterChange)==null||b.call(t,e.value.dataIndex,s.value,g)),l(!1)}}},q1=Symbol("ArcoTable"),Tne=Symbol("ArcoTableColumn");function Ane(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Bi(e)}var vpe=_e({name:"AutoTooltip",inheritAttrs:!1,props:{tooltipProps:{type:Object}},setup(e,{attrs:t,slots:n}){const r=Ae("auto-tooltip"),o=fe(),a=fe(),s=fe(""),l=fe(!1),c=()=>{if(o.value&&a.value){const m=a.value.offsetWidth>o.value.offsetWidth;m!==l.value&&(l.value=m)}},f=()=>{var m;(m=a.value)!=null&&m.textContent&&a.value.textContent!==s.value&&(s.value=a.value.textContent)},h=()=>{f(),c()};gn(()=>{f(),c()}),Ga(()=>{f(),c()});const p=()=>O("span",Bt({ref:o,class:r},t),[O(fv,{onResize:h},{default:()=>{var m;return[O("span",{ref:a,class:`${r}-content`},[(m=n.default)==null?void 0:m.call(n)])]}})]);return()=>{let m;if(l.value){let g;return O(Uc,Bt({content:s.value,onResize:h},e.tooltipProps),Ane(g=p())?g:{default:()=>[g]})}return O(fv,{onResize:h},Ane(m=p())?m:{default:()=>[m]})}}});function x6(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Bi(e)}var qS=_e({name:"Th",props:{column:{type:Object,default:()=>({})},operations:{type:Array,default:()=>[]},dataColumns:{type:Array,default:()=>[]},resizable:Boolean},setup(e,{slots:t}){const{column:n}=Qt(e),r=Ae("table"),{t:o}=Lo(),a=In(q1,{}),s=F(()=>{var oe;return((oe=e.column)==null?void 0:oe.dataIndex)&&a.resizingColumn===e.column.dataIndex}),l=F(()=>{var oe;if(fr((oe=e.column)==null?void 0:oe.tooltip))return e.column.tooltip}),c=F(()=>{var oe;return(oe=e.column)!=null&&oe.filterable&&bl(e.column.filterable.alignLeft)?e.column.filterable.alignLeft:a.filterIconAlignLeft}),{sortOrder:f,hasSorter:h,hasAscendBtn:p,hasDescendBtn:m,nextSortOrder:g,handleClickSorter:b}=dje({column:n,tableCtx:a}),{filterPopupVisible:S,isFilterActive:k,isMultipleFilter:C,columnFilterValue:x,handleFilterPopupVisibleChange:E,setFilterValue:_,handleCheckboxFilterChange:A,handleRadioFilterChange:R,handleFilterConfirm:M,handleFilterReset:D}=fje({column:n,tableCtx:a}),N=()=>{var oe,ne,X,K,re;let ee,le;const{filterable:Q}=e.column;return(oe=e.column.slots)!=null&&oe["filter-content"]?(ne=e.column.slots)==null?void 0:ne["filter-content"]({filterValue:x.value,setFilterValue:_,handleFilterConfirm:M,handleFilterReset:D}):Q?.slotName?(K=(X=a?.slots)==null?void 0:X[Q?.slotName])==null?void 0:K.call(X,{filterValue:x.value,setFilterValue:_,handleFilterConfirm:M,handleFilterReset:D}):Q?.renderContent?Q.renderContent({filterValue:x.value,setFilterValue:_,handleFilterConfirm:M,handleFilterReset:D}):O("div",{class:`${r}-filters-content`},[O("ul",{class:`${r}-filters-list`},[(re=Q?.filters)==null?void 0:re.map((ye,be)=>{var ve;return O("li",{class:`${r}-filters-item`,key:be},[C.value?O(_d,{value:ye.value,modelValue:x.value,uninjectGroupContext:!0,onChange:A},{default:()=>[ye.text]}):O(b1,{value:ye.value,modelValue:(ve=x.value[0])!=null?ve:"",uninjectGroupContext:!0,onChange:R},{default:()=>[ye.text]})])})]),O("div",{class:`${r}-filters-bottom`},[O(Ho,{size:"mini",onClick:D},x6(ee=o("table.resetText"))?ee:{default:()=>[ee]}),O(Ho,{type:"primary",size:"mini",onClick:M},x6(le=o("table.okText"))?le:{default:()=>[le]})])])},L=()=>{const{filterable:oe}=e.column;return oe?O(la,Bt({popupVisible:S.value,trigger:"click",autoFitPosition:!0,popupOffset:c.value?4:0,onPopupVisibleChange:E},oe.triggerProps),{default:()=>[O(ko,{class:[`${r}-filters`,{[`${r}-filters-active`]:k.value,[`${r}-filters-open`]:S.value,[`${r}-filters-align-left`]:c.value}],disabled:!c.value,onClick:ne=>ne.stopPropagation()},{default:()=>{var ne,X,K,re,ee;return[(ee=(re=(X=(ne=e.column.slots)==null?void 0:ne["filter-icon"])==null?void 0:X.call(ne))!=null?re:(K=oe.icon)==null?void 0:K.call(oe))!=null?ee:O(Uz,null,null)]}})],content:N}):null},B=F(()=>{var oe,ne;const X=[`${r}-cell`,`${r}-cell-align-${(ne=(oe=e.column)==null?void 0:oe.align)!=null?ne:e.column.children?"center":"left"}`];return h.value&&X.push(`${r}-cell-with-sorter`,{[`${r}-cell-next-ascend`]:g.value==="ascend",[`${r}-cell-next-descend`]:g.value==="descend"}),c.value&&X.push(`${r}-cell-with-filter`),X}),U=()=>{var oe,ne,X,K,re,ee;return t.default?t.default():(oe=e.column)!=null&&oe.titleSlotName&&((ne=a.slots)!=null&&ne[e.column.titleSlotName])?(K=(X=a.slots)[e.column.titleSlotName])==null?void 0:K.call(X,{column:e.column}):(ee=(re=e.column)==null?void 0:re.slots)!=null&&ee.title?e.column.slots.title():_n(e.column.title)?e.column.title():e.column.title},W=()=>{var oe,ne,X;let K;return O("span",{class:B.value,onClick:h.value?b:void 0},[(oe=e.column)!=null&&oe.ellipsis&&((ne=e.column)!=null&&ne.tooltip)?O(vpe,{class:`${r}-th-title`,tooltipProps:l.value},x6(K=U())?K:{default:()=>[K]}):O("span",{class:[`${r}-th-title`,{[`${r}-text-ellipsis`]:(X=e.column)==null?void 0:X.ellipsis}]},[U()]),h.value&&O("span",{class:`${r}-sorter`},[p.value&&O("div",{class:[`${r}-sorter-icon`,{[`${r}-sorter-icon-active`]:f.value==="ascend"}]},[O(ppe,null,null)]),m.value&&O("div",{class:[`${r}-sorter-icon`,{[`${r}-sorter-icon-active`]:f.value==="descend"}]},[O(jz,null,null)])]),c.value&&L()])},V=F(()=>{var oe,ne;return{...cpe(e.column,{dataColumns:e.dataColumns,operations:e.operations}),...(oe=e.column)==null?void 0:oe.cellStyle,...(ne=e.column)==null?void 0:ne.headerCellStyle}}),z=F(()=>{var oe,ne;return[`${r}-th`,{[`${r}-col-sorted`]:!!f.value,[`${r}-th-resizing`]:s.value},...upe(r,e.column),(oe=e.column)==null?void 0:oe.cellClass,(ne=e.column)==null?void 0:ne.headerCellClass]}),Y=oe=>{var ne,X,K;(ne=e.column)!=null&&ne.dataIndex&&((K=a.onThMouseDown)==null||K.call(a,(X=e.column)==null?void 0:X.dataIndex,oe))};return()=>{var oe,ne,X,K;const re=(oe=e.column.colSpan)!=null?oe:1,ee=(ne=e.column.rowSpan)!=null?ne:1;return O((K=(X=t.th)==null?void 0:X.call(t,{column:e.column})[0])!=null?K:"th",{class:z.value,style:V.value,colspan:re>1?re:void 0,rowspan:ee>1?ee:void 0},{default:()=>[W(),!c.value&&L(),e.resizable&&O("span",{class:`${r}-column-handle`,onMousedown:Y},null)]})}}});function hje(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Bi(e)}var qp=_e({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=Ae("table"),r=F(()=>{var k;if(fr((k=e.column)==null?void 0:k.tooltip))return e.column.tooltip}),o=F(()=>{var k,C;return((k=e.column)==null?void 0:k.dataIndex)&&((C=p.sorter)==null?void 0:C.field)===e.column.dataIndex}),a=F(()=>{var k;return((k=e.column)==null?void 0:k.dataIndex)&&p.resizingColumn===e.column.dataIndex}),s=()=>{var k,C,x,E,_,A;return e.summary?_n((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:_n((E=e.column)==null?void 0:E.bodyCellClass)?e.column.bodyCellClass((_=e.record)==null?void 0:_.raw):(A=e.column)==null?void 0:A.bodyCellClass},l=F(()=>{var k;return[`${n}-td`,{[`${n}-col-sorted`]:o.value,[`${n}-td-resizing`]:a.value},...upe(n,e.column),(k=e.column)==null?void 0:k.cellClass,s()]}),c=()=>{var k,C,x,E,_,A;return e.summary?_n((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:_n((E=e.column)==null?void 0:E.bodyCellStyle)?e.column.bodyCellStyle((_=e.record)==null?void 0:_.raw):(A=e.column)==null?void 0:A.bodyCellStyle},f=F(()=>{var k;const C=cpe(e.column,{dataColumns:e.dataColumns,operations:e.operations}),x=c();return{...C,...(k=e.column)==null?void 0:k.cellStyle,...x}}),h=F(()=>{if(e.isFixedExpand&&e.containerWidth)return{width:`${e.containerWidth}px`}}),p=In(q1,{}),m=()=>{var k,C,x,E,_,A,R,M;if(t.default)return t.default();const D={record:(k=e.record)==null?void 0:k.raw,column:e.column,rowIndex:(C=e.rowIndex)!=null?C:-1};return t.cell?t.cell(D):(x=e.column.slots)!=null&&x.cell?e.column.slots.cell(D):e.column.render?e.column.render(D):e.column.slotName&&((E=p.slots)!=null&&E[e.column.slotName])?(A=(_=p.slots)[e.column.slotName])==null?void 0:A.call(_,D):String((M=rg((R=e.record)==null?void 0:R.raw,e.column.dataIndex))!=null?M:"")},g=fe(!1),b=k=>{var C,x;_n(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,_,A;let R;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:b},[g.value?O(za,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(vpe,{class:`${n}-td-content`,tooltipProps:r.value},hje(R=m())?R:{default:()=>[R]}):O("span",{class:[`${n}-td-content`,{[`${n}-text-ellipsis`]:(A=e.column)==null?void 0:A.ellipsis}]},[m()])])};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:f.value,rowspan:e.rowSpan>1?e.rowSpan:void 0,colspan:e.colSpan>1?e.colSpan:void 0},{default:()=>[S()]})}}}),pje=_e({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=Ae("table"),n=In(q1,{}),r=F(()=>{var l,c,f,h;let p=!1,m=!1;const b=((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=(f=n.currentAllEnabledRowKeys)==null?void 0:f.length)!=null?h:0;return b>0&&(b>=S?p=!0:m=!0),{checked:p,indeterminate:m}}),o=()=>e.selectAll?O(_d,{modelValue:r.value.checked,indeterminate:r.value.indeterminate,uninjectGroupContext:!0,onChange:l=>{var c;(c=n.onSelectAll)==null||c.call(n,l)}},{default:_n(e.operationColumn.title)?e.operationColumn.title():e.operationColumn.title}):e.operationColumn.title?_n(e.operationColumn.title)?e.operationColumn.title():e.operationColumn.title:null,a=F(()=>dpe(e.operationColumn,e.operations)),s=F(()=>[`${t}-th`,`${t}-operation`,{[`${t}-checkbox`]:e.selectAll},...lpe(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()])])}}),Ine=_e({name:"OperationTd",components:{Checkbox:_d,Radio:b1,IconPlus:mf,IconMinus:Sg},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=Ae("table"),o=In(q1,{}),a=F(()=>dpe(e.operationColumn,e.operations)),s=F(()=>[`${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"},...lpe(r,e.operationColumn)]),l=F(()=>Fz(e.record)),c=F(()=>{var h;return YFe((h=o.currentSelectedRowKeys)!=null?h:[],l.value)}),f=()=>{var h,p,m,g,b,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(_d,{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(_d,{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(b1,{modelValue:(g=(m=e.selectedRowKeys)==null?void 0:m.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=(b=n["drag-handle-icon"])==null?void 0:b.call(n))!=null?S:O(Y3,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`},[f()])])}});const vje=e=>{const t=F(()=>{if(e.value)return e.value.type==="handle"?"handle":"row"}),n=qt({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,m,g)=>{if(h.dataTransfer&&(h.dataTransfer.effectAllowed="move",h.target&&h.target.tagName==="TD")){const{parentElement:b}=h.target;b&&b.tagName==="TR"&&h.dataTransfer.setDragImage(b,0,0)}n.dragging=!0,n.sourceKey=p,n.sourcePath=m,n.targetPath=[...m],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()}}},mje=(e,t)=>{const n=fe(""),r=qt({}),o=(l,c)=>{c.preventDefault(),n.value=l,Ti(window,"mousemove",s),Ti(window,"mouseup",a),Ti(window,"contextmenu",a)},a=()=>{n.value="",Yi(window,"mousemove",s),Yi(window,"mouseup",a),Yi(window,"contextmenu",a)},s=l=>{const c=e.value[n.value];if(c){const{clientX:f}=l,{x:h}=c.getBoundingClientRect();let p=Math.ceil(f-h);p<40&&(p=40),r[n.value]=p,t("columnResize",n.value,p)}};return{resizingColumn:n,columnWidth:r,handleThMouseDown:o,handleThMouseUp:a}},gje=({columns:e,onFilterChange:t})=>{const n=fe(Lne(e.value));Dt(e,s=>{const l=Lne(s);W1(l,n.value)||(n.value=l)});const r=F(()=>{var s,l;const c={};for(const f of e.value)if(f.dataIndex){const h=(l=(s=f.filterable)==null?void 0:s.filteredValue)!=null?l:n.value[f.dataIndex];h&&(c[f.dataIndex]=h)}return c});return{_filters:n,computedFilters:r,resetFilters:s=>{var l;const c=s?[].concat(s):[],f={};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:[];f[h.dataIndex]=p,t(h.dataIndex,p)}n.value=f},clearFilters:s=>{const l=s?[].concat(s):[],c={};for(const f of e.value)if(f.dataIndex&&f.filterable&&(l.length===0||l.includes(f.dataIndex))){const h=[];c[f.dataIndex]=h,t(f.dataIndex,h)}n.value=c}}},Lne=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},yje=({columns:e,onSorterChange:t})=>{const n=fe(Pne(e.value));Dt(e,s=>{const l=Pne(s);W1(l,n.value)||(n.value=l)});const r=F(()=>{var s;for(const l of e.value)if(l.dataIndex&&l.sortable){const c=is(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,"")}}},Pne=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}},Rne=({spanMethod:e,data:t,columns:n})=>{const r=(l,c)=>{l?.forEach((f,h)=>{var p;f.hasSubtree&&((p=f.children)!=null&&p.length)&&r(f.children||[],c),n.value.forEach((m,g)=>{var b,S;const{rowspan:k=1,colspan:C=1}=(S=(b=e.value)==null?void 0:b.call(e,{record:f.raw,column:m,rowIndex:h,columnIndex:g}))!=null?S:{};(k>1||C>1)&&(c[`${h}-${g}-${f.key}`]=[k,C],Array.from({length:k}).forEach((x,E)=>{var _;if(h+E{g+M{const l={};return o.value={},e.value&&r(t.value,l),l}),s=F(()=>{const l=[];for(const c of Object.keys(o.value))l.push(c);return l});return{tableSpan:a,removedCells:s}};function bje(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Bi(e)}const Mne={wrapper:!0,cell:!1,headerCell:!1,bodyCell:!1};var E6=_e({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=In(Va,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:f,defaultSelectedKeys:h,expandedKeys:p,defaultExpandedKeys:m,defaultExpandAllRows:g,spanMethod:b,draggable:S,summarySpanMethod:k,scrollbar:C,showEmptyTree:x}=Qt(e),E=Ae("table"),_=In(Va,void 0),A=F(()=>fr(e.bordered)?{...Mne,...e.bordered}:{...Mne,wrapper:e.bordered}),{children:R,components:M}=$k("TableColumn"),D=F(()=>{var Tt,Yt;return(Yt=(Tt=a.value)==null?void 0:Tt.checkStrictly)!=null?Yt:!0}),{displayScrollbar:N,scrollbarProps:L}=O3(C),B=F(()=>{var Tt,Yt,rn,ln;const xn=!!((Tt=e.scroll)!=null&&Tt.x||(Yt=e.scroll)!=null&&Yt.minWidth),Kn=!!((rn=e.scroll)!=null&&rn.y||(ln=e.scroll)!=null&&ln.maxHeight);return{x:xn,y:Kn}}),U=fe(),W=fe({}),{componentRef:V,elementRef:z}=Ay("containerRef"),{componentRef:Y,elementRef:oe}=Ay("containerRef"),{elementRef:ne}=Ay("viewportRef"),{componentRef:X,elementRef:K}=Ay("containerRef"),re=F(()=>ee.value?Cn.value?ne.value:oe.value:z.value),ee=F(()=>B.value.y||e.stickyHeader||Cn.value||B.value.x&&pe.value.length===0),le=qt(new Map),Q=fe();Dt([M,le],([Tt,Yt])=>{if(Tt.length>0){const rn=[];Tt.forEach(ln=>{const xn=Yt.get(ln);xn&&rn.push(xn)}),Q.value=rn}else Q.value=void 0});const ye=new Map,be=fe([]),ve=fe([]),{resizingColumn:Ce,columnWidth:De,handleThMouseDown:We}=mje(W,t);Dt([r,Q,De],([Tt,Yt])=>{var rn;const ln=HFe((rn=Yt??Tt)!=null?rn:[],ye,De);be.value=ln.dataColumns,ve.value=ln.groupColumns},{immediate:!0,deep:!0});const Xe=F(()=>["tl","top","tr"].includes(e.pagePosition)),He=fe(!1),ke=fe(!1),Se=fe(!1);As(()=>{var Tt,Yt,rn;let ln=!1,xn=!1,Kn=!1;((Tt=e.rowSelection)!=null&&Tt.fixed||(Yt=e.expandable)!=null&&Yt.fixed||(rn=e.draggable)!=null&&rn.fixed)&&(ln=!0);for(const Sr of be.value)Sr.fixed==="left"?(ln=!0,Kn=!0):Sr.fixed==="right"&&(xn=!0);ln!==He.value&&(He.value=ln),xn!==ke.value&&(ke.value=xn),Kn!==Se.value&&(Se.value=Kn)});const Ne=F(()=>{for(const Tt of be.value)if(Tt.ellipsis)return!0;return!1}),qe=Tt=>{const Yt={type:Tt,page:ql.value,pageSize:ce.value,sorter:Ft.value,filters:at.value,dragTarget:Tt==="drag"?Zr.data:void 0};t("change",xe.value,Yt,Xi.value)},Je=(Tt,Yt)=>{yt.value={...at.value,[Tt]:Yt},t("filterChange",Tt,Yt),qe("filter")},ot=(Tt,Yt)=>{Wt.value=Yt?{field:Tt,direction:Yt}:void 0,t("sorterChange",Tt,Yt),qe("sorter")},{_filters:yt,computedFilters:at,resetFilters:ut,clearFilters:vt}=gje({columns:be,onFilterChange:Je}),{_sorter:Wt,computedSorter:Ft,resetSorters:Jt,clearSorters:an}=yje({columns:be,onSorterChange:ot}),mt=new Set,wt=F(()=>{const Tt=[];mt.clear();const Yt=rn=>{if(Qn(rn)&&rn.length>0)for(const ln of rn)Tt.push(ln[o.value]),ln.disabled&&mt.add(ln[o.value]),ln.children&&Yt(ln.children)};return Yt(e.data),Tt}),Ge=F(()=>{const Tt=[],Yt=rn=>{for(const ln of rn)Tt.push(ln.key),ln.children&&Yt(ln.children)};return Yt(pe.value),Tt}),Ue=F(()=>{const Tt=[],Yt=rn=>{for(const ln of rn)ln.disabled||Tt.push(ln.key),ln.children&&Yt(ln.children)};return Yt(pe.value),Tt}),{selectedRowKeys:st,currentSelectedRowKeys:kt,handleSelect:zt,handleSelectAllLeafs:_t,handleSelectAll:$e,select:Lt,selectAll:dt,clearSelected:It}=ZFe({selectedKeys:f,defaultSelectedKeys:h,rowSelection:a,currentAllRowKeys:Ge,currentAllEnabledRowKeys:Ue,emit:t}),{expandedRowKeys:At,handleExpand:jt,expand:nn,expandAll:Ct}=QFe({expandedKeys:p,defaultExpandedKeys:m,defaultExpandAllRows:g,expandable:s,allRowKeys:wt,emit:t}),en=qt({}),Jn=(Tt,Yt)=>{Tt&&(en[Yt.key]=Tt)},dn=Tt=>{var Yt,rn;for(const ln of Object.keys(at.value)){const xn=at.value[ln],Kn=ye.get(ln);if(Kn&&((Yt=Kn.filterable)!=null&&Yt.filter)&&xn.length>0){const Sr=(rn=Kn.filterable)==null?void 0:rn.filter(xn,Tt.raw);if(!Sr)return Sr}}return!0},{dragType:Un,dragState:Zr,handleDragStart:cn,handleDragEnter:hr,handleDragover:di,handleDragEnd:gs,handleDrop:Po}=vje(S),Ps=F(()=>{var Tt;const Yt=rn=>{const ln=[];for(const xn of rn){const Kn={raw:xn,key:xn[e.rowKey],disabled:xn.disabled,expand:xn.expand,isLeaf:xn.isLeaf};xn.children?(Kn.isLeaf=!1,Kn.children=Yt(xn.children)):e.loadMore&&!xn.isLeaf?(Kn.isLeaf=!1,en[Kn.key]&&(Kn.children=Yt(en[Kn.key]))):Kn.isLeaf=!0,Kn.hasSubtree=!!(Kn.children?!e.hideExpandButtonOnEmpty||Kn.children.length>0:e.loadMore&&!Kn.isLeaf),ln.push(Kn)}return ln};return Yt((Tt=e.data)!=null?Tt:[])}),Kc=F(()=>{const Tt=Yt=>Yt.filter(rn=>dn(rn)?(rn.children&&(rn.children=Tt(rn.children)),!0):!1);return Object.keys(at.value).length>0?Tt(Ps.value):Ps.value}),Xi=F(()=>{var Tt,Yt,rn;const ln=fpe(Kc.value);if(ln.length>0){if((Tt=Ft.value)!=null&&Tt.field){const Sr=ye.get(Ft.value.field);if(Sr&&((Yt=Sr.sortable)==null?void 0:Yt.sorter)!==!0){const{field:ri,direction:Hi}=Ft.value;ln.sort((_s,Lu)=>{var cc;const Mr=rg(_s.raw,ri),mr=rg(Lu.raw,ri);if((cc=Sr.sortable)!=null&&cc.sorter&&_n(Sr.sortable.sorter))return Sr.sortable.sorter(_s.raw,Lu.raw,{dataIndex:ri,direction:Hi});const ao=Mr>mr?1:-1;return Hi==="descend"?-ao:ao})}}const{sourcePath:xn,targetPath:Kn}=Zr;if(Zr.dragging&&Kn.length&&Kn.toString()!==xn.toString()&&xn.length===Kn.length&&xn.slice(0,-1).toString()===Kn.slice(0,-1).toString()){let Sr=ln;for(let ri=0;ri=xn.length-1){const Lu=Sr[Hi],cc=Kn[ri];cc>Hi?(Sr.splice(cc+1,0,Lu),Sr.splice(Hi,1)):(Sr.splice(cc,0,Lu),Sr.splice(Hi+1,1))}else Sr=(rn=Sr[Hi].children)!=null?rn:[]}}}return ln}),{page:ql,pageSize:ce,handlePageChange:se,handlePageSizeChange:te}=JFe(e,t),Z=F(()=>{var Tt,Yt;return(Yt=(Tt=a.value)==null?void 0:Tt.onlyCurrent)!=null?Yt:!1});Dt(ql,(Tt,Yt)=>{Tt!==Yt&&Z.value&&It()});const pe=F(()=>e.pagination&&Xi.value.length>ce.value?Xi.value.slice((ql.value-1)*ce.value,ql.value*ce.value):Xi.value),xe=F(()=>hpe(pe.value)),we=()=>be.value.reduce((Tt,Yt,rn)=>{if(Yt.dataIndex)if(rn===0)KA(Tt,Yt.dataIndex,e.summaryText,{addPath:!0});else{let ln=0,xn=!1;pe.value.forEach(Kn=>{if(Yt.dataIndex){const Sr=rg(Kn.raw,Yt.dataIndex);Ke(Sr)?ln+=Sr:!kn(Sr)&&!Sl(Sr)&&(xn=!0)}}),KA(Tt,Yt.dataIndex,xn?"":ln,{addPath:!0})}return Tt},{}),Le=Tt=>Tt&&Tt.length>0?Tt.map(Yt=>({raw:Yt,key:Yt[e.rowKey]})):[],it=F(()=>e.summary?_n(e.summary)?Le(e.summary({columns:be.value,data:xe.value})):Le([we()]):[]),et=fe(0),ht=fe(!0),Ee=fe(!0),Qe=()=>{let Tt=!0,Yt=!0;const rn=re.value;rn&&(Tt=et.value===0,Yt=Math.ceil(et.value+rn.offsetWidth)>=rn.scrollWidth),Tt!==ht.value&&(ht.value=Tt),Yt!==Ee.value&&(Ee.value=Yt)},rt=()=>ht.value&&Ee.value?`${E}-scroll-position-both`:ht.value?`${E}-scroll-position-left`:Ee.value?`${E}-scroll-position-right`:`${E}-scroll-position-middle`,Mt=()=>{const Tt=[];return He.value&&Tt.push(`${E}-has-fixed-col-left`),ke.value&&Tt.push(`${E}-has-fixed-col-right`),Tt},Xt=Tt=>{Tt.target.scrollLeft!==et.value&&(et.value=Tt.target.scrollLeft),Qe()},Gt=Tt=>{Xt(Tt);const{scrollLeft:Yt}=Tt.target;K.value&&(K.value.scrollLeft=Yt),U.value&&(U.value.scrollLeft=Yt)},un=(Tt,Yt)=>{t("rowClick",Tt.raw,Yt)},hn=(Tt,Yt)=>{t("rowDblclick",Tt.raw,Yt)},sn=(Tt,Yt)=>{t("rowContextmenu",Tt.raw,Yt)},sr=(Tt,Yt,rn)=>{t("cellClick",Tt.raw,Yt,rn)},Zn=z2((Tt,Yt,rn)=>{t("cellMouseEnter",Tt.raw,Yt,rn)},30),bn=z2((Tt,Yt,rn)=>{t("cellMouseLeave",Tt.raw,Yt,rn)},30),Gn=(Tt,Yt,rn)=>{t("cellDblclick",Tt.raw,Yt,rn)},ar=(Tt,Yt,rn)=>{t("cellContextmenu",Tt.raw,Yt,rn)},er=(Tt,Yt)=>{t("headerClick",Tt,Yt)},An=F(()=>{var Tt,Yt;const rn=[],ln=He.value||ke.value;let xn,Kn,Sr;((Tt=e.draggable)==null?void 0:Tt.type)==="handle"&&(xn={name:"drag-handle",title:e.draggable.title,width:e.draggable.width,fixed:e.draggable.fixed||ln},rn.push(xn)),e.expandable&&(Kn={name:"expand",title:e.expandable.title,width:e.expandable.width,fixed:e.expandable.fixed||ln},rn.push(Kn)),e.rowSelection&&(Sr={name:e.rowSelection.type==="radio"?"selection-radio":"selection-checkbox",title:e.rowSelection.title,width:e.rowSelection.width,fixed:e.rowSelection.fixed||ln},rn.push(Sr)),!Se.value&&rn.length>0&&rn[rn.length-1].fixed&&(rn[rn.length-1].isLastLeftFixed=!0);const ri=(Yt=e.components)==null?void 0:Yt.operations;return _n(ri)?ri({dragHandle:xn,expand:Kn,selection:Sr}):rn}),nr=F(()=>{var Tt,Yt,rn,ln;if(B.value.x){const xn={width:Ke((Tt=e.scroll)==null?void 0:Tt.x)?`${(Yt=e.scroll)==null?void 0:Yt.x}px`:(rn=e.scroll)==null?void 0:rn.x};return(ln=e.scroll)!=null&&ln.minWidth&&(xn.minWidth=Ke(e.scroll.minWidth)?`${e.scroll.minWidth}px`:e.scroll.minWidth),xn}}),cr=F(()=>{var Tt,Yt,rn,ln;if(B.value.x&&pe.value.length>0){const xn={width:Ke((Tt=e.scroll)==null?void 0:Tt.x)?`${(Yt=e.scroll)==null?void 0:Yt.x}px`:(rn=e.scroll)==null?void 0:rn.x};return(ln=e.scroll)!=null&&ln.minWidth&&(xn.minWidth=Ke(e.scroll.minWidth)?`${e.scroll.minWidth}px`:e.scroll.minWidth),xn}});Xr(q1,qt({loadMore:l,addLazyLoadData:Jn,slots:n,sorter:Ft,filters:at,filterIconAlignLeft:c,resizingColumn:Ce,checkStrictly:D,currentAllEnabledRowKeys:Ue,currentSelectedRowKeys:kt,addColumn:(Tt,Yt)=>{le.set(Tt,Yt)},removeColumn:Tt=>{le.delete(Tt)},onSelectAll:$e,onSelect:zt,onSelectAllLeafs:_t,onSorterChange:ot,onFilterChange:Je,onThMouseDown:We}));const fi=F(()=>[E,`${E}-size-${e.size}`,{[`${E}-border`]:A.value.wrapper,[`${E}-border-cell`]:A.value.cell,[`${E}-border-header-cell`]:!A.value.cell&&A.value.headerCell,[`${E}-border-body-cell`]:!A.value.cell&&A.value.bodyCell,[`${E}-stripe`]:e.stripe,[`${E}-hover`]:e.hoverable,[`${E}-dragging`]:Zr.dragging,[`${E}-type-selection`]:!!e.rowSelection,[`${E}-empty`]:e.data&&pe.value.length===0,[`${E}-layout-fixed`]:e.tableLayoutFixed||B.value.x||ee.value||Ne.value}]),ti=F(()=>[`${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`]:Xe.value}]),Sa=F(()=>{const Tt=Mt();return B.value.x&&Tt.push(rt()),ee.value&&Tt.push(`${E}-scroll-y`),Tt}),Cn=F(()=>!!e.virtualListProps),Vr=fe({}),ys=()=>{const Tt={};for(const Yt of Object.keys(W.value))Tt[Yt]=W.value[Yt].offsetWidth;Vr.value=Tt},Ro=fe(!1),jo=()=>oe.value?oe.value.offsetWidth>oe.value.clientWidth:!1,ni=()=>{const Tt=jo();Ro.value!==Tt&&(Ro.value=Tt),Qe(),ys()};gn(()=>{Ro.value=jo(),ys()});const Yl=F(()=>fr(e.loading)?e.loading:{loading:e.loading}),wl=()=>O(vh,{empty:!0},{default:()=>[O(qp,{colSpan:be.value.length+An.value.length},{default:()=>{var Tt,Yt,rn,ln,xn;return[(xn=(ln=(Tt=n.empty)==null?void 0:Tt.call(n))!=null?ln:(rn=_==null?void 0:(Yt=_.slots).empty)==null?void 0:rn.call(Yt,{component:"table"}))!=null?xn:O(Uh,null,null)]}})]}),Mo=Tt=>{var Yt;if(Tt.expand)return _n(Tt.expand)?Tt.expand():Tt.expand;if(n["expand-row"])return n["expand-row"]({record:Tt.raw});if((Yt=e.expandable)!=null&&Yt.expandedRowRender)return e.expandable.expandedRowRender(Tt.raw)},oc=F(()=>[].concat(An.value,be.value)),Wg=F(()=>e.spanAll?oc.value:be.value),{tableSpan:Tf,removedCells:Xl}=Rne({spanMethod:b,data:pe,columns:Wg}),{tableSpan:sc,removedCells:qh}=Rne({spanMethod:k,data:it,columns:oc}),Rs=Tt=>{if(!(!Cn.value||!Tt||!Vr.value[Tt]))return{width:`${Vr.value[Tt]}px`}},Af=(Tt,Yt)=>O(vh,{key:`table-summary-${Yt}`,class:[`${E}-tr-summary`,_n(e.rowClass)?e.rowClass(Tt.raw,Yt):e.rowClass],onClick:rn=>un(Tt,rn)},{default:()=>[An.value.map((rn,ln)=>{var xn;const Kn=`${Yt}-${ln}-${Tt.key}`,[Sr,ri]=(xn=sc.value[Kn])!=null?xn:[1,1];if(qh.value.includes(Kn))return null;const Hi=Rs(rn.name);return O(Ine,{style:Hi,operationColumn:rn,operations:An.value,record:Tt,rowSpan:Sr,colSpan:ri,summary:!0},null)}),be.value.map((rn,ln)=>{var xn;const Kn=`${Yt}-${An.value.length+ln}-${Tt.key}`,[Sr,ri]=(xn=sc.value[Kn])!=null?xn:[1,1];if(qh.value.includes(Kn))return null;const Hi=Rs(rn.dataIndex);return O(qp,{key:`td-${Kn}`,style:Hi,rowIndex:Yt,record:Tt,column:rn,operations:An.value,dataColumns:be.value,rowSpan:Sr,colSpan:ri,summary:!0,onClick:_s=>sr(Tt,rn,_s),onDblclick:_s=>Gn(Tt,rn,_s),onMouseenter:_s=>Zn(Tt,rn,_s),onMouseleave:_s=>bn(Tt,rn,_s),onContextmenu:_s=>ar(Tt,rn,_s)},{td:n.td,cell:n["summary-cell"]})})],tr:n.tr}),qc=()=>it.value&&it.value.length>0?O("tfoot",null,[it.value.map((Tt,Yt)=>Af(Tt,Yt))]):null,Rd=(Tt,Yt=!0)=>{var rn,ln,xn,Kn,Sr;const ri=Tt.key,Hi=At.value.includes(ri);return O("button",{type:"button",class:`${E}-expand-btn`,onClick:_s=>{jt(ri,Tt.raw),Yt&&_s.stopPropagation()}},[(Sr=(Kn=(rn=n["expand-icon"])==null?void 0:rn.call(n,{expanded:Hi,record:Tt.raw}))!=null?Kn:(xn=(ln=e.expandable)==null?void 0:ln.icon)==null?void 0:xn.call(ln,Hi,Tt.raw))!=null?Sr:O(Hi?Sg:mf,null,null)])},Au=(Tt,{indentSize:Yt,indexPath:rn,allowDrag:ln,expandContent:xn})=>{var Kn,Sr;if(Tt.hasSubtree)return((Kn=Tt.children)==null?void 0:Kn.length)===0&&x.value?wl():(Sr=Tt.children)==null?void 0:Sr.map((ri,Hi)=>Ka(ri,Hi,{indentSize:Yt,indexPath:rn,allowDrag:ln}));if(xn){const ri=re.value;return O(vh,{key:`${Tt.key}-expand`,expand:!0},{default:()=>[O(qp,{isFixedExpand:He.value||ke.value,containerWidth:ri?.clientWidth,colSpan:be.value.length+An.value.length},bje(xn)?xn:{default:()=>[xn]})]})}return null},Ka=(Tt,Yt,{indentSize:rn=0,indexPath:ln,allowDrag:xn=!0}={})=>{var Kn;const Sr=Tt.key,ri=(ln??[]).concat(Yt),Hi=Mo(Tt),_s=At.value.includes(Sr),Lu=Zr.sourceKey===Tt.key,cc=Un.value?{draggable:xn,onDragstart:mr=>{xn&&cn(mr,Tt.key,ri,Tt.raw)},onDragend:mr=>{xn&&gs(mr)}}:{},Mr=Un.value?{onDragenter:mr=>{xn&&hr(mr,ri)},onDragover:mr=>{xn&&di(mr)},onDrop:mr=>{xn&&(qe("drag"),Po(mr))}}:{};return O(Ut,null,[O(vh,Bt({key:Sr,class:[{[`${E}-tr-draggable`]:Un.value==="row",[`${E}-tr-drag`]:Lu},_n(e.rowClass)?e.rowClass(Tt.raw,Yt):e.rowClass],rowIndex:Yt,record:Tt,checked:e.rowSelection&&((Kn=st.value)==null?void 0:Kn.includes(Sr)),onClick:mr=>un(Tt,mr),onDblclick:mr=>hn(Tt,mr),onContextmenu:mr=>sn(Tt,mr)},Un.value==="row"?cc:{},Mr),{default:()=>[An.value.map((mr,ao)=>{var ka;const ei=`${Yt}-${ao}-${Tt.key}`,[wa,Pn]=e.spanAll?(ka=Tf.value[ei])!=null?ka:[1,1]:[1,1];if(e.spanAll&&Xl.value.includes(ei))return null;const Pu=Rs(mr.name);return O(Ine,Bt({key:`operation-td-${ao}`,style:Pu,operationColumn:mr,operations:An.value,record:Tt,hasExpand:!!Hi,selectedRowKeys:kt.value,rowSpan:wa,colSpan:Pn,renderExpandBtn:Rd},Un.value==="handle"?cc:{}),{"drag-handle-icon":n["drag-handle-icon"]})}),be.value.map((mr,ao)=>{var ka;const ei=`${Yt}-${e.spanAll?An.value.length+ao:ao}-${Tt.key}`,[wa,Pn]=(ka=Tf.value[ei])!=null?ka:[1,1];if(Xl.value.includes(ei))return null;const Pu=ao===0?{showExpandBtn:Tt.hasSubtree,indentSize:Tt.hasSubtree?rn-20:rn}:{},dw=Rs(mr.dataIndex);return O(qp,Bt({key:`td-${ao}`,style:dw,rowIndex:Yt,record:Tt,column:mr,operations:An.value,dataColumns:be.value,rowSpan:wa,renderExpandBtn:Rd,colSpan:Pn},Pu,{onClick:Ms=>sr(Tt,mr,Ms),onDblclick:Ms=>Gn(Tt,mr,Ms),onMouseenter:Ms=>Zn(Tt,mr,Ms),onMouseleave:Ms=>bn(Tt,mr,Ms),onContextmenu:Ms=>ar(Tt,mr,Ms)}),{td:n.td})})],tr:n.tr}),_s&&Au(Tt,{indentSize:rn+e.indentSize,indexPath:ri,allowDrag:xn&&!Lu,expandContent:Hi})])},bs=()=>{const Tt=pe.value.some(Yt=>!!Yt.hasSubtree);return O(KS,null,{default:()=>[pe.value.length>0?pe.value.map((Yt,rn)=>Ka(Yt,rn,{indentSize:Tt?20:0})):wl()],tbody:n.tbody})},Yh=()=>O(GS,null,{default:()=>[ve.value.map((Tt,Yt)=>O(vh,{key:`header-row-${Yt}`},{default:()=>[Yt===0&&An.value.map((rn,ln)=>{var xn;return O(pje,{key:`operation-th-${ln}`,ref:Kn=>{Kn?.$el&&rn.name&&(W.value[rn.name]=Kn.$el)},operationColumn:rn,operations:An.value,selectAll:!!(rn.name==="selection-checkbox"&&((xn=e.rowSelection)!=null&&xn.showCheckedAll)),rowSpan:ve.value.length},null)}),Tt.map((rn,ln)=>{const xn=e.columnResizable&&!!rn.dataIndex&&ln{Kn?.$el&&rn.dataIndex&&(W.value[rn.dataIndex]=Kn.$el)},column:rn,operations:An.value,dataColumns:be.value,resizable:xn,onClick:Kn=>er(rn,Kn)},{th:n.th})})]}))],thead:n.thead}),ac=()=>{var Tt,Yt;if(ee.value){const rn=Ke(e.stickyHeader)?`${e.stickyHeader}px`:void 0,ln=[(Tt=L.value)==null?void 0:Tt.outerClass];e.stickyHeader&&ln.push(`${E}-header-sticky`);const xn={top:rn,...(Yt=L.value)==null?void 0:Yt.outerStyle},Kn=N.value?Cd:"div";return O(Ut,null,[e.showHeader&&O(Kn,Bt({ref:X,class:[`${E}-header`,{[`${E}-header-sticky`]:e.stickyHeader&&!N.value}],style:{overflowY:Ro.value?"scroll":void 0,top:N.value?void 0:rn}},C.value?{hide:pe.value.length!==0,disableVertical:!0,...L.value,outerClass:ln,outerStyle:xn}:void 0),{default:()=>[O("table",{class:`${E}-element`,style:nr.value,cellpadding:0,cellspacing:0},[O(aE,{dataColumns:be.value,operations:An.value,columnWidth:De},null),Yh()])]}),O(kd,{onResize:ni},{default:()=>{var Sr,ri;return[Cn.value&&pe.value.length?O(G1,Bt({ref:Hi=>{Hi?.$el&&(oe.value=Hi.$el)},class:`${E}-body`,data:pe.value,itemKey:"_key",component:{list:"table",content:"tbody"},listAttrs:{class:`${E}-element`,style:cr.value},paddingPosition:"list",height:"auto"},e.virtualListProps,{onScroll:Gt}),{item:({item:Hi,index:_s})=>Ka(Hi,_s)}):O(Kn,Bt({ref:Y,class:`${E}-body`,style:{maxHeight:Ke((Sr=e.scroll)==null?void 0:Sr.y)?`${(ri=e.scroll)==null?void 0:ri.y}px`:"100%"}},C.value?{outerStyle:{display:"flex",minHeight:"0"},...L.value}:void 0,{onScroll:Gt}),{default:()=>[O("table",{class:`${E}-element`,style:cr.value,cellpadding:0,cellspacing:0},[pe.value.length!==0&&O(aE,{dataColumns:be.value,operations:An.value,columnWidth:De},null),bs()])]})]}}),it.value&&it.value.length>0&&O("div",{ref:U,class:`${E}-tfoot`,style:{overflowY:Ro.value?"scroll":"hidden"}},[O("table",{class:`${E}-element`,style:cr.value,cellpadding:0,cellspacing:0},[O(aE,{dataColumns:be.value,operations:An.value,columnWidth:De},null),qc()])])])}return O(kd,{onResize:()=>Qe()},{default:()=>[O("table",{class:`${E}-element`,cellpadding:0,cellspacing:0,style:cr.value},[O(aE,{dataColumns:be.value,operations:An.value,columnWidth:De},null),e.showHeader&&Yh(),bs(),it.value&&it.value.length>0&&qc()])]})},lc=Tt=>{var Yt;const rn=(Yt=e.scroll)!=null&&Yt.maxHeight?{maxHeight:e.scroll.maxHeight}:void 0,ln=N.value?Cd:"div";return O(Ut,null,[O("div",{class:[`${E}-container`,Sa.value]},[O(ln,Bt({ref:V,class:[`${E}-content`,{[`${E}-content-scroll-x`]:!ee.value}],style:rn},C.value?{outerStyle:{height:"100%"},...L.value}:void 0,{onScroll:Xt}),{default:()=>[Tt?O("table",{class:`${E}-element`,cellpadding:0,cellspacing:0},[Tt()]):ac()]})]),n.footer&&O("div",{class:`${E}-footer`},[n.footer()])])},Iu=()=>{var Tt,Yt;const rn=fr(e.pagination)?ya(e.pagination,["current","pageSize","defaultCurrent","defaultPageSize"]):{};return O("div",{class:ti.value},[(Tt=n["pagination-left"])==null?void 0:Tt.call(n),O(Rz,Bt({total:Kc.value.length,current:ql.value,pageSize:ce.value,onChange:ln=>{se(ln),qe("pagination")},onPageSizeChange:ln=>{te(ln),qe("pagination")}},rn),null),(Yt=n["pagination-right"])==null?void 0:Yt.call(n)])},uc=F(()=>{var Tt,Yt;if(is((Tt=e.scroll)==null?void 0:Tt.y))return{height:(Yt=e.scroll)==null?void 0:Yt.y}});return{render:()=>{var Tt;return n.default?O("div",{class:fi.value},[lc(n.default)]):(R.value=(Tt=n.columns)==null?void 0:Tt.call(n),O("div",{class:fi.value,style:uc.value},[R.value,O(wd,Yl.value,{default:()=>[e.pagination!==!1&&(pe.value.length>0||Xi.value.length>0)&&Xe.value&&Iu(),lc(),e.pagination!==!1&&(pe.value.length>0||Xi.value.length>0)&&!Xe.value&&Iu()]})]))},selfExpand:nn,selfExpandAll:Ct,selfSelect:Lt,selfSelectAll:dt,selfResetFilters:ut,selfClearFilters:vt,selfResetSorters:Jt,selfClearSorters:an}},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 Jc=(e,t)=>{const n=Cu(e,t),r=fe(n.value);return Dt(n,(o,a)=>{W1(o,a)||(r.value=o)}),r};var R4=_e({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:f,minWidth:h}=Qt(e),p=Jc(e,"sortable"),m=Jc(e,"filterable"),g=Jc(e,"cellClass"),b=Jc(e,"headerCellClass"),S=Jc(e,"bodyCellClass"),k=Jc(e,"summaryCellClass"),C=Jc(e,"cellStyle"),x=Jc(e,"headerCellStyle"),E=Jc(e,"bodyCellStyle"),_=Jc(e,"summaryCellStyle"),A=Jc(e,"tooltip"),R=fo(),M=In(q1,{}),D=In(Tne,void 0),{children:N,components:L}=$k("TableColumn"),B=qt(new Map);Xr(Tne,{addChild:(Y,oe)=>{B.set(Y,oe)},removeChild:Y=>{B.delete(Y)}});const V=fe();Dt([L,B],([Y,oe])=>{if(Y.length>0){const ne=[];Y.forEach(X=>{const K=oe.get(X);K&&ne.push(K)}),V.value=ne}else V.value=void 0});const z=qt({dataIndex:r,title:o,width:a,minWidth:h,align:s,fixed:l,ellipsis:c,sortable:p,filterable:m,cellClass:g,headerCellClass:b,bodyCellClass:S,summaryCellClass:k,cellStyle:C,headerCellStyle:x,bodyCellStyle:E,summaryCellStyle:_,index:f,tooltip:A,children:V,slots:t});return R&&(D?D.addChild(R.uid,z):(n=M.addColumn)==null||n.call(M,R.uid,z)),Fo(()=>{var Y;R&&(D?D.removeChild(R.uid):(Y=M.removeColumn)==null||Y.call(M,R.uid))}),()=>{var Y;return N.value=(Y=t.default)==null?void 0:Y.call(t),N.value}}});const _je=Object.assign(E6,{Thead:GS,Tbody:KS,Tr:vh,Th:qS,Td:qp,Column:R4,install:(e,t)=>{Wn(e,t);const n=Hn(t);e.component(n+E6.name,E6),e.component(n+GS.name,GS),e.component(n+KS.name,KS),e.component(n+vh.name,vh),e.component(n+qS.name,qS),e.component(n+qp.name,qp),e.component(n+R4.name,R4)}}),Sje=({direction:e,type:t,offset:n})=>e==="vertical"?{transform:`translateY(${-n}px)`}:{transform:`translateX(${-n}px)`},kje=(e,t)=>{const{scrollTop:n,scrollLeft:r}=e;t==="horizontal"&&r&&e.scrollTo({left:-1*r}),t==="vertical"&&n&&e.scrollTo({top:-1*n})},Vz=Symbol("ArcoTabs"),wje=_e({name:"TabsTab",components:{IconHover:ko,IconClose:ms},props:{tab:{type:Object,required:!0},active:Boolean,editable:Boolean},emits:["click","delete"],setup(e,{emit:t}){const n=Ae("tabs-tab"),r=In(Vz,{}),o=f=>{e.tab.disabled||t("click",e.tab.key,f)},a=f=>{f.key==="Enter"&&o(f)},s=F(()=>Object.assign(r.trigger==="click"?{onClick:o}:{onMouseover:o},{onKeydown:a})),l=f=>{e.tab.disabled||t("delete",e.tab.key,f)},c=F(()=>[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 Cje(e,t,n,r,o,a){const s=Pe("icon-close"),l=Pe("icon-hover");return H(),J("div",Bt({tabindex:"0",class:e.cls},e.eventHandlers),[I("span",{class:ae(`${e.prefixCls}-title`)},[ct(e.$slots,"default")],2),e.editable&&e.tab.closable?(H(),Ye(l,{key:0,class:ae(`${e.prefixCls}-close-btn`),onClick:rs(e.handleDelete,["stop"])},{default:de(()=>[O(s)]),_:1},8,["class","onClick"])):Re("v-if",!0)],16)}var xje=Oe(wje,[["render",Cje]]);function Eje(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Bi(e)}var Dne=_e({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=Ae("tabs-nav-button"),r=s=>{e.disabled||t("click",e.type,s)},o=()=>e.direction==="horizontal"?e.type==="next"?O(Ni,null,null):O(kl,null,null):e.type==="next"?O(Av,null,null):O(Ok,null,null),a=F(()=>[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(ko,{disabled:e.disabled},Eje(s=o())?s:{default:()=>[s]})])}}});const Tje=_e({name:"TabsNavInk",props:{activeTabRef:{type:Object},direction:{type:String},disabled:Boolean,animation:Boolean},setup(e){const{activeTabRef:t}=Qt(e),n=Ae("tabs-nav-ink"),r=fe(0),o=fe(0),a=F(()=>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,f=e.direction==="vertical"?t.value.offsetHeight:t.value.offsetWidth;(c!==r.value||f!==o.value)&&(r.value=c,o.value=f)}};gn(()=>{yn(()=>s())}),Ga(()=>{s()});const l=F(()=>[n,{[`${n}-animation`]:e.animation,[`${n}-disabled`]:e.disabled}]);return{prefixCls:n,cls:l,style:a}}});function Aje(e,t,n,r,o,a){return H(),J("div",{class:ae(e.cls),style:je(e.style)},null,6)}var Ije=Oe(Tje,[["render",Aje]]),Lje=_e({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}=Qt(e),c=Ae("tabs-nav"),f=fe(),h=fe(),p=fe({}),m=F(()=>{if(!kn(o.value))return p.value[o.value]}),g=fe(),b=F(()=>e.editable&&["line","card","card-gutter"].includes(e.type)),S=fe(!1),k=fe(0),C=fe(0),x=fe(0),E=()=>{var X,K,re;return(re=s.value==="vertical"?(X=f.value)==null?void 0:X.offsetHeight:(K=f.value)==null?void 0:K.offsetWidth)!=null?re:0},_=()=>!h.value||!f.value?0:s.value==="vertical"?h.value.offsetHeight-f.value.offsetHeight:h.value.offsetWidth-f.value.offsetWidth,A=()=>{S.value=R(),S.value?(k.value=E(),C.value=_(),x.value>C.value&&(x.value=C.value)):x.value=0},R=()=>f.value&&h.value?e.direction==="vertical"?h.value.offsetHeight>f.value.offsetHeight:h.value.offsetWidth>f.value.offsetWidth:!1,M=X=>{(!f.value||!h.value||X<0)&&(X=0),x.value=Math.min(X,C.value)},D=()=>{if(!m.value||!f.value||!S.value)return;kje(f.value,s.value);const X=s.value==="horizontal",K=X?"offsetLeft":"offsetTop",re=X?"offsetWidth":"offsetHeight",ee=m.value[K],le=m.value[re],Q=f.value[re],ye=window.getComputedStyle(m.value),be=X?l.value==="end"?"marginRight":"marginLeft":l.value==="end"?"marginBottom":"marginTop",ve=parseFloat(ye[be])||0;l.value==="auto"?eex.value+Q&&M(ee+le-Q+ve):l.value==="center"?M(ee+(le-Q+ve)/2):l.value==="start"?M(ee-ve):l.value==="end"?M(ee+le-Q+ve):Ke(l.value)&&M(ee-l.value)},N=X=>{if(!S.value)return;X.preventDefault();const{deltaX:K,deltaY:re}=X;Math.abs(K)>Math.abs(re)?M(x.value+K):M(x.value+re)},L=(X,K)=>{t("click",X,K)},B=(X,K)=>{t("delete",X,K),yn(()=>{delete p.value[X]})},U=X=>{const K=X==="previous"?x.value-k.value:x.value+k.value;M(K)},W=()=>{A(),g.value&&g.value.$forceUpdate()};Dt(r,()=>{yn(()=>{A()})}),Dt([a,l],()=>{setTimeout(()=>{D()},0)}),gn(()=>{A(),f.value&&Ti(f.value,"wheel",N,{passive:!1})}),yi(()=>{f.value&&Yi(f.value,"wheel",N)});const V=()=>!b.value||!e.showAddButton?null:O("div",{class:`${c}-add-btn`,onClick:X=>t("add",X)},[O(ko,null,{default:()=>[O(mf,null,null)]})]),z=F(()=>[c,`${c}-${e.direction}`,`${c}-${e.position}`,`${c}-size-${e.size}`,`${c}-type-${e.type}`]),Y=F(()=>[`${c}-tab-list`,{[`${c}-tab-list-no-padding`]:!e.headerPadding&&["line","text"].includes(e.type)&&e.direction==="horizontal"}]),oe=F(()=>Sje({direction:e.direction,type:e.type,offset:x.value})),ne=F(()=>[`${c}-tab`,{[`${c}-tab-scroll`]:S.value}]);return()=>{var X;return O("div",{class:z.value},[S.value&&O(Dne,{type:"previous",direction:e.direction,disabled:x.value<=0,onClick:U},null),O(kd,{onResize:()=>A()},{default:()=>[O("div",{class:ne.value,ref:f},[O(kd,{onResize:W},{default:()=>[O("div",{ref:h,class:Y.value,style:oe.value},[e.tabs.map((K,re)=>O(xje,{key:K.key,ref:ee=>{ee?.$el&&(p.value[K.key]=ee.$el)},active:K.key===o.value,tab:K,editable:e.editable,onClick:L,onDelete:B},{default:()=>{var ee,le,Q;return[(Q=(le=(ee=K.slots).title)==null?void 0:le.call(ee))!=null?Q:K.title]}})),e.type==="line"&&m.value&&O(Ije,{ref:g,activeTabRef:m.value,direction:e.direction,disabled:!1,animation:e.animation},null)])]}),!S.value&&V()])]}),S.value&&O(Dne,{type:"next",direction:e.direction,disabled:x.value>=C.value,onClick:U},null),O("div",{class:`${c}-extra`},[S.value&&V(),(X=n.extra)==null?void 0:X.call(n)])])}}}),T6=_e({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}=Qt(e),l=Ae("tabs"),{mergedSize:c}=_a(r),f=F(()=>e.direction==="vertical"?"left":e.position),h=F(()=>["left","right"].includes(f.value)?"vertical":"horizontal"),{children:p,components:m}=$k("TabPane"),g=qt(new Map),b=F(()=>{const B=[];return m.value.forEach(U=>{const W=g.get(U);W&&B.push(W)}),B}),S=F(()=>b.value.map(B=>B.key)),k=(B,U)=>{g.set(B,U)},C=B=>{g.delete(B)},x=fe(e.defaultActiveKey),E=F(()=>{var B;const U=(B=e.activeKey)!=null?B:x.value;return kn(U)?S.value[0]:U}),_=F(()=>{const B=S.value.indexOf(E.value);return B===-1?0:B});Xr(Vz,qt({lazyLoad:o,destroyOnHide:a,activeKey:E,addItem:k,removeItem:C,trigger:s}));const A=B=>{B!==E.value&&(x.value=B,t("update:activeKey",B),t("change",B))},R=(B,U)=>{A(B),t("tabClick",B,U)},M=B=>{t("add",B),e.autoSwitch&&yn(()=>{const U=S.value[S.value.length-1];A(U)})},D=(B,U)=>{t("delete",B,U)},N=()=>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=F(()=>[l,`${l}-${h.value}`,`${l}-${f.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},[f.value==="bottom"&&N(),O(Lje,{tabs:b.value,activeKey:E.value,activeIndex:_.value,direction:h.value,position:f.value,editable:e.editable,animation:e.animation,showAddButton:e.showAddButton,headerPadding:e.headerPadding,scrollPosition:e.scrollPosition,size:c.value,type:e.type,onClick:R,onAdd:M,onDelete:D},{extra:n.extra}),f.value!=="bottom"&&N()])}}});const Pje=_e({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}=Qt(e),s=fo(),l=Ae("tabs"),c=In(Vz,{}),f=fe(),h=F(()=>s?.vnode.key),p=F(()=>h.value===c.activeKey),m=fe(c.lazyLoad?p.value:!0),g=qt({key:h,title:r,disabled:o,closable:a,slots:t});return s?.uid&&((n=c.addItem)==null||n.call(c,s.uid,g)),Fo(()=>{var b;s?.uid&&((b=c.removeItem)==null||b.call(c,s.uid))}),Dt(p,b=>{b?m.value||(m.value=!0):(e.destroyOnHide||c.destroyOnHide)&&(m.value=!1)}),Ga(()=>{g.slots={...t}}),{prefixCls:l,active:p,itemRef:f,mounted:m}}});function Rje(e,t,n,r,o,a){return H(),J("div",{ref:"itemRef",class:ae([`${e.prefixCls}-content-item`,{[`${e.prefixCls}-content-item-active`]:e.active}])},[e.mounted?(H(),J("div",{key:0,class:ae(`${e.prefixCls}-pane`)},[ct(e.$slots,"default")],2)):Re("v-if",!0)],2)}var M4=Oe(Pje,[["render",Rje]]);const Mje=Object.assign(T6,{TabPane:M4,install:(e,t)=>{Wn(e,t);const n=Hn(t);e.component(n+T6.name,T6),e.component(n+M4.name,M4)}});function Dje(e){const{modelValue:t,defaultValue:n,format:r,isRange:o}=Qt(e);function a(){return o.value?[]:void 0}function s(k){if(!kn(k))return o.value?Qn(k)?k:[k,void 0]:k}const l=F(()=>{const k=s(t.value);return rc(k,r.value)}),c=F(()=>{const k=s(n.value);return rc(k,r.value)}),[f,h]=ja(kn(l.value)?kn(c.value)?a():c.value:l.value);Dt(l,()=>{kn(l.value)&&h(a())});const p=F(()=>l.value||f.value),[m,g]=ja(p.value);Dt([p],()=>{g(p.value)});const[b,S]=ja();return Dt([m],()=>{S(void 0)}),{computedValue:p,panelValue:m,inputValue:b,setValue:h,setPanelValue:g,setInputValue:S}}var Oje=_e({name:"TimePickerRangePanel",components:{Panel:WA},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}=Qt(e),o=fe(r.value);Dt(r,()=>{o.value=r.value});const a=F(()=>n?.value?n.value[o.value]:void 0);function s(c){const f=kn(n)||kn(n?.value)?[]:[...n.value];f[o.value]=c,t("select",f)}function l(){if(fS(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(WA,e,this.$slots)}});const $je=_e({name:"TimePicker",components:{Trigger:la,DateInput:Qfe,DateRangeInput:ghe,Panel:WA,RangePanel:Oje,IconClockCircle:W3},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:f,placeholder:h,disableConfirm:p,disabledHours:m,disabledMinutes:g,disabledSeconds:b}=Qt(e),{mergedDisabled:S,eventHandlers:k}=wo({disabled:f}),C=F(()=>n.value==="time-range"),x=Ae("timepicker"),E=fe(),{format:_,use12Hours:A}=xz(qt({format:r,use12Hours:o})),{computedValue:R,panelValue:M,inputValue:D,setValue:N,setPanelValue:L,setInputValue:B}=Dje(qt({modelValue:a,defaultValue:s,isRange:C,format:_})),[U,W]=aa(c.value,qt({value:l})),V=Se=>{Se!==U.value&&(W(Se),t("popup-visible-change",Se),t("update:popupVisible",Se))},{t:z}=Lo(),[Y,oe]=ja(0),ne=F(()=>{const Se=h?.value;return C.value?kn(Se)?z("datePicker.rangePlaceholder.time"):Qn(Se)?Se:[Se,Se]:kn(Se)?z("datePicker.placeholder.time"):Se}),X=ihe(qt({disabledHours:m,disabledMinutes:g,disabledSeconds:b}));function K(Se){var Ne,qe;if(vz(Se,R.value)){const Je=nf(Se,_.value),ot=gu(Se);t("update:modelValue",Je),t("change",Je,ot),(qe=(Ne=k.value)==null?void 0:Ne.onChange)==null||qe.call(Ne)}}function re(Se,Ne){if(X(Se))return;let qe=Se;if(Qn(Se)){const Je=Es();qe=Se.map(ot=>(ot&&(ot=ot.year(Je.year()),ot=ot.month(Je.month()),ot=ot.date(Je.date())),ot)),fS(qe)&&(qe=V2(qe)),qe?.length===0&&(qe=void 0)}K(qe),N(qe),Ne!==U.value&&V(Ne)}function ee(Se,Ne){L(Se),Ne!==U.value&&V(Ne)}function le(Se){E.value&&E.value.focus&&E.value.focus(Se)}function Q(Se){S.value||(V(Se),Se&&yn(()=>{le(Y.value)}))}function ye(Se){const Ne=nf(Se,_.value),qe=gu(Se);t("select",Ne,qe),p.value&&(!C.value||fS(Se))?re(Se,!0):(ee(Se,!0),B(void 0))}function be(Se){re(Se,!1)}function ve(){re(M.value||R.value,!1)}function Ce(){if(fS(M.value))re(M.value,!1);else{const Se=(Y.value+1)%2;oe(Se),le(Se)}}function De(Se){V(!0);const Ne=Se.target.value;if(B(Ne),!HA(Ne,_.value))return;const qe=Es(Ne,_.value);X(qe)||(p.value?re(qe,!0):ee(qe,!0))}function We(Se){V(!0);const Ne=Se.target.value,qe=Qn(D.value)?[...D.value]:Qn(M.value)&&nf(M.value,_.value)||[];if(qe[Y.value]=Ne,B(qe),!HA(Ne,_.value))return;const Je=Es(Ne,_.value);if(X(Je))return;const ot=Qn(M.value)?[...M.value]:[];ot[Y.value]=Je,p.value&&fS(ot)?re(ot,!0):ee(ot,!0)}function Xe(Se){Se.stopPropagation(),L(void 0),re(void 0,C.value)}Dt(U,(Se,Ne)=>{Se!==Ne&&L(R.value),Se||B(void 0)});const He=F(()=>C.value?{focusedIndex:Y.value,onFocusedIndexChange:Se=>{oe(Se)},onChange:We,onPressEnter:Ce}:{onChange:De,onPressEnter:ve}),ke=F(()=>C.value?{displayIndex:Y.value,onDisplayIndexChange:Se=>{oe(Se),le(Se)}}:{});return{refInput:E,isRange:C,prefixCls:x,panelVisible:U,focusedInputIndex:Y,computedPlaceholder:ne,panelValue:M,inputValue:D,computedFormat:_,computedUse12Hours:A,inputProps:He,panelProps:ke,mergedDisabled:S,onPanelVisibleChange:Q,onInputClear:Xe,onPanelSelect:ye,onPanelConfirm:be,onPanelClick:()=>{le(Y.value)}}}});function Nje(e,t,n,r,o,a){const s=Pe("IconClockCircle"),l=Pe("Trigger");return H(),Ye(l,Bt({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:ae(`${e.prefixCls}-container`),onClick:t[0]||(t[0]=(...c)=>e.onPanelClick&&e.onPanelClick(...c))},[(H(),Ye(Fa(e.isRange?"RangePanel":"Panel"),Bt(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}),_o({_:2},[e.$slots.extra?{name:"extra-footer",fn:de(()=>[ct(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(()=>[(H(),Ye(Fa(e.isRange?"DateRangeInput":"DateInput"),Bt({...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}),_o({"suffix-icon":de(()=>[ct(e.$slots,"suffix-icon",{},()=>[O(s)])]),_:2},[e.$slots.prefix?{name:"prefix",fn:de(()=>[ct(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 A6=Oe($je,[["render",Nje]]);const Bje=Object.assign(A6,{install:(e,t)=>{Wn(e,t);const n=Hn(t);e.component(n+A6.name,A6)}}),mpe=Symbol("ArcoTimeline"),Fje=(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]},jje=_e({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=Ae("timeline-item"),n=fo(),r=In(mpe,{}),o=F(()=>{var m,g,b;return(b=(g=r.items)==null?void 0:g.indexOf((m=n?.uid)!=null?m:-1))!=null?b:-1}),a=F(()=>{var m;return(m=r?.direction)!=null?m:"vertical"}),s=F(()=>{var m;return(m=r?.labelPosition)!=null?m:"same"}),l=F(()=>{const{items:m=[],reverse:g,labelPosition:b,mode:S="left"}=r,k=a.value,C=Fje(o.value,S,k,e.position);return[t,{[`${t}-${k}-${C}`]:k,[`${t}-label-${b}`]:b,[`${t}-last`]:o.value===(g===!0?0:m.length-1)}]}),c=F(()=>[`${t}-dot-line`,`${t}-dot-line-is-${a.value}`]),f=F(()=>{const{direction:m}=r||{};return{[m==="horizontal"?"borderTopStyle":"borderLeftStyle"]:e.lineType,...e.lineColor?{borderColor:e.lineColor}:{}}}),h=F(()=>[`${t}-dot`,`${t}-dot-${e.dotType}`]),p=F(()=>({[e.dotType==="solid"?"backgroundColor":"borderColor"]:e.dotColor}));return{cls:l,dotLineCls:c,dotTypeCls:h,prefixCls:t,computedDotLineStyle:f,computedDotStyle:p,labelPosition:s}}});function Uje(e,t,n,r,o,a){return H(),J("div",{role:"listitem",class:ae(e.cls)},[I("div",{class:ae(`${e.prefixCls}-dot-wrapper`)},[I("div",{class:ae(e.dotLineCls),style:je(e.computedDotLineStyle)},null,6),I("div",{class:ae(`${e.prefixCls}-dot-content`)},[e.$slots.dot?(H(),J("div",{key:0,class:ae(`${e.prefixCls}-dot-custom`)},[ct(e.$slots,"dot")],2)):(H(),J("div",{key:1,class:ae(e.dotTypeCls),style:je(e.computedDotStyle)},null,6))],2)],2),I("div",{class:ae(`${e.prefixCls}-content-wrapper`)},[e.$slots.default?(H(),J("div",{key:0,class:ae(`${e.prefixCls}-content`)},[ct(e.$slots,"default")],2)):Re("v-if",!0),e.labelPosition!=="relative"?(H(),J("div",{key:1,class:ae(`${e.prefixCls}-label`)},[e.$slots.label?ct(e.$slots,"label",{key:0}):(H(),J(Ut,{key:1},[ze(Be(e.label),1)],64))],2)):Re("v-if",!0)],2),e.labelPosition==="relative"?(H(),J("div",{key:0,class:ae(`${e.prefixCls}-label`)},[e.$slots.label?ct(e.$slots,"label",{key:0}):(H(),J(Ut,{key:1},[ze(Be(e.label),1)],64))],2)):Re("v-if",!0)],2)}var Ky=Oe(jje,[["render",Uje]]),I6=_e({name:"Timeline",components:{Item:Ky,Spin:wd},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=Ae("timeline"),r=F(()=>e.pending||t.pending),{children:o,components:a}=$k("TimelineItem"),{reverse:s,direction:l,labelPosition:c,mode:f}=Qt(e),h=qt({items:a,direction:l,reverse:s,labelPosition:c,mode:f});Xr(mpe,h);const p=F(()=>[n,`${n}-${e.mode}`,`${n}-direction-${e.direction}`,{[`${n}-is-reverse`]:e.reverse}]);return()=>{var m,g;return r.value?o.value=(m=t.default)==null?void 0:m.call(t).concat(O(Ky,{lineType:"dashed"},{default:()=>[e.pending!==!0&&O("div",null,[e.pending])],dot:()=>{var b,S;return(S=(b=t.dot)==null?void 0:b.call(t))!=null?S:O(wd,{size:12},null)}})):o.value=(g=t.default)==null?void 0:g.call(t),O("div",{role:"list",class:p.value},[o.value])}}});const Vje=Object.assign(I6,{Item:Ky,install:(e,t)=>{Wn(e,t);const n=Hn(t);e.component(n+I6.name,I6),e.component(n+Ky.name,Ky)}}),zje=_e({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=Ae("icon"),r=F(()=>[n,`${n}-delete`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Hje=["stroke-width","stroke-linecap","stroke-linejoin"];function Wje(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,Hje)}var L6=Oe(zje,[["render",Wje]]);const ic=Object.assign(L6,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+L6.name,L6)}}),zz=Symbol("ArcoTransfer");var Gje=_e({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=Ae("transfer-list-item"),n=In(zz,void 0),r=()=>{e.simple&&!e.disabled&&n?.moveTo([e.data.value],e.type==="target"?"source":"target")},o=F(()=>[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(_d,{class:[`${t}-content`,`${t}-checkbox`],modelValue:n?.selected,value:e.data.value,onChange:f=>n?.onSelect(f),uninjectGroupContext:!0,disabled:e.disabled},{default:()=>{var f,h,p;return[(p=(h=n==null?void 0:(f=n.slots).item)==null?void 0:h.call(f,{label:e.data.label,value:e.data.value}))!=null?p:e.data.label]}}),e.allowClear&&!e.disabled&&O(ko,{class:`${t}-remove-btn`,onClick:a},{default:()=>[O(ms,null,null)]})])}}});const Kje=_e({name:"TransferView",components:{Empty:NT,Checkbox:_d,IconHover:ko,IconDelete:ic,InputSearch:Ev.Search,List:Khe,TransferListItem:Gje,Scrollbar:Cd},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=Ae("transfer-view"),r=fe(""),o=In(zz,void 0),a=F(()=>e.dataInfo.selected.length),s=F(()=>e.dataInfo.data.length),l=F(()=>e.dataInfo.selected.length>0&&e.dataInfo.selected.length===e.dataInfo.allValidValues.length),c=F(()=>e.dataInfo.selected.length>0&&e.dataInfo.selected.length{g?o?.onSelect([...e.selected,...e.dataInfo.allValidValues]):o?.onSelect(e.selected.filter(b=>!e.dataInfo.allValidValues.includes(b)))},h=F(()=>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:f,handleSearch:g=>{t("search",g,e.type)},handleClear:()=>{o?.moveTo(e.dataInfo.allValidValues,"source")},transferCtx:o}}});function qje(e,t,n,r,o,a){const s=Pe("checkbox"),l=Pe("icon-delete"),c=Pe("icon-hover"),f=Pe("input-search"),h=Pe("transfer-list-item"),p=Pe("list"),m=Pe("Scrollbar"),g=Pe("Empty");return H(),J("div",{class:ae(e.prefixCls)},[I("div",{class:ae(`${e.prefixCls}-header`)},[ct(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:ae(`${e.prefixCls}-header-title`)},[e.allowClear||e.simple||!e.showSelectAll?(H(),J("span",{key:0,class:ae(`${e.prefixCls}-header-title-simple`)},Be(e.title),3)):(H(),Ye(s,{key:1,"model-value":e.checked,indeterminate:e.indeterminate,disabled:e.disabled,"uninject-group-context":"",onChange:e.handleSelectAllChange},{default:de(()=>[ze(Be(e.title),1)]),_:1},8,["model-value","indeterminate","disabled","onChange"]))],2),e.allowClear?(H(),Ye(c,{key:0,disabled:e.disabled,class:ae(`${e.prefixCls}-header-clear-btn`),onClick:e.handleClear},{default:de(()=>[O(l)]),_:1},8,["disabled","class","onClick"])):e.simple?Re("v-if",!0):(H(),J("span",{key:1,class:ae(`${e.prefixCls}-header-count`)},Be(e.dataInfo.selected.length)+" / "+Be(e.dataInfo.data.length),3))])],2),e.showSearch?(H(),J("div",{key:0,class:ae(`${e.prefixCls}-search`)},[O(f,Bt({modelValue:e.filter,"onUpdate:modelValue":t[0]||(t[0]=b=>e.filter=b),disabled:e.disabled},e.inputSearchProps,{onChange:e.handleSearch}),null,16,["modelValue","disabled","onChange"])],2)):Re("v-if",!0),I("div",{class:ae(`${e.prefixCls}-body`)},[e.filteredData.length>0?(H(),Ye(m,{key:0},{default:de(()=>{var b,S;return[ct(e.$slots,"default",{data:e.filteredData,selectedKeys:(b=e.transferCtx)==null?void 0:b.selected,onSelect:(S=e.transferCtx)==null?void 0:S.onSelect},()=>[O(p,{class:ae(`${e.prefixCls}-list`),bordered:!1,scrollbar:!1},{default:de(()=>[(H(!0),J(Ut,null,mn(e.filteredData,k=>(H(),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})):(H(),Ye(g,{key:1,class:ae(`${e.prefixCls}-empty`)},null,8,["class"]))],2)],2)}var Yje=Oe(Kje,[["render",qje]]);const Xje=_e({name:"Transfer",components:{ArcoButton:Ho,TransferView:Yje,IconLeft:kl,IconRight:Ni},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}=wo({disabled:Cu(e,"disabled")}),a=Ae("transfer"),s=fe(e.defaultValue),l=F(()=>{var x;return(x=e.modelValue)!=null?x:s.value}),c=fe(e.defaultSelected),f=F(()=>{var x;return(x=e.selected)!=null?x:c.value}),h=F(()=>{var x;return(x=e.title)==null?void 0:x[0]}),p=F(()=>{var x;return(x=e.title)==null?void 0:x[1]}),m=F(()=>{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),f.value.includes(_.value)&&(E.selected.push(_.value),_.disabled||E.validSelected.push(_.value))):(x.data.push(_),_.disabled||x.allValidValues.push(_.value),f.value.includes(_.value)&&(x.selected.push(_.value),_.disabled||x.validSelected.push(_.value)));return{sourceInfo:x,targetInfo:E}}),g=(x,E)=>{t("search",x,E)},b=(x,E)=>{var _,A;const R=E==="target"?[...l.value,...x]:l.value.filter(M=>!x.includes(M));k(m.value[E==="target"?"targetInfo":"sourceInfo"].selected),s.value=R,t("update:modelValue",R),t("change",R),(A=(_=o.value)==null?void 0:_.onChange)==null||A.call(_)},S=x=>{const E=x==="target"?m.value.sourceInfo.validSelected:m.value.targetInfo.validSelected;b(E,x)},k=x=>{c.value=x,t("update:selected",x),t("select",x)};Xr(zz,qt({selected:f,slots:n,moveTo:b,onSelect:k}));const C=F(()=>[a,{[`${a}-simple`]:e.simple,[`${a}-disabled`]:r.value}]);return{prefixCls:a,cls:C,dataInfo:m,computedSelected:f,mergedDisabled:r,sourceTitle:h,targetTitle:p,handleClick:S,handleSearch:g}}});function Zje(e,t,n,r,o,a){const s=Pe("transfer-view"),l=Pe("icon-right"),c=Pe("arco-button"),f=Pe("icon-left");return H(),J("div",{class:ae(e.cls)},[O(s,{type:"source",class:ae(`${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},_o({_:2},[e.$slots.source?{name:"default",fn:de(h=>[ct(e.$slots,"source",Ui(ma(h)))]),key:"0"}:void 0,e.$slots["source-title"]?{name:"title",fn:de(h=>[ct(e.$slots,"source-title",Ui(ma(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?Re("v-if",!0):(H(),J("div",{key:0,class:ae([`${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(()=>[ct(e.$slots,"to-target-icon",{},()=>[O(l)])]),_:3},8,["disabled"]),e.oneWay?Re("v-if",!0):(H(),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(()=>[ct(e.$slots,"to-source-icon",{},()=>[O(f)])]),_:3},8,["disabled"]))],2)),O(s,{type:"target",class:ae(`${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},_o({_:2},[e.$slots.target?{name:"default",fn:de(h=>[ct(e.$slots,"target",Ui(ma(h)))]),key:"0"}:void 0,e.$slots["target-title"]?{name:"title",fn:de(h=>[ct(e.$slots,"target-title",Ui(ma(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 P6=Oe(Xje,[["render",Zje]]);const Qje=Object.assign(P6,{install:(e,t)=>{Wn(e,t);const n=Hn(t);e.component(n+P6.name,P6)}}),gpe=Symbol("TreeInjectionKey");function Jje(e){const t=[];function n(r){r&&r.forEach(o=>{t.push(o),n(o.children)})}return n(e),t}function eUe(e){const t=new Map;return e.forEach(n=>{t.set(n.key,n)}),t}function vj(e){return e.selectable&&!e.disabled}function One(e){return!e.isLeaf&&e.children}function tUe(e){return bl(e.isLeaf)?e.isLeaf:!e.children}function mj(e){return Set.prototype.add.bind(e)}function gj(e){return Set.prototype.delete.bind(e)}function og(e){return e.disabled||e.disableCheckbox?!1:!!e.checkable}function Hz(e){var t;const n=[];return(t=e.children)==null||t.forEach(r=>{og(r)&&n.push(r.key,...Hz(r))}),n}function ype(e){var t;const{node:n,checkedKeySet:r,indeterminateKeySet:o}=e;let a=n.parent;for(;a;){if(og(a)){const s=a.key,l=((t=a.children)==null?void 0:t.filter(og))||[];let c=0;const f=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!==f?o.add(s):o.delete(s),c&&c===f?r.add(s):r.delete(s)}a=a.parent}}function yj(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 f=Hz(t);n?f.forEach(mj(l)):f.forEach(gj(l)),f.forEach(gj(c)),ype({node:t,checkedKeySet:l,indeterminateKeySet:c})}return[[...l],[...c]]}function nUe(e){const{initCheckedKeys:t,key2TreeNode:n,checkStrictly:r,onlyCheckLeaf:o}=e,a=new Set,s=new Set,l=new Set;return r?t.forEach(mj(a)):t.forEach(c=>{var f;const h=n.get(c);if(!h||s.has(c)||o&&((f=h.children)!=null&&f.length))return;const p=Hz(h);p.forEach(mj(s)),p.forEach(gj(l)),a.add(c),l.delete(c),ype({node:h,checkedKeySet:a,indeterminateKeySet:l})}),[[...a,...s],[...l]]}function J3(){return In(gpe)||{}}const rUe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-file`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),iUe=["stroke-width","stroke-linecap","stroke-linejoin"];function oUe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,iUe)}var R6=Oe(rUe,[["render",oUe]]);const Wz=Object.assign(R6,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+R6.name,R6)}});var sUe=_e({name:"TreeNodeSwitcher",components:{IconLoading:za,RenderFunction:Vh},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}=Qt(e),s=J3(),l=hd(t,"switcher-icon"),c=hd(t,"loading-icon");return{getSwitcherIcon:()=>{var f,h,p;const m=(h=(f=r?.value)==null?void 0:f.switcherIcon)!=null?h:l.value;return m?m(o.value):(p=s.switcherIcon)==null?void 0:p.call(s,a.value,o.value)},getLoadingIcon:()=>{var f,h,p;const m=(h=(f=r?.value)==null?void 0:f.loadingIcon)!=null?h:c.value;return m?m(o.value):(p=s.loadingIcon)==null?void 0:p.call(s,a.value,o.value)},onClick(f){n("click",f)}}},render(){var e,t,n;const{prefixCls:r,getSwitcherIcon:o,getLoadingIcon:a,onClick:s,nodeStatus:l={},loading:c,showLine:f}=this,{expanded:h,isLeaf:p}=l;if(c)return(e=a())!=null?e:sa(za);let m=null,g=!1;if(p)f&&(m=(n=o())!=null?n:sa(Wz));else{const S=f?sa("span",{class:`${r}-${h?"minus":"plus"}-icon`}):sa(jz);m=(t=o())!=null?t:S,g=!f}if(!m)return null;const b=sa("span",{class:`${r}-switcher-icon`,onClick:s},m);return g?sa(ko,{class:`${r}-icon-hover`},()=>b):b}});const bpe=(()=>{let e=0;return()=>(e+=1,`__arco_tree${e}`)})();function aUe(e,t){return!!(kn(e)?t:e)}function lUe(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 $ne({subEnable:e,superEnable:t,isLeaf:n,treeNodeData:r,level:o}){return kn(e)?_n(t)?t(r,{isLeaf:n,level:o}):t??!1:e}function uUe(e){var t,n;const{treeNodeData:r,parentNode:o,isTail:a=!0,treeProps:s}=e,{fieldNames:l}=s||{},c=lUe(r,l),f=s.loadMore?!!c.isLeaf:!((t=c.children)!=null&&t.length),h=o?o.level+1:0,p={...ya(c,["children"]),key:(n=c.key)!=null?n:bpe(),selectable:$ne({subEnable:c.selectable,superEnable:s?.selectable,isLeaf:f,level:h,treeNodeData:r}),disabled:!!c.disabled,disableCheckbox:!!c.disableCheckbox,checkable:$ne({subEnable:c.checkable,superEnable:s?.checkable,isLeaf:f,level:h,treeNodeData:r}),isLeaf:f,isTail:a,blockNode:!!s?.blockNode,showLine:!!s?.showLine,level:h,lineless:o?[...o.lineless,o.isTail]:[],draggable:aUe(c.draggable,s?.draggable)};return{...p,treeNodeProps:p,treeNodeData:r,parent:o,parentKey:o?.key,pathParentKeys:o?[...o.pathParentKeys,o.key]:[]}}function cUe(e,t){function n(r,o){if(!r)return;const{fieldNames:a}=t,s=[];return r.forEach((l,c)=>{const f=uUe({treeNodeData:l,treeProps:t,parentNode:o,isTail:c===r.length-1});f.children=n(l[a?.children||"children"],f),s.push(f)}),s}return n(e)}function _pe(){const e=fo(),t=()=>{var r;return(r=e?.vnode.key)!=null?r:bpe()},n=fe(t());return Ga(()=>{n.value=t()}),n}function dUe(e){const{key:t,refTitle:n}=Qt(e),r=J3(),o=fe(!1),a=fe(!1),s=fe(!1),l=fe(0),c=yg(f=>{if(!n.value)return;const h=n.value.getBoundingClientRect(),p=window.pageYOffset+h.top,{pageY:m}=f,g=h.height/4,b=m-p;l.value=b[]}},setup(e){const t=_pe(),n=Ae("tree-node"),r=J3(),o=F(()=>{var oe;return(oe=r.key2TreeNode)==null?void 0:oe.get(t.value)}),a=F(()=>o.value.treeNodeData),s=F(()=>o.value.children),l=F(()=>{var oe;const ne=(oe=r.treeProps)==null?void 0:oe.actionOnNodeClick;return ne?fUe(ne):[]}),{isLeaf:c,isTail:f,selectable:h,disabled:p,disableCheckbox:m,draggable:g}=Qt(e),b=F(()=>{var oe;return[`${n}`,{[`${n}-selected`]:D.value,[`${n}-is-leaf`]:c.value,[`${n}-is-tail`]:f.value,[`${n}-expanded`]:N.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:_}=dUe(qt({key:t,refTitle:S})),A=F(()=>[`${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}]),R=F(()=>{var oe,ne;return(ne=(oe=r.checkedKeys)==null?void 0:oe.includes)==null?void 0:ne.call(oe,t.value)}),M=F(()=>{var oe,ne;return(ne=(oe=r.indeterminateKeys)==null?void 0:oe.includes)==null?void 0:ne.call(oe,t.value)}),D=F(()=>{var oe,ne;return(ne=(oe=r.selectedKeys)==null?void 0:oe.includes)==null?void 0:ne.call(oe,t.value)}),N=F(()=>{var oe,ne;return(ne=(oe=r.expandedKeys)==null?void 0:oe.includes)==null?void 0:ne.call(oe,t.value)}),L=F(()=>{var oe,ne;return(ne=(oe=r.loadingKeys)==null?void 0:oe.includes)==null?void 0:ne.call(oe,t.value)}),B=F(()=>r.dragIcon),U=F(()=>r.nodeIcon);function W(oe){var ne,X;c.value||(!((ne=s.value)!=null&&ne.length)&&_n(r.onLoadMore)?r.onLoadMore(t.value):(X=r?.onExpand)==null||X.call(r,!N.value,t.value,oe))}const V=qt({loading:L,checked:R,selected:D,indeterminate:M,expanded:N,isLeaf:c}),z=F(()=>r.nodeTitle?()=>{var oe;return(oe=r.nodeTitle)==null?void 0:oe.call(r,a.value,V)}:void 0),Y=F(()=>r.nodeExtra?()=>{var oe;return(oe=r.nodeExtra)==null?void 0:oe.call(r,a.value,V)}:void 0);return{nodekey:t,refTitle:S,prefixCls:n,classNames:b,titleClassNames:A,indeterminate:M,checked:R,expanded:N,selected:D,treeTitle:z,treeNodeData:a,loading:L,treeDragIcon:B,treeNodeIcon:U,extra:Y,nodeStatus:V,onCheckboxChange(oe,ne){var X;m.value||p.value||(X=r.onCheck)==null||X.call(r,oe,t.value,ne)},onTitleClick(oe){var ne;l.value.includes("expand")&&W(oe),!(!h.value||p.value)&&((ne=r.onSelect)==null||ne.call(r,t.value,oe))},onSwitcherClick:W,onDragStart(oe){var ne;if(g.value){oe.stopPropagation(),_("dragStart",oe);try{(ne=oe.dataTransfer)==null||ne.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))}}}}),pUe=["data-level","data-key"],vUe=["draggable"];function mUe(e,t,n,r,o,a){const s=Pe("NodeSwitcher"),l=Pe("Checkbox"),c=Pe("RenderFunction"),f=Pe("IconDragDotVertical");return H(),J("div",{class:ae(e.classNames),"data-level":e.level,"data-key":e.nodekey},[Re(" 缩进 "),I("span",{class:ae(`${e.prefixCls}-indent`)},[(H(!0),J(Ut,null,mn(e.level,h=>(H(),J("span",{key:h,class:ae([`${e.prefixCls}-indent-block`,{[`${e.prefixCls}-indent-block-lineless`]:e.lineless[h-1]}])},null,2))),128))],2),Re(" switcher "),I("span",{class:ae([`${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},_o({_:2},[e.$slots["switcher-icon"]?{name:"switcher-icon",fn:de(()=>[Re(" @slot 定制 switcher 图标,会覆盖 Tree 的配置 "),ct(e.$slots,"switcher-icon")]),key:"0"}:void 0,e.$slots["loading-icon"]?{name:"loading-icon",fn:de(()=>[Re(" @slot 定制 loading 图标,会覆盖 Tree 的配置 "),ct(e.$slots,"loading-icon")]),key:"1"}:void 0]),1032,["prefix-cls","loading","show-line","tree-node-data","icons","node-status","onClick"])],2),Re(" checkbox "),e.checkable?(H(),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"])):Re("v-if",!0),Re(" 内容 "),I("span",{ref:"refTitle",class:ae(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?(H(),J("span",{key:0,class:ae([`${e.prefixCls}-icon`,`${e.prefixCls}-custom-icon`])},[Re(" 节点图标 "),e.$slots.icon?ct(e.$slots,"icon",Ui(Bt({key:0},e.nodeStatus))):e.icon?(H(),Ye(c,Bt({key:1,"render-func":e.icon},e.nodeStatus),null,16,["render-func"])):e.treeNodeIcon?(H(),Ye(c,Bt({key:2,"render-func":e.treeNodeIcon,node:e.treeNodeData},e.nodeStatus),null,16,["render-func","node"])):Re("v-if",!0)],2)):Re("v-if",!0),I("span",{class:ae(`${e.prefixCls}-title-text`)},[e.treeTitle?(H(),Ye(c,{key:0,"render-func":e.treeTitle},null,8,["render-func"])):(H(),J(Ut,{key:1},[Re(" 标题,treeTitle 优先级高于节点的 title "),ct(e.$slots,"title",{title:e.title},()=>[ze(Be(e.title),1)])],2112)),e.draggable?(H(),J("span",{key:2,class:ae([`${e.prefixCls}-icon`,`${e.prefixCls}-drag-icon`])},[Re(" 拖拽图标 "),e.$slots["drag-icon"]?ct(e.$slots,"drag-icon",Ui(Bt({key:0},e.nodeStatus))):e.dragIcon?(H(),Ye(c,Bt({key:1,"render-func":e.dragIcon},e.nodeStatus),null,16,["render-func"])):e.treeDragIcon?(H(),Ye(c,Bt({key:2,"render-func":e.treeDragIcon,node:e.treeNodeData},e.nodeStatus),null,16,["render-func","node"])):(H(),Ye(f,{key:3}))],2)):Re("v-if",!0)],2)],42,vUe),Re(" 额外 "),e.extra?(H(),Ye(c,{key:1,"render-func":e.extra},null,8,["render-func"])):Re("v-if",!0)],10,pUe)}var bj=Oe(hUe,[["render",mUe]]);const gUe=_e({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 yUe(e,t,n,r,o,a){return H(),Ye(Is,{onEnter:e.onEnter,onAfterEnter:e.onAfterEnter,onBeforeLeave:e.onBeforeLeave},{default:de(()=>[ct(e.$slots,"default")]),_:3},8,["onEnter","onAfterEnter","onBeforeLeave"])}var bUe=Oe(gUe,[["render",yUe]]);const _Ue=_e({name:"TransitionNodeList",components:{ExpandTransition:bUe,BaseTreeNode:bj},props:{nodeKey:{type:[String,Number],required:!0}},setup(e){const n=[`${Ae("tree")}-node-list`],r=J3(),{nodeKey:o}=Qt(e),a=F(()=>{var c,f;return(f=(c=r.expandedKeys)==null?void 0:c.includes)==null?void 0:f.call(c,o.value)}),s=F(()=>{var c;const f=new Set(r.expandedKeys||[]),h=(c=r.flattenTreeData)==null?void 0:c.filter(p=>{var m,g;return(m=p.pathParentKeys)!=null&&m.includes(o.value)?!r.filterTreeNode||((g=r.filterTreeNode)==null?void 0:g.call(r,p.treeNodeData)):!1});return h?.filter(p=>{var m;if(a.value)return(m=p.pathParentKeys)==null?void 0:m.every(b=>f.has(b));const g=p.pathParentKeys.indexOf(o.value);return p.pathParentKeys.slice(g+1).every(b=>f.has(b))})}),l=F(()=>{var c,f;return((c=r.currentExpandKeys)==null?void 0:c.includes(o.value))&&((f=s.value)==null?void 0:f.length)});return{classNames:n,visibleNodeList:s,show:l,expanded:a,onTransitionEnd(){var c;(c=r.onExpandEnd)==null||c.call(r,o.value)}}}});function SUe(e,t,n,r,o,a){const s=Pe("BaseTreeNode"),l=Pe("ExpandTransition");return H(),Ye(l,{expanded:e.expanded,onEnd:e.onTransitionEnd},{default:de(()=>[e.show?(H(),J("div",{key:0,class:ae(e.classNames)},[(H(!0),J(Ut,null,mn(e.visibleNodeList,c=>(H(),Ye(s,Bt({key:c.key,ref_for:!0},c.treeNodeProps),null,16))),128))],2)):Re("v-if",!0)]),_:1},8,["expanded","onEnd"])}var kUe=Oe(_Ue,[["render",SUe]]),wUe=_e({name:"TreeNode",inheritAttrs:!1,props:{...bj.props},setup(e,{slots:t,attrs:n}){const r=_pe();return()=>O(Ut,null,[O(bj,Bt(e,n,{key:r.value}),t),O(kUe,{key:r.value,nodeKey:r.value},null)])}});function CUe(e){const{defaultCheckedKeys:t,checkedKeys:n,key2TreeNode:r,checkStrictly:o,halfCheckedKeys:a,onlyCheckLeaf:s}=Qt(e),l=fe(!1),c=fe([]),f=fe([]),h=fe(),p=fe(),m=b=>nUe({initCheckedKeys:b,key2TreeNode:r.value,checkStrictly:o.value,onlyCheckLeaf:s.value}),g=b=>{const S=m(b);[c.value,f.value]=S};return g(n.value||t?.value||[]),As(()=>{n.value?[h.value,p.value]=m(n.value):l.value&&(h.value=void 0,p.value=void 0,c.value=[],f.value=[]),l.value||(l.value=!0)}),{checkedKeys:F(()=>h.value||c.value),indeterminateKeys:F(()=>o.value&&a.value?a.value:p.value||f.value),setCheckedState(b,S,k=!1){return k?g(b):(c.value=b,f.value=S),[c.value,f.value]}}}function Spe(e){const{treeData:t,fieldNames:n,selectable:r,showLine:o,blockNode:a,checkable:s,loadMore:l,draggable:c}=Qt(e),f=fe([]);As(()=>{var m,g;f.value=cUe(t.value||[],{selectable:(m=r?.value)!=null?m:!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=F(()=>Jje(f.value)),p=F(()=>eUe(h.value));return{treeData:f,flattenTreeData:h,key2TreeNode:p}}const xUe=_e({name:"Tree",components:{VirtualList:G1,TreeNode:wUe},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:f,selectedKeys:h,defaultSelectedKeys:p,expandedKeys:m,defaultExpandedKeys:g,checkedStrategy:b,selectable:S,checkable:k,blockNode:C,fieldNames:x,size:E,defaultExpandAll:_,filterTreeNode:A,draggable:R,allowDrop:M,defaultExpandSelected:D,defaultExpandChecked:N,autoExpandParent:L,halfCheckedKeys:B,onlyCheckLeaf:U,animation:W}=Qt(e),V=Ae("tree"),z=F(()=>[`${V}`,{[`${V}-checkable`]:k.value,[`${V}-show-line`]:o.value},`${V}-size-${E.value}`]),Y=hd(n,"switcher-icon"),oe=hd(n,"loading-icon"),ne=hd(n,"drag-icon"),X=hd(n,"icon"),K=hd(n,"title"),re=hd(n,"extra"),{treeData:ee,flattenTreeData:le,key2TreeNode:Q}=Spe(qt({treeData:r,selectable:S,showLine:o,blockNode:C,checkable:k,fieldNames:x,loadMore:s,draggable:R})),{checkedKeys:ye,indeterminateKeys:be,setCheckedState:ve}=CUe(qt({defaultCheckedKeys:f,checkedKeys:c,checkStrictly:l,key2TreeNode:Q,halfCheckedKeys:B,onlyCheckLeaf:U})),[Ce,De]=aa(p?.value||[],qt({value:h})),We=fe([]),Xe=fe();function He(){if(g?.value){const _t=new Set([]);return g.value.forEach($e=>{if(_t.has($e))return;const Lt=Q.value.get($e);Lt&&[...L.value?Lt.pathParentKeys:[],$e].forEach(dt=>_t.add(dt))}),[..._t]}if(_.value)return le.value.filter(_t=>_t.children&&_t.children.length).map(_t=>_t.key);if(D.value||N.value){const _t=new Set([]),$e=Lt=>{Lt.forEach(dt=>{const It=Q.value.get(dt);It&&(It.pathParentKeys||[]).forEach(At=>_t.add(At))})};return D.value&&$e(Ce.value),N.value&&$e(ye.value),[..._t]}return[]}const[ke,Se]=aa(He(),qt({value:m})),Ne=fe([]),qe=F(()=>{const _t=new Set(ke.value),$e=new Set(Ne.value);return le.value.filter(Lt=>{var dt;if(!(!A||!A.value||A?.value(Lt.treeNodeData)))return!1;const At=kn(Lt.parentKey),jt=(dt=Lt.pathParentKeys)==null?void 0:dt.every(nn=>_t.has(nn)&&!$e.has(nn));return At||jt})});function Je(_t,$e=b.value){let Lt=[..._t];return $e==="parent"?Lt=_t.filter(dt=>{const It=Q.value.get(dt);return It&&!(!kn(It.parentKey)&&_t.includes(It.parentKey))}):$e==="child"&&(Lt=_t.filter(dt=>{var It,At;return!((At=(It=Q.value.get(dt))==null?void 0:It.children)!=null&&At.length)})),Lt}function ot(_t){return _t.map($e=>{var Lt;return((Lt=Q.value.get($e))==null?void 0:Lt.treeNodeData)||void 0}).filter(Boolean)}function yt(_t){const{targetKey:$e,targetChecked:Lt,newCheckedKeys:dt,newIndeterminateKeys:It,event:At}=_t,jt=$e?Q.value.get($e):void 0,nn=Je(dt);t("update:checkedKeys",nn),t("update:halfCheckedKeys",It),t("check",nn,{checked:Lt,node:jt?.treeNodeData,checkedNodes:ot(nn),halfCheckedKeys:It,halfCheckedNodes:ot(It),e:At})}function at(_t){const{targetKey:$e,targetSelected:Lt,newSelectedKeys:dt,event:It}=_t,At=$e?Q.value.get($e):void 0;t("update:selectedKeys",dt),t("select",dt,{selected:Lt,node:At?.treeNodeData,selectedNodes:ot(dt),e:It})}function ut(_t){const{targetKey:$e,targetExpanded:Lt,newExpandedKeys:dt,event:It}=_t,At=$e?Q.value.get($e):void 0;t("expand",dt,{expanded:Lt,node:At?.treeNodeData,expandedNodes:ot(dt),e:It}),t("update:expandedKeys",dt)}function vt(_t){const[$e,Lt]=ve(_t,[],!0);yt({newCheckedKeys:$e,newIndeterminateKeys:Lt})}function Wt(_t){let $e=_t;!a.value&&_t.length>1&&($e=[_t[0]]),De($e),at({newSelectedKeys:$e})}function Ft(_t){Ne.value=[],Se(_t),ut({newExpandedKeys:_t})}function Jt(_t,$e,Lt){if(!_t.length)return;let dt=[...ye.value],It=[...be.value];_t.forEach(At=>{const jt=Q.value.get(At);jt&&([dt,It]=yj({node:jt,checked:$e,checkedKeys:[...dt],indeterminateKeys:[...It],checkStrictly:l.value}))}),ve(dt,It),yt({targetKey:Lt,targetChecked:kn(Lt)?void 0:$e,newCheckedKeys:dt,newIndeterminateKeys:It})}function an(_t,$e,Lt){if(!_t.length)return;let dt;if(a.value){const It=new Set(Ce.value);_t.forEach(At=>{$e?It.add(At):It.delete(At)}),dt=[...It]}else dt=$e?[_t[0]]:[];De(dt),at({targetKey:Lt,targetSelected:kn(Lt)?void 0:$e,newSelectedKeys:dt})}function mt(_t,$e,Lt){const dt=new Set(ke.value);_t.forEach(At=>{$e?dt.add(At):dt.delete(At),st(At)});const It=[...dt];Se(It),ut({targetKey:Lt,targetExpanded:kn(Lt)?void 0:$e,newExpandedKeys:It})}function wt(_t,$e,Lt){const dt=Q.value.get($e);if(!dt)return;const[It,At]=yj({node:dt,checked:_t,checkedKeys:ye.value,indeterminateKeys:be.value,checkStrictly:l.value});ve(It,At),yt({targetKey:$e,targetChecked:_t,newCheckedKeys:It,newIndeterminateKeys:At,event:Lt})}function Ge(_t,$e){if(!Q.value.get(_t))return;let dt,It;if(a.value){const At=new Set(Ce.value);It=!At.has(_t),It?At.add(_t):At.delete(_t),dt=[...At]}else It=!0,dt=[_t];De(dt),at({targetKey:_t,targetSelected:It,newSelectedKeys:dt,event:$e})}function Ue(_t,$e,Lt){if(Ne.value.includes($e)||!Q.value.get($e))return;const It=new Set(ke.value);_t?It.add($e):It.delete($e);const At=[...It];Se(At),W.value&&Ne.value.push($e),ut({targetKey:$e,targetExpanded:_t,newExpandedKeys:At,event:Lt})}function st(_t){const $e=Ne.value.indexOf(_t);Ne.value.splice($e,1)}const kt=F(()=>s?.value?async _t=>{if(!_n(s.value))return;const $e=Q.value.get(_t);if(!$e)return;const{treeNodeData:Lt}=$e;We.value=[...new Set([...We.value,_t])];try{await s.value(Lt),We.value=We.value.filter(dt=>dt!==_t),Ue(!0,_t),ye.value.includes(_t)&&wt(!0,_t)}catch(dt){We.value=We.value.filter(It=>It!==_t),console.error("[tree]load data error: ",dt)}}:void 0),zt=qt({treeProps:e,switcherIcon:Y,loadingIcon:oe,dragIcon:ne,nodeIcon:X,nodeTitle:K,nodeExtra:re,treeData:ee,flattenTreeData:le,key2TreeNode:Q,checkedKeys:ye,indeterminateKeys:be,selectedKeys:Ce,expandedKeys:ke,loadingKeys:We,currentExpandKeys:Ne,onLoadMore:kt,filterTreeNode:A,onCheck:wt,onSelect:Ge,onExpand:Ue,onExpandEnd:st,allowDrop(_t,$e){const Lt=Q.value.get(_t);return Lt&&_n(M.value)?!!M.value({dropNode:Lt.treeNodeData,dropPosition:$e}):!0},onDragStart(_t,$e){const Lt=Q.value.get(_t);Xe.value=Lt,Lt&&t("dragStart",$e,Lt.treeNodeData)},onDragEnd(_t,$e){const Lt=Q.value.get(_t);Xe.value=void 0,Lt&&t("dragEnd",$e,Lt.treeNodeData)},onDragOver(_t,$e){const Lt=Q.value.get(_t);Lt&&t("dragOver",$e,Lt.treeNodeData)},onDragLeave(_t,$e){const Lt=Q.value.get(_t);Lt&&t("dragLeave",$e,Lt.treeNodeData)},onDrop(_t,$e,Lt){const dt=Q.value.get(_t);Xe.value&&dt&&!(dt.key===Xe.value.key||dt.pathParentKeys.includes(Xe.value.key||""))&&t("drop",{e:Lt,dragNode:Xe.value.treeNodeData,dropNode:dt.treeNodeData,dropPosition:$e})}});return Xr(gpe,zt),{classNames:z,visibleTreeNodeList:qe,treeContext:zt,virtualListRef:fe(),computedSelectedKeys:Ce,computedExpandedKeys:ke,computedCheckedKeys:ye,computedIndeterminateKeys:be,getPublicCheckedKeys:Je,getNodes:ot,internalCheckNodes:Jt,internalSetCheckedKeys:vt,internalSelectNodes:an,internalSetSelectedKeys:Wt,internalExpandNodes:mt,internalSetExpandedKeys:Ft}},methods:{toggleCheck(e,t){const{key2TreeNode:n,onCheck:r,checkedKeys:o}=this.treeContext,a=!o.includes(e),s=n.get(e);s&&og(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&&og(o)}):[];this.internalSetCheckedKeys(n)},checkNode(e,t=!0,n=!1){const{checkStrictly:r,treeContext:o}=this,{key2TreeNode:a}=o,s=Qn(e),l=(s?e:[e]).filter(c=>{const f=a.get(c);return f&&og(f)&&(r||!n||tUe(f))});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&&vj(o)}):[];this.internalSetSelectedKeys(n)},selectNode(e,t=!0){const{key2TreeNode:n}=this.treeContext,r=Qn(e),o=(r?e:[e]).filter(a=>{const s=n.get(a);return s&&vj(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&&One(o)}):[];this.internalSetExpandedKeys(n)},expandNode(e,t=!0){const{key2TreeNode:n}=this.treeContext,r=Qn(e),o=(r?e:[e]).filter(a=>{const s=n.get(a);return s&&One(s)});this.internalExpandNodes(o,t,r?void 0:e)}}});function EUe(e,t,n,r,o,a){const s=Pe("TreeNode"),l=Pe("VirtualList");return H(),J("div",{class:ae(e.classNames)},[e.virtualListProps?(H(),Ye(l,Bt({key:0,ref:"virtualListRef"},e.virtualListProps,{data:e.visibleTreeNodeList}),{item:de(({item:c})=>[(H(),Ye(s,Bt({key:`${e.searchValue}-${c.key}`},c.treeNodeProps),null,16))]),_:1},16,["data"])):(H(!0),J(Ut,{key:1},mn(e.visibleTreeNodeList,c=>(H(),Ye(s,Bt({key:c.key,ref_for:!0},c.treeNodeProps),null,16))),128))],2)}var M6=Oe(xUe,[["render",EUe]]);const _j=Object.assign(M6,{install:(e,t)=>{Wn(e,t);const n=Hn(t);e.component(n+M6.name,M6)}}),TUe=_e({name:"Typography",setup(){return{classNames:[Ae("typography")]}}});function AUe(e,t,n,r,o,a){return H(),J("article",{class:ae(e.classNames)},[ct(e.$slots,"default")],2)}var D6=Oe(TUe,[["render",AUe]]);const IUe=_e({name:"TypographyEditContent",components:{Input:Ev},props:{text:{type:String,required:!0}},emits:["change","end","update:text"],setup(e,{emit:t}){const r=[`${Ae("typography")}-edit-content`],o=fe();function a(l){t("update:text",l),t("change",l)}function s(){t("end")}return gn(()=>{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 LUe(e,t,n,r,o,a){const s=Pe("Input");return H(),J("div",{class:ae(e.classNames)},[O(s,{ref:"inputRef","auto-size":"","model-value":e.text,onBlur:e.onBlur,onInput:e.onChange,onKeydown:mh(e.onEnd,["enter"])},null,8,["model-value","onBlur","onInput","onKeydown"])],2)}var PUe=Oe(IUe,[["render",LUe]]);const RUe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-copy`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),MUe=["stroke-width","stroke-linecap","stroke-linejoin"];function DUe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,MUe)}var O6=Oe(RUe,[["render",DUe]]);const eL=Object.assign(O6,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+O6.name,O6)}}),OUe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-edit`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),$Ue=["stroke-width","stroke-linecap","stroke-linejoin"];function NUe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,$Ue)}var $6=Oe(OUe,[["render",NUe]]);const Gz=Object.assign($6,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+$6.name,$6)}}),BUe=_e({name:"TypographyOperations",components:{Tooltip:Uc,IconCheckCircleFill:jh,IconCopy:eL,IconEdit:Gz},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=Ae("typography"),r=F(()=>e.forceRenderExpand||e.expandable&&e.isEllipsis),{t:o}=Lo();return{prefixCls:n,showExpand:r,t:o,onEditClick(){t("edit")},onCopyClick(){t("copy")},onExpandClick(){t("expand")}}}});function FUe(e,t,n,r,o,a){const s=Pe("IconEdit"),l=Pe("Tooltip"),c=Pe("IconCheckCircleFill"),f=Pe("IconCopy");return H(),J(Ut,null,[e.editable?(H(),Ye(l,Bt({key:0,content:e.t("typography.edit")},e.editTooltipProps),{default:de(()=>[I("span",{class:ae(`${e.prefixCls}-operation-edit`),onClick:t[0]||(t[0]=rs((...h)=>e.onEditClick&&e.onEditClick(...h),["stop"]))},[O(s)],2)]),_:1},16,["content"])):Re("v-if",!0),e.copyable?(H(),Ye(l,Ui(Bt({key:1},e.copyTooltipProps)),{content:de(()=>[ct(e.$slots,"copy-tooltip",{copied:e.isCopied},()=>[ze(Be(e.isCopied?e.t("typography.copied"):e.t("typography.copy")),1)])]),default:de(()=>[I("span",{class:ae({[`${e.prefixCls}-operation-copied`]:e.isCopied,[`${e.prefixCls}-operation-copy`]:!e.isCopied}),onClick:t[1]||(t[1]=rs((...h)=>e.onCopyClick&&e.onCopyClick(...h),["stop"]))},[ct(e.$slots,"copy-icon",{copied:e.isCopied},()=>[e.isCopied?(H(),Ye(c,{key:0})):(H(),Ye(f,{key:1}))])],2)]),_:3},16)):Re("v-if",!0),e.showExpand?(H(),J("a",{key:2,class:ae(`${e.prefixCls}-operation-expand`),onClick:t[2]||(t[2]=rs((...h)=>e.onExpandClick&&e.onExpandClick(...h),["stop"]))},[ct(e.$slots,"expand-node",{expanded:e.expanded},()=>[ze(Be(e.expanded?e.t("typography.collapse"):e.t("typography.expand")),1)])],2)):Re("v-if",!0)],64)}var Nne=Oe(BUe,[["render",FUe]]);let js;function jUe(e){return Array.prototype.slice.apply(e).map(n=>`${n}: ${e.getPropertyValue(n)};`).join("")}function N6(e){if(!e)return 0;const t=e.match(/^\d*(\.\d*)?/);return t?Number(t[0]):0}var UUe=(e,t,n,r)=>{js||(js=document.createElement("div"),document.body.appendChild(js));const{rows:o,suffix:a,ellipsisStr:s}=t,l=window.getComputedStyle(e),c=jUe(l),f=N6(l.lineHeight),h=Math.round(f*o+N6(l.paddingTop)+N6(l.paddingBottom));js.setAttribute("style",c),js.setAttribute("aria-hidden","true"),js.style.height="auto",js.style.minHeight="auto",js.style.maxHeight="auto",js.style.position="fixed",js.style.left="0",js.style.top="-99999999px",js.style.zIndex="-200",js.style.whiteSpace="normal";const p=v1({render(){return O("span",null,[n])}});p.mount(js);const m=Array.prototype.slice.apply(js.childNodes[0].cloneNode(!0).childNodes);p.unmount(),js.innerHTML="";const g=document.createTextNode(`${s}${a}`);js.appendChild(g),m.forEach(C=>{js.appendChild(C)});const b=document.createTextNode(r);js.insertBefore(b,g);function S(){return js.offsetHeight<=h}if(S())return{ellipsis:!1,text:r};function k(C,x=0,E=r.length,_=0){const A=Math.floor((x+E)/2),R=r.slice(0,A);if(C.textContent=R,x>=E-1)for(let M=E;M>=x;M-=1){const D=r.slice(0,M);if(C.textContent=D,S()||!D)return}S()?k(C,A,E,A):k(C,x,A,_)}return k(b),{text:b.textContent,ellipsis:!0}};const VUe=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 K0;function zUe(e){if(!e)return"";K0||(K0=document.createElement("div"),K0.setAttribute("aria-hidden","true"),document.body.appendChild(K0));const t=v1({render(){return O("div",null,[e])}});t.mount(K0);const n=K0.innerText;return t.unmount(),n}function kpe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Bi(e)}function HUe(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 Bne(e,t){const{mark:n}=e,r=HUe(e),o=fr(n)&&n.color?{backgroundColor:n.color}:{};return r.reduce((a,s)=>O(s,s==="mark"?{style:o}:{},kpe(a)?a:{default:()=>[a]}),t)}function WUe(e){const t=!!e.showTooltip,n=fr(e.showTooltip)&&e.showTooltip.type==="popover"?hz:Uc,r=fr(e.showTooltip)&&e.showTooltip.props||{};return{rows:1,suffix:"",ellipsisStr:"...",expandable:!1,css:!1,...ya(e,["showTooltip"]),showTooltip:t,TooltipComponent:n,tooltipProps:r}}var Kz=_e({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:f,editText:h,copyDelay:p,component:m}=Qt(e),g=Ae("typography"),b=F(()=>[g,{[`${g}-${e.type}`]:e.type,[`${g}-disabled`]:e.disabled}]),S=fe(),k=fe(""),[C,x]=aa(a.value,qt({value:o})),E=F(()=>c.value&&C.value);function _(){n("update:editing",!0),n("editStart"),x(!0)}function A(ye){n("update:editText",ye),n("change",ye)}function R(){C.value&&(n("update:editing",!1),n("editEnd"),x(!1))}const M=fe(!1);let D=null;function N(){var ye;const be=(ye=f.value)!=null?ye:k.value;VUe(be||""),M.value=!0,n("copy",be),D=setTimeout(()=>{M.value=!1},p.value)}yi(()=>{D&&clearTimeout(D),D=null});const L=fe(!1),B=fe(!1),U=fe(""),W=F(()=>WUe(fr(s.value)&&s.value||{}));let V=null;function z(){const ye=!B.value;B.value=ye,n("expand",ye)}function Y(ye=!1){return W.value.css?O(Nne,{editable:c.value,copyable:l.value,expandable:W.value.expandable,isCopied:M.value,isEllipsis:ee.value,expanded:B.value,forceRenderExpand:ye||B.value,editTooltipProps:e.editTooltipProps,copyTooltipProps:e.copyTooltipProps,onEdit:_,onCopy:N,onExpand:z},{"copy-tooltip":t["copy-tooltip"],"copy-icon":t["copy-icon"],"expand-node":t["expand-node"]}):O(Nne,{editable:c.value,copyable:l.value,expandable:W.value.expandable,isCopied:M.value,isEllipsis:L.value,expanded:B.value,forceRenderExpand:ye,editTooltipProps:e.editTooltipProps,copyTooltipProps:e.copyTooltipProps,onEdit:_,onCopy:N,onExpand:z},{"copy-tooltip":t["copy-tooltip"],"copy-icon":t["copy-icon"],"expand-node":t["expand-node"]})}function oe(){if(!S.value)return;const{ellipsis:ye,text:be}=UUe(S.value,W.value,Y(!!W.value.expandable),k.value);L.value!==ye&&(L.value=ye,W.value.css||n("ellipsis",ye)),U.value!==be&&(U.value=be||"")}function ne(){s.value&&!B.value&&(UA(V),V=sfe(()=>{oe()}))}yi(()=>{UA(V)}),Dt(()=>W.value.rows,()=>{ne()}),Dt(s,ye=>{ye?ne():L.value=!1});let X=[];const K=()=>{if(s.value||l.value||c.value){const ye=zUe(X);ye!==k.value&&(k.value=ye,ne())}};gn(K),Ga(K);const re=fe(),ee=fe(!1),le=()=>{if(S.value&&re.value){const ye=re.value.offsetHeight>S.value.offsetHeight;ye!==ee.value&&(ee.value=ye,n("ellipsis",ye))}},Q=F(()=>B.value?{}:{overflow:"hidden","text-overflow":"ellipsis",display:"-webkit-box","-webkit-line-clamp":W.value.rows,"-webkit-box-orient":"vertical"});return()=>{var ye,be;if(X=((ye=t.default)==null?void 0:ye.call(t))||[],E.value){const qe=(be=h.value)!=null?be:k.value;return O(PUe,{text:qe,onChange:Je=>{Je!==qe&&A(Je)},onEnd:R},null)}const{suffix:ve,ellipsisStr:Ce,showTooltip:De,tooltipProps:We,TooltipComponent:Xe}=W.value,He=L.value&&!B.value,ke=He&&!De?{title:k.value}:{},Se=m.value;if(W.value.css){const qe=Bne(e,X),Je=O(Se,Bt({class:b.value,ref:S,style:Q.value},ke,r),{default:()=>[O("span",{ref:re},[qe])]});return ee.value?O(Xe,Bt(We,{onResize:()=>le()}),{default:()=>[Je],content:()=>k.value}):O(kd,{onResize:()=>{le()}},kpe(Je)?Je:{default:()=>[Je]})}const Ne=Bne(e,He?U.value:X);return O(kd,{onResize:()=>ne()},{default:()=>[O(Se,Bt({class:b.value,ref:S},ke,r),{default:()=>[He&&De?O(Xe,We,{default:()=>[O("span",null,[Ne])],content:()=>k.value}):Ne,He?Ce:null,ve,Y()]})]})}}}),D4=_e({name:"TypographyParagraph",inheritAttrs:!1,props:{blockquote:{type:Boolean},spacing:{type:String,default:"default"}},setup(e){const{blockquote:t,spacing:n}=Qt(e),r=Ae("typography"),o=F(()=>t?.value?"blockquote":"div"),a=F(()=>[{[`${r}-spacing-close`]:n?.value==="close"}]);return{component:o,classNames:a}},render(){const{component:e,classNames:t}=this;return O(Kz,Bt({class:t},this.$attrs,{component:e}),this.$slots)}}),O4=_e({name:"TypographyTitle",inheritAttrs:!1,props:{heading:{type:Number,default:1}},setup(e){const{heading:t}=Qt(e);return{component:F(()=>`h${t?.value}`)}},render(){const{component:e}=this;return O(Kz,Bt(this.$attrs,{component:e}),this.$slots)}}),$4=_e({name:"TypographyText",inheritAttrs:!1,props:{ellipsis:{type:[Boolean,Object],default:!1}},setup(e){const{ellipsis:t}=Qt(e);return{component:F(()=>t?.value?"div":"span")}},render(){const{ellipsis:e,component:t}=this;return O(Kz,Bt(this.$attrs,{ellipsis:e,component:t}),this.$slots)}});const GUe=Object.assign(D6,{Paragraph:D4,Title:O4,Text:$4,install:(e,t)=>{Wn(e,t);const n=Hn(t);e.component(n+D6.name,D6),e.component(n+D4.name,D4),e.component(n+O4.name,O4),e.component(n+$4.name,$4)}}),Fne=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},KUe=e=>{switch(e){case"done":return"success";case"error":return"danger";default:return"normal"}},jne=(e,t)=>_n(e)?e(t):e,qUe=({fileItem:e,action:t,name:n,data:r,headers:o={},withCredentials:a=!1,onProgress:s=Vy,onSuccess:l=Vy,onError:c=Vy})=>{const f=jne(n,e)||"file",h=jne(r,e),p=new XMLHttpRequest;a&&(p.withCredentials=!0),p.upload.onprogress=g=>{const b=g.total>0?zl.round(g.loaded/g.total,2):0;s(b,g)},p.onerror=function(b){c(b)},p.onload=()=>{if(p.status<200||p.status>=300){c(Fne(p));return}l(Fne(p))};const m=new FormData;if(h)for(const g of Object.keys(h))m.append(g,h[g]);e.file&&m.append(f,e.file),p.open("post",t??"",!0);for(const g of Object.keys(o))p.setRequestHeader(g,o[g]);return p.send(m),{abort(){p.abort()}}},wpe=(e,t)=>{if(t&&e){const n=Qn(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},YUe=(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,wpe(c,t)&&(Object.defineProperty(c,"webkitRelativePath",{value:l.fullPath.replace(/^\//,"")}),r.push(c)),a()});return}if(l?.isDirectory){const c=l.createReader();let f=!1;const h=()=>{c.readEntries(p=>{f||(o-=1,f=!0),p.length===0?a():(h(),p.forEach(s))})};h();return}o-=1,a()};[].slice.call(e).forEach(l=>l.webkitGetAsEntry&&s(l.webkitGetAsEntry()))},XUe=e=>{var t;return(t=e.type)==null?void 0:t.includes("image")},B6=(e,t)=>{if(!e)return[];const n=Array.from(e);return t?n.filter(r=>wpe(r,t)):n},ZUe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-upload`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 JUe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,QUe)}var F6=Oe(ZUe,[["render",JUe]]);const Y1=Object.assign(F6,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+F6.name,F6)}});var eVe=_e({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=Ae("upload"),{t:r}=Lo(),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)},f=k=>{if(!e.disabled){if(_n(e.onButtonClick)){const C=e.onButtonClick(k);if(gg(C)){C.then(x=>{e.uploadFiles(B6(x))});return}}a.value&&a.value.click()}},h=k=>{const C=k.target;C.files&&e.uploadFiles(B6(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))YUe(k.dataTransfer.items,e.accept,E=>{e.uploadFiles(E)});else{const E=B6((x=k.dataTransfer)==null?void 0:x.files,e.accept);e.uploadFiles(e.multiple?E:E.slice(0,1))}},m=k=>{k.preventDefault(),c("subtract"),l.value===0&&(o.value=!1,c("reset"))},g=k=>{k.preventDefault(),!e.disabled&&!o.value&&(o.value=!0)},b=()=>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(mf,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(mf,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(Ho,{type:"primary",disabled:e.disabled},{default:()=>[r("upload.buttonText")],icon:()=>O(Y1,null,null)}),S=F(()=>[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:f,onDragenter:()=>{c("add")},onDrop:p,onDragover:g,onDragleave:m},[O("input",Bt({ref:a,type:"file",style:{display:"none"},disabled:e.disabled,accept:e.accept,multiple:e.multiple},e.directory?{webkitdirectory:"webkitdirectory"}:{},{onChange:h}),null),b()])}});const tVe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-pause`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),nVe=["stroke-width","stroke-linecap","stroke-linejoin"];function rVe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,nVe)}var j6=Oe(tVe,[["render",rVe]]);const Cpe=Object.assign(j6,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+j6.name,j6)}}),iVe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-play-arrow-fill`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),oVe=["stroke-width","stroke-linecap","stroke-linejoin"];function sVe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,oVe)}var U6=Oe(iVe,[["render",sVe]]);const xpe=Object.assign(U6,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+U6.name,U6)}}),tL=Symbol("ArcoUpload");var Epe=_e({name:"UploadProgress",props:{file:{type:Object,required:!0},listType:{type:String,required:!0}},setup(e){const t=Ae("upload-progress"),{t:n}=Lo(),r=In(tL,void 0),o=()=>{var s,l,c,f,h,p,m,g,b,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:(f=(c=r?.customIcon)==null?void 0:c.retryIcon)!=null&&f.call(c))||e.listType==="picture-card"?O(Y1,null,null):n("upload.retry")]):e.file.status==="done"?O("span",{class:[r?.iconCls,`${r?.iconCls}-success`]},[(k=(S=(m=r==null?void 0:(p=r.slots)["success-icon"])==null?void 0:m.call(p))!=null?S:(b=(g=r?.customIcon)==null?void 0:g.successIcon)==null?void 0:b.call(g))!=null?k:O(Vg,null,null)]):e.file.status==="init"?O(Uc,{content:n("upload.start")},{default:()=>{var C,x,E,_,A,R;return[O("span",{class:[r?.iconCls,`${r?.iconCls}-start`],onClick:()=>r?.onUpload(e.file)},[(R=(A=(x=r==null?void 0:(C=r.slots)["start-icon"])==null?void 0:x.call(C))!=null?A:(_=(E=r?.customIcon)==null?void 0:E.startIcon)==null?void 0:_.call(E))!=null?R:O(xpe,null,null)])]}}):r?.showCancelButton&&O(Uc,{content:n("upload.cancel")},{default:()=>{var C,x,E,_,A,R;return[O("span",{class:[r?.iconCls,`${r?.iconCls}-cancel`],onClick:()=>r?.onAbort(e.file)},[(R=(A=(x=r==null?void 0:(C=r.slots)["cancel-icon"])==null?void 0:x.call(C))!=null?A:(_=(E=r?.customIcon)==null?void 0:E.cancelIcon)==null?void 0:_.call(E))!=null?R:O(Cpe,null,null)])]}})},a=()=>{var s;if(["init","uploading"].includes((s=e.file.status)!=null?s:"")){const l=KUe(e.file.status);return O(tpe,{type:"circle",size:"mini",showText:!1,status:l,percent:e.file.percent},null)}return null};return()=>O("span",{class:t},[a(),o()])}});const aVe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-file-pdf`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),lVe=["stroke-width","stroke-linecap","stroke-linejoin"];function uVe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,lVe)}var V6=Oe(aVe,[["render",uVe]]);const Tpe=Object.assign(V6,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+V6.name,V6)}}),cVe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-file-image`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),dVe=["stroke-width","stroke-linecap","stroke-linejoin"];function fVe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,dVe)}var z6=Oe(cVe,[["render",fVe]]);const Ape=Object.assign(z6,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+z6.name,z6)}}),hVe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-file-video`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),pVe=["stroke-width","stroke-linecap","stroke-linejoin"];function vVe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,pVe)}var H6=Oe(hVe,[["render",vVe]]);const Ipe=Object.assign(H6,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+H6.name,H6)}}),mVe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-file-audio`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),gVe=["stroke-width","stroke-linecap","stroke-linejoin"];function yVe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,gVe)}var W6=Oe(mVe,[["render",yVe]]);const Lpe=Object.assign(W6,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+W6.name,W6)}});var Une=_e({name:"UploadListItem",props:{file:{type:Object,required:!0},listType:{type:String,required:!0}},setup(e){const n=`${Ae("upload-list")}-item`,{t:r}=Lo(),o=In(tL,void 0),a=()=>{var s,l;let c="";if(e.file.file&&e.file.file.type)c=e.file.file.type;else{const f=(l=(s=e.file.name)==null?void 0:s.split(".")[1])!=null?l:"";["png","jpg","jpeg","bmp","gif","webp"].includes(f)?c="image":["mp4","m2v","mkv","m4v","mov"].includes(f)?c="video":["mp3","wav","wmv","m4a","acc","flac"].includes(f)&&(c="audio")}return c.includes("image")?O(Ape,null,null):c.includes("pdf")?O(Tpe,null,null):c.includes("audio")?O(Lpe,null,null):c.includes("video")?O(Ipe,null,null):O(Wz,null,null)};return()=>{var s,l,c,f,h,p,m,g,b,S,k,C,x,E,_,A,R,M,D,N,L,B,U;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",Bt({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`},[(b=(g=(h=o==null?void 0:(f=o.slots)["file-icon"])==null?void 0:h.call(f,{fileItem:e.file}))!=null?g:(m=(p=o?.customIcon)==null?void 0:p.fileIcon)==null?void 0:m.call(p,e.file))!=null?b:a()]),o?.showLink&&e.file.url?O("a",Bt({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=(N=(R=o==null?void 0:(A=o.slots)["file-name"])==null?void 0:R.call(A,{fileItem:e.file}))!=null?N:(D=(M=o?.customIcon)==null?void 0:M.fileName)==null?void 0:D.call(M,e.file))!=null?L:e.file.name]),e.file.status==="error"&&O(Uc,{content:r("upload.error")},{default:()=>{var W,V,z,Y,oe,ne;return[O("span",{class:[o?.iconCls,`${o?.iconCls}-error`]},[(ne=(oe=(V=o==null?void 0:(W=o.slots)["error-icon"])==null?void 0:V.call(W))!=null?oe:(Y=(z=o?.customIcon)==null?void 0:z.errorIcon)==null?void 0:Y.call(z))!=null?ne:O(kf,null,null)])]}})]),O(Epe,{file:e.file,listType:e.listType},null)]),o?.showRemoveButton&&O("span",{class:`${n}-operation`},[O(ko,{onClick:()=>{var W;return(W=o?.onRemove)==null?void 0:W.call(o,e.file)}},{default:()=>{var W,V,z,Y,oe,ne;return[O("span",{class:[o?.iconCls,`${o?.iconCls}-remove`]},[(ne=(oe=(V=o==null?void 0:(W=o.slots)["remove-icon"])==null?void 0:V.call(W))!=null?oe:(Y=(z=o?.customIcon)==null?void 0:z.removeIcon)==null?void 0:Y.call(z))!=null?ne:O(ic,null,null)])]}})]),(U=o==null?void 0:(B=o.slots)["extra-button"])==null?void 0:U.call(B,{fileItem:e.file})])}}}),Vne=_e({name:"UploadPictureItem",props:{file:{type:Object,required:!0},disabled:{type:Boolean,default:!1}},setup(e){const n=`${Ae("upload-list")}-picture`,r=F(()=>[n,{[`${n}-status-error`]:e.file.status==="error"}]),o=In(tL,void 0),a=()=>{var s,l,c,f,h,p,m,g,b,S,k,C,x,E,_,A,R,M,D,N,L,B,U,W,V,z,Y,oe,ne;return e.file.status==="uploading"?O(Epe,{file:e.file,listType:"picture-card"},null):O(Ut,null,[(c=(l=o==null?void 0:(s=o.slots).image)==null?void 0:l.call(s,{fileItem:e.file}))!=null?c:O("img",Bt({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`]},[(b=(g=(h=o==null?void 0:(f=o.slots)["error-icon"])==null?void 0:h.call(f))!=null?g:(m=(p=o?.customIcon)==null?void 0:p.errorIcon)==null?void 0:m.call(p))!=null?b:O(B3,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(dv,null,null)]),["init","error"].includes(e.file.status)&&o?.showRetryButton&&O("span",{class:[o?.iconCls,`${o?.iconCls}-upload`],onClick:()=>o?.onUpload(e.file)},[(L=(N=(R=o==null?void 0:(A=o.slots)["retry-icon"])==null?void 0:R.call(A))!=null?N:(D=(M=o?.customIcon)==null?void 0:M.retryIcon)==null?void 0:D.call(M))!=null?L:O(Y1,null,null)]),!o?.disabled&&o?.showRemoveButton&&O("span",{class:[o?.iconCls,`${o?.iconCls}-remove`],onClick:()=>o?.onRemove(e.file)},[(Y=(z=(U=o==null?void 0:(B=o.slots)["remove-icon"])==null?void 0:U.call(B))!=null?z:(V=(W=o?.customIcon)==null?void 0:W.removeIcon)==null?void 0:V.call(W))!=null?Y:O(ic,null,null)]),(ne=o==null?void 0:(oe=o.slots)["extra-button"])==null?void 0:ne.call(oe,e.file)])])])};return()=>O("span",{class:r.value},[a()])}}),bVe=_e({name:"UploadList",components:{UploadListItem:Une,UploadPictureItem:Vne},props:{fileList:{type:Array,required:!0},listType:{type:String,required:!0}},setup(e,{slots:t}){const n=Ae("upload"),r=F(()=>[`${n}-list`,`${n}-list-type-${e.listType}`]),o=(a,s)=>_n(t["upload-item"])?t["upload-item"]({fileItem:a,index:s}):e.listType==="picture-card"?O(Vne,{file:a,key:`item-${s}`},null):O(Une,{file:a,listType:e.listType,key:`item-${s}`},null);return()=>O(V1,{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))]}})}}),G6=_e({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:f,showPreviewButton:h,imageLoading:p,download:m,showLink:g}=Qt(e),b=Ae("upload"),{mergedDisabled:S,eventHandlers:k}=wo({disabled:o}),C=fe([]),x=new Map,E=new Map,_=F(()=>e.limit>0&&C.value.length>=e.limit),A=Q=>{x.clear();const ye=Q?.map((be,ve)=>{var Ce,De,We;const Xe=(Ce=be.status)!=null?Ce:"done",He=qt({...be,uid:(De=be.uid)!=null?De:`${Date.now()}${ve}`,status:Xe,percent:(We=be.percent)!=null?We:["error","init"].indexOf(Xe)>-1?0:1});return x.set(He.uid,He),He});C.value=ye??[]};A(e.defaultFileList),Dt(r,Q=>{Q&&A(Q)},{immediate:!0,deep:!0});const R=Q=>{var ye,be;t("update:fileList",C.value),t("change",C.value,Q),(be=(ye=k.value)==null?void 0:ye.onChange)==null||be.call(ye)},M=(Q,ye)=>{for(const be of C.value)if(be.uid===Q){be.file=ye,R(be);break}},D=Q=>{const ye=(We,Xe)=>{const He=x.get(Q.uid);He&&(He.status="uploading",He.percent=We,t("progress",He,Xe),R(He))},be=We=>{const Xe=x.get(Q.uid);Xe&&(Xe.status="done",Xe.percent=1,Xe.response=We,e.responseUrlKey&&(_n(e.responseUrlKey)?Xe.url=e.responseUrlKey(Xe):We[e.responseUrlKey]&&(Xe.url=We[e.responseUrlKey])),E.delete(Xe.uid),t("success",Xe),R(Xe))},ve=We=>{const Xe=x.get(Q.uid);Xe&&(Xe.status="error",Xe.percent=0,Xe.response=We,E.delete(Xe.uid),t("error",Xe),R(Xe))},Ce={fileItem:Q,action:e.action,name:e.name,data:e.data,headers:e.headers,withCredentials:e.withCredentials,onProgress:ye,onSuccess:be,onError:ve};Q.status="uploading",Q.percent=0;const De=_n(e.customRequest)?e.customRequest(Ce):qUe(Ce);E.set(Q.uid,De),R(Q)},N=Q=>{var ye;const be=E.get(Q.uid);if(be){(ye=be.abort)==null||ye.call(be),E.delete(Q.uid);const ve=x.get(Q.uid);ve&&(ve.status="error",ve.percent=0,R(ve))}},L=Q=>{if(Q){const ye=x.get(Q.uid);ye&&D(ye)}else for(const ye of C.value)ye.status==="init"&&D(ye)},B=async(Q,ye)=>{const be=`${Date.now()}-${ye}`,ve=XUe(Q)?URL.createObjectURL(Q):void 0,Ce=qt({uid:be,file:Q,url:ve,name:Q.name,status:"init",percent:0});x.set(be,Ce),C.value=[...C.value,Ce],R(Ce),e.autoUpload&&D(Ce)},U=Q=>{if(e.limit>0&&C.value.length+Q.length>e.limit){t("exceedLimit",C.value,Q);return}for(let ye=0;ye{ve&&B(bl(ve)?be:ve,ye)}).catch(ve=>{console.error(ve)}):B(be,ye)}},W=Q=>{C.value=C.value.filter(ye=>ye.uid!==Q.uid),R(Q)},V=Q=>{_n(e.onBeforeRemove)?Promise.resolve(e.onBeforeRemove(Q)).then(ye=>{ye&&W(Q)}).catch(ye=>{console.error(ye)}):W(Q)},z=Q=>{if(e.imagePreview&&Q.url){const ye=ee.value.indexOf(Q.url);ye>-1&&(X.value=ye,ne.value=!0)}t("preview",Q)};Xr(tL,qt({disabled:S,listType:a,iconCls:`${b}-icon`,showRemoveButton:f,showRetryButton:l,showCancelButton:c,showPreviewButton:h,showLink:g,imageLoading:p,download:m,customIcon:s,slots:n,onUpload:D,onAbort:N,onRemove:V,onPreview:z}));const Y=F(()=>{if(e.accept)return e.accept;if(e.listType==="picture"||e.listType==="picture-card")return"image/*"}),oe=()=>{const Q=O(eVe,{key:"arco-upload-button",disabled:S.value,draggable:e.draggable,listType:e.listType,uploadFiles:U,multiple:e.multiple,directory:e.directory,tip:e.tip,hide:!e.showUploadButton||_.value&&!(fr(e.showUploadButton)&&e.showUploadButton.showOnExceedLimit),accept:Y.value,onButtonClick:e.onButtonClick},{default:n["upload-button"]});return e.tip&&e.listType!=="picture-card"&&!e.draggable?O("span",null,[Q,O("div",{class:`${b}-tip`},[e.tip])]):Q},ne=fe(!1),X=fe(0),K=Q=>{X.value=Q},re=Q=>{ne.value=Q},ee=F(()=>C.value.filter(Q=>!!Q.url).map(Q=>Q.url));return{prefixCls:b,render:()=>e.showFileList?O("div",{class:[`${b}-wrapper`,`${b}-wrapper-type-${e.listType}`]},[e.imagePreview&&ee.value.length>0&&O(zS,{srcList:ee.value,visible:ne.value,current:X.value,onChange:K,onVisibleChange:re},null),e.listType!=="picture-card"&&e.showUploadButton&&oe(),O(bVe,{fileList:C.value,listType:e.listType},{"upload-button":oe,"upload-item":n["upload-item"]})]):e.showUploadButton&&oe(),innerSubmit:L,innerAbort:N,innerUpdateFile:M,innerUpload:U}},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 _Ve=Object.assign(G6,{install:(e,t)=>{Wn(e,t);const n=Hn(t);e.component(n+G6.name,G6)}});var K6=_e({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=Ae("overflow-list"),o=fe(),a=fe(),s=fe(),l={},c=[],f=fe(0),h=fe(0),p=F(()=>h.value>0),m=fe(0),g=F(()=>e.from==="start");Dt(f,(k,C)=>{h.value>0&&(h.value+=k-C,h.value<0&&(h.value=0))}),Dt(h,k=>{t("change",k)});const b=()=>{var k,C,x;if(o.value&&l.value&&s.value){const E=s.value.offsetWidth;if(E>1&&(h.value===0||Eb(),{flush:"post"}),gn(()=>{s.value&&s.value.offsetWidth<1&&b()});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(mz,null,{default:()=>[ze("+"),h.value]})])};return()=>{var k,C;l.value=df((k=n.default)==null?void 0:k.call(n)),f.value!==l.value.length&&(f.value=l.value.length,c.length=f.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(fv,{onResize:b},{default:()=>[O("div",{ref:s,class:`${r}-spacer`},null)]})])}}});const SVe=Object.assign(K6,{install:(e,t)=>{Wn(e,t);const n=Hn(t);e.component(n+K6.name,K6)}});var q6=_e({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=Ae("verification-code"),r=Ae("input"),o=fe([]),a=F(()=>{var k;return(k=e.modelValue)!=null?k:e.defaultValue}),s=F(()=>e.masked?"password":"text"),l=F(()=>[r,{[`${r}-size-${e.size}`]:e.size}]),c=F(()=>{const k=String(a.value).split("");return new Array(e.length).fill("").map((C,x)=>Nte(k[x])?String(k[x]):"")}),f=fe(c.value);Dt(a,()=>{f.value=c.value});const h=()=>{const k=f.value.join("").trim();t("update:modelValue",k),t("change",k),k.length===e.length&&t("finish",k),m()},p=k=>o?.value[k].focus(),m=k=>{if(!(Nte(k)&&f.value[k])){for(let C=0;C{k.preventDefault();const{clipboardData:x}=k,E=x?.getData("text");E&&(E.split("").forEach((_,A)=>{if(!(C+A>=e.length)){if(_n(e.formatter)){const R=e.formatter(_,C+A,f.value.join(""));if(R===!1){C-=1;return}is(R)&&(_=R.charAt(0))}f.value[C+A]=_}}),h())},b=(k,C)=>{const x=C.code||C.key;x===ffe.code&&!f.value[k]?(C.preventDefault(),f.value[Math.max(k-1,0)]="",h()):x===_Re.code&&k>0?(C.preventDefault(),p(k-1)):x===SRe.code&&f.value[k]&&k{let E=(C||"").trim().charAt(C.length-1);if(t("input",E,k,x),_n(e.formatter)){const _=e.formatter(E,k,f.value.join(""));if(_===!1)return;is(_)&&(E=_.charAt(0))}f.value[k]=E,h()};return()=>O("div",{class:n},[f.value.map((k,C)=>{var x;return O(Ut,null,[O(Ev,{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:()=>m(C),onInput:(E,_)=>S(C,E,_),onKeydown:E=>b(C,E),onPaste:E=>g(E,C)},null),(x=e.separator)==null?void 0:x.call(e,C,k)])})])}});const kVe=Object.assign(q6,{install:(e,t)=>{Wn(e,t);const n=Hn(t);e.component(n+q6.name,q6)}}),wVe=typeof window<"u"?window:void 0;function CVe(e){var t;const n=nt(e);return(t=n?.$el)!=null?t:n}function xVe(e){return c3()?(PV(e),!0):!1}function Ppe(e,t,n={}){const{window:r=wVe,...o}=n,a=r&&"MutationObserver"in r;let s;const l=()=>{s&&(s.disconnect(),s=void 0)},c=Dt(()=>CVe(e),h=>{l(),a&&r&&h&&(s=new MutationObserver(t),s.observe(h,o))},{immediate:!0}),f=()=>{l(),c()};return xVe(f),{isSupported:a,stop:f}}const Y6="arco-theme",lE={Dark:"dark",Light:"light"},EVe=e=>{const t=fe(lE.Light),n=o=>{t.value=o},r=o=>o.getAttribute(Y6)===lE.Dark?lE.Dark:lE.Light;return Ppe(document.body,o=>{for(const a of o)if(a.type==="attributes"&&a.attributeName===Y6){n(r(a.target)),e?.();break}},{attributes:!0,attributeFilter:[Y6],subtree:!1,childList:!1,characterData:!1}),n(r(document.body)),{theme:t,setTheme:n}};function TVe(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function AVe(e){return Object.entries(e).map(([t,n])=>`${TVe(t)}:${n}`).join(";")}function IVe(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:f}=Qt(e),h=Ae("watermark"),p=window.devicePixelRatio||1,m=Qm(),g=fe(new Map),b=F(()=>{var X,K;return(K=(X=e.font)==null?void 0:X.fontSize)!=null?K:16}),S=F(()=>{var X,K;return(K=(X=e.font)==null?void 0:X.fontWeight)!=null?K:"normal"}),k=F(()=>{var X,K;return(K=(X=e.font)==null?void 0:X.fontStyle)!=null?K:"normal"}),C=F(()=>{var X,K;return(K=(X=e.font)==null?void 0:X.fontFamily)!=null?K:"sans-serif"}),x=F(()=>{var X,K;return(K=(X=e.font)==null?void 0:X.textAlign)!=null?K:"center"}),E=F(()=>Qn(e.content)?e.content:[e.content]),_=F(()=>{var X,K;return(K=(X=e.font)==null?void 0:X.color)!=null?K:ne.value==="dark"?"rgba(255, 255, 255, 0.15)":"rgba(0, 0, 0, 0.15)"}),A=F(()=>{var X,K;return(K=(X=e.gap)==null?void 0:X[0])!=null?K:90}),R=F(()=>{var X,K;return(K=(X=e.gap)==null?void 0:X[1])!=null?K:90}),M=F(()=>A.value/2),D=F(()=>R.value/2),N=F(()=>{var X,K;return(K=(X=e.offset)==null?void 0:X[0])!=null?K:M.value}),L=F(()=>{var X,K;return(K=(X=e.offset)==null?void 0:X[1])!=null?K:D.value}),B=F(()=>{var X;const K=N.value-M.value,re=L.value-D.value;return{position:"absolute",left:K>0?`${K}px`:0,top:re>0?`${re}px`:0,width:K>0?`calc(100% - ${K}px)`:"100%",height:re>0?`calc(100% - ${re}px)`:"100%",pointerEvents:"none",backgroundRepeat:e.repeat?"repeat":"no-repeat",backgroundPosition:`${K>0?0:K}px ${re>0?0:re}px`,zIndex:(X=e.zIndex)!=null?X:6}}),U=F(()=>e.repeat&&e.staggered),W=(X,K)=>{var re;if(m.value){const ee=g.value.get(m.value);ee&&(m.value.contains(ee)&&m.value.removeChild(ee),g.value.delete(m.value));const le=document.createElement("div");le.setAttribute("style",AVe({...B.value,backgroundImage:`url('${X}')`,backgroundSize:`${K}px`})),(re=m.value)==null||re.append(le),g.value.set(m.value,le)}},V=X=>{var K,re;let ee=120,le=28;if(!a.value&&X.measureText){X.font=`${b.value}px ${C.value}`;const Q=E.value.map(ye=>X.measureText(ye).width);ee=Math.ceil(Math.max(...Q)),le=b.value*E.value.length+(E.value.length-1)*3}return[(K=r.value)!=null?K:ee,(re=o.value)!=null?re:le]},z=()=>{var X;const K=document.createElement("canvas"),re=K.getContext("2d");if(!re)return;const[ee,le]=V(re),Q=ee*p,ye=le*p,be=(A.value+ee)*p,ve=(R.value+le)*p,Ce=A.value/2*p,De=R.value/2*p,We=be/2,Xe=ve/2,He=U.value?2:1,ke=(A.value+ee)*He;K.width=be*He,K.height=ve*He,re.globalAlpha=l.value,re.save(),re.translate(We,Xe),re.rotate(Math.PI/180*s.value),re.translate(-We,-Xe);const Se=()=>{re.restore(),U.value&&re.drawImage(K,0,0,be,ve,be,ve,be,ve),f.value&&IVe(K),W(K.toDataURL(),ke)};if(a.value){const Ne=new Image;Ne.onload=()=>{re.drawImage(Ne,Ce,De,Q,ye),Se()},Ne.crossOrigin="anonymous",Ne.referrerPolicy="no-referrer",Ne.src=a.value}else{const Ne=Number(b.value)*p;re.font=`${k.value} normal ${S.value} ${Ne}px/${le}px ${C.value}`,re.fillStyle=_.value,re.textAlign=x.value,re.textBaseline="top",re.translate(Q/2,0),(X=E.value)==null||X.forEach((qe,Je)=>{re.fillText(qe??"",Ce,De+Je*(Ne+3*p))}),Se()}},Y=X=>Array.from(g.value.values()).includes(X),oe=X=>{if(e.antiTamper)for(const K of X){const re=Array.from(K.removedNodes).some(le=>Y(le)),ee=K.type==="attributes"&&Y(K.target);if(re||ee){z();break}}},{theme:ne}=EVe(z);return gn(()=>{z(),Ppe(m.value,oe,{attributes:!0,childList:!0,characterData:!0,subtree:!0})}),Dt(e,z,{deep:!0,flush:"post"}),()=>{var X;return O("div",Bt({ref:m,class:h,style:{position:"relative",overflow:"hidden"}},n),[(X=t.default)==null?void 0:X.call(t)])}}});const LVe=Object.assign(X6,{install:(e,t)=>{Wn(e,t);const n=Hn(t);e.component(n+X6.name,X6)}});function PVe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Bi(e)}var RVe=_e({name:"TreeSelectPanel",components:{Tree:_j},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}=Qt(e),{displayScrollbar:s,scrollbarProps:l}=O3(a),c=Ae("tree-select"),f=fe(),h=F(()=>({...o.value,disableSelectActionOnly:!0,checkedKeys:n.value?r.value:[],selectedKeys:n.value?[]:r.value})),p=(b,S)=>{var k,C;n.value?(C=(k=f.value)==null?void 0:k.toggleCheck)==null||C.call(k,b[0],S):t("change",b)},m=b=>{t("change",b)},g=()=>O(_j,Bt({ref:f},h.value,{onSelect:p,onCheck:m}),e.treeSlots);return()=>{if(s.value){let b;return O(Cd,Bt({class:`${c}-tree-wrapper`},l.value),PVe(b=g())?b:{default:()=>[b]})}return O("div",{class:`${c}-tree-wrapper`},[g()])}}});function qz(e){return fr(e)}function Rpe(e){return e!=null&&e!==""}function Yz(e){return qz(e)?e.value:e}function MVe(e){return qz(e)?e.label:void 0}function zne(e){const t=Yz(e);return Rpe(t)}function Hne(e){return e.map(Yz).filter(Rpe)}function DVe(e){var t;const{defaultValue:n,modelValue:r,key2TreeNode:o,multiple:a,treeCheckable:s,fallbackOption:l,fieldNames:c}=Qt(e);function f(_){const A=(Qn(_)?_:[_]).filter(zne);return a?.value||s?.value?A:A.slice(0,1)}function h(_,A){const R=[],M=_?_.filter(zne):[];if(M.length){const D=new Map;A?.forEach(N=>{D.set(N.value,N)}),M.forEach(N=>{var L,B,U,W,V;const z=Yz(N),Y=D.get(z),oe=o.value.get(z);let ne=null;const X=((L=c?.value)==null?void 0:L.title)||"title";if(!oe){const K=_n(l?.value)?l?.value(z):l?.value;if(K===!1)return;fr(K)&&(ne=K)}R.push({...qz(N)?N:{},...Y||{},value:z,label:(V=(W=(U=(B=MVe(N))!=null?B:oe?.title)!=null?U:Y?.label)!=null?W:ne?.[X])!=null?V:z})})}return R}const p=fe(),m=fe();As(()=>{var _;const A=r?.value!==void 0,R=f((_=r?.value)!=null?_:[]),M=Hne(R);m.value=A?h(M,h(R)):void 0,p.value=A?M:void 0});const g=f((t=n?.value)!=null?t:[]),b=Hne(g),S=h(b,h(g)),k=fe(b||[]),C=fe(S);Dt(k,()=>{C.value=h(k.value,S)}),Dt([p,m],([_,A])=>{k.value=_||[],C.value=A||[]});const x=F(()=>{var _;return(_=p.value)!=null?_:k.value}),E=F(()=>{var _;return(_=m.value)!=null?_:C.value});return{selectedKeys:x,selectedValue:E,setLocalSelectedKeys(_){k.value=_},localSelectedKeys:k,localSelectedValue:C}}function OVe(e){const{searchValue:t,flattenTreeData:n,filterMethod:r,disableFilter:o,fieldNames:a}=Qt(e),s=F(()=>{var b;return((b=a.value)==null?void 0:b.key)||"key"}),l=(b,S)=>{const k=S[s.value];return!kn(k)&&String(k).indexOf(b)>-1},c=F(()=>r?.value||l),f=fe(),h=F(()=>!!t.value),p=F(()=>!o?.value&&h.value&&f.value&&f.value.size===0),m=F(()=>o?.value?void 0:b=>{var S,k;if(!h.value)return!0;const C=b[s.value];return(k=(S=f.value)==null?void 0:S.has(C||""))!=null?k:!1}),g=z2((b,S)=>{const k=b.filter(x=>c.value(S,x.treeNodeData)),C=new Set;k.forEach(x=>{C.add(x.key),x.pathParentKeys.forEach(E=>{C.add(E)})}),f.value=C},100);return As(()=>{o?.value?f.value=void 0:g(n.value,t.value)}),{isEmptyFilterResult:p,filterTreeNode:m}}function $Ve(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 NVe=_e({name:"TreeSelect",components:{Trigger:la,SelectView:zA,Panel:RVe,Empty:Uh,Spin:wd},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:f,defaultPopupVisible:h,treeCheckable:p,treeCheckStrictly:m,data:g,fieldNames:b,disabled:S,labelInValue:k,filterTreeNode:C,disableFilter:x,dropdownStyle:E,treeProps:_,fallbackOption:A,selectable:R,dropdownClassName:M}=Qt(e),{mergedDisabled:D,eventHandlers:N}=wo({disabled:S}),L=Ae("tree-select"),B=In(Va,void 0),U=(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=F(()=>c.value||p.value),V=(at,ut)=>{var vt;return R.value==="leaf"?ut.isLeaf:_n(R.value)?R.value(at,ut):(vt=R.value)!=null?vt:!1},z=F(()=>p.value?V:!1),Y=F(()=>fr(e.allowSearch)&&!!e.allowSearch.retainInputValue),{flattenTreeData:oe,key2TreeNode:ne}=Spe(qt({treeData:g,fieldNames:b,selectable:V,checkable:z})),{selectedKeys:X,selectedValue:K,setLocalSelectedKeys:re,localSelectedKeys:ee,localSelectedValue:le}=DVe(qt({defaultValue:s,modelValue:l,key2TreeNode:ne,multiple:c,treeCheckable:p,treeCheckStrictly:m,fallbackOption:A,fieldNames:b}));function Q(at){return p.value?og(at):vj(at)}const ye=F(()=>kn(K.value)?[]:W.value&&!D.value?K.value.map(at=>{const ut=ne.value.get(at.value);return{...at,closable:!ut||Q(ut)}}):K.value),be=at=>{re(at),yn(()=>{var ut,vt;const Wt=(k.value?le.value:ee.value)||[],Ft=W.value?Wt:Wt[0];t("update:modelValue",Ft),t("change",Ft),(vt=(ut=N.value)==null?void 0:ut.onChange)==null||vt.call(ut)})},ve=fe(e.defaultInputValue),Ce=F(()=>{var at;return(at=e.inputValue)!=null?at:ve.value}),De=at=>{ve.value=at,t("update:inputValue",at),t("inputValueChange",at)},We=at=>{at!==Ce.value&&(ke(!0),De(at),e.allowSearch&&t("search",at))},[Xe,He]=aa(h.value,qt({value:f})),ke=at=>{at!==Xe.value&&(He(at),t("popup-visible-change",at),t("update:popupVisible",at)),at||Je.value&&Je.value.blur&&Je.value.blur()},{isEmptyFilterResult:Se,filterTreeNode:Ne}=OVe(qt({searchValue:Ce,flattenTreeData:oe,filterMethod:C,disableFilter:x,fieldNames:b})),qe=F(()=>!oe.value.length||Se.value),Je=fe(),ot=F(()=>{var at;return[E?.value||{},(at=_?.value)!=null&&at.virtualListProps?{"max-height":"unset"}:{}]});return{refSelectView:Je,prefixCls:L,TreeSelectEmpty:U,selectedValue:K,selectedKeys:X,mergedDisabled:D,searchValue:Ce,panelVisible:Xe,isEmpty:qe,computedFilterTreeNode:Ne,isMultiple:W,selectViewValue:ye,computedDropdownStyle:ot,onSearchValueChange:We,onSelectChange(at){be(at),!Y.value&&Ce.value&&De(""),W.value||ke(!1)},onVisibleChange:ke,onInnerClear(){be([]),t("clear")},pickSubCompSlots:$Ve,isSelectable:V,isCheckable:z,onBlur:()=>{!Y.value&&Ce.value&&De("")},onItemRemove(at){if(D.value)return;const ut=ne.value.get(at);if(p.value&&ut){if(Q(ut)){const[vt]=yj({node:ut,checked:!1,checkedKeys:X.value,indeterminateKeys:[],checkStrictly:m.value});be(vt)}}else{const vt=X.value.filter(Wt=>Wt!==at);be(vt)}}}}});function BVe(e,t,n,r,o,a){const s=Pe("SelectView"),l=Pe("Spin"),c=Pe("Panel"),f=Pe("Trigger");return H(),Ye(f,Bt({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:ae([`${e.prefixCls}-popup`,{[`${e.prefixCls}-has-header`]:!!e.$slots.header,[`${e.prefixCls}-has-footer`]:!!e.$slots.footer},e.dropdownClassName]),style:je(e.computedDropdownStyle)},[e.$slots.header&&(!e.isEmpty||e.showHeaderOnEmpty)?(H(),J("div",{key:0,class:ae(`${e.prefixCls}-header`)},[ct(e.$slots,"header")],2)):Re("v-if",!0),e.loading?ct(e.$slots,"loader",{key:1},()=>[O(l)]):e.isEmpty?ct(e.$slots,"empty",{key:2},()=>[(H(),Ye(Fa(e.TreeSelectEmpty?e.TreeSelectEmpty:"Empty")))]):(H(),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)?(H(),J("div",{key:4,class:ae(`${e.prefixCls}-footer`)},[ct(e.$slots,"footer")],2)):Re("v-if",!0)],6)]),default:de(()=>[ct(e.$slots,"trigger",{},()=>[O(s,Bt({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}),_o({_:2},[e.$slots.prefix?{name:"prefix",fn:de(()=>[ct(e.$slots,"prefix")]),key:"0"}:void 0,e.$slots.label?{name:"label",fn:de(h=>[ct(e.$slots,"label",Ui(ma(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 Z6=Oe(NVe,[["render",BVe]]);const FVe=Object.assign(Z6,{install:(e,t)=>{Wn(e,t);const n=Hn(t);e.component(n+Z6.name,Z6)}}),Sj={Button:Ho,Link:che,Typography:GUe,Divider:u$e,Grid:hS,Layout:ABe,Space:kFe,Avatar:$Me,Badge:GMe,Calendar:$fe,Card:mDe,Carousel:LDe,Collapse:qDe,Comment:E6e,ColorPicker:b6e,Descriptions:l$e,Empty:Uh,Image:rBe,Scrollbar:Cd,List:Khe,Popover:hz,Statistic:MFe,Table:_je,Tabs:Mje,Tag:mz,Timeline:Vje,Tooltip:Uc,AutoComplete:EMe,Cascader:FDe,Checkbox:_d,DatePicker:i$e,Form:sNe,Input:Ev,InputNumber:Nk,InputTag:Dfe,Mention:JBe,Radio:b1,Rate:F9e,Select:H2,Slider:SFe,Switch:VFe,Textarea:qhe,TimePicker:Bje,Transfer:Qje,Tree:_j,Upload:_Ve,TreeSelect:FVe,Alert:ufe,Drawer:lj,Message:Pt,Modal:gf,Notification:hj,Popconfirm:X7e,Progress:tpe,Result:Y9e,Spin:wd,Skeleton:nFe,Breadcrumb:g8e,Dropdown:xfe,Menu:T7e,PageHeader:K7e,Pagination:Rz,Steps:BFe,Affix:w5e,Anchor:pRe,BackTop:VMe,ConfigProvider:I6e,ResizeBox:Hhe,Trigger:la,Split:EFe,Icon:Ahe,OverflowList:SVe,Watermark:LVe,VerificationCode:kVe},jVe=(e,t)=>{for(const n of Object.keys(Sj))e.use(Sj[n],t)},UVe={...Sj,Alter:ufe,AnchorLink:DT,AvatarGroup:UT,BreadcrumbItem:FS,ButtonGroup:BS,Calendar:$fe,CardMeta:n4,CardGrid:r4,CarouselItem:i4,CascaderPanel:o4,CheckboxGroup:FT,CollapseItem:s4,DescriptionsItem:h4,WeekPicker:l4,MonthPicker:u4,YearPicker:c4,QuarterPicker:d4,RangePicker:f4,Doption:Hy,Dgroup:zT,Dsubmenu:HT,DropdownButton:WT,FormItem:m4,Row:US,Col:VS,GridItem:v4,ImagePreview:Wy,ImagePreviewAction:ZA,ImagePreviewGroup:zS,InputGroup:zy,InputSearch:OT,InputPassword:$T,LayoutHeader:y4,LayoutContent:b4,LayoutFooter:_4,LayoutSider:S4,ListItem:k4,ListItemMeta:w4,MenuItem:C4,MenuItemGroup:x4,SubMenu:HS,RadioGroup:t4,Option:tg,Optgroup:jS,SkeletonLine:A4,SkeletonShape:I4,Countdown:L4,Step:P4,Thead:GS,Td:qp,Th:qS,Tr:vh,Tbody:KS,TableColumn:R4,TabPane:M4,TimelineItem:Ky,TypographyParagraph:D4,TypographyTitle:O4,TypographyText:$4,install:jVe,addI18nMessages:HPe,useLocale:WPe,getLocale:GPe,useFormItem:wo},VVe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-arrow-down`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 HVe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,zVe)}var Q6=Oe(VVe,[["render",HVe]]);const kj=Object.assign(Q6,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+Q6.name,Q6)}}),WVe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-arrow-fall`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),GVe=["stroke-width","stroke-linecap","stroke-linejoin"];function KVe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,GVe)}var J6=Oe(WVe,[["render",KVe]]);const qVe=Object.assign(J6,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+J6.name,J6)}}),YVe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-arrow-left`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),XVe=["stroke-width","stroke-linecap","stroke-linejoin"];function ZVe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,XVe)}var eO=Oe(YVe,[["render",ZVe]]);const Xz=Object.assign(eO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+eO.name,eO)}}),QVe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-arrow-right`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),JVe=["stroke-width","stroke-linecap","stroke-linejoin"];function eze(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,JVe)}var tO=Oe(QVe,[["render",eze]]);const tze=Object.assign(tO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+tO.name,tO)}}),nze=_e({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=Ae("icon"),r=F(()=>[n,`${n}-arrow-rise`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,rze)}var nO=Oe(nze,[["render",ize]]);const oze=Object.assign(nO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+nO.name,nO)}}),sze=_e({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=Ae("icon"),r=F(()=>[n,`${n}-arrow-up`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 lze(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,aze)}var rO=Oe(sze,[["render",lze]]);const wj=Object.assign(rO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+rO.name,rO)}}),uze=_e({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=Ae("icon"),r=F(()=>[n,`${n}-double-down`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,cze)}var iO=Oe(uze,[["render",dze]]);const fze=Object.assign(iO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+iO.name,iO)}}),hze=_e({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=Ae("icon"),r=F(()=>[n,`${n}-double-up`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,pze)}var oO=Oe(hze,[["render",vze]]);const mze=Object.assign(oO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+oO.name,oO)}}),gze=_e({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=Ae("icon"),r=F(()=>[n,`${n}-down-circle`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),yze=["stroke-width","stroke-linecap","stroke-linejoin"];function bze(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"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,yze)}var sO=Oe(gze,[["render",bze]]);const _ze=Object.assign(sO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+sO.name,sO)}}),Sze=_e({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=Ae("icon"),r=F(()=>[n,`${n}-drag-arrow`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),kze=["stroke-width","stroke-linecap","stroke-linejoin"];function wze(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,kze)}var aO=Oe(Sze,[["render",wze]]);const Mpe=Object.assign(aO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+aO.name,aO)}}),Cze=_e({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=Ae("icon"),r=F(()=>[n,`${n}-expand`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),xze=["stroke-width","stroke-linecap","stroke-linejoin"];function Eze(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,xze)}var lO=Oe(Cze,[["render",Eze]]);const Tze=Object.assign(lO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+lO.name,lO)}}),Aze=_e({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=Ae("icon"),r=F(()=>[n,`${n}-left-circle`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Ize=["stroke-width","stroke-linecap","stroke-linejoin"];function Lze(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"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,Ize)}var uO=Oe(Aze,[["render",Lze]]);const Pze=Object.assign(uO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+uO.name,uO)}}),Rze=_e({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=Ae("icon"),r=F(()=>[n,`${n}-right-circle`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Mze=["stroke-width","stroke-linecap","stroke-linejoin"];function Dze(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"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,Mze)}var cO=Oe(Rze,[["render",Dze]]);const Oze=Object.assign(cO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+cO.name,cO)}}),$ze=_e({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=Ae("icon"),r=F(()=>[n,`${n}-shrink`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 Bze(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,Nze)}var dO=Oe($ze,[["render",Bze]]);const Fze=Object.assign(dO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+dO.name,dO)}}),jze=_e({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=Ae("icon"),r=F(()=>[n,`${n}-swap`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Uze=["stroke-width","stroke-linecap","stroke-linejoin"];function Vze(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,Uze)}var fO=Oe(jze,[["render",Vze]]);const Dpe=Object.assign(fO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+fO.name,fO)}}),zze=_e({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=Ae("icon"),r=F(()=>[n,`${n}-to-bottom`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,Hze)}var hO=Oe(zze,[["render",Wze]]);const Gze=Object.assign(hO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+hO.name,hO)}}),Kze=_e({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=Ae("icon"),r=F(()=>[n,`${n}-to-left`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,qze)}var pO=Oe(Kze,[["render",Yze]]);const Xze=Object.assign(pO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+pO.name,pO)}}),Zze=_e({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=Ae("icon"),r=F(()=>[n,`${n}-to-right`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 Jze(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,Qze)}var vO=Oe(Zze,[["render",Jze]]);const eHe=Object.assign(vO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+vO.name,vO)}}),tHe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-up-circle`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"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,nHe)}var mO=Oe(tHe,[["render",rHe]]);const iHe=Object.assign(mO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+mO.name,mO)}}),oHe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-exclamation-polygon-fill`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),sHe=["stroke-width","stroke-linecap","stroke-linejoin"];function aHe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,sHe)}var gO=Oe(oHe,[["render",aHe]]);const lHe=Object.assign(gO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+gO.name,gO)}}),uHe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-minus-circle-fill`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),cHe=["stroke-width","stroke-linecap","stroke-linejoin"];function dHe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,cHe)}var yO=Oe(uHe,[["render",dHe]]);const fHe=Object.assign(yO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+yO.name,yO)}}),hHe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-plus-circle-fill`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),pHe=["stroke-width","stroke-linecap","stroke-linejoin"];function vHe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,pHe)}var bO=Oe(hHe,[["render",vHe]]);const mHe=Object.assign(bO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+bO.name,bO)}}),gHe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-question-circle-fill`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),yHe=["stroke-width","stroke-linecap","stroke-linejoin"];function bHe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,yHe)}var _O=Oe(gHe,[["render",bHe]]);const _He=Object.assign(_O,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+_O.name,_O)}}),SHe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-check-circle`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 wHe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,kHe)}var SO=Oe(SHe,[["render",wHe]]);const xc=Object.assign(SO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+SO.name,SO)}}),CHe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-check-square`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),xHe=["stroke-width","stroke-linecap","stroke-linejoin"];function EHe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,xHe)}var kO=Oe(CHe,[["render",EHe]]);const THe=Object.assign(kO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+kO.name,kO)}}),AHe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-close-circle`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),IHe=["stroke-width","stroke-linecap","stroke-linejoin"];function LHe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,IHe)}var wO=Oe(AHe,[["render",LHe]]);const PHe=Object.assign(wO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+wO.name,wO)}}),RHe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-exclamation-circle`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),MHe=["stroke-width","stroke-linecap","stroke-linejoin"];function DHe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,MHe)}var CO=Oe(RHe,[["render",DHe]]);const dh=Object.assign(CO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+CO.name,CO)}}),OHe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-info-circle`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),$He=["stroke-width","stroke-linecap","stroke-linejoin"];function NHe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,$He)}var xO=Oe(OHe,[["render",NHe]]);const sh=Object.assign(xO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+xO.name,xO)}}),BHe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-minus-circle`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),FHe=["stroke-width","stroke-linecap","stroke-linejoin"];function jHe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,FHe)}var EO=Oe(BHe,[["render",jHe]]);const UHe=Object.assign(EO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+EO.name,EO)}}),VHe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-plus-circle`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 HHe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,zHe)}var TO=Oe(VHe,[["render",HHe]]);const WHe=Object.assign(TO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+TO.name,TO)}}),GHe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-question`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,KHe)}var AO=Oe(GHe,[["render",qHe]]);const YHe=Object.assign(AO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+AO.name,AO)}}),XHe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-stop`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 QHe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,ZHe)}var IO=Oe(XHe,[["render",QHe]]);const JHe=Object.assign(IO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+IO.name,IO)}}),eWe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-heart-fill`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,tWe)}var LO=Oe(eWe,[["render",nWe]]);const Zz=Object.assign(LO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+LO.name,LO)}}),rWe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-thumb-down-fill`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,iWe)}var PO=Oe(rWe,[["render",oWe]]);const sWe=Object.assign(PO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+PO.name,PO)}}),aWe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-thumb-up-fill`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,lWe)}var RO=Oe(aWe,[["render",uWe]]);const cWe=Object.assign(RO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+RO.name,RO)}}),dWe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-at`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,fWe)}var MO=Oe(dWe,[["render",hWe]]);const pWe=Object.assign(MO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+MO.name,MO)}}),vWe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-cloud-download`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,mWe)}var DO=Oe(vWe,[["render",gWe]]);const yWe=Object.assign(DO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+DO.name,DO)}}),bWe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-code-block`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),_We=["stroke-width","stroke-linecap","stroke-linejoin"];function SWe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,_We)}var OO=Oe(bWe,[["render",SWe]]);const Ope=Object.assign(OO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+OO.name,OO)}}),kWe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-code-square`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),wWe=["stroke-width","stroke-linecap","stroke-linejoin"];function CWe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,wWe)}var $O=Oe(kWe,[["render",CWe]]);const xWe=Object.assign($O,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+$O.name,$O)}}),EWe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-code`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,TWe)}var NO=Oe(EWe,[["render",AWe]]);const pv=Object.assign(NO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+NO.name,NO)}}),IWe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-customer-service`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 PWe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,LWe)}var BO=Oe(IWe,[["render",PWe]]);const RWe=Object.assign(BO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+BO.name,BO)}}),MWe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-download`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 OWe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,DWe)}var FO=Oe(MWe,[["render",OWe]]);const YS=Object.assign(FO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+FO.name,FO)}}),$We=_e({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=Ae("icon"),r=F(()=>[n,`${n}-export`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 BWe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,NWe)}var jO=Oe($We,[["render",BWe]]);const nL=Object.assign(jO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+jO.name,jO)}}),FWe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-heart`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),jWe=["stroke-width","stroke-linecap","stroke-linejoin"];function UWe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,jWe)}var UO=Oe(FWe,[["render",UWe]]);const rL=Object.assign(UO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+UO.name,UO)}}),VWe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-history`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 HWe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,zWe)}var VO=Oe(VWe,[["render",HWe]]);const S1=Object.assign(VO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+VO.name,VO)}}),WWe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-home`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,GWe)}var zO=Oe(WWe,[["render",KWe]]);const Vk=Object.assign(zO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+zO.name,zO)}}),qWe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-import`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),YWe=["stroke-width","stroke-linecap","stroke-linejoin"];function XWe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,YWe)}var HO=Oe(qWe,[["render",XWe]]);const iL=Object.assign(HO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+HO.name,HO)}}),ZWe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-launch`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),QWe=["stroke-width","stroke-linecap","stroke-linejoin"];function JWe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,QWe)}var WO=Oe(ZWe,[["render",JWe]]);const $pe=Object.assign(WO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+WO.name,WO)}}),eGe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-list`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 nGe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,tGe)}var GO=Oe(eGe,[["render",nGe]]);const Qz=Object.assign(GO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+GO.name,GO)}}),rGe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-message-banned`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,iGe)}var KO=Oe(rGe,[["render",oGe]]);const sGe=Object.assign(KO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+KO.name,KO)}}),aGe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-message`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,lGe)}var qO=Oe(aGe,[["render",uGe]]);const cGe=Object.assign(qO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+qO.name,qO)}}),dGe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-more-vertical`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,fGe)}var YO=Oe(dGe,[["render",hGe]]);const pGe=Object.assign(YO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+YO.name,YO)}}),vGe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-poweroff`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,mGe)}var XO=Oe(vGe,[["render",gGe]]);const yGe=Object.assign(XO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+XO.name,XO)}}),bGe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-refresh`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),_Ge=["stroke-width","stroke-linecap","stroke-linejoin"];function SGe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,_Ge)}var ZO=Oe(bGe,[["render",SGe]]);const rf=Object.assign(ZO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+ZO.name,ZO)}}),kGe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-reply`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 CGe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,wGe)}var QO=Oe(kGe,[["render",CGe]]);const xGe=Object.assign(QO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+QO.name,QO)}}),EGe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-save`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,TGe)}var JO=Oe(EGe,[["render",AGe]]);const Rm=Object.assign(JO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+JO.name,JO)}}),IGe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-scan`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 PGe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,LGe)}var e$=Oe(IGe,[["render",PGe]]);const RGe=Object.assign(e$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+e$.name,e$)}}),MGe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-select-all`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),DGe=["stroke-width","stroke-linecap","stroke-linejoin"];function OGe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,DGe)}var t$=Oe(MGe,[["render",OGe]]);const $Ge=Object.assign(t$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+t$.name,t$)}}),NGe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-send`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 FGe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,BGe)}var n$=Oe(NGe,[["render",FGe]]);const jGe=Object.assign(n$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+n$.name,n$)}}),UGe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-settings`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,VGe)}var r$=Oe(UGe,[["render",zGe]]);const zh=Object.assign(r$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+r$.name,r$)}}),HGe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-share-alt`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,WGe)}var i$=Oe(HGe,[["render",GGe]]);const KGe=Object.assign(i$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+i$.name,i$)}}),qGe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-share-external`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,YGe)}var o$=Oe(qGe,[["render",XGe]]);const ZGe=Object.assign(o$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+o$.name,o$)}}),QGe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-share-internal`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 eKe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,JGe)}var s$=Oe(QGe,[["render",eKe]]);const tKe=Object.assign(s$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+s$.name,s$)}}),nKe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-star`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),rKe=["stroke-width","stroke-linecap","stroke-linejoin"];function iKe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,rKe)}var a$=Oe(nKe,[["render",iKe]]);const Jz=Object.assign(a$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+a$.name,a$)}}),oKe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-sync`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,sKe)}var l$=Oe(oKe,[["render",aKe]]);const lKe=Object.assign(l$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+l$.name,l$)}}),uKe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-thumb-down`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,cKe)}var u$=Oe(uKe,[["render",dKe]]);const fKe=Object.assign(u$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+u$.name,u$)}}),hKe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-thumb-up`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,pKe)}var c$=Oe(hKe,[["render",vKe]]);const mKe=Object.assign(c$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+c$.name,c$)}}),gKe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-translate`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 bKe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,yKe)}var d$=Oe(gKe,[["render",bKe]]);const _Ke=Object.assign(d$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+d$.name,d$)}}),SKe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-voice`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),kKe=["stroke-width","stroke-linecap","stroke-linejoin"];function wKe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,kKe)}var f$=Oe(SKe,[["render",wKe]]);const CKe=Object.assign(f$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+f$.name,f$)}}),xKe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-align-center`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),EKe=["stroke-width","stroke-linecap","stroke-linejoin"];function TKe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,EKe)}var h$=Oe(xKe,[["render",TKe]]);const AKe=Object.assign(h$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+h$.name,h$)}}),IKe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-align-left`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),LKe=["stroke-width","stroke-linecap","stroke-linejoin"];function PKe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,LKe)}var p$=Oe(IKe,[["render",PKe]]);const RKe=Object.assign(p$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+p$.name,p$)}}),MKe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-align-right`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 OKe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,DKe)}var v$=Oe(MKe,[["render",OKe]]);const $Ke=Object.assign(v$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+v$.name,v$)}}),NKe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-attachment`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 FKe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,BKe)}var m$=Oe(NKe,[["render",FKe]]);const jKe=Object.assign(m$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+m$.name,m$)}}),UKe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-bg-colors`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),VKe=["stroke-width","stroke-linecap","stroke-linejoin"];function zKe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,VKe)}var g$=Oe(UKe,[["render",zKe]]);const Npe=Object.assign(g$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+g$.name,g$)}}),HKe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-bold`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),WKe=["stroke-width","stroke-linecap","stroke-linejoin"];function GKe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,WKe)}var y$=Oe(HKe,[["render",GKe]]);const KKe=Object.assign(y$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+y$.name,y$)}}),qKe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-brush`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,YKe)}var b$=Oe(qKe,[["render",XKe]]);const ZKe=Object.assign(b$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+b$.name,b$)}}),QKe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-eraser`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 eqe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,JKe)}var _$=Oe(QKe,[["render",eqe]]);const tqe=Object.assign(_$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+_$.name,_$)}}),nqe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-find-replace`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),rqe=["stroke-width","stroke-linecap","stroke-linejoin"];function iqe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,rqe)}var S$=Oe(nqe,[["render",iqe]]);const oqe=Object.assign(S$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+S$.name,S$)}}),sqe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-font-colors`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,aqe)}var k$=Oe(sqe,[["render",lqe]]);const Bpe=Object.assign(k$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+k$.name,k$)}}),uqe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-formula`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,cqe)}var w$=Oe(uqe,[["render",dqe]]);const fqe=Object.assign(w$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+w$.name,w$)}}),hqe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-h1`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,pqe)}var C$=Oe(hqe,[["render",vqe]]);const mqe=Object.assign(C$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+C$.name,C$)}}),gqe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-h2`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),yqe=["stroke-width","stroke-linecap","stroke-linejoin"];function bqe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,yqe)}var x$=Oe(gqe,[["render",bqe]]);const _qe=Object.assign(x$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+x$.name,x$)}}),Sqe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-h3`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 wqe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,kqe)}var E$=Oe(Sqe,[["render",wqe]]);const Cqe=Object.assign(E$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+E$.name,E$)}}),xqe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-h4`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,Eqe)}var T$=Oe(xqe,[["render",Tqe]]);const Aqe=Object.assign(T$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+T$.name,T$)}}),Iqe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-h5`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Lqe=["stroke-width","stroke-linecap","stroke-linejoin"];function Pqe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,Lqe)}var A$=Oe(Iqe,[["render",Pqe]]);const Rqe=Object.assign(A$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+A$.name,A$)}}),Mqe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-h6`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 Oqe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,Dqe)}var I$=Oe(Mqe,[["render",Oqe]]);const $qe=Object.assign(I$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+I$.name,I$)}}),Nqe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-h7`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 Fqe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,Bqe)}var L$=Oe(Nqe,[["render",Fqe]]);const jqe=Object.assign(L$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+L$.name,L$)}}),Uqe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-highlight`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 zqe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,Vqe)}var P$=Oe(Uqe,[["render",zqe]]);const Hqe=Object.assign(P$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+P$.name,P$)}}),Wqe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-italic`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 Kqe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,Gqe)}var R$=Oe(Wqe,[["render",Kqe]]);const qqe=Object.assign(R$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+R$.name,R$)}}),Yqe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-line-height`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 Zqe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,Xqe)}var M$=Oe(Yqe,[["render",Zqe]]);const Qqe=Object.assign(M$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+M$.name,M$)}}),Jqe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-ordered-list`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,eYe)}var D$=Oe(Jqe,[["render",tYe]]);const nYe=Object.assign(D$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+D$.name,D$)}}),rYe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-paste`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"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,iYe)}var O$=Oe(rYe,[["render",oYe]]);const sYe=Object.assign(O$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+O$.name,O$)}}),aYe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-quote`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,lYe)}var $$=Oe(aYe,[["render",uYe]]);const cYe=Object.assign($$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+$$.name,$$)}}),dYe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-redo`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,fYe)}var N$=Oe(dYe,[["render",hYe]]);const pYe=Object.assign(N$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+N$.name,N$)}}),vYe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-scissor`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,mYe)}var B$=Oe(vYe,[["render",gYe]]);const yYe=Object.assign(B$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+B$.name,B$)}}),bYe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-sort-ascending`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,_Ye)}var F$=Oe(bYe,[["render",SYe]]);const Fpe=Object.assign(F$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+F$.name,F$)}}),kYe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-sort-descending`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),wYe=["stroke-width","stroke-linecap","stroke-linejoin"];function CYe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,wYe)}var j$=Oe(kYe,[["render",CYe]]);const jpe=Object.assign(j$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+j$.name,j$)}}),xYe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-sort`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,EYe)}var U$=Oe(xYe,[["render",TYe]]);const AYe=Object.assign(U$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+U$.name,U$)}}),IYe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-strikethrough`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 PYe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,LYe)}var V$=Oe(IYe,[["render",PYe]]);const RYe=Object.assign(V$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+V$.name,V$)}}),MYe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-underline`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),DYe=["stroke-width","stroke-linecap","stroke-linejoin"];function OYe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,DYe)}var z$=Oe(MYe,[["render",OYe]]);const $Ye=Object.assign(z$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+z$.name,z$)}}),NYe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-undo`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),BYe=["stroke-width","stroke-linecap","stroke-linejoin"];function FYe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,BYe)}var H$=Oe(NYe,[["render",FYe]]);const jYe=Object.assign(H$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+H$.name,H$)}}),UYe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-unordered-list`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),VYe=["stroke-width","stroke-linecap","stroke-linejoin"];function zYe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,VYe)}var W$=Oe(UYe,[["render",zYe]]);const HYe=Object.assign(W$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+W$.name,W$)}}),WYe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-mute-fill`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),GYe=["stroke-width","stroke-linecap","stroke-linejoin"];function KYe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,GYe)}var G$=Oe(WYe,[["render",KYe]]);const qYe=Object.assign(G$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+G$.name,G$)}}),YYe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-pause-circle-fill`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),XYe=["stroke-width","stroke-linecap","stroke-linejoin"];function ZYe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,XYe)}var K$=Oe(YYe,[["render",ZYe]]);const QYe=Object.assign(K$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+K$.name,K$)}}),JYe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-play-circle-fill`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),eXe=["stroke-width","stroke-linecap","stroke-linejoin"];function tXe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,eXe)}var q$=Oe(JYe,[["render",tXe]]);const nXe=Object.assign(q$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+q$.name,q$)}}),rXe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-skip-next-fill`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,iXe)}var Y$=Oe(rXe,[["render",oXe]]);const sXe=Object.assign(Y$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+Y$.name,Y$)}}),aXe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-skip-previous-fill`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,lXe)}var X$=Oe(aXe,[["render",uXe]]);const cXe=Object.assign(X$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+X$.name,X$)}}),dXe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-sound-fill`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,fXe)}var Z$=Oe(dXe,[["render",hXe]]);const pXe=Object.assign(Z$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+Z$.name,Z$)}}),vXe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-backward`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,mXe)}var Q$=Oe(vXe,[["render",gXe]]);const yXe=Object.assign(Q$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+Q$.name,Q$)}}),bXe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-forward`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,_Xe)}var J$=Oe(bXe,[["render",SXe]]);const kXe=Object.assign(J$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+J$.name,J$)}}),wXe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-fullscreen-exit`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 xXe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,CXe)}var eN=Oe(wXe,[["render",xXe]]);const eH=Object.assign(eN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+eN.name,eN)}}),EXe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-live-broadcast`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 AXe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,TXe)}var tN=Oe(EXe,[["render",AXe]]);const QA=Object.assign(tN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+tN.name,tN)}}),IXe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-music`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 PXe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,LXe)}var nN=Oe(IXe,[["render",PXe]]);const RXe=Object.assign(nN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+nN.name,nN)}}),MXe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-mute`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),DXe=["stroke-width","stroke-linecap","stroke-linejoin"];function OXe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,DXe)}var rN=Oe(MXe,[["render",OXe]]);const $Xe=Object.assign(rN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+rN.name,rN)}}),NXe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-pause-circle`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),BXe=["stroke-width","stroke-linecap","stroke-linejoin"];function FXe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,BXe)}var iN=Oe(NXe,[["render",FXe]]);const jXe=Object.assign(iN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+iN.name,iN)}}),UXe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-play-arrow`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),VXe=["stroke-width","stroke-linecap","stroke-linejoin"];function zXe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,VXe)}var oN=Oe(UXe,[["render",zXe]]);const ml=Object.assign(oN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+oN.name,oN)}}),HXe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-play-circle`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),WXe=["stroke-width","stroke-linecap","stroke-linejoin"];function GXe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,WXe)}var sN=Oe(HXe,[["render",GXe]]);const G2=Object.assign(sN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+sN.name,sN)}}),KXe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-record-stop`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,qXe)}var aN=Oe(KXe,[["render",YXe]]);const XXe=Object.assign(aN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+aN.name,aN)}}),ZXe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-record`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 JXe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,QXe)}var lN=Oe(ZXe,[["render",JXe]]);const eZe=Object.assign(lN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+lN.name,lN)}}),tZe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-skip-next`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,nZe)}var uN=Oe(tZe,[["render",rZe]]);const iZe=Object.assign(uN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+uN.name,uN)}}),oZe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-skip-previous`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,sZe)}var cN=Oe(oZe,[["render",aZe]]);const lZe=Object.assign(cN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+cN.name,cN)}}),uZe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-sound`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,cZe)}var dN=Oe(uZe,[["render",dZe]]);const fZe=Object.assign(dN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+dN.name,dN)}}),hZe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-bytedance-color`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 H(),J("svg",{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,pZe)}var fN=Oe(hZe,[["render",vZe]]);const mZe=Object.assign(fN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+fN.name,fN)}}),gZe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-lark-color`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),yZe=["stroke-width","stroke-linecap","stroke-linejoin"];function bZe(e,t,n,r,o,a){return H(),J("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,yZe)}var hN=Oe(gZe,[["render",bZe]]);const _Ze=Object.assign(hN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+hN.name,hN)}}),SZe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-tiktok-color`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),kZe=["stroke-width","stroke-linecap","stroke-linejoin"];function wZe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[rv('',5)]),14,kZe)}var pN=Oe(SZe,[["render",wZe]]);const CZe=Object.assign(pN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+pN.name,pN)}}),xZe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-xigua-color`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 H(),J("svg",{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,EZe)}var vN=Oe(xZe,[["render",TZe]]);const AZe=Object.assign(vN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+vN.name,vN)}}),IZe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-faceBook-circle-fill`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),LZe=["stroke-width","stroke-linecap","stroke-linejoin"];function PZe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,LZe)}var mN=Oe(IZe,[["render",PZe]]);const RZe=Object.assign(mN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+mN.name,mN)}}),MZe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-facebook-square-fill`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),DZe=["stroke-width","stroke-linecap","stroke-linejoin"];function OZe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,DZe)}var gN=Oe(MZe,[["render",OZe]]);const $Ze=Object.assign(gN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+gN.name,gN)}}),NZe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-google-circle-fill`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),BZe=["stroke-width","stroke-linecap","stroke-linejoin"];function FZe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,BZe)}var yN=Oe(NZe,[["render",FZe]]);const jZe=Object.assign(yN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+yN.name,yN)}}),UZe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-qq-circle-fill`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),VZe=["stroke-width","stroke-linecap","stroke-linejoin"];function zZe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,VZe)}var bN=Oe(UZe,[["render",zZe]]);const HZe=Object.assign(bN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+bN.name,bN)}}),WZe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-twitter-circle-fill`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 KZe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,GZe)}var _N=Oe(WZe,[["render",KZe]]);const qZe=Object.assign(_N,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+_N.name,_N)}}),YZe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-weibo-circle-fill`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),XZe=["stroke-width","stroke-linecap","stroke-linejoin"];function ZZe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,XZe)}var SN=Oe(YZe,[["render",ZZe]]);const QZe=Object.assign(SN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+SN.name,SN)}}),JZe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-alipay-circle`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,eQe)}var kN=Oe(JZe,[["render",tQe]]);const nQe=Object.assign(kN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+kN.name,kN)}}),rQe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-code-sandbox`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,iQe)}var wN=Oe(rQe,[["render",oQe]]);const sQe=Object.assign(wN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+wN.name,wN)}}),aQe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-codepen`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),lQe=["stroke-width","stroke-linecap","stroke-linejoin"];function uQe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,lQe)}var CN=Oe(aQe,[["render",uQe]]);const cQe=Object.assign(CN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+CN.name,CN)}}),dQe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-facebook`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 hQe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,fQe)}var xN=Oe(dQe,[["render",hQe]]);const pQe=Object.assign(xN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+xN.name,xN)}}),vQe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-github`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),mQe=["stroke-width","stroke-linecap","stroke-linejoin"];function gQe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,mQe)}var EN=Oe(vQe,[["render",gQe]]);const Upe=Object.assign(EN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+EN.name,EN)}}),yQe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-gitlab`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,bQe)}var TN=Oe(yQe,[["render",_Qe]]);const SQe=Object.assign(TN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+TN.name,TN)}}),kQe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-google`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),wQe=["stroke-width","stroke-linecap","stroke-linejoin"];function CQe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,wQe)}var AN=Oe(kQe,[["render",CQe]]);const xQe=Object.assign(AN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+AN.name,AN)}}),EQe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-qq-zone`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,TQe)}var IN=Oe(EQe,[["render",AQe]]);const IQe=Object.assign(IN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+IN.name,IN)}}),LQe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-qq`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,PQe)}var LN=Oe(LQe,[["render",RQe]]);const MQe=Object.assign(LN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+LN.name,LN)}}),DQe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-twitter`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,OQe)}var PN=Oe(DQe,[["render",$Qe]]);const NQe=Object.assign(PN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+PN.name,PN)}}),BQe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-wechat`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,FQe)}var RN=Oe(BQe,[["render",jQe]]);const UQe=Object.assign(RN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+RN.name,RN)}}),VQe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-wechatpay`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 HQe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,zQe)}var MN=Oe(VQe,[["render",HQe]]);const WQe=Object.assign(MN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+MN.name,MN)}}),GQe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-weibo`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,KQe)}var DN=Oe(GQe,[["render",qQe]]);const YQe=Object.assign(DN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+DN.name,DN)}}),XQe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-chinese-fill`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 QQe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,ZQe)}var ON=Oe(XQe,[["render",QQe]]);const JQe=Object.assign(ON,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+ON.name,ON)}}),eJe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-english-fill`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,tJe)}var $N=Oe(eJe,[["render",nJe]]);const rJe=Object.assign($N,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+$N.name,$N)}}),iJe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-moon-fill`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 sJe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,oJe)}var NN=Oe(iJe,[["render",sJe]]);const aJe=Object.assign(NN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+NN.name,NN)}}),lJe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-pen-fill`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),uJe=["stroke-width","stroke-linecap","stroke-linejoin"];function cJe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,uJe)}var BN=Oe(lJe,[["render",cJe]]);const dJe=Object.assign(BN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+BN.name,BN)}}),fJe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-sun-fill`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),hJe=["stroke-width","stroke-linecap","stroke-linejoin"];function pJe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"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,hJe)}var FN=Oe(fJe,[["render",pJe]]);const vJe=Object.assign(FN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+FN.name,FN)}}),mJe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-apps`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 yJe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,gJe)}var jN=Oe(mJe,[["render",yJe]]);const Vpe=Object.assign(jN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+jN.name,jN)}}),bJe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-archive`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 SJe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"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,_Je)}var UN=Oe(bJe,[["render",SJe]]);const kJe=Object.assign(UN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+UN.name,UN)}}),wJe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-bar-chart`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 xJe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",stroke:"currentColor",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,CJe)}var VN=Oe(wJe,[["render",xJe]]);const zpe=Object.assign(VN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+VN.name,VN)}}),EJe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-book`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 AJe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,TJe)}var zN=Oe(EJe,[["render",AJe]]);const oL=Object.assign(zN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+zN.name,zN)}}),IJe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-bookmark`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),LJe=["stroke-width","stroke-linecap","stroke-linejoin"];function PJe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,LJe)}var HN=Oe(IJe,[["render",PJe]]);const RJe=Object.assign(HN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+HN.name,HN)}}),MJe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-branch`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 OJe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,DJe)}var WN=Oe(MJe,[["render",OJe]]);const $Je=Object.assign(WN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+WN.name,WN)}}),NJe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-bug`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),BJe=["stroke-width","stroke-linecap","stroke-linejoin"];function FJe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,BJe)}var GN=Oe(NJe,[["render",FJe]]);const sL=Object.assign(GN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+GN.name,GN)}}),jJe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-bulb`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),UJe=["stroke-width","stroke-linecap","stroke-linejoin"];function VJe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,UJe)}var KN=Oe(jJe,[["render",VJe]]);const zJe=Object.assign(KN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+KN.name,KN)}}),HJe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-calendar-clock`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 GJe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,WJe)}var qN=Oe(HJe,[["render",GJe]]);const KJe=Object.assign(qN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+qN.name,qN)}}),qJe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-camera`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 XJe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,YJe)}var YN=Oe(qJe,[["render",XJe]]);const ZJe=Object.assign(YN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+YN.name,YN)}}),QJe=_e({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=Ae("icon"),r=F(()=>[n,`${n}-cloud`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),JJe=["stroke-width","stroke-linecap","stroke-linejoin"];function eet(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,JJe)}var XN=Oe(QJe,[["render",eet]]);const tet=Object.assign(XN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+XN.name,XN)}}),net=_e({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=Ae("icon"),r=F(()=>[n,`${n}-command`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),ret=["stroke-width","stroke-linecap","stroke-linejoin"];function iet(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,ret)}var ZN=Oe(net,[["render",iet]]);const oet=Object.assign(ZN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+ZN.name,ZN)}}),set=_e({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=Ae("icon"),r=F(()=>[n,`${n}-common`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),aet=["stroke-width","stroke-linecap","stroke-linejoin"];function uet(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,aet)}var QN=Oe(set,[["render",uet]]);const cet=Object.assign(QN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+QN.name,QN)}}),det=_e({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=Ae("icon"),r=F(()=>[n,`${n}-compass`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),fet=["stroke-width","stroke-linecap","stroke-linejoin"];function het(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,fet)}var JN=Oe(det,[["render",het]]);const pet=Object.assign(JN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+JN.name,JN)}}),vet=_e({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=Ae("icon"),r=F(()=>[n,`${n}-computer`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 get(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,met)}var eB=Oe(vet,[["render",get]]);const tH=Object.assign(eB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+eB.name,eB)}}),yet=_e({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=Ae("icon"),r=F(()=>[n,`${n}-copyright`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),bet=["stroke-width","stroke-linecap","stroke-linejoin"];function _et(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,bet)}var tB=Oe(yet,[["render",_et]]);const Hpe=Object.assign(tB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+tB.name,tB)}}),ket=_e({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=Ae("icon"),r=F(()=>[n,`${n}-dashboard`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),wet=["stroke-width","stroke-linecap","stroke-linejoin"];function Cet(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,wet)}var nB=Oe(ket,[["render",Cet]]);const xet=Object.assign(nB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+nB.name,nB)}}),Eet=_e({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=Ae("icon"),r=F(()=>[n,`${n}-desktop`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 Aet(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,Tet)}var rB=Oe(Eet,[["render",Aet]]);const JA=Object.assign(rB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+rB.name,rB)}}),Iet=_e({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=Ae("icon"),r=F(()=>[n,`${n}-dice`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 Pet(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[rv('',11)]),14,Let)}var iB=Oe(Iet,[["render",Pet]]);const Ret=Object.assign(iB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+iB.name,iB)}}),Met=_e({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=Ae("icon"),r=F(()=>[n,`${n}-drive-file`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Det=["stroke-width","stroke-linecap","stroke-linejoin"];function Oet(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,Det)}var oB=Oe(Met,[["render",Oet]]);const $et=Object.assign(oB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+oB.name,oB)}}),Net=_e({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=Ae("icon"),r=F(()=>[n,`${n}-ear`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Bet=["stroke-width","stroke-linecap","stroke-linejoin"];function Fet(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,Bet)}var sB=Oe(Net,[["render",Fet]]);const jet=Object.assign(sB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+sB.name,sB)}}),Uet=_e({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=Ae("icon"),r=F(()=>[n,`${n}-email`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Vet=["stroke-width","stroke-linecap","stroke-linejoin"];function zet(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"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,Vet)}var aB=Oe(Uet,[["render",zet]]);const Het=Object.assign(aB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+aB.name,aB)}}),Wet=_e({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=Ae("icon"),r=F(()=>[n,`${n}-experiment`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,Get)}var lB=Oe(Wet,[["render",Ket]]);const qet=Object.assign(lB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+lB.name,lB)}}),Yet=_e({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=Ae("icon"),r=F(()=>[n,`${n}-fire`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,Xet)}var uB=Oe(Yet,[["render",Zet]]);const Wpe=Object.assign(uB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+uB.name,uB)}}),Qet=_e({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=Ae("icon"),r=F(()=>[n,`${n}-folder-add`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Jet=["stroke-width","stroke-linecap","stroke-linejoin"];function ett(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,Jet)}var cB=Oe(Qet,[["render",ett]]);const ttt=Object.assign(cB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+cB.name,cB)}}),ntt=_e({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=Ae("icon"),r=F(()=>[n,`${n}-folder-delete`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 itt(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,rtt)}var dB=Oe(ntt,[["render",itt]]);const ott=Object.assign(dB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+dB.name,dB)}}),stt=_e({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=Ae("icon"),r=F(()=>[n,`${n}-folder`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),att=["stroke-width","stroke-linecap","stroke-linejoin"];function ltt(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,att)}var fB=Oe(stt,[["render",ltt]]);const utt=Object.assign(fB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+fB.name,fB)}}),ctt=_e({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=Ae("icon"),r=F(()=>[n,`${n}-gift`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),dtt=["stroke-width","stroke-linecap","stroke-linejoin"];function ftt(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,dtt)}var hB=Oe(ctt,[["render",ftt]]);const htt=Object.assign(hB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+hB.name,hB)}}),ptt=_e({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=Ae("icon"),r=F(()=>[n,`${n}-idcard`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,vtt)}var pB=Oe(ptt,[["render",mtt]]);const gtt=Object.assign(pB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+pB.name,pB)}}),ytt=_e({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=Ae("icon"),r=F(()=>[n,`${n}-image`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,btt)}var vB=Oe(ytt,[["render",_tt]]);const aL=Object.assign(vB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+vB.name,vB)}}),Stt=_e({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=Ae("icon"),r=F(()=>[n,`${n}-interaction`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 wtt(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,ktt)}var mB=Oe(Stt,[["render",wtt]]);const Ctt=Object.assign(mB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+mB.name,mB)}}),xtt=_e({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=Ae("icon"),r=F(()=>[n,`${n}-language`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,Ett)}var gB=Oe(xtt,[["render",Ttt]]);const Gpe=Object.assign(gB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+gB.name,gB)}}),Att=_e({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=Ae("icon"),r=F(()=>[n,`${n}-layers`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,Itt)}var yB=Oe(Att,[["render",Ltt]]);const Ptt=Object.assign(yB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+yB.name,yB)}}),Rtt=_e({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=Ae("icon"),r=F(()=>[n,`${n}-layout`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Mtt=["stroke-width","stroke-linecap","stroke-linejoin"];function Dtt(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,Mtt)}var bB=Oe(Rtt,[["render",Dtt]]);const Ott=Object.assign(bB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+bB.name,bB)}}),$tt=_e({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=Ae("icon"),r=F(()=>[n,`${n}-location`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Ntt=["stroke-width","stroke-linecap","stroke-linejoin"];function Btt(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"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,Ntt)}var _B=Oe($tt,[["render",Btt]]);const Ftt=Object.assign(_B,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+_B.name,_B)}}),jtt=_e({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=Ae("icon"),r=F(()=>[n,`${n}-lock`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Utt=["stroke-width","stroke-linecap","stroke-linejoin"];function Vtt(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"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,Utt)}var SB=Oe(jtt,[["render",Vtt]]);const ztt=Object.assign(SB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+SB.name,SB)}}),Htt=_e({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=Ae("icon"),r=F(()=>[n,`${n}-loop`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 Gtt(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,Wtt)}var kB=Oe(Htt,[["render",Gtt]]);const Ktt=Object.assign(kB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+kB.name,kB)}}),qtt=_e({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=Ae("icon"),r=F(()=>[n,`${n}-man`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Ytt=["stroke-width","stroke-linecap","stroke-linejoin"];function Xtt(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,Ytt)}var wB=Oe(qtt,[["render",Xtt]]);const Ztt=Object.assign(wB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+wB.name,wB)}}),Qtt=_e({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=Ae("icon"),r=F(()=>[n,`${n}-menu`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 ent(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,Jtt)}var CB=Oe(Qtt,[["render",ent]]);const Kpe=Object.assign(CB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+CB.name,CB)}}),tnt=_e({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=Ae("icon"),r=F(()=>[n,`${n}-mind-mapping`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,nnt)}var xB=Oe(tnt,[["render",rnt]]);const int=Object.assign(xB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+xB.name,xB)}}),ont=_e({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=Ae("icon"),r=F(()=>[n,`${n}-mobile`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,snt)}var EB=Oe(ont,[["render",ant]]);const qpe=Object.assign(EB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+EB.name,EB)}}),lnt=_e({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=Ae("icon"),r=F(()=>[n,`${n}-moon`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 cnt(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,unt)}var TB=Oe(lnt,[["render",cnt]]);const dnt=Object.assign(TB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+TB.name,TB)}}),fnt=_e({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=Ae("icon"),r=F(()=>[n,`${n}-mosaic`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,hnt)}var AB=Oe(fnt,[["render",pnt]]);const vnt=Object.assign(AB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+AB.name,AB)}}),mnt=_e({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=Ae("icon"),r=F(()=>[n,`${n}-nav`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 ynt(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,gnt)}var IB=Oe(mnt,[["render",ynt]]);const bnt=Object.assign(IB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+IB.name,IB)}}),_nt=_e({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=Ae("icon"),r=F(()=>[n,`${n}-notification-close`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 knt(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,Snt)}var LB=Oe(_nt,[["render",knt]]);const wnt=Object.assign(LB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+LB.name,LB)}}),Cnt=_e({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=Ae("icon"),r=F(()=>[n,`${n}-notification`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 Ent(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,xnt)}var PB=Oe(Cnt,[["render",Ent]]);const Tnt=Object.assign(PB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+PB.name,PB)}}),Ant=_e({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=Ae("icon"),r=F(()=>[n,`${n}-palette`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Int=["stroke-width","stroke-linecap","stroke-linejoin"];function Lnt(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[rv('',5)]),14,Int)}var RB=Oe(Ant,[["render",Lnt]]);const nH=Object.assign(RB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+RB.name,RB)}}),Pnt=_e({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=Ae("icon"),r=F(()=>[n,`${n}-pen`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Rnt=["stroke-width","stroke-linecap","stroke-linejoin"];function Mnt(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,Rnt)}var MB=Oe(Pnt,[["render",Mnt]]);const Dnt=Object.assign(MB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+MB.name,MB)}}),Ont=_e({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=Ae("icon"),r=F(()=>[n,`${n}-phone`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 Nnt(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,$nt)}var DB=Oe(Ont,[["render",Nnt]]);const Bnt=Object.assign(DB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+DB.name,DB)}}),Fnt=_e({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=Ae("icon"),r=F(()=>[n,`${n}-printer`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),jnt=["stroke-width","stroke-linecap","stroke-linejoin"];function Unt(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,jnt)}var OB=Oe(Fnt,[["render",Unt]]);const Vnt=Object.assign(OB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+OB.name,OB)}}),znt=_e({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=Ae("icon"),r=F(()=>[n,`${n}-public`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 Wnt(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,Hnt)}var $B=Oe(znt,[["render",Wnt]]);const Gnt=Object.assign($B,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+$B.name,$B)}}),Knt=_e({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=Ae("icon"),r=F(()=>[n,`${n}-pushpin`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),qnt=["stroke-width","stroke-linecap","stroke-linejoin"];function Ynt(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,qnt)}var NB=Oe(Knt,[["render",Ynt]]);const Xnt=Object.assign(NB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+NB.name,NB)}}),Znt=_e({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=Ae("icon"),r=F(()=>[n,`${n}-qrcode`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Qnt=["stroke-width","stroke-linecap","stroke-linejoin"];function Jnt(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,Qnt)}var BB=Oe(Znt,[["render",Jnt]]);const ert=Object.assign(BB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+BB.name,BB)}}),trt=_e({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=Ae("icon"),r=F(()=>[n,`${n}-relation`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),nrt=["stroke-width","stroke-linecap","stroke-linejoin"];function rrt(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,nrt)}var FB=Oe(trt,[["render",rrt]]);const irt=Object.assign(FB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+FB.name,FB)}}),ort=_e({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=Ae("icon"),r=F(()=>[n,`${n}-robot-add`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 art(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,srt)}var jB=Oe(ort,[["render",art]]);const lrt=Object.assign(jB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+jB.name,jB)}}),urt=_e({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=Ae("icon"),r=F(()=>[n,`${n}-robot`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),crt=["stroke-width","stroke-linecap","stroke-linejoin"];function drt(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,crt)}var UB=Oe(urt,[["render",drt]]);const frt=Object.assign(UB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+UB.name,UB)}}),hrt=_e({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=Ae("icon"),r=F(()=>[n,`${n}-safe`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,prt)}var VB=Oe(hrt,[["render",vrt]]);const wh=Object.assign(VB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+VB.name,VB)}}),mrt=_e({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=Ae("icon"),r=F(()=>[n,`${n}-schedule`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),grt=["stroke-width","stroke-linecap","stroke-linejoin"];function yrt(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"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,grt)}var zB=Oe(mrt,[["render",yrt]]);const brt=Object.assign(zB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+zB.name,zB)}}),_rt=_e({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=Ae("icon"),r=F(()=>[n,`${n}-shake`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,Srt)}var HB=Oe(_rt,[["render",krt]]);const wrt=Object.assign(HB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+HB.name,HB)}}),Crt=_e({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=Ae("icon"),r=F(()=>[n,`${n}-skin`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),xrt=["stroke-width","stroke-linecap","stroke-linejoin"];function Ert(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,xrt)}var WB=Oe(Crt,[["render",Ert]]);const Trt=Object.assign(WB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+WB.name,WB)}}),Art=_e({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=Ae("icon"),r=F(()=>[n,`${n}-stamp`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,Irt)}var GB=Oe(Art,[["render",Lrt]]);const Prt=Object.assign(GB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+GB.name,GB)}}),Rrt=_e({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=Ae("icon"),r=F(()=>[n,`${n}-storage`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Mrt=["stroke-width","stroke-linecap","stroke-linejoin"];function Drt(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,Mrt)}var KB=Oe(Rrt,[["render",Drt]]);const Cj=Object.assign(KB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+KB.name,KB)}}),Ort=_e({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=Ae("icon"),r=F(()=>[n,`${n}-subscribe-add`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),$rt=["stroke-width","stroke-linecap","stroke-linejoin"];function Nrt(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,$rt)}var qB=Oe(Ort,[["render",Nrt]]);const Brt=Object.assign(qB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+qB.name,qB)}}),Frt=_e({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=Ae("icon"),r=F(()=>[n,`${n}-subscribe`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 Urt(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,jrt)}var YB=Oe(Frt,[["render",Urt]]);const Vrt=Object.assign(YB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+YB.name,YB)}}),zrt=_e({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=Ae("icon"),r=F(()=>[n,`${n}-subscribed`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Hrt=["stroke-width","stroke-linecap","stroke-linejoin"];function Wrt(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,Hrt)}var XB=Oe(zrt,[["render",Wrt]]);const Grt=Object.assign(XB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+XB.name,XB)}}),Krt=_e({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=Ae("icon"),r=F(()=>[n,`${n}-sun`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"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,qrt)}var ZB=Oe(Krt,[["render",Yrt]]);const Xrt=Object.assign(ZB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+ZB.name,ZB)}}),Zrt=_e({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=Ae("icon"),r=F(()=>[n,`${n}-tag`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 Jrt(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,Qrt)}var QB=Oe(Zrt,[["render",Jrt]]);const eit=Object.assign(QB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+QB.name,QB)}}),tit=_e({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=Ae("icon"),r=F(()=>[n,`${n}-tags`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),nit=["stroke-width","stroke-linecap","stroke-linejoin"];function rit(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,nit)}var JB=Oe(tit,[["render",rit]]);const iit=Object.assign(JB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+JB.name,JB)}}),oit=_e({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=Ae("icon"),r=F(()=>[n,`${n}-thunderbolt`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 ait(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,sit)}var e7=Oe(oit,[["render",ait]]);const lit=Object.assign(e7,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+e7.name,e7)}}),uit=_e({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=Ae("icon"),r=F(()=>[n,`${n}-tool`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 dit(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,cit)}var t7=Oe(uit,[["render",dit]]);const fit=Object.assign(t7,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+t7.name,t7)}}),hit=_e({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=Ae("icon"),r=F(()=>[n,`${n}-trophy`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 vit(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,pit)}var n7=Oe(hit,[["render",vit]]);const mit=Object.assign(n7,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+n7.name,n7)}}),git=_e({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=Ae("icon"),r=F(()=>[n,`${n}-unlock`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),yit=["stroke-width","stroke-linecap","stroke-linejoin"];function bit(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"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,yit)}var r7=Oe(git,[["render",bit]]);const _it=Object.assign(r7,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+r7.name,r7)}}),Sit=_e({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=Ae("icon"),r=F(()=>[n,`${n}-user-add`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),kit=["stroke-width","stroke-linecap","stroke-linejoin"];function wit(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,kit)}var i7=Oe(Sit,[["render",wit]]);const Cit=Object.assign(i7,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+i7.name,i7)}}),xit=_e({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=Ae("icon"),r=F(()=>[n,`${n}-user-group`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Eit=["stroke-width","stroke-linecap","stroke-linejoin"];function Tit(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"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,Eit)}var o7=Oe(xit,[["render",Tit]]);const Ait=Object.assign(o7,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+o7.name,o7)}}),Iit=_e({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=Ae("icon"),r=F(()=>[n,`${n}-user`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Lit=["stroke-width","stroke-linecap","stroke-linejoin"];function Pit(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,Lit)}var s7=Oe(Iit,[["render",Pit]]);const Rit=Object.assign(s7,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+s7.name,s7)}}),Mit=_e({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=Ae("icon"),r=F(()=>[n,`${n}-video-camera`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Dit=["stroke-width","stroke-linecap","stroke-linejoin"];function Oit(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,Dit)}var a7=Oe(Mit,[["render",Oit]]);const Ype=Object.assign(a7,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+a7.name,a7)}}),$it=_e({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=Ae("icon"),r=F(()=>[n,`${n}-wifi`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Nit=["stroke-width","stroke-linecap","stroke-linejoin"];function Bit(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,Nit)}var l7=Oe($it,[["render",Bit]]);const Fit=Object.assign(l7,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+l7.name,l7)}}),jit=_e({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=Ae("icon"),r=F(()=>[n,`${n}-woman`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 Vit(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ae(e.cls),style:je(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,Uit)}var u7=Oe(jit,[["render",Vit]]);const zit=Object.assign(u7,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+u7.name,u7)}}),xj={IconArrowDown:kj,IconArrowFall:qVe,IconArrowLeft:Xz,IconArrowRight:tze,IconArrowRise:oze,IconArrowUp:wj,IconCaretDown:jz,IconCaretLeft:wz,IconCaretRight:kz,IconCaretUp:ppe,IconDoubleDown:fze,IconDoubleLeft:nhe,IconDoubleRight:rhe,IconDoubleUp:mze,IconDownCircle:_ze,IconDown:Av,IconDragArrow:Mpe,IconExpand:Tze,IconLeftCircle:Pze,IconLeft:kl,IconMenuFold:Xhe,IconMenuUnfold:Zhe,IconRightCircle:Oze,IconRight:Ni,IconRotateLeft:Rhe,IconRotateRight:Mhe,IconShrink:Fze,IconSwap:Dpe,IconToBottom:Gze,IconToLeft:Xze,IconToRight:eHe,IconToTop:Sfe,IconUpCircle:iHe,IconUp:Ok,IconCheckCircleFill:jh,IconCloseCircleFill:Fg,IconExclamationCircleFill:kf,IconExclamationPolygonFill:lHe,IconInfoCircleFill:z1,IconMinusCircleFill:fHe,IconPlusCircleFill:mHe,IconQuestionCircleFill:_He,IconCheckCircle:xc,IconCheckSquare:THe,IconCheck:Vg,IconClockCircle:W3,IconCloseCircle:PHe,IconClose:ms,IconExclamationCircle:dh,IconExclamation:$z,IconInfoCircle:sh,IconInfo:ipe,IconMinusCircle:UHe,IconMinus:Sg,IconPlusCircle:WHe,IconPlus:mf,IconQuestionCircle:The,IconQuestion:YHe,IconStop:JHe,IconHeartFill:Zz,IconStarFill:Nz,IconThumbDownFill:sWe,IconThumbUpFill:cWe,IconAt:pWe,IconCloudDownload:yWe,IconCodeBlock:Ope,IconCodeSquare:xWe,IconCode:pv,IconCustomerService:RWe,IconDownload:YS,IconExport:nL,IconEyeInvisible:vfe,IconEye:dv,IconHeart:rL,IconHistory:S1,IconHome:Vk,IconImport:iL,IconLaunch:$pe,IconList:Qz,IconMessageBanned:sGe,IconMessage:cGe,IconMoreVertical:pGe,IconMore:Tv,IconPoweroff:yGe,IconRefresh:rf,IconReply:xGe,IconSave:Rm,IconScan:RGe,IconSearch:bg,IconSelectAll:$Ge,IconSend:jGe,IconSettings:zh,IconShareAlt:KGe,IconShareExternal:ZGe,IconShareInternal:tKe,IconStar:Jz,IconSync:lKe,IconThumbDown:fKe,IconThumbUp:mKe,IconTranslate:_Ke,IconUpload:Y1,IconVoice:CKe,IconAlignCenter:AKe,IconAlignLeft:RKe,IconAlignRight:$Ke,IconAttachment:jKe,IconBgColors:Npe,IconBold:KKe,IconBrush:ZKe,IconCopy:eL,IconDelete:ic,IconEdit:Gz,IconEraser:tqe,IconFilter:Uz,IconFindReplace:oqe,IconFontColors:Bpe,IconFormula:fqe,IconH1:mqe,IconH2:_qe,IconH3:Cqe,IconH4:Aqe,IconH5:Rqe,IconH6:$qe,IconH7:jqe,IconHighlight:Hqe,IconItalic:qqe,IconLineHeight:Qqe,IconLink:dd,IconObliqueLine:wfe,IconOrderedList:nYe,IconOriginalSize:Dhe,IconPaste:sYe,IconQuote:cYe,IconRedo:pYe,IconScissor:yYe,IconSortAscending:Fpe,IconSortDescending:jpe,IconSort:AYe,IconStrikethrough:RYe,IconUnderline:$Ye,IconUndo:jYe,IconUnorderedList:HYe,IconZoomIn:Phe,IconZoomOut:Lhe,IconMuteFill:qYe,IconPauseCircleFill:QYe,IconPlayArrowFill:xpe,IconPlayCircleFill:nXe,IconSkipNextFill:sXe,IconSkipPreviousFill:cXe,IconSoundFill:pXe,IconBackward:yXe,IconForward:kXe,IconFullscreenExit:eH,IconFullscreen:q3,IconLiveBroadcast:QA,IconMusic:RXe,IconMute:$Xe,IconPauseCircle:jXe,IconPause:Cpe,IconPlayArrow:ml,IconPlayCircle:G2,IconRecordStop:XXe,IconRecord:eZe,IconSkipNext:iZe,IconSkipPrevious:lZe,IconSound:fZe,IconBytedanceColor:mZe,IconLarkColor:_Ze,IconTiktokColor:CZe,IconXiguaColor:AZe,IconFaceBookCircleFill:RZe,IconFacebookSquareFill:$Ze,IconGoogleCircleFill:jZe,IconQqCircleFill:HZe,IconTwitterCircleFill:qZe,IconWeiboCircleFill:QZe,IconAlipayCircle:nQe,IconCodeSandbox:sQe,IconCodepen:cQe,IconFacebook:pQe,IconGithub:Upe,IconGitlab:SQe,IconGoogle:xQe,IconQqZone:IQe,IconQq:MQe,IconTwitter:NQe,IconWechat:UQe,IconWechatpay:WQe,IconWeibo:YQe,IconChineseFill:JQe,IconEnglishFill:rJe,IconFaceFrownFill:rpe,IconFaceMehFill:pj,IconFaceSmileFill:npe,IconMoonFill:aJe,IconPenFill:dJe,IconSunFill:vJe,IconApps:Vpe,IconArchive:kJe,IconBarChart:zpe,IconBook:oL,IconBookmark:RJe,IconBranch:$Je,IconBug:sL,IconBulb:zJe,IconCalendarClock:KJe,IconCalendar:Fk,IconCamera:ZJe,IconCloud:tet,IconCommand:oet,IconCommon:cet,IconCompass:pet,IconComputer:tH,IconCopyright:Hpe,IconDashboard:xet,IconDesktop:JA,IconDice:Ret,IconDragDotVertical:Y3,IconDragDot:jhe,IconDriveFile:$et,IconEar:jet,IconEmail:Het,IconEmpty:uz,IconExperiment:qet,IconFileAudio:Lpe,IconFileImage:Ape,IconFilePdf:Tpe,IconFileVideo:Ipe,IconFile:Wz,IconFire:Wpe,IconFolderAdd:ttt,IconFolderDelete:ott,IconFolder:utt,IconGift:htt,IconIdcard:gtt,IconImageClose:B3,IconImage:aL,IconInteraction:Ctt,IconLanguage:Gpe,IconLayers:Ptt,IconLayout:Ott,IconLoading:za,IconLocation:Ftt,IconLock:ztt,IconLoop:Ktt,IconMan:Ztt,IconMenu:Kpe,IconMindMapping:int,IconMobile:qpe,IconMoon:dnt,IconMosaic:vnt,IconNav:bnt,IconNotificationClose:wnt,IconNotification:Tnt,IconPalette:nH,IconPen:Dnt,IconPhone:Bnt,IconPrinter:Vnt,IconPublic:Gnt,IconPushpin:Xnt,IconQrcode:ert,IconRelation:irt,IconRobotAdd:lrt,IconRobot:frt,IconSafe:wh,IconSchedule:brt,IconShake:wrt,IconSkin:Trt,IconStamp:Prt,IconStorage:Cj,IconSubscribeAdd:Brt,IconSubscribe:Vrt,IconSubscribed:Grt,IconSun:Xrt,IconTag:eit,IconTags:iit,IconThunderbolt:lit,IconTool:fit,IconTrophy:mit,IconUnlock:_it,IconUserAdd:Cit,IconUserGroup:Ait,IconUser:Rit,IconVideoCamera:Ype,IconWifi:Fit,IconWoman:zit},Hit=(e,t)=>{for(const n of Object.keys(xj))e.use(xj[n],t)},Wit={...xj,install:Hit},_r=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},Git=_e({components:{},setup(){return{showConfirmModal:fe(!1)}},methods:{goBack(){Pt.info("前进按钮")},goForward(){Pt.info("后退按钮")},refreshPage(){Pt.info("刷新页面"),window.location.reload()},onSearch(e){Pt.info(`搜索内容: ${e}`)},minimize(){Pt.info("最小化窗口"),this.exitFullScreen()},maximize(){Pt.info("最大化窗口"),this.enterFullScreen()},showCloseConfirm(){this.showConfirmModal=!0},hideCloseConfirm(){this.showConfirmModal=!1},confirmClose(){this.showConfirmModal=!1,Pt.info("正在关闭应用...");try{window.opener||window.open("about:blank","_self"),window.close(),setTimeout(()=>{window.closed||(Pt.warning("无法自动关闭窗口,请手动关闭浏览器标签页"),window.location.href="about:blank")},500)}catch(e){console.error("关闭窗口失败:",e),Pt.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()}}}),Kit={class:"header-left"},qit={class:"header-center"},Yit={class:"header-right"},Xit={class:"modal-header"},Zit={class:"modal-footer"};function Qit(e,t,n,r,o,a){const s=Pe("icon-left"),l=Pe("a-button"),c=Pe("icon-right"),f=Pe("icon-refresh"),h=Pe("a-input-search"),p=Pe("icon-shrink"),m=Pe("icon-expand"),g=Pe("icon-close"),b=Pe("icon-exclamation-circle-fill"),S=Pe("a-layout-header");return H(),Ye(S,{class:"header"},{default:de(()=>[I("div",Kit,[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(f)]),_:1},8,["onClick"])]),I("div",qit,[O(h,{placeholder:"搜索内容...","enter-button":"搜索",onSearch:e.onSearch},null,8,["onSearch"])]),I("div",Yit,[O(l,{shape:"circle",onClick:e.minimize},{icon:de(()=>[O(p)]),_:1},8,["onClick"]),O(l,{shape:"circle",onClick:e.maximize},{icon:de(()=>[O(m)]),_:1},8,["onClick"]),O(l,{shape:"circle",onClick:e.showCloseConfirm},{icon:de(()=>[O(g)]),_:1},8,["onClick"])]),e.showConfirmModal?(H(),J("div",{key:0,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]=rs(()=>{},["stop"]))},[I("div",Xit,[O(b,{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",Zit,[O(l,{class:"cancel-btn",onClick:e.hideCloseConfirm},{default:de(()=>[...t[3]||(t[3]=[ze(" 取消 ",-1)])]),_:1},8,["onClick"]),O(l,{type:"primary",status:"danger",class:"confirm-btn",onClick:e.confirmClose},{default:de(()=>[...t[4]||(t[4]=[ze(" 确认关闭 ",-1)])]),_:1},8,["onClick"])])])])):Re("",!0)]),_:1})}const Jit=_r(Git,[["render",Qit],["__scopeId","data-v-3ed03fa9"]]);/*! * pinia v2.3.1 * (c) 2025 Eduardo San Martin Morote * @license MIT */let Xpe;const lL=e=>Xpe=e,Zpe=Symbol();function Ej(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var XS;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(XS||(XS={}));function eot(){const e=LV(!0),t=e.run(()=>fe({}));let n=[],r=[];const o=m3({install(a){lL(o),o._a=a,a.provide(Zpe,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 Qpe=()=>{};function Wne(e,t,n,r=Qpe){e.push(t);const o=()=>{const a=e.indexOf(t);a>-1&&(e.splice(a,1),r())};return!n&&c3()&&PV(o),o}function q0(e,...t){e.slice().forEach(n=>{n(...t)})}const tot=e=>e(),Gne=Symbol(),c7=Symbol();function Tj(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];Ej(o)&&Ej(r)&&e.hasOwnProperty(n)&&!Io(r)&&!cf(r)?e[n]=Tj(o,r):e[n]=r}return e}const not=Symbol();function rot(e){return!Ej(e)||!e.hasOwnProperty(not)}const{assign:Dp}=Object;function iot(e){return!!(Io(e)&&e.effect)}function oot(e,t,n,r){const{state:o,actions:a,getters:s}=t,l=n.state.value[e];let c;function f(){l||(n.state.value[e]=o?o():{});const h=Qt(n.state.value[e]);return Dp(h,a,Object.keys(s||{}).reduce((p,m)=>(p[m]=m3(F(()=>{lL(n);const g=n._s.get(e);return s[m].call(g,g)})),p),{}))}return c=Jpe(e,f,t,n,r,!0),c}function Jpe(e,t,n={},r,o,a){let s;const l=Dp({actions:{}},n),c={deep:!0};let f,h,p=[],m=[],g;const b=r.state.value[e];!a&&!b&&(r.state.value[e]={}),fe({});let S;function k(D){let N;f=h=!1,typeof D=="function"?(D(r.state.value[e]),N={type:XS.patchFunction,storeId:e,events:g}):(Tj(r.state.value[e],D),N={type:XS.patchObject,payload:D,storeId:e,events:g});const L=S=Symbol();yn().then(()=>{S===L&&(f=!0)}),h=!0,q0(p,N,r.state.value[e])}const C=a?function(){const{state:N}=n,L=N?N():{};this.$patch(B=>{Dp(B,L)})}:Qpe;function x(){s.stop(),p=[],m=[],r._s.delete(e)}const E=(D,N="")=>{if(Gne in D)return D[c7]=N,D;const L=function(){lL(r);const B=Array.from(arguments),U=[],W=[];function V(oe){U.push(oe)}function z(oe){W.push(oe)}q0(m,{args:B,name:L[c7],store:A,after:V,onError:z});let Y;try{Y=D.apply(this&&this.$id===e?this:A,B)}catch(oe){throw q0(W,oe),oe}return Y instanceof Promise?Y.then(oe=>(q0(U,oe),oe)).catch(oe=>(q0(W,oe),Promise.reject(oe))):(q0(U,Y),Y)};return L[Gne]=!0,L[c7]=N,L},_={_p:r,$id:e,$onAction:Wne.bind(null,m),$patch:k,$reset:C,$subscribe(D,N={}){const L=Wne(p,D,N.detached,()=>B()),B=s.run(()=>Dt(()=>r.state.value[e],U=>{(N.flush==="sync"?h:f)&&D({storeId:e,type:XS.direct,events:g},U)},Dp({},c,N)));return L},$dispose:x},A=qt(_);r._s.set(e,A);const M=(r._a&&r._a.runWithContext||tot)(()=>r._e.run(()=>(s=LV()).run(()=>t({action:E}))));for(const D in M){const N=M[D];if(Io(N)&&!iot(N)||cf(N))a||(b&&rot(N)&&(Io(N)?N.value=b[D]:Tj(N,b[D])),r.state.value[e][D]=N);else if(typeof N=="function"){const L=E(N,D);M[D]=L,l.actions[D]=N}}return Dp(A,M),Dp(Pi(A),M),Object.defineProperty(A,"$state",{get:()=>r.state.value[e],set:D=>{k(N=>{Dp(N,D)})}}),r._p.forEach(D=>{Dp(A,s.run(()=>D({store:A,app:r._a,pinia:r,options:l})))}),b&&a&&n.hydrate&&n.hydrate(A.$state,b),f=!0,h=!0,A}/*! #__NO_SIDE_EFFECTS__ */function zg(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 f=Fce();return l=l||(f?In(Zpe,null):null),l&&lL(l),l=Xpe,l._s.has(r)||(a?Jpe(r,t,o,l):oot(r,o,l)),l._s.get(r)}return s.$id=r,s}const zk=zg("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"}}),sot={class:"footer-content"},aot={key:0,class:"pagination-stats"},lot={class:"stats-text"},uot={key:1,class:"default-footer"},cot={class:"footer-info"},dot={class:"copyright-section"},fot={class:"copyright-text"},hot={class:"project-section"},pot={class:"license-section"},vot={__name:"Footer",setup(e){const t=zk(),n=F(()=>new Date().getFullYear()),r=()=>{Pt.success("正在跳转到项目主页...")};return(o,a)=>(H(),J("div",sot,[nt(t).shouldShow?(H(),J("div",aot,[I("span",lot,Be(nt(t).statsText),1)])):(H(),J("div",uot,[I("div",cot,[I("div",dot,[O(nt(Hpe),{class:"footer-icon"}),I("span",fot,Be(n.value)+" DrPlayer",1)]),a[1]||(a[1]=I("div",{class:"separator"},"|",-1)),I("div",hot,[O(nt(Upe),{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",pot,[O(nt(wh),{class:"footer-icon"}),a[0]||(a[0]=I("span",{class:"license-text"},"hjdhnx",-1))])])]))]))}},mot=_r(vot,[["__scopeId","data-v-3b2cc39c"]]),got="/apps/drplayer/assets/logo-5LtmOeIe.png",yot=Ahe.addFromIconFontCn({src:"//at.alicdn.com/t/c/font_5032989_t69caiom2lh.js"}),bot=_e({components:{IconCaretRight:kz,IconCaretLeft:wz,IconHome:Vk,IconCalendar:Fk,Header:Jit,Footer:mot,IconFont:yot},setup(){const e=E3(),t=zk(),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(got),a=fe("the logo for this application");return Dt(()=>e.path,c=>{t.setCurrentRoute(c)},{immediate:!0}),{siderCollapsed:n,menuItems:r,logoSrc:o,logoDesc:a,onClickMenuItem:c=>{let f=r.value.find(p=>p.id===c).name,h=`You select ${c},${f}`;console.log(h)},onSiderCollapse:c=>{n.value=c,console.log("侧边栏折叠状态:",c)}}}}),_ot={class:"app-container"},Sot={class:"fixed-header"},kot={class:"logo"},wot={class:"content-wrapper"},Cot={class:"fixed-footer"};function xot(e,t,n,r,o,a){const s=Pe("Header"),l=Pe("a-image"),c=Pe("a-popover"),f=Pe("icon-font"),h=Pe("a-menu-item"),p=Pe("router-link"),m=Pe("a-menu"),g=Pe("IconCaretRight"),b=Pe("IconCaretLeft"),S=Pe("a-layout-sider"),k=Pe("Footer"),C=Pe("a-layout");return H(),J("div",_ot,[I("div",Sot,[O(s)]),O(C,{class:"layout-demo"},{default:de(()=>[O(S,{collapsible:"",breakpoint:"xl",class:"fixed-sider",onCollapse:e.onSiderCollapse},{trigger:de(({collapsed:x})=>[x?(H(),Ye(g,{key:0})):(H(),Ye(b,{key:1}))]),default:de(()=>[I("div",kot,[O(c,{title:"提示"},{content:de(()=>[I("p",null,Be(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(m,{"default-open-keys":["1"],"default-selected-keys":["1"],style:{width:"100%"},onMenuItemClick:e.onClickMenuItem},{default:de(()=>[(H(!0),J(Ut,null,mn(e.menuItems,(x,E)=>(H(),Ye(p,{key:E,to:x.route,class:"menu-item"},{default:de(()=>[(H(),Ye(h,{key:x.id},{default:de(()=>[O(f,{type:x.icon,size:16},null,8,["type"]),ze(" "+Be(x.name),1)]),_:2},1024))]),_:2},1032,["to"]))),128))]),_:1},8,["onMenuItemClick"])]),_:1},8,["onCollapse"]),I("div",{class:ae(["main-content",{"sider-collapsed":e.siderCollapsed}])},[I("div",wot,[ct(e.$slots,"default",{},void 0,!0)]),I("div",Cot,[O(k)])],2)]),_:3})])}const Eot=_r(bot,[["render",xot],["__scopeId","data-v-e7f9dcb2"]]),ZS=fe({show:!1,message:"",type:"success",duration:3e3});function tr(e,t="success",n=3e3){ZS.value={show:!0,message:e,type:t,duration:n},setTimeout(()=>{Tot()},n)}function Tot(){ZS.value.show=!1}const Aot={__name:"GlobalToast",setup(e){return(t,n)=>(H(),Ye($g,{to:"body"},[O(Is,{name:"action-toast"},{default:de(()=>[nt(ZS).show?(H(),J("div",{key:0,class:ae(["action-toast",nt(ZS).type])},Be(nt(ZS).message),3)):Re("",!0)]),_:1})]))}},Iot=_r(Aot,[["__scopeId","data-v-0de7c39c"]]),uL=zg("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()}}}}),Lot={name:"App",components:{Layout:Eot,GlobalToast:Iot},setup(){const e=uL();return gn(()=>{e.loadFromStorage()}),{}}};function Pot(e,t,n,r,o,a){const s=Pe("router-view"),l=Pe("Layout"),c=Pe("GlobalToast");return H(),J(Ut,null,[O(l,null,{default:de(()=>[O(s)]),_:1}),O(c)],64)}const Rot=_r(Lot,[["render",Pot]]);/*! ***************************************************************************** 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 Aj=function(e,t){return Aj=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])},Aj(e,t)};function On(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Aj(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Mot=(function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e})(),Dot=(function(){function e(){this.browser=new Mot,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})(),$r=new Dot;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?($r.wxa=!0,$r.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?$r.worker=!0:!$r.hasGlobalWindow||"Deno"in window?($r.node=!0,$r.svgSupported=!0):Oot(navigator.userAgent,$r);function Oot(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 rH=12,$ot="sans-serif",kg=rH+"px "+$ot,Not=20,Bot=100,Fot="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function jot(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[f]+":0",r[1-c]+":auto",o[1-f]+":auto",""].join("!important;"),e.appendChild(s),n.push(s)}return n}function cst(e,t,n){for(var r=n?"invTrans":"trans",o=t[r],a=t.srcCoords,s=[],l=[],c=!0,f=0;f<4;f++){var h=e[f].getBoundingClientRect(),p=2*f,m=h.left,g=h.top;s.push(m,g),c=c&&a&&m===a[p]&&g===a[p+1],l.push(e[f].offsetLeft,e[f].offsetTop)}return c&&o?o:(t.srcCoords=s,t[r]=n?Xne(l,s):Xne(s,l))}function ave(e){return e.nodeName.toUpperCase()==="CANVAS"}var dst=/([&<>"'])/g,fst={"&":"&","<":"<",">":">",'"':""","'":"'"};function fu(e){return e==null?"":(e+"").replace(dst,function(t,n){return fst[n]})}var hst=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,p7=[],pst=$r.browser.firefox&&+$r.browser.version.split(".")[0]<39;function Oj(e,t,n,r){return n=n||{},r?Qne(e,t,n):pst&&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):Qne(e,t,n),n}function Qne(e,t,n){if($r.domSupported&&e.getBoundingClientRect){var r=t.clientX,o=t.clientY;if(ave(e)){var a=e.getBoundingClientRect();n.zrX=r-a.left,n.zrY=o-a.top;return}else if(Dj(p7,e,r,o)){n.zrX=p7[0],n.zrY=p7[1];return}}n.zrX=n.zrY=0}function lH(e){return e||window.event}function kc(e,t,n){if(t=lH(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&&Oj(e,s,t,n)}else{Oj(e,t,t,n);var a=vst(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var l=t.button;return t.which==null&&l!==void 0&&hst.test(t.type)&&(t.which=l&1?1:l&2?3:l&4?2:0),t}function vst(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 mst(e,t,n,r){e.addEventListener(t,n,r)}function gst(e,t,n,r){e.removeEventListener(t,n,r)}var lve=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},yst=(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=Jne(r)/Jne(o);!isFinite(a)&&(a=1),t.pinchScale=a;var s=bst(r);return t.pinchX=s[0],t.pinchY=s[1],{type:"pinch",target:e[0].target,event:t}}}}};function Yy(){return[1,0,0,1,0,0]}function uH(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function _st(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 Xy(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 $j(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 cH(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],f=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*(f-r[1])+r[0],e[5]=p*(f-r[1])-h*(s-r[0])+r[1],e}function Sst(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 dH(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 Fr=(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})(),cE=Math.min,dE=Math.max,om=new Fr,sm=new Fr,am=new Fr,lm=new Fr,M_=new Fr,D_=new Fr,to=(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=cE(t.x,this.x),r=cE(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=dE(t.x+t.width,this.x+this.width)-n:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=dE(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=Yy();return $j(a,a,[-n.x,-n.y]),Sst(a,a,[r,o]),$j(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,f=t.x+t.width,h=t.y,p=t.y+t.height,m=!(ab&&(b=E,Sb&&(b=_,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}om.x=am.x=n.x,om.y=lm.y=n.y,sm.x=lm.x=n.x+n.width,sm.y=am.y=n.y+n.height,om.transform(r),lm.transform(r),sm.transform(r),am.transform(r),t.x=cE(om.x,sm.x,am.x,lm.x),t.y=cE(om.y,sm.y,am.y,lm.y);var c=dE(om.x,sm.x,am.x,lm.x),f=dE(om.y,sm.y,am.y,lm.y);t.width=c-t.x,t.height=f-t.y},e})(),uve="silent";function kst(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:wst}}function wst(){lve(this.event)}var Cst=(function(e){On(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})(Cf),O_=(function(){function e(t,n){this.x=t,this.y=n}return e})(),xst=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],m7=new to(0,0,0,0),cve=(function(e){On(t,e);function t(n,r,o,a,s){var l=e.call(this)||this;return l._hovered=new O_(0,0),l.storage=n,l.painter=r,l.painterRoot=a,l._pointerSize=s,o=o||new Cst,l.proxy=null,l.setHandlerProxy(o),l._draggingMgr=new sst(l),l}return t.prototype.setHandlerProxy=function(n){this.proxy&&this.proxy.dispose(),n&&(xt(xst,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=dve(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 O_(r,o):this.findHover(r,o),f=c.target,h=this.proxy;h.setCursor&&h.setCursor(f?f.cursor:"default"),l&&f!==l&&this.dispatchToElement(s,"mouseout",n),this.dispatchToElement(c,"mousemove",n),f&&f!==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 O_(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=kst(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 O_(n,r);if(ere(a,s,n,r,o),this._pointerSize&&!s.target){for(var l=[],c=this._pointerSize,f=c/2,h=new to(n-f,r-f,c,c),p=a.length-1;p>=0;p--){var m=a[p];m!==o&&!m.ignore&&!m.ignoreCoarsePointer&&(!m.parent||!m.parent.ignoreCoarsePointer)&&(m7.copy(m.getBoundingRect()),m.transform&&m7.applyTransform(m.transform),m7.intersect(h)&&l.push(m))}if(l.length)for(var g=4,b=Math.PI/12,S=Math.PI*2,k=0;k4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function Est(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?uve:!0}return!1}function ere(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=Est(s,n,r))&&(!t.topTarget&&(t.topTarget=s),l!==uve)){t.target=s;break}}}function dve(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var fve=32,$_=7;function Tst(e){for(var t=0;e>=fve;)t|=e&1,e>>=1;return e+t}function tre(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 Ast(e,t,n){for(n--;t>>1,o(a,e[c])<0?l=c:s=c+1;var f=r-s;switch(f){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(;f>0;)e[s+f]=e[s+f-1],f--}e[s]=a}}function g7(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 f=s;s=o-c,c=o-f}for(s++;s>>1);a(e,t[n+h])>0?s=h+1:c=h}return c}function y7(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 f=s;s=o-c,c=o-f}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 Ist(e,t){var n=$_,r,o,a=0,s=[];r=[],o=[];function l(g,b){r[a]=g,o[a]=b,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 f(){for(;a>1;){var g=a-2;g>0&&o[g-1]=$_||M>=$_);if(D)break;A<0&&(A=0),A+=2}if(n=A,n<1&&(n=1),b===1){for(C=0;C=0;C--)e[R+C]=e[A+C];e[_]=s[E];return}for(var M=n;;){var D=0,N=0,L=!1;do if(t(s[E],e[x])<0){if(e[_--]=e[x--],D++,N=0,--b===0){L=!0;break}}else if(e[_--]=s[E--],N++,D=0,--k===1){L=!0;break}while((D|N)=0;C--)e[R+C]=e[A+C];if(b===0){L=!0;break}}if(e[_--]=s[E--],--k===1){L=!0;break}if(N=k-g7(e[x],s,0,k,k-1,t),N!==0){for(_-=N,E-=N,k-=N,R=_+1,A=E+1,C=0;C=$_||N>=$_);if(L)break;M<0&&(M=0),M+=2}if(n=M,n<1&&(n=1),k===1){for(_-=b,x-=b,R=_+1,A=x+1,C=b-1;C>=0;C--)e[R+C]=e[A+C];e[_]=s[E]}else{if(k===0)throw new Error;for(A=_-(k-1),C=0;Cl&&(c=l),nre(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 Zu=1,pS=2,ky=4,rre=!1;function b7(){rre||(rre=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function ire(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var Lst=(function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=ire}return e.prototype.traverse=function(t,n){for(var r=0;r0&&(h.__clipPaths=[]),isNaN(h.z)&&(b7(),h.z=0),isNaN(h.z2)&&(b7(),h.z2=0),isNaN(h.zlevel)&&(b7(),h.zlevel=0),this._displayList[this._displayListLen++]=h}var p=t.getDecalElement&&t.getDecalElement();p&&this._updateAndAddDisplayable(p,n,r);var m=t.getTextGuideLine();m&&this._updateAndAddDisplayable(m,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})(),tI;tI=$r.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};var e2={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-e2.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?e2.bounceIn(e*2)*.5:e2.bounceOut(e*2-1)*.5+.5}},fE=Math.pow,iv=Math.sqrt,nI=1e-8,hve=1e-4,ore=iv(3),hE=1/3,Jd=Z1(),Ec=Z1(),Zy=Z1();function Yp(e){return e>-nI&&enI||e<-nI}function Oa(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 sre(e,t,n,r,o){var a=1-o;return 3*(((t-e)*a+2*(n-t)*o)*a+(r-n)*o*o)}function rI(e,t,n,r,o,a){var s=r+3*(t-n)-e,l=3*(n-t*2+e),c=3*(t-e),f=e-o,h=l*l-3*s*c,p=l*c-9*s*f,m=c*c-3*l*f,g=0;if(Yp(h)&&Yp(p))if(Yp(l))a[0]=0;else{var b=-c/l;b>=0&&b<=1&&(a[g++]=b)}else{var S=p*p-4*h*m;if(Yp(S)){var k=p/h,b=-l/s+k,C=-k/2;b>=0&&b<=1&&(a[g++]=b),C>=0&&C<=1&&(a[g++]=C)}else if(S>0){var x=iv(S),E=h*l+1.5*s*(-p+x),_=h*l+1.5*s*(-p-x);E<0?E=-fE(-E,hE):E=fE(E,hE),_<0?_=-fE(-_,hE):_=fE(_,hE);var b=(-l-(E+_))/(3*s);b>=0&&b<=1&&(a[g++]=b)}else{var A=(2*h*l-3*s*p)/(2*iv(h*h*h)),R=Math.acos(A)/3,M=iv(h),D=Math.cos(R),b=(-l-2*M*D)/(3*s),C=(-l+M*(D+ore*Math.sin(R)))/(3*s),N=(-l+M*(D-ore*Math.sin(R)))/(3*s);b>=0&&b<=1&&(a[g++]=b),C>=0&&C<=1&&(a[g++]=C),N>=0&&N<=1&&(a[g++]=N)}}return g}function vve(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(Yp(s)){if(pve(a)){var f=-l/a;f>=0&&f<=1&&(o[c++]=f)}}else{var h=a*a-4*s*l;if(Yp(h))o[0]=-a/(2*s);else if(h>0){var p=iv(h),f=(-a+p)/(2*s),m=(-a-p)/(2*s);f>=0&&f<=1&&(o[c++]=f),m>=0&&m<=1&&(o[c++]=m)}}return c}function iI(e,t,n,r,o,a){var s=(t-e)*o+e,l=(n-t)*o+t,c=(r-n)*o+n,f=(l-s)*o+s,h=(c-l)*o+l,p=(h-f)*o+f;a[0]=e,a[1]=s,a[2]=f,a[3]=p,a[4]=p,a[5]=h,a[6]=c,a[7]=r}function Pst(e,t,n,r,o,a,s,l,c,f,h){var p,m=.005,g=1/0,b,S,k,C;Jd[0]=c,Jd[1]=f;for(var x=0;x<1;x+=.05)Ec[0]=Oa(e,n,o,s,x),Ec[1]=Oa(t,r,a,l,x),k=qy(Jd,Ec),k=0&&k=0&&f<=1&&(o[c++]=f)}}else{var h=s*s-4*a*l;if(Yp(h)){var f=-s/(2*a);f>=0&&f<=1&&(o[c++]=f)}else if(h>0){var p=iv(h),f=(-s+p)/(2*a),m=(-s-p)/(2*a);f>=0&&f<=1&&(o[c++]=f),m>=0&&m<=1&&(o[c++]=m)}}return c}function mve(e,t,n){var r=e+n-2*t;return r===0?.5:(e-t)/r}function oI(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 Dst(e,t,n,r,o,a,s,l,c){var f,h=.005,p=1/0;Jd[0]=s,Jd[1]=l;for(var m=0;m<1;m+=.05){Ec[0]=hu(e,n,o,m),Ec[1]=hu(t,r,a,m);var g=qy(Jd,Ec);g=0&&g=1?1:rI(0,r,a,1,c,l)&&Oa(0,o,s,1,l[0])}}}var Nst=(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||Su,this.ondestroy=t.ondestroy||Su,this.onrestart=t.onrestart||Su,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=Yr(t)?t:e2[t]||gve(t)},e})(),yve=(function(){function e(t){this.value=t}return e})(),Bst=(function(){function e(){this._len=0}return e.prototype.insert=function(t){var n=new yve(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})(),Wk=(function(){function e(t){this._list=new Bst,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 yve(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})(),lre={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 ov(e){return e=Math.round(e),e<0?0:e>255?255:e}function Nj(e){return e<0?0:e>1?1:e}function _7(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?ov(parseFloat(t)/100*255):ov(parseInt(t,10))}function t2(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Nj(parseFloat(t)/100):Nj(parseFloat(t))}function S7(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 pE(e,t,n){return e+(t-e)*n}function Sc(e,t,n,r,o){return e[0]=t,e[1]=n,e[2]=r,e[3]=o,e}function Bj(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var bve=new Wk(20),vE=null;function X0(e,t){vE&&Bj(vE,t),vE=bve.put(e,vE||t.slice())}function Ch(e,t){if(e){t=t||[];var n=bve.get(e);if(n)return Bj(t,n);e=e+"";var r=e.replace(/ /g,"").toLowerCase();if(r in lre)return Bj(t,lre[r]),X0(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)){Sc(t,0,0,0,1);return}return Sc(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),X0(e,t),t}else if(o===7||o===9){var a=parseInt(r.slice(1,7),16);if(!(a>=0&&a<=16777215)){Sc(t,0,0,0,1);return}return Sc(t,(a&16711680)>>16,(a&65280)>>8,a&255,o===9?parseInt(r.slice(7),16)/255:1),X0(e,t),t}return}var s=r.indexOf("("),l=r.indexOf(")");if(s!==-1&&l+1===o){var c=r.substr(0,s),f=r.substr(s+1,l-(s+1)).split(","),h=1;switch(c){case"rgba":if(f.length!==4)return f.length===3?Sc(t,+f[0],+f[1],+f[2],1):Sc(t,0,0,0,1);h=t2(f.pop());case"rgb":if(f.length>=3)return Sc(t,_7(f[0]),_7(f[1]),_7(f[2]),f.length===3?h:t2(f[3])),X0(e,t),t;Sc(t,0,0,0,1);return;case"hsla":if(f.length!==4){Sc(t,0,0,0,1);return}return f[3]=t2(f[3]),ure(f,t),X0(e,t),t;case"hsl":if(f.length!==3){Sc(t,0,0,0,1);return}return ure(f,t),X0(e,t),t;default:return}}Sc(t,0,0,0,1)}}function ure(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=t2(e[1]),o=t2(e[2]),a=o<=.5?o*(r+1):o+r-o*r,s=o*2-a;return t=t||[],Sc(t,ov(S7(s,a,n+1/3)*255),ov(S7(s,a,n)*255),ov(S7(s,a,n-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function cre(e,t){var n=Ch(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 hL(n,n.length===4?"rgba":"rgb")}}function Fst(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=Ch(t[o]),l=Ch(t[a]),c=r-o,f=hL([ov(pE(s[0],l[0],c)),ov(pE(s[1],l[1],c)),ov(pE(s[2],l[2],c)),Nj(pE(s[3],l[3],c))],"rgba");return n?{color:f,leftIndex:o,rightIndex:a,value:r}:f}}function hL(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 sI(e,t){var n=Ch(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}var dre=new Wk(100);function fre(e){if(vr(e)){var t=dre.get(e);return t||(t=cre(e,-.1),dre.put(e,t)),t}else if(dL(e)){var n=vn({},e);return n.colorStops=br(e.colorStops,function(r){return{offset:r.offset,color:cre(r.color,-.1)}}),n}return e}function jst(e){return e.type==="linear"}function Ust(e){return e.type==="radial"}(function(){return $r.hasGlobalWindow&&Yr(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 Fj=Array.prototype.slice;function ah(e,t,n){return(t-e)*n+e}function k7(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=pre,c=n;if(xu(n)){var f=Wst(n);l=f,(f===1&&!So(n[0])||f===2&&!So(n[0][0]))&&(s=!0)}else if(So(n)&&!eI(n))l=gE;else if(vr(n))if(!isNaN(+n))l=gE;else{var h=Ch(n);h&&(c=h,l=vS)}else if(dL(n)){var p=vn({},c);p.colorStops=br(n.colorStops,function(g){return{offset:g.offset,color:Ch(g.color)}}),jst(n)?l=jj:Ust(n)&&(l=Uj),c=p}a===0?this.valType=l:(l!==this.valType||l===pre)&&(s=!0),this.discrete=this.discrete||s;var m={time:t,value:c,rawValue:n,percent:0};return r&&(m.easing=r,m.easingFunc=Yr(r)?r:e2[r]||gve(r)),o.push(m),m},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=yE(o),f=vre(o),h=0;h=0&&!(s[h].percent<=n);h--);h=m(h,l-2)}else{for(h=p;hn);h++);h=m(h-1,l-2)}b=s[h+1],g=s[h]}if(g&&b){this._lastFr=h,this._lastFrP=n;var k=b.percent-g.percent,C=k===0?1:m((n-g.percent)/k,1);b.easingFunc&&(C=b.easingFunc(C));var x=r?this._additiveValue:f?N_:t[c];if((yE(a)||f)&&!x&&(x=this._additiveValue=[]),this.discrete)t[c]=C<1?g.rawValue:b.rawValue;else if(yE(a))a===j4?k7(x,g[o],b[o],C):Vst(x,g[o],b[o],C);else if(vre(a)){var E=g[o],_=b[o],A=a===jj;t[c]={type:A?"linear":"radial",x:ah(E.x,_.x,C),y:ah(E.y,_.y,C),colorStops:br(E.colorStops,function(M,D){var N=_.colorStops[D];return{offset:ah(M.offset,N.offset,C),color:F4(k7([],M.color,N.color,C))}}),global:_.global},A?(t[c].x2=ah(E.x2,_.x2,C),t[c].y2=ah(E.y2,_.y2,C)):t[c].r=ah(E.r,_.r,C)}else if(f)k7(x,g[o],b[o],C),r||(t[c]=F4(x));else{var R=ah(g[o],b[o],C);r?this._additiveValue=R:t[c]=R}r&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var n=this.valType,r=this.propName,o=this._additiveValue;n===gE?t[r]=t[r]+o:n===vS?(Ch(t[r],N_),mE(N_,N_,o,1),t[r]=F4(N_)):n===j4?mE(t[r],t[r],o,1):n===_ve&&hre(t[r],t[r],o,1)},e})(),fH=(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){sH("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,Ko(n),r)},e.prototype.whenWithKeys=function(t,n,r,o){for(var a=this._tracks,s=0;s0&&c.addKeyframe(0,B4(f),o),this._trackKeys.push(l)}c.addKeyframe(t,B4(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 Py(){return new Date().getTime()}var Kst=(function(e){On(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=Py()-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&&(tI(r),!n._paused&&n.update())}tI(r)},t.prototype.start=function(){this._running||(this._time=Py(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Py(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Py()-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 fH(n,r.loop);return this.addAnimator(o),o},t})(Cf),qst=300,w7=$r.domSupported,C7=(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=br(e,function(o){var a=o.replace("mouse","pointer");return n.hasOwnProperty(a)?a:o});return{mouse:e,touch:t,pointer:r}})(),mre={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},gre=!1;function Vj(e){var t=e.pointerType;return t==="pen"||t==="touch"}function Yst(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 x7(e){e&&(e.zrByTouch=!0)}function Xst(e,t){return kc(e.dom,new Zst(e,t),!0)}function Sve(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 Zst=(function(){function e(t,n){this.stopPropagation=Su,this.stopImmediatePropagation=Su,this.preventDefault=Su,this.type=n.type,this.target=this.currentTarget=t.dom,this.pointerType=n.pointerType,this.clientX=n.clientX,this.clientY=n.clientY}return e})(),ad={mousedown:function(e){e=kc(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=kc(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=kc(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=kc(this.dom,e);var t=e.toElement||e.relatedTarget;Sve(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){gre=!0,e=kc(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){gre||(e=kc(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=kc(this.dom,e),x7(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),ad.mousemove.call(this,e),ad.mousedown.call(this,e)},touchmove:function(e){e=kc(this.dom,e),x7(e),this.handler.processGesture(e,"change"),ad.mousemove.call(this,e)},touchend:function(e){e=kc(this.dom,e),x7(e),this.handler.processGesture(e,"end"),ad.mouseup.call(this,e),+new Date-+this.__lastTouchMoment_re||e<-_re}var cm=[],Z0=[],T7=Yy(),A7=Math.abs,hH=(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 um(this.rotation)||um(this.x)||um(this.y)||um(this.scaleX-1)||um(this.scaleY-1)||um(this.skewX)||um(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,n=this.needLocalTransform(),r=this.transform;if(!(n||t)){r&&(bre(r),this.invTransform=null);return}r=r||Yy(),n?this.getLocalTransform(r):bre(r),t&&(n?Xy(r,t,r):_st(r,t)),this.transform=r,this._resolveGlobalScaleRatio(r)},e.prototype._resolveGlobalScaleRatio=function(t){var n=this.globalScaleRatio;if(n!=null&&n!==1){this.getGlobalScale(cm);var r=cm[0]<0?-1:1,o=cm[1]<0?-1:1,a=((cm[0]-r)*n+r)/cm[0]||0,s=((cm[1]-o)*n+o)/cm[1]||0;t[0]*=a,t[1]*=a,t[2]*=s,t[3]*=s}this.invTransform=this.invTransform||Yy(),dH(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||Yy(),Xy(Z0,t.invTransform,n),n=Z0);var r=this.originX,o=this.originY;(r||o)&&(T7[4]=r,T7[5]=o,Xy(Z0,n,T7),Z0[4]-=r,Z0[5]-=o,n=Z0),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&&Dc(r,r,o),r},e.prototype.transformCoordToGlobal=function(t,n){var r=[t,n],o=this.transform;return o&&Dc(r,r,o),r},e.prototype.getLineScale=function(){var t=this.transform;return t&&A7(t[0]-1)>1e-10&&A7(t[3]-1)>1e-10?Math.sqrt(A7(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){nat(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,f=t.rotation||0,h=t.x,p=t.y,m=t.skewX?Math.tan(t.skewX):0,g=t.skewY?Math.tan(-t.skewY):0;if(r||o||l||c){var b=r+l,S=o+c;n[4]=-b*a-m*S*s,n[5]=-S*s-g*b*a}else n[4]=n[5]=0;return n[0]=a,n[3]=s,n[1]=g*a,n[2]=m*s,f&&cH(n,n,f),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})(),Y2=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function nat(e,t){for(var n=0;n=0?parseFloat(e)/100*t:parseFloat(e):e}function lI(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,f=n.y,h="left",p="top";if(r instanceof Array)c+=mv(r[0],n.width),f+=mv(r[1],n.height),h=null,p=null;else switch(r){case"left":c-=o,f+=l,h="right",p="middle";break;case"right":c+=o+s,f+=l,p="middle";break;case"top":c+=s/2,f-=o,h="center",p="bottom";break;case"bottom":c+=s/2,f+=a+o,h="center";break;case"inside":c+=s/2,f+=l,h="center",p="middle";break;case"insideLeft":c+=o,f+=l,p="middle";break;case"insideRight":c+=s-o,f+=l,h="right",p="middle";break;case"insideTop":c+=s/2,f+=o,h="center";break;case"insideBottom":c+=s/2,f+=a-o,h="center",p="bottom";break;case"insideTopLeft":c+=o,f+=o;break;case"insideTopRight":c+=s-o,f+=o,h="right";break;case"insideBottomLeft":c+=o,f+=a-o,p="bottom";break;case"insideBottomRight":c+=s-o,f+=a-o,h="right",p="bottom";break}return e=e||{},e.x=c,e.y=f,e.align=h,e.verticalAlign=p,e}var I7="__zr_normal__",L7=Y2.concat(["ignore"]),rat=vv(Y2,function(e,t){return e[t]=!0,e},{ignore:!1}),Q0={},iat=new to(0,0,0,0),pL=(function(){function e(t){this.id=nve(),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 f=!1;if(a.copyTransform(n),r.position!=null){var h=iat;r.layoutRect?h.copy(r.layoutRect):h.copy(this.getBoundingRect()),o||h.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Q0,r,h):lI(Q0,r,h),a.x=Q0.x,a.y=Q0.y,s=Q0.align,l=Q0.verticalAlign;var p=r.origin;if(p&&r.rotation!=null){var m=void 0,g=void 0;p==="center"?(m=h.width*.5,g=h.height*.5):(m=mv(p[0],h.width),g=mv(p[1],h.height)),f=!0,a.originX=-a.x+m+(o?0:h.x),a.originY=-a.y+g+(o?0:h.y)}}r.rotation!=null&&(a.rotation=r.rotation);var b=r.offset;b&&(a.x+=b[0],a.y+=b[1],f||(a.originX=-b[0],a.originY=-b[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|=Zu,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()?Gj:Wj},e.prototype.getOutsideStroke=function(t){var n=this.__zr&&this.__zr.getBackgroundColor(),r=typeof n=="string"&&Ch(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,hL(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||{},vn(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(Cr(t))for(var r=t,o=Ko(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(I7,!1,t)},e.prototype.useState=function(t,n,r,o){var a=t===I7,s=this.hasState();if(!(!s&&a)){var l=this.currentStates,c=this.stateTransition;if(!(lo(l,t)>=0&&(n||l.length===1))){var f;if(this.stateProxy&&!a&&(f=this.stateProxy(t)),f||(f=this.states&&this.states[t]),!f&&!a){sH("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(f);var h=!!(f&&f.hoverLayer||o);h&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,f,this._normalState,n,!r&&!this.__inHover&&c&&c.duration>0,c);var p=this._textContent,m=this._textGuide;return p&&p.useState(t,n,r,h),m&&m.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&=~Zu),f}}},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,b);var S=this._textContent,k=this._textGuide;S&&S.useStates(t,n,m),k&&k.useStates(t,n,m),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!m&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Zu)}},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=lo(o,t),s=lo(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(b,S){n.during(S)});for(var m=0;m0||o.force&&!s.length){var D=void 0,N=void 0,L=void 0;if(l){N={},m&&(D={});for(var _=0;_=0&&(o.splice(a,0,n),this._doAdd(n))}return this},t.prototype.replace=function(n,r){var o=lo(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=lo(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*f+s}function Go(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 vr(e)?hat(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):e==null?NaN:+e}function Gs(e,t,n){return t==null&&(t=10),t=Math.min(Math.max(0,t),xve),e=(+e).toFixed(t),n?e:+e}function gh(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 pat(e)}function pat(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 vat(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 mat(e,t){var n=vv(e,function(g,b){return g+(isNaN(b)?0:b)},0);if(n===0)return[];for(var r=Math.pow(10,t),o=br(e,function(g){return(isNaN(g)?0:g)/n*r*100}),a=r*100,s=br(o,function(g){return Math.floor(g)}),l=vv(s,function(g,b){return g+b},0),c=br(o,function(g,b){return g-s[b]});lf&&(f=c[p],h=p);++s[h],c[h]=0,++l}return br(s,function(g){return g/r})}function gat(e,t){var n=Math.max(gh(e),gh(t)),r=e+t;return n>xve?r:Gs(r,n)}function Eve(e){var t=Math.PI*2;return(e%t+t)%t}function uI(e){return e>-Cre&&e=10&&t++,t}function Tve(e,t){var n=mH(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 cI(e){var t=parseFloat(e);return t==e&&(t!==0||!vr(e)||e.indexOf("x")<=0)?t:NaN}function _at(e){return!isNaN(cI(e))}function Ave(){return Math.round(Math.random()*9)}function Ive(e,t){return t===0?e:Ive(t,e%t)}function xre(e,t){return e==null?t:t==null?e:e*t/Ive(e,t)}function pu(e){throw new Error(e)}function Ere(e,t,n){return(t-e)*n+e}var Lve="series\0",Sat="\0_ec_\0";function Hl(e){return e instanceof Array?e:e==null?[]:[e]}function qj(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&&lo(a,c)<0)){var f=r.getShallow(c,t);f!=null&&(s[e[l][0]]=f)}}return s}}var Hat=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],Wat=Z2(Hat),Gat=(function(){function e(){}return e.prototype.getAreaStyle=function(t,n){return Wat(this,t,n)},e})(),Yj=new Wk(50);function Kat(e){if(typeof e=="string"){var t=Yj.get(e);return t&&t.image}else return e}function Ove(e,t,n,r,o){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!n)return t;var a=Yj.get(e),s={hostEl:n,cb:r,cbPayload:o};return a?(t=a.image,!mL(t)&&a.pending.push(s)):(t=X1.loadImage(e,Are,Are),t.__zrImageSrc=e,Yj.put(e,t.__cachedImgObj={image:t,pending:[s]})),t}else return e;else return t}function Are(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t=s;c++)l-=s;var f=tc(n,t);return f>l&&(n="",f=0),l=e-f,o.ellipsis=n,o.ellipsisWidth=f,o.contentWidth=l,o.containerWidth=e,o}function Nve(e,t,n){var r=n.containerWidth,o=n.font,a=n.contentWidth;if(!r){e.textLine="",e.isTruncated=!1;return}var s=tc(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?Yat(t,a,n.ascCharWidth,n.cnCharWidth):s>0?Math.floor(t.length*a/s):0;t=t.substr(0,c),s=tc(t,o)}t===""&&(t=n.placeholder),e.textLine=t,e.isTruncated=!0}function Yat(e,t,n,r){for(var o=0,a=0,s=e.length;ab&&f){var S=Math.floor(b/l);h=h||m.length>S,m=m.slice(0,S)}if(e&&a&&p!=null)for(var k=$ve(p,o,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),C={},x=0;xl&&O7(n,e.substring(l,f),t,s),O7(n,c[2],t,s,c[1]),l=D7.lastIndex}lo){var W=n.lines.length;R>0?(E.tokens=E.tokens.slice(0,R),C(E,A,_),n.lines=n.lines.slice(0,x+1)):n.lines=n.lines.slice(0,x),n.isTruncated=n.isTruncated||n.lines.length0&&b+r.accumWidth>r.width&&(h=t.split(` `),f=!0),r.accumWidth=b}else{var S=Bve(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 tlt=vv(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function nlt(e){return elt(e)?!!tlt[e]:!0}function Bve(e,t,n,r,o){for(var a=[],s=[],l="",c="",f=0,h=0,p=0;pn:o+h+g>n){h?(l||c)&&(b?(l||(l=c,c="",f=0,h=f),a.push(l),s.push(h-f),c+=m,f+=g,l="",h=f):(c&&(l+=c,c="",f=0),a.push(l),s.push(h),l=m,h=g)):b?(a.push(c),s.push(f),c=m,f=g):(a.push(m),s.push(g));continue}h+=g,b?(c+=m,f+=g):(c&&(l+=c,c="",f=0),l+=m)}return!a.length&&!l&&(l=e,c="",f=0),c&&(l+=c),l&&(a.push(l),s.push(h)),a.length===1&&(h+=o),{accumWidth:h,lines:a,linesWidths:s}}var Xj="__zr_style_"+Math.round(Math.random()*10),sg={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},gL={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};sg[Xj]=!0;var Lre=["z","z2","invisible"],rlt=["invisible"],qk=(function(e){On(t,e);function t(n){return e.call(this,n)||this}return t.prototype._init=function(n){for(var r=Ko(n),o=0;o1e-4){l[0]=e-n,l[1]=t-r,c[0]=e+n,c[1]=t+r;return}if(bE[0]=F7(o)*n+e,bE[1]=B7(o)*r+t,_E[0]=F7(a)*n+e,_E[1]=B7(a)*r+t,f(l,bE,_E),h(c,bE,_E),o=o%fm,o<0&&(o=o+fm),a=a%fm,a<0&&(a=a+fm),o>a&&!s?a+=fm:oo&&(SE[0]=F7(g)*n+e,SE[1]=B7(g)*r+t,f(l,SE,l),h(c,SE,c))}var Qi={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},hm=[],pm=[],jd=[],bp=[],Ud=[],Vd=[],j7=Math.min,U7=Math.max,vm=Math.cos,mm=Math.sin,Jf=Math.abs,Zj=Math.PI,Op=Zj*2,V7=typeof Float32Array<"u",B_=[];function z7(e){var t=Math.round(e/Zj*1e8)/1e8;return t%2*Zj}function Fve(e,t){var n=z7(e[0]);n<0&&(n+=Op);var r=n-e[0],o=e[1];o+=r,!t&&o-n>=Op?o=n+Op:t&&n-o>=Op?o=n-Op:!t&&n>o?o=n+(Op-z7(n-o)):t&&n0&&(this._ux=Jf(r/aI/t)||0,this._uy=Jf(r/aI/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(Qi.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=Jf(t-this._xi),o=Jf(n-this._yi),a=r>this._ux||o>this._uy;if(this.addData(Qi.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(Qi.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(Qi.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(),B_[0]=o,B_[1]=a,Fve(B_,s),o=B_[0],a=B_[1];var l=a-o;return this.addData(Qi.A,t,n,r,r,o,l,0,s?0:1),this._ctx&&this._ctx.arc(t,n,r,o,a,s),this._xi=vm(a)*r+t,this._yi=mm(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(Qi.R,t,n,r,o),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(Qi.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)&&V7&&(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(){jd[0]=jd[1]=Ud[0]=Ud[1]=Number.MAX_VALUE,bp[0]=bp[1]=Vd[0]=Vd[1]=-Number.MAX_VALUE;var t=this.data,n=0,r=0,o=0,a=0,s;for(s=0;sr||Jf(E)>o||m===n-1)&&(S=Math.sqrt(x*x+E*E),a=k,s=C);break}case Qi.C:{var _=t[m++],A=t[m++],k=t[m++],C=t[m++],R=t[m++],M=t[m++];S=Rst(a,s,_,A,k,C,R,M,10),a=R,s=M;break}case Qi.Q:{var _=t[m++],A=t[m++],k=t[m++],C=t[m++];S=Ost(a,s,_,A,k,C,10),a=k,s=C;break}case Qi.A:var D=t[m++],N=t[m++],L=t[m++],B=t[m++],U=t[m++],W=t[m++],V=W+U;m+=1,b&&(l=vm(U)*L+D,c=mm(U)*B+N),S=U7(L,B)*j7(Op,Math.abs(W)),a=vm(V)*L+D,s=mm(V)*B+N;break;case Qi.R:{l=a=t[m++],c=s=t[m++];var z=t[m++],Y=t[m++];S=z*2+Y*2;break}case Qi.Z:{var x=l-a,E=c-s;S=Math.sqrt(x*x+E*E),a=l,s=c;break}}S>=0&&(f[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,f,h,p,m,g=n<1,b,S,k=0,C=0,x,E=0,_,A;if(!(g&&(this._pathSegLen||this._calculateLength(),b=this._pathSegLen,S=this._pathLen,x=n*S,!x)))e:for(var R=0;R0&&(t.lineTo(_,A),E=0),M){case Qi.M:l=f=r[R++],c=h=r[R++],t.moveTo(f,h);break;case Qi.L:{p=r[R++],m=r[R++];var N=Jf(p-f),L=Jf(m-h);if(N>o||L>a){if(g){var B=b[C++];if(k+B>x){var U=(x-k)/B;t.lineTo(f*(1-U)+p*U,h*(1-U)+m*U);break e}k+=B}t.lineTo(p,m),f=p,h=m,E=0}else{var W=N*N+L*L;W>E&&(_=p,A=m,E=W)}break}case Qi.C:{var V=r[R++],z=r[R++],Y=r[R++],oe=r[R++],ne=r[R++],X=r[R++];if(g){var B=b[C++];if(k+B>x){var U=(x-k)/B;iI(f,V,Y,ne,U,hm),iI(h,z,oe,X,U,pm),t.bezierCurveTo(hm[1],pm[1],hm[2],pm[2],hm[3],pm[3]);break e}k+=B}t.bezierCurveTo(V,z,Y,oe,ne,X),f=ne,h=X;break}case Qi.Q:{var V=r[R++],z=r[R++],Y=r[R++],oe=r[R++];if(g){var B=b[C++];if(k+B>x){var U=(x-k)/B;oI(f,V,Y,U,hm),oI(h,z,oe,U,pm),t.quadraticCurveTo(hm[1],pm[1],hm[2],pm[2]);break e}k+=B}t.quadraticCurveTo(V,z,Y,oe),f=Y,h=oe;break}case Qi.A:var K=r[R++],re=r[R++],ee=r[R++],le=r[R++],Q=r[R++],ye=r[R++],be=r[R++],ve=!r[R++],Ce=ee>le?ee:le,De=Jf(ee-le)>.001,We=Q+ye,Xe=!1;if(g){var B=b[C++];k+B>x&&(We=Q+ye*(x-k)/B,Xe=!0),k+=B}if(De&&t.ellipse?t.ellipse(K,re,ee,le,be,Q,We,ve):t.arc(K,re,Ce,Q,We,ve),Xe)break e;D&&(l=vm(Q)*ee+K,c=mm(Q)*le+re),f=vm(We)*ee+K,h=mm(We)*le+re;break;case Qi.R:l=f=r[R],c=h=r[R+1],p=r[R++],m=r[R++];var He=r[R++],ke=r[R++];if(g){var B=b[C++];if(k+B>x){var Se=x-k;t.moveTo(p,m),t.lineTo(p+j7(Se,He),m),Se-=He,Se>0&&t.lineTo(p+He,m+j7(Se,ke)),Se-=ke,Se>0&&t.lineTo(p+U7(He-Se,0),m+ke),Se-=He,Se>0&&t.lineTo(p,m+U7(ke-Se,0));break e}k+=B}t.rect(p,m,He,ke);break;case Qi.Z:if(g){var B=b[C++];if(k+B>x){var U=(x-k)/B;t.lineTo(f*(1-U)+l*U,h*(1-U)+c*U);break e}k+=B}t.closePath(),f=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=Qi,e.initDefaultProps=(function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0})(),e})();function J0(e,t,n,r,o,a,s){if(o===0)return!1;var l=o,c=0,f=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&&f>n+p&&f>o+p&&f>s+p||ft+f&&c>r+f&&c>a+f||ce+f&&l>n+f&&l>o+f||ln||h+fo&&(o+=F_);var m=Math.atan2(c,l);return m<0&&(m+=F_),m>=r&&m<=o||m+F_>=r&&m+F_<=o}function gm(e,t,n,r,o,a){if(a>t&&a>r||ao?l:0}var _p=xg.CMD,ym=Math.PI*2,dlt=1e-4;function flt(e,t){return Math.abs(e-t)t&&f>r&&f>a&&f>l||f1&&hlt(),g=Oa(t,r,a,l,Cc[0]),m>1&&(b=Oa(t,r,a,l,Cc[1]))),m===2?kt&&l>r&&l>a||l=0&&f<=1){for(var h=0,p=hu(t,r,a,f),m=0;mn||l<-n)return 0;var c=Math.sqrt(n*n-l*l);Dl[0]=-c,Dl[1]=c;var f=Math.abs(r-o);if(f<1e-4)return 0;if(f>=ym-1e-4){r=0,o=ym;var h=a?1:-1;return s>=Dl[0]+e&&s<=Dl[1]+e?h:0}if(r>o){var p=r;r=o,o=p}r<0&&(r+=ym,o+=ym);for(var m=0,g=0;g<2;g++){var b=Dl[g];if(b+e>s){var S=Math.atan2(l,b),h=a?1:-1;S<0&&(S=ym+S),(S>=r&&S<=o||S+ym>=r&&S+ym<=o)&&(S>Math.PI/2&&S1&&(n||(l+=gm(c,f,h,p,r,o))),k&&(c=a[b],f=a[b+1],h=c,p=f),S){case _p.M:h=a[b++],p=a[b++],c=h,f=p;break;case _p.L:if(n){if(J0(c,f,a[b],a[b+1],t,r,o))return!0}else l+=gm(c,f,a[b],a[b+1],r,o)||0;c=a[b++],f=a[b++];break;case _p.C:if(n){if(llt(c,f,a[b++],a[b++],a[b++],a[b++],a[b],a[b+1],t,r,o))return!0}else l+=plt(c,f,a[b++],a[b++],a[b++],a[b++],a[b],a[b+1],r,o)||0;c=a[b++],f=a[b++];break;case _p.Q:if(n){if(ult(c,f,a[b++],a[b++],a[b],a[b+1],t,r,o))return!0}else l+=vlt(c,f,a[b++],a[b++],a[b],a[b+1],r,o)||0;c=a[b++],f=a[b++];break;case _p.A:var C=a[b++],x=a[b++],E=a[b++],_=a[b++],A=a[b++],R=a[b++];b+=1;var M=!!(1-a[b++]);m=Math.cos(A)*E+C,g=Math.sin(A)*_+x,k?(h=m,p=g):l+=gm(c,f,m,g,r,o);var D=(r-C)*_/E+C;if(n){if(clt(C,x,_,A,A+R,M,t,D,o))return!0}else l+=mlt(C,x,_,A,A+R,M,D,o);c=Math.cos(A+R)*E+C,f=Math.sin(A+R)*_+x;break;case _p.R:h=c=a[b++],p=f=a[b++];var N=a[b++],L=a[b++];if(m=h+N,g=p+L,n){if(J0(h,p,m,p,t,r,o)||J0(m,p,m,g,t,r,o)||J0(m,g,h,g,t,r,o)||J0(h,g,h,p,t,r,o))return!0}else l+=gm(m,p,m,g,r,o),l+=gm(h,g,h,p,r,o);break;case _p.Z:if(n){if(J0(c,f,h,p,t,r,o))return!0}else l+=gm(c,f,h,p,r,o);c=h,f=p;break}}return!n&&!flt(f,p)&&(l+=gm(c,f,h,p,r,o)||0),l!==0}function glt(e,t,n){return jve(e,0,!1,t,n)}function ylt(e,t,n,r){return jve(e,t,!0,n,r)}var Uve=no({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},sg),blt={style:no({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},gL.style)},H7=Y2.concat(["invisible","culling","z","z2","zlevel","parent"]),so=(function(e){On(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?Wj:r>.2?tat:Gj}else if(n)return Gj}return Wj},t.prototype.getInsideTextStroke=function(n){var r=this.style.fill;if(vr(r)){var o=this.__zr,a=!!(o&&o.isDarkMode()),s=sI(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&ky)&&(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,f=r.lineWidth;if(!this.hasFill()){var h=this.strokeContainThreshold;f=Math.max(f,h??4)}c>1e-10&&(l.width+=f/c,l.height+=f/c,l.x-=f/c/2,l.y-=f/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,f=s.strokeNoScale?this.getLineScale():1;if(f>1e-10&&(this.hasFill()||(c=Math.max(c,this.strokeContainThreshold)),ylt(l,c/f,n,r)))return!0}if(this.hasFill())return glt(l,n,r)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=ky,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:vn(o,n),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&ky)},t.prototype.createStyle=function(n){return fL(Uve,n)},t.prototype._innerSaveToNormal=function(n){e.prototype._innerSaveToNormal.call(this,n);var r=this._normalState;n.shape&&!r.shape&&(r.shape=vn({},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),f;if(r&&r.shape?s?a?f=r.shape:(f=vn({},o.shape),vn(f,r.shape)):(f=vn({},a?this.shape:o.shape),vn(f,r.shape)):c&&(f=o.shape),f)if(s){this.shape=vn({},this.shape);for(var h={},p=Ko(f),m=0;m0},t.prototype.hasFill=function(){var n=this.style,r=n.fill;return r!=null&&r!=="none"},t.prototype.createStyle=function(n){return fL(_lt,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=pH(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})(qk);dI.prototype.type="tspan";var Slt=no({x:0,y:0},sg),klt={style:no({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},gL.style)};function wlt(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var Iv=(function(e){On(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(n){return fL(Slt,n)},t.prototype._getSize=function(n){var r=this.style,o=r[n];if(o!=null)return o;var a=wlt(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 klt},t.prototype.getBoundingRect=function(){var n=this.style;return this._rect||(this._rect=new to(n.x||0,n.y||0,this.getWidth(),this.getHeight())),this._rect},t})(qk);Iv.prototype.type="image";function Clt(e,t){var n=t.x,r=t.y,o=t.width,a=t.height,s=t.r,l,c,f,h;o<0&&(n=n+o,o=-o),a<0&&(r=r+a,a=-a),typeof s=="number"?l=c=f=h=s:s instanceof Array?s.length===1?l=c=f=h=s[0]:s.length===2?(l=f=s[0],c=h=s[1]):s.length===3?(l=s[0],c=h=s[1],f=s[2]):(l=s[0],c=s[1],f=s[2],h=s[3]):l=c=f=h=0;var p;l+c>o&&(p=l+c,l*=o/p,c*=o/p),f+h>o&&(p=f+h,f*=o/p,h*=o/p),c+f>a&&(p=c+f,c*=a/p,f*=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-f),f!==0&&e.arc(n+o-f,r+a-f,f,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 Ry=Math.round;function Vve(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&&(Ry(r*2)===Ry(o*2)&&(e.x1=e.x2=Um(r,l,!0)),Ry(a*2)===Ry(s*2)&&(e.y1=e.y2=Um(a,l,!0))),e}}function zve(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=Um(r,l,!0),e.y=Um(o,l,!0),e.width=Math.max(Um(r+a,l,!1)-e.x,a===0?0:1),e.height=Math.max(Um(o+s,l,!1)-e.y,s===0?0:1)),e}}function Um(e,t,n){if(!t)return e;var r=Ry(e*2);return(r+Ry(t))%2===0?r/2:(r+(n?1:-1))/2}var xlt=(function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e})(),Elt={},Ks=(function(e){On(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new xlt},t.prototype.buildPath=function(n,r){var o,a,s,l;if(this.subPixelOptimize){var c=zve(Elt,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?Clt(n,r):n.rect(o,a,s,l)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t})(so);Ks.prototype.type="rect";var Ore={fill:"#000"},$re=2,Tlt={style:no({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},gL.style)},Wa=(function(e){On(t,e);function t(n){var r=e.call(this)||this;return r.type="text",r._children=[],r._defaultStyle=Ore,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,U=n.width!=null&&(n.overflow==="truncate"||n.overflow==="break"||n.overflow==="breakAll"),W=s.calculatedLineHeight,V=0;V=0&&(V=R[W],V.align==="right");)this._placeToken(V,n,D,C,U,"right",E),N-=V.width,U-=V.width,W--;for(B+=(a-(B-k)-(x-U)-N)/2;L<=W;)V=R[L],this._placeToken(V,n,D,C,B+V.width/2,"center",E),B+=V.width,L++;C+=D}},t.prototype._placeToken=function(n,r,o,a,s,l,c){var f=r.rich[n.styleName]||{};f.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 m=!n.isLineHolder&&W7(f);m&&this._renderBackground(f,r,l==="right"?s-n.width:l==="center"?s-n.width/2:s,p-n.height/2,n.width,n.height);var g=!!f.backgroundColor,b=n.textPadding;b&&(s=Vre(s,l,b),p-=n.height/2-b[0]-n.innerHeight/2);var S=this._getOrCreateChild(dI),k=S.createStyle();S.useStyle(k);var C=this._defaultStyle,x=!1,E=0,_=Ure("fill"in f?f.fill:"fill"in r?r.fill:(x=!0,C.fill)),A=jre("stroke"in f?f.stroke:"stroke"in r?r.stroke:!g&&!c&&(!C.autoStroke||x)?(E=$re,C.stroke):null),R=f.textShadowBlur>0||r.textShadowBlur>0;k.text=n.text,k.x=s,k.y=p,R&&(k.shadowBlur=f.textShadowBlur||r.textShadowBlur||0,k.shadowColor=f.textShadowColor||r.textShadowColor||"transparent",k.shadowOffsetX=f.textShadowOffsetX||r.textShadowOffsetX||0,k.shadowOffsetY=f.textShadowOffsetY||r.textShadowOffsetY||0),k.textAlign=l,k.textBaseline="middle",k.font=n.font||kg,k.opacity=QS(f.opacity,r.opacity,1),Bre(k,f),A&&(k.lineWidth=QS(f.lineWidth,r.lineWidth,E),k.lineDash=ci(f.lineDash,r.lineDash),k.lineDashOffset=r.lineDashOffset||0,k.stroke=A),_&&(k.fill=_);var M=n.contentWidth,D=n.contentHeight;S.setBoundingRect(new to(mS(k.x,M,k.textAlign),wy(k.y,D,k.textBaseline),M,D))},t.prototype._renderBackground=function(n,r,o,a,s,l){var c=n.backgroundColor,f=n.borderWidth,h=n.borderColor,p=c&&c.image,m=c&&!p,g=n.borderRadius,b=this,S,k;if(m||n.lineHeight||f&&h){S=this._getOrCreateChild(Ks),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(m){var x=S.style;x.fill=c||null,x.fillOpacity=ci(n.fillOpacity,1)}else if(p){k=this._getOrCreateChild(Iv),k.onload=function(){b.dirtyStyle()};var E=k.style;E.image=c.image,E.x=o,E.y=a,E.width=s,E.height=l}if(f&&h){var x=S.style;x.lineWidth=f,x.stroke=h,x.strokeOpacity=ci(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=QS(n.opacity,r.opacity,1)},t.makeFont=function(n){var r="";return Plt(n)&&(r=[n.fontStyle,n.fontWeight,Llt(n.fontSize),n.fontFamily||"sans-serif"].join(" ")),r&&of(r)||n.textFont||n.font},t})(qk),Alt={left:!0,right:1,center:1},Ilt={top:1,bottom:1,middle:1},Nre=["fontStyle","fontWeight","fontSize","fontFamily"];function Llt(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?rH+"px":e+"px"}function Bre(e,t){for(var n=0;n=0,a=!1;if(e instanceof so){var s=Hve(e),l=o&&s.selectFill||s.normalFill,c=o&&s.selectStroke||s.normalStroke;if(ey(l)||ey(c)){r=r||{};var f=r.style||{};f.fill==="inherit"?(a=!0,r=vn({},r),f=vn({},f),f.fill=l):!ey(f.fill)&&ey(l)?(a=!0,r=vn({},r),f=vn({},f),f.fill=fre(l)):!ey(f.stroke)&&ey(c)&&(a||(r=vn({},r),f=vn({},f)),f.stroke=fre(c)),r.style=f}}if(r&&r.z2==null){a||(r=vn({},r));var h=e.z2EmphasisLift;r.z2=e.z2+(h??Dlt)}return r}function jlt(e,t,n){if(n&&n.z2==null){n=vn({},n);var r=e.z2SelectLift;n.z2=e.z2+(r??Olt)}return n}function Ult(e,t,n){var r=lo(e.currentStates,t)>=0,o=e.style.opacity,a=r?null:Blt(e,["opacity"],t,{opacity:1});n=n||{};var s=n.style||{};return s.opacity==null&&(n=vn({},n),s=vn({opacity:r?o:a.opacity*.1},s),n.style=s),n}function G7(e,t){var n=this.states[e];if(this.style){if(e==="emphasis")return Flt(this,e,t,n);if(e==="blur")return Ult(this,e,n);if(e==="select")return jlt(this,e,n)}return n}function Vlt(e){e.stateProxy=G7;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=G7),n&&(n.stateProxy=G7)}function qre(e,t){!Zve(e,t)&&!e.__highByOuter&&Hh(e,Wve)}function Yre(e,t){!Zve(e,t)&&!e.__highByOuter&&Hh(e,Gve)}function hI(e,t){e.__highByOuter|=1<<(t||0),Hh(e,Wve)}function pI(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&Hh(e,Gve)}function zlt(e){Hh(e,kH)}function qve(e){Hh(e,Kve)}function Yve(e){Hh(e,$lt)}function Xve(e){Hh(e,Nlt)}function Zve(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function Qve(e){var t=e.getModel(),n=[],r=[];t.eachComponent(function(o,a){var s=_H(a),l=o==="series",c=l?e.getViewOfSeriesModel(a):e.getViewOfComponentModel(a);!l&&r.push(c),s.isBlured&&(c.group.traverse(function(f){Kve(f)}),l&&n.push(a)),s.isBlured=!1}),xt(r,function(o){o&&o.toggleBlurSeries&&o.toggleBlurSeries(n,!1,t)})}function Qj(e,t,n,r){var o=r.getModel();n=n||"coordinateSystem";function a(f,h){for(var p=0;p0){var l={dataIndex:s,seriesIndex:n.seriesIndex};a!=null&&(l.dataType=a),t.push(l)}})}),t}function eU(e,t,n){Jve(e,!0),Hh(e,Vlt),Xlt(e,t,n)}function Ylt(e){Jve(e,!1)}function Q2(e,t,n,r){r?Ylt(e):eU(e,t,n)}function Xlt(e,t,n){var r=Vi(e);t!=null?(r.focus=t,r.blurScope=n):r.focus&&(r.focus=null)}var Zre=["emphasis","blur","select"],Zlt={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function vI(e,t,n,r){n=n||"itemStyle";for(var o=0;o1&&(s*=K7(b),l*=K7(b));var S=(o===a?-1:1)*K7((s*s*(l*l)-s*s*(g*g)-l*l*(m*m))/(s*s*(g*g)+l*l*(m*m)))||0,k=S*s*g/l,C=S*-l*m/s,x=(e+n)/2+CE(p)*k-wE(p)*C,E=(t+r)/2+wE(p)*k+CE(p)*C,_=tie([1,0],[(m-k)/s,(g-C)/l]),A=[(m-k)/s,(g-C)/l],R=[(-1*m-k)/s,(-1*g-C)/l],M=tie(A,R);if(rU(A,R)<=-1&&(M=j_),rU(A,R)>=1&&(M=0),M<0){var D=Math.round(M/j_*1e6)/1e6;M=j_*2+D%2*j_}h.addData(f,x,E,s,l,_,M,p,a)}var rut=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,iut=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function out(e){var t=new xg;if(!e)return t;var n=0,r=0,o=n,a=r,s,l=xg.CMD,c=e.match(rut);if(!c)return t;for(var f=0;fV*V+z*z&&(D=L,N=B),{cx:D,cy:N,x0:-h,y0:-p,x1:D*(o/A-1),y1:N*(o/A-1)}}function hut(e){var t;if(Xn(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 put(e,t){var n,r=gS(t.r,0),o=gS(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,f=t.endAngle;if(!(isNaN(c)||isNaN(f))){var h=t.cx,p=t.cy,m=!!t.clockwise,g=rie(f-c),b=g>q7&&g%q7;if(b>od&&(g=b),!(r>od))e.moveTo(h,p);else if(g>q7-od)e.moveTo(h+r*ny(c),p+r*bm(c)),e.arc(h,p,r,c,f,!m),o>od&&(e.moveTo(h+o*ny(f),p+o*bm(f)),e.arc(h,p,o,f,c,m));else{var S=void 0,k=void 0,C=void 0,x=void 0,E=void 0,_=void 0,A=void 0,R=void 0,M=void 0,D=void 0,N=void 0,L=void 0,B=void 0,U=void 0,W=void 0,V=void 0,z=r*ny(c),Y=r*bm(c),oe=o*ny(f),ne=o*bm(f),X=g>od;if(X){var K=t.cornerRadius;K&&(n=hut(K),S=n[0],k=n[1],C=n[2],x=n[3]);var re=rie(r-o)/2;if(E=zd(re,C),_=zd(re,x),A=zd(re,S),R=zd(re,k),N=M=gS(E,_),L=D=gS(A,R),(M>od||D>od)&&(B=r*ny(f),U=r*bm(f),W=o*ny(c),V=o*bm(c),god){var De=zd(C,N),We=zd(x,N),Xe=xE(W,V,z,Y,r,De,m),He=xE(B,U,oe,ne,r,We,m);e.moveTo(h+Xe.cx+Xe.x0,p+Xe.cy+Xe.y0),N0&&e.arc(h+Xe.cx,p+Xe.cy,De,el(Xe.y0,Xe.x0),el(Xe.y1,Xe.x1),!m),e.arc(h,p,r,el(Xe.cy+Xe.y1,Xe.cx+Xe.x1),el(He.cy+He.y1,He.cx+He.x1),!m),We>0&&e.arc(h+He.cx,p+He.cy,We,el(He.y1,He.x1),el(He.y0,He.x0),!m))}else e.moveTo(h+z,p+Y),e.arc(h,p,r,c,f,!m);if(!(o>od)||!X)e.lineTo(h+oe,p+ne);else if(L>od){var De=zd(S,L),We=zd(k,L),Xe=xE(oe,ne,B,U,o,-We,m),He=xE(z,Y,W,V,o,-De,m);e.lineTo(h+Xe.cx+Xe.x0,p+Xe.cy+Xe.y0),L0&&e.arc(h+Xe.cx,p+Xe.cy,We,el(Xe.y0,Xe.x0),el(Xe.y1,Xe.x1),!m),e.arc(h,p,o,el(Xe.cy+Xe.y1,Xe.cx+Xe.x1),el(He.cy+He.y1,He.cx+He.x1),m),De>0&&e.arc(h+He.cx,p+He.cy,De,el(He.y1,He.x1),el(He.y0,He.x0),!m))}else e.lineTo(h+oe,p+ne),e.arc(h,p,o,f,c,m)}e.closePath()}}}var vut=(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})(),Lv=(function(e){On(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new vut},t.prototype.buildPath=function(n,r){put(n,r)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t})(so);Lv.prototype.type="sector";var mut=(function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e})(),xH=(function(e){On(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new mut},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})(so);xH.prototype.type="ring";function gut(e,t,n,r){var o=[],a=[],s=[],l=[],c,f,h,p;if(r){h=[1/0,1/0],p=[-1/0,-1/0];for(var m=0,g=e.length;m=2){if(r){var a=gut(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],f=a[l*2+1],h=o[(l+1)%s];e.bezierCurveTo(c[0],c[1],f[0],f[1],h[0],h[1])}}else{e.moveTo(o[0][0],o[0][1]);for(var l=1,p=o.length;lSm[1]){if(l=!1,a)return l;var h=Math.abs(Sm[0]-_m[1]),p=Math.abs(_m[0]-Sm[1]);Math.min(h,p)>o.len()&&(h0){var p=h.duration,m=h.delay,g=h.easing,b={duration:p,delay:m||0,easing:g,done:a,force:!!a||!!s,setToFinal:!f,scope:e,during:s};l?t.animateFrom(n,b):t.animateTo(n,b)}else t.stopAnimation(),!l&&t.attr(n),s&&s(1),a&&a()}function Kl(e,t,n,r,o,a){AH("update",e,t,n,r,o,a)}function Oc(e,t,n,r,o,a){AH("enter",e,t,n,r,o,a)}function s2(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 sie(e){return!e.isGroup}function Fut(e){return e.shape!=null}function cme(e,t,n){if(!e||!t)return;function r(s){var l={};return s.traverse(function(c){sie(c)&&c.anid&&(l[c.anid]=c)}),l}function o(s){var l={x:s.x,y:s.y,rotation:s.rotation};return Fut(s)&&(l.shape=vn({},s.shape)),l}var a=r(e);t.traverse(function(s){if(sie(s)&&s.anid){var l=a[s.anid];if(l){var c=o(s);s.attr(o(l)),Kl(s,c,n,Vi(s).dataIndex)}}})}function jut(e,t){return br(e,function(n){var r=n[0];r=bI(r,t.x),r=_I(r,t.x+t.width);var o=n[1];return o=bI(o,t.y),o=_I(o,t.y+t.height),[r,o]})}function Uut(e,t){var n=bI(e.x,t.x),r=_I(e.x+e.width,t.x+t.width),o=bI(e.y,t.y),a=_I(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 RH(e,t,n){var r=vn({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),no(o,n),new Iv(r)):LH(e.replace("path://",""),r,n,"center")}function Vut(e,t,n,r,o){for(var a=0,s=o[o.length-1];a1)return!1;var k=Y7(g,b,h,p)/m;return!(k<0||k>1)}function Y7(e,t,n,r){return e*r-n*t}function zut(e){return e<=1e-6&&e>=-1e-6}function wL(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,o=vr(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&&xt(Ko(c),function(h){wg(l,h)||(l[h]=c[h],l.$vars.push(h))});var f=Vi(e.el);f.componentMainType=a,f.componentIndex=s,f.tooltipConfig={name:r,option:no({content:r,encodeHTMLContent:!0,formatterParams:l},o)}}function aie(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function CL(e,t){if(e)if(Xn(e))for(var n=0;n=0&&l.push(c)}),l}}function pme(e,t){return eo(eo({},e,!0),t,!0)}const oct={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:". "}}}},sct={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 SI="ZH",MH="EN",Qy=MH,W4={},DH={},vme=$r.domSupported?(function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Qy).toUpperCase();return e.indexOf(SI)>-1?SI:Qy})():Qy;function mme(e,t){e=e.toUpperCase(),DH[e]=new vs(t),W4[e]=t}function act(e){if(vr(e)){var t=W4[e.toUpperCase()]||{};return e===SI||e===MH?Oi(t):eo(Oi(t),Oi(W4[Qy]),!1)}else return eo(Oi(e),Oi(W4[Qy]),!1)}function lct(e){return DH[e]}function uct(){return DH[Qy]}mme(MH,oct);mme(SI,sct);var OH=1e3,$H=OH*60,a2=$H*60,Lc=a2*24,pie=Lc*365,yS={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}"},AE="{yyyy}-{MM}-{dd}",vie={year:"{yyyy}",month:"{yyyy}-{MM}",day:AE,hour:AE+" "+yS.hour,minute:AE+" "+yS.minute,second:AE+" "+yS.second,millisecond:yS.none},Q7=["year","month","day","hour","minute","second","millisecond"],gme=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Sp(e,t){return e+="","0000".substr(0,t-e.length)+e}function Jy(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 cct(e){return e===Jy(e)}function dct(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function AL(e,t,n,r){var o=$h(e),a=o[NH(n)](),s=o[e1(n)]()+1,l=Math.floor((s-1)/3)+1,c=o[IL(n)](),f=o["get"+(n?"UTC":"")+"Day"](),h=o[ek(n)](),p=(h-1)%12+1,m=o[LL(n)](),g=o[PL(n)](),b=o[RL(n)](),S=h>=12?"pm":"am",k=S.toUpperCase(),C=r instanceof vs?r:lct(r||vme)||uct(),x=C.getModel("time"),E=x.get("month"),_=x.get("monthAbbr"),A=x.get("dayOfWeek"),R=x.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,S+"").replace(/{A}/g,k+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,Sp(a%100+"",2)).replace(/{Q}/g,l+"").replace(/{MMMM}/g,E[s-1]).replace(/{MMM}/g,_[s-1]).replace(/{MM}/g,Sp(s,2)).replace(/{M}/g,s+"").replace(/{dd}/g,Sp(c,2)).replace(/{d}/g,c+"").replace(/{eeee}/g,A[f]).replace(/{ee}/g,R[f]).replace(/{e}/g,f+"").replace(/{HH}/g,Sp(h,2)).replace(/{H}/g,h+"").replace(/{hh}/g,Sp(p+"",2)).replace(/{h}/g,p+"").replace(/{mm}/g,Sp(m,2)).replace(/{m}/g,m+"").replace(/{ss}/g,Sp(g,2)).replace(/{s}/g,g+"").replace(/{SSS}/g,Sp(b,3)).replace(/{S}/g,b+"")}function fct(e,t,n,r,o){var a=null;if(vr(n))a=n;else if(Yr(n))a=n(e.value,t,{level:e.level});else{var s=vn({},yS);if(e.level>0)for(var l=0;l=0;--l)if(c[f]){a=c[f];break}a=a||s.none}if(Xn(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 AL(new Date(e.value),a,o,r)}function yme(e,t){var n=$h(e),r=n[e1(t)]()+1,o=n[IL(t)](),a=n[ek(t)](),s=n[LL(t)](),l=n[PL(t)](),c=n[RL(t)](),f=c===0,h=f&&l===0,p=h&&s===0,m=p&&a===0,g=m&&o===1,b=g&&r===1;return b?"year":g?"month":m?"day":p?"hour":h?"minute":f?"second":"millisecond"}function mie(e,t,n){var r=So(e)?$h(e):e;switch(t=t||yme(e,n),t){case"year":return r[NH(n)]();case"half-year":return r[e1(n)]()>=6?1:0;case"quarter":return Math.floor((r[e1(n)]()+1)/4);case"month":return r[e1(n)]();case"day":return r[IL(n)]();case"half-day":return r[ek(n)]()/24;case"hour":return r[ek(n)]();case"minute":return r[LL(n)]();case"second":return r[PL(n)]();case"millisecond":return r[RL(n)]()}}function NH(e){return e?"getUTCFullYear":"getFullYear"}function e1(e){return e?"getUTCMonth":"getMonth"}function IL(e){return e?"getUTCDate":"getDate"}function ek(e){return e?"getUTCHours":"getHours"}function LL(e){return e?"getUTCMinutes":"getMinutes"}function PL(e){return e?"getUTCSeconds":"getSeconds"}function RL(e){return e?"getUTCMilliseconds":"getMilliseconds"}function hct(e){return e?"setUTCFullYear":"setFullYear"}function bme(e){return e?"setUTCMonth":"setMonth"}function _me(e){return e?"setUTCDate":"setDate"}function Sme(e){return e?"setUTCHours":"setHours"}function kme(e){return e?"setUTCMinutes":"setMinutes"}function wme(e){return e?"setUTCSeconds":"setSeconds"}function Cme(e){return e?"setUTCMilliseconds":"setMilliseconds"}function xme(e){if(!_at(e))return vr(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function Eme(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 ML=rve;function oU(e,t,n){var r="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function o(h){return h&&of(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?$h(e):e;if(isNaN(+c)){if(l)return"-"}else return AL(c,r,n)}if(t==="ordinal")return Ij(e)?o(e):So(e)&&a(e)?e+"":"-";var f=cI(e);return a(f)?xme(f):Ij(e)?o(e):typeof e=="boolean"?e+"":"-"}var gie=["a","b","c","d","e","f","g"],J7=function(e,t){return"{"+e+(t??"")+"}"};function Tme(e,t,n){Xn(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 Eg(e,t){return t=t||"transparent",vr(e)?e:Cr(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function yie(e,t){if(t==="_blank"||t==="blank"){var n=window.open();n.opener=null,n.location.href=e}else window.open(e,t)}var G4=xt,vct=["left","right","top","bottom","width","height"],IE=[["width","left","right"],["height","top","bottom"]];function BH(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,f){var h=c.getBoundingRect(),p=t.childAt(f+1),m=p&&p.getBoundingRect(),g,b;if(e==="horizontal"){var S=h.width+(m?-m.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+(m?-m.y+h.y:0);b=s+k,b>o||c.newline?(a+=l+n,s=0,b=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=b+n)})}var l2=BH;xs(BH,"vertical");xs(BH,"horizontal");function k1(e,t,n){n=ML(n||0);var r=t.width,o=t.height,a=Go(e.left,r),s=Go(e.top,o),l=Go(e.right,r),c=Go(e.bottom,o),f=Go(e.width,r),h=Go(e.height,o),p=n[2]+n[0],m=n[1]+n[3],g=e.aspect;switch(isNaN(f)&&(f=r-l-m-a),isNaN(h)&&(h=o-c-p-s),g!=null&&(isNaN(f)&&isNaN(h)&&(g>r/o?f=r*.8:h=o*.8),isNaN(f)&&(f=g*h),isNaN(h)&&(h=f/g)),isNaN(a)&&(a=r-l-f-m),isNaN(s)&&(s=o-c-h-p),e.left||e.right){case"center":a=r/2-f/2-n[3];break;case"right":a=r-f-m;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(f)&&(f=r-m-a-(l||0)),isNaN(h)&&(h=o-p-s-(c||0));var b=new to(a+n[3],s+n[0],f,h);return b.margin=n,b}function tk(e){var t=e.layoutMode||e.constructor.layoutMode;return Cr(t)?t:t?{type:t}:null}function w1(e,t,n){var r=n&&n.ignoreSize;!Xn(r)&&(r=[r,r]);var o=s(IE[0],0),a=s(IE[1],1);f(IE[0],e,o),f(IE[1],e,a);function s(h,p){var m={},g=0,b={},S=0,k=2;if(G4(h,function(E){b[E]=e[E]}),G4(h,function(E){l(t,E)&&(m[E]=b[E]=t[E]),c(m,E)&&g++,c(b,E)&&S++}),r[p])return c(t,h[1])?b[h[2]]=null:c(t,h[2])&&(b[h[1]]=null),b;if(S===k||!g)return b;if(g>=k)return m;for(var C=0;C=0;c--)l=eo(l,o[c],!0);r.defaultOption=l}return r.defaultOption},t.prototype.getReferringComponents=function(n,r){var o=n+"Index",a=n+"Id";return Kk(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})(vs);Dve(io,vs);vL(io);rct(io);ict(io,yct);function yct(e){var t=[];return xt(io.getClassesByMainType(e),function(n){t=t.concat(n.dependencies||n.prototype.dependencies||[])}),t=br(t,function(n){return sf(n).main}),e!=="dataset"&&lo(t,"dataset")<=0&&t.unshift("dataset"),t}var Ame="";typeof navigator<"u"&&(Ame=navigator.platform||"");var ry="rgba(0, 0, 0, 0.2)";const bct={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:ry,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:ry,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:ry,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:ry,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:ry,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:ry,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Ame.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 Ime=mi(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Wc="original",Tu="arrayRows",Ld="objectRows",xf="keyedColumns",sv="typedArray",Lme="unknown",xh="column",Q1="row",La={Must:1,Might:2,Not:3},Pme=Ls();function _ct(e){Pme(e).datasetMap=mi()}function Sct(e,t,n){var r={},o=FH(t);if(!o||!e)return r;var a=[],s=[],l=t.ecModel,c=Pme(l).datasetMap,f=o.uid+"_"+n.seriesLayoutBy,h,p;e=e.slice(),xt(e,function(S,k){var C=Cr(S)?S:e[k]={name:S};C.type==="ordinal"&&h==null&&(h=k,p=b(C)),r[C.name]=[]});var m=c.get(f)||c.set(f,{categoryWayDim:p,valueWayDim:0});xt(e,function(S,k){var C=S.name,x=b(S);if(h==null){var E=m.valueWayDim;g(r[C],E,x),g(s,E,x),m.valueWayDim+=x}else if(h===k)g(r[C],0,x),g(a,0,x);else{var E=m.categoryWayDim;g(r[C],E,x),g(s,E,x),m.categoryWayDim+=x}});function g(S,k,C){for(var x=0;xt)return e[r];return e[n-1]}function Tct(e,t,n,r,o,a,s){a=a||e;var l=t(a),c=l.paletteIdx||0,f=l.paletteNameMap=l.paletteNameMap||{};if(f.hasOwnProperty(o))return f[o];var h=s==null||!r?n:Ect(r,s);if(h=h||n,!(!h||!h.length)){var p=h[c];return o&&(f[o]=p),l.paletteIdx=(c+1)%h.length,p}}function Act(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var LE,U_,_ie,Sie="\0_ec_inner",Ict=1,UH=(function(e){On(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 vs(a),this._locale=new vs(s),this._optionManager=l},t.prototype.setOption=function(n,r,o){var a=Cie(r);this._optionManager.setOption(n,o,a),this._resetOption(null,a)},t.prototype.resetOption=function(n,r){return this._resetOption(n,Cie(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"?_ie(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&&xt(c,function(f){o=!0,this._mergeOption(f,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=mi(),f=r&&r.replaceMergeMainTypeMap;_ct(this),xt(n,function(p,m){p!=null&&(io.hasClass(m)?m&&(l.push(m),c.set(m,!0)):o[m]=o[m]==null?Oi(p):eo(o[m],p,!0))}),f&&f.each(function(p,m){io.hasClass(m)&&!c.get(m)&&(l.push(m),c.set(m,!0))}),io.topologicalTravel(l,io.getAllClassMainTypes(),h,this);function h(p){var m=xct(this,p,Hl(n[p])),g=a.get(p),b=g?f&&f.get(p)?"replaceMerge":"normalMerge":"replaceAll",S=wat(g,m,b);Lat(S,p,io),o[p]=null,a.set(p,null),s.set(p,0);var k=[],C=[],x=0,E;xt(S,function(_,A){var R=_.existing,M=_.newOption;if(!M)R&&(R.mergeOption({},this),R.optionUpdated({},!1));else{var D=p==="series",N=io.getClass(p,_.keyInfo.subType,!D);if(!N)return;if(p==="tooltip"){if(E)return;E=!0}if(R&&R.constructor===N)R.name=_.keyInfo.name,R.mergeOption(M,this),R.optionUpdated(M,!1);else{var L=vn({componentIndex:A},_.keyInfo);R=new N(M,this,this,L),vn(R,L),_.brandNew&&(R.__requireNewView=!0),R.init(M,this,this),R.optionUpdated(null,!0)}}R?(k.push(R.option),C.push(R),x++):(k.push(void 0),C.push(void 0))},this),o[p]=k,a.set(p,C),s.set(p,x),p==="series"&&LE(this)}this._seriesIndices||LE(this)},t.prototype.getOption=function(){var n=Oi(this.option);return xt(n,function(r,o){if(io.hasClass(o)){for(var a=Hl(r),s=a.length,l=!1,c=s-1;c>=0;c--)a[c]&&!X2(a[c])?l=!0:(a[c]=null,!l&&s--);a.length=s,n[o]=a}}),delete n[Sie],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 Bct(e,t){return e.join(",")===t.join(",")}var ed=xt,nk=Cr,xie=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function t9(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=xie.length;n=0;k--){var C=e[k];if(l||(b=C.data.rawIndexOf(C.stackedByDimension,g)),b>=0){var x=C.data.getByRawIndex(C.stackResultDimension,b);if(c==="all"||c==="positive"&&x>0||c==="negative"&&x<0||c==="samesign"&&m>=0&&x>0||c==="samesign"&&m<=0&&x<0){m=gat(m,x),S=x;break}}}return r[0]=m,r[1]=S,r})})}var OL=(function(){function e(t){this.data=t.data||(t.sourceFormat===xf?{}:[]),this.sourceFormat=t.sourceFormat||Lme,this.seriesLayoutBy=t.seriesLayoutBy||xh,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]=b,g[1]=S}},o=function(){return this._data?this._data.length/this._dimSize:0};Rie=(t={},t[Tu+"_"+xh]={pure:!0,appendData:a},t[Tu+"_"+Q1]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Ld]={pure:!0,appendData:a},t[xf]={pure:!0,appendData:function(s){var l=this._data;xt(s,function(c,f){for(var h=l[f]||(l[f]=[]),p=0;p<(c||[]).length;p++)h.push(c[p])})}},t[Wc]={appendData:a},t[sv]={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 C1(this.getData(n),t)},e.prototype.formatTooltip=function(t,n,r){},e})();function $ie(e){var t,n;return Cr(e)?e.type&&(n=e):t=e,{text:t,frag:n}}function u2(e){return new ndt(e)}var ndt=(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),f=t&&t.modDataCount||0;(s!==c||l!==f)&&(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=f;var m=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,b=Math.min(m!=null?this._dueIndex+m: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})(),idt=(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 K4(t,n)},e})();function odt(e,t){var n=new idt,r=e.data,o=n.sourceFormat=e.sourceFormat,a=e.startIndex,s="";e.seriesLayoutBy!==xh&&pu(s);var l=[],c={},f=e.dimensionsDefine;if(f)xt(f,function(S,k){var C=S.name,x={index:k,name:C,displayName:S.displayName};if(l.push(x),C!=null){var E="";wg(c,C)&&pu(E),c[C]=x}});else for(var h=0;h65535?hdt:pdt}function oy(){return[1/0,-1/0]}function vdt(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function Fie(e,t,n,r,o){var a=Gme[n||"float"];if(o){var s=e[t],l=s&&s.length;if(l!==r){for(var c=new a(r),f=0;fk[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,f=br(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,f=0,h=0,p=this.count();h=0&&c<0)&&(l=b,c=g,f=0),g===c&&(s[f++]=h))}return s.length=f,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<=m||isNaN(x))&&(c[f++]=S),S++}b=!0}else if(a===2){for(var k=g[o[0]],E=g[o[1]],_=t[o[1]][0],A=t[o[1]][1],C=0;C=p&&x<=m||isNaN(x))&&(R>=_&&R<=A||isNaN(R))&&(c[f++]=S),S++}b=!0}}if(!b)if(a===1)for(var C=0;C=p&&x<=m||isNaN(x))&&(c[f++]=M)}else for(var C=0;Ct[L][1])&&(D=!1)}D&&(c[f++]=n.getRawIndex(C))}return fC[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),f=this.getRawIndex(0),h,p,m,g=new(iy(this._rawCount))(Math.min((Math.ceil(s/c)+2)*2,s));g[l++]=f;for(var b=1;bh&&(h=p,m=_)}B>0&&Bl&&(S=l-h);for(var k=0;kb&&(b=x,g=h+k)}var E=this.getRawIndex(p),_=this.getRawIndex(g);ph-b&&(c=h-b,l.length=c);for(var S=0;Sp[1]&&(p[1]=C),m[g++]=x}return a._count=g,a._indices=m,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 K4(n[a],this._dimensions[a])}i9={arrayRows:t,objectRows:function(n,r,o,a){return K4(n[r],this._dimensions[a])},keyedColumns:t,original:function(n,r,o,a){var s=n&&(n.value==null?n:n.value);return K4(s instanceof Array?s[a]:s,this._dimensions[a])},typedArray:function(n,r,o,a){return n[a]}}})(),e})(),mdt=(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(PE(t)){var s=t,l=void 0,c=void 0,f=void 0;if(r){var h=n[0];h.prepareSource(),f=h.getSource(),l=f.data,c=f.sourceFormat,a=[h._getVersionSign()]}else l=s.get("data",!0),c=Eu(l)?sv:Wc,a=[];var p=this._getSourceMetaRawOption()||{},m=f&&f.metaRawOption||{},g=ci(p.seriesLayoutBy,m.seriesLayoutBy)||null,b=ci(p.sourceHeader,m.sourceHeader),S=ci(p.dimensions,m.dimensions),k=g!==m.seriesLayoutBy||!!b!=!!m.sourceHeader||S;o=k?[sU(l,{seriesLayoutBy:g,sourceHeader:b,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=[sU(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&&jie(a)}var s,l=[],c=[];return xt(t,function(f){f.prepareSource();var h=f.getSource(o||0),p="";o!=null&&!h&&jie(p),l.push(h),c.push(f._getVersionSign())}),r?s=ddt(r,l,{datasetIndex:n.componentIndex}):o!=null&&(s=[qct(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 xt(e.blocks,function(o){var a=Xme(o);a>=t&&(t=a+ +(r&&(!a||lU(o)&&!o.noHeader)))}),t}return 0}function _dt(e,t,n,r){var o=t.noHeader,a=kdt(Xme(t)),s=[],l=t.blocks||[];Oh(!l||Xn(l)),l=l||[];var c=e.orderMode;if(t.sortBlocks&&c){l=l.slice();var f={valueAsc:"asc",valueDesc:"desc"};if(wg(f,c)){var h=new rdt(f[c],null);l.sort(function(S,k){return h.evaluate(S.sortParam,k.sortParam)})}else c==="seriesDesc"&&l.reverse()}xt(l,function(S,k){var C=t.valueFormatter,x=Yme(S)(C?vn(vn({},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):uU(r,s.join(""),o?n:a.html);if(o)return p;var m=oU(t.header,"ordinal",e.useUTC),g=qme(r,e.renderMode).nameStyle,b=Kme(r);return e.renderMode==="richText"?Zme(e,m,g)+a.richText+p:uU(r,'
'+fu(m)+"
"+p,n)}function Sdt(e,t,n,r){var o=e.renderMode,a=t.noName,s=t.noValue,l=!t.markerType,c=t.name,f=e.useUTC,h=t.valueFormatter||e.valueFormatter||function(_){return _=Xn(_)?_:[_],br(_,function(A,R){return oU(A,Xn(g)?g[R]:g,f)})};if(!(a&&s)){var p=l?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",o),m=a?"":oU(c,"ordinal",f),g=t.valueType,b=s?[]:h(t.value,t.dataIndex),S=!l||!a,k=!l&&a,C=qme(r,o),x=C.nameStyle,E=C.valueStyle;return o==="richText"?(l?"":p)+(a?"":Zme(e,m,x))+(s?"":xdt(e,b,S,k,E)):uU(r,(l?"":p)+(a?"":wdt(m,!l,x))+(s?"":Cdt(b,S,k,E)),n)}}function Uie(e,t,n,r,o,a){if(e){var s=Yme(e),l={useUTC:o,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter};return s(l,e,0,a)}}function kdt(e){return{html:ydt[e],richText:bdt[e]}}function uU(e,t,n){var r='
',o="margin: "+n+"px 0 0",a=Kme(e);return'
'+t+r+"
"}function wdt(e,t,n){var r=t?"margin-left:2px":"";return''+fu(e)+""}function Cdt(e,t,n,r){var o=n?"10px":"20px",a=t?"float:right;margin-left:"+o:"";return e=Xn(e)?e:[e],''+br(e,function(s){return fu(s)}).join("  ")+""}function Zme(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function xdt(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(Xn(t)?t.join(" "):t,a)}function Edt(e,t){var n=e.getData().getItemVisual(t,"style"),r=n[e.visualDrawType];return Eg(r)}function Qme(e,t){var n=e.get("padding");return n??(t==="richText"?[8,10]:10)}var o9=(function(){function e(){this.richTextStyles={},this._nextStyleNameId=Ave()}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=pct({color:n,type:t,renderMode:r,markerId:o});return vr(a)?a:(this.richTextStyles[o]=a.style,a.content)},e.prototype.wrapRichTextStyle=function(t,n){var r={};Xn(n)?xt(n,function(a){return vn(r,a)}):vn(r,n);var o=this._generateStyleName();return this.richTextStyles[o]=r,"{"+o+"|"+t+"}"},e})();function Tdt(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=Xn(l),f=Edt(t,n),h,p,m,g;if(s>1||c&&!s){var b=Adt(l,t,n,a,f);h=b.inlineValues,p=b.inlineValueTypes,m=b.blocks,g=b.inlineValues[0]}else if(s){var S=o.getDimensionInfo(a[0]);g=h=C1(o,n,a[0]),p=S.type}else g=h=c?l[0]:l;var k=gH(t),C=k&&t.name||"",x=o.getName(n),E=r?C:x;return rk("section",{header:C,noHeader:r||!k,sortParam:g,blocks:[rk("nameValue",{markerType:"item",markerColor:f,name:E,noName:!of(E),value:h,valueType:p,dataIndex:n})].concat(m||[])})}function Adt(e,t,n,r,o){var a=t.getData(),s=vv(e,function(p,m,g){var b=a.getDimensionInfo(g);return p=p||b&&b.tooltip!==!1&&b.displayName!=null},!1),l=[],c=[],f=[];r.length?xt(r,function(p){h(C1(a,n,p),p)}):xt(e,h);function h(p,m){var g=a.getDimensionInfo(m);!g||g.otherDims.tooltip===!1||(s?f.push(rk("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:f}}var kp=Ls();function RE(e,t){return e.getName(t)||e.getId(t)}var Idt="__universalTransitionEnabled",xd=(function(e){On(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=u2({count:Pdt,reset:Rdt}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(n,o);var a=kp(this).sourceManager=new mdt(this);a.prepareSource();var s=this.getInitialData(n,o);zie(s,this),this.dataTask.context.data=s,kp(this).dataBeforeProcessed=s,Vie(this),this._initSelectedMapFromData(s)},t.prototype.mergeDefaultAndTheme=function(n,r){var o=tk(this),a=o?DL(n):{},s=this.subType;io.hasClass(s)&&(s+="Series"),eo(n,r.getTheme().get(this.subType)),eo(n,this.getDefaultOption()),qj(n,"label",["show"]),this.fillDataTextStyle(n.data),o&&w1(n,a,o)},t.prototype.mergeOption=function(n,r){n=eo(this.option,n,!0),this.fillDataTextStyle(n.data);var o=tk(this);o&&w1(this.option,n,o);var a=kp(this).sourceManager;a.dirty(),a.prepareSource();var s=this.getInitialData(n,r);zie(s,this),this.dataTask.dirty(),this.dataTask.context.data=s,kp(this).dataBeforeProcessed=s,Vie(this),this._initSelectedMapFromData(s)},t.prototype.fillDataTextStyle=function(n){if(n&&!Eu(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=jH.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[RE(a,n)])&&!a.getItemModel(n).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[Idt])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"){Cr(s.selectedMap)||(s.selectedMap={});for(var f=s.selectedMap,h=0;h0&&this._innerSelect(n,r)}},t.registerClass=function(n){return io.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})(io);wf(xd,tdt);wf(xd,jH);Dve(xd,io);function Vie(e){var t=e.name;gH(e)||(e.name=Ldt(e)||t)}function Ldt(e){var t=e.getRawData(),n=t.mapDimensionsAll("seriesName"),r=[];return xt(n,function(o){var a=t.getDimensionInfo(o);a.displayName&&r.push(a.displayName)}),r.join(" ")}function Pdt(e){return e.model.getRawData().count()}function Rdt(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),Mdt}function Mdt(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function zie(e,t){xt(Qot(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,xs(Ddt,t))})}function Ddt(e,t){var n=cU(e);return n&&n.setOutputEnd((t||this).count()),t}function cU(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 Ed=(function(){function e(){this.group=new Ha,this.uid=TL("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})();bH(Ed);vL(Ed);function GH(){var e=Ls();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 Jme=Ls(),Odt=GH(),$c=(function(){function e(){this.group=new Ha,this.uid=TL("viewChart"),this.renderTask=u2({plan:$dt,reset:Ndt}),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&&Wie(a,o,"emphasis")},e.prototype.downplay=function(t,n,r,o){var a=t.getData(o&&o.dataType);a&&Wie(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){CL(this.group,t)},e.markUpdateMethod=function(t,n){Jme(t).updateMethod=n},e.protoInitialize=(function(){var t=e.prototype;t.type="chart"})(),e})();function Hie(e,t,n){e&&tU(e)&&(t==="emphasis"?hI:pI)(e,n)}function Wie(e,t,n){var r=Cg(e,t),o=t&&t.highlightKey!=null?Qlt(t.highlightKey):null;r!=null?xt(Hl(r),function(a){Hie(e.getItemGraphicEl(a),n,o)}):e.eachItemGraphicEl(function(a){Hie(a,n,o)})}bH($c);vL($c);function $dt(e){return Odt(e.model)}function Ndt(e){var t=e.model,n=e.ecModel,r=e.api,o=e.payload,a=t.pipelineContext.progressiveRender,s=e.view,l=o&&Jme(o).updateMethod,c=a?"incrementalPrepareRender":l&&s[l]?l:"render";return c!=="render"&&s[c](t,n,r,o),Bdt[c]}var Bdt={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)}}},kI="\0__throttleOriginMethod",Gie="\0__throttleRate",Kie="\0__throttleType";function NL(e,t,n){var r,o=0,a=0,s=null,l,c,f,h;t=t||0;function p(){a=new Date().getTime(),s=null,e.apply(c,f||[])}var m=function(){for(var g=[],b=0;b=0?p():s=setTimeout(p,-l),o=r};return m.clear=function(){s&&(clearTimeout(s),s=null)},m.debounceNextCall=function(g){h=g},m}function ege(e,t,n,r){var o=e[t];if(o){var a=o[kI]||o,s=o[Kie],l=o[Gie];if(l!==n||s!==r){if(n==null||!r)return e[t]=a;o=e[t]=NL(a,n,r==="debounce"),o[kI]=a,o[Kie]=r,o[Gie]=n}return o}}function dU(e,t){var n=e[t];n&&n[kI]&&(n.clear&&n.clear(),e[t]=n[kI])}var qie=Ls(),Yie={itemStyle:Z2(hme,!0),lineStyle:Z2(fme,!0)},Fdt={lineStyle:"stroke",itemStyle:"fill"};function tge(e,t){var n=e.visualStyleMapper||Yie[t];return n||(console.warn("Unknown style type '"+t+"'."),Yie.itemStyle)}function nge(e,t){var n=e.visualDrawType||Fdt[t];return n||(console.warn("Unknown style type '"+t+"'."),"fill")}var jdt={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",o=e.getModel(r),a=tge(e,r),s=a(o),l=o.getShallow("decal");l&&(n.setVisual("decal",l),l.dirty=!0);var c=nge(e,r),f=s[c],h=Yr(f)?f:null,p=s.fill==="auto"||s.stroke==="auto";if(!s[c]||h||p){var m=e.getColorFromPalette(e.name,null,t.getSeriesCount());s[c]||(s[c]=m,n.setVisual("colorFromPalette",!0)),s.fill=s.fill==="auto"||Yr(s.fill)?m:s.fill,s.stroke=s.stroke==="auto"||Yr(s.stroke)?m:s.stroke}if(n.setVisual("style",s),n.setVisual("drawType",c),!t.isSeriesFiltered(e)&&h)return n.setVisual("colorFromPalette",!1),{dataEach:function(g,b){var S=e.getDataParams(b),k=vn({},s);k[c]=h(S),g.setItemVisual(b,"style",k)}}}},z_=new vs,Udt={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",o=tge(e,r),a=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(s,l){var c=s.getRawDataItem(l);if(c&&c[r]){z_.option=c[r];var f=o(z_),h=s.ensureUniqueItemVisual(l,"style");vn(h,f),z_.option.decal&&(s.setItemVisual(l,"decal",z_.option.decal),z_.option.decal.dirty=!0),a in f&&s.setItemVisual(l,"colorFromPalette",!1)}}:null}}}},Vdt={performRawSeries:!0,overallReset:function(e){var t=mi();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)),qie(n).scope=a}}),e.eachSeries(function(n){if(!(n.isColorBySeries()||e.isSeriesFiltered(n))){var r=n.getRawData(),o={},a=n.getData(),s=qie(n).scope,l=n.visualStyleAccessPath||"itemStyle",c=nge(n,l);a.each(function(f){var h=a.getRawIndex(f);o[h]=f}),r.each(function(f){var h=o[f],p=a.getItemVisual(h,"colorFromPalette");if(p){var m=a.ensureUniqueItemVisual(h,"style"),g=r.getName(f)||f+"",b=r.count();m[c]=n.getColorFromPalette(g,s,b)}})}})}},ME=Math.PI;function zdt(e,t){t=t||{},no(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 Ha,r=new Ks({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var o=new Wa({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 Ks({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 kL({shape:{startAngle:-ME/2,endAngle:-ME/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:ME*3/2}).start("circularInOut"),s.animateShape(!0).when(1e3,{startAngle:ME*3/2}).delay(300).start("circularInOut"),n.add(s)),n.resize=function(){var l=o.getBoundingRect().width,c=t.showSpinner?t.spinnerRadius:0,f=(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:f,cy:h}),a.setShape({x:f-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 rge=(function(){function e(t,n,r,o){this._stageTaskMap=mi(),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=mi();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;xt(this._allHandlers,function(o){var a=t.get(o.uid)||t.set(o.uid,{}),s="";Oh(!(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;xt(t,function(c,f){if(!(o.visualType&&o.visualType!==c.visualType)){var h=s._stageTaskMap.get(c.uid),p=h.seriesTaskMap,m=h.overallTask;if(m){var g,b=m.agentStubMap;b.each(function(k){l(o,k)&&(k.dirty(),g=!0)}),g&&m.dirty(),s.updatePayload(m,r);var S=s.getPerformArgs(m,o.block);b.each(function(k){k.perform(S)}),m.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,f){return c.setDirty&&(!c.dirtyMap||c.dirtyMap.get(f.__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=mi(),c=t.seriesType,f=t.getTargetSeries;t.createOnAllSeries?r.eachRawSeries(h):c?r.eachRawSeriesByType(c,h):f&&f(r,o).each(h);function h(p){var m=p.uid,g=l.set(m,s&&s.get(m)||u2({plan:qdt,reset:Ydt,count:Zdt}));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||u2({reset:Hdt});s.context={ecModel:r,api:o,overallReset:t.overallReset,scheduler:a};var l=s.agentStubMap,c=s.agentStubMap=mi(),f=t.seriesType,h=t.getTargetSeries,p=!0,m=!1,g="";Oh(!t.createOnAllSeries,g),f?r.eachRawSeriesByType(f,b):h?h(r,o).each(b):(p=!1,xt(r.getSeries(),b));function b(S){var k=S.uid,C=c.set(k,l&&l.get(k)||(m=!0,u2({reset:Wdt,onDirty:Kdt})));C.context={model:S,overallProgress:p},C.agent=s,C.__block=p,a._pipe(S,C)}m&&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 Yr(t)&&(t={overallReset:t,seriesType:Qdt(t)}),t.uid=TL("stageHandler"),n&&(t.visualType=n),t},e})();function Hdt(e){e.overallReset(e.ecModel,e.api,e.payload)}function Wdt(e){return e.overallProgress&&Gdt}function Gdt(){this.agent.dirty(),this.getDownstream().dirty()}function Kdt(){this.agent&&this.agent.dirty()}function qdt(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function Ydt(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=Hl(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?br(t,function(n,r){return ige(r)}):Xdt}var Xdt=ige(0);function ige(e){return function(t,n){var r=n.data,o=n.resetDefines[e];if(o&&o.dataEach)for(var a=t.start;a0&&g===f.length-m.length){var b=f.slice(0,g);b!=="data"&&(n.mainType=b,n[m.toLowerCase()]=c,h=!0)}}l.hasOwnProperty(f)&&(r[f]=c,h=!0),h||(o[f]=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,f=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(f,a,"name")&&h(f,a,"dataIndex")&&h(f,a,"dataType")&&(!l.filterForExposedEvent||l.filterForExposedEvent(t,n.otherQuery,o,a));function h(p,m,g,b){return p[g]==null||m[b||g]===p[g]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e})(),fU=["symbol","symbolSize","symbolRotate","symbolOffset"],Jie=fU.concat(["symbolKeepAspect"]),tft={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&&Vm(c)?c:.5;var f=e.createRadialGradient(s,l,0,s,l,c);return f}function pU(e,t,n){for(var r=t.type==="radial"?_ft(e,t,n):bft(e,t,n),o=t.colorStops,a=0;a0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:So(e)?[e]:Xn(e)?e:null}function uge(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&kft(t.lineDash,t.lineWidth),r=t.lineDashOffset;if(n){var o=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;o&&o!==1&&(n=br(n,function(a){return a/o}),r/=o)}return[n,r]}var wft=new xg(!0);function CI(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function eoe(e){return typeof e=="string"&&e!=="none"}function xI(e){var t=e.fill;return t!=null&&t!=="none"}function toe(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 noe(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 vU(e,t,n){var r=Ove(t.image,t.__image,n);if(mL(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)*Jot),a.scaleSelf(t.scaleX||1,t.scaleY||1),o.setTransform(a)}return o}}function Cft(e,t,n,r){var o,a=CI(n),s=xI(n),l=n.strokePercent,c=l<1,f=!t.path;(!t.silent||c)&&f&&t.createPathProxy();var h=t.path||wft,p=t.__dirty;if(!r){var m=n.fill,g=n.stroke,b=s&&!!m.colorStops,S=a&&!!g.colorStops,k=s&&!!m.image,C=a&&!!g.image,x=void 0,E=void 0,_=void 0,A=void 0,R=void 0;(b||S)&&(R=t.getBoundingRect()),b&&(x=p?pU(e,m,R):t.__canvasFillGradient,t.__canvasFillGradient=x),S&&(E=p?pU(e,g,R):t.__canvasStrokeGradient,t.__canvasStrokeGradient=E),k&&(_=p||!t.__canvasFillPattern?vU(e,m,t):t.__canvasFillPattern,t.__canvasFillPattern=_),C&&(A=p||!t.__canvasStrokePattern?vU(e,g,t):t.__canvasStrokePattern,t.__canvasStrokePattern=_),b?e.fillStyle=x:k&&(_?e.fillStyle=_:s=!1),S?e.strokeStyle=E:C&&(A?e.strokeStyle=A:a=!1)}var M=t.getGlobalScale();h.setScale(M[0],M[1],t.segmentIgnoreThreshold);var D,N;e.setLineDash&&n.lineDash&&(o=uge(t),D=o[0],N=o[1]);var L=!0;(f||p&ky)&&(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),D&&(e.setLineDash(D),e.lineDashOffset=N),r||(n.strokeFirst?(a&&noe(e,n),s&&toe(e,n)):(s&&toe(e,n),a&&noe(e,n))),D&&e.setLineDash([])}function xft(e,t,n){var r=t.__image=Ove(n.image,t.__image,t,t.onload);if(!(!r||!mL(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 f=n.sx||0,h=n.sy||0;e.drawImage(r,f,h,n.sWidth,n.sHeight,o,a,s,l)}else if(n.sx&&n.sy){var f=n.sx,h=n.sy,p=s-f,m=l-h;e.drawImage(r,f,h,p,m,o,a,s,l)}else e.drawImage(r,o,a,s,l)}}function Eft(e,t,n){var r,o=n.text;if(o!=null&&(o+=""),o){e.font=n.font||kg,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var a=void 0,s=void 0;e.setLineDash&&n.lineDash&&(r=uge(t),a=r[0],s=r[1]),a&&(e.setLineDash(a),e.lineDashOffset=s),n.strokeFirst?(CI(n)&&e.strokeText(o,n.x,n.y),xI(n)&&e.fillText(o,n.x,n.y)):(xI(n)&&e.fillText(o,n.x,n.y),CI(n)&&e.strokeText(o,n.x,n.y)),a&&e.setLineDash([])}}var roe=["shadowBlur","shadowOffsetX","shadowOffsetY"],ioe=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function cge(e,t,n,r,o){var a=!1;if(!r&&(n=n||{},t===n))return!1;if(r||t.opacity!==n.opacity){vu(e,o),a=!0;var s=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(s)?sg.opacity:s}(r||t.blend!==n.blend)&&(a||(vu(e,o),a=!0),e.globalCompositeOperation=t.blend||sg.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[tl]){if(this._disposed){this.id;return}var a,s,l;if(Cr(r)&&(o=r.lazyUpdate,a=r.silent,s=r.replaceMerge,l=r.transition,r=r.notMerge),this[tl]=!0,!this._model||r){var c=new Dct(this._api),f=this._theme,h=this._model=new UH;h.scheduler=this._scheduler,h.ssr=this._ssr,h.init(null,null,null,f,this._locale,c)}this._model.setOption(n,{replaceMerge:s},yU);var p={seriesTransition:l,optionChanged:!0};if(o)this[ou]={silent:a,updateParams:p},this[tl]=!1,this.getZr().wakeUp();else{try{ay(this),wp.update.call(this,null,p)}catch(m){throw this[ou]=null,this[tl]=!1,m}this._ssr||this._zr.flush(),this[ou]=null,this[tl]=!1,H_.call(this,a),W_.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||$r.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($r.svgSupported){var n=this._zr,r=n.storage.getDisplayList();return xt(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;xt(r,function(c){o.eachComponent({mainType:c},function(f){var h=s._componentsMap[f.__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 xt(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(boe[o]){var c=l,f=l,h=-l,p=-l,m=[],g=n&&n.pixelRatio||this.getDevicePixelRatio();xt(d2,function(E,_){if(E.group===o){var A=r?E.getZr().painter.getSvgDom().innerHTML:E.renderToCanvas(Oi(n)),R=E.getDom().getBoundingClientRect();c=a(R.left,c),f=a(R.top,f),h=s(R.right,h),p=s(R.bottom,p),m.push({dom:A,left:R.left,top:R.top})}}),c*=g,f*=g,h*=g,p*=g;var b=h-c,S=p-f,k=X1.createCanvas(),C=wre(k,{renderer:r?"svg":"canvas"});if(C.resize({width:b,height:S}),r){var x="";return xt(m,function(E){var _=E.left-c,A=E.top-f;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 Ks({shape:{x:0,y:0,width:b,height:S},style:{fill:n.connectedBackgroundColor}})),xt(m,function(E){var _=new Iv({style:{x:E.left*g-c,y:E.top*g-f,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 c9(this,"convertToPixel",n,r)},t.prototype.convertFromPixel=function(n,r){return c9(this,"convertFromPixel",n,r)},t.prototype.containPixel=function(n,r){if(this._disposed){this.id;return}var o=this._model,a,s=M7(o,n);return xt(s,function(l,c){c.indexOf("Models")>=0&&xt(l,function(f){var h=f.coordinateSystem;if(h&&h.containPoint)a=a||!!h.containPoint(r);else if(c==="seriesModels"){var p=this._chartsMap[f.__viewId];p&&p.containPoint&&(a=a||p.containPoint(r,f))}},this)},this),!!a},t.prototype.getVisual=function(n,r){var o=this._model,a=M7(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?rft(l,c,r):ift(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;xt(Zft,function(r){var o=function(a){var s=n.getModel(),l=a.target,c,f=r==="globalout";if(f?c={}:l&&_S(l,function(b){var S=Vi(b);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=vn({},S.eventData),!0},!0),c){var h=c.componentType,p=c.componentIndex;(h==="markLine"||h==="markPoint"||h==="markArea")&&(h="series",p=c.seriesIndex);var m=h&&p!=null&&s.getComponent(h,p),g=m&&n[m.mainType==="series"?"_chartsMap":"_componentsMap"][m.__viewId];c.event=a,c.type=r,n._$eventProcessor.eventInfo={targetEl:l,packedEvent:c,model:m,view:g},n.trigger(r,c)}};o.zrEventfulCallAtLast=!0,n._zr.on(r,o,n)}),xt(c2,function(r,o){n._messageCenter.on(o,function(a){this.trigger(o,a)},n)}),xt(["selectchanged"],function(r){n._messageCenter.on(r,function(o){this.trigger(r,o)},n)}),sft(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&&Rve(this.getDom(),YH,"");var r=this,o=r._api,a=r._model;xt(r._componentsViews,function(s){s.dispose(a,o)}),xt(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 d2[r.id]},t.prototype.resize=function(n){if(!this[tl]){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[ou]&&(a==null&&(a=this[ou].silent),o=!0,this[ou]=null),this[tl]=!0;try{o&&ay(this),wp.update.call(this,{type:"resize",animation:vn({duration:0},n&&n.animation)})}catch(s){throw this[tl]=!1,s}this[tl]=!1,H_.call(this,a),W_.call(this,a)}}},t.prototype.showLoading=function(n,r){if(this._disposed){this.id;return}if(Cr(n)&&(r=n,n=""),n=n||"default",this.hideLoading(),!!bU[n]){var o=bU[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=vn({},n);return r.type=c2[n.type],r},t.prototype.dispatchAction=function(n,r){if(this._disposed){this.id;return}if(Cr(r)||(r={silent:!!r}),!!EI[n.type]&&this._model){if(this[tl]){this._pendingActions.push(n);return}var o=r.silent;f9.call(this,n,o);var a=r.flush;a?this._zr.flush():a!==!1&&$r.browser.weChat&&this._throttledZrFlush(),H_.call(this,o),W_.call(this,o)}},t.prototype.updateLabelLayout=function(){ld.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(){ay=function(p){var m=p._scheduler;m.restorePipelines(p._model),m.prepareStageTasks(),u9(p,!0),u9(p,!1),m.plan()},u9=function(p,m){for(var g=p._model,b=p._scheduler,S=m?p._componentsViews:p._chartsViews,k=m?p._componentsMap:p._chartsMap,C=p._zr,x=p._api,E=0;Em.get("hoverLayerThreshold")&&!$r.node&&!$r.worker&&m.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,m){var g=p.get("blendMode")||null;m.eachRendered(function(b){b.isGroup||(b.style.blend=g)})}function l(p,m){if(!p.preventAutoZ){var g=p.get("z")||0,b=p.get("zlevel")||0;m.eachRendered(function(S){return c(S,g,b,-1/0),!0})}}function c(p,m,g,b){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;m.eachRendered(function(C){if(C.states&&C.states.emphasis){if(s2(C))return;if(C instanceof so&&Jlt(C),C.__dirty){var x=C.prevStates;x&&C.useStates(x)}if(b){C.stateTransition=k;var E=C.getTextContent(),_=C.getTextGuideLine();E&&(E.stateTransition=k),_&&(_.stateTransition=k)}C.__dirty&&o(C)}})}goe=function(p){return new((function(m){On(g,m);function g(){return m!==null&&m.apply(this,arguments)||this}return g.prototype.getCoordinateSystems=function(){return p._coordSysMgr.getCoordinateSystems()},g.prototype.getComponentByElement=function(b){for(;b;){var S=b.__ecComponentInfo;if(S!=null)return p._model.getComponent(S.mainType,S.index);b=b.parent}},g.prototype.enterEmphasis=function(b,S){hI(b,S),gc(p)},g.prototype.leaveEmphasis=function(b,S){pI(b,S),gc(p)},g.prototype.enterBlur=function(b){zlt(b),gc(p)},g.prototype.leaveBlur=function(b){qve(b),gc(p)},g.prototype.enterSelect=function(b){Yve(b),gc(p)},g.prototype.leaveSelect=function(b){Xve(b),gc(p)},g.prototype.getModel=function(){return p.getModel()},g.prototype.getViewOfComponentModel=function(b){return p.getViewOfComponentModel(b)},g.prototype.getViewOfSeriesModel=function(b){return p.getViewOfSeriesModel(b)},g})(Dme))(p)},xge=function(p){function m(g,b){for(var S=0;S=0)){_oe.push(n);var a=rge.wrapStageHandler(n,o);a.__prio=t,a.__raw=n,e.push(a)}}function Pge(e,t){bU[e]=t}function oht(e,t,n){var r=$ft("registerMap");r&&r(e,t,n)}var sht=cdt;Hg(KH,jdt);Hg(BL,Udt);Hg(BL,Vdt);Hg(KH,tft);Hg(BL,nft);Hg(bge,Dft);Ige($me);Lge(Fft,Gct);Pge("default",zdt);J1({type:ag,event:ag,update:ag},Su);J1({type:z4,event:z4,update:z4},Su);J1({type:r2,event:r2,update:r2},Su);J1({type:H4,event:H4,update:H4},Su);J1({type:i2,event:i2,update:i2},Su);Age("light",Jdt);Age("dark",age);function G_(e){return e==null?0:e.length||1}function Soe(e){return e}var aht=(function(){function e(t,n,r,o,a,s){this._old=t,this._new=n,this._oldKeyGetter=r||Soe,this._newKeyGetter=o||Soe,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 f===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&&m===1)this._updateManyToOne&&this._updateManyToOne(h,f),o[c]=null;else if(p===1&&m>1)this._updateOneToMany&&this._updateOneToMany(h,f),o[c]=null;else if(p===1&&m===1)this._update&&this._update(h,f),o[c]=null;else if(p>1&&m>1)this._updateManyToMany&&this._updateManyToMany(h,f),o[c]=null;else if(p>1)for(var g=0;g1)for(var l=0;l30}var K_=Cr,Cp=br,pht=typeof Int32Array>"u"?Array:Int32Array,vht="e\0\0",koe=-1,mht=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],ght=["_approximateExtent"],woe,FE,q_,Y_,v9,X_,m9,Nge=(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;Mge(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,f={},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===Wc;if(c&&!o.pure)for(var f=[],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),Xn(a)?a=a.slice():K_(a)&&(a=vn({},a)),o[n]=a),a},e.prototype.setItemVisual=function(t,n,r){var o=this._itemVisuals[t]||{};this._itemVisuals[t]=o,K_(n)?vn(o,n):o[n]=r},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,n){K_(t)?vn(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?vn(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;Mlt(r,this.dataType,t,n),this._graphicEls[t]=n},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,n){xt(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:Cp(this.dimensions,this._getDimInfo,this),this.hostModel)),v9(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,n){var r=this[t];Yr(r)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var o=r.apply(this,arguments);return n.apply(this,[o].concat(aH(arguments)))})},e.internalField=(function(){woe=function(t){var n=t._invertedIndicesMap;xt(n,function(r,o){var a=t._dimInfos[o],s=a.ordinalMeta,l=t._store;if(s){r=n[o]=new pht(s.categories.length);for(var c=0;c1&&(c+="__ec__"+h),o[n]=c}}})(),e})();function Bge(e,t){zH(e)||(e=Nme(e)),t=t||{};var n=t.coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],o=mi(),a=[],s=bht(e,n,r,t.dimensionsCount),l=t.canOmitUnusedDimensions&&$ge(s),c=r===e.dimensionsDefine,f=c?Oge(e):Dge(r),h=t.encodeDefine;!h&&t.encodeDefaulter&&(h=t.encodeDefaulter(e,s));for(var p=mi(h),m=new Wme(s),g=0;g0&&(r.name=o+(a-1)),a++,t.set(o,a)}}function bht(e,t,n,r){var o=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return xt(t,function(a){var s;Cr(a)&&(s=a.dimsDef)&&(o=Math.max(o,s.length))}),o}function _ht(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 Sht=(function(){function e(t){this.coordSysDims=[],this.axisMap=mi(),this.categoryAxisMap=mi(),this.coordSysName=t}return e})();function kht(e){var t=e.get("coordinateSystem"),n=new Sht(t),r=wht[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}var wht={cartesian2d:function(e,t,n,r){var o=e.getReferringComponents("xAxis",md).models[0],a=e.getReferringComponents("yAxis",md).models[0];t.coordSysDims=["x","y"],n.set("x",o),n.set("y",a),ly(o)&&(r.set("x",o),t.firstCategoryDimIndex=0),ly(a)&&(r.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,n,r){var o=e.getReferringComponents("singleAxis",md).models[0];t.coordSysDims=["single"],n.set("single",o),ly(o)&&(r.set("single",o),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var o=e.getReferringComponents("polar",md).models[0],a=o.findAxisModel("radiusAxis"),s=o.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],n.set("radius",a),n.set("angle",s),ly(a)&&(r.set("radius",a),t.firstCategoryDimIndex=0),ly(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();xt(a.parallelAxisIndex,function(l,c){var f=o.getComponent("parallelAxis",l),h=s[c];n.set(h,f),ly(f)&&(r.set(h,f),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=c))})}};function ly(e){return e.get("type")==="category"}function Cht(e,t,n){n=n||{};var r=n.byIndex,o=n.stackedCoordDimension,a,s,l;xht(t)?a=t:(s=t.schema,a=s.dimensions,l=t.store);var c=!!(e&&e.get("stack")),f,h,p,m;if(xt(a,function(x,E){vr(x)&&(a[E]=x={name:x}),c&&!x.isExtraCoord&&(!r&&!f&&x.ordinalMeta&&(f=x),!h&&x.type!=="ordinal"&&x.type!=="time"&&(!o||o===x.coordDim)&&(h=x))}),h&&!r&&!f&&(r=!0),h){p="__\0ecstackresult_"+e.id,m="__\0ecstackedover_"+e.id,f&&(f.createInvertedIndices=!0);var g=h.coordDim,b=h.type,S=0;xt(a,function(x){x.coordDim===g&&S++});var k={name:p,coordDim:g,coordDimIndex:S,type:b,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},C={name:m,coordDim:m,coordDimIndex:S+1,type:b,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};s?(l&&(k.storeDimIndex=l.ensureCalculationDimension(m,b),C.storeDimIndex=l.ensureCalculationDimension(p,b)),s.appendCalculationDimension(k),s.appendCalculationDimension(C)):(a.push(k),a.push(C))}return{stackedDimension:h&&h.name,stackedByDimension:f&&f.name,isStackedByIndex:r,stackedOverDimension:m,stackResultDimension:p}}function xht(e){return!Mge(e.schema)}function E1(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function Eht(e,t){return E1(e,t)?e.getCalculationInfo("stackResultDimension"):t}function Tht(e,t){var n=e.get("coordinateSystem"),r=VH.get(n),o;return t&&t.coordSysDims&&(o=br(t.coordSysDims,function(a){var s={name:a},l=t.axisMap.get(a);if(l){var c=l.get("type");s.type=cht(c)}return s})),o||(o=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),o}function Aht(e,t,n){var r,o;return n&&xt(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 QH(e,t,n){n=n||{};var r=t.getSourceManager(),o,a=!1;o=r.getSource(),a=o.sourceFormat===Wc;var s=kht(t),l=Tht(t,s),c=n.useEncodeDefaulter,f=Yr(c)?c:c?xs(Sct,l,t):null,h={coordDimensions:l,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:f,canOmitUnusedDimensions:!a},p=Bge(o,h),m=Aht(p.dimensions,n.createInvertedIndices,s),g=a?null:r.getSharedDataStore(p),b=Cht(t,{schema:p,store:g}),S=new Nge(p,t);S.setCalculationInfo(b);var k=m!=null&&Iht(o)?function(C,x,E,_){return _===m?E:this.defaultDimValueGetter(C,x,E,_)}:null;return S.hasItemOption=!1,S.initData(a?o:g,null,k),S}function Iht(e){if(e.sourceFormat===Wc){var t=Lht(e.data||[]);return!Xn(Gk(t))}}function Lht(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})();vL(Ef);var Pht=0,_U=(function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++Pht}return e.createByAxisModel=function(t){var n=t.option,r=n.data,o=r&&br(r,Rht);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(!vr(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=mi(this.categories))},e})();function Rht(e){return Cr(e)&&e.value!=null?e.value:e+""}function SU(e){return e.type==="interval"||e.type==="log"}function Mht(e,t,n,r){var o={},a=e[1]-e[0],s=o.interval=Tve(a/t);n!=null&&sr&&(s=o.interval=r);var l=o.intervalPrecision=Fge(s),c=o.niceTickExtent=[Gs(Math.ceil(e[0]/s)*s,l),Gs(Math.floor(e[1]/s)*s,l)];return Dht(c,e),o}function g9(e){var t=Math.pow(10,mH(e)),n=e/t;return n?n===2?n=3:n===3?n=5:n*=2:n=1,Gs(n*t)}function Fge(e){return gh(e)+2}function Coe(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function Dht(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),Coe(e,0,t),Coe(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function FL(e,t){return e>=t[0]&&e<=t[1]}function jL(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function UL(e,t){return e*(t[1]-t[0])+t[0]}var JH=(function(e){On(t,e);function t(n){var r=e.call(this,n)||this;r.type="ordinal";var o=r.getSetting("ordinalMeta");return o||(o=new _U({})),Xn(o)&&(o=new _U({categories:br(o,function(a){return Cr(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:vr(n)?this._ordinalMeta.getOrdinal(n):Math.round(n)},t.prototype.contain=function(n){return n=this.parse(n),FL(n,this._extent)&&this._ordinalMeta.categories[n]!=null},t.prototype.normalize=function(n){return n=this._getTickNumber(this.parse(n)),jL(n,this._extent)},t.prototype.scale=function(n){return n=Math.round(UL(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})(Ef);Ef.registerClass(JH);var xm=Gs,eb=(function(e){On(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 FL(n,this._extent)},t.prototype.normalize=function(n){return jL(n,this._extent)},t.prototype.scale=function(n){return UL(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=Fge(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:xm(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 zge(e){var t=Nht(e),n=[];return xt(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,f=t[c],h=Math.abs(s[1]-s[0]),p=a.scale.getExtent(),m=Math.abs(p[1]-p[0]);l=f?h/m*f:h}else{var g=r.getData();l=Math.abs(s[1]-s[0])/g.count()}var b=Go(r.get("barWidth"),l),S=Go(r.get("barMaxWidth"),l),k=Go(r.get("barMinWidth")||(Wge(r)?.5:1),l),C=r.get("barGap"),x=r.get("barCategoryGap");n.push({bandWidth:l,barWidth:b,barMaxWidth:S,barMinWidth:k,barGap:C,barCategoryGap:x,axisKey:eW(a),stackId:Uge(r)})}),Bht(n)}function Bht(e){var t={};xt(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 f=r.stackId;c[f]||l.autoWidthCount++,c[f]=c[f]||{width:0,maxWidth:0};var h=r.barWidth;h&&!c[f].width&&(c[f].width=h,h=Math.min(l.remainedWidth,h),l.remainedWidth-=h);var p=r.barMaxWidth;p&&(c[f].maxWidth=p);var m=r.barMinWidth;m&&(c[f].minWidth=m);var g=r.barGap;g!=null&&(l.gap=g);var b=r.barCategoryGap;b!=null&&(l.categoryGap=b)});var n={};return xt(t,function(r,o){n[o]={};var a=r.stacks,s=r.bandWidth,l=r.categoryGap;if(l==null){var c=Ko(a).length;l=Math.max(35-c*4,15)+"%"}var f=Go(l,s),h=Go(r.gap,1),p=r.remainedWidth,m=r.autoWidthCount,g=(p-f)/(m+(m-1)*h);g=Math.max(g,0),xt(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*_,m--}else{var _=g;x&&x<_&&(_=Math.min(x,p)),E&&E>_&&(_=E),_!==g&&(C.width=_,p-=_+h*_,m--)}}),g=(p-f)/(m+(m-1)*h),g=Math.max(g,0);var b=0,S;xt(a,function(C,x){C.width||(C.width=g),S=C,b+=C.width*(1+h)}),S&&(b-=S.width*h);var k=-b/2;xt(a,function(C,x){n[o][x]=n[o][x]||{bandWidth:s,offset:k,width:C.width},k+=C.width*(1+h)})}),n}function Fht(e,t,n){if(e&&t){var r=e[eW(t)];return r}}function jht(e,t){var n=Vge(e,t),r=zge(n);xt(n,function(o){var a=o.getData(),s=o.coordinateSystem,l=s.getBaseAxis(),c=Uge(o),f=r[eW(l)][c],h=f.offset,p=f.width;a.setLayout({bandWidth:f.bandWidth,offset:h,size:p})})}function Uht(e){return{seriesType:e,plan:GH(),reset:function(t){if(Hge(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),f=n.mapDimension(a.dim),h=n.getCalculationInfo("stackResultDimension"),p=E1(n,f)&&!!n.getCalculationInfo("stackedOnSeries"),m=a.isHorizontal(),g=Vht(o,a),b=Wge(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 A=E.count,R=b&&yh(A*3),M=b&&c&&yh(A*3),D=b&&yh(A),N=r.master.getRect(),L=m?N.width:N.height,B,U=_.getStore(),W=0;(B=E.next())!=null;){var V=U.get(p?k:s,B),z=U.get(l,B),Y=g,oe=void 0;p&&(oe=+V-U.get(s,B));var ne=void 0,X=void 0,K=void 0,re=void 0;if(m){var ee=r.dataToPoint([V,z]);if(p){var le=r.dataToPoint([oe,z]);Y=le[0]}ne=Y,X=ee[1]+x,K=ee[0]-Y,re=C,Math.abs(K)0?n:1:n))}var zht=function(e,t,n,r){for(;n>>1;e[o][1]o&&(this._approxInterval=o);var l=jE.length,c=Math.min(zht(jE,this._approxInterval,0,l),l-1);this._interval=jE[c][1],this._minLevelUnit=jE[Math.max(c-1,0)][0]},t.prototype.parse=function(n){return So(n)?n:+$h(n)},t.prototype.contain=function(n){return FL(this.parse(n),this._extent)},t.prototype.normalize=function(n){return jL(this.parse(n),this._extent)},t.prototype.scale=function(n){return UL(n,this._extent)},t.type="time",t})(eb),jE=[["second",OH],["minute",$H],["hour",a2],["quarter-day",a2*6],["half-day",a2*12],["day",Lc*1.2],["half-week",Lc*3.5],["week",Lc*7],["month",Lc*31],["quarter",Lc*95],["half-year",pie/2],["year",pie]];function Hht(e,t,n,r){var o=$h(t),a=$h(n),s=function(b){return mie(o,b,r)===mie(a,b,r)},l=function(){return s("year")},c=function(){return l()&&s("month")},f=function(){return c()&&s("day")},h=function(){return f()&&s("hour")},p=function(){return h()&&s("minute")},m=function(){return p()&&s("second")},g=function(){return m()&&s("millisecond")};switch(e){case"year":return l();case"month":return c();case"day":return f();case"hour":return h();case"minute":return p();case"second":return m();case"millisecond":return g()}}function Wht(e,t){return e/=Lc,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function Ght(e){var t=30*Lc;return e/=t,e>6?6:e>3?3:e>2?2:1}function Kht(e){return e/=a2,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function xoe(e,t){return e/=t?$H:OH,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function qht(e){return Tve(e)}function Yht(e,t,n){var r=new Date(e);switch(Jy(t)){case"year":case"month":r[bme(n)](0);case"day":r[_me(n)](1);case"hour":r[Sme(n)](0);case"minute":r[kme(n)](0);case"second":r[wme(n)](0),r[Cme(n)](0)}return r.getTime()}function Xht(e,t,n,r){var o=1e4,a=gme,s=0;function l(L,B,U,W,V,z,Y){for(var oe=new Date(B),ne=B,X=oe[W]();ne1&&z===0&&U.unshift({value:U[0].value-ne})}}for(var z=0;z=r[0]&&x<=r[1]&&p++)}var E=(r[1]-r[0])/t;if(p>E*1.5&&m>E/1.5||(f.push(k),p>E||e===a[g]))break}h=[]}}}for(var _=Da(br(f,function(L){return Da(L,function(B){return B.value>=r[0]&&B.value<=r[1]&&!B.notAdd})}),function(L){return L.length>0}),A=[],R=_.length-1,g=0;g<_.length;++g)for(var M=_[g],D=0;D0;)a*=10;var l=[Gs(Jht(r[0]/a)*a),Gs(Qht(r[1]/a)*a)];this._interval=a,this._niceExtent=l}},t.prototype.calcNiceExtent=function(n){f2.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=td(n)/td(this.base),FL(n,this._extent)},t.prototype.normalize=function(n){return n=td(n)/td(this.base),jL(n,this._extent)},t.prototype.scale=function(n){return n=UL(n,this._extent),UE(this.base,n)},t.type="log",t})(Ef),Kge=tW.prototype;Kge.getMinorTicks=f2.getMinorTicks;Kge.getLabel=f2.getLabel;function VE(e,t){return Zht(e,gh(t))}Ef.registerClass(tW);var ept=(function(){function e(t,n,r){this._prepareParams(t,n,r)}return e.prototype._prepareParams=function(t,n,r){r[1]0&&c>0&&!f&&(l=0),l<0&&c<0&&!h&&(c=0));var m=this._determinedMin,g=this._determinedMax;return m!=null&&(l=m,f=!0),g!=null&&(c=g,h=!0),{min:l,max:c,minFixed:f,maxFixed:h,isBlank:p}},e.prototype.modifyDataMinMax=function(t,n){this[npt[t]]=n},e.prototype.setDeterminedMinMax=function(t,n){var r=tpt[t];this[r]=n},e.prototype.freeze=function(){this.frozen=!0},e})(),tpt={min:"_determinedMin",max:"_determinedMax"},npt={min:"_dataMin",max:"_dataMax"};function rpt(e,t,n){var r=e.rawExtentInfo;return r||(r=new ept(e,t,n),e.rawExtentInfo=r,r)}function zE(e,t){return t==null?null:eI(t)?NaN:e.parse(t)}function qge(e,t){var n=e.type,r=rpt(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=Vge("bar",s),c=!1;if(xt(l,function(p){c=c||p.getBaseAxis()===t.axis}),c){var f=zge(l),h=ipt(o,a,t,f);o=h.min,a=h.max}}return{extent:[o,a],fixMin:r.minFixed,fixMax:r.maxFixed}}function ipt(e,t,n,r){var o=n.axis.getExtent(),a=Math.abs(o[1]-o[0]),s=Fht(r,n.axis);if(s===void 0)return{min:e,max:t};var l=1/0;xt(s,function(g){l=Math.min(g.offset,l)});var c=-1/0;xt(s,function(g){c=Math.max(g.offset+g.width,c)}),l=Math.abs(l),c=Math.abs(c);var f=l+c,h=t-e,p=1-(l+c)/a,m=h/p-h;return t+=m*(c/f),e-=m*(l/f),{min:e,max:t}}function Toe(e,t){var n=t,r=qge(e,n),o=r.extent,a=n.get("splitNumber");e instanceof tW&&(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 opt(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new JH({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new Gge({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(Ef.getClass(t)||eb)}}function spt(e){var t=e.scale.getExtent(),n=t[0],r=t[1];return!(n>0&&r>0||n<0&&r<0)}function tb(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):vr(t)?(function(r){return function(o){var a=e.scale.getLabel(o),s=r.replace("{value}",a??"");return s}})(t):Yr(t)?(function(r){return function(o,a){return n!=null&&(a=o.value-n),r(nW(e,o),a,o.level!=null?{level:o.level}:null)}})(t):function(r){return e.scale.getLabel(r)}}function nW(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function apt(e){var t=e.model,n=e.scale;if(!(!t.get(["axisLabel","show"])||n.isBlank())){var r,o,a=n.getExtent();n instanceof JH?o=n.count():(r=n.getTicks(),o=r.length);var s=e.getLabelModel(),l=tb(e),c,f=1;o>40&&(f=Math.ceil(o/40));for(var h=0;h=0||(Aoe.push(e),Yr(e)&&(e={install:e}),e.install(dpt))}var sk=Ls();function Xge(e,t){var n=br(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 fpt(e){var t=e.getLabelModel().get("customValues");if(t){var n=tb(e),r=e.scale.getExtent(),o=Xge(e,t),a=Da(o,function(s){return s>=r[0]&&s<=r[1]});return{labels:br(a,function(s){var l={value:s};return{formattedLabel:n(l),rawLabel:e.scale.getLabel(l),tickValue:s}})}}return e.type==="category"?ppt(e):mpt(e)}function hpt(e,t){var n=e.getTickModel().get("customValues");if(n){var r=e.scale.getExtent(),o=Xge(e,n);return{ticks:Da(o,function(a){return a>=r[0]&&a<=r[1]})}}return e.type==="category"?vpt(e,t):{ticks:br(e.scale.getTicks(),function(a){return a.value})}}function ppt(e){var t=e.getLabelModel(),n=Zge(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function Zge(e,t){var n=Qge(e,"labels"),r=rW(t),o=Jge(n,r);if(o)return o;var a,s;return Yr(r)?a=n0e(e,r):(s=r==="auto"?gpt(e):r,a=t0e(e,s)),e0e(n,r,{labels:a,labelCategoryInterval:s})}function vpt(e,t){var n=Qge(e,"ticks"),r=rW(t),o=Jge(n,r);if(o)return o;var a,s;if((!t.get("show")||e.scale.isBlank())&&(a=[]),Yr(r))a=n0e(e,r,!0);else if(r==="auto"){var l=Zge(e,e.getLabelModel());s=l.labelCategoryInterval,a=br(l.labels,function(c){return c.tickValue})}else s=r,a=t0e(e,s,!0);return e0e(n,r,{ticks:a,tickCategoryInterval:s})}function mpt(e){var t=e.scale.getTicks(),n=tb(e);return{labels:br(t,function(r,o){return{level:r.level,formattedLabel:n(r,o),rawLabel:e.scale.getLabel(r),tickValue:r.value}})}}function Qge(e,t){return sk(e)[t]||(sk(e)[t]=[])}function Jge(e,t){for(var n=0;n40&&(l=Math.max(1,Math.floor(s/40)));for(var c=a[0],f=e.dataToCoord(c+1)-e.dataToCoord(c),h=Math.abs(f*Math.cos(r)),p=Math.abs(f*Math.sin(r)),m=0,g=0;c<=a[1];c+=l){var b=0,S=0,k=pH(n({value:c}),t.font,"center","top");b=k.width*1.3,S=k.height*1.3,m=Math.max(m,b,7),g=Math.max(g,S,7)}var C=m/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))),_=sk(e.model),A=e.getExtent(),R=_.lastAutoInterval,M=_.lastTickCount;return R!=null&&M!=null&&Math.abs(R-E)<=1&&Math.abs(M-s)<=1&&R>E&&_.axisExtent0===A[0]&&_.axisExtent1===A[1]?E=R:(_.lastTickCount=s,_.lastAutoInterval=E,_.axisExtent0=A[0],_.axisExtent1=A[1]),E}function bpt(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 t0e(e,t,n){var r=tb(e),o=e.scale,a=o.getExtent(),s=e.getLabelModel(),l=[],c=Math.max((t||0)+1,1),f=a[0],h=o.count();f!==0&&c>1&&h/c>2&&(f=Math.round(Math.ceil(f/c)*c));var p=Yge(e),m=s.get("showMinLabel")||p,g=s.get("showMaxLabel")||p;m&&f!==a[0]&&S(a[0]);for(var b=f;b<=a[1];b+=c)S(b);g&&b-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 n0e(e,t,n){var r=e.scale,o=tb(e),a=[];return xt(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 Ioe=[0,1],_pt=(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 vat(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(),Loe(r,o.count())),Kj(t,Ioe,r,n)},e.prototype.coordToData=function(t,n){var r=this._extent,o=this.scale;this.onBand&&o.type==="ordinal"&&(r=r.slice(),Loe(r,o.count()));var a=Kj(t,r,Ioe,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=hpt(this,n),o=r.ticks,a=br(o,function(l){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(l):l),tickValue:l}},this),s=n.get("alignWithLabel");return Spt(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=br(r,function(a){return br(a,function(s){return{coord:this.dataToCoord(s),tickValue:s}},this)},this);return o},e.prototype.getViewLabels=function(){return fpt(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 ypt(this)},e})();function Loe(e,t){var n=e[1]-e[0],r=t,o=n/r/2;e[0]+=o,e[1]-=o}function Spt(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,f=(t[o-1].coord-t[0].coord)/c;xt(t,function(g){g.coord-=f/2});var h=e.scale.getExtent();l=1+h[1]-t[o-1].tickValue,s={coord:t[o-1].coord+f*l,tickValue:h[1]+1},t.push(s)}var p=a[0]>a[1];m(t[0].coord,a[0])&&(r?t[0].coord=a[0]:t.shift()),r&&m(a[0],t[0].coord)&&t.unshift({coord:a[0]}),m(a[1],s.coord)&&(r?s.coord=a[1]:t.pop()),r&&m(s.coord,a[1])&&t.push({coord:a[1]});function m(g,b){return g=Gs(g),b=Gs(b),p?g>b:g0){t=t/180*Math.PI,Xp.fromArray(e[0]),ds.fromArray(e[1]),Ra.fromArray(e[2]),Fr.sub(Zp,Xp,ds),Fr.sub(ef,Ra,ds);var n=Zp.len(),r=ef.len();if(!(n<.001||r<.001)){Zp.scale(1/n),ef.scale(1/r);var o=Zp.dot(ef),a=Math.cos(t);if(a1&&Fr.copy(Ol,Ra),Ol.toArray(e[1])}}}}function wpt(e,t,n){if(n<=180&&n>0){n=n/180*Math.PI,Xp.fromArray(e[0]),ds.fromArray(e[1]),Ra.fromArray(e[2]),Fr.sub(Zp,ds,Xp),Fr.sub(ef,Ra,ds);var r=Zp.len(),o=ef.len();if(!(r<.001||o<.001)){Zp.scale(1/r),ef.scale(1/o);var a=Zp.dot(t),s=Math.cos(n);if(a=c)Fr.copy(Ol,Ra);else{Ol.scaleAndAdd(ef,l/Math.tan(Math.PI/2-h));var p=Ra.x!==ds.x?(Ol.x-ds.x)/(Ra.x-ds.x):(Ol.y-ds.y)/(Ra.y-ds.y);if(isNaN(p))return;p<0?Fr.copy(Ol,ds):p>1&&Fr.copy(Ol,Ra)}Ol.toArray(e[1])}}}}function y9(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 Cpt(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=Rj(r[0],r[1]),a=Rj(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=f7([],r[1],r[0],s/o),c=f7([],r[1],r[2],s/a),f=f7([],l,c,.5);e.bezierCurveTo(l[0],l[1],l[0],l[1],f[0],f[1]),e.bezierCurveTo(c[0],c[1],c[0],c[1],r[2][0],r[2][1])}else for(var h=1;h0){E(N*D,0,s);var L=N+R;L<0&&_(-L*D,1)}else _(-R*D,1)}}function E(R,M,D){R!==0&&(f=!0);for(var N=M;N0)for(var L=0;L0;L--){var V=D[L-1]*W;E(-V,L,s)}}}function A(R){var M=R<0?-1:1;R=Math.abs(R);for(var D=Math.ceil(R/(s-1)),N=0;N0?E(D,0,N+1):E(-D,s-N-1,s),R-=D,R<=0)return}return f}function Ipt(e,t,n,r){return Apt(e,"y","height",t,n)}function Lpt(e){var t=[];e.sort(function(S,k){return k.priority-S.priority});var n=new to(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}}V.prevElClipPaths&&C.restore()};if(x)if(x.length===0)D=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 f=l.dom;f.nextSibling?s.insertBefore(n.dom,f.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?HE:0),this._needsManuallyCompositing),h.__builtin__||sH("ZLevel "+f+" 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&Zu&&!o.__inHover&&(h.__dirty=!0,h.incremental&&h.__drawIndex<0&&(h.__drawIndex=c))}n(c),this.eachBuiltinLayer(function(p,m){!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,xt(this._layers,function(n){n.setUnpainted()})},e.prototype.configLayer=function(t,n){if(n){var r=this._layerConfig;r[t]?eo(r[t],n,!0):r[t]=n;for(var o=0;o-1&&(f.style.stroke=f.style.fill,f.style.fill="#fff",f.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})(xd);function iW(e,t){var n=e.mapDimensionsAll("defaultedLabel"),r=n.length;if(r===1){var o=C1(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 oW=(function(e){On(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=x1(n,-1,-1,2,2,null,s);l.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),l.drift=$pt,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(){hI(this.childAt(0))},t.prototype.downplay=function(){pI(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),f=s!==this._symbolType,h=a&&a.disableAnimation;if(f){var p=n.getItemVisual(r,"symbolKeepAspect");this._createSymbol(s,n,r,c,p)}else{var m=this.childAt(0);m.silent=!1;var g={scaleX:c[0]/2,scaleY:c[1]/2};h?m.attr(g):Kl(m,g,l,r),IH(m)}if(this._updateCommon(n,r,c,o,a),f){var m=this.childAt(0);if(!h){var g={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:m.style.opacity}};m.scaleX=m.scaleY=0,m.style.opacity=0,Oc(m,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,f,h,p,m,g,b,S,k,C;if(a&&(f=a.emphasisItemStyle,h=a.blurItemStyle,p=a.selectItemStyle,m=a.focus,g=a.blurScope,S=a.labelStatesModels,k=a.hoverScale,C=a.cursorStyle,b=a.emphasisDisabled),!a||n.hasItemOption){var x=a&&a.itemModel?a.itemModel:n.getItemModel(r),E=x.getModel("emphasis");f=E.getModel("itemStyle").getItemStyle(),p=x.getModel(["select","itemStyle"]).getItemStyle(),h=x.getModel(["blur","itemStyle"]).getItemStyle(),m=E.get("focus"),g=E.get("blurScope"),b=E.get("disabled"),S=Zk(x),k=E.getShallow("scale"),C=x.getShallow("cursor")}var _=n.getItemVisual(r,"symbolRotate");l.attr("rotation",(_||0)*Math.PI/180||0);var A=lge(n.getItemVisual(r,"symbolOffset"),o);A&&(l.x=A[0],l.y=A[1]),C&&l.attr("cursor",C);var R=n.getItemVisual(r,"style"),M=R.fill;if(l instanceof Iv){var D=l.style;l.useStyle(vn({image:D.image,x:D.x,y:D.y,width:D.width,height:D.height},R))}else l.__isEmptyBrush?l.useStyle(vn({},R)):l.useStyle(R),l.style.decal=null,l.setColor(M,s&&s.symbolInnerColor),l.style.strokeNoScale=!0;var N=n.getItemVisual(r,"liftZ"),L=this._z2;N!=null?L==null&&(this._z2=l.z2,l.z2+=N):L!=null&&(l.z2=L,this._z2=null);var B=s&&s.useNameLabel;Xk(l,S,{labelFetcher:c,labelDataIndex:r,defaultText:U,inheritColor:M,defaultOpacity:R.opacity});function U(z){return B?n.getName(z):iW(n,z)}this._sizeX=o[0]/2,this._sizeY=o[1]/2;var W=l.ensureState("emphasis");W.style=f,l.ensureState("select").style=p,l.ensureState("blur").style=h;var V=k==null||k===!0?Math.max(1.1,3/this._sizeY):isFinite(k)&&k>0?+k:1;W.scaleX=this._sizeX*V,W.scaleY=this._sizeY*V,this.setSymbolScale(1),Q2(this,m,g,b)},t.prototype.setSymbolScale=function(n){this.scaleX=this.scaleY=n},t.prototype.fadeOut=function(n,r,o){var a=this.childAt(0),s=Vi(this).dataIndex,l=o&&o.animation;if(this.silent=a.silent=!0,o&&o.fadeLabel){var c=a.getTextContent();c&&gI(c,{style:{opacity:0}},r,{dataIndex:s,removeOpt:l,cb:function(){a.removeTextContent()}})}else a.removeTextContent();gI(a,{style:{opacity:0},scaleX:0,scaleY:0},r,{dataIndex:s,cb:n,removeOpt:l})},t.getSymbolSize=function(n,r){return yft(n.getItemVisual(r,"symbolSize"))},t})(Ha);function $pt(e,t){this.parent.drift(e,t)}function _9(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 Moe(e){return e!=null&&!Cr(e)&&(e={isIgnore:e}),e||{}}function Doe(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:Zk(t),cursorStyle:t.get("cursor")}}var Npt=(function(){function e(t){this.group=new Ha,this._SymbolCtor=t||oW}return e.prototype.updateData=function(t,n){this._progressiveEls=null,n=Moe(n);var r=this.group,o=t.hostModel,a=this._data,s=this._SymbolCtor,l=n.disableAnimation,c=Doe(t),f={disableAnimation:l},h=n.getSymbolPoint||function(p){return t.getItemLayout(p)};a||r.removeAll(),t.diff(a).add(function(p){var m=h(p);if(_9(t,m,p,n)){var g=new s(t,p,c,f);g.setPosition(m),t.setItemGraphicEl(p,g),r.add(g)}}).update(function(p,m){var g=a.getItemGraphicEl(m),b=h(p);if(!_9(t,b,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,f),g.setPosition(b);else{g.updateData(t,p,c,f);var C={x:b[0],y:b[1]};l?g.attr(C):Kl(g,C,o)}r.add(g),t.setItemGraphicEl(p,g)}).remove(function(p){var m=a.getItemGraphicEl(p);m&&m.fadeOut(function(){r.remove(m)},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=Doe(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,n,r){this._progressiveEls=[],r=Moe(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 a0e(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 Fpt(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 jpt(e,t,n,r,o,a,s,l){for(var c=Fpt(e,t),f=[],h=[],p=[],m=[],g=[],b=[],S=[],k=s0e(o,t,s),C=e.getLayout("points")||[],x=t.getLayout("points")||[],E=0;E=o||S<0)break;if(lg(C,x)){if(c){S+=a;continue}break}if(S===n)e[a>0?"moveTo":"lineTo"](C,x),p=C,m=x;else{var E=C-f,_=x-h;if(E*E+_*_<.5){S+=a;continue}if(s>0){for(var A=S+a,R=t[A*2],M=t[A*2+1];R===C&&M===x&&k=r||lg(R,M))g=C,b=x;else{L=R-f,B=M-h;var V=C-f,z=R-C,Y=x-h,oe=M-x,ne=void 0,X=void 0;if(l==="x"){ne=Math.abs(V),X=Math.abs(z);var K=L>0?1:-1;g=C-K*ne*s,b=x,U=C+K*X*s,W=x}else if(l==="y"){ne=Math.abs(Y),X=Math.abs(oe);var re=B>0?1:-1;g=C,b=x-re*ne*s,U=C,W=x+re*X*s}else ne=Math.sqrt(V*V+Y*Y),X=Math.sqrt(z*z+oe*oe),N=X/(X+ne),g=C-L*s*(1-N),b=x-B*s*(1-N),U=C+L*s*N,W=x+B*s*N,U=xp(U,Ep(R,C)),W=xp(W,Ep(M,x)),U=Ep(U,xp(R,C)),W=Ep(W,xp(M,x)),L=U-C,B=W-x,g=C-L*ne/X,b=x-B*ne/X,g=xp(g,Ep(f,C)),b=xp(b,Ep(h,x)),g=Ep(g,xp(f,C)),b=Ep(b,xp(h,x)),L=C-g,B=x-b,U=C+L*X/ne,W=x+B*X/ne}e.bezierCurveTo(p,m,g,b,C,x),p=U,m=W}else e.lineTo(C,x)}f=C,h=x,S+=a}return k}var l0e=(function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e})(),Upt=(function(e){On(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 l0e},t.prototype.buildPath=function(n,r){var o=r.points,a=0,s=o.length/2;if(r.connectNulls){for(;s>0&&lg(o[s*2-2],o[s*2-1]);s--);for(;a=0){var _=f?(b-c)*E+c:(g-l)*E+l;return f?[n,_]:[_,n]}l=g,c=b;break;case s.C:g=a[p++],b=a[p++],S=a[p++],k=a[p++],C=a[p++],x=a[p++];var A=f?rI(l,g,S,C,n,h):rI(c,b,k,x,n,h);if(A>0)for(var R=0;R=0){var _=f?Oa(c,b,k,x,M):Oa(l,g,S,C,M);return f?[n,_]:[_,n]}}l=C,c=x;break}}},t})(so),Vpt=(function(e){On(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(l0e),zpt=(function(e){On(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 Vpt},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&&lg(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 Kpt(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),f=br(a.stops,function(E){return{coord:c.toGlobalCoord(c.dataToCoord(E.value)),color:E.color}}),h=f.length,p=a.outerColors.slice();h&&f[0].coord>f[h-1].coord&&(f.reverse(),p.reverse());var m=Gpt(f,o==="x"?n.getWidth():n.getHeight()),g=m.length;if(!g&&h)return f[0].coord<0?p[1]?p[1]:f[h-1].color:p[0]?p[0]:f[0].color;var b=10,S=m[0].coord-b,k=m[g-1].coord+b,C=k-S;if(C<.001)return"transparent";xt(m,function(E){E.offset=(E.coord-S)/C}),m.push({offset:g?m[g-1].offset:.5,color:p[1]||"transparent"}),m.unshift({offset:g?m[0].offset:.5,color:p[0]||"transparent"});var x=new sme(0,0,0,0,m,!0);return x[o]=S,x[o+"2"]=k,x}}}function qpt(e,t,n){var r=e.get("showAllSymbol"),o=r==="auto";if(!(r&&!o)){var a=n.getAxesByScale("ordinal")[0];if(a&&!(o&&Ypt(a,t))){var s=t.mapDimension(a.dim),l={};return xt(a.getViewLabels(),function(c){var f=a.scale.getRawOrdinalNumber(c.tickValue);l[f]=1}),function(c){return!l.hasOwnProperty(t.get(s,c))}}}}function Ypt(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 Xpt(e,t){return isNaN(e)||isNaN(t)}function Zpt(e){for(var t=e.length/2;t>0&&Xpt(e[t*2-2],e[t*2-1]);t--);return t-1}function Foe(e,t){return[e[t*2],e[t*2+1]]}function Qpt(e,t,n){for(var r=e.length/2,o=n==="x"?0:1,a,s,l=0,c=-1,f=0;f=t||a>=t&&s<=t){c=f;break}l=f,a=s}return{range:[l,c],t:(t-a)/(s-a)}}function d0e(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t0&&n.get(["emphasis","lineStyle","width"])==="bolder"){var X=b.getState("emphasis").style;X.lineWidth=+b.style.lineWidth+1}Vi(b).seriesIndex=n.seriesIndex,Q2(b,Y,oe,ne);var K=Boe(n.get("smooth")),re=n.get("smoothMonotone");if(b.setShape({smooth:K,smoothMonotone:re,connectNulls:M}),S){var ee=l.getCalculationInfo("stackedOnSeries"),le=0;S.useStyle(no(f.getAreaStyle(),{fill:U,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),ee&&(le=Boe(ee.get("smooth"))),S.setShape({smooth:K,stackedOnSmooth:le,smoothMonotone:re,connectNulls:M}),vI(S,n,"areaStyle"),Vi(S).seriesIndex=n.seriesIndex,Q2(S,Y,oe,ne)}var Q=this._changePolyState;l.eachItemGraphicEl(function(ye){ye&&(ye.onHoverStateChange=Q)}),this._polyline.onHoverStateChange=Q,this._data=l,this._coordSys=a,this._stackedOnPoints=A,this._points=h,this._step=L,this._valueOrigin=E,n.get("triggerLineEvent")&&(this.packEventData(n,b),S&&this.packEventData(n,S))},t.prototype.packEventData=function(n,r){Vi(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=Cg(s,a);if(this._changePolyState("emphasis"),!(l instanceof Array)&&l!=null&&l>=0){var c=s.getLayout("points"),f=s.getItemGraphicEl(l);if(!f){var h=c[l*2],p=c[l*2+1];if(isNaN(h)||isNaN(p)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(h,p))return;var m=n.get("zlevel")||0,g=n.get("z")||0;f=new oW(s,l),f.x=h,f.y=p,f.setZ(m,g);var b=f.getSymbolPath().getTextContent();b&&(b.zlevel=m,b.z=g,b.z2=this._polyline.z2+1),f.__temp=!0,s.setItemGraphicEl(l,f),f.stopSymbolAnimation(!0),this.group.add(f)}f.highlight()}else $c.prototype.highlight.call(this,n,r,o,a)},t.prototype.downplay=function(n,r,o,a){var s=n.getData(),l=Cg(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 $c.prototype.downplay.call(this,n,r,o,a)},t.prototype._changePolyState=function(n){var r=this._polygon;Kre(this._polyline,n),r&&Kre(r,n)},t.prototype._newPolyline=function(n){var r=this._polyline;return r&&this._lineGroup.remove(r),r=new Upt({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 zpt({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 f=n.hostModel,h=f.get("animationDuration");Yr(h)&&(h=h(null));var p=f.get("animationDelay")||0,m=Yr(p)?p(null):p;n.eachItemGraphicEl(function(g,b){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,A=r.pointToCoord(k);a?(C=_.startAngle,x=_.endAngle,E=-A[1]/180*Math.PI):(C=_.r0,x=_.r,E=A[0])}else{var R=o;a?(C=R.x,x=R.x+R.width,E=g.x):(C=R.y+R.height,x=R.y,E=g.y)}var M=x===C?0:(E-C)/(x-C);c&&(M=1-M);var D=Yr(p)?p(b):h*M+m,N=S.getSymbolPath(),L=N.getTextContent();S.attr({scaleX:0,scaleY:0}),S.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:D}),L&&L.animateFrom({style:{opacity:0}},{duration:300,delay:D}),N.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(n,r,o){var a=n.getModel("endLabel");if(d0e(n)){var s=n.getData(),l=this._polyline,c=s.getLayout("points");if(!c){l.removeTextContent(),this._endLabel=null;return}var f=this._endLabel;f||(f=this._endLabel=new Wa({z2:200}),f.ignoreClip=!0,l.setTextContent(this._endLabel),l.disableLabelAnimation=!0);var h=Zpt(c);h>=0&&(Xk(l,Zk(n,"endLabel"),{inheritColor:o,labelFetcher:n,labelDataIndex:h,defaultText:function(p,m,g){return g!=null?o0e(s,g):iW(s,p)},enableTextSetter:!0},Jpt(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 f=this._endLabel,h=this._polyline;if(f){n<1&&a.originalX==null&&(a.originalX=f.x,a.originalY=f.y);var p=o.getLayout("points"),m=o.hostModel,g=m.get("connectNulls"),b=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,A=(C?S:0)*(x?-1:1),R=(C?0:-S)*(x?-1:1),M=C?"x":"y",D=Qpt(p,_,M),N=D.range,L=N[1]-N[0],B=void 0;if(L>=1){if(L>1&&!g){var U=Foe(p,N[0]);f.attr({x:U[0]+A,y:U[1]+R}),s&&(B=m.getRawValue(N[0]))}else{var U=h.getPointOn(_,M);U&&f.attr({x:U[0]+A,y:U[1]+R});var W=m.getRawValue(N[0]),V=m.getRawValue(N[1]);s&&(B=Oat(o,b,W,V,D.t))}a.lastFrameIndex=N[0]}else{var z=n===1||a.lastFrameIndex>0?N[0]:0,U=Foe(p,z);s&&(B=m.getRawValue(z)),f.attr({x:U[0]+A,y:U[1]+R})}if(s){var Y=EL(f);typeof Y.setLabelText=="function"&&Y.setLabelText(B)}}},t.prototype._doUpdateAnimation=function(n,r,o,a,s,l,c){var f=this._polyline,h=this._polygon,p=n.hostModel,m=jpt(this._data,n,this._stackedOnPoints,r,this._coordSys,o,this._valueOrigin),g=m.current,b=m.stackedOnCurrent,S=m.next,k=m.stackedOnNext;if(s&&(b=Tp(m.stackedOnCurrent,m.current,o,s,c),g=Tp(m.current,null,o,s,c),k=Tp(m.stackedOnNext,m.next,o,s,c),S=Tp(m.next,null,o,s,c)),Noe(g,S)>3e3||h&&Noe(b,k)>3e3){f.stopAnimation(),f.setShape({points:S}),h&&(h.stopAnimation(),h.setShape({points:S,stackedOnPoints:k}));return}f.shape.__points=m.current,f.shape.points=g;var C={shape:{points:S}};m.current!==g&&(C.shape.__points=m.next),f.stopAnimation(),Kl(f,C,p),h&&(h.setShape({points:g,stackedOnPoints:b}),h.stopAnimation(),Kl(h,{shape:{stackedOnPoints:k}},p),f.shape.points!==h.shape.points&&(h.shape.points=f.shape.points));for(var x=[],E=m.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(),f=s.getOtherAxis(c),h=c.getExtent(),p=r.getDevicePixelRatio(),m=Math.abs(h[1]-h[0])*(p||1),g=Math.round(l/m);if(isFinite(g)&&g>1){a==="lttb"?t.setData(o.lttbDownSample(o.mapDimension(f.dim),1/g)):a==="minmax"&&t.setData(o.minmaxDownSample(o.mapDimension(f.dim),1/g));var b=void 0;vr(a)?b=nvt[a]:Yr(a)&&(b=a),b&&t.setData(o.downSample(o.mapDimension(f.dim),1/g,b,rvt))}}}}}function h0e(e){e.registerChartView(evt),e.registerSeriesModel(Opt),e.registerLayout(tvt("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,f0e("line"))}var wU=(function(e){On(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 QH(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)xt(a.getAxes(),function(m,g){if(m.type==="category"&&r!=null){var b=m.getTicksCoords(),S=m.getTickModel().get("alignWithLabel"),k=s[g],C=r[g]==="x1"||r[g]==="y1";if(C&&!S&&(k+=1),b.length<2)return;if(b.length===2){l[g]=m.toGlobalCoord(m.getExtent()[C?1:0]);return}for(var x=void 0,E=void 0,_=1,A=0;Ak){E=(R+x)/2;break}A===1&&(_=M-b[0].tickValue)}E==null&&(x?x&&(E=b[b.length-1].coord):E=b[0].coord),l[g]=m.toGlobalCoord(E)}});else{var c=this.getData(),f=c.getLayout("offset"),h=c.getLayout("size"),p=a.getBaseAxis().isHorizontal()?0:1;l[p]+=f+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})(xd);xd.registerClass(wU);var ivt=(function(e){On(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 QH(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=pme(wU.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})(wU),ovt=(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})(),joe=(function(e){On(t,e);function t(n){var r=e.call(this,n)||this;return r.type="sausage",r}return t.prototype.getDefaultShape=function(){return new ovt},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,f=s+c,h=r.startAngle,p=r.endAngle,m=r.clockwise,g=Math.PI*2,b=m?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){yI(a,n,Vi(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})($c),Uoe={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=k9(t.x,e.x),l=w9(t.x+t.width,o),c=k9(t.y,e.y),f=w9(t.y+t.height,a),h=lo?l:s,t.y=p&&c>a?f:c,t.width=h?0:l-s,t.height=p?0:f-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=w9(t.r,e.r),a=k9(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}},Voe={cartesian2d:function(e,t,n,r,o,a,s,l,c){var f=new Ks({shape:vn({},r),z2:1});if(f.__dataIndex=n,f.name="item",a){var h=f.shape,p=o?"height":"width";h[p]=0}return f},polar:function(e,t,n,r,o,a,s,l,c){var f=!o&&c?joe:Lv,h=new f({shape:r,z2:1});h.name="item";var p=p0e(o);if(h.calculateTextPosition=svt(p,{isRoundCap:f===joe}),a){var m=h.shape,g=o?"r":"endAngle",b={};m[g]=o?r.r0:r.startAngle,b[g]=r[g],(l?Kl:Oc)(h,{shape:b},a)}return h}};function cvt(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 zoe(e,t,n,r,o,a,s,l){var c,f;a?(f={x:r.x,width:r.width},c={y:r.y,height:r.height}):(f={y:r.y,height:r.height},c={x:r.x,width:r.width}),l||(s?Kl:Oc)(n,{shape:c},t,o,null);var h=t?e.baseAxis.model:null;(s?Kl:Oc)(n,{shape:f},h,o)}function Hoe(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 hvt(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function p0e(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 Goe(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=SS(r.getModel("itemStyle"),h,!0);vn(h,p),e.setShape(h)}}else{var f=r.get(["itemStyle","borderRadius"])||0;e.setShape("r",f)}e.useStyle(c);var m=r.getShallow("cursor");m&&e.attr("cursor",m);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",b=Zk(r);Xk(e,b,{labelFetcher:a,labelDataIndex:n,defaultText:iW(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,avt(e,k==="outside"?g:k,p0e(s),r.get(["label","rotate"]))}Yut(S,b,a.getRawValue(n),function(x){return o0e(t,x)});var C=r.getModel(["emphasis"]);Q2(e,C.get("focus"),C.get("blurScope"),C.get("disabled")),vI(e,r),hvt(o)&&(e.style.fill="none",e.style.stroke="none",xt(e.states,function(x){x.style&&(x.style.fill=x.style.stroke="none")}))}function pvt(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 vvt=(function(){function e(){}return e})(),Koe=(function(e){On(t,e);function t(n){var r=e.call(this,n)||this;return r.type="largeBar",r}return t.prototype.getDefaultShape=function(){return new vvt},t.prototype.buildPath=function(n,r){for(var o=r.points,a=this.baseDimIdx,s=1-this.baseDimIdx,l=[],c=[],f=this.barWidth,h=0;h=0?n:null},30,!1);function mvt(e,t,n){for(var r=e.baseDimIdx,o=1-r,a=e.shape.points,s=e.largeDataIndices,l=[],c=[],f=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 v0e(e,t,n){if(sW(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 gvt(e,t,n){var r=e.type==="polar"?Lv:Ks;return new r({shape:v0e(t,n,e),silent:!0,z2:0})}function m0e(e){e.registerChartView(uvt),e.registerSeriesModel(ivt),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,xs(jht,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Uht("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,f0e("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 Xoe=Math.PI*2,qE=Math.PI/180;function g0e(e,t){return k1(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function y0e(e,t){var n=g0e(e,t),r=e.get("center"),o=e.get("radius");Xn(o)||(o=[0,o]);var a=Go(n.width,t.getWidth()),s=Go(n.height,t.getHeight()),l=Math.min(a,s),c=Go(o[0],l/2),f=Go(o[1],l/2),h,p,m=e.coordinateSystem;if(m){var g=m.dataToPoint(r);h=g[0]||0,p=g[1]||0}else Xn(r)||(r=[r,r]),h=Go(r[0],a)+n.x,p=Go(r[1],s)+n.y;return{cx:h,cy:p,r0:c,r:f}}function yvt(e,t,n){t.eachSeriesByType(e,function(r){var o=r.getData(),a=o.mapDimension("value"),s=g0e(r,n),l=y0e(r,n),c=l.cx,f=l.cy,h=l.r,p=l.r0,m=-r.get("startAngle")*qE,g=r.get("endAngle"),b=r.get("padAngle")*qE;g=g==="auto"?m-Xoe:-g*qE;var S=r.get("minAngle")*qE,k=S+b,C=0;o.each(a,function(oe){!isNaN(oe)&&C++});var x=o.getSum(a),E=Math.PI/(x||C)*2,_=r.get("clockwise"),A=r.get("roseType"),R=r.get("stillShowZeroSum"),M=o.getDataExtent(a);M[0]=0;var D=_?1:-1,N=[m,g],L=D*b/2;Fve(N,!_),m=N[0],g=N[1];var B=b0e(r);B.startAngle=m,B.endAngle=g,B.clockwise=_;var U=Math.abs(g-m),W=U,V=0,z=m;if(o.setLayout({viewRect:s,r:h}),o.each(a,function(oe,ne){var X;if(isNaN(oe)){o.setItemLayout(ne,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:_,cx:c,cy:f,r0:p,r:A?NaN:h});return}A!=="area"?X=x===0&&R?E:oe*E:X=U/C,XX?(re=z+D*X/2,ee=re):(re=z+L,ee=K-L),o.setItemLayout(ne,{angle:X,startAngle:re,endAngle:ee,clockwise:_,cx:c,cy:f,r0:p,r:A?Kj(oe,M,[p,h]):h}),z=K}),Wn?C:k,A=Math.abs(E.label.y-n);if(A>=_.maxY){var R=E.label.x-t-E.len2*o,M=r+E.len,D=Math.abs(R)e.unconstrainedWidth?null:g:null;r.setStyle("width",b)}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 C9(e){return e.position==="center"}function kvt(e){var t=e.getData(),n=[],r,o,a=!1,s=(e.get("minShowLabelAngle")||0)*_vt,l=t.getLayout("viewRect"),c=t.getLayout("r"),f=l.width,h=l.x,p=l.y,m=l.height;function g(R){R.ignore=!0}function b(R){if(!R.ignore)return!0;for(var M in R.states)if(R.states[M].ignore===!1)return!0;return!1}t.each(function(R){var M=t.getItemGraphicEl(R),D=M.shape,N=M.getTextContent(),L=M.getTextGuideLine(),B=t.getItemModel(R),U=B.getModel("label"),W=U.get("position")||B.get(["emphasis","label","position"]),V=U.get("distanceToLabelLine"),z=U.get("alignTo"),Y=Go(U.get("edgeDistance"),f),oe=U.get("bleedMargin"),ne=B.getModel("labelLine"),X=ne.get("length");X=Go(X,f);var K=ne.get("length2");if(K=Go(K,f),Math.abs(D.endAngle-D.startAngle)0?"right":"left":ee>0?"left":"right"}var Ne=Math.PI,qe=0,Je=U.get("rotate");if(So(Je))qe=Je*(Ne/180);else if(W==="center")qe=0;else if(Je==="radial"||Je===!0){var ot=ee<0?-re+Ne:-re;qe=ot}else if(Je==="tangential"&&W!=="outside"&&W!=="outer"){var yt=Math.atan2(ee,le);yt<0&&(yt=Ne*2+yt);var at=le>0;at&&(yt=Ne+yt),qe=yt-Ne}if(a=!!qe,N.x=Q,N.y=ye,N.rotation=qe,N.setStyle({verticalAlign:"middle"}),Ce){N.setStyle({align:ve});var Wt=N.states.select;Wt&&(Wt.x+=N.x,Wt.y+=N.y)}else{var ut=N.getBoundingRect().clone();ut.applyTransform(N.getComputedTransform());var vt=(N.style.margin||0)+2.1;ut.y-=vt/2,ut.height+=vt,n.push({label:N,labelLine:L,position:W,len:X,len2:K,minTurnAngle:ne.get("minTurnAngle"),maxSurfaceAngle:ne.get("maxSurfaceAngle"),surfaceNormal:new Fr(ee,le),linePoints:be,textAlign:ve,labelDistance:V,labelAlignTo:z,edgeDistance:Y,bleedMargin:oe,rect:ut,unconstrainedWidth:ut.width,labelStyleWidth:N.style.width})}M.setTextConfig({inside:Ce})}}),!a&&e.get("avoidLabelOverlap")&&Svt(n,r,o,c,f,m,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})($c);function xvt(e,t,n){t=Xn(t)&&{coordDimensions:t}||vn({encodeDefine:e.getEncode()},t);var r=e.getSource(),o=Bge(r,t).dimensions,a=new Nge(o,e);return a.initData(r,n),a}var Evt=(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})(),Tvt=Ls(),Avt=(function(e){On(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 Evt(Eo(this.getData,this),Eo(this.getRawData,this)),this._defaultLabelLine(n)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return xvt(this,{coordDimensions:["value"],encodeDefaulter:xs(kct,this)})},t.prototype.getDataParams=function(n){var r=this.getData(),o=Tvt(r),a=o.seats;if(!a){var s=[];r.each(r.mapDimension("value"),function(c){s.push(c)}),a=o.seats=mat(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){qj(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})(xd);function Ivt(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!(So(s)&&!isNaN(s)&&s<0)})}}}function S0e(e){e.registerChartView(Cvt),e.registerSeriesModel(Avt),oft("pie",e.registerAction),e.registerLayout(xs(yvt,"pie")),e.registerProcessor(bvt("pie")),e.registerProcessor(Ivt("pie"))}var Lvt=(function(e){On(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})(io),CU=(function(e){On(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",md).models[0]},t.type="cartesian2dAxis",t})(io);wf(CU,cpt);var k0e={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)"]}}},Pvt=eo({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},k0e),aW=eo({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}}},k0e),Rvt=eo({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},aW),Mvt=no({logBase:10},aW);const Dvt={category:Pvt,value:aW,time:Rvt,log:Mvt};var Ovt={value:1,category:1,time:1,log:1};function Qoe(e,t,n,r){xt(Ovt,function(o,a){var s=eo(eo({},Dvt[a],!0),r,!0),l=(function(c){On(f,c);function f(){var h=c!==null&&c.apply(this,arguments)||this;return h.type=t+"Axis."+a,h}return f.prototype.mergeDefaultAndTheme=function(h,p){var m=tk(this),g=m?DL(h):{},b=p.getTheme();eo(h,b.get(a+"Axis")),eo(h,this.getDefaultOption()),h.type=Joe(h),m&&w1(h,g,m)},f.prototype.optionUpdated=function(){var h=this.option;h.type==="category"&&(this.__ordinalMeta=_U.createByAxisModel(this))},f.prototype.getCategories=function(h){var p=this.option;if(p.type==="category")return h?p.data:this.__ordinalMeta.categories},f.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},f.type=t+"Axis."+a,f.defaultOption=s,f})(n);e.registerComponentModel(l)}),e.registerSubTypeDefaulter(t+"Axis",Joe)}function Joe(e){return e.type||(e.data?"category":"value")}var $vt=(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 br(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),Da(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})(),xU=["x","y"];function ese(e){return e.type==="interval"||e.type==="time"}var Nvt=(function(e){On(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="cartesian2d",n.dimensions=xU,n}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var n=this.getAxis("x").scale,r=this.getAxis("y").scale;if(!(!ese(n)||!ese(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],f=a[1]-a[0];if(!(!c||!f)){var h=(l[0]-s[0])/c,p=(l[1]-s[1])/f,m=s[0]-o[0]*h,g=s[1]-a[0]*p,b=this._transform=[h,0,0,p,m,g];this._invTransform=dH([],b)}}},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 to(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 Dc(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]),f=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]),f),Math.max(l[0],l[1])),r},t.prototype.pointToData=function(n,r){var o=[];if(this._invTransform)return Dc(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 to(a,s,l,c)},t})($vt),Bvt=(function(e){On(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})(_pt);function EU(e,t,n){n=n||{};var r=e.coordinateSystem,o=t.axis,a={},s=o.getAxesOnZeroOf()[0],l=o.position,c=s?"onZero":l,f=o.dim,h=r.getRect(),p=[h.x,h.x+h.width,h.y,h.y+h.height],m={left:0,right:1,top:0,bottom:1,onZero:2},g=t.get("offset")||0,b=f==="x"?[p[2]-g,p[3]+g]:[p[0]-g,p[1]+g];if(s){var S=s.toGlobalCoord(s.dataToCoord(0));b[m.onZero]=Math.max(Math.min(S,b[1]),b[0])}a.position=[f==="y"?b[m[c]]:p[0],f==="x"?b[m[c]]:p[3]],a.rotation=Math.PI/2*(f==="x"?0:1);var k={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=k[l],a.labelOffset=s?b[m[l]]-b[m.onZero]:0,t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),q2(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 tse(e){return e.get("coordinateSystem")==="cartesian2d"}function nse(e){var t={xAxisModel:null,yAxisModel:null};return xt(t,function(n,r){var o=r.replace(/Model$/,""),a=e.getReferringComponents(o,md).models[0];t[r]=a}),t}var x9=Math.log;function Fvt(e,t,n){var r=eb.prototype,o=r.getTicks.call(n),a=r.getTicks.call(n,!0),s=o.length-1,l=r.getInterval.call(n),c=qge(e,t),f=c.extent,h=c.fixMin,p=c.fixMax;if(e.type==="log"){var m=x9(e.base);f=[x9(f[0])/m,x9(f[1])/m]}e.setExtent(f[0],f[1]),e.calcNiceExtent({splitNumber:s,fixMin:h,fixMax:p});var g=r.getExtent.call(e);h&&(f[0]=g[0]),p&&(f[1]=g[1]);var b=r.getInterval.call(e),S=f[0],k=f[1];if(h&&p)b=(k-S)/s;else if(h)for(k=f[0]+b*s;kf[0]&&isFinite(S)&&isFinite(f[0]);)b=g9(b),S=f[1]-b*s;else{var C=e.getTicks().length-1;C>s&&(b=g9(b));var x=b*s;k=Math.ceil(f[1]/b)*b,S=Gs(k-x),S<0&&f[0]>=0?(S=0,k=Gs(x)):k>0&&f[1]<=0&&(k=0,S=-Gs(x))}var E=(o[0].value-a[0].value)/l,_=(o[s].value-a[s].value)/l;r.setExtent.call(e,S+b*E,k+b*_),r.setInterval.call(e,b),(E||_)&&r.setNiceExtent.call(e,S+b,k-b)}var jvt=(function(){function e(t,n,r){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=xU,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=Ko(s),f=c.length;if(f){for(var h=[],p=f-1;p>=0;p--){var m=+c[p],g=s[m],b=g.model,S=g.scale;SU(S)&&b.get("alignTicks")&&b.get("interval")==null?h.push(g):(Toe(S,b),SU(S)&&(l=g))}h.length&&(l||(l=h.pop(),Toe(l.scale,l.model)),xt(h,function(k){Fvt(k.scale,k.model,l.scale)}))}}o(r.x),o(r.y);var a={};xt(r.x,function(s){rse(r,"y",s,a)}),xt(r.y,function(s){rse(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=k1(o,{width:n.getWidth(),height:n.getHeight()});this._rect=s;var l=this._axesList;c(),a&&(xt(l,function(f){if(!f.model.get(["axisLabel","inside"])){var h=apt(f);if(h){var p=f.isHorizontal()?"height":"width",m=f.model.get(["axisLabel","margin"]);s[p]-=h[p]+m,f.position==="top"?s.y+=h.height+m:f.position==="left"&&(s.x+=h.width+m)}}}),c()),xt(this._coordsList,function(f){f.calcAffineTransform()});function c(){xt(l,function(f){var h=f.isHorizontal(),p=h?[0,s.width]:[0,s.height],m=f.inverse?1:0;f.setExtent(p[m],p[1-m]),Uvt(f,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]}Cr(t)&&(n=t.yAxisIndex,t=t.xAxisIndex);for(var o=0,a=this._coordsList;o0?"top":"bottom",a="center"):uI(o-Qp)?(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})(),ose={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],f=l[0]>c[0];s&&(Dc(l,l,s),Dc(c,c,s));var h=vn({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),p=new gv({shape:{x1:l[0],y1:l[1],x2:c[0],y2:c[1]},style:h,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});J2(p.shape,p.style.lineWidth),p.anid="line",n.add(p);var m=t.get(["axisLine","symbol"]);if(m!=null){var g=t.get(["axisLine","symbolSize"]);vr(m)&&(m=[m,m]),(vr(g)||So(g))&&(g=[g,g]);var b=lge(t.get(["axisLine","symbolOffset"])||0,g),S=g[0],k=g[1];xt([{rotate:e.rotation+Math.PI/2,offset:b[0],r:0},{rotate:e.rotation-Math.PI/2,offset:b[1],r:Math.sqrt((l[0]-c[0])*(l[0]-c[0])+(l[1]-c[1])*(l[1]-c[1]))}],function(C,x){if(m[x]!=="none"&&m[x]!=null){var E=x1(m[x],-S/2,-k/2,S,k,h.stroke,!0),_=C.r+C.offset,A=f?c:l;E.attr({rotation:C.rotate,x:A[0]+_*Math.cos(e.rotation),y:A[1]-_*Math.sin(e.rotation),silent:!0,z2:11}),n.add(E)}})}}},axisTickLabel:function(e,t,n,r){var o=Hvt(n,r,t,e),a=Gvt(n,r,t,e);if(zvt(t,a,o),Wvt(n,r,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var s=Tpt(br(a,function(l){return{label:l,priority:l.z2,defaultAttr:{ignore:l.ignore}}}));Lpt(s)}},axisName:function(e,t,n,r){var o=q2(e.axisName,t.get("name"));if(o){var a=t.get("nameLocation"),s=e.nameDirection,l=t.getModel("nameTextStyle"),c=t.get("nameGap")||0,f=t.axis.getExtent(),h=f[0]>f[1]?-1:1,p=[a==="start"?f[0]-h*c:a==="end"?f[1]+h*c:(f[0]+f[1])/2,ase(a)?e.labelOffset+s*c:0],m,g=t.get("nameRotate");g!=null&&(g=g*Qp/180);var b;ase(a)?m=av.innerTextLayout(e.rotation,g??e.rotation,s):(m=Vvt(e.rotation,a,g||0,f),b=e.axisNameAvailableWidth,b!=null&&(b=Math.abs(b/Math.sin(m.rotation)),!isFinite(b)&&(b=null)));var S=l.getFont(),k=t.get("nameTruncate",!0)||{},C=k.ellipsis,x=q2(e.nameTruncateMaxWidth,k.maxWidth,b),E=new Wa({x:p[0],y:p[1],rotation:m.rotation,silent:av.isLabelSilent(t),style:yv(l,{text:o,font:S,overflow:"truncate",width:x,ellipsis:C,fill:l.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:l.get("align")||m.textAlign,verticalAlign:l.get("verticalAlign")||m.textVerticalAlign}),z2:1});if(wL({el:E,componentModel:t,itemName:o}),E.__fullText=o,E.anid="name",t.get("triggerEvent")){var _=av.makeAxisEventDataBase(t);_.targetType="axisName",_.name=o,Vi(E).eventData=_}r.add(E),E.updateTransform(),n.add(E),E.decomposeTransform()}}};function Vvt(e,t,n,r){var o=Eve(n-e),a,s,l=r[0]>r[1],c=t==="start"&&!l||t!=="start"&&l;return uI(o-Qp/2)?(s=c?"bottom":"top",a="center"):uI(o-Qp*1.5)?(s=c?"top":"bottom",a="center"):(s="middle",oQp/2?a=c?"left":"right":a=c?"right":"left"),{rotation:o,textAlign:a,textVerticalAlign:s}}function zvt(e,t,n){if(!Yge(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],f=n[0],h=n[1],p=n[n.length-1],m=n[n.length-2];r===!1?(yc(a),yc(f)):sse(a,s)&&(r?(yc(s),yc(h)):(yc(a),yc(f))),o===!1?(yc(l),yc(p)):sse(c,l)&&(o?(yc(c),yc(m)):(yc(l),yc(p)))}}function yc(e){e&&(e.ignore=!0)}function sse(e,t){var n=e&&e.getBoundingRect().clone(),r=t&&t.getBoundingRect().clone();if(!(!n||!r)){var o=uH([]);return cH(o,o,-e.rotation),n.applyTransform(Xy([],o,e.getLocalTransform())),r.applyTransform(Xy([],o,t.getLocalTransform())),n.intersect(r)}}function ase(e){return e==="middle"||e==="center"}function w0e(e,t,n,r,o){for(var a=[],s=[],l=[],c=0;c=0||e===t}function Qvt(e){var t=lW(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=TU(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=lW(t).seriesDataCount,f=o.getExtent();return Math.abs(f[0]-f[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=$m(t).pointerEl=new Hut[a.type](cse(n.pointer));t.add(s)}},e.prototype.createLabelEl=function(t,n,r,o){if(n.label){var a=$m(t).labelEl=new Wa(cse(n.label));t.add(a),fse(a,o)}},e.prototype.updatePointerEl=function(t,n,r){var o=$m(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=$m(t).labelEl;a&&(a.setStyle(n.label.style),r(a,{x:n.label.x,y:n.label.y}),fse(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=RH(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(f){lve(f.event)},onmousedown:A9(this._onHandleDragMove,this,0,0),drift:A9(this._onHandleDragMove,this),ondragend:A9(this._onHandleDragEnd,this)}),r.add(o)),hse(o,n,!1),o.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var c=a.get("size");Xn(c)||(c=[c,c]),o.scaleX=c[0]/2,o.scaleY=c[1]/2,ege(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,l)}},e.prototype._moveHandleToValue=function(t,n){dse(this._axisPointerModel,!n&&this._moveAnimation,this._handle,I9(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(I9(r),[t,n],this._axisModel,this._axisPointerModel);this._payloadInfo=o,r.stopAnimation(),r.attr(I9(o)),$m(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),dU(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 dse(e,t,n,r){T0e($m(n).lastProp,r)||($m(n).lastProp=r,t?Kl(n,r,e):(n.stopAnimation(),n.attr(r)))}function T0e(e,t){if(Cr(e)&&Cr(t)){var n=!0;return xt(t,function(r,o){n=n&&T0e(e[o],r)}),!!n}else return e===t}function fse(e,t){e[t.get(["label","show"])?"show":"hide"]()}function I9(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function hse(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 umt(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 cmt(e,t,n,r,o){var a=n.get("value"),s=A0e(a,t.axis,t.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),l=n.getModel("label"),c=ML(l.get("padding")||0),f=l.getFont(),h=pH(s,f),p=o.position,m=h.width+c[1]+c[3],g=h.height+c[0]+c[2],b=o.align;b==="right"&&(p[0]-=m),b==="center"&&(p[0]-=m/2);var S=o.verticalAlign;S==="bottom"&&(p[1]-=g),S==="middle"&&(p[1]-=g/2),dmt(p,m,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:yv(l,{text:s,font:f,fill:l.getTextColor(),padding:c,backgroundColor:k}),z2:10}}function dmt(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 A0e(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:nW(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};xt(r,function(c){var f=n.getSeriesByIndex(c.seriesIndex),h=c.dataIndexInside,p=f&&f.getDataParams(h);p&&l.seriesData.push(p)}),vr(s)?a=s.replace("{value}",a):Yr(s)&&(a=s(l))}return a}function I0e(e,t,n){var r=Yy();return cH(r,r,n.rotation),$j(r,r,n.position),PH([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function fmt(e,t,n,r,o,a){var s=av.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=o.get(["label","margin"]),cmt(t,r,o,a,{position:I0e(r.axis,e,n),align:s.textAlign,verticalAlign:s.textVerticalAlign})}function hmt(e,t,n){return n=n||0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function pmt(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}var vmt=(function(e){On(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,f=a.get("type"),h=pse(c,l).getOtherAxis(l).getGlobalExtent(),p=l.toGlobalCoord(l.dataToCoord(r,!0));if(f&&f!=="none"){var m=umt(a),g=mmt[f](l,p,h);g.style=m,n.graphicKey=g.type,n.pointer=g}var b=EU(c.model,o);fmt(r,n,b,o,a,s)},t.prototype.getHandleTransform=function(n,r,o){var a=EU(r.axis.grid.model,r,{labelInside:!1});a.labelMargin=o.get(["handle","margin"]);var s=I0e(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),f=pse(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 m=(f[1]+f[0])/2,g=[m,m];g[h]=p[h];var b=[{verticalAlign:"middle"},{align:"center"}];return{x:p[0],y:p[1],rotation:n.rotation,cursorPoint:g,tooltipOption:b[h]}},t})(lmt);function pse(e,t){var n={};return n[t.dim+"AxisIndex"]=t.index,e.getCartesian(n)}var mmt={line:function(e,t,n){var r=hmt([t,n[0]],[t,n[1]],vse(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:pmt([t-r/2,n[0]],[r,o],vse(e))}}};function vse(e){return e.dim==="x"?0:1}var gmt=(function(e){On(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})(io),bh=Ls(),ymt=xt;function L0e(e,t,n){if(!$r.node){var r=t.getZr();bh(r).records||(bh(r).records={}),bmt(r,t);var o=bh(r).records[e]||(bh(r).records[e]={});o.handler=n}}function bmt(e,t){if(bh(e).initialized)return;bh(e).initialized=!0,n("click",xs(mse,"click")),n("mousemove",xs(mse,"mousemove")),n("globalout",Smt);function n(r,o){e.on(r,function(a){var s=kmt(t);ymt(bh(e).records,function(l){l&&o(l,a,s.dispatchAction)}),_mt(s.pendings,t)})}}function _mt(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 Smt(e,t,n){e.handler("leave",null,n)}function mse(e,t,n,r){t.handler(e,n,r)}function kmt(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 IU(e,t){if(!$r.node){var n=t.getZr(),r=(bh(n).records||{})[e];r&&(bh(n).records[e]=null)}}var wmt=(function(e){On(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";L0e("axisPointer",o,function(l,c,f){s!=="none"&&(l==="leave"||s.indexOf(l)>=0)&&f({type:"updateAxisPointer",currTrigger:l,x:c&&c.offsetX,y:c&&c.offsetY})})},t.prototype.remove=function(n,r){IU("axisPointer",r)},t.prototype.dispose=function(n,r){IU("axisPointer",r)},t.type="axisPointer",t})(Ed);function P0e(e,t){var n=[],r=e.seriesIndex,o;if(r==null||!(o=t.getSeriesByIndex(r)))return{point:[]};var a=o.getData(),s=Cg(a,e);if(s==null||s<0||Xn(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 f=c.getBaseAxis(),h=c.getOtherAxis(f),p=h.dim,m=f.dim,g=p==="x"||p==="radius"?1:0,b=a.mapDimension(m),S=[];S[g]=a.get(b,s),S[1-g]=a.get(a.getCalculationInfo("stackResultDimension"),s),n=c.dataToPoint(S)||[]}else n=c.dataToPoint(a.getValues(br(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 gse=Ls();function Cmt(e,t,n){var r=e.currTrigger,o=[e.x,e.y],a=e,s=e.dispatchAction||Eo(n.dispatchAction,n),l=t.getComponent("axisPointer").coordSysAxesInfo;if(l){Y4(o)&&(o=P0e({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var c=Y4(o),f=a.axesInfo,h=l.axesInfo,p=r==="leave"||Y4(o),m={},g={},b={list:[],map:{}},S={showPointer:xs(Emt,g),showTooltip:xs(Tmt,b)};xt(l.coordSysMap,function(C,x){var E=c||C.containPoint(o);xt(l.coordSysAxesInfo[x],function(_,A){var R=_.axis,M=Pmt(f,_);if(!p&&E&&(!f||M)){var D=M&&M.value;D==null&&!c&&(D=R.pointToData(o)),D!=null&&yse(_,D,S,!1,m)}})});var k={};return xt(h,function(C,x){var E=C.linkGroup;E&&!g[x]&&xt(E.axesInfo,function(_,A){var R=g[A];if(_!==C&&R){var M=R.value;E.mapper&&(M=C.axis.scale.parse(E.mapper(M,bse(_),bse(C)))),k[C.key]=M}})}),xt(k,function(C,x){yse(h[x],C,S,!0,m)}),Amt(g,h,m),Imt(b,o,e,s),Lmt(h,s,n),m}}function yse(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=xmt(t,e),l=s.payloadBatch,c=s.snapToValue;l[0]&&o.seriesIndex==null&&vn(o,l[0]),!r&&e.snap&&a.containData(c)&&c!=null&&(t=c),n.showPointer(e,t,l),n.showTooltip(e,s,c)}}function xmt(e,t){var n=t.axis,r=n.dim,o=e,a=[],s=Number.MAX_VALUE,l=-1;return xt(t.seriesModels,function(c,f){var h=c.getData().mapDimensionsAll(r),p,m;if(c.getAxisTooltipData){var g=c.getAxisTooltipData(h,e,n);m=g.dataIndices,p=g.nestestValue}else{if(m=c.getData().indicesOfNearest(h[0],e,n.type==="category"?.5:null),!m.length)return;p=c.getData().get(h[0],m[0])}if(!(p==null||!isFinite(p))){var b=e-p,S=Math.abs(b);S<=s&&((S=0&&l<0)&&(s=S,l=b,o=p,a.length=0),xt(m,function(k){a.push({seriesIndex:c.seriesIndex,dataIndexInside:k,dataIndex:c.getData().getRawIndex(k)})}))}}),{payloadBatch:a,snapToValue:o}}function Emt(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function Tmt(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,f=ak(c),h=e.map[f];h||(h=e.map[f]={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 Amt(e,t,n){var r=n.axesInfo=[];xt(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 Imt(e,t,n,r){if(Y4(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 Lmt(e,t,n){var r=n.getZr(),o="axisPointerLastHighlights",a=gse(r)[o]||{},s=gse(r)[o]={};xt(e,function(f,h){var p=f.axisPointerModel.option;p.status==="show"&&f.triggerEmphasis&&xt(p.seriesDataIndices,function(m){var g=m.seriesIndex+" | "+m.dataIndex;s[g]=m})});var l=[],c=[];xt(a,function(f,h){!s[h]&&c.push(f)}),xt(s,function(f,h){!a[h]&&l.push(f)}),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 Pmt(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 bse(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 Y4(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function R0e(e){C0e.registerAxisPointerClass("CartesianAxisPointer",vmt),e.registerComponentModel(gmt),e.registerComponentView(wmt),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var n=t.axisPointer.link;n&&!Xn(n)&&(t.axisPointer.link=[n])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,n){t.getComponent("axisPointer").coordSysAxesInfo=Kvt(t,n)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},Cmt)}function M0e(e){Nh(amt),Nh(R0e)}function Rmt(e,t){var n=ML(t.get("padding")),r=t.getItemStyle(["color","opacity"]);return r.fill=t.get("backgroundColor"),e=new Ks({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 Mmt=(function(e){On(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})(io);function D0e(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function O0e(e){if($r.domSupported){for(var t=document.documentElement.style,n=0,r=e.length;n-1?(l+="top:50%",c+="translateY(-50%) rotate("+(f=a==="left"?-225:-45)+"deg)"):(l+="left:50%",c+="translateX(-50%) rotate("+(f=a==="top"?225:45)+"deg)");var h=f*Math.PI/180,p=s+o,m=p*Math.abs(Math.cos(h))+p*Math.abs(Math.sin(h)),g=Math.round(((m-Math.SQRT2*o)/2+Math.SQRT2*o-(m-p)/2)*100)/100;l+=";"+a+":-"+g+"px";var b=t+" solid "+o+"px;",S=["position:absolute;width:"+s+"px;height:"+s+"px;z-index:-1;",l+";"+c+";","border-bottom:"+b,"border-right:"+b,"background-color:"+r+";"];return'
'}function jmt(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+=$r.transformSupported?","+uW+r:",left"+r+",top"+r),$mt+":"+o}function _se(e,t,n){var r=e.toFixed(0)+"px",o=t.toFixed(0)+"px";if(!$r.transformSupported)return n?"top:"+o+";left:"+r+";":[["top",o],["left",r]];var a=$r.transform3dSupported,s="translate"+(a?"3d":"")+"("+r+","+o+(a?",0":"")+")";return n?"top:0;left:0;"+uW+":"+s+";":[["top",0],["left",0],[$0e,s]]}function Umt(e){var t=[],n=e.get("fontSize"),r=e.getTextColor();r&&t.push("color:"+r),t.push("font:"+e.getFont());var o=ci(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),xt(["decoration","align"],function(f){var h=e.get(f);h&&t.push("text-"+f+":"+h)}),t.join(";")}function Vmt(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"),f=e.get("shadowOffsetY"),h=e.getModel("textStyle"),p=Qme(e,"html"),m=c+"px "+f+"px "+s+"px "+l;return r.push("box-shadow:"+m),t&&o&&r.push(jmt(o,n)),a&&r.push("background-color:"+a),xt(["width","color","radius"],function(g){var b="border-"+g,S=Eme(b),k=e.get(S);k!=null&&r.push(b+":"+k+(g==="color"?"":"px"))}),r.push(Umt(h)),p!=null&&r.push("padding:"+ML(p).join("px ")+"px"),r.join(";")+";"}function Sse(e,t,n,r,o){var a=t&&t.painter;if(n){var s=a&&a.getViewportRoot();s&&lst(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 zmt=(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,$r.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&&(vr(a)?document.querySelector(a):K2(a)?a:Yr(a)&&a(t.getDom()));Sse(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 f=o.handler,h=o.painter.getViewportRoot();kc(h,c,!0),f.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=Omt(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=Nmt+Vmt(t,!this._firstShow,this._longHide)+_se(a[0],a[1],!0)+("border-color:"+Eg(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(vr(a)&&r.get("trigger")==="item"&&!D0e(r)&&(l=Fmt(r,o,a)),vr(t))s.innerHTML=t+l;else if(t){s.innerHTML="",Xn(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||$r.node||!o.getDom())){var s=Cse(a,o);this._ticket="";var l=a.dataByCoordSys,c=Xmt(a,r,o);if(c){var f=c.el.getBoundingRect().clone();f.applyTransform(c.el.transform),this._tryShow({offsetX:f.x+f.width/2,offsetY:f.y+f.height/2,target:c.el,position:a.position,positionDefault:"bottom"},s)}else if(a.tooltip&&a.x!=null&&a.y!=null){var h=Wmt;h.x=a.x,h.y=a.y,h.update(),Vi(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=P0e(a,r),m=p.point[0],g=p.point[1];m!=null&&g!=null&&this._tryShow({offsetX:m,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(Cse(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 f=r.getSeriesByIndex(s);if(f){var h=f.getData(),p=Z_([h.getItemModel(l),f,(f.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=Vi(o);if(l.ssrType==="legend")return;this._lastDataByCoordSys=null;var c,f;_S(o,function(h){if(Vi(h).dataIndex!=null)return c=h,!0;if(Vi(h).tooltipConfig!=null)return f=h,!0},!0),c?this._showSeriesItemTooltip(n,c,r):f?this._showComponentItemTooltip(n,f,r):this._hide(r)}else this._lastDataByCoordSys=null,this._hide(r)}},t.prototype._showOrMove=function(n,r){var o=n.get("showDelay");r=Eo(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=Z_([r.tooltipOption],a),c=this._renderMode,f=[],h=rk("section",{blocks:[],noHeader:!0}),p=[],m=new o9;xt(n,function(x){xt(x.dataByAxis,function(E){var _=o.getComponent(E.axisDim+"Axis",E.axisIndex),A=E.value;if(!(!_||A==null)){var R=A0e(A,_.axis,o,E.seriesDataIndices,E.valueLabelOpt),M=rk("section",{header:R,noHeader:!of(R),sortBlocks:!0,blocks:[]});h.blocks.push(M),xt(E.seriesDataIndices,function(D){var N=o.getSeriesByIndex(D.seriesIndex),L=D.dataIndexInside,B=N.getDataParams(L);if(!(B.dataIndex<0)){B.axisDim=E.axisDim,B.axisIndex=E.axisIndex,B.axisType=E.axisType,B.axisId=E.axisId,B.axisValue=nW(_.axis,{value:A}),B.axisValueLabel=R,B.marker=m.makeTooltipMarker("item",Eg(B.color),c);var U=$ie(N.formatTooltip(L,!0,null)),W=U.frag;if(W){var V=Z_([N],a).get("valueFormatter");M.blocks.push(V?vn({valueFormatter:V},W):W)}U.text&&p.push(U.text),f.push(B)}})}})}),h.blocks.reverse(),p.reverse();var g=r.position,b=l.get("order"),S=Uie(h,m,c,b,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,f)?this._updatePosition(l,g,s[0],s[1],this._tooltipContent,f):this._showTooltipContent(l,C,f,Math.random()+"",s[0],s[1],g,null,m)})},t.prototype._showSeriesItemTooltip=function(n,r,o){var a=this._ecModel,s=Vi(r),l=s.seriesIndex,c=a.getSeriesByIndex(l),f=s.dataModel||c,h=s.dataIndex,p=s.dataType,m=f.getData(p),g=this._renderMode,b=n.positionDefault,S=Z_([m.getItemModel(h),f,c&&(c.coordinateSystem||{}).model],this._tooltipModel,b?{position:b}:null),k=S.get("trigger");if(!(k!=null&&k!=="item")){var C=f.getDataParams(h,p),x=new o9;C.marker=x.makeTooltipMarker("item",Eg(C.color),g);var E=$ie(f.formatTooltip(h,!1,p)),_=S.get("order"),A=S.get("valueFormatter"),R=E.frag,M=R?Uie(A?vn({valueFormatter:A},R):R,x,g,_,a.get("useUTC"),S.get("textStyle")):E.text,D="item_"+f.name+"_"+h;this._showOrMove(S,function(){this._showTooltipContent(S,M,C,D,n.offsetX,n.offsetY,n.position,n.target,x)}),o({type:"showTip",dataIndexInside:h,dataIndex:m.getRawIndex(h),seriesIndex:l,from:this.uid})}},t.prototype._showComponentItemTooltip=function(n,r,o){var a=this._renderMode==="html",s=Vi(r),l=s.tooltipConfig,c=l.option||{},f=c.encodeHTMLContent;if(vr(c)){var h=c;c={content:h,formatter:h},f=!0}f&&a&&c.content&&(c=Oi(c),c.content=fu(c.content));var p=[c],m=this._ecModel.getComponent(s.componentMainType,s.componentIndex);m&&p.push(m),p.push({formatter:c.content});var g=n.positionDefault,b=Z_(p,this._tooltipModel,g?{position:g}:null),S=b.get("content"),k=Math.random()+"",C=new o9;this._showOrMove(b,function(){var x=Oi(b.get("formatterParams")||{});this._showTooltipContent(b,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,f,h){if(this._ticket="",!(!n.get("showContent")||!n.get("show"))){var p=this._tooltipContent;p.setEnterable(n.get("enterable"));var m=n.get("formatter");c=c||n.get("position");var g=r,b=this._getNearestPoint([s,l],o,n.get("trigger"),n.get("borderColor")),S=b.color;if(m)if(vr(m)){var k=n.ecModel.get("useUTC"),C=Xn(o)?o[0]:o,x=C&&C.axisType&&C.axisType.indexOf("time")>=0;g=m,x&&(g=AL(C.axisValue,g,k)),g=Tme(g,o,!0)}else if(Yr(m)){var E=Eo(function(_,A){_===this._ticket&&(p.setContent(A,h,n,S,c),this._updatePosition(n,c,s,l,p,o,f))},this);this._ticket=a,g=m(o,a,E)}else g=m;p.setContent(g,h,n,S,c),p.show(n,S),this._updatePosition(n,c,s,l,p,o,f)}},t.prototype._getNearestPoint=function(n,r,o,a){if(o==="axis"||Xn(r))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!Xn(r))return{color:a||r.color||r.borderColor}},t.prototype._updatePosition=function(n,r,o,a,s,l,c){var f=this._api.getWidth(),h=this._api.getHeight();r=r||n.get("position");var p=s.getSize(),m=n.get("align"),g=n.get("verticalAlign"),b=c&&c.getBoundingRect().clone();if(c&&b.applyTransform(c.transform),Yr(r)&&(r=r([o,a],l,s.el,b,{viewSize:[f,h],contentSize:p.slice()})),Xn(r))o=Go(r[0],f),a=Go(r[1],h);else if(Cr(r)){var S=r;S.width=p[0],S.height=p[1];var k=k1(S,{width:f,height:h});o=k.x,a=k.y,m=null,g=null}else if(vr(r)&&c){var C=Ymt(r,b,p,n.get("borderWidth"));o=C[0],a=C[1]}else{var C=Kmt(o,a,s,f,h,m?null:20,g?null:20);o=C[0],a=C[1]}if(m&&(o-=xse(m)?p[0]/2:m==="right"?p[0]:0),g&&(a-=xse(g)?p[1]/2:g==="bottom"?p[1]:0),D0e(n)){var C=qmt(o,a,s,f,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&&xt(o,function(l,c){var f=l.dataByAxis||[],h=n[c]||{},p=h.dataByAxis||[];s=s&&f.length===p.length,s&&xt(f,function(m,g){var b=p[g]||{},S=m.seriesDataIndices||[],k=b.seriesDataIndices||[];s=s&&m.value===b.value&&m.axisType===b.axisType&&m.axisId===b.axisId&&S.length===k.length,s&&xt(S,function(C,x){var E=k[x];s=s&&C.seriesIndex===E.seriesIndex&&C.dataIndex===E.dataIndex}),a&&xt(m.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){$r.node||!r.getDom()||(dU(this,"_updatePosition"),this._tooltipContent.dispose(),IU("itemTooltip",r))},t.type="tooltip",t})(Ed);function Z_(e,t,n){var r=t.ecModel,o;n?(o=new vs(n,r,r),o=new vs(t.option,o,r)):o=t;for(var a=e.length-1;a>=0;a--){var s=e[a];s&&(s instanceof vs&&(s=s.get("tooltip",!0)),vr(s)&&(s={formatter:s}),s&&(o=new vs(s,o,r)))}return o}function Cse(e,t){return e.dispatchAction||Eo(t.dispatchAction,t)}function Kmt(e,t,n,r,o,a,s){var l=n.getSize(),c=l[0],f=l[1];return a!=null&&(e+c+a+2>r?e-=c+a:e+=a),s!=null&&(t+f+s>o?t-=f+s:t+=s),[e,t]}function qmt(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 Ymt(e,t,n,r){var o=n[0],a=n[1],s=Math.ceil(Math.SQRT2*r)+8,l=0,c=0,f=t.width,h=t.height;switch(e){case"inside":l=t.x+f/2-o/2,c=t.y+h/2-a/2;break;case"top":l=t.x+f/2-o/2,c=t.y-a-s;break;case"bottom":l=t.x+f/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+f+s,c=t.y+h/2-a/2}return[l,c]}function xse(e){return e==="center"||e==="middle"}function Xmt(e,t,n){var r=yH(e).queryOptionMap,o=r.keys()[0];if(!(!o||o==="series")){var a=Kk(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(f){var h=Vi(f).tooltipConfig;if(h&&h.name===e.name)return c=f,!0}),c)return{componentMainType:o,componentIndex:s.componentIndex,el:c}}}}function B0e(e){Nh(R0e),e.registerComponentModel(Mmt),e.registerComponentView(Gmt),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Su),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Su)}var Zmt=(function(e){On(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})(io),Qmt=(function(e){On(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"),f=ci(n.get("textBaseline"),n.get("textVerticalAlign")),h=new Wa({style:yv(s,{text:n.get("text"),fill:s.getTextColor()},{disableBox:!0}),z2:10}),p=h.getBoundingRect(),m=n.get("subtext"),g=new Wa({style:yv(l,{text:m,fill:l.getTextColor(),y:p.height+n.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),b=n.get("link"),S=n.get("sublink"),k=n.get("triggerEvent",!0);h.silent=!b&&!k,g.silent=!S&&!k,b&&h.on("click",function(){yie(b,"_"+n.get("target"))}),S&&g.on("click",function(){yie(S,"_"+n.get("subtarget"))}),Vi(h).eventData=Vi(g).eventData=k?{componentType:"title",componentIndex:n.componentIndex}:null,a.add(h),m&&a.add(g);var C=a.getBoundingRect(),x=n.getBoxLayoutParams();x.width=C.width,x.height=C.height;var E=k1(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)),f||(f=n.get("top")||n.get("bottom"),f==="center"&&(f="middle"),f==="bottom"?E.y+=E.height:f==="middle"&&(E.y+=E.height/2),f=f||"top"),a.x=E.x,a.y=E.y,a.markRedraw();var _={align:c,verticalAlign:f};h.setStyle(_),g.setStyle(_),C=a.getBoundingRect();var A=E.margin,R=n.getItemStyle(["color","opacity"]);R.fill=n.get("backgroundColor");var M=new Ks({shape:{x:C.x-A[3],y:C.y-A[0],width:C.width+A[1]+A[3],height:C.height+A[0]+A[2],r:n.get("borderRadius")},style:R,subPixelOptimize:!0,silent:!0});a.add(M)}},t.type="title",t})(Ed);function F0e(e){e.registerComponentModel(Zmt),e.registerComponentView(Qmt)}var Jmt=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"])}},LU=(function(e){On(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"]),Xn(r)&&xt(r,function(a,s){vr(a)&&(a={type:a}),r[s]=eo(a,Jmt(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})(io),uy=xs,PU=xt,YE=Ha,j0e=(function(e){On(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 YE),this.group.add(this._selectorGroup=new YE),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),f=n.get("selectorPosition",!0);c&&(!f||f==="auto")&&(f=l==="horizontal"?"end":"start"),this.renderInner(s,n,r,o,c,l,f);var h=n.getBoxLayoutParams(),p={width:o.getWidth(),height:o.getHeight()},m=n.get("padding"),g=k1(h,p,m),b=this.layoutInner(n,s,g,a,c,f),S=k1(no({width:b.width,height:b.height},h),p,m);this.group.x=S.x-b.x,this.group.y=S.y-b.y,this.group.markRedraw(),this.group.add(this._backgroundEl=Rmt(b,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 f=this.getContentGroup(),h=mi(),p=r.get("selectedMode"),m=[];o.eachRawSeries(function(g){!g.get("legendHoverLink")&&m.push(g.id)}),PU(r.getData(),function(g,b){var S=g.get("name");if(!this.newlineDisabled&&(S===""||S===` `)){var k=new YE;k.newline=!0,f.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"),A=x.getVisual("style"),R=this._createItem(C,S,b,g,r,n,E,A,_,p,a);R.on("click",uy(Ese,S,null,a,m)).on("mouseover",uy(RU,C.name,null,a,m)).on("mouseout",uy(MU,C.name,null,a,m)),o.ssr&&R.eachChild(function(M){var D=Vi(M);D.seriesIndex=C.seriesIndex,D.dataIndex=b,D.ssrType="legend"}),h.set(S,!0)}else o.eachRawSeries(function(M){if(!h.get(S)&&M.legendVisualProvider){var D=M.legendVisualProvider;if(!D.containName(S))return;var N=D.indexOfName(S),L=D.getItemVisual(N,"style"),B=D.getItemVisual(N,"legendIcon"),U=Ch(L.fill);U&&U[3]===0&&(U[3]=.2,L=vn(vn({},L),{fill:hL(U,"rgba")}));var W=this._createItem(M,S,b,g,r,n,{},L,B,p,a);W.on("click",uy(Ese,null,S,a,m)).on("mouseover",uy(RU,null,S,a,m)).on("mouseout",uy(MU,null,S,a,m)),o.ssr&&W.eachChild(function(V){var z=Vi(V);z.seriesIndex=M.seriesIndex,z.dataIndex=b,z.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();PU(n,function(f){var h=f.type,p=new Wa({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 m=r.getModel("selectorLabel"),g=r.getModel(["emphasis","selectorLabel"]);Xk(p,{normal:m,emphasis:g},{defaultText:f.title}),eU(p)})},t.prototype._createItem=function(n,r,o,a,s,l,c,f,h,p,m){var g=n.visualDrawType,b=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 _=egt(h,a,c,f,g,k,m),A=new YE,R=a.getModel("textStyle");if(Yr(n.getLegendIcon)&&(!E||E==="inherit"))A.add(n.getLegendIcon({itemWidth:b,itemHeight:S,icon:h,iconRotate:C,itemStyle:_.itemStyle,lineStyle:_.lineStyle,symbolKeepAspect:x}));else{var M=E==="inherit"&&n.getData().getVisual("symbol")?C==="inherit"?n.getData().getVisual("symbolRotate"):C:0;A.add(tgt({itemWidth:b,itemHeight:S,icon:h,iconRotate:M,itemStyle:_.itemStyle,symbolKeepAspect:x}))}var D=l==="left"?b+5:-5,N=l,L=s.get("formatter"),B=r;vr(L)&&L?B=L.replace("{name}",r??""):Yr(L)&&(B=L(r));var U=k?R.getTextColor():a.get("inactiveColor");A.add(new Wa({style:yv(R,{text:B,x:D,y:S/2,fill:U,align:N,verticalAlign:"middle"},{inheritColor:U})}));var W=new Ks({shape:A.getBoundingRect(),style:{fill:"transparent"}}),V=a.getModel("tooltip");return V.get("show")&&wL({el:W,componentModel:s,itemName:r,itemTooltipOption:V.option}),A.add(W),A.eachChild(function(z){z.silent=!0}),W.silent=!p,this.getContentGroup().add(A),eU(A),A.__legendDataIndex=o,A},t.prototype.layoutInner=function(n,r,o,a,s,l){var c=this.getContentGroup(),f=this.getSelectorGroup();l2(n.get("orient"),c,n.get("itemGap"),o.width,o.height);var h=c.getBoundingRect(),p=[-h.x,-h.y];if(f.markRedraw(),c.markRedraw(),s){l2("horizontal",f,n.get("selectorItemGap",!0));var m=f.getBoundingRect(),g=[-m.x,-m.y],b=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]+b:p[S]+=m[k]+b,g[1-S]+=h[C]/2-m[C]/2,f.x=g[0],f.y=g[1],c.x=p[0],c.y=p[1];var E={x:0,y:0};return E[k]=h[k]+b+m[k],E[C]=Math.max(h[C],m[C]),E[x]=Math.min(0,m[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})(Ed);function egt(e,t,n,r,o,a,s){function l(k,C){k.lineWidth==="auto"&&(k.lineWidth=C.lineWidth>0?2:0),PU(k,function(x,E){k[E]==="inherit"&&(k[E]=C[E])})}var c=t.getModel("itemStyle"),f=c.getItemStyle(),h=e.lastIndexOf("empty",0)===0?"fill":"stroke",p=c.getShallow("decal");f.decal=!p||p==="inherit"?r.decal:mU(p,s),f.fill==="inherit"&&(f.fill=r[o]),f.stroke==="inherit"&&(f.stroke=r[h]),f.opacity==="inherit"&&(f.opacity=(o==="fill"?r:n).opacity),l(f,r);var m=t.getModel("lineStyle"),g=m.getLineStyle();if(l(g,n),f.fill==="auto"&&(f.fill=r.fill),f.stroke==="auto"&&(f.stroke=r.fill),g.stroke==="auto"&&(g.stroke=r.fill),!a){var b=t.get("inactiveBorderWidth"),S=f[h];f.lineWidth=b==="auto"?r.lineWidth>0&&S?2:0:f.lineWidth,f.fill=t.get("inactiveColor"),f.stroke=t.get("inactiveBorderColor"),g.stroke=m.get("inactiveColor"),g.lineWidth=m.get("inactiveWidth")}return{itemStyle:f,lineStyle:g}}function tgt(e){var t=e.icon||"roundRect",n=x1(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 Ese(e,t,n,r){MU(e,t,n,r),n.dispatchAction({type:"legendToggleSelect",name:e??t}),RU(e,t,n,r)}function U0e(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[f]);var C=[0,0],x=[-b.x,-b.y],E=ci(n.get("pageButtonGap",!0),n.get("itemGap",!0));if(S){var _=n.get("pageButtonPosition",!0);_==="end"?x[a]+=o[s]-b[s]:C[a]+=b[s]+E}x[1-a]+=g[l]/2-b[l]/2,h.setPosition(k),p.setPosition(C),m.setPosition(x);var A={x:0,y:0};if(A[s]=S?o[s]:g[s],A[l]=Math.max(g[l],b[l]),A[c]=Math.min(0,b[c]+x[1-a]),p.__rectSize=o[s],S){var R={x:0,y:0};R[s]=Math.max(o[s]-b[s]-E,0),R[l]=A[l],p.setClipPath(new Ks({shape:R})),p.__rectSize=R[s]}else m.eachChild(function(D){D.attr({invisible:!0,silent:!0})});var M=this._getPageInfo(n);return M.pageIndex!=null&&Kl(h,{x:M.contentPosition[0],y:M.contentPosition[1]},S?n:null),this._updatePageInfoView(n,M),A},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;xt(["pagePrev","pageNext"],function(h){var p=h+"DataIndex",m=r[p]!=null,g=o.childOfName(h);g&&(g.setStyle("fill",m?n.get("pageIconColor",!0):n.get("pageIconInactiveColor",!0)),g.cursor=m?"pointer":"default")});var a=o.childOfName("pageText"),s=n.get("pageFormatter"),l=r.pageIndex,c=l!=null?l+1:0,f=r.pageCount;a&&s&&a.setStyle("text",vr(s)?s.replace("{current}",c==null?"":c+"").replace("{total}",f==null?"":f+""):s({current:c,total:f}))},t.prototype._getPageInfo=function(n){var r=n.get("scrollDataIndex",!0),o=this.getContentGroup(),a=this._containerGroup.__rectSize,s=n.getOrient().index,l=L9[s],c=P9[s],f=this._findTargetItemIndex(r),h=o.children(),p=h[f],m=h.length,g=m?1:0,b={contentPosition:[o.x,o.y],pageCount:g,pageIndex:g-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!p)return b;var S=_(p);b.contentPosition[s]=-S.s;for(var k=f+1,C=S,x=S,E=null;k<=m;++k)E=_(h[k]),(!E&&x.e>C.s+a||E&&!A(E,C.s))&&(x.i>C.i?C=x:C=E,C&&(b.pageNextDataIndex==null&&(b.pageNextDataIndex=C.i),++b.pageCount)),x=E;for(var k=f-1,C=S,x=S,E=null;k>=-1;--k)E=_(h[k]),(!E||!A(x,E.s))&&C.i=M&&R.s<=M+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})(j0e);function sgt(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 agt(e){Nh(V0e),e.registerComponentModel(igt),e.registerComponentView(ogt),sgt(e)}function z0e(e){Nh(V0e),Nh(agt)}const lgt=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function ugt(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 lgt.forEach(o=>{r[o]=t(o)}),r}return n()}function cgt(e,t,n){Dt([n,e,t],([r,o,a],s,l)=>{let c=null;if(r&&o&&a){const{offsetWidth:f,offsetHeight:h}=r,p=a===!0?{}:a,{throttle:m=100,onResize:g}=p;let b=!1;const S=()=>{o.resize(),g?.()},k=m?NL(S,m):S;c=new ResizeObserver(()=>{!b&&(b=!0,r.offsetWidth===f&&r.offsetHeight===h)||k()}),c.observe(r)}l(()=>{c&&(c.disconnect(),c=null)})})}const dgt={autoresize:[Boolean,Object]},fgt=/^on[^a-z]/,H0e=e=>fgt.test(e);function hgt(e){const t={};for(const n in e)H0e(n)||(t[n]=e[n]);return t}function X4(e,t){const n=Io(e)?nt(e):e;return n&&typeof n=="object"&&"value"in n?n.value||t:n||t}const pgt="ecLoadingOptions";function vgt(e,t,n){const r=In(pgt,{}),o=F(()=>({...X4(r,{}),...n?.value}));As(()=>{const a=e.value;a&&(t.value?a.showLoading(o.value):a.hideLoading())})}const mgt={loading:Boolean,loadingOptions:Object};let J_=null;const W0e="x-vue-echarts";function ggt(){if(J_!=null)return J_;if(typeof HTMLElement>"u"||typeof customElements>"u")return J_=!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);")(W0e)}catch{return J_=!1}return J_=!0}document.head.appendChild(document.createElement("style")).textContent=`x-vue-echarts{display:block;width:100%;height:100%;min-width:0} `;const ygt=ggt(),bgt="ecTheme",_gt="ecInitOptions",Sgt="ecUpdateOptions",Lse=/(^&?~?!?)native:/;var G0e=_e({name:"echarts",props:{option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean,...dgt,...mgt},emits:{},inheritAttrs:!1,setup(e,{attrs:t}){const n=Qm(),r=Qm(),o=Qm(),a=In(bgt,null),s=In(_gt,null),l=In(Sgt,null),{autoresize:c,manualUpdate:f,loading:h,loadingOptions:p}=Qt(e),m=F(()=>o.value||e.option||null),g=F(()=>e.theme||X4(a,{})),b=F(()=>e.initOptions||X4(s,{})),S=F(()=>e.updateOptions||X4(l,{})),k=F(()=>hgt(t)),C={},x=fo().proxy.$listeners,E={};x?Object.keys(x).forEach(N=>{Lse.test(N)?C[N.replace(Lse,"$1")]=x[N]:E[N]=x[N]}):Object.keys(t).filter(N=>H0e(N)).forEach(N=>{let L=N.charAt(2).toLowerCase()+N.slice(3);if(L.indexOf("native:")===0){const B=`on${L.charAt(7).toUpperCase()}${L.slice(8)}`;C[B]=t[N];return}L.substring(L.length-4)==="Once"&&(L=`~${L.substring(0,L.length-4)}`),E[L]=t[N]});function _(N){if(!n.value)return;const L=r.value=Jft(n.value,g.value,b.value);e.group&&(L.group=e.group),Object.keys(E).forEach(W=>{let V=E[W];if(!V)return;let z=W.toLowerCase();z.charAt(0)==="~"&&(z=z.substring(1),V.__once__=!0);let Y=L;if(z.indexOf("zr:")===0&&(Y=L.getZr(),z=z.substring(3)),V.__once__){delete V.__once__;const oe=V;V=(...ne)=>{oe(...ne),Y.off(z,V)}}Y.on(z,V)});function B(){L&&!L.isDisposed()&&L.resize()}function U(){const W=N||m.value;W&&L.setOption(W,S.value)}c.value?yn(()=>{B(),U()}):U()}function A(N,L){e.manualUpdate&&(o.value=N),r.value?r.value.setOption(N,L||{}):_(N)}function R(){r.value&&(r.value.dispose(),r.value=void 0)}let M=null;Dt(f,N=>{typeof M=="function"&&(M(),M=null),N||(M=Dt(()=>e.option,(L,B)=>{L&&(r.value?r.value.setOption(L,{notMerge:L!==B,...S.value}):_())},{deep:!0}))},{immediate:!0}),Dt([g,b],()=>{R(),_()},{deep:!0}),As(()=>{e.group&&r.value&&(r.value.group=e.group)});const D=ugt(r);return vgt(r,h,p),cgt(r,c,n),gn(()=>{_()}),Fo(()=>{ygt&&n.value?n.value.__dispose=R:R()}),{chart:r,root:n,setOption:A,nonEventAttrs:k,nativeListeners:C,...D}},render(){const e={...this.nonEventAttrs,...this.nativeListeners};return e.ref="root",e.class=e.class?["echarts"].concat(e.class):"echarts",sa(W0e,e)}});const yu={WATCH_HISTORY:"drplayer_watch_history",DAILY_STATS:"drplayer_daily_stats"},K0e=()=>new Date().toISOString().split("T")[0],kgt=()=>{const e=new Date;return e.setDate(e.getDate()-1),e.toISOString().split("T")[0]},wgt=()=>{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},yf=(e,t={})=>{try{const n=localStorage.getItem(e);return n?JSON.parse(n):t}catch(n){return console.error("获取存储数据失败:",n),t}},II=(e,t)=>{try{localStorage.setItem(e,JSON.stringify(t))}catch(n){console.error("保存存储数据失败:",n)}},q0e=e=>{const t=K0e(),n=new Date().toISOString(),r=yf(yu.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),II(yu.WATCH_HISTORY,r),cW(t),o},cW=e=>{const t=yf(yu.DAILY_STATS,{}),n=yf(yu.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()},II(yu.DAILY_STATS,t)},Y0e=()=>{const e=K0e(),t=yf(yu.DAILY_STATS,{});return t[e]?t[e]:(cW(e),t[e]||{date:e,watchCount:0,totalWatchTime:0})},X0e=()=>{const e=kgt(),t=yf(yu.DAILY_STATS,{});return t[e]?t[e]:(cW(e),t[e]||{date:e,watchCount:0,totalWatchTime:0})},Cgt=()=>{const e=wgt(),t=yf(yu.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}})},xgt=()=>{const e=Y0e(),t=X0e();if(t.watchCount===0)return e.watchCount>0?100:0;const n=(e.watchCount-t.watchCount)/t.watchCount*100;return Math.round(n)},Egt=(e=50)=>yf(yu.WATCH_HISTORY,[]).sort((n,r)=>new Date(r.timestamp)-new Date(n.timestamp)).slice(0,e),Tgt=(e=10)=>{const t=yf(yu.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)},Agt=(e=30)=>{const t=new Date;t.setDate(t.getDate()-e);const n=t.toISOString().split("T")[0],o=yf(yu.WATCH_HISTORY,[]).filter(l=>l.date>=n);II(yu.WATCH_HISTORY,o);const a=yf(yu.DAILY_STATS,{}),s={};Object.keys(a).forEach(l=>{l>=n&&(s[l]=a[l])}),II(yu.DAILY_STATS,s),console.log(`清理了 ${e} 天前的数据`)},Igt=()=>{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:"🎉"}}),Q0e=()=>({critical:{label:"紧急",color:"#f53f3f",priority:4},major:{label:"重要",color:"#ff7d00",priority:3},minor:{label:"一般",color:"#165dff",priority:2},trivial:{label:"轻微",color:"#86909c",priority:1}}),Lgt=()=>Ic.sort((e,t)=>new Date(t.date)-new Date(e.date)),Pgt=e=>Ic.filter(t=>t.type===e).sort((t,n)=>new Date(n.date)-new Date(t.date)),Rgt=e=>Ic.filter(t=>t.importance===e).sort((t,n)=>new Date(n.date)-new Date(t.date)),Mgt=(e=5)=>Ic.sort((t,n)=>new Date(n.date)-new Date(t.date)).slice(0,e),Dgt=(e,t)=>{const n=new Date(e),r=new Date(t);return Ic.filter(o=>{const a=new Date(o.date);return a>=n&&a<=r}).sort((o,a)=>new Date(a.date)-new Date(o.date))},Ogt=e=>{const t=e.toLowerCase();return Ic.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))},$gt=()=>{const e=Z0e(),t=Q0e(),n={};Object.keys(e).forEach(a=>{n[a]=Ic.filter(s=>s.type===a).length});const r={};Object.keys(t).forEach(a=>{r[a]=Ic.filter(s=>s.importance===a).length});const o={};return Ic.forEach(a=>{const s=a.date.substring(0,7);o[s]=(o[s]||0)+1}),{total:Ic.length,byType:n,byImportance:r,byMonth:o,latestVersion:Ic[0]?.version||"v1.0.0",latestDate:Ic[0]?.date||new Date().toISOString().split("T")[0]}},Ngt=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"})},Bgt=(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(aEi,jgt=e=>Ei[e]||[],Ugt=(e=12)=>[...Ei.movies,...Ei.tvShows,...Ei.anime,...Ei.novels].sort((n,r)=>r.hotScore-n.hotScore).slice(0,e),Vgt=(e=8)=>[...Ei.movies,...Ei.tvShows,...Ei.anime,...Ei.novels].filter(n=>n.trending).sort((n,r)=>r.hotScore-n.hotScore).slice(0,e),zgt=(e,t=6)=>[...Ei.movies,...Ei.tvShows,...Ei.anime,...Ei.novels].filter(r=>r.category===e).sort((r,o)=>o.hotScore-r.hotScore).slice(0,t),Hgt=(e,t=6)=>[...Ei.movies,...Ei.tvShows,...Ei.anime,...Ei.novels].filter(r=>r.tags.includes(e)).sort((r,o)=>o.hotScore-r.hotScore).slice(0,t),Wgt=e=>{const t=e.toLowerCase();return[...Ei.movies,...Ei.tvShows,...Ei.anime,...Ei.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)},Ggt=()=>VL.sort((e,t)=>t.count-e.count),Kgt=(e=10)=>VL.sort((t,n)=>n.count-t.count).slice(0,e),qgt=(e=5)=>VL.filter(t=>t.trend==="up").sort((t,n)=>n.count-t.count).slice(0,e),Ygt=(e=[],t=8)=>{const n=Xgt();return[...Ei.movies,...Ei.tvShows,...Ei.anime,...Ei.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)},Xgt=e=>({types:{电视剧:3,动漫:2,电影:2,小说:1},categories:{科幻:3,悬疑:2,热血:2,剧情:1},tags:{国产:2,日本:1,热血:2,科幻:3}}),Zgt=()=>{const e=[...Ei.movies,...Ei.tvShows,...Ei.anime,...Ei.novels],t={};Object.keys(Ei).forEach(a=>{t[a]=Ei[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:VL.length}},Qgt=(e=6)=>[...Ei.movies,...Ei.tvShows,...Ei.anime,...Ei.novels].sort(()=>.5-Math.random()).slice(0,e),tS={getAllRecommendations:Fgt,getRecommendationsByType:jgt,getHotRecommendations:Ugt,getTrendingRecommendations:Vgt,getRecommendationsByCategory:zgt,getRecommendationsByTag:Hgt,searchRecommendations:Wgt,getAllKeywords:Ggt,getHotKeywords:Kgt,getTrendingUpKeywords:qgt,getPersonalizedRecommendations:Ygt,getRecommendationStats:Zgt,getRandomRecommendations:Qgt},zL=zg("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||{}}}),Jgt="识别动作的路由ID或专项动作指令,必须。字符型。",e0t="动作的类型。input(单项输入)/edit(单项多行编辑)/multiInput(少于5个的多项输入)/multiInputX(增强的多项输入)/menu(单项选择)/select(多项选择)/msgbox(消息弹窗)等。字符型。",t0t="弹出窗口是否允许触摸窗口外时取消窗口。逻辑型。",n0t="标题。字符型。",r0t="宽度。整型。",i0t="高度。整型。",o0t="文本消息内容。字符型。",s0t="msgbox类动作的简单html消息内容。字符型。",a0t="input、multiInput、multiInputX类动作的帮助说明内容,在窗口右上角显示帮助图标,点击显示帮助说明,可支持简易的HTML内容。支持的HTML标签,b(加粗)、i(斜体)、u(下划线)、strike(删除线)、em(强调)、strong(加强强调)、p(段落)、div(分区)、br(换行)、font(颜色/大小/字体)、h1~h6(标题层级)、small(小号字体)、tt(打字机字体)、blockquote(引用块)。",l0t="按键的数量。0-无按键,1-取消,2-确定/取消, 3-确定/取消/重置。整型。",u0t="图片URL。字符型。",c0t="图片高度。整型。",d0t="是否检测图片的点击坐标输入。逻辑型。",f0t="生成二维码的URL。字符型。",h0t="二维码的大小。整型。",p0t="超时时间(秒)。超时自动关闭窗口。整型。",v0t="T4源的动作网络访问超时时间(秒)。",m0t="输入确认后,窗口是否保持。逻辑型。",g0t="窗口弹出时自动发送的初始化动作指令。字符型。",y0t="窗口弹出时自动发送的初始化指令值。字符型。",b0t="按窗口的取消键时发送的取消动作指令。字符型。",_0t="按窗口的取消键时发送的取消动作指令值。字符型。",S0t="单项输入的输入提示,单项输入时必须。字符型。",k0t="单项输入的初始化值。字符型。",w0t="单项输入的预定义选项,用于常见值的快速选择输入。各选项间用“,”分隔,选项值可使用“名称:=值”方式。字符型。",C0t=`多项输入的项目定义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。`,x0t="设置窗口背景暗化效果,用于调整背景的暗化程度(透明度)。其值范围为0.0到1.0。",E0t="底部对齐和底边距。整型。",T0t="单项选择或多项选择窗口的列数。整型。",A0t=`单项选择或多项选择的选项定义JSON数组。每个选项使用一个JSON对象进行定义。 [#name]:选项名称。 [#action]:选项动作值。 [#selected]:选项默认是否已选。多项选择是可用。`,I0t=`源内搜索。 [#skey]:目标源key,可选,未设置或为空则使用当前源。 [#name]:搜索分类名称。 [#tid]:使用分类ID传递的搜索值。 [#flag]:列表视图参数。 [#folder]:多个分类切换搜索的配置,设置此项则忽略name、tid和flag。folder可多项合并设置为一个字符,各项间使用“#”分隔,每项中的name、tid和flag使用“$”分隔。floder也可使用JSON数组,每项分别设置name、tid和flag。`,L0t=`跳转到指定站源解析详情页播放。 [#skey]:目标源key。 [#ids]:传递给详情页的视频ids。`,P0t=`跳转到KTV播放器播放指定链接。 [#name]:歌名。 [#id]:歌曲的直链。`,R0t="刷新当前分类的列表。无其它参数。",M0t="把返回的内容复制到剪贴板。content:复制的内容",D0t=`保持窗口不关闭。 [#msg]:更新窗口里的文本消息内容。 [#reset]:窗口中的输入项目内容是否清空。`,O0t={使用帮助:`本帮助。长按则分项选择查看。 系统多数功能按键和选项,短按和长按有不同的功能。 [#影图根目录]:安全起见,影图的根目录为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:Jgt,type:e0t,canceledOnTouchOutside:t0t,title:n0t,width:r0t,height:i0t,msg:o0t,htmlMsg:s0t,help:a0t,button:l0t,imageUrl:u0t,imageHeight:c0t,imageClickCoord:d0t,qrcode:f0t,qrcodeSize:h0t,timeout:p0t,httpTimeout:v0t,keep:m0t,initAction:g0t,initValue:y0t,cancelAction:b0t,cancelValue:_0t,tip:S0t,value:k0t,selectData:w0t,input:C0t,dimAmount:x0t,bottom:E0t,column:T0t,option:A0t,单项输入:`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__:I0t,__detail__:L0t,__ktvplayer__:P0t,__refresh_list__:R0t,__copy__:M0t,__keep__:D0t,图片坐标示例:`获取在图片点击的位置坐标用于验证输入的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'  }`},$0t={class:"action-doc-card"},N0t={class:"card-title"},B0t={class:"card-content"},F0t={class:"overview-section"},j0t={class:"overview-item"},U0t={class:"overview-value"},V0t={class:"overview-item"},z0t={class:"overview-value"},H0t={class:"overview-item"},W0t={class:"overview-value"},G0t={key:0,class:"quick-nav"},K0t={key:1,class:"expanded-content"},q0t={class:"section",id:"basic-concepts"},Y0t={class:"section-title"},X0t={class:"concept-grid"},Z0t={class:"concept-title"},Q0t={class:"concept-desc"},J0t={class:"section",id:"action-types"},eyt={class:"section-title"},tyt={class:"action-types-grid"},nyt={class:"action-type-header"},ryt={class:"action-type-code"},iyt={class:"action-type-desc"},oyt={key:0,class:"action-type-usage"},syt={class:"section",id:"special-actions"},ayt={class:"section-title"},lyt={class:"special-actions-list"},uyt={class:"special-action-header"},cyt={class:"action-id"},dyt={class:"action-name"},fyt={class:"special-action-desc"},hyt={key:0,class:"special-action-params"},pyt={class:"section",id:"config-params"},vyt={class:"section-title"},myt={class:"params-grid"},gyt={class:"param-header"},yyt={class:"param-name"},byt={class:"param-desc"},_yt={class:"section",id:"examples"},Syt={class:"section-title"},kyt={class:"code-block"},wyt={class:"code-block"},Cyt={class:"code-block"},xyt={__name:"ActionDocCard",setup(e){const t=fe(!1),n=fe(O0t),r=()=>{t.value=!t.value},o=k=>{t.value=!0,setTimeout(()=>{const C=document.getElementById(k);C&&C.scrollIntoView({behavior:"smooth"})},100)};gn(()=>{});const a=F(()=>Object.keys(n.value).length),s=F(()=>{const k=new Set;return Object.values(n.value).forEach(C=>{C.type&&k.add(C.type)}),Array.from(k)}),l=F(()=>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"}]),f=F(()=>[{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=F(()=>[{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"]}]),m=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" }`),b=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=Pe("a-button"),E=Pe("a-tag"),_=Pe("a-card"),A=Pe("a-tab-pane"),R=Pe("a-tabs");return H(),J("div",$0t,[O(_,{bordered:!1,class:"card-container","body-style":{padding:"20px"}},{title:de(()=>[I("div",N0t,[O(nt(oL),{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?Re("",!0):(H(),Ye(nt(Av),{key:0})),t.value?(H(),Ye(nt(Ok),{key:1})):Re("",!0),ze(" "+Be(t.value?"收起":"展开"),1)]),_:1})]),default:de(()=>[I("div",B0t,[I("div",F0t,[I("div",j0t,[C[1]||(C[1]=I("div",{class:"overview-label"},"总条目数",-1)),I("div",U0t,Be(a.value),1)]),I("div",V0t,[C[2]||(C[2]=I("div",{class:"overview-label"},"动作类型",-1)),I("div",z0t,Be(s.value.length),1)]),I("div",H0t,[C[3]||(C[3]=I("div",{class:"overview-label"},"专项动作",-1)),I("div",W0t,Be(l.value.length),1)])]),t.value?Re("",!0):(H(),J("div",G0t,[(H(!0),J(Ut,null,mn(c.value,M=>(H(),Ye(E,{key:M.key,color:M.color,class:"nav-tag",onClick:D=>o(M.key)},{default:de(()=>[ze(Be(M.name),1)]),_:2},1032,["color","onClick"]))),128))])),t.value?(H(),J("div",K0t,[I("div",q0t,[I("h3",Y0t,[O(nt(sh),{class:"section-icon"}),C[4]||(C[4]=ze(" 基础概念 ",-1))]),I("div",X0t,[(H(!0),J(Ut,null,mn(f.value,M=>(H(),J("div",{class:"concept-item",key:M.key},[I("div",Z0t,Be(M.title),1),I("div",Q0t,Be(M.description),1)]))),128))])]),I("div",J0t,[I("h3",eyt,[O(nt(zh),{class:"section-icon"}),C[5]||(C[5]=ze(" 动作类型 ",-1))]),I("div",tyt,[(H(!0),J(Ut,null,mn(h.value,M=>(H(),Ye(_,{key:M.key,size:"small",class:"action-type-card",hoverable:!0},{default:de(()=>[I("div",nyt,[O(E,{color:M.color},{default:de(()=>[ze(Be(M.name),1)]),_:2},1032,["color"]),I("span",ryt,Be(M.type),1)]),I("div",iyt,Be(M.description),1),M.usage?(H(),J("div",oyt,[C[6]||(C[6]=I("strong",null,"用途:",-1)),ze(Be(M.usage),1)])):Re("",!0)]),_:2},1024))),128))])]),I("div",syt,[I("h3",ayt,[O(nt(Jz),{class:"section-icon"}),C[7]||(C[7]=ze(" 专项动作 ",-1))]),I("div",lyt,[(H(!0),J(Ut,null,mn(p.value,M=>(H(),J("div",{key:M.key,class:"special-action-item"},[I("div",uyt,[I("code",cyt,Be(M.actionId),1),I("span",dyt,Be(M.name),1)]),I("div",fyt,Be(M.description),1),M.params?(H(),J("div",hyt,[C[8]||(C[8]=I("strong",null,"参数:",-1)),(H(!0),J(Ut,null,mn(M.params,D=>(H(),J("span",{key:D,class:"param-tag"},Be(D),1))),128))])):Re("",!0)]))),128))])]),I("div",pyt,[I("h3",vyt,[O(nt(pv),{class:"section-icon"}),C[9]||(C[9]=ze(" 配置参数 ",-1))]),I("div",myt,[(H(!0),J(Ut,null,mn(m.value,M=>(H(),J("div",{key:M.key,class:"param-item"},[I("div",gyt,[I("code",yyt,Be(M.name),1),O(E,{size:"small",color:M.typeColor},{default:de(()=>[ze(Be(M.type),1)]),_:2},1032,["color"])]),I("div",byt,Be(M.description),1)]))),128))])]),I("div",_yt,[I("h3",Syt,[O(nt(Ope),{class:"section-icon"}),C[10]||(C[10]=ze(" 示例代码 ",-1))]),O(R,{type:"card",class:"example-tabs"},{default:de(()=>[O(A,{key:"basic",title:"基础动作"},{default:de(()=>[I("pre",kyt,Be(g.value),1)]),_:1}),O(A,{key:"input",title:"单项输入"},{default:de(()=>[I("pre",wyt,Be(b.value),1)]),_:1}),O(A,{key:"multi",title:"多项输入"},{default:de(()=>[I("pre",Cyt,Be(S.value),1)]),_:1})]),_:1})])])):Re("",!0)])]),_:1})])}}},Eyt=_r(xyt,[["__scopeId","data-v-d143db2b"]]),Tyt={class:"home-container"},Ayt={class:"dashboard-header"},Iyt={class:"header-content"},Lyt={class:"welcome-section"},Pyt={class:"dashboard-title"},Ryt={class:"quick-stats"},Myt={class:"stat-item"},Dyt={class:"stat-value"},Oyt={class:"stat-item"},$yt={class:"stat-value"},Nyt={class:"stat-item"},Byt={class:"dashboard-content"},Fyt={class:"content-grid"},jyt={class:"dashboard-card watch-stats-card"},Uyt={class:"card-header"},Vyt={class:"card-title"},zyt={class:"card-content"},Hyt={class:"dashboard-card update-log-card"},Wyt={class:"card-header"},Gyt={class:"card-title"},Kyt={class:"card-content"},qyt={class:"timeline-content"},Yyt={class:"timeline-header"},Xyt={class:"version-tag"},Zyt={class:"update-date"},Qyt={class:"update-title"},Jyt={class:"update-description"},e1t={class:"update-changes"},t1t={key:0,class:"more-changes"},n1t={class:"dashboard-card recommend-card"},r1t={class:"card-header"},i1t={class:"card-title"},o1t={class:"card-content"},s1t={class:"recommend-grid"},a1t=["onClick"],l1t={class:"recommend-poster"},u1t={class:"recommend-overlay"},c1t={key:0,class:"trending-badge"},d1t={class:"recommend-info"},f1t={class:"recommend-title"},h1t={class:"recommend-meta"},p1t={class:"recommend-rating"},v1t={class:"recommend-tags"},m1t={class:"dashboard-card keywords-card"},g1t={class:"card-header"},y1t={class:"card-title"},b1t={class:"card-content"},_1t={class:"keywords-list"},S1t=["onClick"],k1t={class:"keyword-content"},w1t={class:"keyword-text"},C1t={class:"keyword-meta"},x1t={class:"keyword-count"},E1t={class:"dashboard-card system-status-card"},T1t={class:"card-header"},A1t={class:"card-title"},I1t={class:"card-content"},L1t={class:"status-grid"},P1t={class:"status-item"},R1t={class:"status-icon online"},M1t={class:"status-item"},D1t={class:"status-icon online"},O1t={class:"status-item"},$1t={class:"status-icon warning"},N1t={class:"status-item"},B1t={class:"status-icon online"},F1t={class:"update-log-modal"},j1t={class:"timeline-content"},U1t={class:"timeline-header"},V1t={class:"version-tag"},z1t={class:"update-date"},H1t={class:"update-title"},W1t={class:"update-description"},G1t={class:"update-changes"},K1t={class:"keywords-modal"},q1t={class:"keywords-list"},Y1t=["onClick"],X1t={class:"keyword-content"},Z1t={class:"keyword-text"},Q1t={class:"keyword-meta"},J1t={class:"keyword-count"},ebt={__name:"Home",setup(e){Nh([i0e,m0e,h0e,S0e,M0e,B0e,z0e,F0e]);const t=zL(),n=E3(),r=_l(),o=fe("week"),a=fe("hot"),s=fe({watchCount:0,totalWatchTime:0}),l=fe({watchCount:0,totalWatchTime:0}),c=fe([]),f=fe(0),h=fe([]),p=fe([]),m=fe([]),g=F(()=>{const ne=c.value.map(K=>K.count),X=c.value.map(K=>K.day);return{title:{text:o.value==="week"?"本周观看统计":"本月观看统计",textStyle:{fontSize:14,color:"#1D2129"}},tooltip:{trigger:"axis",axisPointer:{type:"shadow"},formatter:function(K){const re=K[0];return`${re.name}
${re.seriesName}: ${re.value}集`}},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:{type:"category",data:X,axisLabel:{color:"#86909C"}},yAxis:{type:"value",axisLabel:{color:"#86909C"}},series:[{name:"观看集数",type:"bar",data:ne,itemStyle:{color:"#165DFF"},barWidth:"60%"}]}}),b=ne=>eS.getUpdateTypeConfig()[ne]?.color||"#86909c",S=()=>eS.getUpdateTypeConfig(),k=ne=>({feature:"green",improvement:"blue",optimization:"orange",security:"red",bugfix:"purple",release:"gold"})[ne]||"gray",C=ne=>({电影:"#4A90E2",电视剧:"#50C878",动漫:"#FF6B6B",小说:"#9B59B6"})[ne]||"#86909C",x=ne=>({电影:"blue",电视剧:"green",动漫:"orange",小说:"purple"})[ne]||"gray",E=ne=>eS.formatDate(ne),_=ne=>ne>=1e4?(ne/1e4).toFixed(1)+"w":ne>=1e3?(ne/1e3).toFixed(1)+"k":ne.toString(),A=()=>{console.log("更新统计图表:",o.value)},R=()=>{switch(a.value){case"hot":p.value=tS.getHotRecommendations(8);break;case"trending":p.value=tS.getTrendingRecommendations(8);break;case"random":p.value=tS.getRandomRecommendations(8);break}},M=ne=>{console.log("点击推荐内容:",ne)},D=ne=>{console.log("点击热搜关键词:",ne)},N=fe(!1),L=fe(!1),B=fe([]),U=fe([]),W=()=>{B.value=eS.getAllUpdateLogs(),N.value=!0},V=()=>{U.value=tS.getAllKeywords(),L.value=!0},z=()=>{N.value=!1},Y=()=>{L.value=!1},oe=()=>{s.value=XE.getTodayStats(),l.value=XE.getYesterdayStats(),c.value=XE.getWeekStats(),f.value=XE.calculateGrowthRate(),h.value=eS.getRecentUpdateLogs(4),R(),m.value=tS.getHotKeywords(8)};return gn(()=>{if(n.query._restoreSearch==="true"){const X=t.getPageState("search");if(X&&X.keyword&&!t.isStateExpired("search")){console.log("Home页面恢复搜索状态:",X),r.replace({name:"Video",query:{_restoreSearch:"true"}});return}const K={...n.query};delete K._restoreSearch,r.replace({query:K})}oe(),console.log("主页看板加载完成")}),(ne,X)=>{const K=Pe("a-option"),re=Pe("a-select"),ee=Pe("a-link"),le=Pe("a-tag"),Q=Pe("a-timeline-item"),ye=Pe("a-timeline"),be=Pe("a-modal");return H(),J(Ut,null,[I("div",Tyt,[I("div",Ayt,[I("div",Iyt,[I("div",Lyt,[I("h1",Pyt,[O(nt(Vk),{class:"title-icon"}),X[4]||(X[4]=ze(" 数据看板 ",-1))]),X[5]||(X[5]=I("p",{class:"dashboard-subtitle"},"欢迎回来,今天也要愉快地追剧哦~",-1))]),I("div",Ryt,[I("div",Myt,[I("div",Dyt,Be(s.value.watchCount),1),X[6]||(X[6]=I("div",{class:"stat-label"},"今日观看",-1))]),I("div",Oyt,[I("div",$yt,Be(Math.round(s.value.totalWatchTime/60)),1),X[7]||(X[7]=I("div",{class:"stat-label"},"总时长(分钟)",-1))]),I("div",Nyt,[I("div",{class:ae(["stat-value",{positive:f.value>0,negative:f.value<0}])},Be(f.value>0?"+":"")+Be(f.value)+"% ",3),X[8]||(X[8]=I("div",{class:"stat-label"},"增长率",-1))])])])]),I("div",Byt,[I("div",Fyt,[I("div",jyt,[I("div",Uyt,[I("h3",Vyt,[O(nt(zpe),{class:"card-icon"}),X[9]||(X[9]=ze(" 最近观看统计 ",-1))]),O(re,{modelValue:o.value,"onUpdate:modelValue":X[0]||(X[0]=ve=>o.value=ve),size:"small",style:{width:"100px"},onChange:A},{default:de(()=>[O(K,{value:"week"},{default:de(()=>[...X[10]||(X[10]=[ze("本周",-1)])]),_:1}),O(K,{value:"month"},{default:de(()=>[...X[11]||(X[11]=[ze("本月",-1)])]),_:1})]),_:1},8,["modelValue"])]),I("div",zyt,[O(nt(G0e),{class:"chart",option:g.value},null,8,["option"])])]),I("div",Hyt,[I("div",Wyt,[I("h3",Gyt,[O(nt(S1),{class:"card-icon"}),X[12]||(X[12]=ze(" 更新日志 ",-1))]),O(ee,{onClick:W,size:"small"},{default:de(()=>[...X[13]||(X[13]=[ze("查看全部",-1)])]),_:1})]),I("div",Kyt,[O(ye,null,{default:de(()=>[(H(!0),J(Ut,null,mn(h.value,ve=>(H(),Ye(Q,{key:ve.id,"dot-color":b(ve.type)},{default:de(()=>[I("div",qyt,[I("div",Yyt,[I("span",Xyt,Be(ve.version),1),I("span",Zyt,Be(E(ve.date)),1)]),I("h4",Qyt,Be(ve.title),1),I("p",Jyt,Be(ve.description),1),I("div",e1t,[(H(!0),J(Ut,null,mn(ve.changes.slice(0,2),(Ce,De)=>(H(),Ye(le,{key:De,size:"small",color:k(ve.type)},{default:de(()=>[ze(Be(Ce),1)]),_:2},1032,["color"]))),128)),ve.changes.length>2?(H(),J("span",t1t," +"+Be(ve.changes.length-2)+"项更新 ",1)):Re("",!0)])])]),_:2},1032,["dot-color"]))),128))]),_:1})])]),I("div",n1t,[I("div",r1t,[I("h3",i1t,[O(nt(rL),{class:"card-icon"}),X[14]||(X[14]=ze(" 猜你喜欢 ",-1))]),O(re,{modelValue:a.value,"onUpdate:modelValue":X[1]||(X[1]=ve=>a.value=ve),size:"small",style:{width:"80px"},onChange:R},{default:de(()=>[O(K,{value:"hot"},{default:de(()=>[...X[15]||(X[15]=[ze("热门",-1)])]),_:1}),O(K,{value:"trending"},{default:de(()=>[...X[16]||(X[16]=[ze("趋势",-1)])]),_:1}),O(K,{value:"random"},{default:de(()=>[...X[17]||(X[17]=[ze("随机",-1)])]),_:1})]),_:1},8,["modelValue"])]),I("div",o1t,[I("div",s1t,[(H(!0),J(Ut,null,mn(p.value,ve=>(H(),J("div",{key:ve.id,class:"recommend-item",onClick:Ce=>M(ve)},[I("div",l1t,[I("div",{class:"poster-placeholder",style:je({backgroundColor:C(ve.type)})},Be(ve.title.substring(0,2)),5),I("div",u1t,[O(nt(ml),{class:"play-icon"})]),ve.trending?(H(),J("div",c1t," 🔥 热门 ")):Re("",!0)]),I("div",d1t,[I("h4",f1t,Be(ve.title),1),I("div",h1t,[O(le,{size:"small",color:x(ve.type)},{default:de(()=>[ze(Be(ve.type),1)]),_:2},1032,["color"]),I("span",p1t,[O(nt(Nz)),ze(" "+Be(ve.rating),1)])]),I("div",v1t,[(H(!0),J(Ut,null,mn(ve.tags.slice(0,2),Ce=>(H(),Ye(le,{key:Ce,size:"mini",color:"gray"},{default:de(()=>[ze(Be(Ce),1)]),_:2},1024))),128))])])],8,a1t))),128))])])]),I("div",m1t,[I("div",g1t,[I("h3",y1t,[O(nt(Wpe),{class:"card-icon"}),X[18]||(X[18]=ze(" 热搜关键词 ",-1))]),O(ee,{onClick:V,size:"small"},{default:de(()=>[...X[19]||(X[19]=[ze("更多",-1)])]),_:1})]),I("div",b1t,[I("div",_1t,[(H(!0),J(Ut,null,mn(m.value,(ve,Ce)=>(H(),J("div",{key:ve.keyword,class:"keyword-item",onClick:De=>D(ve)},[I("div",{class:ae(["keyword-rank",{"top-three":Ce<3}])},Be(Ce+1),3),I("div",k1t,[I("span",w1t,Be(ve.keyword),1),I("div",C1t,[I("span",x1t,Be(_(ve.count)),1),I("span",{class:ae(["keyword-trend",ve.trend])},[ve.trend==="up"?(H(),Ye(nt(wj),{key:0})):ve.trend==="down"?(H(),Ye(nt(kj),{key:1})):(H(),Ye(nt(Sg),{key:2}))],2)])])],8,S1t))),128))])])]),I("div",E1t,[I("div",T1t,[I("h3",A1t,[O(nt(tH),{class:"card-icon"}),X[20]||(X[20]=ze(" 系统状态 ",-1))])]),I("div",I1t,[I("div",L1t,[I("div",P1t,[I("div",R1t,[O(nt(xc))]),X[21]||(X[21]=I("div",{class:"status-info"},[I("div",{class:"status-label"},"播放服务"),I("div",{class:"status-value"},"正常")],-1))]),I("div",M1t,[I("div",D1t,[O(nt(xc))]),X[22]||(X[22]=I("div",{class:"status-info"},[I("div",{class:"status-label"},"数据同步"),I("div",{class:"status-value"},"正常")],-1))]),I("div",O1t,[I("div",$1t,[O(nt(dh))]),X[23]||(X[23]=I("div",{class:"status-info"},[I("div",{class:"status-label"},"存储空间"),I("div",{class:"status-value"},"85%")],-1))]),I("div",N1t,[I("div",B1t,[O(nt(xc))]),X[24]||(X[24]=I("div",{class:"status-info"},[I("div",{class:"status-label"},"网络连接"),I("div",{class:"status-value"},"良好")],-1))])])])]),O(Eyt)])])]),O(be,{visible:N.value,"onUpdate:visible":X[2]||(X[2]=ve=>N.value=ve),title:"更新日志",width:"800px",footer:!1,onCancel:z},{default:de(()=>[I("div",F1t,[O(ye,null,{default:de(()=>[(H(!0),J(Ut,null,mn(B.value,ve=>(H(),Ye(Q,{key:ve.id,"dot-color":b(ve.type)},{default:de(()=>[I("div",j1t,[I("div",U1t,[I("span",V1t,Be(ve.version),1),I("span",z1t,Be(E(ve.date)),1),O(le,{size:"small",color:k(ve.type),class:"type-tag"},{default:de(()=>[ze(Be(S()[ve.type]?.label||ve.type),1)]),_:2},1032,["color"])]),I("h4",H1t,Be(ve.title),1),I("p",W1t,Be(ve.description),1),I("div",G1t,[(H(!0),J(Ut,null,mn(ve.changes,(Ce,De)=>(H(),Ye(le,{key:De,size:"small",color:k(ve.type),class:"change-tag"},{default:de(()=>[ze(Be(Ce),1)]),_:2},1032,["color"]))),128))])])]),_:2},1032,["dot-color"]))),128))]),_:1})])]),_:1},8,["visible"]),O(be,{visible:L.value,"onUpdate:visible":X[3]||(X[3]=ve=>L.value=ve),title:"热搜关键词",width:"600px",footer:!1,onCancel:Y},{default:de(()=>[I("div",K1t,[I("div",q1t,[(H(!0),J(Ut,null,mn(U.value,(ve,Ce)=>(H(),J("div",{key:ve.keyword,class:"keyword-item",onClick:De=>D(ve)},[I("div",{class:ae(["keyword-rank",{"top-three":Ce<3}])},Be(Ce+1),3),I("div",X1t,[I("span",Z1t,Be(ve.keyword),1),I("div",Q1t,[I("span",J1t,Be(_(ve.count)),1),I("span",{class:ae(["keyword-trend",ve.trend])},[ve.trend==="up"?(H(),Ye(nt(wj),{key:0})):ve.trend==="down"?(H(),Ye(nt(kj),{key:1})):(H(),Ye(nt(Sg),{key:2}))],2)])])],8,Y1t))),128))])])]),_:1},8,["visible"])],64)}}},tbt=_r(ebt,[["__scopeId","data-v-217d9b8b"]]),nbt={class:"tag-container"},rbt={class:"search-section"},ibt={class:"search-row"},obt={class:"source-count"},sbt={class:"sources-section"},abt={key:0,class:"empty-state"},lbt={key:1,class:"button-container"},ubt={class:"source-info"},cbt={class:"source-name"},dbt={key:0,class:"current-icon"},fbt={class:"dialog-footer"},hbt={class:"footer-left"},pbt={class:"footer-right"},vbt={__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},f={ds:"(DS)",hipy:"(hipy)",cat:"(cat)"},h=F(()=>{const E=n.sites.filter(A=>A.type===4).map(A=>c(A.name)).filter(A=>A!==null);return[...[...new Set(E)],"ds","hipy","cat"]}),p=E=>{E==="全部"?o.value="":f[E]?o.value=f[E]:o.value=`[${E}]`,l.value=!1},m=F(()=>{const E=o.value.toLowerCase();return n.sites.filter(_=>_.type===4).filter(_=>_.name.toLowerCase().includes(E))}),g=F(()=>window.innerWidth<768?"95%":"700px"),b=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=()=>{yn(()=>{if(s.value&&s.value.length>0){const E=s.value[0];E&&E.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})}})};return Dt(()=>n.visible,E=>{E&&n.currentSiteKey&&setTimeout(()=>{x()},100)}),Dt(m,()=>{n.visible&&n.currentSiteKey&&o.value.trim()!==""&&m.value.some(_=>_.key===n.currentSiteKey)&&setTimeout(()=>{x()},50)}),(E,_)=>{const A=Pe("a-button"),R=Pe("a-modal"),M=Pe("a-input");return H(),J(Ut,null,[O(R,{visible:l.value,title:`TAG [${h.value.length}]`,width:g.value,class:"tag_dialog","append-to-body":"",onCancel:_[1]||(_[1]=D=>l.value=!1)},{default:de(()=>[I("div",nbt,[O(A,{type:"secondary",class:"tag-item",onClick:_[0]||(_[0]=D=>p("全部"))},{default:de(()=>[..._[4]||(_[4]=[ze(" 全部 ",-1)])]),_:1}),(H(!0),J(Ut,null,mn(h.value,(D,N)=>(H(),Ye(A,{key:N,type:"secondary",class:"tag-item",onClick:L=>p(D)},{default:de(()=>[ze(Be(D),1)]),_:2},1032,["onClick"]))),128))])]),_:1},8,["visible","title","width"]),O(R,{visible:e.visible,title:e.title,width:g.value,class:"change_rule_dialog","append-to-body":"","on-before-cancel":S},{footer:de(()=>[I("div",fbt,[I("div",hbt,[O(A,{type:"outline",status:"danger",onClick:S},{default:de(()=>[O(nt(rf)),_[7]||(_[7]=ze(" 清除缓存 ",-1))]),_:1})]),I("div",pbt,[O(A,{onClick:C},{default:de(()=>[..._[8]||(_[8]=[ze("取消",-1)])]),_:1}),O(A,{type:"primary",onClick:k,disabled:!a.value.new_site.key},{default:de(()=>[..._[9]||(_[9]=[ze(" 确认换源 ",-1)])]),_:1},8,["disabled"])])])]),default:de(()=>[I("div",rbt,[I("div",ibt,[O(M,{modelValue:o.value,"onUpdate:modelValue":_[2]||(_[2]=D=>o.value=D),placeholder:"搜索数据源名称...",class:"site_filter_input","allow-clear":""},{prefix:de(()=>[O(nt(bg))]),_:1},8,["modelValue"]),O(A,{type:"primary",status:"success",class:"tag-button",onClick:_[3]||(_[3]=D=>l.value=!0)},{default:de(()=>[..._[5]||(_[5]=[ze(" TAG ",-1)])]),_:1})]),I("div",obt," 共 "+Be(m.value.length)+" 个可用数据源 ",1)]),I("div",sbt,[m.value.length===0?(H(),J("div",abt,[O(nt(uz)),_[6]||(_[6]=I("p",null,"未找到匹配的数据源",-1))])):(H(),J("div",lbt,[(H(!0),J(Ut,null,mn(m.value,(D,N)=>(H(),J("div",{key:D.key||N,ref_for:!0,ref:D.key===e.currentSiteKey?"currentSourceRef":null,class:ae(["btn-item",{selected:a.value.new_site.key===D.key,"current-source":D.key===e.currentSiteKey}])},[O(A,{type:"primary",status:a.value.new_site.key===D.key?"success":"primary",size:"medium",onClick:L=>b(D),class:ae(["source-button",{"current-source-button":D.key===e.currentSiteKey}])},{default:de(()=>[I("div",ubt,[I("div",cbt,Be(D.name),1),D.key===e.currentSiteKey?(H(),J("div",dbt,[O(nt(jh))])):Re("",!0)])]),_:2},1032,["status","onClick","class"])],2))),128))]))])]),_:1},8,["visible","title","width"])],64)}}},mbt=_r(vbt,[["__scopeId","data-v-105ac4df"]]),gbt={class:"breadcrumb-container"},ybt={class:"header-left"},bbt={class:"navigation-title"},_bt={class:"header-center"},Sbt={class:"header-right"},kbt={class:"push-modal-content"},wbt={class:"push-description"},Cbt={class:"push-hint"},xbt={class:"hint-item"},Ebt={class:"hint-item"},Tbt={__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 b=typeof g=="string"?g:r.value;b&&typeof b=="string"&&b.trim()&&n("onSearch",b.trim())},f=()=>{o.value=!0,a.value=""},h=()=>{Pt.info({content:"全局动作功能开发中,敬请期待!",duration:3e3})},p=()=>{if(!a.value.trim()){Pt.error("推送内容不能为空");return}const g=a.value.split(` `).map(S=>S.trim()).filter(S=>S);if(g.length===0){Pt.error("请输入有效的推送内容");return}const b=g[0];g.length>1&&Pt.info(`检测到多行输入,将使用第一行内容: ${b}`),n("handlePush",b),o.value=!1,a.value=""},m=()=>{o.value=!1,a.value=""};return(g,b)=>{const S=Pe("icon-apps"),k=Pe("a-button"),C=Pe("icon-refresh"),x=Pe("a-input-search"),E=Pe("icon-send"),_=Pe("icon-thunderbolt"),A=Pe("a-textarea"),R=Pe("icon-info-circle"),M=Pe("icon-bulb"),D=Pe("a-modal");return H(),J(Ut,null,[I("div",gbt,[I("div",ybt,[I("span",bbt,Be(e.navigation_title),1),O(k,{type:"outline",status:"success",shape:"round",onClick:s},{icon:de(()=>[O(S)]),default:de(()=>[ze(Be(e.now_site_title),1)]),_:1}),O(k,{type:"outline",status:"success",shape:"round",onClick:l},{icon:de(()=>[O(C)]),default:de(()=>[...b[3]||(b[3]=[ze("重载源",-1)])]),_:1})]),I("div",_bt,[O(x,{modelValue:r.value,"onUpdate:modelValue":b[0]||(b[0]=N=>r.value=N),placeholder:"搜索视频","enter-button":"",onSearch:c,onPressEnter:c},null,8,["modelValue"])]),I("div",Sbt,[O(k,{type:"outline",status:"success",shape:"round",onClick:f},{icon:de(()=>[O(E)]),default:de(()=>[...b[4]||(b[4]=[ze("推送",-1)])]),_:1}),O(k,{type:"outline",status:"success",shape:"round",onClick:h},{icon:de(()=>[O(_)]),default:de(()=>[...b[5]||(b[5]=[ze("全局动作",-1)])]),_:1}),ct(g.$slots,"default",{},void 0,!0)])]),O(D,{visible:o.value,"onUpdate:visible":b[2]||(b[2]=N=>o.value=N),title:"推送内容",width:600,onOk:p,onCancel:m,"ok-text":"确认推送","cancel-text":"取消","ok-button-props":{disabled:!a.value.trim()}},{default:de(()=>[I("div",kbt,[I("div",wbt,[O(E,{class:"push-icon"}),b[6]||(b[6]=I("span",null,"请输入要推送的内容(vod_id):",-1))]),O(A,{modelValue:a.value,"onUpdate:modelValue":b[1]||(b[1]=N=>a.value=N),placeholder:`请输入要推送的内容... 支持多行输入,每行一个vod_id`,rows:6,"max-length":1e3,"show-word-limit":"","allow-clear":"",autofocus:"",class:"push-textarea"},null,8,["modelValue"]),I("div",Cbt,[I("div",xbt,[O(R,{class:"hint-icon"}),b[7]||(b[7]=I("span",null,"输入的内容将作为vod_id调用push_agent源的详情接口",-1))]),I("div",Ebt,[O(M,{class:"hint-icon"}),b[8]||(b[8]=I("span",null,"支持多行输入,系统将使用第一行非空内容作为vod_id",-1))])])])]),_:1},8,["visible","ok-button-props"])],64)}}},Abt=_r(Tbt,[["__scopeId","data-v-20e05b46"]]);function J0e(e,t){return function(){return e.apply(t,arguments)}}const{toString:Ibt}=Object.prototype,{getPrototypeOf:dW}=Object,{iterator:HL,toStringTag:eye}=Symbol,WL=(e=>t=>{const n=Ibt.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Pd=e=>(e=e.toLowerCase(),t=>WL(t)===e),GL=e=>t=>typeof t===e,{isArray:nb}=Array,T1=GL("undefined");function Qk(e){return e!==null&&!T1(e)&&e.constructor!==null&&!T1(e.constructor)&&ku(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const tye=Pd("ArrayBuffer");function Lbt(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&tye(e.buffer),t}const Pbt=GL("string"),ku=GL("function"),nye=GL("number"),Jk=e=>e!==null&&typeof e=="object",Rbt=e=>e===!0||e===!1,Z4=e=>{if(WL(e)!=="object")return!1;const t=dW(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(eye in e)&&!(HL in e)},Mbt=e=>{if(!Jk(e)||Qk(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Dbt=Pd("Date"),Obt=Pd("File"),$bt=Pd("Blob"),Nbt=Pd("FileList"),Bbt=e=>Jk(e)&&ku(e.pipe),Fbt=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||ku(e.append)&&((t=WL(e))==="formdata"||t==="object"&&ku(e.toString)&&e.toString()==="[object FormData]"))},jbt=Pd("URLSearchParams"),[Ubt,Vbt,zbt,Hbt]=["ReadableStream","Request","Response","Headers"].map(Pd),Wbt=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ew(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),nb(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const Hm=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,iye=e=>!T1(e)&&e!==Hm;function DU(){const{caseless:e,skipUndefined:t}=iye(this)&&this||{},n={},r=(o,a)=>{const s=e&&rye(n,a)||a;Z4(n[s])&&Z4(o)?n[s]=DU(n[s],o):Z4(o)?n[s]=DU({},o):nb(o)?n[s]=o.slice():(!t||!T1(o))&&(n[s]=o)};for(let o=0,a=arguments.length;o(ew(t,(o,a)=>{n&&ku(o)?e[a]=J0e(o,n):e[a]=o},{allOwnKeys:r}),e),Kbt=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),qbt=(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)},Ybt=(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&&dW(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Xbt=(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},Zbt=e=>{if(!e)return null;if(nb(e))return e;let t=e.length;if(!nye(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Qbt=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&dW(Uint8Array)),Jbt=(e,t)=>{const r=(e&&e[HL]).call(e);let o;for(;(o=r.next())&&!o.done;){const a=o.value;t.call(e,a[0],a[1])}},e_t=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},t_t=Pd("HTMLFormElement"),n_t=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),Pse=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),r_t=Pd("RegExp"),oye=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};ew(n,(o,a)=>{let s;(s=t(o,a,e))!==!1&&(r[a]=s||o)}),Object.defineProperties(e,r)},i_t=e=>{oye(e,(t,n)=>{if(ku(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(ku(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+"'")})}})},o_t=(e,t)=>{const n={},r=o=>{o.forEach(a=>{n[a]=!0})};return nb(e)?r(e):r(String(e).split(t)),n},s_t=()=>{},a_t=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function l_t(e){return!!(e&&ku(e.append)&&e[eye]==="FormData"&&e[HL])}const u_t=e=>{const t=new Array(10),n=(r,o)=>{if(Jk(r)){if(t.indexOf(r)>=0)return;if(Qk(r))return r;if(!("toJSON"in r)){t[o]=r;const a=nb(r)?[]:{};return ew(r,(s,l)=>{const c=n(s,o+1);!T1(c)&&(a[l]=c)}),t[o]=void 0,a}}return r};return n(e,0)},c_t=Pd("AsyncFunction"),d_t=e=>e&&(Jk(e)||ku(e))&&ku(e.then)&&ku(e.catch),sye=((e,t)=>e?setImmediate:t?((n,r)=>(Hm.addEventListener("message",({source:o,data:a})=>{o===Hm&&a===n&&r.length&&r.shift()()},!1),o=>{r.push(o),Hm.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",ku(Hm.postMessage)),f_t=typeof queueMicrotask<"u"?queueMicrotask.bind(Hm):typeof process<"u"&&process.nextTick||sye,h_t=e=>e!=null&&ku(e[HL]),Zt={isArray:nb,isArrayBuffer:tye,isBuffer:Qk,isFormData:Fbt,isArrayBufferView:Lbt,isString:Pbt,isNumber:nye,isBoolean:Rbt,isObject:Jk,isPlainObject:Z4,isEmptyObject:Mbt,isReadableStream:Ubt,isRequest:Vbt,isResponse:zbt,isHeaders:Hbt,isUndefined:T1,isDate:Dbt,isFile:Obt,isBlob:$bt,isRegExp:r_t,isFunction:ku,isStream:Bbt,isURLSearchParams:jbt,isTypedArray:Qbt,isFileList:Nbt,forEach:ew,merge:DU,extend:Gbt,trim:Wbt,stripBOM:Kbt,inherits:qbt,toFlatObject:Ybt,kindOf:WL,kindOfTest:Pd,endsWith:Xbt,toArray:Zbt,forEachEntry:Jbt,matchAll:e_t,isHTMLForm:t_t,hasOwnProperty:Pse,hasOwnProp:Pse,reduceDescriptors:oye,freezeMethods:i_t,toObjectSet:o_t,toCamelCase:n_t,noop:s_t,toFiniteNumber:a_t,findKey:rye,global:Hm,isContextDefined:iye,isSpecCompliantForm:l_t,toJSONObject:u_t,isAsyncFn:c_t,isThenable:d_t,setImmediate:sye,asap:f_t,isIterable:h_t};function qr(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)}Zt.inherits(qr,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:Zt.toJSONObject(this.config),code:this.code,status:this.status}}});const aye=qr.prototype,lye={};["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=>{lye[e]={value:e}});Object.defineProperties(qr,lye);Object.defineProperty(aye,"isAxiosError",{value:!0});qr.from=(e,t,n,r,o,a)=>{const s=Object.create(aye);Zt.toFlatObject(e,s,function(h){return h!==Error.prototype},f=>f!=="isAxiosError");const l=e&&e.message?e.message:"Error",c=t==null&&e?e.code:t;return qr.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 p_t=null;function OU(e){return Zt.isPlainObject(e)||Zt.isArray(e)}function uye(e){return Zt.endsWith(e,"[]")?e.slice(0,-2):e}function Rse(e,t,n){return e?e.concat(t).map(function(o,a){return o=uye(o),!n&&a?"["+o+"]":o}).join(n?".":""):t}function v_t(e){return Zt.isArray(e)&&!e.some(OU)}const m_t=Zt.toFlatObject(Zt,{},null,function(t){return/^is[A-Z]/.test(t)});function KL(e,t,n){if(!Zt.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Zt.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(S,k){return!Zt.isUndefined(k[S])});const r=n.metaTokens,o=n.visitor||h,a=n.dots,s=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&Zt.isSpecCompliantForm(t);if(!Zt.isFunction(o))throw new TypeError("visitor must be a function");function f(b){if(b===null)return"";if(Zt.isDate(b))return b.toISOString();if(Zt.isBoolean(b))return b.toString();if(!c&&Zt.isBlob(b))throw new qr("Blob is not supported. Use a Buffer instead.");return Zt.isArrayBuffer(b)||Zt.isTypedArray(b)?c&&typeof Blob=="function"?new Blob([b]):Buffer.from(b):b}function h(b,S,k){let C=b;if(b&&!k&&typeof b=="object"){if(Zt.endsWith(S,"{}"))S=r?S:S.slice(0,-2),b=JSON.stringify(b);else if(Zt.isArray(b)&&v_t(b)||(Zt.isFileList(b)||Zt.endsWith(S,"[]"))&&(C=Zt.toArray(b)))return S=uye(S),C.forEach(function(E,_){!(Zt.isUndefined(E)||E===null)&&t.append(s===!0?Rse([S],_,a):s===null?S:S+"[]",f(E))}),!1}return OU(b)?!0:(t.append(Rse(k,S,a),f(b)),!1)}const p=[],m=Object.assign(m_t,{defaultVisitor:h,convertValue:f,isVisitable:OU});function g(b,S){if(!Zt.isUndefined(b)){if(p.indexOf(b)!==-1)throw Error("Circular reference detected in "+S.join("."));p.push(b),Zt.forEach(b,function(C,x){(!(Zt.isUndefined(C)||C===null)&&o.call(t,C,Zt.isString(x)?x.trim():x,S,m))===!0&&g(C,S?S.concat(x):[x])}),p.pop()}}if(!Zt.isObject(e))throw new TypeError("data must be an object");return g(e),t}function Mse(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function fW(e,t){this._pairs=[],e&&KL(e,this,t)}const cye=fW.prototype;cye.append=function(t,n){this._pairs.push([t,n])};cye.toString=function(t){const n=t?function(r){return t.call(this,r,Mse)}:Mse;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function g_t(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function dye(e,t,n){if(!t)return e;const r=n&&n.encode||g_t;Zt.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let a;if(o?a=o(t,n):a=Zt.isURLSearchParams(t)?t.toString():new fW(t,n).toString(r),a){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class Dse{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){Zt.forEach(this.handlers,function(r){r!==null&&t(r)})}}const fye={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},y_t=typeof URLSearchParams<"u"?URLSearchParams:fW,b_t=typeof FormData<"u"?FormData:null,__t=typeof Blob<"u"?Blob:null,S_t={isBrowser:!0,classes:{URLSearchParams:y_t,FormData:b_t,Blob:__t},protocols:["http","https","file","blob","url","data"]},hW=typeof window<"u"&&typeof document<"u",$U=typeof navigator=="object"&&navigator||void 0,k_t=hW&&(!$U||["ReactNative","NativeScript","NS"].indexOf($U.product)<0),w_t=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",C_t=hW&&window.location.href||"http://localhost",x_t=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:hW,hasStandardBrowserEnv:k_t,hasStandardBrowserWebWorkerEnv:w_t,navigator:$U,origin:C_t},Symbol.toStringTag,{value:"Module"})),hl={...x_t,...S_t};function E_t(e,t){return KL(e,new hl.classes.URLSearchParams,{visitor:function(n,r,o,a){return hl.isNode&&Zt.isBuffer(n)?(this.append(r,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)},...t})}function T_t(e){return Zt.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function A_t(e){const t={},n=Object.keys(e);let r;const o=n.length;let a;for(r=0;r=n.length;return s=!s&&Zt.isArray(o)?o.length:s,c?(Zt.hasOwnProp(o,s)?o[s]=[o[s],r]:o[s]=r,!l):((!o[s]||!Zt.isObject(o[s]))&&(o[s]=[]),t(n,r,o[s],a)&&Zt.isArray(o[s])&&(o[s]=A_t(o[s])),!l)}if(Zt.isFormData(e)&&Zt.isFunction(e.entries)){const n={};return Zt.forEachEntry(e,(r,o)=>{t(T_t(r),o,n,0)}),n}return null}function I_t(e,t,n){if(Zt.isString(e))try{return(t||JSON.parse)(e),Zt.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const tw={transitional:fye,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,a=Zt.isObject(t);if(a&&Zt.isHTMLForm(t)&&(t=new FormData(t)),Zt.isFormData(t))return o?JSON.stringify(hye(t)):t;if(Zt.isArrayBuffer(t)||Zt.isBuffer(t)||Zt.isStream(t)||Zt.isFile(t)||Zt.isBlob(t)||Zt.isReadableStream(t))return t;if(Zt.isArrayBufferView(t))return t.buffer;if(Zt.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 E_t(t,this.formSerializer).toString();if((l=Zt.isFileList(t))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return KL(l?{"files[]":t}:t,c&&new c,this.formSerializer)}}return a||o?(n.setContentType("application/json",!1),I_t(t)):t}],transformResponse:[function(t){const n=this.transitional||tw.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(Zt.isResponse(t)||Zt.isReadableStream(t))return t;if(t&&Zt.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"?qr.from(l,qr.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:hl.classes.FormData,Blob:hl.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Zt.forEach(["delete","get","head","post","put","patch"],e=>{tw.headers[e]={}});const L_t=Zt.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"]),P_t=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]&&L_t[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Ose=Symbol("internals");function nS(e){return e&&String(e).trim().toLowerCase()}function Q4(e){return e===!1||e==null?e:Zt.isArray(e)?e.map(Q4):String(e)}function R_t(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 M_t=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function R9(e,t,n,r,o){if(Zt.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!Zt.isString(t)){if(Zt.isString(r))return t.indexOf(r)!==-1;if(Zt.isRegExp(r))return r.test(t)}}function D_t(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function O_t(e,t){const n=Zt.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 wu=class{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function a(l,c,f){const h=nS(c);if(!h)throw new Error("header name must be a non-empty string");const p=Zt.findKey(o,h);(!p||o[p]===void 0||f===!0||f===void 0&&o[p]!==!1)&&(o[p||c]=Q4(l))}const s=(l,c)=>Zt.forEach(l,(f,h)=>a(f,h,c));if(Zt.isPlainObject(t)||t instanceof this.constructor)s(t,n);else if(Zt.isString(t)&&(t=t.trim())&&!M_t(t))s(P_t(t),n);else if(Zt.isObject(t)&&Zt.isIterable(t)){let l={},c,f;for(const h of t){if(!Zt.isArray(h))throw TypeError("Object iterator must return a key-value pair");l[f=h[0]]=(c=l[f])?Zt.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=nS(t),t){const r=Zt.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return R_t(o);if(Zt.isFunction(n))return n.call(this,o,r);if(Zt.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=nS(t),t){const r=Zt.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||R9(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function a(s){if(s=nS(s),s){const l=Zt.findKey(r,s);l&&(!n||R9(r,r[l],l,n))&&(delete r[l],o=!0)}}return Zt.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||R9(this,this[a],a,t,!0))&&(delete this[a],o=!0)}return o}normalize(t){const n=this,r={};return Zt.forEach(this,(o,a)=>{const s=Zt.findKey(r,a);if(s){n[s]=Q4(o),delete n[a];return}const l=t?D_t(a):String(a).trim();l!==a&&delete n[a],n[l]=Q4(o),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Zt.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&Zt.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[Ose]=this[Ose]={accessors:{}}).accessors,o=this.prototype;function a(s){const l=nS(s);r[l]||(O_t(o,s),r[l]=!0)}return Zt.isArray(t)?t.forEach(a):a(t),this}};wu.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Zt.reduceDescriptors(wu.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});Zt.freezeMethods(wu);function M9(e,t){const n=this||tw,r=t||n,o=wu.from(r.headers);let a=r.data;return Zt.forEach(e,function(l){a=l.call(n,a,o.normalize(),t?t.status:void 0)}),o.normalize(),a}function pye(e){return!!(e&&e.__CANCEL__)}function rb(e,t,n){qr.call(this,e??"canceled",qr.ERR_CANCELED,t,n),this.name="CanceledError"}Zt.inherits(rb,qr,{__CANCEL__:!0});function vye(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new qr("Request failed with status code "+n.status,[qr.ERR_BAD_REQUEST,qr.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function $_t(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function N_t(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 f=Date.now(),h=r[a];s||(s=f),n[o]=c,r[o]=f;let p=a,m=0;for(;p!==o;)m+=n[p++],p=p%e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),f-s{n=h,o=null,a&&(clearTimeout(a),a=null),e(...f)};return[(...f)=>{const h=Date.now(),p=h-n;p>=r?s(f,h):(o=f,a||(a=setTimeout(()=>{a=null,s(o)},r-p)))},()=>o&&s(o)]}const LI=(e,t,n=3)=>{let r=0;const o=N_t(50,250);return B_t(a=>{const s=a.loaded,l=a.lengthComputable?a.total:void 0,c=s-r,f=o(c),h=s<=l;r=s;const p={loaded:s,total:l,progress:l?s/l:void 0,bytes:c,rate:f||void 0,estimated:f&&l&&h?(l-s)/f:void 0,event:a,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(p)},n)},$se=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Nse=e=>(...t)=>Zt.asap(()=>e(...t)),F_t=hl.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,hl.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(hl.origin),hl.navigator&&/(msie|trident)/i.test(hl.navigator.userAgent)):()=>!0,j_t=hl.hasStandardBrowserEnv?{write(e,t,n,r,o,a){const s=[e+"="+encodeURIComponent(t)];Zt.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),Zt.isString(r)&&s.push("path="+r),Zt.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 U_t(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function V_t(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function mye(e,t,n){let r=!U_t(t);return e&&(r||n==!1)?V_t(e,t):t}const Bse=e=>e instanceof wu?{...e}:e;function Tg(e,t){t=t||{};const n={};function r(f,h,p,m){return Zt.isPlainObject(f)&&Zt.isPlainObject(h)?Zt.merge.call({caseless:m},f,h):Zt.isPlainObject(h)?Zt.merge({},h):Zt.isArray(h)?h.slice():h}function o(f,h,p,m){if(Zt.isUndefined(h)){if(!Zt.isUndefined(f))return r(void 0,f,p,m)}else return r(f,h,p,m)}function a(f,h){if(!Zt.isUndefined(h))return r(void 0,h)}function s(f,h){if(Zt.isUndefined(h)){if(!Zt.isUndefined(f))return r(void 0,f)}else return r(void 0,h)}function l(f,h,p){if(p in t)return r(f,h);if(p in e)return r(void 0,f)}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:(f,h,p)=>o(Bse(f),Bse(h),p,!0)};return Zt.forEach(Object.keys({...e,...t}),function(h){const p=c[h]||o,m=p(e[h],t[h],h);Zt.isUndefined(m)&&p!==l||(n[h]=m)}),n}const gye=e=>{const t=Tg({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:a,headers:s,auth:l}=t;if(t.headers=s=wu.from(s),t.url=dye(mye(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),Zt.isFormData(n)){if(hl.hasStandardBrowserEnv||hl.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(Zt.isFunction(n.getHeaders)){const c=n.getHeaders(),f=["content-type","content-length"];Object.entries(c).forEach(([h,p])=>{f.includes(h.toLowerCase())&&s.set(h,p)})}}if(hl.hasStandardBrowserEnv&&(r&&Zt.isFunction(r)&&(r=r(t)),r||r!==!1&&F_t(t.url))){const c=o&&a&&j_t.read(a);c&&s.set(o,c)}return t},z_t=typeof XMLHttpRequest<"u",H_t=z_t&&function(e){return new Promise(function(n,r){const o=gye(e);let a=o.data;const s=wu.from(o.headers).normalize();let{responseType:l,onUploadProgress:c,onDownloadProgress:f}=o,h,p,m,g,b;function S(){g&&g(),b&&b(),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=wu.from("getAllResponseHeaders"in k&&k.getAllResponseHeaders()),A={data:!l||l==="text"||l==="json"?k.responseText:k.response,status:k.status,statusText:k.statusText,headers:E,config:e,request:k};vye(function(M){n(M),S()},function(M){r(M),S()},A),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 qr("Request aborted",qr.ECONNABORTED,e,k)),k=null)},k.onerror=function(_){const A=_&&_.message?_.message:"Network Error",R=new qr(A,qr.ERR_NETWORK,e,k);R.event=_||null,r(R),k=null},k.ontimeout=function(){let _=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const A=o.transitional||fye;o.timeoutErrorMessage&&(_=o.timeoutErrorMessage),r(new qr(_,A.clarifyTimeoutError?qr.ETIMEDOUT:qr.ECONNABORTED,e,k)),k=null},a===void 0&&s.setContentType(null),"setRequestHeader"in k&&Zt.forEach(s.toJSON(),function(_,A){k.setRequestHeader(A,_)}),Zt.isUndefined(o.withCredentials)||(k.withCredentials=!!o.withCredentials),l&&l!=="json"&&(k.responseType=o.responseType),f&&([m,b]=LI(f,!0),k.addEventListener("progress",m)),c&&k.upload&&([p,g]=LI(c),k.upload.addEventListener("progress",p),k.upload.addEventListener("loadend",g)),(o.cancelToken||o.signal)&&(h=E=>{k&&(r(!E||E.type?new rb(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=$_t(o.url);if(x&&hl.protocols.indexOf(x)===-1){r(new qr("Unsupported protocol "+x+":",qr.ERR_BAD_REQUEST,e));return}k.send(a||null)})},W_t=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const a=function(f){if(!o){o=!0,l();const h=f instanceof Error?f:this.reason;r.abort(h instanceof qr?h:new rb(h instanceof Error?h.message:h))}};let s=t&&setTimeout(()=>{s=null,a(new qr(`timeout ${t} of ms exceeded`,qr.ETIMEDOUT))},t);const l=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(f=>{f.unsubscribe?f.unsubscribe(a):f.removeEventListener("abort",a)}),e=null)};e.forEach(f=>f.addEventListener("abort",a));const{signal:c}=r;return c.unsubscribe=()=>Zt.asap(l),c}},G_t=function*(e,t){let n=e.byteLength;if(n{const o=K_t(e,t);let a=0,s,l=c=>{s||(s=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:f,value:h}=await o.next();if(f){l(),c.close();return}let p=h.byteLength;if(n){let m=a+=p;n(m)}c.enqueue(new Uint8Array(h))}catch(f){throw l(f),f}},cancel(c){return l(c),o.return()}},{highWaterMark:2})},jse=64*1024,{isFunction:ZE}=Zt,yye=(({fetch:e,Request:t,Response:n})=>({fetch:e,Request:t,Response:n}))(Zt.global),{ReadableStream:Use,TextEncoder:Vse}=Zt.global,zse=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Y_t=e=>{const{fetch:t,Request:n,Response:r}=Object.assign({},yye,e),o=ZE(t),a=ZE(n),s=ZE(r);if(!o)return!1;const l=o&&ZE(Use),c=o&&(typeof Vse=="function"?(b=>S=>b.encode(S))(new Vse):async b=>new Uint8Array(await new n(b).arrayBuffer())),f=a&&l&&zse(()=>{let b=!1;const S=new n(hl.origin,{body:new Use,method:"POST",get duplex(){return b=!0,"half"}}).headers.has("Content-Type");return b&&!S}),h=s&&l&&zse(()=>Zt.isReadableStream(new r("").body)),p={stream:h&&(b=>b.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(b=>{!p[b]&&(p[b]=(S,k)=>{let C=S&&S[b];if(C)return C.call(S);throw new qr(`Response type '${b}' is not supported`,qr.ERR_NOT_SUPPORT,k)})});const m=async b=>{if(b==null)return 0;if(Zt.isBlob(b))return b.size;if(Zt.isSpecCompliantForm(b))return(await new n(hl.origin,{method:"POST",body:b}).arrayBuffer()).byteLength;if(Zt.isArrayBufferView(b)||Zt.isArrayBuffer(b))return b.byteLength;if(Zt.isURLSearchParams(b)&&(b=b+""),Zt.isString(b))return(await c(b)).byteLength},g=async(b,S)=>{const k=Zt.toFiniteNumber(b.getContentLength());return k??m(S)};return async b=>{let{url:S,method:k,data:C,signal:x,cancelToken:E,timeout:_,onDownloadProgress:A,onUploadProgress:R,responseType:M,headers:D,withCredentials:N="same-origin",fetchOptions:L}=gye(b);M=M?(M+"").toLowerCase():"text";let B=W_t([x,E&&E.toAbortSignal()],_),U=null;const W=B&&B.unsubscribe&&(()=>{B.unsubscribe()});let V;try{if(R&&f&&k!=="get"&&k!=="head"&&(V=await g(D,C))!==0){let K=new n(S,{method:"POST",body:C,duplex:"half"}),re;if(Zt.isFormData(C)&&(re=K.headers.get("content-type"))&&D.setContentType(re),K.body){const[ee,le]=$se(V,LI(Nse(R)));C=Fse(K.body,jse,ee,le)}}Zt.isString(N)||(N=N?"include":"omit");const z=a&&"credentials"in n.prototype,Y={...L,signal:B,method:k.toUpperCase(),headers:D.normalize().toJSON(),body:C,duplex:"half",credentials:z?N:void 0};U=a&&new n(S,Y);let oe=await(a?t(U,L):t(S,Y));const ne=h&&(M==="stream"||M==="response");if(h&&(A||ne&&W)){const K={};["status","statusText","headers"].forEach(Q=>{K[Q]=oe[Q]});const re=Zt.toFiniteNumber(oe.headers.get("content-length")),[ee,le]=A&&$se(re,LI(Nse(A),!0))||[];oe=new r(Fse(oe.body,jse,ee,()=>{le&&le(),W&&W()}),K)}M=M||"text";let X=await p[Zt.findKey(p,M)||"text"](oe,b);return!ne&&W&&W(),await new Promise((K,re)=>{vye(K,re,{data:X,headers:wu.from(oe.headers),status:oe.status,statusText:oe.statusText,config:b,request:U})})}catch(z){throw W&&W(),z&&z.name==="TypeError"&&/Load failed|fetch/i.test(z.message)?Object.assign(new qr("Network Error",qr.ERR_NETWORK,b,U),{cause:z.cause||z}):qr.from(z,z&&z.code,b,U)}}},X_t=new Map,bye=e=>{let t=Zt.merge.call({skipUndefined:!0},yye,e?e.env:null);const{fetch:n,Request:r,Response:o}=t,a=[r,o,n];let s=a.length,l=s,c,f,h=X_t;for(;l--;)c=a[l],f=h.get(c),f===void 0&&h.set(c,f=l?new Map:Y_t(t)),h=f;return f};bye();const NU={http:p_t,xhr:H_t,fetch:{get:bye}};Zt.forEach(NU,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Hse=e=>`- ${e}`,Z_t=e=>Zt.isFunction(e)||e===null||e===!1,_ye={getAdapter:(e,t)=>{e=Zt.isArray(e)?e:[e];const{length:n}=e;let r,o;const a={};for(let s=0;s`adapter ${c} `+(f===!1?"is not supported by the environment":"is not available in the build"));let l=n?s.length>1?`since : `+s.map(Hse).join(` `):" "+Hse(s[0]):"as no adapter specified";throw new qr("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return o},adapters:NU};function D9(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new rb(null,e)}function Wse(e){return D9(e),e.headers=wu.from(e.headers),e.data=M9.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),_ye.getAdapter(e.adapter||tw.adapter,e)(e).then(function(r){return D9(e),r.data=M9.call(e,e.transformResponse,r),r.headers=wu.from(r.headers),r},function(r){return pye(r)||(D9(e),r&&r.response&&(r.response.data=M9.call(e,e.transformResponse,r.response),r.response.headers=wu.from(r.response.headers))),Promise.reject(r)})}const Sye="1.12.0",qL={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{qL[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Gse={};qL.transitional=function(t,n,r){function o(a,s){return"[Axios v"+Sye+"] Transitional option '"+a+"'"+s+(r?". "+r:"")}return(a,s,l)=>{if(t===!1)throw new qr(o(s," has been removed"+(n?" in "+n:"")),qr.ERR_DEPRECATED);return n&&!Gse[s]&&(Gse[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}};qL.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function Q_t(e,t,n){if(typeof e!="object")throw new qr("options must be an object",qr.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 qr("option "+a+" must be "+c,qr.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new qr("Unknown option "+a,qr.ERR_BAD_OPTION)}}const J4={assertOptions:Q_t,validators:qL},Hd=J4.validators;let ug=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Dse,response:new Dse}}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=Tg(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:a}=n;r!==void 0&&J4.assertOptions(r,{silentJSONParsing:Hd.transitional(Hd.boolean),forcedJSONParsing:Hd.transitional(Hd.boolean),clarifyTimeoutError:Hd.transitional(Hd.boolean)},!1),o!=null&&(Zt.isFunction(o)?n.paramsSerializer={serialize:o}:J4.assertOptions(o,{encode:Hd.function,serialize:Hd.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),J4.assertOptions(n,{baseUrl:Hd.spelling("baseURL"),withXsrfToken:Hd.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=a&&Zt.merge(a.common,a[n.method]);a&&Zt.forEach(["delete","get","head","post","put","patch","common"],b=>{delete a[b]}),n.headers=wu.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 f=[];this.interceptors.response.forEach(function(S){f.push(S.fulfilled,S.rejected)});let h,p=0,m;if(!c){const b=[Wse.bind(this),void 0];for(b.unshift(...l),b.push(...f),m=b.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 rb(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 kye(function(o){t=o}),cancel:t}}};function eSt(e){return function(n){return e.apply(null,n)}}function tSt(e){return Zt.isObject(e)&&e.isAxiosError===!0}const BU={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(BU).forEach(([e,t])=>{BU[t]=e});function wye(e){const t=new ug(e),n=J0e(ug.prototype.request,t);return Zt.extend(n,ug.prototype,t,{allOwnKeys:!0}),Zt.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return wye(Tg(e,o))},n}const co=wye(tw);co.Axios=ug;co.CanceledError=rb;co.CancelToken=J_t;co.isCancel=pye;co.VERSION=Sye;co.toFormData=KL;co.AxiosError=qr;co.Cancel=co.CanceledError;co.all=function(t){return Promise.all(t)};co.spread=eSt;co.isAxiosError=tSt;co.mergeConfig=Tg;co.AxiosHeaders=wu;co.formToJSON=e=>hye(Zt.isHTMLForm(e)?new FormData(e):e);co.getAdapter=_ye.getAdapter;co.HttpStatusCode=BU;co.default=co;const{Axios:nSt,AxiosError:rSt,CanceledError:iSt,isCancel:oSt,CancelToken:sSt,VERSION:aSt,all:lSt,Cancel:uSt,isAxiosError:cSt,spread:dSt,toFormData:fSt,AxiosHeaders:hSt,HttpStatusCode:pSt,formToJSON:vSt,getAdapter:mSt,mergeConfig:gSt}=co,Cye=Object.freeze(Object.defineProperty({__proto__:null,Axios:nSt,AxiosError:rSt,AxiosHeaders:hSt,Cancel:uSt,CancelToken:sSt,CanceledError:iSt,HttpStatusCode:pSt,VERSION:aSt,all:lSt,default:co,formToJSON:vSt,getAdapter:mSt,isAxiosError:cSt,isCancel:oSt,mergeConfig:gSt,spread:dSt,toFormData:fSt},Symbol.toStringTag,{value:"Module"})),O9={BASE_URL:"http://localhost:5707",TIMEOUT:3e4,HEADERS:{"Content-Type":"application/json",Accept:"application/json"}},pW={MODULE:"/api",PROXY:"/proxy",PARSE:"/parse"},YL={PLAY:"play",CATEGORY:"category",DETAIL:"detail",ACTION:"action"},ySt={SUCCESS:200},xye={DEFAULT_PAGE:1},vW=co.create({baseURL:O9.BASE_URL,timeout:O9.TIMEOUT,headers:O9.HEADERS});vW.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)));vW.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!==ySt.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 XL=async(e,t={})=>{try{return await vW({url:e,...t})}catch(n){throw console.error("API Request Failed:",n.message),n}},Pv=(e,t={})=>XL(e,{method:"GET",params:t}),Eye=(e,t={})=>XL(e,{method:"POST",data:t}),bSt=(e,t={})=>XL(e,{method:"PUT",data:t}),_St=(e,t={})=>XL(e,{method:"DELETE",params:t}),va=e=>{if(e){if(typeof e=="object"&&e!==null)try{return JSON.stringify(e)}catch(t){console.warn("extend参数JSON序列化失败:",t);return}return e}},QE=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解析] 未知类型,返回空对象"),{}},bv=e=>{const t=encodeURIComponent(e);return`${pW.MODULE}/${t}`},ib=async(e,t={})=>{try{return(await co.get(e,{params:t,timeout:3e4,headers:{Accept:"application/json"}})).data}catch(n){throw console.error("直接API调用失败:",n),n}},SSt=async(e,t={})=>{const{filter:n=1,extend:r,apiUrl:o}=t,a={filter:n},s=va(r);return s&&(a.extend=s),o?ib(o,a):Pv(bv(e),a)},h2=async(e,t)=>{const{t:n,pg:r=xye.DEFAULT_PAGE,ext:o,extend:a,apiUrl:s}=t,l={ac:YL.CATEGORY,t:n,pg:r};o&&(l.ext=o);const c=va(a);return c&&(l.extend=c),s?ib(s,l):Pv(bv(e),l)},kSt=async(e,t)=>{const{ids:n,extend:r,apiUrl:o}=t,a={ac:YL.DETAIL,ids:n},s=va(r);return s&&(a.extend=s),o?ib(o,a):Pv(bv(e),a)},Tye=async(e,t)=>{const{play:n,flag:r,extend:o,apiUrl:a}=t,s={ac:YL.PLAY,play:n};r&&(s.flag=r);const l=va(o);return l&&(s.extend=l),a?ib(a,s):Pv(bv(e),s)},wSt=async(e,t)=>{try{console.log("T4播放解析请求:",{module:e,params:t});const n=await Tye(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.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=QE(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=QE(n.headers||n.header),o.needSniff=!0,o.qualities=[],o.hasMultipleQualities=!1,o.message="需要嗅探才能播放,尽情期待"):n.jx===1?(o.playType="parse",o.url=n.url||n.play_url||"",o.headers=QE(n.headers||n.header),o.needParse=!0,o.qualities=[],o.hasMultipleQualities=!1,o.message="需要解析才能播放,尽情期待"):(o.url=n.url||n.play_url||n,o.headers=QE(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||"未知错误")}}},CSt=async(e,t)=>{const{wd:n,pg:r=xye.DEFAULT_PAGE,extend:o,apiUrl:a}=t,s={wd:n,pg:r},l=va(o);return l&&(s.extend=l),a?ib(a,s):Pv(bv(e),s)},ZL=async(e,t)=>{const{action:n,extend:r,apiUrl:o,...a}=t,s={ac:YL.ACTION,action:n,...a},l=va(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 f=await co.get(o,{timeout:3e4,headers:{Accept:"application/json"}});return console.log("API响应 (GET):",f.data),f.data}else{const f=await co.post(o,s,{timeout:3e4,headers:{Accept:"application/json","Content-Type":"application/json"}});return console.log("API响应 (POST):",f.data),f.data}console.log("使用代理方式调用:",bv(e),s);const c=await Eye(bv(e),s);return console.log("代理响应:",c),c},xSt=async(e,t,n)=>{const r={refresh:"1"},o=va(t);return o&&(r.extend=o),n?ib(n,r):Pv(bv(e),r)},ESt=e=>`${pW.PARSE}/${e}`,TSt=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}),Pv(ESt(e),s)},FU=e=>{try{return btoa(unescape(encodeURIComponent(e)))}catch(t){return console.error("Base64编码失败:",t),e}},ASt=e=>{if(!e||typeof e!="object")return"";try{const t=JSON.stringify(e);return FU(t)}catch(t){return console.error("筛选条件编码失败:",t),""}},Ap=e=>!e||typeof e!="string"||e.trim().length===0||e.length>100?!1:!/[\x00-\x1F\x7F]/.test(e),ISt=e=>{if(!e||typeof e!="string")return!1;const t=e.trim();return t.length===0||t==="no_data"?!1:e.length<=1024},LSt={NORMAL:"normal"},PSt=()=>({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:LSt.NORMAL}),RSt=()=>({page:1,pageSize:20,total:0,totalPages:0,hasNext:!1,hasPrev:!1}),MSt=()=>({key:"",name:"",type:0,api:"",searchable:1,quickSearch:1,filterable:1,order:0,ext:""});class DSt{constructor(){this.cache=new Map,this.cacheTimeout=300*1e3}async getRecommendVideos(t,n={}){if(!Ap(t))throw new Error("无效的模块名称");const{apiUrl:r,...o}=n,a=`home_${t}_${JSON.stringify(n)}`,s=this.getFromCache(a);if(s)return s;try{const l={...o};r&&(l.apiUrl=r);const c=await SSt(t,l),f={categories:c.class||[],filters:c.filters||{},videos:(c.list||[]).map(this.formatVideoInfo),pagination:this.createPagination(c)};return this.setCache(a,f),f}catch(l){throw console.error("获取首页推荐视频失败:",l),l}}async getCategoryVideos(t,n){if(!Ap(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)}`,f=this.getFromCache(c);if(f)return f;try{const h={t:r,pg:o};Object.keys(a).length>0&&(h.ext=ASt(a));const p=va(l);p&&(h.extend=p),s&&(h.apiUrl=s);const m=await h2(t,h),g={videos:(m.list||[]).map(this.formatVideoInfo),pagination:this.createPagination(m,o),filters:m.filters||{},total:m.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(!Ap(t))throw new Error("无效的模块名称");if(!ISt(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=va(a);c&&(l.extend=c);const f=await kSt(t,l);if(!f.list||f.list.length===0)throw new Error("视频不存在");const h=this.formatVideoInfo(f.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(!Ap(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=va(a);c&&(l.extend=c),s&&(l.apiUrl=s);const f=await CSt(t,l);return{videos:(f.list||[]).map(this.formatVideoInfo),pagination:this.createPagination(f,o),keyword:r.trim(),total:f.total||0,rawResponse:f}}catch(l){throw console.error("搜索视频失败:",l),l}}async getPlayUrl(t,n,r,o=null){if(!Ap(t))throw new Error("无效的模块名称");if(!n)throw new Error("播放地址不能为空");try{const a={play:n};r&&(a.apiUrl=r);const s=va(o);s&&(a.extend=s);const l=await Tye(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 TSt(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(!Ap(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:va(s)};o&&(l.flag=o),a&&(l.apiUrl=a);const c=await wSt(t,l);return console.log("VideoService: 选集播放解析结果",c),c}catch(l){throw console.error("VideoService: 解析选集播放地址失败:",l),l}}async executeT4Action(t,n,r={}){if(!Ap(t))throw new Error("无效的模块名称");if(!n||n.trim().length===0)throw new Error("动作名称不能为空");try{const o={action:n.trim(),value:r.value||"",extend:va(r.extend),apiUrl:r.apiUrl};console.log("执行T4 action:",{module:t,actionData:o});const a=await ZL(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(!Ap(t))throw new Error("无效的模块名称");try{this.clearModuleCache(t);const o=va(n),a=await xSt(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=PSt();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=RSt();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=nf.vod_id==="no_data"||f.vod_name==="no_data"||typeof f=="string"&&f.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=`${pW.PROXY}/${e}`;return t?`${n}/${t}`:n},OSt=async(e,t="",n={})=>{const r=QL(e,t);return Pv(r,n)},$St=async(e,t="",n={})=>{const r=QL(e,t);return Eye(r,n)},NSt=async(e,t="",n={})=>{const r=QL(e,t);return bSt(r,n)},BSt=async(e,t="",n={})=>{const r=QL(e,t);return _St(r,n)},FSt=async(e,t="",n={})=>{const{method:r="GET",params:o,data:a}=n;switch(r.toUpperCase()){case"GET":return OSt(e,t,o);case"POST":return $St(e,t,a);case"PUT":return NSt(e,t,a);case"DELETE":return BSt(e,t,o);default:throw new Error(`不支持的请求方法: ${r}`)}};class jSt{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 FSt(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=MSt();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{ul.getConfigStatus().hasConfigUrl&&await this.loadSitesFromConfig()}catch(t){console.error("从配置服务初始化失败:",t)}}async loadSitesFromConfig(t=!1){try{const n=await ul.getSites(t);if(n&&n.length>0){const r=Array.from(this.sites.values()).filter(o=>o.isLocal);return this.sites.clear(),r.forEach(o=>{this.sites.set(o.key,o)}),n.forEach(o=>{const a=this.formatSiteInfo(o);a.isFromConfig=!0,this.sites.set(a.key,a)}),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 ul.getConfigStatus()}async setConfigUrl(t){try{const n=await ul.setConfigUrl(t);return n&&await this.loadSitesFromConfig(!0),n}catch(n){throw console.error("设置配置地址失败:",n),n}}getConfigUrl(){return ul.getConfigUrl()}emitSitesUpdate(){typeof window<"u"&&window.dispatchEvent(new CustomEvent("sitesUpdate",{detail:{sites:this.getAllSites(),count:this.sites.size}}))}}const Vs=new USt,VSt={key:0,class:"filter-section"},zSt={class:"filter-content"},HSt={class:"filter-header-with-reset"},WSt={class:"filter-group-row"},GSt={class:"filter-group-title"},KSt={class:"filter-options-container"},qSt={class:"filter-options"},YSt={__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=F(()=>n.selectedFilters&&Object.keys(n.selectedFilters).length>0),a=(c,f)=>n.selectedFilters?.[c]===f,s=(c,f,h)=>{r("toggle-filter",{filterKey:c,filterValue:f,filterName:h})},l=()=>{r("reset-filters")};return(c,f)=>{const h=Pe("a-button"),p=Pe("a-tag");return e.filters?(H(),J("div",VSt,[O(Is,{name:"collapse"},{default:de(()=>[Ai(I("div",zSt,[I("div",HSt,[o.value?(H(),Ye(h,{key:0,type:"text",size:"small",onClick:l,class:"filter-reset-btn",title:"重置所有筛选条件"},{icon:de(()=>[O(nt(rf))]),_:1})):Re("",!0)]),(H(!0),J(Ut,null,mn(e.filters,m=>(H(),J("div",{key:m.key,class:"filter-group"},[I("div",WSt,[I("div",GSt,Be(m.name),1),I("div",KSt,[I("div",qSt,[(H(!0),J(Ut,null,mn(m.value,g=>(H(),Ye(p,{key:g.v,color:a(m.key,g.v)?"green":"",checkable:!0,checked:a(m.key,g.v),onCheck:b=>s(m.key,g.v,g.n),class:"filter-option-tag"},{default:de(()=>[ze(Be(g.n),1)]),_:2},1032,["color","checked","onCheck"]))),128))])])])]))),128))],512),[[ns,e.visible]])]),_:1})])):Re("",!0)}}},XSt=_r(YSt,[["__scopeId","data-v-90bc92fe"]]),ZSt={class:"category-nav-container"},QSt={key:0,class:"special-category-header"},JSt={class:"special-category-title"},e2t={class:"category-name"},t2t=["onClick"],n2t={class:"category-name"},r2t={__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:()=>({})},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"],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),l=fe({});let c=null;Dt(()=>[n.hasRecommendVideos,n.classList,n.activeKey],()=>{const C=n.activeKey||o();a.value!==C&&(a.value=C,n.activeKey||f(C))},{immediate:!0}),Dt(a,(C,x)=>{x&&l.value[x]&&(l.value[x]=!1)});const f=C=>{a.value=C,r("tab-change",C)},h=C=>{p(C)&&(l.value[C]=!l.value[C])},p=C=>{const x=n.filters[C];return x&&Object.keys(x).length>0},m=C=>n.filters[C]||null,g=C=>{r("toggle-filter",C)},b=()=>{r("reset-filters")},S=()=>{r("open-category-modal")},k=()=>{console.log("关闭特殊分类"),r("close-special-category")};return gn(()=>{const C=s.value;if(!C)return;const x=C.querySelector(".arco-tabs-nav-tab-list");x&&(c=E=>{Math.abs(E.deltaY)>Math.abs(E.deltaX)&&(x.scrollLeft+=E.deltaY,E.preventDefault())},x.addEventListener("wheel",c,{passive:!1}))}),Fo(()=>{const x=s.value?.querySelector?.(".arco-tabs-nav-tab-list");x&&c&&x.removeEventListener("wheel",c)}),(C,x)=>{const E=Pe("a-tab-pane"),_=Pe("a-tabs");return H(),J("div",ZSt,[I("div",{class:"category-nav-wrapper",ref_key:"navWrapperRef",ref:s},[e.specialCategoryState.isActive?(H(),J("div",QSt,[I("div",JSt,[I("span",e2t,Be(e.specialCategoryState.categoryData?.type_name||"特殊分类"),1),x[1]||(x[1]=I("span",{class:"category-type"},"(源内搜索)",-1))])])):(H(),Ye(_,{key:1,"active-key":a.value,"onUpdate:activeKey":x[0]||(x[0]=A=>a.value=A),type:"line",position:"top",editable:!1,onChange:f},{default:de(()=>[e.hasRecommendVideos?(H(),Ye(E,{key:"recommendTuijian404"},{title:de(()=>[...x[2]||(x[2]=[I("span",null,"推荐",-1)])]),_:1})):Re("",!0),(H(!0),J(Ut,null,mn(e.classList?.class||[],A=>(H(),Ye(E,{key:A.type_id},{title:de(()=>[I("div",{class:"category-tab-title",onClick:rs(R=>A.type_id===a.value&&p(A.type_id)?h(A.type_id):f(A.type_id),["stop"])},[I("span",n2t,Be(A.type_name),1),A.type_id===a.value&&p(A.type_id)?(H(),Ye(nt(Uz),{key:0,class:ae(["filter-icon",{"filter-icon-active":l.value[A.type_id]}])},null,8,["class"])):Re("",!0)],8,t2t)]),_:2},1024))),128))]),_:1},8,["active-key"])),e.specialCategoryState.isActive?(H(),J("div",{key:2,class:"special-category-close",onClick:k},[O(nt(ms)),x[3]||(x[3]=I("span",null,"返回",-1))])):(H(),J("div",{key:3,class:"category-manage",onClick:S},[O(nt(Vpe))]))],512),m(a.value)&&l.value[a.value]?(H(),Ye(XSt,{key:0,filters:m(a.value),selectedFilters:e.selectedFilters[a.value]||{},visible:!0,onToggleFilter:g,onResetFilters:b},null,8,["filters","selectedFilters"])):Re("",!0)])}}},i2t=_r(r2t,[["__scopeId","data-v-268f8902"]]),o2t="modulepreload",s2t=function(e){return"/apps/drplayer/"+e},Kse={},Wh=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){let f=function(h){return Promise.all(h.map(p=>Promise.resolve(p).then(m=>({status:"fulfilled",value:m}),m=>({status:"rejected",reason:m}))))};var s=f;document.getElementsByTagName("link");const l=document.querySelector("meta[property=csp-nonce]"),c=l?.nonce||l?.getAttribute("nonce");o=f(n.map(h=>{if(h=s2t(h),h in Kse)return;Kse[h]=!0;const p=h.endsWith(".css"),m=p?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${m}`))return;const g=document.createElement("link");if(g.rel=p?"stylesheet":o2t,p||(g.as="script"),g.crossOrigin="",g.href=h,c&&g.setAttribute("nonce",c),document.head.appendChild(g),p)return new Promise((b,S)=>{g.addEventListener("load",b),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)})},a2t={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=F(()=>{const p={};return r.value?(p.width="95vw",p.maxWidth="95vw",p.margin="0 auto",e.height&&e.height!=="auto"&&(p.maxHeight="85vh")):(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,p.maxHeight="90vh")),e.bottom>0&&(p.marginBottom=`${e.bottom}px`),p}),s=F(()=>{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"))},f=p=>{p.key==="Escape"&&e.escapeToClose&&e.visible&&c()};return Dt(()=>e.visible,p=>{p?(t("open"),o(),yn(()=>{t("opened")}),document.addEventListener("keydown",f),window.addEventListener("resize",o),document.body.style.overflow="hidden"):(document.removeEventListener("keydown",f),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",f),window.removeEventListener("resize",o),document.body.style.overflow=""}}},beforeUnmount(){this.cleanup()}},l2t={key:1,class:"action-dialog-header"},u2t={class:"action-dialog-title"},c2t={key:2,class:"action-dialog-footer"};function d2t(e,t,n,r,o,a){return H(),Ye($g,{to:"body"},[O(Is,{name:"action-mask",appear:""},{default:de(()=>[n.visible?(H(),J("div",{key:0,class:ae(["action-mask modal-backdrop",{closing:r.isClosing}]),style:je({"--dim-amount":n.dimAmount}),onClick:t[2]||(t[2]=(...s)=>r.handleMaskClick&&r.handleMaskClick(...s))},[O(Is,{name:"action-dialog",appear:""},{default:de(()=>[n.visible&&!r.isClosing?(H(),J("div",{key:0,class:ae(["action-dialog glass-effect card-modern animate-bounce-in",[n.customClass,{"action-dialog-mobile":r.isMobile}]]),style:je(r.dialogStyle),onClick:t[1]||(t[1]=rs(()=>{},["stop"]))},[t[4]||(t[4]=I("div",{class:"action-dialog-bg gradient-primary"},null,-1)),n.showClose?(H(),J("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)])])):Re("",!0),n.title||e.$slots.header?(H(),J("div",l2t,[ct(e.$slots,"header",{},()=>[I("h3",u2t,Be(n.title),1)],!0)])):Re("",!0),I("div",{class:"action-dialog-content",style:je(r.contentStyle)},[ct(e.$slots,"default",{},void 0,!0)],4),e.$slots.footer?(H(),J("div",c2t,[ct(e.$slots,"footer",{},void 0,!0)])):Re("",!0)],6)):Re("",!0)]),_:3})],6)):Re("",!0)]),_:3})])}const Gh=_r(a2t,[["render",d2t],["__scopeId","data-v-814adcb8"]]),_i={INPUT:"input",EDIT:"edit",MULTI_INPUT:"multiInput",MULTI_INPUT_X:"multiInputX",MENU:"menu",SELECT:"select",MSGBOX:"msgbox",WEBVIEW:"webview",HELP:"help"},t1={PARSE_ERROR:"PARSE_ERROR",VALIDATION_ERROR:"VALIDATION_ERROR",NETWORK_ERROR:"NETWORK_ERROR",TIMEOUT_ERROR:"TIMEOUT_ERROR",USER_CANCEL:"USER_CANCEL"},ui={OK_CANCEL:0,OK_ONLY:1,CANCEL_ONLY:2,CUSTOM:3},Nc=e=>e==null?ui.OK_CANCEL:Object.values(ui).includes(e)?e:ui.CUSTOM,n1=(e,t,n=null)=>({type:e,message:t,details:n}),mW=e=>{try{return typeof e=="string"?JSON.parse(e):e&&typeof e=="object"&&e.config?e.config:e}catch(t){throw n1(t1.PARSE_ERROR,"无法解析Action配置",t)}},Aye=e=>{if(!e||typeof e!="object")throw n1(t1.VALIDATION_ERROR,"Action配置必须是一个对象");if(!e.actionId)throw n1(t1.VALIDATION_ERROR,"actionId是必需的");if(!Object.values(_i).includes(e.type))throw n1(t1.VALIDATION_ERROR,`不支持的Action类型: ${e.type}`);return!0},p2=e=>{if(!e)return[];try{return e.startsWith("[")||e.startsWith("{")?JSON.parse(e):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),[]}},Iye=(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)}`},Lye=(e,t)=>{let n;return function(...o){const a=()=>{clearTimeout(n),e(...o)};clearTimeout(n),n=setTimeout(a,t)}},f2t=Ng(()=>Wh(()=>Promise.resolve().then(()=>hOt),void 0)),h2t=Ng(()=>Wh(()=>Promise.resolve().then(()=>i$t),void 0)),p2t=Ng(()=>Wh(()=>Promise.resolve().then(()=>iNt),void 0)),v2t=Ng(()=>Wh(()=>Promise.resolve().then(()=>YNt),void 0)),m2t=Ng(()=>Wh(()=>Promise.resolve().then(()=>kBt),void 0)),g2t=Ng(()=>Wh(()=>Promise.resolve().then(()=>E7t),void 0)),y2t={name:"ActionRenderer",components:{ActionDialog:Gh,InputAction:f2t,MultiInputAction:h2t,MenuAction:p2t,MsgBoxAction:v2t,WebViewAction:m2t,HelpAction:g2t},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={[_i.INPUT]:"InputAction",[_i.EDIT]:"InputAction",[_i.MULTI_INPUT]:"MultiInputAction",[_i.MULTI_INPUT_X]:"MultiInputAction",[_i.MENU]:"MenuAction",[_i.SELECT]:"MenuAction",[_i.MSGBOX]:"MsgBoxAction",[_i.WEBVIEW]:"WebViewAction",[_i.HELP]:"HelpAction"},l=F(()=>{if(!n.value)return console.log("ActionRenderer currentComponent: parsedConfig.value 为空"),null;const R=s[n.value.type]||null;return console.log("ActionRenderer currentComponent:",{type:n.value.type,component:R,parsedConfig:n.value}),R}),c=R=>{try{if(console.log("ActionRenderer parseConfig 开始解析:",R),!R){n.value=null;return}const M=mW(R);console.log("ActionRenderer parseConfig 解析后的配置:",M),Aye(M),f(M),n.value=M,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(M){console.error("解析Action配置失败:",M),r.value=M,n.value=null}},f=R=>{const{actionId:M}=R},h=async R=>{const{actionId:M}=R;switch(M){case"__self_search__":if(console.log("🚀 [ActionRenderer DEBUG] 处理__self_search__专项动作"),console.log("🚀 [ActionRenderer DEBUG] actionData:",JSON.stringify(R,null,2)),!R.tid){console.error("🚀 [ActionRenderer ERROR] 源内搜索参数不完整:缺少tid"),tr("源内搜索参数不完整:缺少tid","error"),g();break}const D={tid:R.tid,type_id:R.tid,name:R.name,type_name:R.name||`搜索: ${R.tid}`,isSpecialCategory:!0,actionData:R};console.log("🚀 [ActionRenderer DEBUG] 构造的 specialCategory:",JSON.stringify(D,null,2)),console.log("🚀 [ActionRenderer DEBUG] 即将触发 special-action 事件"),tr(R.msg||"执行源内搜索","info"),t("special-action","__self_search__",D),console.log("🚀 [ActionRenderer DEBUG] special-action 事件已触发,关闭组件"),g();break;case"__detail__":tr("跳转到详情页","info"),t("special-action","detail",R),g();break;case"__ktvplayer__":tr("启动KTV播放","info"),t("special-action","ktv-player",R),g();break;case"__refresh_list__":tr("刷新列表","info"),t("special-action","refresh-list",R),g();break;case"__copy__":if(R.content)try{await navigator.clipboard.writeText(R.content),tr("已复制到剪贴板","success")}catch{tr("复制失败","error")}g();break;case"__keep__":R.msg&&tr(R.msg,"info"),R.reset&&(n.value=null);break;default:tr(`未知的专项动作: ${M}`,"warning"),g();break}},p=async R=>{if(n.value)try{o.value=!0;const M={action:n.value.actionId,value:typeof R=="object"?JSON.stringify(R):R};e.extend&&(M.extend=e.extend),e.apiUrl&&(M.apiUrl=e.apiUrl),console.log("ActionRenderer准备调用T4接口:",{module:e.module,actionData:M,apiUrl:e.apiUrl});let D=null;if(e.module?(D=await E(e.module,M),console.log("T4接口返回结果:",D)):(D=await t("action",n.value.actionId,R),console.log("父组件处理结果:",D)),D){if(typeof D=="string")try{D=JSON.parse(D)}catch{tr(D,"success"),t("success",R),g();return}if(typeof D=="object"){if(console.log("处理API返回的对象结果:",D),D.error)throw n1(t1.NETWORK_ERROR,D.error);if(D.toast&&tr(D.toast,"success"),(D.message||D.msg)&&tr(D.message||D.msg,"success"),D.action){console.log("检测到动态action,重新解析:",D.action),c(D.action);return}if(D.actionId){console.log("检测到专项动作:",D.actionId),await h(D);return}if(D.code!==void 0)if(D.code===0||D.code===200){if(D.data&&typeof D.data=="object"){const N={...D.data};if(N.action||N.actionId){if(console.log("在data字段中检测到action:",N),N.action){c(N.action);return}if(N.actionId){await h(N);return}}}tr(D.message||D.msg||"操作成功","success")}else throw n1(t1.NETWORK_ERROR,D.message||D.msg||`操作失败,错误码: ${D.code}`)}}t("success",R),g()}catch(M){console.error("执行Action失败:",M),r.value=M,tr(M.message||"操作失败","error")}finally{o.value=!1}},m=()=>{g()},g=()=>{a.value=!1,n.value=null,t("close")},b=async(R,M)=>{if(typeof R=="object"&&R.type){console.log("ActionRenderer接收到新的动作配置:",R),a.value=!1,await new Promise(D=>setTimeout(D,100)),c(R);return}await p({action:R,value:M})},S=()=>{r.value=null},k=(R,M)=>{console.log("🔗 [ActionRenderer DEBUG] 接收到子组件的 special-action 事件"),console.log("🔗 [ActionRenderer DEBUG] actionType:",R),console.log("🔗 [ActionRenderer DEBUG] actionData:",JSON.stringify(M,null,2)),console.log("🔗 [ActionRenderer DEBUG] 向父组件传递 special-action 事件"),t("special-action",R,M),g()};Dt(()=>e.actionData,R=>{c(R)},{immediate:!0}),Dt(()=>e.visible,R=>{a.value=R});const C=R=>{R&&c(R),a.value=!0},x=()=>{a.value=!1},E=async(R,M)=>{try{return o.value=!0,await t("action",R,M)}catch(D){throw r.value=D,D}finally{o.value=!1}};return{parsedConfig:n,currentComponent:l,error:r,isLoading:o,isVisible:a,handleSubmit:p,handleCancel:m,handleClose:g,handleAction:b,handleToast:(R,M="success")=>{tr(R,M)},handleReset:()=>{console.log("InputAction触发重置事件")},handleSpecialActionFromChild:k,clearError:S,show:C,hide:x,executeAction:E}}},b2t={class:"action-renderer"},_2t={class:"action-error"},S2t={key:0};function k2t(e,t,n,r,o,a){const s=Pe("ActionDialog");return H(),J("div",b2t,[r.parsedConfig?(H(),Ye(Fa(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"])):Re("",!0),r.error?(H(),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",_2t,[I("p",null,[I("strong",null,Be(r.error.type),1)]),I("p",null,Be(r.error.message),1),r.error.details?(H(),J("pre",S2t,Be(JSON.stringify(r.error.details,null,2)),1)):Re("",!0)])]),_:1},8,["visible","onClose"])):Re("",!0),r.isLoading?(H(),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"])):Re("",!0)])}const nw=_r(y2t,[["render",k2t],["__scopeId","data-v-86062fb2"]]),w2t=["onClick"],C2t={class:"video_list_item_img"},x2t=["innerHTML"],E2t={class:"video_list_item_title"},T2t={class:"title-text"},A2t={key:0,class:"loading-container"},I2t={key:1,class:"no-more-data"},L2t={key:2,class:"empty-state"},P2t={__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:""}},emits:["load-more","scroll-bottom","refresh-list","special-action","folder-navigate"],setup(e,{expose:t,emit:n}){const r=e,o=n,a=_l(),s=uL(),l=fe(null),c=fe(null),f=fe(0),h=fe(null),p=fe(!1),m=fe(null),g=async R=>{if(R&&R.vod_id){if(R.vod_tag&&R.vod_tag.includes("folder")){console.log("VideoGrid检测到folder类型:",R),o("folder-navigate",{vod_id:R.vod_id,vod_name:R.vod_name,vod_tag:R.vod_tag});return}if(R.vod_tag==="action")try{const D=JSON.parse(R.vod_id);console.log("VideoGrid解析action配置:",D),m.value=D,p.value=!0;return}catch{console.log("VideoGrid vod_id不是JSON格式,调用T4 action接口:",R.vod_id),await b(R.vod_id);return}s.setLastClicked(R.vod_id,R.vod_name);const M={name:R.vod_name,pic:R.vod_pic,year:R.vod_year,area:R.vod_area,type:R.vod_type,remarks:R.vod_remarks,content:R.vod_content,actor:R.vod_actor,director:R.vod_director,sourceRouteName:r.sourceRoute?.name||"",sourceRouteParams:JSON.stringify(r.sourceRoute?.params||{}),sourceRouteQuery:JSON.stringify(r.sourceRoute?.query||{}),sourcePic:R.vod_pic};a.push({name:"VideoDetail",params:{id:R.vod_id},query:M})}},b=async R=>{try{const M=await gd.executeT4Action(r.module||"default",R,{apiUrl:r.apiUrl,extend:r.extend.ext});console.log("result:",M),M&&M.action?(m.value=M.action,p.value=!0):M?tr("执行源内搜索","success"):Pt.error({content:`无法获取动作配置: ${R}`,duration:3e3,closable:!0})}catch(M){console.error("T4 action执行失败:",M),Pt.error({content:`动作执行失败: ${M.message}`,duration:3e3,closable:!0})}},S=()=>{yn(()=>{setTimeout(()=>{const R=l.value;if(!R)return;const M=R.closest(".content-area")||R.parentElement,D=R.querySelector(".stats-footer"),N=r.showStats&&D?D.offsetHeight:0,L=document.querySelector(".category-nav-container"),B=L?L.offsetHeight:0;let U=M?M.offsetHeight:0;U<=0&&(U=Math.max(window.innerHeight-120,500)),console.log(`CategoryNavigation高度: ${B}px, 内容区域高度: ${U}px`);const W=r.videos?r.videos.length:0,V=R.offsetWidth||Math.max(window.innerWidth-240,800),Y=Math.min(Math.floor(V/200),8),oe=328,ne=W>0?Math.ceil(W/Math.max(Y,1)):0,X=ne*oe+16;let K=4;if(W===0)K=Math.min(U*.4,300),console.log(`无视频数据,使用保守高度减值: ${K}px`);else if(X{const M=R?.target||R?.srcElement,D=M?.closest?M.closest(".arco-scrollbar-container"):M;if(!D)return;const N=D.scrollHeight-D.clientHeight,L=D.scrollTop;N-L<50&&(o("scroll-bottom"),o("load-more"))},C=()=>{yn(()=>{setTimeout(()=>{document.querySelectorAll(".video_list_item_title .title-text").forEach(M=>{const N=M.parentElement.offsetWidth-16;M.scrollWidth>N?M.setAttribute("data-overflow","true"):M.removeAttribute("data-overflow")})},100)})};gn(()=>{C(),S(),window.addEventListener("resize",S),setTimeout(()=>{const M=document.querySelector(".category-nav-container");if(M){const D=new MutationObserver(()=>{setTimeout(()=>{S()},100)});D.observe(M,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["class","style"]}),l.value._filterObserver=D}},200)}),Fo(()=>{window.removeEventListener("resize",S),l.value?._filterObserver&&l.value._filterObserver.disconnect()}),Dt(()=>[r.videos,r.showStats],()=>{S(),C()});const x=R=>{R&&c.value&&requestAnimationFrame(()=>{const M=c.value?.$el?.querySelector(".arco-scrollbar-container");M&&(M.scrollTo({top:R,behavior:"smooth"}),console.log("VideoGrid恢复滚动位置:",R))})},E=()=>c.value&&c.value?.$el?.querySelector(".arco-scrollbar-container")?.scrollTop||0,_=()=>{p.value=!1,m.value=null},A=(R,M)=>{console.log("VideoGrid处理专项动作:",R,M),o("special-action",R,M),p.value=!1,m.value=null};return t({checkTextOverflow:C,restoreScrollPosition:x,getCurrentScrollPosition:E}),(R,M)=>{const D=Pe("a-image"),N=Pe("a-grid-item"),L=Pe("a-grid"),B=Pe("a-spin"),U=Pe("a-scrollbar");return H(),J("div",{class:"video-grid-container",ref_key:"containerRef",ref:l},[O(U,{onScroll:k,class:"video-scroll-container",ref_key:"scrollbarRef",ref:c,style:je("height:"+f.value+"px; overflow: auto;")},{default:de(()=>[O(L,{cols:{xs:2,sm:3,md:4,lg:5,xl:6,xxl:8},rowGap:16,colGap:12},{default:de(()=>[(H(!0),J(Ut,null,mn(e.videos,W=>(H(),Ye(N,{key:W.vod_id,class:"video_list_hover"},{default:de(()=>[I("div",{class:"video_list_item",onClick:V=>g(W)},[I("div",C2t,[O(D,{preview:!1,class:"video_list_item_img_cover",fit:"cover",src:W.vod_pic},null,8,["src"]),W.vod_remarks?(H(),J("div",{key:0,class:"video_remarks_overlay",innerHTML:W.vod_remarks},null,8,x2t)):Re("",!0)]),I("div",E2t,[I("span",T2t,Be(W.vod_name),1)])],8,w2t)]),_:2},1024))),128))]),_:1}),e.loading?(H(),J("div",A2t,[O(B),M[0]||(M[0]=I("div",{class:"loading-text"},"加载更多...",-1))])):!e.hasMore&&e.videos.length>0?(H(),J("div",I2t," 没有更多数据了 ")):e.videos.length===0&&!e.loading?(H(),J("div",L2t," 暂无视频数据 ")):Re("",!0),M[1]||(M[1]=I("div",{class:"bottom-spacer"},null,-1))]),_:1},8,["style"]),p.value?(H(),Ye(nw,{key:0,ref_key:"actionRendererRef",ref:h,"action-data":m.value,module:r.module,extend:r.extend,"api-url":r.apiUrl,onClose:_,onSpecialAction:A},null,8,["action-data","module","extend","api-url"])):Re("",!0)],512)}}},kS=_r(P2t,[["__scopeId","data-v-54975afb"]]),R2t={class:"category-modal-content"},M2t=["onClick"],D2t={__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=Pe("a-modal");return H(),Ye(l,{visible:e.visible,title:"全部分类",footer:!1,width:"80%",class:"category-modal",onCancel:r},{default:de(()=>[I("div",R2t,[e.hasRecommendVideos?(H(),J("div",{key:0,class:ae(["category-item",{active:e.activeKey==="recommendTuijian404"}]),onClick:s[0]||(s[0]=c=>o("recommendTuijian404"))}," 推荐 ",2)):Re("",!0),(H(!0),J(Ut,null,mn(e.classList.class,c=>(H(),J("div",{key:c.type_id,class:ae(["category-item",{active:e.activeKey===c.type_id}]),onClick:f=>o(c.type_id)},Be(c.type_name),11,M2t))),128))])]),_:1},8,["visible"])}}},O2t=_r(D2t,[["__scopeId","data-v-14f43b3d"]]),$2t={key:0,class:"folder-breadcrumb"},N2t={class:"breadcrumb-container"},B2t={key:0,class:"current-item"},F2t=["onClick"],j2t={class:"breadcrumb-actions"},U2t={__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,f)=>{console.log("🗂️ [DEBUG] 面包屑点击:",c,f),r("navigate",c,f)},a=()=>{if(n.breadcrumbs.length>1){const c=n.breadcrumbs.length-2,f=n.breadcrumbs[c];console.log("🗂️ [DEBUG] 返回上级:",f),r("go-back",f,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,f)=>{const h=Pe("a-breadcrumb-item"),p=Pe("a-breadcrumb"),m=Pe("a-button");return e.breadcrumbs.length>0?(H(),J("div",$2t,[I("div",N2t,[O(p,{separator:">"},{default:de(()=>[(H(!0),J(Ut,null,mn(e.breadcrumbs,(g,b)=>(H(),Ye(h,{key:g.vod_id,class:ae(["breadcrumb-item",{"is-current":b===e.breadcrumbs.length-1}])},{default:de(()=>[b===e.breadcrumbs.length-1?(H(),J("span",B2t,Be(g.vod_name),1)):(H(),J("a",{key:1,onClick:S=>o(g,b),class:"breadcrumb-link"},Be(g.vod_name),9,F2t))]),_:2},1032,["class"]))),128))]),_:1})]),I("div",j2t,[O(m,{size:"small",type:"text",onClick:a,disabled:e.breadcrumbs.length<=1,class:"action-btn"},{icon:de(()=>[O(nt(kl))]),default:de(()=>[f[0]||(f[0]=ze(" 返回上级 ",-1))]),_:1},8,["disabled"]),O(m,{size:"small",type:"text",onClick:s,disabled:e.breadcrumbs.length<=1,class:"action-btn"},{icon:de(()=>[O(nt(Vk))]),default:de(()=>[f[1]||(f[1]=ze(" 返回根目录 ",-1))]),_:1},8,["disabled"]),O(m,{size:"small",type:"primary",onClick:l,class:"action-btn exit-btn"},{icon:de(()=>[O(nt(ms))]),default:de(()=>[f[2]||(f[2]=ze(" 退出目录模式 ",-1))]),_:1})])])):Re("",!0)}}},V2t=_r(U2t,[["__scopeId","data-v-371371d8"]]),z2t={class:"video-list-container"},H2t={class:"content-area"},W2t={key:0,class:"tab-content"},G2t={key:1,class:"tab-content"},K2t={key:2,class:"tab-content"},q2t={key:3,class:"tab-content"},Y2t={__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=zk(),s=fe(""),l=qt({}),c=qt({}),f=qt({}),h=qt({}),p=qt({}),m=fe(!1),g=fe(null),b=qt({}),S=qt({}),k=F(()=>r.recommendVideos&&r.recommendVideos.length>0),C=()=>r.returnToActiveKey?r.returnToActiveKey:k.value?"recommendTuijian404":r.classList?.class&&r.classList.class.length>0?r.classList.class[0].type_id:"recommendTuijian404",x=(ee,le,Q)=>{p[s.value]||(p[s.value]={}),p[s.value][ee]===le?(delete p[s.value][ee],Object.keys(p[s.value]).length===0&&delete p[s.value]):p[s.value][ee]=le,r.folderNavigationState.isActive&&r.folderNavigationState.currentBreadcrumb?oe(r.folderNavigationState.currentBreadcrumb):_(s.value)},E=ee=>{delete p[ee],r.folderNavigationState.isActive&&r.folderNavigationState.currentBreadcrumb?oe(r.folderNavigationState.currentBreadcrumb):_(ee)},_=ee=>{delete l[ee],delete c[ee],f[ee]=!1,s.value===ee&&R(ee,!0)},A=ee=>{const le=r.classList?.class?.find(Ce=>Ce.type_id===ee)?.type_name||"",Q=c[ee]?.page||1,ye=l[ee]?.length||0,be=c[ee]?.total;let ve=`${le}:当前第 ${Q} 页,已加载 ${ye} 条`;if(be&&(ve+=` / 共 ${be} 条`),r.folderNavigationState.isActive&&r.folderNavigationState.currentBreadcrumb){const Ce=r.folderNavigationState.currentBreadcrumb.vod_name||"未知目录",De=r.folderNavigationState.currentData?.length||0;ve+=`,当前目录:${Ce},项目数:${De}`}return ve},R=async(ee,le=!1)=>{if(console.log(ee,"选中分类id"),!l.hasOwnProperty(ee)||le)try{const Q=await Vs.getCurrentSite();let ye,be;if(ee==="recommendTuijian404")ye=r.recommendVideos||[],be={page:1,hasNext:!1};else{const ve=p[ee]||{},Ce=await gd.getCategoryVideos(Q.key,{typeId:ee,page:1,filters:ve,extend:Q.ext,apiUrl:Q.api});ye=Ce.videos||[],be=Ce.pagination||{page:1,hasNext:!1}}l[ee]=ye,c[ee]=be,f[ee]=!1,ee===s.value&&a.updateStats(A(ee))}catch(Q){console.error("获取视频列表失败:",Q),l[ee]=[],c[ee]={page:1,hasNext:!1},f[ee]=!1}},M=ee=>!ee||ee.length===0?!0:ee.some(le=>le.vod_id==="no_data"),D=(ee,le)=>{if(!le||le.length===0)return!0;if(!ee||ee.length===0)return!1;const Q=ee.slice(-le.length).map(be=>be.vod_id),ye=le.map(be=>be.vod_id);return JSON.stringify(Q)===JSON.stringify(ye)},N=async ee=>{if(!(f[ee]||!c[ee]?.hasNext)){f[ee]=!0;try{const le=await Vs.getCurrentSite(),Q=c[ee].page+1;let ye=[],be={page:Q,hasNext:!1};if(ee==="recommendTuijian404")return;{const ve=p[ee]||{},Ce=await gd.getCategoryVideos(le.key,{typeId:ee,page:Q,filters:ve,extend:le.ext,apiUrl:le.api});ye=Ce.videos||[],be=Ce.pagination||{page:Q,hasNext:!1}}if(M(ye)||D(l[ee],ye)){console.log("检测到无效数据或重复数据,停止翻页"),c[ee]={...c[ee],hasNext:!1};return}l[ee]=[...l[ee],...ye],c[ee]=be,ee===s.value&&a.updateStats(A(ee))}catch(le){console.error("加载更多数据失败:",le),c[ee]={...c[ee],hasNext:!1}}finally{f[ee]=!1}}},L=async ee=>{if(!(S[ee]||!b[ee]?.hasNext)){S[ee]=!0;try{const le=b[ee].page+1,Q=await h2(r.module,{t:ee,pg:le,extend:va(r.extend),apiUrl:r.apiUrl});if(console.log("🗂️ [DEBUG] 目录翻页接口响应:",Q),Q&&Q.list&&Q.list.length>0){const ye=Q.list;if(M(ye)||D(r.folderNavigationState.currentData,ye)){console.log("目录翻页检测到无效数据或重复数据,停止翻页"),b[ee]={...b[ee],hasNext:!1};return}const be=[...r.folderNavigationState.currentData,...ye],ve={...r.folderNavigationState,currentData:be,loading:!1};if(b[ee]={page:le,hasNext:Q.page{s.value=ee,R(ee),o("activeKeyChange",ee)},U=ee=>{const{filterKey:le,filterValue:Q,filterName:ye}=ee;x(le,Q)},W=()=>{E(s.value)},V=()=>{m.value=!0},z=ee=>{s.value=ee,R(ee),o("activeKeyChange",ee),setTimeout(()=>{a.updateStats(A(ee))},100)};Dt(()=>r.recommendVideos,ee=>{ee&&ee.length>0?(l.recommendTuijian404=ee,c.recommendTuijian404={page:1,hasNext:!1},f.recommendTuijian404=!1,console.log("推荐数据已更新:",ee.length,"条")):(l.recommendTuijian404=[],c.recommendTuijian404={page:1,hasNext:!1},f.recommendTuijian404=!1);const le=C();s.value!==le&&(s.value=le,R(le),o("activeKeyChange",le))},{immediate:!0}),Dt(()=>r.classList,(ee,le)=>{ee!==le&&(Object.keys(p).forEach(ye=>{delete p[ye]}),Object.keys(h).forEach(ye=>{delete h[ye]}));const Q=C();s.value!==Q&&(s.value=Q,R(Q),o("activeKeyChange",Q))},{immediate:!0}),gn(()=>{s.value=C(),r.returnToActiveKey||R(s.value),o("activeKeyChange",s.value)}),t({getCurrentState:()=>({activeKey:s.value,currentPage:c[s.value]?.page||1,videos:l[s.value]||[],hasMore:c[s.value]?.hasNext||!1,hasData:l[s.value]&&l[s.value].length>0,scrollPosition:g.value?g.value.getCurrentScrollPosition():0}),restoreState:ee=>{ee.activeKey&&ee.activeKey!==s.value&&(s.value=ee.activeKey,o("activeKeyChange",ee.activeKey),(!l[ee.activeKey]||l[ee.activeKey].length===0)&&R(ee.activeKey))},restoreFullState:ee=>{ee.activeKey&&(s.value=ee.activeKey,ee.videos&&ee.videos.length>0&&(l[ee.activeKey]=[...ee.videos],c[ee.activeKey]={page:ee.currentPage||1,hasNext:ee.hasMore||!1},console.log(`恢复分类 ${ee.activeKey} 的完整状态:`,{videos:ee.videos.length,page:ee.currentPage,hasMore:ee.hasMore,scrollPosition:ee.scrollPosition})),o("activeKeyChange",ee.activeKey),setTimeout(()=>{a.updateStats(A(ee.activeKey))},100),ee.scrollPosition&&g.value&&setTimeout(()=>{g.value.restoreScrollPosition(ee.scrollPosition)},200))},refreshCurrentCategory:()=>{s.value&&(console.log("刷新当前分类:",s.value),l[s.value]=[],c[s.value]={page:1,hasNext:!0},f[s.value]=!1,R(s.value))},setSpecialCategoryData:(ee,le,Q)=>{console.log("设置特殊分类数据:",{categoryId:ee,videosCount:le?.length,pagination:Q}),l[ee]=le||[],c[ee]={page:Q?.page||1,hasNext:Q?.hasNext||!1,total:Q?.total||0},f[ee]=!1,setTimeout(()=>{a.updateStats(A(ee))},100),console.log("特殊分类数据设置完成:",{categoryId:ee,videosCount:l[ee]?.length||0,pageInfo:c[ee]})}});const Y=async ee=>{console.log("🗂️ [DEBUG] VideoList收到folder导航请求:",ee);try{const le={isActive:!0,breadcrumbs:[{vod_id:ee.vod_id,vod_name:ee.vod_name}],currentData:[],currentBreadcrumb:{vod_id:ee.vod_id,vod_name:ee.vod_name},loading:!0};o("folder-navigate",le),console.log("props.extend:",r.extend),console.log("processExtendParam(props.extend):",va(r.extend));const Q=p[s.value]||{};console.log("🗂️ [DEBUG] 目录模式应用筛选条件:",Q);const ye={t:ee.vod_id,pg:1,extend:va(r.extend),apiUrl:r.apiUrl};Object.keys(Q).length>0&&console.log("🗂️ [DEBUG] 目录模式编码后的筛选条件:",ye.ext);const be=await h2(r.module,ye);if(console.log("🗂️ [DEBUG] T4分类接口响应:",be),be&&be.list&&be.list.length>0){const ve=be.list;b[ee.vod_id]={page:be.page||1,hasNext:be.page{console.log("🗂️ [DEBUG] 面包屑导航到:",ee);try{const le=r.folderNavigationState.breadcrumbs,Q=le.findIndex(We=>We.vod_id===ee.vod_id),ye=Q>=0?le.slice(0,Q+1):le,be={...r.folderNavigationState,breadcrumbs:ye,currentBreadcrumb:ee,loading:!0};o("folder-navigate",be);const ve=p[s.value]||{};console.log("🗂️ [DEBUG] 面包屑导航应用筛选条件:",ve);const Ce={t:ee.vod_id,pg:1,extend:va(r.extend),apiUrl:r.apiUrl};Object.keys(ve).length>0&&console.log("🗂️ [DEBUG] 面包屑导航编码后的筛选条件:",Ce.ext);const De=await h2(r.module,Ce);if(De&&De.list&&De.list.length>0){const We=De.list;b[ee.vod_id]={page:De.page||1,hasNext:De.page{console.log("🗂️ [DEBUG] 返回上一级folder");const ee=r.folderNavigationState.breadcrumbs;if(ee.length>1){const le=ee.slice(0,-1),Q=le[le.length-1];oe(Q)}else X()},X=()=>{if(console.log("🗂️ [DEBUG] 返回folder根目录"),o("folder-navigate",{isActive:!1,breadcrumbs:[],currentData:[],currentBreadcrumb:null,loading:!1}),s.value&&l[s.value]){const le=A(s.value);a.updateStats(le),console.log("🗂️ [DEBUG] 退出folder模式,恢复统计信息:",le)}},K=()=>{if(console.log("🗂️ [DEBUG] 退出folder模式"),o("folder-navigate",{isActive:!1,breadcrumbs:[],currentData:[],currentBreadcrumb:null,loading:!1}),s.value&&l[s.value]){const le=A(s.value);a.updateStats(le),console.log("🗂️ [DEBUG] 退出folder模式,恢复统计信息:",le)}},re=()=>{console.log("VideoList收到刷新列表请求"),s.value&&(console.log("刷新当前分类:",s.value),l[s.value]=[],c[s.value]={page:1,hasNext:!0},f[s.value]=!1,R(s.value))};return(ee,le)=>(H(),J("div",z2t,[O(i2t,{classList:e.classList,trigger:e.trigger,hasRecommendVideos:k.value,activeKey:s.value,filters:r.classList?.filters||{},selectedFilters:p,specialCategoryState:r.specialCategoryState,onTabChange:B,onOpenCategoryModal:V,onToggleFilter:U,onResetFilters:W,onCloseSpecialCategory:le[0]||(le[0]=()=>o("close-special-category"))},null,8,["classList","trigger","hasRecommendVideos","activeKey","filters","selectedFilters","specialCategoryState"]),e.folderNavigationState.isActive?(H(),Ye(V2t,{key:0,breadcrumbs:e.folderNavigationState.breadcrumbs,onNavigate:oe,onGoBack:ne,onGoHome:X,onExitFolder:K},null,8,["breadcrumbs"])):Re("",!0),I("div",H2t,[e.folderNavigationState.isActive?(H(),J("div",W2t,[O(kS,{videos:e.folderNavigationState.currentData||[],loading:e.folderNavigationState.loading||S[e.folderNavigationState.currentBreadcrumb?.vod_id]||!1,hasMore:b[e.folderNavigationState.currentBreadcrumb?.vod_id]?.hasNext||!1,statsText:A(),sourceRoute:r.sourceRoute,module:r.module,extend:r.extend,"api-url":r.apiUrl,onLoadMore:le[1]||(le[1]=Q=>L(e.folderNavigationState.currentBreadcrumb?.vod_id)),onScrollBottom:le[2]||(le[2]=Q=>L(e.folderNavigationState.currentBreadcrumb?.vod_id)),onRefreshList:re,onSpecialAction:le[3]||(le[3]=(Q,ye)=>o("special-action",Q,ye)),onFolderNavigate:Y},null,8,["videos","loading","hasMore","statsText","sourceRoute","module","extend","api-url"])])):e.specialCategoryState.isActive?(H(),J("div",G2t,[O(kS,{videos:l[e.specialCategoryState.categoryData?.type_id]||[],loading:f[e.specialCategoryState.categoryData?.type_id]||!1,hasMore:c[e.specialCategoryState.categoryData?.type_id]?.hasNext||!1,statsText:`${e.specialCategoryState.categoryData?.type_name||"特殊分类"}:共 ${l[e.specialCategoryState.categoryData?.type_id]?.length||0} 条`,sourceRoute:r.sourceRoute,module:r.module,extend:r.extend,"api-url":r.apiUrl,onLoadMore:le[4]||(le[4]=Q=>N(e.specialCategoryState.categoryData?.type_id)),onScrollBottom:le[5]||(le[5]=Q=>N(e.specialCategoryState.categoryData?.type_id)),onRefreshList:re,onSpecialAction:le[6]||(le[6]=(Q,ye)=>o("special-action",Q,ye)),onFolderNavigate:Y},null,8,["videos","loading","hasMore","statsText","sourceRoute","module","extend","api-url"])])):s.value==="recommendTuijian404"?(H(),J("div",K2t,[O(kS,{videos:l[s.value]||[],loading:f[s.value]||!1,hasMore:!1,statsText:`推荐视频:共 ${l[s.value]?.length||0} 条`,sourceRoute:r.sourceRoute,module:r.module,extend:r.extend,"api-url":r.apiUrl,onRefreshList:re,onSpecialAction:le[7]||(le[7]=(Q,ye)=>o("special-action",Q,ye))},null,8,["videos","loading","statsText","sourceRoute","module","extend","api-url"])])):(H(),J("div",q2t,[O(kS,{ref_key:"videoGridRef",ref:g,videos:l[s.value]||[],loading:f[s.value]||!1,hasMore:c[s.value]?.hasNext||!1,sourceRoute:r.sourceRoute,module:r.module,extend:r.extend,"api-url":r.apiUrl,onLoadMore:le[8]||(le[8]=Q=>N(s.value)),onScrollBottom:le[9]||(le[9]=Q=>N(s.value)),onRefreshList:re,onSpecialAction:le[10]||(le[10]=(Q,ye)=>o("special-action",Q,ye)),onFolderNavigate:Y},null,8,["videos","loading","hasMore","sourceRoute","module","extend","api-url"])]))]),O(O2t,{visible:m.value,"onUpdate:visible":le[11]||(le[11]=Q=>m.value=Q),classList:e.classList,hasRecommendVideos:k.value,activeKey:s.value,onSelectCategory:z},null,8,["visible","classList","hasRecommendVideos","activeKey"])]))}},X2t=_r(Y2t,[["__scopeId","data-v-990bd653"]]),Z2t={class:"search-results-container"},Q2t={class:"search-header"},J2t={class:"search-info"},ekt={key:0,class:"search-keyword"},tkt={key:1,class:"search-count"},nkt={class:"search-actions"},rkt={key:0,class:"error-container"},ikt={class:"error-text"},okt={key:1,class:"loading-container"},skt=["onClick"],akt={class:"video_list_item_img"},lkt=["innerHTML"],ukt={class:"video_list_item_title"},ckt={class:"title-text"},dkt={key:3,class:"empty-state"},fkt={key:4,class:"loading-container"},hkt={key:5,class:"no-more-data"},pkt={__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=_l(),r=zk(),o=zL(),a=uL(),s=e,l=t,c=fe(null),f=fe(null),h=fe(0),p=fe(null),m=fe(!1),g=fe(null),b=M=>{const D=M?.target||M?.srcElement,N=D?.closest?D.closest(".arco-scrollbar-container"):D;if(!N)return;const L=N.scrollHeight-N.clientHeight,B=N.scrollTop;L-B<50&&s.hasMore&&!s.loading&&l("load-more")},S=()=>{yn(()=>{setTimeout(()=>{const M=c.value;if(!M)return;const D=M.closest(".content-area")||M.parentElement;let N=D?D.offsetHeight:0;N<=0&&(N=Math.max(window.innerHeight-120,500));const L=document.querySelector(".search-header"),B=L?L.offsetHeight:60,U=s.videos?s.videos.length:0,W=M.offsetWidth||Math.max(window.innerWidth-240,800),z=Math.min(Math.floor(W/200),8),Y=328,oe=U>0?Math.ceil(U/Math.max(z,1)):0,ne=oe*Y+80;let X=4;const K=N-B;if(U===0)X=Math.min(K*.3,200),console.log(`无搜索结果数据,使用保守高度减值: ${X}px`);else if(ne{if(!s.keyword)return"";const M=s.videos.length,D=s.currentPage,N=s.hasMore;if(M===0)return`搜索"${s.keyword}":无结果`;let L=`搜索"${s.keyword}":第${D}页,共${M}条`;return N?L+=",可继续加载":L+=",已全部加载",L},C=()=>{const M=k();M&&r.updateStats(M)},x=()=>{yn(()=>{setTimeout(()=>{document.querySelectorAll(".search-results-container .title-text").forEach(D=>{const L=D.parentElement.offsetWidth-16;D.scrollWidth>L?D.setAttribute("data-overflow","true"):D.removeAttribute("data-overflow")})},100)})},E=M=>{if(M&&M.vod_id){if(M.vod_tag==="action")try{const D=JSON.parse(M.vod_id);console.log("SearchResults解析action配置:",D),g.value=D,m.value=!0;return}catch{console.log("SearchResults vod_id不是JSON格式,作为普通文本处理:",M.vod_id),Pt.info({content:M.vod_id,duration:3e3,closable:!0});return}if(a.setLastClicked(M.vod_id,M.vod_name),s.keyword){const N=f.value?.$el?.querySelector(".arco-scrollbar-container")?.scrollTop||0;o.saveSearchState(s.keyword,s.currentPage,s.videos,s.hasMore,s.loading,N),console.log("保存搜索状态:",{keyword:s.keyword,currentPage:s.currentPage,videosCount:s.videos.length,scrollPosition:N})}n.push({name:"VideoDetail",params:{id:M.vod_id},query:{name:M.vod_name,pic:M.vod_pic,year:M.vod_year,area:M.vod_area,type:M.vod_type,remarks:M.vod_remarks,content:M.vod_content,actor:M.vod_actor,director:M.vod_director,sourceRouteName:s.sourceRoute?.name,sourceRouteParams:JSON.stringify(s.sourceRoute?.params||{}),sourceRouteQuery:JSON.stringify(s.sourceRoute?.query||{}),fromSearch:"true",sourcePic:M.vod_pic}})}},_=()=>{r.clearStats(),l("exit-search")};gn(()=>{x(),S(),C(),window.addEventListener("resize",S),s.scrollPosition>0&&yn(()=>{requestAnimationFrame(()=>{const M=f.value?.$el?.querySelector(".arco-scrollbar-container");M&&(M.scrollTo({top:s.scrollPosition,behavior:"smooth"}),console.log("SearchResults恢复滚动位置:",s.scrollPosition))})})}),Fo(()=>{window.removeEventListener("resize",S)}),Dt(()=>s.videos,()=>{S(),x(),C()}),Dt([()=>s.keyword,()=>s.currentPage,()=>s.hasMore],()=>{C()});const A=()=>{m.value=!1,g.value=null},R=(M,D)=>{switch(console.log("处理专项动作:",M,D),M){case"__self_search__":console.log("执行源内搜索:",D);break;case"detail":console.log("跳转到详情页:",D);break;case"ktv-player":console.log("启动KTV播放:",D);break;case"refresh-list":console.log("刷新列表:",D),l("refresh-list");break;default:console.log("未知的专项动作:",M,D);break}};return(M,D)=>{const N=Pe("icon-close"),L=Pe("a-button"),B=Pe("icon-exclamation-circle"),U=Pe("a-spin"),W=Pe("a-image"),V=Pe("a-grid-item"),z=Pe("a-grid"),Y=Pe("icon-search"),oe=Pe("a-scrollbar");return H(),J("div",Z2t,[I("div",Q2t,[I("div",J2t,[e.keyword?(H(),J("span",ekt," 搜索结果:"+Be(e.keyword),1)):Re("",!0),e.videos.length>0?(H(),J("span",tkt," 共找到 "+Be(e.videos.length)+" 个结果 ",1)):Re("",!0)]),I("div",nkt,[O(L,{type:"outline",size:"small",onClick:_},{icon:de(()=>[O(N)]),default:de(()=>[D[0]||(D[0]=ze(" 清除搜索 ",-1))]),_:1})])]),I("div",{class:"search-grid-container",ref_key:"containerRef",ref:c},[O(oe,{ref_key:"scrollbarRef",ref:f,onScroll:b,class:"search-scroll-container",style:je("height:"+h.value+"px; overflow: auto;")},{default:de(()=>[e.error?(H(),J("div",rkt,[O(B,{class:"error-icon"}),I("p",ikt,Be(e.error),1)])):e.loading&&e.videos.length===0?(H(),J("div",okt,[O(U,{size:"large"}),D[1]||(D[1]=I("p",{class:"loading-text"},"正在搜索...",-1))])):e.videos.length>0?(H(),Ye(z,{key:2,cols:{xs:2,sm:3,md:4,lg:5,xl:6,xxl:8},rowGap:16,colGap:12},{default:de(()=>[(H(!0),J(Ut,null,mn(e.videos,ne=>(H(),Ye(V,{key:ne.vod_id,class:"video_list_hover"},{default:de(()=>[I("div",{class:"video_list_item",onClick:X=>E(ne)},[I("div",akt,[O(W,{preview:!1,class:"video_list_item_img_cover",fit:"cover",src:ne.vod_pic},null,8,["src"]),ne.vod_remarks?(H(),J("div",{key:0,class:"video_remarks_overlay",innerHTML:ne.vod_remarks},null,8,lkt)):Re("",!0)]),I("div",ukt,[I("span",ckt,Be(ne.vod_name),1)])],8,skt)]),_:2},1024))),128))]),_:1})):!e.loading&&!e.error&&e.keyword?(H(),J("div",dkt,[O(Y,{class:"empty-icon"}),D[2]||(D[2]=I("p",{class:"empty-text"},"没有找到相关内容",-1)),D[3]||(D[3]=I("p",{class:"empty-desc"},"尝试使用其他关键词搜索",-1))])):Re("",!0),e.loading&&e.videos.length>0?(H(),J("div",fkt,[O(U),D[4]||(D[4]=I("div",{class:"loading-text"},"加载更多...",-1))])):!e.hasMore&&e.videos.length>0?(H(),J("div",hkt," 没有更多数据了 ")):Re("",!0),D[5]||(D[5]=I("div",{class:"bottom-spacer"},null,-1))]),_:1},8,["style"])],512),m.value?(H(),Ye(nw,{key:0,ref_key:"actionRendererRef",ref:p,"action-data":g.value,module:s.module,extend:s.extend,"api-url":s.apiUrl,onClose:A,onSpecialAction:R},null,8,["action-data","module","extend","api-url"])):Re("",!0)])}}},Pye=_r(pkt,[["__scopeId","data-v-b2a6ea57"]]),rw=zg("site",()=>{const e=fe(Vs.getCurrentSite()||JSON.parse(localStorage.getItem("site-nowSite"))||null),t=r=>{e.value=r,localStorage.setItem("site-nowSite",JSON.stringify(r)),r&&r.key&&Vs.setCurrentSite(r.key),console.log("站点已切换:",r)},n=()=>{const r=Vs.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}}),vkt={class:"current-time"},mkt={class:"main-container"},gkt={__name:"Video",setup(e){const{nowSite:t,setCurrentSite:n}=rw();zk();const r=zL(),o=E3(),a=_l(),s=Q=>{const ye=Q.getFullYear(),be=String(Q.getMonth()+1).padStart(2,"0"),ve=String(Q.getDate()).padStart(2,"0"),Ce=String(Q.getHours()).padStart(2,"0"),De=String(Q.getMinutes()).padStart(2,"0"),We=String(Q.getSeconds()).padStart(2,"0");return`${ye}-${be}-${ve} ${Ce}:${De}:${We}`},l=fe(s(new Date)),c=fe(""),f=fe(null),h=qt({sites:[],now_site_title:"hipy影视",now_site:{},visible:!1,form_title:"",recommendVideos:[],classList:{},videoList:{}}),p=qt({isSearching:!1,searchKeyword:"",searchResults:[],searchLoading:!1,searchError:null,currentPage:1,totalPages:1,hasMore:!1,scrollPosition:0}),m=qt({isActive:!1,categoryData:null,originalClassList:null,originalRecommendVideos:null}),g=qt({isActive:!1,breadcrumbs:[],currentData:[],currentBreadcrumb:null,loading:!1}),b=qt({activeKey:null,scrollPosition:0,savedAt:null}),S=fe(null),k=async(Q=!1)=>{try{if(Vs.getConfigStatus().hasConfigUrl)try{await Vs.loadSitesFromConfig(Q),console.log("从配置地址加载站点数据成功")}catch(be){console.error("从配置地址加载站点数据失败:",be)}h.sites=Vs.getAllSites(),h.sites.length===0&&console.log("暂无站点配置,请在设置中配置数据源地址")}catch(ye){console.error("获取站点配置失败:",ye)}},C=()=>{const Q=Vs.getCurrentSite();Q?(h.now_site=Q,h.now_site_title=Q.name,n(Q)):t&&t.name?(h.now_site=t,h.now_site_title=t.name,Vs.setCurrentSite(t.key)):(h.now_site={},h.now_site_title="hipy影视")},x=()=>{if(!h.now_site||!h.now_site.key){const Q=Vs.getCurrentSite();if(Q)h.now_site=Q,h.now_site_title=Q.name;else if(h.sites.length>0){const ye=h.sites.find(be=>be.type===4)||h.sites[0];h.now_site=ye,h.now_site_title=ye.name,Vs.setCurrentSite(ye.key)}}else if(!h.sites.some(ye=>ye.key===h.now_site.key)&&h.sites.length>0){const ye=h.sites.find(be=>be.type===4)||h.sites[0];h.now_site=ye,h.now_site_title=ye.name,Vs.setCurrentSite(ye.key)}h.new_site=h.now_site},E=()=>{S.value=setInterval(()=>{l.value=s(new Date)},1e3)},_=()=>{window.location.reload()},A=()=>{},R=()=>{},M=()=>{},D=Q=>h.new_site=Q,N=()=>{h.now_site=h.new_site,n(h.now_site),h.visible=!1,k(!0),x()},L=Q=>{h.now_site=Q,n(Q),h.now_site_title=Q.name,h.visible=!1,B(Q)},B=async Q=>{if(!Q||!Q.key){console.log("站点信息无效");return}console.log(Q,"确认换源"),h.classList={class:[],filters:{}},h.recommendVideos=[];try{const ye=await gd.getRecommendVideos(Q.key,{extend:Q.ext,apiUrl:Q.api});h.classList={class:ye.categories,filters:ye.filters},h.recommendVideos=ye.videos||[],console.log("分类列表:",h.classList),console.log("推荐视频:",h.recommendVideos)}catch(ye){console.error("获取分类列表失败:",ye),h.classList={class:[],filters:{}},h.recommendVideos=[]}},U=async Q=>{if(!Q||!Q.trim()){p.isSearching=!1,p.searchKeyword="",p.searchResults=[];return}const ye=Q.trim();p.searchKeyword=ye,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 be=await gd.searchVideo(h.now_site.key,{keyword:ye,page:1,extend:h.now_site.ext,apiUrl:h.now_site.api});p.searchResults=be.videos||[],p.totalPages=be.pagination?.totalPages||1,p.hasMore=be.pagination?.hasNext||!1}catch(be){console.error("搜索失败:",be),p.searchError=be.message||"搜索失败,请重试",p.searchResults=[]}finally{p.searchLoading=!1}},W=async()=>{if(p.searchLoading||!p.searchKeyword||!p.hasMore)return;p.searchLoading=!0;const Q=p.currentPage+1;try{const ye=await gd.searchVideo(h.now_site.key,{keyword:p.searchKeyword,page:Q,extend:h.now_site.ext,apiUrl:h.now_site.api}),be=ye.videos||[],ve=new Set(p.searchResults.map(De=>De.vod_id)),Ce=be.filter(De=>!ve.has(De.vod_id)&&De.vod_id!=="no_data"&&De.vod_name!=="no_data");Ce.length===0?p.hasMore=!1:(p.searchResults=[...p.searchResults,...Ce],p.hasMore=ye.pagination?.hasNext!==!1),p.currentPage=Q,p.totalPages=ye.pagination?.totalPages||p.totalPages}catch(ye){console.error("搜索加载更多失败:",ye),p.searchError=ye.message||"加载失败,请重试"}finally{p.searchLoading=!1}},V=()=>{p.isSearching=!1,p.searchKeyword="",p.searchResults=[],p.searchError=null,p.currentPage=1},z=Q=>{c.value=Q},Y=Q=>{if(Q&&Q.vod_id){let ye="false";p.isSearching?(console.log("从搜索结果点击视频,状态保存由SearchResults组件处理"),ye="true"):c.value&&(r.saveVideoState(c.value,1,[],!0,!1,window.scrollY),console.log("从分类列表点击视频,保存分类状态")),a.push({name:"VideoDetail",params:{id:Q.vod_id},query:{name:Q.vod_name,pic:Q.vod_pic,year:Q.vod_year,area:Q.vod_area,type:Q.vod_type,remarks:Q.vod_remarks,content:Q.vod_content,actor:Q.vod_actor,director:Q.vod_director,sourceRouteName:o.name,sourceRouteParams:JSON.stringify(o.params),sourceRouteQuery:JSON.stringify({...o.query,activeKey:c.value}),fromSearch:ye,sourcePic:Q.vod_pic}})}},oe=()=>{console.log("收到刷新列表请求"),p.isSearching?console.log("刷新搜索结果"):(console.log("刷新分类列表"),f.value&&f.value.refreshCurrentCategory())},ne=async(Q,ye)=>{switch(console.log("🎯 [DEBUG] handleSpecialAction 被调用"),console.log("🎯 [DEBUG] actionType:",Q),console.log("🎯 [DEBUG] actionData:",JSON.stringify(ye,null,2)),Q){case"__self_search__":console.log("🎯 [DEBUG] 匹配到 __self_search__ 动作,调用 handleSelfSearchAction"),await X(ye);break;default:console.warn("🎯 [WARN] 未知的特殊动作类型:",Q);break}},X=async Q=>{try{console.log("🔍 [DEBUG] handleSelfSearchAction 被调用"),console.log("🔍 [DEBUG] 接收到的 categoryData:",JSON.stringify(Q,null,2)),m.isActive||(console.log("🔍 [DEBUG] 保存当前状态"),m.originalClassList=h.classList,m.originalRecommendVideos=h.recommendVideos);const ye=Q.tid||Q.type_id||Q.actionData?.tid,be=Q.name||Q.type_name||`搜索: ${ye}`;if(console.log("🔍 [DEBUG] 解析的参数:",{tid:ye,typeName:be,"categoryData.tid":Q.tid,"categoryData.type_id":Q.type_id,"categoryData.actionData?.tid":Q.actionData?.tid,"categoryData.name":Q.name,"categoryData.type_name":Q.type_name}),!ye){console.error("🔍 [ERROR] 源内搜索参数不完整:缺少tid"),Pt.error("源内搜索参数不完整:缺少tid");return}const ve=await gd.getCategoryVideos(h.now_site?.key||t?.key,{typeId:ye,page:1,filters:{},apiUrl:h.now_site?.api,extend:h.now_site?.ext});console.log("T4分类接口返回数据:",ve);const Ce={class:[{type_id:ye,type_name:be}],filters:{}};m.isActive=!0,m.categoryData={type_id:ye,type_name:be,originalData:Q,videos:ve.videos||[],pagination:ve.pagination||{}},h.classList=Ce,h.recommendVideos=[],c.value=ye,console.log("特殊分类设置完成:",{tid:ye,categoryName:be,isActive:m.isActive,videosCount:ve.videos?.length||0,classList:h.classList}),await yn(),f.value&&ve.videos&&(console.log("直接设置VideoList组件的特殊分类数据"),f.value.setSpecialCategoryData(ye,ve.videos,ve.pagination))}catch(ye){console.error("处理源内搜索失败:",ye),Pt.error(`源内搜索失败: ${ye.message}`)}},K=()=>{m.isActive&&(console.log("关闭特殊分类,恢复正常显示"),h.classList=m.originalClassList,h.recommendVideos=m.originalRecommendVideos,m.isActive=!1,m.categoryData=null,m.originalClassList=null,m.originalRecommendVideos=null,c.value="recommendTuijian404",console.log("特殊分类已关闭,恢复到推荐分类"))},re=Q=>{console.log("🗂️ [DEBUG] Video.vue handleFolderNavigate 被调用"),console.log("🗂️ [DEBUG] navigationData:",JSON.stringify(Q,null,2)),Q.isActive&&!g.isActive&&(console.log("🗂️ [DEBUG] 进入folder模式,保存当前状态"),b.activeKey=c.value,b.scrollPosition=window.scrollY||0,b.savedAt=Date.now(),console.log("🗂️ [DEBUG] 已保存状态:",b)),!Q.isActive&&g.isActive&&(console.log("🗂️ [DEBUG] 退出folder模式,恢复之前的状态"),console.log("🗂️ [DEBUG] 恢复状态:",b),b.activeKey&&(c.value=b.activeKey,console.log("🗂️ [DEBUG] 恢复activeKey:",b.activeKey)),yn(()=>{b.scrollPosition>0&&(window.scrollTo(0,b.scrollPosition),console.log("🗂️ [DEBUG] 恢复滚动位置:",b.scrollPosition))}),b.activeKey=null,b.scrollPosition=0,b.savedAt=null),Object.assign(g,Q),console.log("🗂️ [DEBUG] folder导航状态已更新:",{isActive:g.isActive,breadcrumbsCount:g.breadcrumbs.length,currentDataCount:g.currentData.length,currentBreadcrumb:g.currentBreadcrumb})},ee=()=>{h.visible=!0;const Q=h.sites.filter(ye=>ye.type===4);h.form_title=`请选择数据源(${Q.length})`,x()},le=async Q=>{if(!Q||!Q.trim()){Pt.error("推送内容不能为空");return}const ye=h.sites.find(be=>be.key==="push_agent");if(!ye){Pt.error("没有找到push_agent服务,请检查源配置");return}try{console.log("推送功能,使用临时站源:",{siteName:ye.name,siteKey:ye.key,siteApi:ye.api}),a.push({name:"VideoDetail",params:{id:Q.trim()},query:{name:`推送内容-${Q.trim()}`,pic:"",year:"",area:"",type:"",type_name:"",remarks:"",content:"",actor:"",director:"",fromPush:"true",tempSiteName:ye.name,tempSiteApi:ye.api,tempSiteKey:ye.key,sourceRouteName:o.name,sourceRouteParams:JSON.stringify(o.params),sourceRouteQuery:JSON.stringify(o.query),sourcePic:""}}),Pt.success(`正在推送内容: ${Q.trim()}`)}catch(be){console.error("推送失败:",be),Pt.error("推送失败,请重试")}};return gn(async()=>{k(),C();const Q=o.query._restoreSearch,ye=o.query._returnToActiveKey;if(Q==="true"){const De=r.getPageState("search");if(De&&De.keyword&&!r.isStateExpired("search")){console.log("恢复搜索状态:",De),p.isSearching=!0,p.searchKeyword=De.keyword,p.searchResults=De.videos||[],p.currentPage=De.currentPage||1,p.hasMore=De.hasMore||!1,p.searchLoading=!1,p.searchError=null,p.scrollPosition=De.scrollPosition||0;const We={...o.query};delete We._restoreSearch,a.replace({query:We}),await B(h.now_site),E(),console.log("搜索状态恢复完成,滚动位置由SearchResults组件处理");return}}const be=r.getPageState("video"),ve=r.isStateExpired("video");let Ce=!1;if(ye){if(c.value=ye,Ce=!0,console.log("从详情页返回,恢复到分类:",ye),o.query.folderState)try{const We=JSON.parse(o.query.folderState);if(console.log("🗂️ [DEBUG] 从详情页返回,恢复folder状态:",We),Object.assign(g,{isActive:We.isActive,breadcrumbs:We.breadcrumbs||[],currentBreadcrumb:We.currentBreadcrumb,currentData:[],loading:!1}),We.currentBreadcrumb&&We.currentBreadcrumb.vod_id){console.log("🗂️ [DEBUG] 重新获取folder数据:",We.currentBreadcrumb.vod_id),g.loading=!0;try{const Xe=await h2(h.now_site?.key||t?.key,{t:We.currentBreadcrumb.vod_id,apiUrl:h.now_site?.api,extend:h.now_site?.ext});Xe&&Xe.list&&(g.currentData=Xe.list,console.log("🗂️ [DEBUG] folder数据获取成功:",Xe.list.length))}catch(Xe){console.error("🗂️ [ERROR] 获取folder数据失败:",Xe)}finally{g.loading=!1}}}catch(We){console.error("🗂️ [ERROR] 解析folder状态失败:",We)}const De={...o.query};delete De._returnToActiveKey,delete De.folderState,a.replace({query:De})}else be&&be.activeKey&&!ve&&(c.value=be.activeKey,Ce=!0,console.log("恢复保存的分类状态:",be.activeKey));await B(h.now_site),E(),Ce&&setTimeout(()=>{f.value&&f.value.restoreFullState({activeKey:c.value,currentPage:be?.currentPage||1,videos:be?.videos||[],hasMore:be?.hasMore||!0,scrollPosition:be?.scrollPosition||0})},100)}),Fo(()=>{if(S.value&&clearInterval(S.value),c.value&&f.value){const Q=f.value.getCurrentState();r.saveVideoState(c.value,Q.currentPage,Q.videos,Q.hasMore,!1,Q.scrollPosition),console.log("保存Video页面状态:",{activeKey:c.value,currentPage:Q.currentPage,videosCount:Q.videos.length,hasMore:Q.hasMore,hasData:Q.hasData,scrollPosition:Q.scrollPosition})}}),(Q,ye)=>{const be=Pe("a-layout-content");return H(),J(Ut,null,[O(Abt,{onHandleOpenForm:ee,onRefreshPage:_,onMinimize:A,onMaximize:R,onCloseWindow:M,onOnSearch:U,onHandlePush:le,now_site_title:h.now_site_title},{default:de(()=>[I("div",vkt,[I("span",null,Be(l.value),1)])]),_:1},8,["now_site_title"]),I("div",mkt,[O(be,{class:"content"},{default:de(()=>[p.isSearching?(H(),Ye(Pye,{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:nt(o).name,params:nt(o).params,query:nt(o).query},module:h.now_site?.key||nt(t)?.key,extend:h.now_site?.ext,"api-url":h.now_site?.api,onLoadMore:W,onExitSearch:V,onVideoClick:Y,onRefreshList:oe},null,8,["keyword","videos","loading","error","currentPage","totalPages","hasMore","scrollPosition","sourceRoute","module","extend","api-url"])):(H(),Ye(X2t,{key:1,ref_key:"videoListRef",ref:f,classList:h.classList,recommendVideos:h.recommendVideos,sourceRoute:{name:nt(o).name,params:nt(o).params,query:{...nt(o).query,activeKey:c.value,folderState:g.isActive?JSON.stringify({isActive:g.isActive,breadcrumbs:g.breadcrumbs,currentBreadcrumb:g.currentBreadcrumb}):void 0}},returnToActiveKey:nt(o).query._returnToActiveKey,module:h.now_site?.key||nt(t)?.key,extend:h.now_site?.ext,"api-url":h.now_site?.api,specialCategoryState:m,folderNavigationState:g,onActiveKeyChange:z,onSpecialAction:ne,onCloseSpecialCategory:K,onFolderNavigate:re},null,8,["classList","recommendVideos","sourceRoute","returnToActiveKey","module","extend","api-url","specialCategoryState","folderNavigationState"]))]),_:1})]),O(mbt,{visible:h.visible,title:h.form_title,sites:h.sites,currentSiteKey:h.now_site.key,"onUpdate:visible":ye[0]||(ye[0]=ve=>h.visible=ve),onConfirmClear:N,onConfirmChange:L,onChangeRule:D},null,8,["visible","title","sites","currentSiteKey"])],64)}}},ykt=_r(gkt,[["__scopeId","data-v-4b06a690"]]),bkt=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:m,parse_extra:g}=e;if(!p)throw new Error("T4解析数据中缺少URL");const b=typeof p=="string"?p:p.toString?p.toString():String(p);console.log("处理T4解析数据:",e),console.log("提取的URL:",b),console.log("=== 调试结束 ===");const S=new URLSearchParams({url:b,mode:o,is_pc:a,timeout:(r*1e3).toString()});m&&S.set("script",m),s=`${n}?${S.toString()}`,g&&(s+=g)}else{const p=typeof e=="string"?e:e.toString(),m=new URLSearchParams({url:p,mode:o,is_pc:a,timeout:(r*1e3).toString()});s=`${n}?${m.toString()}`}console.log("嗅探请求URL:",s);const l=new AbortController,c=setTimeout(()=>l.abort(),r*1e3+5e3),f=await fetch(s,{method:"GET",signal:l.signal,headers:{Accept:"application/json","Content-Type":"application/json"}});if(clearTimeout(c),!f.ok)throw new Error(`嗅探请求失败: ${f.status} ${f.statusText}`);const h=await f.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}},Rye=()=>{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}},qse=()=>{const e=Rye();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},_kt=async(e,t={})=>{const n=Rye();if(!n.enabled)throw new Error("嗅探功能未启用");if(!n.url)throw new Error("嗅探器接口地址未配置");const r={snifferUrl:n.url,timeout:n.timeout,...t};return await bkt(e,r)},JL=zg("favorite",()=>{const e=fe([]),t=()=>{try{const m=localStorage.getItem("drplayer-favorites");m&&(e.value=JSON.parse(m))}catch(m){console.error("加载收藏数据失败:",m),e.value=[]}},n=()=>{try{localStorage.setItem("drplayer-favorites",JSON.stringify(e.value))}catch(m){console.error("保存收藏数据失败:",m)}},r=m=>{const g={id:m.vod_id,name:m.vod_name,pic:m.vod_pic,year:m.vod_year,area:m.vod_area,type_name:m.type_name,remarks:m.vod_remarks,director:m.vod_director,actor:m.vod_actor,api_info:{module:m.module||"",api_url:m.api_url||"",site_name:m.site_name||"",ext:m.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=(m,g)=>{const b=e.value.findIndex(S=>S.id===m&&S.api_info.api_url===g);return b!==-1?(e.value.splice(b,1),n(),!0):!1},a=(m,g)=>e.value.some(b=>b.id===m&&b.api_info.api_url===g),s=(m,g)=>e.value.find(b=>b.id===m&&b.api_info.api_url===g),l=()=>{e.value=[],n()},c=()=>{const m={version:"1.0",export_time:new Date().toISOString(),favorites:e.value},g=new Blob([JSON.stringify(m,null,2)],{type:"application/json"}),b=URL.createObjectURL(g),S=document.createElement("a");S.href=b,S.download=`drplayer-favorites-${new Date().toISOString().split("T")[0]}.json`,document.body.appendChild(S),S.click(),document.body.removeChild(S),URL.revokeObjectURL(b)},f=m=>new Promise((g,b)=>{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(A=>A.id===E.id&&A.api_info.api_url===E.api_info.api_url)||(e.value.push({...E,updated_at:new Date().toISOString()}),x++)}),n(),g(x)}catch(C){b(C)}},S.onerror=()=>{b(new Error("文件读取失败"))},S.readAsText(m)}),h=F(()=>e.value.length),p=F(()=>{const m={};return e.value.forEach(g=>{const b=g.api_info?.site_name||"";let S="影视";b.includes("[书]")?S="小说":b.includes("[画]")?S="漫画":b.includes("[密]")?S="密":b.includes("[听]")?S="音频":b.includes("[儿]")&&(S="少儿"),m[S]||(m[S]=[]),m[S].push(g)}),m});return t(),{favorites:e,favoriteCount:h,favoritesByType:p,addFavorite:r,removeFavorite:o,isFavorited:a,getFavorite:s,clearFavorites:l,exportFavorites:c,importFavorites:f,loadFavorites:t,saveFavorites:n}}),gW=zg("history",()=>{const e=fe([]),t=F(()=>e.value.length),n=F(()=>[...e.value].sort((g,b)=>new Date(b.updated_at)-new Date(g.updated_at))),r=F(()=>{const g={};return e.value.forEach(b=>{const S=b.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(b)}),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,b,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:b.name,current_route_index:b.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 b=e.value.findIndex(S=>S.id===g.id&&S.api_info.api_url===g.api_info.api_url);return b!==-1?(e.value.splice(b,1),a(),console.log("删除历史记录成功:",g.name),!0):(console.warn("未找到要删除的历史记录:",g),!1)},c=()=>{e.value=[],a()},f=()=>{const g=JSON.stringify(e.value,null,2),b=new Blob([g],{type:"application/json"}),S=document.createElement("a");S.href=URL.createObjectURL(b),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 b=JSON.parse(g);if(!Array.isArray(b))throw new Error("导入的数据格式不正确");const S=b.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(b){throw new Error(`导入失败: ${b.message}`)}},p=(g,b)=>e.value.find(S=>S.id===g&&S.api_info.api_url===b);return{histories:e,historyCount:t,sortedHistories:n,historiesByType:r,loadHistories:o,saveHistories:a,addToHistory:s,removeFromHistory:l,clearHistories:c,exportHistories:f,importHistories:h,getHistoryByVideo:p,getWatchProgress:(g,b)=>{const S=p(g,b);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}}}),Dn=Number.isFinite||function(e){return typeof e=="number"&&isFinite(e)},Skt=Number.isSafeInteger||function(e){return typeof e=="number"&&Math.abs(e)<=kkt},kkt=Number.MAX_SAFE_INTEGER||9007199254740991;let or=(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})({}),Te=(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 vi={MANIFEST:"manifest",LEVEL:"level",AUDIO_TRACK:"audioTrack",SUBTITLE_TRACK:"subtitleTrack"},Yn={MAIN:"main",AUDIO:"audio",SUBTITLE:"subtitle"};class cy{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 wkt{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 cy(t),this.fast_=new cy(n),this.defaultTTFB_=o,this.ttfb_=new cy(t)}update(t,n){const{slow_:r,fast_:o,ttfb_:a}=this;r.halfLife!==t&&(this.slow_=new cy(t,r.getEstimate(),r.getTotalWeight())),o.halfLife!==n&&(this.fast_=new cy(n,o.getEstimate(),o.getTotalWeight())),a.halfLife!==t&&(this.ttfb_=new cy(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 Ckt(e,t,n){return(t=Ekt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uo(){return uo=Object.assign?Object.assign.bind():function(e){for(var t=1;t`):Vp}function Xse(e,t,n){return t[e]?t[e].bind(t):Akt(e,n)}const UU=jU();function Ikt(e,t,n){const r=jU();if(typeof console=="object"&&e===!0||typeof e=="object"){const o=["debug","log","info","warn","error"];o.forEach(a=>{r[a]=Xse(a,e,n)});try{r.log(`Debug logs enabled for "${t}" in hls.js version 1.6.13`)}catch{return jU()}o.forEach(a=>{UU[a]=Xse(a,e)})}else uo(UU,r);return r}const oo=UU;function _v(e=!0){return typeof self>"u"?void 0:(e||!self.MediaSource)&&self.ManagedMediaSource||self.MediaSource||self.WebKitMediaSource}function Lkt(e){return typeof self<"u"&&e===self.ManagedMediaSource}function Mye(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 nc(e,t=!1){if(typeof TextDecoder<"u"){const f=new TextDecoder("utf-8").decode(e);if(t){const h=f.indexOf("\0");return h!==-1?f.substring(0,h):f}return f.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 $l(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(!Dn(t)){this._programDateTime=this.rawProgramDateTime=null;return}this._programDateTime=t}get ref(){return zs(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 Mkt extends Oye{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 $ye(e,t){const n=Object.getPrototypeOf(e);if(n){const r=Object.getOwnPropertyDescriptor(n,t);return r||$ye(n,t)}}function Dkt(e,t){const n=$ye(e,t);n&&(n.enumerable=!0,Object.defineProperty(e,t,n))}const Qse=Math.pow(2,32)-1,Okt=[].push,Nye={video:1,audio:2,id3:3,text:4};function ra(e){return String.fromCharCode.apply(null,e)}function Bye(e,t){const n=e[t]<<8|e[t+1];return n<0?65536+n:n}function Pr(e,t){const n=Fye(e,t);return n<0?4294967296+n:n}function Jse(e,t){let n=Pr(e,t);return n*=Math.pow(2,32),n+=Pr(e,t+4),n}function Fye(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]}function $kt(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 li(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=li(e.subarray(o+8,l),t.slice(1));c.length&&Okt.apply(n,c)}o=l}return n}function Nkt(e){const t=[],n=e[0];let r=8;const o=Pr(e,r);r+=4;let a=0,s=0;n===0?(a=Pr(e,r),s=Pr(e,r+4),r+=8):(a=Jse(e,r),s=Jse(e,r+8),r+=16),r+=2;let l=e.length+s;const c=Bye(e,r);r+=2;for(let f=0;f>>31===1)return oo.warn("SIDX has hierarchical references (not supported)"),null;const b=Pr(e,h);h+=4,t.push({referenceSize:m,subsegmentDuration:b,info:{duration:b/o,start:l,end:l+m-1}}),l+=m,h+=4,r=h}return{earliestPresentationTime:a,timescale:o,version:n,referencesCount:c,references:t}}function jye(e){const t=[],n=li(e,["moov","trak"]);for(let o=0;o{const a=Pr(o,4),s=t[a];s&&(s.default={duration:Pr(o,12),flags:Pr(o,20)})}),t}function Bkt(e){const t=e.subarray(8),n=t.subarray(86),r=ra(t.subarray(4,8));let o=r,a;const s=r==="enca"||r==="encv";if(s){const f=li(t,[r])[0].subarray(r==="enca"?28:78);li(f,["sinf"]).forEach(p=>{const m=li(p,["schm"])[0];if(m){const g=ra(m.subarray(4,8));if(g==="cbcs"||g==="cenc"){const b=li(p,["frma"])[0];b&&(o=ra(b))}}})}const l=o;switch(o){case"avc1":case"avc2":case"avc3":case"avc4":{const c=li(n,["avcC"])[0];c&&c.length>3&&(o+="."+eT(c[1])+eT(c[2])+eT(c[3]),a=JE(l==="avc1"?"dva1":"dvav",n));break}case"mp4a":{const c=li(t,[r])[0],f=li(c.subarray(28),["esds"])[0];if(f&&f.length>7){let h=4;if(f[h++]!==3)break;h=B9(f,h),h+=2;const p=f[h++];if(p&128&&(h+=2),p&64&&(h+=f[h++]),f[h++]!==4)break;h=B9(f,h);const m=f[h++];if(m===64)o+="."+eT(m);else break;if(h+=12,f[h++]!==5)break;h=B9(f,h);const g=f[h++];let b=(g&248)>>3;b===31&&(b+=1+((g&7)<<3)+((f[h]&224)>>5)),o+="."+b}break}case"hvc1":case"hev1":{const c=li(n,["hvcC"])[0];if(c&&c.length>12){const f=c[1],h=["","A","B","C"][f>>6],p=f&31,m=Pr(c,2),g=(f&32)>>5?"H":"L",b=c[12],S=c.subarray(6,12);o+="."+h+p,o+="."+Fkt(m).toString(16).toUpperCase(),o+="."+g+b;let k="";for(let C=S.length;C--;){const x=S[C];(x||k)&&(k="."+x.toString(16).toUpperCase()+k)}o+=k}a=JE(l=="hev1"?"dvhe":"dvh1",n);break}case"dvh1":case"dvhe":case"dvav":case"dva1":case"dav1":{o=JE(o,n)||o;break}case"vp09":{const c=li(n,["vpcC"])[0];if(c&&c.length>6){const f=c[4],h=c[5],p=c[6]>>4&15;o+="."+Yd(f)+"."+Yd(h)+"."+Yd(p)}break}case"av01":{const c=li(n,["av1C"])[0];if(c&&c.length>2){const f=c[1]>>>5,h=c[1]&31,p=c[2]>>>7?"H":"M",m=(c[2]&64)>>6,g=(c[2]&32)>>5,b=f===2&&m?g?12:10:m?10:8,S=(c[2]&16)>>4,k=(c[2]&8)>>3,C=(c[2]&4)>>2,x=c[2]&3;o+="."+f+"."+Yd(h)+p+"."+Yd(b)+"."+S+"."+k+C+x+"."+Yd(1)+"."+Yd(1)+"."+Yd(1)+"."+0,a=JE("dav1",n)}break}}return{codec:o,encrypted:s,supplemental:a}}function JE(e,t){const n=li(t,["dvvC"]),r=n.length?n[0]:li(t,["dvcC"])[0];if(r){const o=r[2]>>1&127,a=r[2]<<5&32|r[3]>>3&31;return e+"."+Yd(o)+"."+Yd(a)}}function Fkt(e){let t=0;for(let n=0;n<32;n++)t|=(e>>n&1)<<31-n;return t>>>0}function B9(e,t){const n=t+5;for(;e[t++]&128&&t{const a=r.subarray(8,24);a.some(s=>s!==0)||(oo.log(`[eme] Patching keyId in 'enc${o?"a":"v"}>sinf>>tenc' box: ${$l(a)} -> ${$l(n)}`),r.set(n,8))})}function Ukt(e){const t=[];return Uye(e,n=>t.push(n.subarray(8,24))),t}function Uye(e,t){li(e,["moov","trak"]).forEach(r=>{const o=li(r,["mdia","minf","stbl","stsd"])[0];if(!o)return;const a=o.subarray(8);let s=li(a,["enca"]);const l=s.length>0;l||(s=li(a,["encv"])),s.forEach(c=>{const f=l?c.subarray(28):c.subarray(78);li(f,["sinf"]).forEach(p=>{const m=Vye(p);m&&t(m,l)})})})}function Vye(e){const t=li(e,["schm"])[0];if(t){const n=ra(t.subarray(4,8));if(n==="cbcs"||n==="cenc"){const r=li(e,["schi","tenc"])[0];if(r)return r}}}function Vkt(e,t,n){const r={},o=li(e,["moof","traf"]);for(let a=0;ar[a].duration)){let a=1/0,s=0;const l=li(e,["sidx"]);for(let c=0;cp+m.info.duration||0,0);s=Math.max(s,h+f.earliestPresentationTime/f.timescale)}}s&&Dn(s)&&Object.keys(r).forEach(c=>{r[c].duration||(r[c].duration=s*r[c].timescale-r[c].start)})}return r}function zkt(e){const t={valid:null,remainder:null},n=li(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 zc(e,t){const n=new Uint8Array(e.length+t.length);return n.set(e),n.set(t,e.length),n}function eae(e,t){const n=[],r=t.samples,o=t.timescale,a=t.id;let s=!1;return li(r,["moof"]).map(c=>{const f=c.byteOffset-8;li(c,["traf"]).map(p=>{const m=li(p,["tfdt"]).map(g=>{const b=g[0];let S=Pr(g,4);return b===1&&(S*=Math.pow(2,32),S+=Pr(g,8)),S/o})[0];return m!==void 0&&(e=m),li(p,["tfhd"]).map(g=>{const b=Pr(g,4),S=Pr(g,0)&16777215,k=(S&1)!==0,C=(S&2)!==0,x=(S&8)!==0;let E=0;const _=(S&16)!==0;let A=0;const R=(S&32)!==0;let M=8;b===a&&(k&&(M+=8),C&&(M+=4),x&&(E=Pr(g,M),M+=4),_&&(A=Pr(g,M),M+=4),R&&(M+=4),t.type==="video"&&(s=eP(t.codec)),li(p,["trun"]).map(D=>{const N=D[0],L=Pr(D,0)&16777215,B=(L&1)!==0;let U=0;const W=(L&4)!==0,V=(L&256)!==0;let z=0;const Y=(L&512)!==0;let oe=0;const ne=(L&1024)!==0,X=(L&2048)!==0;let K=0;const re=Pr(D,4);let ee=8;B&&(U=Pr(D,ee),ee+=4),W&&(ee+=4);let le=U+f;for(let Q=0;Q>1&63;return n===39||n===40}else return(t&31)===6}function _W(e,t,n,r){const o=zye(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 f=o.length-a;let h=a;if(lf){oo.error(`Malformed SEI payload. ${l} is too small, only ${f} bytes left to parse.`);break}if(s===4){if(o[h++]===181){const m=Bye(o,h);if(h+=2,m===49){const g=Pr(o,h);if(h+=4,g===1195456820){const b=o[h++];if(b===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 b=0;b<16;b++){const S=o[h++].toString(16);p.push(S.length==1?"0"+S:S),(b===3||b===5||b===7||b===9)&&p.push("-")}const m=l-16,g=new Uint8Array(m);for(let b=0;b>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),Gkt([112,115,115,104],new Uint8Array([r,0,0,0]),e,a,o,s,n)}function qkt(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=$l(new Uint8Array(s,n+12,16));let c=null,f=null,h=0;if(a===0)h=28;else{const m=e.getUint32(28);if(!m||r<32+m*16)return{offset:n,size:t};c=[];for(let g=0;g/\(Windows.+Firefox\//i.test(navigator.userAgent),A1={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 SW(e,t){const n=A1[t];return!!n&&!!n[e.slice(0,4)]}function lk(e,t,n=!0){return!e.split(",").some(r=>!kW(r,t,n))}function kW(e,t,n=!0){var r;const o=_v(n);return(r=o?.isTypeSupported(uk(e,t)))!=null?r:!1}function uk(e,t){return`${t}/mp4;codecs=${e}`}function tae(e){if(e){const t=e.substring(0,4);return A1.video[t]}return 2}function PI(e){const t=Hye();return e.split(",").reduce((n,r)=>{const a=t&&eP(r)?9:A1.video[r];return a?(a*2+n)/(n?3:2):(A1.audio[r]+n)/(n?2:1)},0)}const F9={};function Xkt(e,t=!0){if(F9[e])return F9[e];const n={flac:["flac","fLaC","FLAC"],opus:["opus","Opus"],"mp4a.40.34":["mp3"]}[e];for(let o=0;oXkt(n.toLowerCase(),t))}function Qkt(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)&&(nae(e,"audio")||nae(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 nae(e,t){return SW(e,t)&&kW(e,t)}function Jkt(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 ewt(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 rae(e){const t=_v(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 VU(e){return e.replace(/^.+codecs=["']?([^"']+).*$/,"$1")}const twt={supported:!0,powerEfficient:!0,smooth:!0},nwt={supported:!1,smooth:!1,powerEfficient:!1},Wye={supported:!0,configurations:[],decodingInfoResults:[twt]};function Gye(e,t){return{supported:!1,configurations:t,decodingInfoResults:[nwt],error:e}}function rwt(e,t,n,r,o,a){const s=e.videoCodec,l=e.audioCodec?e.audioGroups:null,c=a?.audioCodec,f=a?.channels,h=f?parseInt(f):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((m,g)=>{if(g){const b=t.groups[g];if(!b)throw new Error(`Audio track group ${g} not found`);Object.keys(b.channels).forEach(S=>{m[S]=(m[S]||0)+b.channels[S]})}return m},{2:0})}catch{return!0}return s!==void 0&&(s.split(",").some(m=>eP(m))||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&&Dn(h)&&Object.keys(p).some(m=>parseInt(m)>h)}function Kye(e,t,n,r={}){const o=e.videoCodec;if(!o&&!e.audioCodec||!n)return Promise.resolve(Wye);const a=[],s=iwt(e),l=s.length,c=owt(e,t,l>0),f=c.length;for(let h=l||1*f||1;h--;){const p={type:"media-source"};if(l&&(p.video=s[h%l]),f){p.audio=c[h%f];const m=p.audio.bitrate;p.video&&m&&(p.video.bitrate-=m)}a.push(p)}if(o){const h=navigator.userAgent;if(o.split(",").some(p=>eP(p))&&Hye())return Promise.resolve(Gye(new Error(`Overriding Windows Firefox HEVC MediaCapabilities result based on user-agent string: (${h})`),a))}return Promise.all(a.map(h=>{const p=awt(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 iwt(e){var t;const n=(t=e.videoCodec)==null?void 0:t.split(","),r=qye(e),o=e.width||640,a=e.height||480,s=e.frameRate||30,l=e.videoRange.toLowerCase();return n?n.map(c=>{const f={contentType:uk(ewt(c),"video"),width:o,height:a,bitrate:r,framerate:s};return l!=="sdr"&&(f.transferFunction=l),f}):[]}function owt(e,t,n){var r;const o=(r=e.audioCodec)==null?void 0:r.split(","),a=qye(e);return o&&e.audioGroups?e.audioGroups.reduce((s,l)=>{var c;const f=l?(c=t.groups[l])==null?void 0:c.tracks:null;return f?f.reduce((h,p)=>{if(p.groupId===l){const m=parseFloat(p.channels||"");o.forEach(g=>{const b={contentType:uk(g,"audio"),bitrate:n?swt(g,a):a};m&&(b.channels=""+m),h.push(b)})}return h},s):s},[]):[]}function swt(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 qye(e){return Math.ceil(Math.max(e.bitrate*.9,e.averageBitrate)/1e3)*1e3||1}function awt(e){let t="";const{audio:n,video:r}=e;if(r){const o=VU(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=VU(n.contentType);t+=`${r?"_":""}${o}_c${n.channels}`}return t}const zU=["NONE","TYPE-0","TYPE-1",null];function lwt(e){return zU.indexOf(e)>-1}const MI=["SDR","PQ","HLG"];function uwt(e){return!!e&&MI.indexOf(e)>-1}var tA={No:"",Yes:"YES",v2:"v2"};function iae(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 sae(this._audioGroups,t)}hasSubtitleGroup(t){return sae(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 sae(e,t){return!t||!e?!1:e.indexOf(t)!==-1}function cwt(){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 dwt(e,t){let n=!1,r=[];if(e&&(n=e!=="SDR",r=[e]),t){r=t.allowedVideoRanges||MI.slice(0);const o=r.join("")!=="SDR"&&!t.videoCodec;n=t.preferHDR!==void 0?t.preferHDR:o&&cwt(),n||(r=["SDR"])}return{preferHDR:n,allowedVideoRanges:r}}const fwt=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}},bo=(e,t)=>JSON.stringify(e,fwt(t));function hwt(e,t,n,r,o){const a=Object.keys(e),s=r?.channels,l=r?.audioCodec,c=o?.videoCodec,f=s&&parseInt(s)===2;let h=!1,p=!1,m=1/0,g=1/0,b=1/0,S=1/0,k=0,C=[];const{preferHDR:x,allowedVideoRanges:E}=dwt(t,o);for(let D=a.length;D--;){const N=e[a[D]];h||(h=N.channels[2]>0),m=Math.min(m,N.minHeight),g=Math.min(g,N.minFramerate),b=Math.min(b,N.minBitrate),E.filter(B=>N.videoRanges[B]>0).length>0&&(p=!0)}m=Dn(m)?m:0,g=Dn(g)?g:0;const _=Math.max(1080,m),A=Math.max(30,g);b=Dn(b)?b:n,n=Math.max(b,n),p||(t=void 0);const R=a.length>1;return{codecSet:a.reduce((D,N)=>{const L=e[N];if(N===D)return D;if(C=p?E.filter(B=>L.videoRanges[B]>0):[],R){if(L.minBitrate>n)return Wd(N,`min bitrate of ${L.minBitrate} > current estimate of ${n}`),D;if(!L.hasDefaultAudio)return Wd(N,"no renditions with default or auto-select sound found"),D;if(l&&N.indexOf(l.substring(0,4))%5!==0)return Wd(N,`audio codec preference "${l}" not found`),D;if(s&&!f){if(!L.channels[s])return Wd(N,`no renditions with ${s} channel sound found (channels options: ${Object.keys(L.channels)})`),D}else if((!l||f)&&h&&L.channels[2]===0)return Wd(N,"no renditions with stereo sound found"),D;if(L.minHeight>_)return Wd(N,`min resolution of ${L.minHeight} > maximum of ${_}`),D;if(L.minFramerate>A)return Wd(N,`min framerate of ${L.minFramerate} > maximum of ${A}`),D;if(!C.some(B=>L.videoRanges[B]>0))return Wd(N,`no variants with VIDEO-RANGE of ${bo(C)} found`),D;if(c&&N.indexOf(c.substring(0,4))%5!==0)return Wd(N,`video codec preference "${c}" not found`),D;if(L.maxScore=PI(D)||L.fragmentError>e[D].fragmentError)?D:(S=L.minIndex,k=L.maxScore,N)},void 0),videoRanges:C,preferHDR:x,minFramerate:g,minBitrate:b,minIndex:S}}function Wd(e,t){oo.log(`[abr] start candidates with "${e}" ignored because ${t}`)}function Yye(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 pwt(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 f=Math.min(a.height,a.width);return c.minHeight=Math.min(c.minHeight,f),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(m=>{c.channels[m]=(c.channels[m]||0)+p.channels[m]}))}),o},{})}function aae(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 af(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 Mm(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 gwt(e,t,n,r,o){const a=t[r],l=t.reduce((m,g,b)=>{const S=g.uri;return(m[S]||(m[S]=[])).push(b),m},{})[a.uri];l.length>1&&(r=Math.max.apply(Math,l));const c=a.videoRange,f=a.frameRate,h=a.codecSet.substring(0,4),p=lae(t,r,m=>{if(m.videoRange!==c||m.frameRate!==f||m.codecSet.substring(0,4)!==h)return!1;const g=m.audioGroups,b=n.filter(S=>!g||g.indexOf(S.groupId)!==-1);return af(e,b,o)>-1});return p>-1?p:lae(t,r,m=>{const g=m.audioGroups,b=n.filter(S=>!g||g.indexOf(S.groupId)!==-1);return af(e,b,o)>-1})}function lae(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 f=performance.now(),h=a?a.stats:o.stats,p=a?a.duration:o.duration,m=f-h.loading.start,g=s.minAutoLevel,b=o.level,S=this._nextAutoLevel;if(h.aborted||h.loaded&&h.loaded===h.total||b<=g){this.clearTimer(),this._nextAutoLevel=-1;return}if(!l)return;const k=S>-1&&S!==b,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(m<=Math.max(E,1e3*(p/(_*2))))return;const A=x?x.len/_:0,R=h.loading.first?h.loading.first-h.loading.start:-1,M=h.loaded&&R>-1,D=this.getBwEstimate(),N=s.levels,L=N[b],B=Math.max(h.loaded,Math.round(p*(o.bitrate||L.averageBitrate)/8));let U=M?m-R:m;U<1&&M&&(U=Math.min(m,h.loaded*8/D));const W=M?h.loaded*1e3/U:0,V=E/1e3,z=W?(B-h.loaded)/W:B*8/D+V;if(z<=A)return;const Y=W?W*8:D,oe=((r=n?.details||this.hls.latestLevelDetails)==null?void 0:r.live)===!0,ne=this.hls.config.abrBandWidthUpFactor;let X=Number.POSITIVE_INFINITY,K;for(K=b-1;K>g;K--){const Q=N[K].maxBitrate,ye=!N[K].details||oe;if(X=this.getTimeToLoadFrag(V,Y,p*Q,ye),X=z||X>p*10)return;M?this.bwEstimator.sample(m-Math.min(E,R),h.loaded):this.bwEstimator.sampleTTFB(m);const re=N[K].maxBitrate;this.getBwEstimate()*ne>re&&this.resetEstimator(re);const ee=this.findBestLevel(re,g,K,0,A,1,1);ee>-1&&(K=ee),this.warn(`Fragment ${o.sn}${a?" part "+a.index:""} of level ${b} is loading too slowly; Fragment duration: ${o.duration.toFixed(3)} Time to underbuffer: ${A.toFixed(3)} s Estimated load time for current fragment: ${z.toFixed(3)} s Estimated load time for down switch fragment: ${X.toFixed(3)} s TTFB estimate: ${R|0} ms Current BW estimate: ${Dn(D)?D|0:"Unknown"} bps New BW estimate: ${this.getBwEstimate()|0} bps Switching to level ${K} @ ${re|0} bps`),s.nextLoadLevel=s.nextAutoLevel=K,this.clearTimer();const le=()=>{if(this.clearTimer(),this.fragCurrent===o&&this.hls.loadLevel===K&&K>0){const Q=this.getStarvationDelay();if(this.warn(`Aborting inflight request ${K>0?"and switching down":""} Fragment duration: ${o.duration.toFixed(3)} s Time to underbuffer: ${Q.toFixed(3)} s`),o.abortRequests(),this.fragCurrent=this.partCurrent=null,K>g){let ye=this.findBestLevel(this.hls.levels[g].bitrate,g,K,0,Q,1,1);ye===-1&&(ye=g),this.hls.nextLoadLevel=this.hls.nextAutoLevel=ye,this.resetEstimator(this.hls.levels[ye].bitrate)}}};k||z>X*2?le():this.timer=self.setInterval(le,X*1e3),s.trigger(Te.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 wkt(t.abrEwmaSlowVoD,t.abrEwmaFastVoD,t.abrEwmaDefaultEstimate)}registerListeners(){const{hls:t}=this;t.on(Te.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Te.FRAG_LOADING,this.onFragLoading,this),t.on(Te.FRAG_LOADED,this.onFragLoaded,this),t.on(Te.FRAG_BUFFERED,this.onFragBuffered,this),t.on(Te.LEVEL_SWITCHING,this.onLevelSwitching,this),t.on(Te.LEVEL_LOADED,this.onLevelLoaded,this),t.on(Te.LEVELS_UPDATED,this.onLevelsUpdated,this),t.on(Te.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),t.on(Te.ERROR,this.onError,this)}unregisterListeners(){const{hls:t}=this;t&&(t.off(Te.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Te.FRAG_LOADING,this.onFragLoading,this),t.off(Te.FRAG_LOADED,this.onFragLoaded,this),t.off(Te.FRAG_BUFFERED,this.onFragBuffered,this),t.off(Te.LEVEL_SWITCHING,this.onLevelSwitching,this),t.off(Te.LEVEL_LOADED,this.onLevelLoaded,this),t.off(Te.LEVELS_UPDATED,this.onLevelsUpdated,this),t.off(Te.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),t.off(Te.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,f=l.loading.first?l.loading.first-l.loading.start:-1;if(l.loaded&&f>-1){const p=this.bwEstimator.getEstimateTTFB();this.bwEstimator.sample(c-Math.min(p,f),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;Dn(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===Yn.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(Te.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!==Yn.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(),f=this.getStarvationDelay();let h=a.abrBandWidthFactor,p=a.abrBandWidthUpFactor;if(f){const k=this.findBestLevel(c,s,o,f,0,h,p);if(k>=0)return this.rebufferNotice=-1,k}let m=l?Math.min(l,a.maxStarvationDelay):a.maxStarvationDelay;if(!f){const k=this.bitrateTestDelay;k&&(m=(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*m)} ms`),h=p=1)}const g=this.findBestLevel(c,s,o,f,m,h,p);if(this.rebufferNotice!==g&&(this.rebufferNotice=g,this.info(`${f?"rebuffering expected":"buffer is empty"}, optimal quality level ${g}`)),g>-1)return g;const b=r.levels[s],S=r.loadLevelObj;return S&&b?.bitrate=n;Y--){var z;const oe=b[Y],ne=Y>p;if(!oe)continue;if(C.useMediaCapabilities&&!oe.supportedResult&&!oe.supportedPromise){const ye=navigator.mediaCapabilities;typeof ye?.decodingInfo=="function"&&rwt(oe,L,R,M,t,D)?(oe.supportedPromise=Kye(oe,L,ye,this.supportedCache),oe.supportedPromise.then(be=>{if(!this.hls)return;oe.supportedResult=be;const ve=this.hls.levels,Ce=ve.indexOf(oe);be.error?this.warn(`MediaCapabilities decodingInfo error: "${be.error}" for level ${Ce} ${bo(be)}`):be.supported?be.decodingInfoResults.some(De=>De.smooth===!1||De.powerEfficient===!1)&&this.log(`MediaCapabilities decodingInfo for level ${Ce} not smooth or powerEfficient: ${bo(be)}`):(this.warn(`Unsupported MediaCapabilities decodingInfo result for level ${Ce} ${bo(be)}`),Ce>-1&&ve.length>1&&(this.log(`Removing unsupported level ${Ce}`),this.hls.removeLevel(Ce),this.hls.loadLevel===-1&&(this.hls.nextLoadLevel=0)))}).catch(be=>{this.warn(`Error handling MediaCapabilities decodingInfo: ${be}`)})):oe.supportedResult=Wye}if((A&&oe.codecSet!==A||R&&oe.videoRange!==R||ne&&M>oe.frameRate||!ne&&M>0&&Mye.smooth===!1))&&(!_||Y!==B)){V.push(Y);continue}const X=oe.details,K=(g?X?.partTarget:X?.averagetargetduration)||U;let re;ne?re=l*t:re=s*t;const ee=U&&o>=U*2&&a===0?oe.averageBitrate:oe.maxBitrate,le=this.getTimeToLoadFrag(W,re,ee*K,X===void 0);if(re>=ee&&(Y===h||oe.loadError===0&&oe.fragmentError===0)&&(le<=W||!Dn(le)||E&&!this.bitrateTestDelay||le${Y} adjustedbw(${Math.round(re)})-bitrate=${Math.round(re-ee)} ttfb:${W.toFixed(1)} avgDuration:${K.toFixed(1)} maxFetchDuration:${f.toFixed(1)} fetchDuration:${le.toFixed(1)} firstSelection:${_} codecSet:${oe.codecSet} videoRange:${oe.videoRange} hls.loadLevel:${k}`)),_&&(this.firstSelection=Y),Y}}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 Xye={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 bwt(e,t,n){if(t===null||!Array.isArray(e)||!e.length||!Dn(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)&&uae(n,r,a)===0||_wt(a,e,Math.min(o,r))))return a;const s=Xye.search(t,uae.bind(null,n,r));return s&&(s!==e||!a)?s:a}function _wt(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 uae(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 Swt(e,t,n){const r=Math.min(t,n.duration+(n.deltaPTS?n.deltaPTS:0))*1e3;return(n.endProgramDateTime||0)-r>e}function Zye(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 Xye.search(r,s=>s.cct?-1:(a=s,s.end<=n?1:s.start>n?-1:0)),a||null}return null}function OI(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 Qye(e){return e.details.startsWith("key")}function Jye(e){return Qye(e)&&!!e.frag&&!e.frag.decryptdata}function cae(e,t){const n=OI(t);return e.default[`${n?"timeout":"error"}Retry`]}function wW(e,t){const n=e.backoff==="linear"?1:Math.pow(2,t);return Math.min(n*e.retryDelayMs,e.maxRetryDelayMs)}function dae(e){return ro(ro({},e),{errorRetry:null,timeoutRetry:null})}function $I(e,t,n,r){if(!e)return!1;const o=r?.code,a=t499)}function HU(e){return e===0&&navigator.onLine===!1}var Pa={DoNothing:0,SendAlternateToPenaltyBox:2,RemoveAlternatePermanently:3,RetryRequest:5},Ku={None:0,MoveAllAlternatesMatchingHost:1,MoveAllAlternatesMatchingHDCP:2,MoveAllAlternatesMatchingKey:4};class wwt extends Gc{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(Te.ERROR,this.onError,this),t.on(Te.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Te.LEVEL_UPDATED,this.onLevelUpdated,this)}unregisterListeners(){const t=this.hls;t&&(t.off(Te.ERROR,this.onError,this),t.off(Te.ERROR,this.onErrorOut,this),t.off(Te.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Te.LEVEL_UPDATED,this.onLevelUpdated,this))}destroy(){this.unregisterListeners(),this.hls=null}startLoad(t){}stopLoad(){this.playlistError=0}getVariantLevelIndex(t){return t?.type===Yn.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=r1();return}case Ht.FRAG_GAP:case Ht.FRAG_DECRYPT_ERROR:{n.errorAction=this.getFragRetryOrSwitchAction(n),n.errorAction.action=Pa.SendAlternateToPenaltyBox;return}case Ht.LEVEL_EMPTY_ERROR:case Ht.LEVEL_PARSING_ERROR:{var s;const c=n.parent===Yn.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===vi.AUDIO_TRACK&&c.hasAudioGroup(a.groupId)||a.type===vi.SUBTITLE_TRACK&&c.hasSubtitleGroup(a.groupId))){n.errorAction=this.getPlaylistRetryOrSwitchAction(n,o.loadLevel),n.errorAction.action=Pa.SendAlternateToPenaltyBox,n.errorAction.flags=Ku.MoveAllAlternatesMatchingHost;return}}return;case Ht.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:n.errorAction={action:Pa.SendAlternateToPenaltyBox,flags:Ku.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:Pa.SendAlternateToPenaltyBox,flags:Ku.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=r1();return}n.type===or.KEY_SYSTEM_ERROR&&(n.levelRetry=!1,n.errorAction=r1())}getPlaylistRetryOrSwitchAction(t,n){const r=this.hls,o=cae(r.config.playlistLoadPolicy,t),a=this.playlistError++;if($I(o,a,OI(t),t.response))return{action:Pa.RetryRequest,flags:Ku.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=cae(Qye(t)?s:a,t),c=n.levels.reduce((h,p)=>h+p.fragmentError,0);if(o&&(t.details!==Ht.FRAG_GAP&&o.fragmentError++,!Jye(t)&&$I(l,c,OI(t),t.response)))return{action:Pa.RetryRequest,flags:Ku.None,retryConfig:l,retryCount:c};const f=this.getLevelSwitchAction(t,r);return l&&(f.retryConfig=l,f.retryCount=c),f}getLevelSwitchAction(t,n){const r=this.hls;n==null&&(n=r.loadLevel);const o=this.hls.levels[n];if(o){var a,s;const f=t.details;o.loadError++,f===Ht.BUFFER_APPEND_ERROR&&o.fragmentError++;let h=-1;const{levels:p,loadLevel:m,minAutoLevel:g,maxAutoLevel:b}=r;!r.autoLevelEnabled&&!r.config.preserveManualLevelOnError&&(r.loadLevel=-1);const S=(a=t.frag)==null?void 0:a.type,C=(S===Yn.AUDIO&&f===Ht.FRAG_PARSING_ERROR||t.sourceBufferName==="audio"&&(f===Ht.BUFFER_ADD_CODEC_ERROR||f===Ht.BUFFER_APPEND_ERROR))&&p.some(({audioCodec:R})=>o.audioCodec!==R),E=t.sourceBufferName==="video"&&(f===Ht.BUFFER_ADD_CODEC_ERROR||f===Ht.BUFFER_APPEND_ERROR)&&p.some(({codecSet:R,audioCodec:M})=>o.codecSet!==R&&o.audioCodec===M),{type:_,groupId:A}=(s=t.context)!=null?s:{};for(let R=p.length;R--;){const M=(R+m)%p.length;if(M!==m&&M>=g&&M<=b&&p[M].loadError===0){var l,c;const D=p[M];if(f===Ht.FRAG_GAP&&S===Yn.MAIN&&t.frag){const N=p[M].details;if(N){const L=Ag(t.frag,N.fragments,t.frag.start);if(L!=null&&L.gap)continue}}else{if(_===vi.AUDIO_TRACK&&D.hasAudioGroup(A)||_===vi.SUBTITLE_TRACK&&D.hasSubtitleGroup(A))continue;if(S===Yn.AUDIO&&(l=o.audioGroups)!=null&&l.some(N=>D.hasAudioGroup(N))||S===Yn.SUBTITLE&&(c=o.subtitleGroups)!=null&&c.some(N=>D.hasSubtitleGroup(N))||C&&o.audioCodec===D.audioCodec||E&&o.codecSet===D.codecSet||!C&&o.codecSet!==D.codecSet)continue}h=M;break}}if(h>-1&&r.loadLevel!==h)return t.levelRetry=!0,this.playlistError=0,{action:Pa.SendAlternateToPenaltyBox,flags:Ku.None,nextAutoLevel:h}}return{action:Pa.SendAlternateToPenaltyBox,flags:Ku.MoveAllAlternatesMatchingHost}}onErrorOut(t,n){var r;switch((r=n.errorAction)==null?void 0:r.action){case Pa.DoNothing:break;case Pa.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 Ku.None:this.switchLevel(t,a);break;case Ku.MoveAllAlternatesMatchingHDCP:{const c=this.getVariantLevelIndex(t.frag),f=n.levels[c],h=f?.attrs["HDCP-LEVEL"];if(r.hdcpLevel=h,h==="NONE")this.warn("HDCP policy resticted output with HDCP-LEVEL=NONE");else if(h){n.maxHdcpLevel=zU[zU.indexOf(h)-1],r.resolved=!0,this.warn(`Restricting playback to HDCP-LEVEL of "${n.maxHdcpLevel}" or lower`);break}}case Ku.MoveAllAlternatesMatchingKey:{const c=t.decryptdata;if(c){const f=this.hls.levels,h=f.length;for(let m=h;m--;)if(this.variantHasKey(f[m],c)){var s,l;this.log(`Banned key found in level ${m} (${f[m].bitrate}bps) or audio group "${(s=f[m].audioGroups)==null?void 0:s.join(",")}" (${(l=t.frag)==null?void 0:l.type} fragment) ${$l(c.keyId||[])}`),f[m].fragmentError++,f[m].loadError++,this.log(`Removing level ${m} with key error (${t.error})`),this.hls.removeLevel(m)}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 f=c.range[t];if(f){if(f.time.length===0){this.removeFragment(c.body);return}f.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=dy(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 f=n[l],h=s||c.partial===!0;a.range[l]=this.getBufferedTimes(r,t.part,h,f)}),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),tT(a)||this.removeParts(r.sn-1,r.type)):this.removeFragment(a.body)}removeParts(t,n){const r=this.activePartLists[n];r&&(this.activePartLists[n]=fae(r,o=>o.fragment.sn>=t))}fragBuffered(t,n){const r=dy(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,f=t.maxStartPTS||s;for(let h=0;h=p&&c<=m){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)),b=Math.min(l,o.end(h));b>g&&(a.partial=!0,a.time.push({startPTS:g,endPTS:b}))}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(f=>{const h=c[f];h&&tT(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||tT(n))}getState(t){const n=dy(t),r=this.fragments[n];return r?r.buffered?tT(r)?oa.PARTIAL:oa.OK:oa.APPENDING:oa.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=dy(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 f=this.activePartLists[l];f||(this.activePartLists[l]=f=[]),f.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=dy(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=dy(t);t.clearElementaryStreamInfo();const r=this.activePartLists[t.type];if(r){const o=t.sn;this.activePartLists[t.type]=fae(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 tT(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 dy(e){return`${e.type}_${e.level}_${e.sn}`}function fae(e,t){return e.filter(n=>{const r=t(n);return r||n.clearElementaryStreamInfo(),r})}var Sv={cbc:0,ctr:1};class xwt{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 Sv.cbc:return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},n,t);case Sv.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 Ewt(e){const t=e.byteLength,n=t&&new DataView(e.buffer).getUint8(t-1);return n?e.slice(0,t-n):e}class Twt{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,f=c[0],h=c[1],p=c[2],m=c[3],g=new Uint32Array(256);let b=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[b]=C,n[C]=b;const x=g[b],E=g[x],_=g[E];let A=g[C]*257^C*16843008;o[b]=A<<24|A>>>8,a[b]=A<<16|A>>>16,s[b]=A<<8|A>>>24,l[b]=A,A=_*16843009^E*65537^x*257^b*16843008,f[C]=A<<24|A>>>8,h[C]=A<<16|A>>>16,p[C]=A<<8|A>>>24,m[C]=A,b?(b=x^g[g[g[_^x]]],S^=g[g[S]]):b=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!==Sv.cbc||n.byteLength!==16)return oo.warn("SoftwareDecrypt: can only handle AES-128-CBC"),null;this.logOnce("JS AES decrypt"),l&&(t=zc(l,t),this.remainderData=null);const c=this.getValidChunk(t);if(!c.length)return null;a&&(r=a);let f=this.softwareDecrypter;f||(f=this.softwareDecrypter=new Twt),f.expandKey(n);const h=s;return this.currentResult=f.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 Awt(this.subtle,n,o)}return this.fastAesKey.expandKey().then(a=>this.subtle?(this.logOnce("WebCrypto AES decrypt"),new xwt(this.subtle,new Uint8Array(r),o).decrypt(t.buffer,a)):Promise.reject(new Error("web crypto not initialized"))).catch(a=>(oo.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%Lwt;return r!==t.length&&(n=t.slice(0,r),this.remainderData=t.slice(r)),n}logOnce(t){this.logEnabled&&(oo.log(`[decrypter]: ${t}`),this.logEnabled=!1)}}const hae=Math.pow(2,17);class Pwt{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 lh({type:or.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(b=>b[0]==="GAP")){c(vae(t));return}else t.gap=!1;const f=this.loader=a?new a(o):new s(o),h=pae(t);t.loader=f;const p=dae(o.fragLoadPolicy.default),m={loadPolicy:p,timeout:p.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:t.sn==="initSegment"?1/0:hae};t.stats=f.stats;const g={onSuccess:(b,S,k,C)=>{this.resetLoader(t,f);let x=b.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:(b,S,k,C)=>{this.resetLoader(t,f),c(new lh({type:or.NETWORK_ERROR,details:Ht.FRAG_LOAD_ERROR,fatal:!1,frag:t,response:ro({url:r,data:void 0},b),error:new Error(`HTTP Error ${b.code} ${b.text}`),networkDetails:k,stats:C}))},onAbort:(b,S,k)=>{this.resetLoader(t,f),c(new lh({type:or.NETWORK_ERROR,details:Ht.INTERNAL_ABORTED,fatal:!1,frag:t,error:new Error("Aborted"),networkDetails:k,stats:b}))},onTimeout:(b,S,k)=>{this.resetLoader(t,f),c(new lh({type:or.NETWORK_ERROR,details:Ht.FRAG_LOAD_TIMEOUT,fatal:!1,frag:t,error:new Error(`Timeout after ${m.timeout}ms`),networkDetails:k,stats:b}))}};n&&(g.onProgress=(b,S,k,C)=>n({frag:t,part:null,payload:k,networkDetails:C})),f.load(h,m,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(vae(t,n));return}const f=this.loader=a?new a(o):new s(o),h=pae(t,n);t.loader=f;const p=dae(o.fragLoadPolicy.default),m={loadPolicy:p,timeout:p.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:hae};n.stats=f.stats,f.load(h,m,{onSuccess:(g,b,S,k)=>{this.resetLoader(t,f),this.updateStatsFromPart(t,n);const C={frag:t,part:n,payload:g.data,networkDetails:k};r(C),l(C)},onError:(g,b,S,k)=>{this.resetLoader(t,f),c(new lh({type:or.NETWORK_ERROR,details:Ht.FRAG_LOAD_ERROR,fatal:!1,frag:t,part:n,response:ro({url:h.url,data:void 0},g),error:new Error(`HTTP Error ${g.code} ${g.text}`),networkDetails:S,stats:k}))},onAbort:(g,b,S)=>{t.stats.aborted=n.stats.aborted,this.resetLoader(t,f),c(new lh({type:or.NETWORK_ERROR,details:Ht.INTERNAL_ABORTED,fatal:!1,frag:t,part:n,error:new Error("Aborted"),networkDetails:S,stats:g}))},onTimeout:(g,b,S)=>{this.resetLoader(t,f),c(new lh({type:or.NETWORK_ERROR,details:Ht.FRAG_LOAD_TIMEOUT,fatal:!1,frag:t,part:n,error:new Error(`Timeout after ${m.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),f=Math.min(Math.round(r.loaded/a),c),p=(c-f)*Math.round(r.loaded/f);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 pae(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(Dn(o)&&Dn(a)){var s;let l=o,c=a;if(e.sn==="initSegment"&&Rwt((s=e.decryptdata)==null?void 0:s.method)){const f=a-o;f%16&&(c=a+(16-f%16)),o!==0&&(r.resetIV=!0,l=o-16)}r.rangeStart=l,r.rangeEnd=c}return r}function vae(e,t){const n=new Error(`GAP ${e.gap?"tag":"attribute"} found`),r={type:or.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 lh(r)}function Rwt(e){return e==="AES-128"||e==="AES-256"}class lh extends Error{constructor(t){super(t.error.message),this.data=void 0,this.data=t}}class e1e extends Gc{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 xW{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=nT(),this.buffering={audio:nT(),video:nT(),audiovideo:nT()},this.level=t,this.sn=n,this.id=r,this.size=o,this.part=a,this.partial=s}}function nT(){return{start:0,executeStart:0,executeEnd:0,end:0}}const mae={length:0,start:()=>0,end:()=>0};class Or{static isBuffered(t,n){if(t){const r=Or.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=Or.getBuffered(t);return Or.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 m=a[p-1].end;t[h].start-mm&&(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,f=n;for(let h=0;h=p&&n<=m&&(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 yae(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 Mwt(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 Dwt=/^(\d+)x(\d+)$/,bae=/(.+?)=(".*?"|.*?)(?:,|$)/g;class Qo{constructor(t,n){typeof t=="string"&&(t=Qo.parseAttrList(t,n)),uo(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=Dwt.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(bae.lastIndex=0;(r=bae.exec(t))!==null;){const s=r[1].trim();let l=r[2];const c=l.indexOf('"')===0&&l.lastIndexOf('"')===l.length-1;let f=!1;if(c)l=l.slice(1,-1);else switch(s){case"IV":case"SCTE35-CMD":case"SCTE35-IN":case"SCTE35-OUT":f=!0}if(n&&(c||f))l=WU(n,l);else if(!f&&!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":oo.warn(`${t}: attribute ${s} is missing quotes`)}o[s]=l}return o}}const Owt="com.apple.hls.interstitial";function $wt(e){return e!=="ID"&&e!=="CLASS"&&e!=="CUE"&&e!=="START-DATE"&&e!=="DURATION"&&e!=="END-DATE"&&e!=="END-ON-NEXT"}function Nwt(e){return e==="SCTE35-OUT"||e==="SCTE35-IN"||e==="SCTE35-CMD"}class n1e{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]){oo.warn(`DATERANGE tag attribute: "${s}" does not match for tags with ID: "${t.ID}"`),this._badValueForSameId=s;break}t=uo(new Qo({}),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"]);Dn(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?(oo.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(Dn(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===Owt}get isValid(){return!!this.id&&!this._badValueForSameId&&Dn(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 Bwt=10;class Fwt{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?Dn(this.fragments[this.fragments.length-1].programDateTime):!1}get levelTargetDuration(){return this.averagetargetduration||this.targetduration||Bwt}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 NI(e,t){return e.length===t.length?!e.some((n,r)=>n!==t[r]):!1}function _ae(e,t){return!e&&!t?!0:!e||!t?!1:NI(e,t)}function i1(e){return e==="AES-128"||e==="AES-256"||e==="AES-256-CTR"}function EW(e){switch(e){case"AES-128":case"AES-256":return Sv.cbc;case"AES-256-CTR":return Sv.ctr;default:throw new Error(`invalid full segment method ${e}`)}}function TW(e){return Uint8Array.from(atob(e),t=>t.charCodeAt(0))}function GU(e){return Uint8Array.from(unescape(encodeURIComponent(e)),t=>t.charCodeAt(0))}function jwt(e){const t=GU(e).subarray(0,16),n=new Uint8Array(16);return n.set(t,16-t.length),n}function r1e(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 i1e(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=TW(s)):n=jwt(s)}}return n}const BI=typeof self<"u"?self:void 0;var ts={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.fps",PLAYREADY:"com.microsoft.playready",WIDEVINE:"com.widevine.alpha"},$a={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.streamingkeydelivery",PLAYREADY:"com.microsoft.playready",WIDEVINE:"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"};function nA(e){switch(e){case $a.FAIRPLAY:return ts.FAIRPLAY;case $a.PLAYREADY:return ts.PLAYREADY;case $a.WIDEVINE:return ts.WIDEVINE;case $a.CLEARKEY:return ts.CLEARKEY}}function j9(e){switch(e){case ts.FAIRPLAY:return $a.FAIRPLAY;case ts.PLAYREADY:return $a.PLAYREADY;case ts.WIDEVINE:return $a.WIDEVINE;case ts.CLEARKEY:return $a.CLEARKEY}}function wS(e){const{drmSystems:t,widevineLicenseUrl:n}=e,r=t?[ts.FAIRPLAY,ts.WIDEVINE,ts.PLAYREADY,ts.CLEARKEY].filter(o=>!!t[o]):[];return!r[ts.WIDEVINE]&&n&&r.push(ts.WIDEVINE),r}const o1e=(function(e){return BI!=null&&(e=BI.navigator)!=null&&e.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null})();function Uwt(e,t,n,r){let o;switch(e){case ts.FAIRPLAY:o=["cenc","sinf"];break;case ts.WIDEVINE:case ts.PLAYREADY:o=["cenc"];break;case ts.CLEARKEY:o=["cenc","keyids"];break;default:throw new Error(`Unknown key-system: ${e}`)}return Vwt(o,t,n,r)}function Vwt(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 zwt(e){var t;return!!e&&(e.sessionType==="persistent-license"||!!((t=e.sessionTypes)!=null&&t.some(n=>n==="persistent-license")))}function s1e(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=TW(l).subarray(0,16);return r1e(c),c}}return null}let rT={};class dg{static clearKeyUriToKeyIdMap(){rT={}}static setKeyIdForUri(t,n){rT[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&&!i1(t),s!=null&&s.startsWith("0x")&&(this.keyId=new Uint8Array(Dye(s)))}matches(t){return t.uri===this.uri&&t.method===this.method&&t.encrypted===this.encrypted&&t.keyFormat===this.keyFormat&&NI(t.keyFormatVersions,this.keyFormatVersions)&&_ae(t.iv,this.iv)&&_ae(t.keyId,this.keyId)}isSupported(){if(this.method){if(i1(this.method)||this.method==="NONE")return!0;if(this.keyFormat==="identity")return this.method==="SAMPLE-AES";switch(this.keyFormat){case $a.FAIRPLAY:case $a.WIDEVINE:case $a.PLAYREADY:case $a.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(i1(this.method)){let a=this.iv;return a||(typeof t!="number"&&(oo.warn(`missing IV for initialization segment with method="${this.method}" - compliance issue`),t=0),a=Wwt(t)),new dg(this.method,this.uri,"identity",this.keyFormatVersions,a)}if(this.keyId){const a=rT[this.uri];if(a&&!NI(this.keyId,a)&&dg.setKeyIdForUri(this.uri,this.keyId),this.pssh)return this}const r=i1e(this.uri);if(r)switch(this.keyFormat){case $a.WIDEVINE:if(this.pssh=r,!this.keyId){const a=qkt(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=Sae(n));break;case $a.PLAYREADY:{const a=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);this.pssh=Kkt(a,null,r),this.keyId=s1e(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=Hwt(n),a||(a=Sae(n),a||(a=rT[this.uri])),a&&(this.keyId=a,dg.setKeyIdForUri(this.uri,a))}return this}}function Hwt(e){const t=e?.[$a.WIDEVINE];return t?t.keyId:null}function Sae(e){const t=e?.[$a.PLAYREADY];if(t){const n=i1e(t.uri);if(n)return s1e(n)}return null}function Wwt(e){const t=new Uint8Array(16);for(let n=12;n<16;n++)t[n]=e>>8*(15-n)&255;return t}const kae=/#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,wae=/#EXT-X-MEDIA:(.*)/g,Gwt=/^#EXT(?:INF|-X-TARGETDURATION):/m,U9=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/(?!#) *(\S[^\r\n]*)/.source,/#.*/.source].join("|"),"g"),Kwt=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 lf{static findGroup(t,n){for(let r=0;r0&&a.length({id:f.attrs.AUDIO,audioCodec:f.audioCodec})),SUBTITLES:s.map(f=>({id:f.attrs.SUBTITLES,textCodec:f.textCodec})),"CLOSED-CAPTIONS":[]};let c=0;for(wae.lastIndex=0;(o=wae.exec(t))!==null;){const f=new Qo(o[1],r),h=f.TYPE;if(h){const p=l[h],m=a[h]||[];a[h]=m;const g=f.LANGUAGE,b=f["ASSOC-LANGUAGE"],S=f.CHANNELS,k=f.CHARACTERISTICS,C=f["INSTREAM-ID"],x={attrs:f,bitrate:0,id:c++,groupId:f["GROUP-ID"]||"",name:f.NAME||g||"",type:h,default:f.bool("DEFAULT"),autoselect:f.bool("AUTOSELECT"),forced:f.bool("FORCED"),lang:g,url:f.URI?lf.resolve(f.URI,n):""};if(b&&(x.assocLang=b),S&&(x.channels=S),k&&(x.characteristics=k),C&&(x.instreamId=C),p!=null&&p.length){const E=lf.findGroup(p,x.groupId)||p[0];Tae(x,E,"audioCodec"),Tae(x,E,"textCodec")}m.push(x)}}return a}static parseLevelPlaylist(t,n,r,o,a,s){var l;const c={url:n},f=new Fwt(n),h=f.fragments,p=[];let m=null,g=0,b=0,S=0,k=0,C=0,x=null,E=new N9(o,c),_,A,R,M=-1,D=!1,N=null,L;if(U9.lastIndex=0,f.m3u8=t,f.hasVariableRefs=gae(t),((l=U9.exec(t))==null?void 0:l[0])!=="#EXTM3U")return f.playlistParsingError=new Error("Missing format identifier #EXTM3U"),f;for(;(_=U9.exec(t))!==null;){D&&(D=!1,E=new N9(o,c),E.playlistOffset=S,E.setStart(S),E.sn=g,E.cc=k,C&&(E.bitrate=C),E.level=r,m&&(E.initSegment=m,m.rawProgramDateTime&&(E.rawProgramDateTime=m.rawProgramDateTime,m.rawProgramDateTime=null),N&&(E.setByteRange(N),N=null)));const V=_[1];if(V){E.duration=parseFloat(V);const z=(" "+_[2]).slice(1);E.title=z||null,E.tagList.push(z?["INF",V,z]:["INF",V])}else if(_[3]){if(Dn(E.duration)){E.playlistOffset=S,E.setStart(S),R&&Iae(E,R,f),E.sn=g,E.level=r,E.cc=k,h.push(E);const z=(" "+_[3]).slice(1);E.relurl=WU(f,z),KU(E,x,p),x=E,S+=E.duration,g++,b=0,D=!0}}else{if(_=_[0].match(Kwt),!_){oo.warn("No matches on slow regex match for level playlist!");continue}for(A=1;A<_.length&&_[A]===void 0;A++);const z=(" "+_[A]).slice(1),Y=(" "+_[A+1]).slice(1),oe=_[A+2]?(" "+_[A+2]).slice(1):null;switch(z){case"BYTERANGE":x?E.setByteRange(Y,x):E.setByteRange(Y);break;case"PROGRAM-DATE-TIME":E.rawProgramDateTime=Y,E.tagList.push(["PROGRAM-DATE-TIME",Y]),M===-1&&(M=h.length);break;case"PLAYLIST-TYPE":f.type&&th(f,z,_),f.type=Y.toUpperCase();break;case"MEDIA-SEQUENCE":f.startSN!==0?th(f,z,_):h.length>0&&Lae(f,z,_),g=f.startSN=parseInt(Y);break;case"SKIP":{f.skippedSegments&&th(f,z,_);const ne=new Qo(Y,f),X=ne.decimalInteger("SKIPPED-SEGMENTS");if(Dn(X)){f.skippedSegments+=X;for(let re=X;re--;)h.push(null);g+=X}const K=ne.enumeratedString("RECENTLY-REMOVED-DATERANGES");K&&(f.recentlyRemovedDateranges=(f.recentlyRemovedDateranges||[]).concat(K.split(" ")));break}case"TARGETDURATION":f.targetduration!==0&&th(f,z,_),f.targetduration=Math.max(parseInt(Y),1);break;case"VERSION":f.version!==null&&th(f,z,_),f.version=parseInt(Y);break;case"INDEPENDENT-SEGMENTS":break;case"ENDLIST":f.live||th(f,z,_),f.live=!1;break;case"#":(Y||oe)&&E.tagList.push(oe?[Y,oe]:[Y]);break;case"DISCONTINUITY":k++,E.tagList.push(["DIS"]);break;case"GAP":E.gap=!0,E.tagList.push([z]);break;case"BITRATE":E.tagList.push([z,Y]),C=parseInt(Y)*1e3,Dn(C)?E.bitrate=C:C=0;break;case"DATERANGE":{const ne=new Qo(Y,f),X=new n1e(ne,f.dateRanges[ne.ID],f.dateRangeTagCount);f.dateRangeTagCount++,X.isValid||f.skippedSegments?f.dateRanges[X.id]=X:oo.warn(`Ignoring invalid DATERANGE tag: "${Y}"`),E.tagList.push(["EXT-X-DATERANGE",Y]);break}case"DEFINE":{{const ne=new Qo(Y,f);"IMPORT"in ne?Mwt(f,ne,s):yae(f,ne,n)}break}case"DISCONTINUITY-SEQUENCE":f.startCC!==0?th(f,z,_):h.length>0&&Lae(f,z,_),f.startCC=k=parseInt(Y);break;case"KEY":{const ne=Cae(Y,n,f);if(ne.isSupported()){if(ne.method==="NONE"){R=void 0;break}R||(R={});const X=R[ne.keyFormat];X!=null&&X.matches(ne)||(X&&(R=uo({},R)),R[ne.keyFormat]=ne)}else oo.warn(`[Keys] Ignoring unsupported EXT-X-KEY tag: "${Y}"`);break}case"START":f.startTimeOffset=xae(Y);break;case"MAP":{const ne=new Qo(Y,f);if(E.duration){const X=new N9(o,c);Aae(X,ne,r,R),m=X,E.initSegment=m,m.rawProgramDateTime&&!E.rawProgramDateTime&&(E.rawProgramDateTime=m.rawProgramDateTime)}else{const X=E.byteRangeEndOffset;if(X){const K=E.byteRangeStartOffset;N=`${X-K}@${K}`}else N=null;Aae(E,ne,r,R),m=E,D=!0}m.cc=k;break}case"SERVER-CONTROL":{L&&th(f,z,_),L=new Qo(Y),f.canBlockReload=L.bool("CAN-BLOCK-RELOAD"),f.canSkipUntil=L.optionalFloat("CAN-SKIP-UNTIL",0),f.canSkipDateRanges=f.canSkipUntil>0&&L.bool("CAN-SKIP-DATERANGES"),f.partHoldBack=L.optionalFloat("PART-HOLD-BACK",0),f.holdBack=L.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{f.partTarget&&th(f,z,_);const ne=new Qo(Y);f.partTarget=ne.decimalFloatingPoint("PART-TARGET");break}case"PART":{let ne=f.partList;ne||(ne=f.partList=[]);const X=b>0?ne[ne.length-1]:void 0,K=b++,re=new Qo(Y,f),ee=new Mkt(re,E,c,K,X);ne.push(ee),E.duration+=ee.duration;break}case"PRELOAD-HINT":{const ne=new Qo(Y,f);f.preloadHint=ne;break}case"RENDITION-REPORT":{const ne=new Qo(Y,f);f.renditionReports=f.renditionReports||[],f.renditionReports.push(ne);break}default:oo.warn(`line parsed but not handled: ${_}`);break}}}x&&!x.relurl?(h.pop(),S-=x.duration,f.partList&&(f.fragmentHint=x)):f.partList&&(KU(E,x,p),E.cc=k,f.fragmentHint=E,R&&Iae(E,R,f)),f.targetduration||(f.playlistParsingError=new Error("Missing Target Duration"));const B=h.length,U=h[0],W=h[B-1];if(S+=f.skippedSegments*f.targetduration,S>0&&B&&W){f.averagetargetduration=S/B;const V=W.sn;f.endSN=V!=="initSegment"?V:0,f.live||(W.endList=!0),M>0&&(Ywt(h,M),U&&p.unshift(U))}return f.fragmentHint&&(S+=f.fragmentHint.duration),f.totalduration=S,p.length&&f.dateRangeTagCount&&U&&a1e(p,f),f.endCC=k,f}}function a1e(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]],f=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 f=n[r].sn-e.startSN;if(f<0)return-1;const h=e.fragments;if(h.length>n.length){const m=(n[r+1]||h[h.length-1]).sn-e.startSN;for(let g=m;g>f;g--){const b=h[g].programDateTime;if(t>=b&&tr);["video","audio","text"].forEach(r=>{const o=n.filter(a=>SW(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 Tae(e,t,n){const r=t[n];r&&(e[n]=r)}function Ywt(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 KU(e,t,n){e.rawProgramDateTime?n.push(e):t!=null&&t.programDateTime&&(e.programDateTime=t.endProgramDateTime)}function Aae(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 Iae(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 th(e,t,n){e.playlistParsingError=new Error(`#EXT-X-${t} must not appear more than once (${n[0]})`)}function Lae(e,t,n){e.playlistParsingError=new Error(`#EXT-X-${t} must appear before the first Media Segment (${n[0]})`)}function V9(e,t){const n=t.startPTS;if(Dn(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 l1e(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,f=r;const h=t.startPTS,p=t.endPTS;if(Dn(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}`):Dn(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,f=Math.min(r,p),r=Math.max(r,p),a=t.endDTS!==void 0?Math.max(a,t.endDTS):a}const m=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=f,t.endDTS=a;const g=t.sn;if(!e||ge.endSN)return 0;let b;const S=g-e.startSN,k=e.fragments;for(k[S]=t,b=S;b>0;b--)V9(k[b],k[b-1]);for(b=S;b=0;h--){const p=o[h].initSegment;if(p){r=p;break}}e.fragmentHint&&delete e.fragmentHint.endPTS;let a;Jwt(e,t,(h,p,m,g)=>{if((!t.startCC||t.skippedSegments)&&p.cc!==h.cc){const b=h.cc-p.cc;for(let S=m;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=Zwt(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?l1e(t,a,a.startPTS,a.endPTS,a.startDTS,a.endDTS,n):u1e(e,t),s.length&&(t.totalduration=t.edge-s[0].start),t.driftStartTime=e.driftStartTime,t.driftStart=e.driftStart;const f=t.advancedDateTime;if(t.advanced&&f){const h=t.edge;t.driftStart||(t.driftStartTime=f,t.driftStart=h),t.driftEndTime=f,t.driftEnd=h}else t.driftEndTime=e.driftEndTime,t.driftEnd=e.driftEnd,t.advancedDateTime=e.advancedDateTime;t.requestScheduled===-1&&(t.requestScheduled=e.requestScheduled)}function Zwt(e,t,n){const{dateRanges:r,recentlyRemovedDateranges:o}=t,a=uo({},e);o&&o.forEach(c=>{delete a[c]});const l=Object.keys(a).length;return l?(Object.keys(r).forEach(c=>{const f=a[c],h=new n1e(r[c].attr,f);h.isValid?(a[c]=h,f||(h.tagOrder+=l)):n.warn(`Ignoring invalid Playlist Delta Update DATERANGE tag: "${bo(r[c].attr)}"`)}),a):r}function Qwt(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 Jwt(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 f=o;f<=a;f++){const h=c[s+f];let p=l[f];if(r&&!p&&h&&(p=t.fragments[f]=h),h&&p){n(h,p,f,l);const m=h.relurl,g=p.relurl;if(m&&eCt(m,g)){t.playlistParsingError=Pae(`media sequence mismatch ${p.sn}:`,e,t,h,p);return}else if(h.cc!==p.cc){t.playlistParsingError=Pae(`discontinuity sequence mismatch (${h.cc}!=${p.cc})`,e,t,h,p);return}}}}function Pae(e,t,n,r,o){return new Error(`${e} ${o.url} Playlist starting @${t.startSN} ${t.m3u8} Playlist starting @${n.startSN} ${n.m3u8}`)}function u1e(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 eCt(e,t){return e!==t&&t?Mae(e)!==Mae(t):!1}function Mae(e){return e.replace(/\?[^?]*$/,"")}function v2(e,t){for(let r=0,o=e.length;re.startCC)}function Dae(e,t){const n=e.start+t;e.startPTS=n,e.setStart(n),e.endPTS=n+e.duration}function p1e(e,t){const n=t.fragments;for(let r=0,o=n.length;r{const{config:s,fragCurrent:l,media:c,mediaBuffer:f,state:h}=this,p=c?c.currentTime:0,m=Or.bufferInfo(f||c,p,s.maxBufferHole),g=!m.len;if(this.log(`Media seeking to ${Dn(p)?p.toFixed(3):p}, state: ${h}, ${g?"out of":"in"} buffer`),this.state===tn.ENDED)this.resetLoadingState();else if(l){const b=s.maxFragLookUpTolerance,S=l.start-b,k=l.start+l.duration+b;if(g||km.end){const C=p>k;(pb&&(this.lastCurrentTime=p),!this.loadingParts){const S=Math.max(m.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===tn.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 Pwt(t.config),this.keyLoader=r,this.fragmentTracker=n,this.config=t.config,this.decrypter=new CW(t.config)}registerListeners(){const{hls:t}=this;t.on(Te.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(Te.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(Te.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Te.MANIFEST_LOADED,this.onManifestLoaded,this),t.on(Te.ERROR,this.onError,this)}unregisterListeners(){const{hls:t}=this;t.off(Te.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(Te.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(Te.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Te.MANIFEST_LOADED,this.onManifestLoaded,this),t.off(Te.ERROR,this.onError,this)}doTick(){this.onTickEnd()}onTickEnd(){}startLoad(t){}stopLoad(){if(this.state===tn.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=tn.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=Or.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===tn.FRAG_LOADING||!this.fragCurrent&&s===tn.PARSING)&&(this.fragmentTracker.removeFragment(l),this.state=tn.IDLE);return}"payload"in a&&(this.log(`Loaded ${l.type} sn: ${l.sn} of ${this.playlistLabel()} ${l.level}`),this.hls.trigger(Te.FRAG_LOADED,a)),this._handleFragmentLoadComplete(a)}).catch(a=>{this.state===tn.STOPPED||this.state===tn.ERROR||(this.warn(`Frag error: ${a?.message||a}`),this.resetFragmentLoading(t))})}clearTrackerIfNeeded(t){var n;const{fragmentTracker:r}=this;if(r.getState(t)===oa.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)===oa.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(Te.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&&i1(l.method)){const c=self.performance.now();return this.decrypter.decrypt(new Uint8Array(s),l.key.buffer,l.iv.buffer,EW(l.method)).catch(f=>{throw o.trigger(Te.ERROR,{type:or.MEDIA_ERROR,details:Ht.FRAG_DECRYPT_ERROR,fatal:!1,error:f,reason:f.message,frag:a}),f}).then(f=>{const h=self.performance.now();return o.trigger(Te.FRAG_DECRYPTED,{frag:a,payload:f,stats:{tstart:c,tdecrypt:h}}),r.payload=f,this.completeInitSegmentLoad(r)})}return this.completeInitSegmentLoad(r)}).catch(r=>{this.state===tn.STOPPED||this.state===tn.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!==tn.STOPPED&&(this.state=tn.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(Te.ERROR,{type:or.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?rCt.toString(Or.getBuffered(r)):"(detached)"})`),zs(t)){var o;if(t.type!==Yn.SUBTITLE){const s=t.elementaryStreams;if(!Object.keys(s).some(l=>!!s[l])){this.state=tn.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=tn.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 xW(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=tn.KEY_LOADING,this.fragCurrent=t,l=this.keyLoader.load(t).then(m=>{if(!this.fragContextChanged(m.frag))return this.hls.trigger(Te.KEY_LOADED,m),this.state===tn.KEY_LOADING&&(this.state=tn.IDLE),m}),this.hls.trigger(Te.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(zs(t)&&(!c||t.sn!==c.sn)){const m=this.shouldLoadParts(n.details,t.end);m!==this.loadingParts&&(this.log(`LL-Part loading ${m?"ON":"OFF"} loading sn ${c?.sn}->${t.sn}`),this.loadingParts=m)}if(r=Math.max(t.start,r||0),this.loadingParts&&zs(t)){const m=s.partList;if(m&&o){r>s.fragmentEnd&&s.fragmentHint&&(t=s.fragmentHint);const g=this.getNextPart(m,t,r);if(g>-1){const b=m[g];t=this.fragCurrent=b.fragment,this.log(`Loading ${t.type} sn: ${t.sn} part: ${b.index} (${g}/${m.length-1}) of ${this.fragInfo(t,!1,b)}) cc: ${t.cc} [${s.startSN}-${s.endSN}], target: ${parseFloat(r.toFixed(3))}`),this.nextLoadPosition=b.start+b.duration,this.state=tn.FRAG_LOADING;let S;return l?S=l.then(k=>!k||this.fragContextChanged(k.frag)?null:this.doFragPartsLoad(t,b,n,o)).catch(k=>this.handleFragLoadError(k)):S=this.doFragPartsLoad(t,b,n,o).catch(k=>this.handleFragLoadError(k)),this.hls.trigger(Te.FRAG_LOADING,{frag:t,part:b,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(m,r))return Promise.resolve(null)}}if(zs(t)&&this.loadingParts){var f;this.log(`LL-Part loading OFF after next part miss @${r.toFixed(2)} Check buffer at sn: ${t.sn} loaded parts: ${(f=s.partList)==null?void 0:f.filter(m=>m.loaded).map(m=>`[${m.start}-${m.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))}`),Dn(t.sn)&&!this.bitrateTest&&(this.nextLoadPosition=t.start+t.duration),this.state=tn.FRAG_LOADING;const h=this.config.progressive;let p;return h&&l?p=l.then(m=>!m||this.fragContextChanged(m.frag)?null:this.fragmentLoader.load(t,o)).catch(m=>this.handleFragLoadError(m)):p=Promise.all([this.fragmentLoader.load(t,h?o:void 0),l]).then(([m])=>(!h&&o&&o(m),m)).catch(m=>this.handleFragLoadError(m)),this.hls.trigger(Te.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=[],f=(l=r.details)==null?void 0:l.partList,h=p=>{this.fragmentLoader.loadPart(t,p,o).then(m=>{c[p.index]=m;const g=m.part;this.hls.trigger(Te.FRAG_LOADED,m);const b=Rae(r.details,t.sn,p.index+1)||f1e(f,t.sn,p.index+1);if(b)h(b);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===or.KEY_SYSTEM_ERROR?(n.frag.abortRequests(),this.resetStartWhenNotLoaded(),this.resetFragmentLoading(n.frag)):this.hls.trigger(Te.ERROR,n)}else this.hls.trigger(Te.ERROR,{type:or.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!==tn.PARSING){!this.fragCurrent&&this.state!==tn.STOPPED&&this.state!==tn.ERROR&&(this.state=tn.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(),f=l&&r.sn>l.endSN||this.shouldLoadParts(l,r.end);f!==this.loadingParts&&(this.log(`LL-Part loading ${f?"ON":"OFF"} after parsing segment ending @${r.end.toFixed(2)}`),this.loadingParts=f),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===Yn.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,f=s>-1?Rae(c,a,s):null,h=f?f.fragment:d1e(c,a,r);return h?(r&&r!==h&&(h.stats=r.stats),{frag:h,part:f,level:l}):null}bufferFragmentData(t,n,r,o,a){if(this.state!==tn.PARSING)return;const{data1:s,data2:l}=t;let c=s;if(l&&(c=zc(s,l)),!c.length)return;const f=this.initPTS[n.cc],h=f?-f.baseTime/f.timescale:void 0,p={type:t.type,frag:n,part:r,chunkMeta:o,offset:h,parent:n.type,data:c};if(this.hls.trigger(Te.BUFFER_APPENDING,p),t.dropped&&t.independent&&!r){if(a)return;this.flushBufferGap(n)}}flushBufferGap(t){const n=this.media;if(!n)return;if(!Or.isBuffered(n,n.currentTime)){this.flushMainBuffer(0,t.start);return}const r=n.currentTime,o=Or.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(!Dn(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=Or.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 Or.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=Yn.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?m:g)||c.start:t;this.log(`Setting startPosition to ${b} to match start frag at live edge. mainStart: ${m} liveSyncPosition: ${g} frag.start: ${(f=c)==null?void 0:f.start}`),this.startPosition=this.nextLoadPosition=b}}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===oa.OK||r===oa.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(Oae(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(Oae(this.config)&&t.type!==Yn.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=bwt(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=Zye(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:f}=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 m;if(tn-f||(g=this.media)!=null&&g.paused||!this.startFragRequested?0:f;m=Ag(a,s,t,S)}else m=s[s.length-1];if(m){const b=m.sn-r.startSN,S=this.fragmentTracker.getState(m);if((S===oa.OK||S===oa.PARTIAL&&m.gap)&&(a=m),a&&m.sn===a.sn&&(!p||h[0].fragment.sn>m.sn||!r.live)&&m.level===a.level){const C=s[b+1];m.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&&zs(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!==tn.FRAG_LOADING_WAITING_RETRY)&&(this.state=tn.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=tn.ERROR;return}const{action:c,flags:f,retryCount:h=0,retryConfig:p}=l,m=!!p,g=m&&c===Pa.RetryRequest,b=m&&!l.resolved&&f===Ku.MoveAllAlternatesMatchingHost,S=(r=this.hls.latestLevelDetails)==null?void 0:r.live;if(!g&&b&&zs(o)&&!o.endList&&S&&!Jye(n))this.resetFragmentErrors(t),this.treatAsGap(o),l.resolved=!0;else if((g||b)&&h=n||r&&!HU(0))&&(r&&this.log("Connection restored (online)"),this.resetStartWhenNotLoaded(),this.state=tn.IDLE)}reduceLengthAndFlushBuffer(t){if(this.state===tn.PARSING||this.state===tn.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===Yn.AUDIO&&(this.fragCurrent=null),this.hls.hasEnoughToStart||(this.startFragRequested=!1),this.state!==tn.STOPPED&&(this.state=tn.IDLE)}afterBufferFlushed(t,n,r){if(!t)return;const o=Or.getBuffered(t);this.fragmentTracker.detectEvictedFragments(n,o,r),this.state===tn.ENDED&&this.resetLoadingState()}resetLoadingState(){this.log("Reset loading state"),this.fragCurrent=null,this.fragPrevious=null,this.state!==tn.STOPPED&&(this.state=tn.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,f)=>{const h=t.elementaryStreams[f];if(h){const p=h.endPTS-h.startPTS;if(p<=0)return this.warn(`Could not parse fragment ${t.sn} ${f} duration reliably (${p})`),c||!1;const m=o?0:l1e(a,t,h.startPTS,h.endPTS,h.startDTS,h.endDTS,this);return this.hls.trigger(Te.LEVEL_PTS_UPDATED,{details:a,level:r,drift:m,type:f,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(Te.ERROR,{type:or.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=tn.PARSED,this.log(`Parsed ${t.type} sn: ${t.sn}${n?" part: "+n.index:""} of ${this.fragInfo(t,!1,n)})`),this.hls.trigger(Te.FRAG_PARSED,{frag:t,part:n})}playlistLabel(){return this.playlistType===Yn.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 Oae(e){return!!e.interstitialsController&&e.enableInterstitialPlayback!==!1}class m1e{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=iCt(t,n);else return new Uint8Array(0);return this.reset(),r}reset(){this.chunks.length=0,this.dataLength=0}}function iCt(e,t){const n=new Uint8Array(t);let r=0;for(let o=0;o0)return e.subarray(n,n+r)}function dCt(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(Te.ERROR,Te.ERROR,{type:or.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,f="mp4a.40."+l,h=o[s];let p=s;(l===5||l===29)&&(p-=3);const m=[l<<3|(p&14)>>1,(p&1)<<7|c<<3];return oo.log(`manifest codec:${r}, parsed codec:${f}, channels:${c}, rate:${h} (ADTS object type:${l} sampling index:${s})`),{config:m,samplerate:h,channelCount:c,codec:f,parsedCodec:f,manifestCodec:r}}function y1e(e,t){return e[t]===255&&(e[t+1]&246)===240}function b1e(e,t){return e[t+1]&1?7:9}function PW(e,t){return(e[t+3]&3)<<11|e[t+4]<<3|(e[t+5]&224)>>>5}function fCt(e,t){return t+5=e.length)return!1;const r=PW(e,t);if(r<=n)return!1;const o=t+r;return o===e.length||jI(e,o)}return!1}function _1e(e,t,n,r,o){if(!e.samplerate){const a=dCt(t,n,r,o);if(!a)return;uo(e,a)}}function S1e(e){return 1024*9e4/e}function vCt(e,t){const n=b1e(e,t);if(t+n<=e.length){const r=PW(e,t)-n;if(r>0)return{headerLength:n,frameLength:r}}}function k1e(e,t,n,r,o){const a=S1e(e.samplerate),s=r+o*a,l=vCt(t,n);let c;if(l){const{frameLength:p,headerLength:m}=l,g=m+p,b=Math.max(0,n+g-t.length);b?(c=new Uint8Array(g-m),c.set(t.subarray(n+m,t.length),0)):c=t.subarray(n+m,n+g);const S={unit:c,pts:s};return b||e.samples.push(S),{sample:S,length:g,missing:b}}const f=t.length-n;return c=new Uint8Array(f),c.set(t.subarray(n,t.length),0),{sample:{unit:c,pts:s},length:f,missing:-1}}function mCt(e,t){return LW(e,t)&&tP(e,t+6)+10<=e.length-t}function gCt(e){return e instanceof ArrayBuffer?e:e.byteOffset==0&&e.byteLength==e.buffer.byteLength?e.buffer:new Uint8Array(e).buffer}function H9(e,t=0,n=1/0){return yCt(e,t,n,Uint8Array)}function yCt(e,t,n,r){const o=bCt(e);let a=1;"BYTES_PER_ELEMENT"in r&&(a=r.BYTES_PER_ELEMENT);const s=_Ct(e)?e.byteOffset:0,l=(s+e.byteLength)/a,c=(s+t)/a,f=Math.floor(Math.max(0,Math.min(c,l))),h=Math.floor(Math.min(f+Math.max(n,0),l));return new r(o,f,h-f)}function bCt(e){return e instanceof ArrayBuffer?e:e.buffer}function _Ct(e){return e&&e.buffer instanceof ArrayBuffer&&e.byteLength!==void 0&&e.byteOffset!==void 0}function SCt(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=nc(H9(e.data,1,r)),a=e.data[2+r],s=e.data.subarray(3+r).indexOf(0);if(s===-1)return;const l=nc(H9(e.data,3+r,s));let c;return o==="-->"?c=nc(H9(e.data,4+r+s)):c=gCt(e.data.subarray(4+r+s)),t.mimeType=o,t.pictureType=a,t.description=l,t.data=c,t}function kCt(e){if(e.size<2)return;const t=nc(e.data,!0),n=new Uint8Array(e.data.subarray(t.length+1));return{key:e.type,info:t,data:n.buffer}}function wCt(e){if(e.size<2)return;if(e.type==="TXXX"){let n=1;const r=nc(e.data.subarray(n),!0);n+=r.length+1;const o=nc(e.data.subarray(n));return{key:e.type,info:r,data:o}}const t=nc(e.data.subarray(1));return{key:e.type,info:"",data:t}}function CCt(e){if(e.type==="WXXX"){if(e.size<2)return;let n=1;const r=nc(e.data.subarray(n),!0);n+=r.length+1;const o=nc(e.data.subarray(n));return{key:e.type,info:r,data:o}}const t=nc(e.data);return{key:e.type,info:"",data:t}}function xCt(e){return e.type==="PRIV"?kCt(e):e.type[0]==="W"?CCt(e):e.type==="APIC"?SCt(e):wCt(e)}function ECt(e){const t=String.fromCharCode(e[0],e[1],e[2],e[3]),n=tP(e,4),r=10;return{type:t,size:n,data:e.subarray(r,r+n)}}const iT=10,TCt=10;function w1e(e){let t=0;const n=[];for(;LW(e,t);){const r=tP(e,t+6);e[t+5]>>6&1&&(t+=iT),t+=iT;const o=t+r;for(;t+TCt0&&l.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:r,type:Xu.audioId3,duration:Number.POSITIVE_INFINITY});o{if(Dn(e))return e*90;const r=n?n.baseTime*9e4/n.timescale:0;return t*9e4+r};let oT=null;const LCt=[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],PCt=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],RCt=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],MCt=[0,1,1,4];function x1e(e,t,n,r,o){if(n+24>t.length)return;const a=E1e(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 E1e(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,f=LCt[c*14+o-1]*1e3,p=PCt[(n===3?0:n===2?1:2)*3+a],m=l===3?1:2,g=RCt[n][r],b=MCt[r],S=g*8*b,k=Math.floor(g*f/p+s)*b;if(oT===null){const E=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);oT=E?parseInt(E[1]):0}return!!oT&&oT<=87&&r===2&&f>=224e3&&l===0&&(e[t+3]=e[t+3]|128),{sampleRate:p,channelCount:m,frameLength:k,samplesPerFrame:S}}}function DW(e,t){return e[t]===255&&(e[t+1]&224)===224&&(e[t+1]&6)!==0}function T1e(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 m=0;p===2?m+=2:(p&1&&p!==1&&(m+=2),p&4&&(m+=2));const g=(t[n+6]<<8|t[n+7])>>12-m&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,A=t.subarray(n,n+h);return e.config=x,e.channelCount=S,e.samplerate=l,e.samples.push({unit:A,pts:_}),h}class NCt extends MW{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=fk(t,0);let r=n?.length||0;if(n&&t[r]===11&&t[r+1]===119&&RW(n)!==void 0&&I1e(t,r)<=16)return!1;for(let o=t.length;r{const s=Wkt(a);if(BCt.test(s.schemeIdUri)){const l=Nae(s,n);let c=s.eventDuration===4294967295?Number.POSITIVE_INFINITY:s.eventDuration/s.timeScale;c<=.001&&(c=Number.POSITIVE_INFINITY);const f=s.payload;r.samples.push({data:f,len:f.byteLength,dts:l,pts:l,type:Xu.emsg,duration:c})}else if(this.config.enableEmsgKLVMetadata&&s.schemeIdUri.startsWith("urn:misb:KLV:bin:1910.1")){const l=Nae(s,n);r.samples.push({data:s.payload,len:s.payload.byteLength,dts:l,pts:l,type:Xu.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 Nae(e,t){return Dn(e.presentationTime)?e.presentationTime/e.timeScale:t+e.presentationTimeDelta/e.timeScale}class jCt{constructor(t,n,r){this.keyData=void 0,this.decrypter=void 0,this.keyData=r,this.decrypter=new CW(n,{removePKCS7Padding:!1})}decryptBuffer(t){return this.decrypter.decrypt(t,this.keyData.key.buffer,this.keyData.iv.buffer,Sv.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 P1e{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,f,h,p,m=-1,g=0;for(a===-1&&(m=0,g=this.getNALuType(n,0),a=0,c=1);c=0){const b={data:n.subarray(m,h),type:g};l.push(b)}else{const b=this.getLastNalUnit(t.samples);b&&(s&&c<=4-s&&b.state&&(b.data=b.data.subarray(0,b.data.byteLength-s)),h>0&&(b.data=zc(b.data,n.subarray(0,h)),b.state=0))}c=0&&a>=0){const b={data:n.subarray(m,o),type:g,state:a};l.push(b)}if(l.length===0){const b=this.getLastNalUnit(t.samples);b&&(b.data=zc(b.data,n))}return t.naluState=a,l}}class m2{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&&oo.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 UCt extends P1e{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(f=>{var h,p;switch(f.type){case 1:{let S=!1;l=!0;const k=f.data;if(c&&k.length>4){const C=this.readSliceType(k);(C===2||C===4||C===7||C===9)&&(S=!0)}if(S){var m;(m=s)!=null&&m.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,_W(f.data,1,r.pts,n.samples);break}case 7:{var g,b;l=!0,c=!0;const S=f.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]||((b=t.pixelRatio)==null?void 0:b[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=[f.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(f)}),o&&s&&(this.pushAccessUnit(s,t),this.VideoSample=null)}getNALuType(t,n){return t[n]&31}readSliceType(t){const n=new m2(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(f.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 m;(m=s)!=null&&m.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,_W(f.data,2,r.pts,n.samples);break;case 32:l=!0,t.vps||(typeof t.params!="object"&&(t.params={}),t.params=uo(t.params,this.readVPS(f.data)),this.initVPS=f.data),t.vps=[f.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],f.data)&&(this.initVPS=t.vps[0],t.sps=t.pps=void 0),!t.sps){const g=this.readSPS(f.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 b in g.params)t.params[b]=g.params[b]}this.pushParameterSet(t.sps,f.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(f.data);for(const b in g)t.params[b]=g[b]}this.pushParameterSet(t.pps,f.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(f)}),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 m2(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 m2(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(),f=n.readUByte(),h=n.readUByte(),p=n.readUByte(),m=n.readUByte(),g=n.readUByte(),b=n.readUByte(),S=n.readUByte(),k=n.readUByte(),C=n.readUByte(),x=[],E=[];for(let qe=0;qe0)for(let qe=r;qe<8;qe++)n.readBits(2);for(let qe=0;qe1&&n.readEG();for(let ut=0;ut0&&vt<16?(ee=Wt[vt-1],le=Ft[vt-1]):vt===255&&(ee=n.readBits(16),le=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(),ve=n.readBoolean(),ve&&(n.skipUEG(),n.skipUEG(),n.skipUEG(),n.skipUEG()),n.readBoolean()&&(ye=n.readBits(32),be=n.readBits(32),n.readBoolean()&&n.readUEG(),n.readBoolean())){const Ft=n.readBoolean(),Jt=n.readBoolean();let an=!1;(Ft||Jt)&&(an=n.readBoolean(),an&&(n.readUByte(),n.readBits(5),n.readBoolean(),n.readBits(5)),n.readBits(4),n.readBits(4),an&&n.readBits(4),n.readBits(5),n.readBits(5),n.readBits(5));for(let mt=0;mt<=r;mt++){Q=n.readBoolean();const wt=Q||n.readBoolean();let Ge=!1;wt?n.readEG():Ge=n.readBoolean();const Ue=Ge?1:n.readUEG()+1;if(Ft)for(let st=0;st>qe&1)<<31-qe)>>>0;let Se=ke.toString(16);return s===1&&Se==="2"&&(Se="6"),{codecString:`hvc1.${Xe}${s}.${Se}.${a?"H":"L"}${C}.B0`,params:{general_tier_flag:a,general_profile_idc:s,general_profile_space:o,general_profile_compatibility_flags:[l,c,f,h],general_constraint_indicator_flags:[p,m,g,b,S,k],general_level_idc:C,bit_depth:U+8,bit_depth_luma_minus8:U,bit_depth_chroma_minus8:W,min_spatial_segmentation_idc:re,chroma_format_idc:_,frame_rate:{fixed:Q,fps:be/ye}},width:De,height:We,pixelRatio:[ee,le]}}readPPS(t){const n=new m2(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 pa=188;class zp{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=zp.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(pa*5,n-pa)+1,o=0;for(;o1&&(s===0&&l>2||c+pa>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:Nye[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=zp.createTrack("video"),this._videoTrack.duration=o,this._audioTrack=zp.createTrack("audio",o),this._id3Track=zp.createTrack("id3"),this._txtTrack=zp.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,f=this._txtTrack;let h=s.pid,p=s.pesData,m=l.pid,g=c.pid,b=l.pesData,S=c.pesData,k=null,C=this.pmtParsed,x=this._pmtId,E=t.length;if(this.remainderData&&(t=zc(this.remainderData,t),E=t.length,this.remainderData=null),E>4;let B;if(L>1){if(B=M+5+t[M+4],B===M+pa)continue}else B=M+4;switch(N){case h:D&&(p&&(a=fy(p,this.logger))&&(this.readyVideoParser(s.segmentCodec),this.videoParser!==null&&this.videoParser.parsePES(s,f,a,!1)),p={data:[],size:0}),p&&(p.data.push(t.subarray(B,M+pa)),p.size+=M+pa-B);break;case m:if(D){if(b&&(a=fy(b,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}b={data:[],size:0}}b&&(b.data.push(t.subarray(B,M+pa)),b.size+=M+pa-B);break;case g:D&&(S&&(a=fy(S,this.logger))&&this.parseID3PES(c,a),S={data:[],size:0}),S&&(S.data.push(t.subarray(B,M+pa)),S.size+=M+pa-B);break;case 0:D&&(B+=t[B]+1),x=this._pmtId=zCt(t,B);break;case x:{D&&(B+=t[B]+1);const U=HCt(t,B,this.typeSupported,r,this.observer,this.logger);h=U.videoPid,h>0&&(s.pid=h,s.segmentCodec=U.segmentVideoCodec),m=U.audioPid,m>0&&(l.pid=m,l.segmentCodec=U.segmentAudioCodec),g=U.id3Pid,g>0&&(c.pid=g),k!==null&&!C&&(this.logger.warn(`MPEG-TS PMT found at ${M} after unknown PID '${k}'. Backtracking to sync byte @${_} to parse all TS packets.`),k=null,M=_-188),C=this.pmtParsed=!0;break}case 17:case 8191:break;default:k=N;break}}else A++;A>0&&XU(this.observer,new Error(`Found ${A} TS packet/s that do not start with 0x47`),void 0,this.logger),s.pesData=p,l.pesData=b,c.pesData=S;const R={audioTrack:l,videoTrack:s,id3Track:c,textTrack:f};return o&&this.extractRemainingSamples(R),R}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 f;if(s&&(f=fy(s,this.logger))?(this.readyVideoParser(r.segmentCodec),this.videoParser!==null&&(this.videoParser.parsePES(r,a,f,!0),r.pesData=null)):r.pesData=s,l&&(f=fy(l,this.logger))){switch(n.segmentCodec){case"aac":this.parseAACPES(n,f);break;case"mp3":this.parseMPEGPES(n,f);break;case"ac3":this.parseAC3PES(n,f);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&&(f=fy(c,this.logger))?(this.parseID3PES(o,f),o.pesData=null):o.pesData=c}demuxSampleAes(t,n,r){const o=this.demux(t,r,!0,!this.config.progressive),a=this.sampleAes=new jCt(this.observer,this.config,n);return this.decrypt(o,a)}readyVideoParser(t){this.videoParser===null&&(t==="avc"?this.videoParser=new UCt:t==="hevc"&&(this.videoParser=new VCt))}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,m=o.sample.unit.byteLength;if(p===-1)a=zc(o.sample.unit,a);else{const g=m-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=uo({},n,{type:this._videoTrack?Xu.emsg:Xu.audioId3,duration:Number.POSITIVE_INFINITY});t.samples.push(r)}}function YU(e,t){return((e[t+1]&31)<<8)+e[t+2]}function zCt(e,t){return(e[t+10]&31)<<8|e[t+11]}function HCt(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,f=(e[t+10]&15)<<8|e[t+11];for(t+=12+f;t0){let m=t+5,g=p;for(;g>2;){switch(e[m]){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[m+1]+2;m+=S,g-=S}}break;case 194:case 135:return XU(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 XU(e,t,n,r){r.warn(`parsing error: ${t.message}`),e.emit(Te.ERROR,Te.ERROR,{type:or.MEDIA_ERROR,details:Ht.FRAG_PARSING_ERROR,fatal:!1,levelRetry:n,error:t,reason:t.message})}function W9(e,t){t.log(`${e} with AES-128-CBC encryption found in unencrypted stream`)}function fy(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]=zc(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 m=new Uint8Array(e.size);for(let g=0,b=c.length;gS){p-=S;continue}else r=r.subarray(p),S-=p,p=0;m.set(r,n),n+=S}return o&&(o-=a+3),{data:m,pts:s,dts:l,len:o}}return null}class WCt{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 Ip=Math.pow(2,32)-1;class Vt{static init(){Vt.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 Vt.types)Vt.types.hasOwnProperty(t)&&(Vt.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]);Vt.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]);Vt.STTS=Vt.STSC=Vt.STCO=a,Vt.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),Vt.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),Vt.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),Vt.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]);Vt.FTYP=Vt.box(Vt.types.ftyp,s,c,s,l),Vt.DINF=Vt.box(Vt.types.dinf,Vt.box(Vt.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 Vt.box(Vt.types.mdia,Vt.mdhd(t.timescale||0,t.duration||0),Vt.hdlr(t.type),Vt.minf(t))}static mfhd(t){return Vt.box(Vt.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"?Vt.box(Vt.types.minf,Vt.box(Vt.types.smhd,Vt.SMHD),Vt.DINF,Vt.stbl(t)):Vt.box(Vt.types.minf,Vt.box(Vt.types.vmhd,Vt.VMHD),Vt.DINF,Vt.stbl(t))}static moof(t,n,r){return Vt.box(Vt.types.moof,Vt.mfhd(t),Vt.traf(r,n))}static moov(t){let n=t.length;const r=[];for(;n--;)r[n]=Vt.trak(t[n]);return Vt.box.apply(null,[Vt.types.moov,Vt.mvhd(t[0].timescale||0,t[0].duration||0)].concat(r).concat(Vt.mvex(t)))}static mvex(t){let n=t.length;const r=[];for(;n--;)r[n]=Vt.trex(t[n]);return Vt.box.apply(null,[Vt.types.mvex,...r])}static mvhd(t,n){n*=t;const r=Math.floor(n/(Ip+1)),o=Math.floor(n%(Ip+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 Vt.box(Vt.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=Vt.box(Vt.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,f=t.height,h=t.pixelRatio[0],p=t.pixelRatio[1];return Vt.box(Vt.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,f>>8&255,f&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,Vt.box(Vt.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),Vt.box(Vt.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 Vt.box(Vt.types.mp4a,Vt.audioStsd(t),Vt.box(Vt.types.esds,Vt.esds(t)))}static mp3(t){return Vt.box(Vt.types[".mp3"],Vt.audioStsd(t))}static ac3(t){return Vt.box(Vt.types["ac-3"],Vt.audioStsd(t),Vt.box(Vt.types.dac3,t.config))}static stsd(t){const{segmentCodec:n}=t;if(t.type==="audio"){if(n==="aac")return Vt.box(Vt.types.stsd,Vt.STSD,Vt.mp4a(t));if(n==="ac3"&&t.config)return Vt.box(Vt.types.stsd,Vt.STSD,Vt.ac3(t));if(n==="mp3"&&t.codec==="mp3")return Vt.box(Vt.types.stsd,Vt.STSD,Vt.mp3(t))}else if(t.pps&&t.sps){if(n==="avc")return Vt.box(Vt.types.stsd,Vt.STSD,Vt.avc1(t));if(n==="hevc"&&t.vps)return Vt.box(Vt.types.stsd,Vt.STSD,Vt.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/(Ip+1)),l=Math.floor(r%(Ip+1));return Vt.box(Vt.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=Vt.sdtp(t),o=t.id,a=Math.floor(n/(Ip+1)),s=Math.floor(n%(Ip+1));return Vt.box(Vt.types.traf,Vt.box(Vt.types.tfhd,new Uint8Array([0,0,0,0,o>>24,o>>16&255,o>>8&255,o&255])),Vt.box(Vt.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])),Vt.trun(t,r.length+16+20+8+16+8+8),r)}static trak(t){return t.duration=t.duration||4294967295,Vt.box(Vt.types.trak,Vt.tkhd(t),Vt.mdia(t))}static trex(t){const n=t.id;return Vt.box(Vt.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,f,h,p,m;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,f>>>16&255,f>>>8&255,f&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,m>>>24&255,m>>>16&255,m>>>8&255,m&255],12+16*l);return Vt.box(Vt.types.trun,s)}static initSegment(t){Vt.types||Vt.init();const n=Vt.moov(t);return zc(Vt.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 b=0;b>8,r[b][S].length&255]),s),s+=2,l.set(r[b][S],s),s+=r[b][S].length}const f=Vt.box(Vt.types.hvcC,l),h=t.width,p=t.height,m=t.pixelRatio[0],g=t.pixelRatio[1];return Vt.box(Vt.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]),f,Vt.box(Vt.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),Vt.box(Vt.types.pasp,new Uint8Array([m>>24,m>>16&255,m>>8&255,m&255,g>>24,g>>16&255,g>>8&255,g&255])))}}Vt.types=void 0;Vt.HDLR_TYPES=void 0;Vt.STTS=void 0;Vt.STSC=void 0;Vt.STCO=void 0;Vt.STSZ=void 0;Vt.VMHD=void 0;Vt.SMHD=void 0;Vt.STSD=void 0;Vt.FTYP=void 0;Vt.DINF=void 0;const R1e=9e4;function OW(e,t,n=1,r=!1){const o=e*t*n;return r?Math.round(o):o}function GCt(e,t,n=1,r=!1){return OW(e,t,1/n,r)}function rS(e,t=!1){return OW(e,1e3,1/R1e,t)}function KCt(e,t=1){return OW(e,R1e,1/t)}function Bae(e){const{baseTime:t,timescale:n,trackId:r}=e;return`${t/n} (${t}/${n}) trackId: ${r}`}const qCt=10*1e3,YCt=1024,XCt=1152,ZCt=1536;let hy=null,G9=null;function Fae(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 rA extends Gc{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,hy===null){const s=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);hy=s?parseInt(s[1]):0}if(G9===null){const a=navigator.userAgent.match(/Safari\/(\d+)/i);G9=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&&Bae(n)} > ${t&&Bae(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=qu(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 f,h,p,m,g,b,S=a,k=a;const C=t.pid>-1,x=n.pid>-1,E=n.samples.length,_=t.samples.length>0,A=l&&E>0||E>1;if((!C||_)&&(!x||A)||this.ISGenerated||l){if(this.ISGenerated){var M,D,N,L;const V=this.videoTrackConfig;(V&&(n.width!==V.width||n.height!==V.height||((M=n.pixelRatio)==null?void 0:M[0])!==((D=V.pixelRatio)==null?void 0:D[0])||((N=n.pixelRatio)==null?void 0:N[1])!==((L=V.pixelRatio)==null?void 0:L[1]))||!V&&A||this.nextAudioTs===null&&_)&&this.resetInitSegment()}this.ISGenerated||(p=this.generateIS(t,n,a,s));const B=this.isVideoContiguous;let U=-1,W;if(A&&(U=QCt(n.samples),!B&&this.config.forceKeyFrameOnDiscontinuity))if(b=!0,U>0){this.warn(`Dropped ${U} out of ${E} video samples due to a missing keyframe`);const V=this.getVideoStartPts(n.samples);n.samples=n.samples.slice(U),n.dropped+=U,k+=(n.samples[0].pts-V)/n.inputTimeScale,W=k}else U===-1&&(this.warn(`No keyframe found out of ${E} video samples`),b=!1);if(this.ISGenerated){if(_&&A){const V=this.getVideoStartPts(n.samples),Y=(qu(t.samples[0].pts,V)-V)/n.inputTimeScale;S+=Math.max(0,Y),k+=Math.max(0,-Y)}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||A||c===Yn.AUDIO?k:void 0),A){const V=h?h.endPTS-h.startPTS:0;n.inputTimeScale||(this.warn("regenerate InitSegment as video detected"),p=this.generateIS(t,n,a,s)),f=this.remuxVideo(n,k,B,V)}}else A&&(f=this.remuxVideo(n,k,B,0));f&&(f.firstKeyFrame=U,f.independent=U!==-1,f.firstKeyFramePTS=W)}}return this.ISGenerated&&this._initPTS&&this._initDTS&&(r.samples.length&&(g=M1e(r,a,this._initPTS,this._initDTS)),o.samples.length&&(m=D1e(o,a,this._initPTS))),{audio:h,video:f,initSegment:p,independent:b,text:m,id3:g}}computeInitPts(t,n,r,o){const a=Math.round(r*n);let s=qu(t,a);if(s0?re-1:re].dts&&(x=!0)}x&&s.sort(function(re,ee){const le=re.dts-ee.dts,Q=re.pts-ee.pts;return le||Q}),b=s[0].dts,S=s[s.length-1].dts;const _=S-b,A=_?Math.round(_/(c-1)):g||t.inputTimeScale/30;if(r){const re=b-E,ee=re>A,le=re<-1;if((ee||le)&&(ee?this.warn(`${(t.segmentCodec||"").toUpperCase()}: ${rS(re,!0)} ms (${re}dts) hole between fragments detected at ${n.toFixed(3)}`):this.warn(`${(t.segmentCodec||"").toUpperCase()}: ${rS(-re,!0)} ms (${re}dts) overlapping between fragments detected at ${n.toFixed(3)}`),!le||E>=s[0].pts||hy)){b=E;const Q=s[0].pts-re;if(ee)s[0].dts=b,s[0].pts=Q;else{let ye=!0;for(let be=0;beQ&&ye);be++){const ve=s[be].pts;if(s[be].dts-=re,s[be].pts-=re,be0?ee.dts-s[re-1].dts:A;if(ye=re>0?ee.pts-s[re-1].pts:A,ve.stretchShortVideoTrack&&this.nextAudioTs!==null){const De=Math.floor(ve.maxBufferHole*a),We=(o?k+o*a:this.nextAudioTs+h)-ee.pts;We>De?(g=We-Ce,g<0?g=Ce:U=!0,this.log(`It is approximately ${We/90} ms to the next segment; using duration ${g/90} ms for the last video frame.`)):g=Ce}else g=Ce}const be=Math.round(ee.pts-ee.dts);W=Math.min(W,g),z=Math.max(z,g),V=Math.min(V,ye),Y=Math.max(Y,ye),l.push(Fae(ee.key,g,Q,be))}if(l.length){if(hy){if(hy<70){const re=l[0].flags;re.dependsOn=2,re.isNonSync=0}}else if(G9&&Y-V0&&(o&&Math.abs(E-(C+x))<9e3||Math.abs(qu(S[0].pts,E)-(C+x))<20*h),S.forEach(function(Y){Y.pts=qu(Y.pts,E)}),!r||C<0){const Y=S.length;if(S=S.filter(oe=>oe.pts>=0),Y!==S.length&&this.warn(`Removed ${S.length-Y} of ${Y} samples (initPTS ${x} / ${s})`),!S.length)return;a===0?C=0:o&&!b?C=Math.max(0,E-x):C=S[0].pts-x}if(t.segmentCodec==="aac"){const Y=this.config.maxAudioFramesDrift;for(let oe=0,ne=C+x;oe=Y*h&&ee0){M+=k;try{R=new Uint8Array(M)}catch(ee){this.observer.emit(Te.ERROR,Te.ERROR,{type:or.MUX_ERROR,details:Ht.REMUX_ALLOC_ERROR,fatal:!1,error:ee,bytes:M,reason:`fail allocating audio mdat ${M}`});return}m||(new DataView(R.buffer).setUint32(0,M),R.set(Vt.types.mdat,4))}else return;R.set(X,k);const re=X.byteLength;k+=re,g.push(Fae(!0,f,re,0)),A=K}const N=g.length;if(!N)return;const L=g[g.length-1];C=A-x,this.nextAudioTs=C+c*L.duration;const B=m?new Uint8Array(0):Vt.moof(t.sequenceNumber++,_/c,uo({},t,{samples:g}));t.samples=[];const U=(_-x)/s,W=C/s,z={data1:B,data2:R,startPTS:U,endPTS:W,startDTS:U,endDTS:W,type:"audio",hasAudio:!0,hasVideo:!1,nb:N};return this.isAudioContiguous=!0,z}}function qu(e,t){let n;if(t===null)return e;for(t4294967296;)e+=n;return e}function QCt(e){for(let t=0;ts.pts-l.pts);const a=e.samples;return e.samples=[],{samples:a}}class JCt extends Gc{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=jye(t);if(n)jkt(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=jae(a,yo.AUDIO,this)),s&&(o=jae(s,yo.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:f,lastEndTime:h}=this;const p={audio:void 0,video:void 0,text:o,id3:r,initSegment:void 0};Dn(h)||(h=this.lastEndTime=a||0);const m=n.samples;if(!m.length)return p;const g={initPTS:void 0,timescale:void 0,trackId:void 0};let b=this.initData;if((l=b)!=null&&l.length||(this.generateInitSegment(m),b=this.initData),!((c=b)!=null&&c.length))return this.warn("Failed to generate initSegment."),p;this.emitInitSegment&&(g.tracks=this.initTracks,this.emitInitSegment=!1);const S=Vkt(m,b,this),k=b.audio?S[b.audio.id]:null,C=b.video?S[b.video.id]:null,x=sT(C,1/0),E=sT(k,1/0),_=sT(C,0,!0),A=sT(k,0,!0);let R=a,M=0;const D=k&&(!C||!f&&E0?this.lastEndTime=B:(this.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());const U=!!b.audio,W=!!b.video;let V="";U&&(V+="audio"),W&&(V+="video");const z=(b.audio?b.audio.encrypted:!1)||(b.video?b.video.encrypted:!1),Y={data1:m,startPTS:L,startDTS:L,endPTS:B,endDTS:B,type:V,hasAudio:U,hasVideo:W,nb:1,dropped:0,encrypted:z};p.audio=U&&!W?Y:void 0,p.video=W?Y:void 0;const oe=C?.sampleCount;if(oe){const ne=C.keyFrameIndex,X=ne!==-1;Y.nb=oe,Y.dropped=ne===0||this.isVideoContiguous?0:X?ne:oe,Y.independent=X,Y.firstKeyFrame=ne,X&&C.keyFrameStart&&(Y.firstKeyFramePTS=(C.keyFrameStart-f.baseTime)/f.timescale),this.isVideoContiguous||(p.independent=X),this.isVideoContiguous||(this.isVideoContiguous=X),Y.dropped&&this.warn(`fmp4 does not start with IDR: firstIDR ${ne}/${oe} dropped: ${Y.dropped} start: ${Y.firstKeyFramePTS||"NA"}`)}return p.initSegment=g,p.id3=M1e(r,a,f,f),o.samples.length&&(p.text=D1e(o,a,f)),p}}function sT(e,t,n=!1){return e?.start!==void 0?(e.start+(n?e.duration:0))/e.timescale:t}function ext(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 jae(e,t,n){const r=e.codec;return r&&r.length>4?r:t===yo.AUDIO?r==="ec-3"||r==="ac-3"||r==="alac"?r:r==="fLaC"||r==="Opus"?RI(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 uh;try{uh=self.performance.now.bind(self.performance)}catch{uh=Date.now}const iA=[{demux:FCt,remux:JCt},{demux:zp,remux:rA},{demux:OCt,remux:rA},{demux:NCt,remux:rA}];iA.splice(2,0,{demux:$Ct,remux:rA});class Uae{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=uh();let s=new Uint8Array(t);const{currentTransmuxState:l,transmuxConfig:c}=this;o&&(this.currentTransmuxState=o);const{contiguous:f,discontinuity:h,trackSwitch:p,accurateTimeOffset:m,timeOffset:g,initSegmentChange:b}=o||l,{audioCodec:S,videoCodec:k,defaultInitPts:C,duration:x,initSegmentData:E}=c,_=txt(s,n);if(_&&i1(_.method)){const D=this.getDecrypter(),N=EW(_.method);if(D.isSync()){let L=D.softwareDecrypt(s,_.key.buffer,_.iv.buffer,N);if(r.part>-1){const U=D.flush();L=U&&U.buffer}if(!L)return a.executeEnd=uh(),K9(r);s=new Uint8Array(L)}else return this.asyncResult=!0,this.decryptionPromise=D.webCryptoDecrypt(s,_.key.buffer,_.iv.buffer,N).then(L=>{const B=this.push(L,null,r);return this.decryptionPromise=null,B}),this.decryptionPromise}const A=this.needsProbing(h,p);if(A){const D=this.configureTransmuxer(s);if(D)return this.logger.warn(`[transmuxer] ${D.message}`),this.observer.emit(Te.ERROR,Te.ERROR,{type:or.MEDIA_ERROR,details:Ht.FRAG_PARSING_ERROR,fatal:!1,error:D,reason:D.message}),a.executeEnd=uh(),K9(r)}(h||p||b||A)&&this.resetInitSegment(E,S,k,x,n),(h||b||A)&&this.resetInitialTimestamp(C),f||this.resetContiguity();const R=this.transmux(s,_,g,m,r);this.asyncResult=hk(R);const M=this.currentTransmuxState;return M.contiguous=!0,M.discontinuity=!1,M.trackSwitch=!1,a.executeEnd=uh(),R}flush(t){const n=t.transmuxing;n.executeStart=uh();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:f}=this;if(!c||!f){n.executeEnd=uh();const p=[K9(t)];return this.asyncResult?Promise.resolve(p):p}const h=c.flush(l);return hk(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:f}=this.currentTransmuxState;this.logger.log(`[transmuxer.ts]: Flushed ${this.id} sn: ${r.sn}${r.part>-1?" part: "+r.part:""} of ${this.id===Yn.MAIN?"level":"track"} ${r.level}`);const h=this.remuxer.remux(o,a,s,l,f,c,!0,this.id);t.push({remuxResult:h,chunkMeta:r}),r.transmuxing.executeEnd=uh()}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,m=iA.length;p0&&t?.key!=null&&t.iv!==null&&t.method!=null&&(n=t),n}const K9=e=>({remuxResult:{},chunkMeta:e});function hk(e){return"then"in e&&e.then instanceof Function}class nxt{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 rxt{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 Vae=0;class O1e{constructor(t,n,r,o){this.error=null,this.hls=void 0,this.id=void 0,this.instanceNo=Vae++,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 f=c.data,h=this.hls;if(!(!h||!(f!=null&&f.event)||f.instanceNo!==this.instanceNo))switch(f.event){case"init":{var p;const m=(p=this.workerContext)==null?void 0:p.objectURL;m&&self.URL.revokeObjectURL(m);break}case"transmuxComplete":{this.handleTransmuxComplete(f.data);break}case"flush":{this.onFlush(f.data);break}case"workerLog":{h.logger[f.data.logType]&&h.logger[f.data.logType](f.data.message);break}default:{f.data=f.data||{},f.data.frag=this.frag,f.data.part=this.part,f.data.id=this.id,h.trigger(f.event,f.data);break}}},this.onWorkerError=c=>{if(!this.hls)return;const f=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(Te.ERROR,{type:or.OTHER_ERROR,details:Ht.INTERNAL_EXCEPTION,fatal:!1,event:"demuxerWorker",error:f})};const a=t.config;this.hls=t,this.id=n,this.useWorker=!!a.enableWorker,this.onTransmuxComplete=r,this.onFlush=o;const s=(c,f)=>{f=f||{},f.frag=this.frag||void 0,c===Te.ERROR&&(f=f,f.parent=this.id,f.part=this.part,this.error=f.error),this.hls.trigger(c,f)};this.observer=new IW,this.observer.on(Te.FRAG_DECRYPTED,s),this.observer.on(Te.ERROR,s);const l=rae(a.preferManagedMediaSource);if(this.useWorker&&typeof Worker<"u"){const c=this.hls.logger;if(a.workerPath||aCt()){try{a.workerPath?(c.log(`loading Web Worker ${a.workerPath} for "${n}"`),this.workerContext=uCt(a.workerPath)):(c.log(`injecting Web Worker for "${n}"`),this.workerContext=lCt());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:bo(a)})}catch(h){c.warn(`Error setting up "${n}" Web Worker, fallback to inline`,h),this.terminateWorker(),this.error=null,this.transmuxer=new Uae(this.observer,l,a,"",n,t.logger)}return}}this.transmuxer=new Uae(this.observer,l,a,"",n,t.logger)}reset(){if(this.frag=null,this.part=null,this.workerContext){const t=this.instanceNo;this.instanceNo=Vae++;const n=this.hls.config,r=rae(n.preferManagedMediaSource);this.workerContext.worker.postMessage({instanceNo:this.instanceNo,cmd:"reset",resetNo:t,typeSupported:r,id:this.id,config:bo(n)})}}terminateWorker(){if(this.workerContext){const{worker:t}=this.workerContext;this.workerContext=null,t.removeEventListener("message",this.onWorkerMessage),t.removeEventListener("error",this.onWorkerError),cCt(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,f,h){var p,m;f.transmuxing.start=self.performance.now();const{instanceNo:g,transmuxer:b}=this,S=s?s.start:a.start,k=a.decryptdata,C=this.frag,x=!(C&&a.cc===C.cc),E=!(C&&f.level===C.level),_=C?f.sn-C.sn:-1,A=this.part?f.part-this.part.index:-1,R=_===0&&f.id>1&&f.id===C?.stats.chunkCount,M=!E&&(_===1||_===0&&(A===1||R&&A<=0)),D=self.performance.now();(E||_||a.stats.parsing.start===0)&&(a.stats.parsing.start=D),s&&(A||!M)&&(s.stats.parsing.start=D);const N=!(C&&((p=a.initSegment)==null?void 0:p.url)===((m=C.initSegment)==null?void 0:m.url)),L=new rxt(x,M,c,E,S,N);if(!M||x||N){this.hls.logger.log(`[transmuxer-interface]: Starting new transmux session for ${a.type} sn: ${f.sn}${f.part>-1?" part: "+f.part:""} ${this.id===Yn.MAIN?"level":"track"}: ${f.level} id: ${f.id} discontinuity: ${x} trackSwitch: ${E} contiguous: ${M} accurateTimeOffset: ${c} timeOffset: ${S} initSegmentChange: ${N}`);const B=new nxt(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:f,state:L},t instanceof ArrayBuffer?[t]:[]);else if(b){const B=b.push(t,k,f,L);hk(B)?B.then(U=>{this.handleTransmuxComplete(U)}).catch(U=>{this.transmuxerError(U,f,"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);hk(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(Te.ERROR,{type:or.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 zae=100;class ixt extends AW{constructor(t,n,r){super(t,n,r,"audio-stream-controller",Yn.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(Te.LEVEL_LOADED,this.onLevelLoaded,this),t.on(Te.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),t.on(Te.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.on(Te.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),t.on(Te.BUFFER_RESET,this.onBufferReset,this),t.on(Te.BUFFER_CREATED,this.onBufferCreated,this),t.on(Te.BUFFER_FLUSHING,this.onBufferFlushing,this),t.on(Te.BUFFER_FLUSHED,this.onBufferFlushed,this),t.on(Te.INIT_PTS_FOUND,this.onInitPtsFound,this),t.on(Te.FRAG_LOADING,this.onFragLoading,this),t.on(Te.FRAG_BUFFERED,this.onFragBuffered,this)}unregisterListeners(){const{hls:t}=this;t&&(super.unregisterListeners(),t.off(Te.LEVEL_LOADED,this.onLevelLoaded,this),t.off(Te.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),t.off(Te.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.off(Te.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),t.off(Te.BUFFER_RESET,this.onBufferReset,this),t.off(Te.BUFFER_CREATED,this.onBufferCreated,this),t.off(Te.BUFFER_FLUSHING,this.onBufferFlushing,this),t.off(Te.BUFFER_FLUSHED,this.onBufferFlushed,this),t.off(Te.INIT_PTS_FOUND,this.onInitPtsFound,this),t.off(Te.FRAG_LOADING,this.onFragLoading,this),t.off(Te.FRAG_BUFFERED,this.onFragBuffered,this))}onInitPtsFound(t,{frag:n,id:r,initPTS:o,timescale:a,trackId:s}){if(r===Yn.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===tn.WAITING_INIT_PTS){const f=this.waitingData;(!f&&!this.loadingParts||f&&f.frag.cc!==l)&&this.syncWithAnchor(n,f?.frag)}else!this.hls.hasEnoughToStart&&c&&c.cc!==l?(c.abortRequests(),this.syncWithAnchor(n,c)):this.state===tn.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=Zye(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===tn.IDLE&&this.doTickIdle())}startLoad(t,n){if(!this.levels){this.startPosition=t,this.state=tn.STOPPED;return}const r=this.lastCurrentTime;this.stopLoad(),this.setInterval(zae),r>0&&t===-1?(this.log(`Override startPosition with lastCurrentTime @${r.toFixed(3)}`),t=r,this.state=tn.IDLE):this.state=tn.WAITING_TRACK,this.nextLoadPosition=this.lastCurrentTime=t+this.timelineOffset,this.startPosition=n?-1:t,this.tick()}doTick(){switch(this.state){case tn.IDLE:this.doTickIdle();break;case tn.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=tn.WAITING_INIT_PTS}break}case tn.FRAG_LOADING_WAITING_RETRY:{this.checkRetryDate();break}case tn.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=tn.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=tn.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=tn.WAITING_TRACK,this.startFragRequested=!1;return}const f=this.mediaBuffer?this.mediaBuffer:this.media;this.bufferFlushed&&f&&(this.bufferFlushed=!1,this.afterBufferFlushed(f,yo.AUDIO,Yn.AUDIO));const h=this.getFwdBufferInfo(f,Yn.AUDIO);if(h===null)return;if(!this.switchingTrack&&this._streamEnded(h,c)){n.trigger(Te.BUFFER_EOS,{type:"audio"}),this.state=tn.ENDED;return}const p=h.len,m=n.maxBufferLength,g=c.fragments,b=g[0].start,S=this.getLoadPosition(),k=this.flushing?S:h.end;if(this.switchingTrack&&o){const E=S;c.PTSKnown&&Eb||h.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),o.currentTime=b+.05)}if(p>=m&&!this.switchingTrack&&kx.end){const _=this.fragmentTracker.getFragAtPos(k,Yn.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 ck(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!==tn.STOPPED&&(this.setInterval(zae),this.state=tn.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(Te.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 f=this.mainDetails;if(!f||a.endCC>f.endCC||f.expired){this.cachedTrackLoadedData=n,this.state!==tn.STOPPED&&(this.state=tn.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 m;p=this.alignPlaylists(a,h.details,(m=this.levelLastLoaded)==null?void 0:m.details)}a.alignedSliding||(v1e(a,f),a.alignedSliding||FI(a,f),p=a.fragmentStart)}h.details=a,this.levelLastLoaded=h,this.startFragRequested||this.setStartPosition(f,p),this.hls.trigger(Te.AUDIO_TRACK_UPDATED,{details:a,id:s,groupId:n.groupId}),this.state===tn.WAITING_TRACK&&!this.waitForCdnTuneIn(a)&&(this.state=tn.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 f=c[l];if(!f){this.warn("Audio track is undefined on fragment load progress");return}const h=f.details;if(!h){this.warn("Audio track details undefined on fragment load progress"),this.removeUnbufferedFrags(r.start);return}const p=s.defaultAudioCodec||f.audioCodec||"mp4a.40.2";let m=this.transmuxer;m||(m=this.transmuxer=new O1e(this.hls,Yn.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));const g=this.initPTS[r.cc],b=(n=r.initSegment)==null?void 0:n.data;if(g!==void 0){const k=o?o.index:-1,C=k!==-1,x=new xW(r.level,r.sn,r.stats.chunkCount,a.byteLength,k,C);m.push(a,b,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 m1e,complete:!1};S.push(new Uint8Array(a)),this.state!==tn.STOPPED&&(this.state=tn.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===Yn.MAIN&&zs(n.frag)&&(this.mainFragLoading=n,this.state===tn.IDLE&&this.tick())}onFragBuffered(t,n){const{frag:r,part:o}=n;if(r.type!==Yn.AUDIO){!this.audioOnly&&r.type===Yn.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(zs(r)){this.fragPrevious=r;const a=this.switchingTrack;a&&(this.bufferedTrack=a,this.switchingTrack=null,this.hls.trigger(Te.AUDIO_TRACK_SWITCHED,ro({},a)))}this.fragBufferedComplete(r,o),this.media&&this.tick()}onError(t,n){var r;if(n.fatal){this.state=tn.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(Yn.AUDIO,n);break;case Ht.AUDIO_TRACK_LOAD_ERROR:case Ht.AUDIO_TRACK_LOAD_TIMEOUT:case Ht.LEVEL_PARSING_ERROR:!n.levelRetry&&this.state===tn.WAITING_TRACK&&((r=n.context)==null?void 0:r.type)===vi.AUDIO_TRACK&&(this.state=tn.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!==yo.VIDEO&&(this.flushing=!0)}onBufferFlushed(t,{type:n}){if(n!==yo.VIDEO){this.flushing=!1,this.bufferFlushed=!0,this.state===tn.ENDED&&(this.state=tn.IDLE);const r=this.mediaBuffer||this.media;r&&(this.afterBufferFlushed(r,n,Yn.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:f,level:h}=l,{details:p}=h,{audio:m,text:g,id3:b,initSegment:S}=a;if(this.fragContextChanged(c)||!p){this.fragmentTracker.removeFragment(c);return}if(this.state=tn.PARSING,this.switchingTrack&&m&&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(Te.FRAG_PARSING_INIT_SEGMENT,{frag:k,id:r,tracks:S.tracks})}if(m){const{startPTS:k,endPTS:C,startDTS:x,endDTS:E}=m;f&&(f.elementaryStreams[yo.AUDIO]={startPTS:k,endPTS:C,startDTS:x,endDTS:E}),c.setElementaryStreamInfo(yo.AUDIO,k,C,x,E),this.bufferFragmentData(m,c,f,s)}if(b!=null&&(n=b.samples)!=null&&n.length){const k=uo({id:r,frag:c,details:p},b);o.trigger(Te.FRAG_PARSING_METADATA,k)}if(g){const k=uo({id:r,frag:c,details:p},g);o.trigger(Te.FRAG_PARSING_USERDATA,k)}}_bufferInitSegment(t,n,r,o){if(this.state!==tn.PARSING||(n.video&&delete n.video,n.audiovideo&&delete n.audiovideo,!n.audio))return;const a=n.audio;a.id=Yn.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(Te.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(Te.BUFFER_APPENDING,c)}this.tickImmediate()}loadFragment(t,n,r){const o=this.fragmentTracker.getState(t);if(this.switchingTrack||o===oa.NOT_LOADED||o===oa.PARTIAL){var a;if(!zs(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=tn.WAITING_INIT_PTS;const s=this.mainDetails;s&&s.fragmentStart!==n.details.fragmentStart&&FI(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;cg({name:n,lang:r,assocLang:o,characteristics:a,audioCodec:s,channels:l},t,Mm)||(DI(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(Te.AUDIO_TRACK_SWITCHED,ro({},t))}}class $W extends Gc{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 f=r&&iae(r);return new oae(l,c>=0?c:void 0,f)}}}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){Xwt(r,o,this);const x=o.playlistParsingError;if(x){this.warn(x);const E=this.hls;if(!E.config.ignorePlaylistParsingErrors){var f;const{networkDetails:_}=n;E.trigger(Te.ERROR,{type:or.NETWORK_ERROR,details:Ht.LEVEL_PARSING_ERROR,fatal:!1,url:o.url,error:x,reason:x.message,level:n.level||void 0,parent:(f=o.fragments[0])==null?void 0:f.type,networkDetails:_,stats:a});return}o.playlistParsingError=null}}o.requestScheduled===-1&&(o.requestScheduled=a.loading.start);const p=this.hls.mainForwardBufferInfo,m=p?p.end-p.len:0,g=(o.edge-m)*1e3,b=c1e(o,g);if(o.requestScheduled+b0){if(N>o.targetduration*3)this.log(`Playlist last advanced ${D.toFixed(2)}s ago. Omitting segment and part directives.`),k=void 0,C=void 0;else if(r!=null&&r.tuneInGoal&&N-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 U=Math.round(L%o.targetduration/o.partTarget);C+=U}this.log(`CDN Tune-in age: ${o.ageHeader}s last advanced ${D.toFixed(2)}s goal: ${L} skip sn ${B} to part ${C}`)}o.tuneInGoal=L}if(S=this.getDeliveryDirectives(o,n.deliveryDirectives,k,C),x||!M){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(b-l*2,b/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=iae(t);return n!=null&&n.skip&&t.deltaUpdateFailed&&(r=n.msn,o=n.part,a=tA.No),new oae(r,o,a)}checkRetry(t){const n=t.details,r=OI(t),o=t.errorAction,{action:a,retryCount:s=0,retryConfig:l}=o||{},c=!!o&&!!l&&(a===Pa.RetryRequest||!o.resolved&&a===Pa.SendAlternateToPenaltyBox);if(c){var f;if(s>=l.maxNumRetry)return!1;if(r&&(f=t.context)!=null&&f.deliveryDirectives)this.warn(`Retrying playlist loading ${s+1}/${l.maxNumRetry} after "${n}" without delivery-directives`),this.loadPlaylist();else{const h=wW(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 $1e(e,t){if(e.length!==t.length)return!1;for(let n=0;ne[o]!==t[o])}function ZU(e,t){return t.label.toLowerCase()===e.name.toLowerCase()&&(!t.language||t.language.toLowerCase()===(e.lang||"").toLowerCase())}class oxt extends $W{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(Te.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Te.MANIFEST_PARSED,this.onManifestParsed,this),t.on(Te.LEVEL_LOADING,this.onLevelLoading,this),t.on(Te.LEVEL_SWITCHING,this.onLevelSwitching,this),t.on(Te.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),t.on(Te.ERROR,this.onError,this)}unregisterListeners(){const{hls:t}=this;t.off(Te.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Te.MANIFEST_PARSED,this.onManifestParsed,this),t.off(Te.LEVEL_LOADING,this.onLevelLoading,this),t.off(Te.LEVEL_SWITCHING,this.onLevelSwitching,this),t.off(Te.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),t.off(Te.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(m=>!r||r.indexOf(m.groupId)!==-1);if(l.length)this.selectDefaultTrack&&!l.some(m=>m.default)&&(this.selectDefaultTrack=!1),l.forEach((m,g)=>{m.id=g});else if(!a&&!this.tracksInGroup.length)return;this.tracksInGroup=l;const c=this.hls.config.audioPreference;if(!a&&c){const m=af(c,l,Mm);if(m>-1)a=l[m];else{const g=af(c,this.tracks);a=this.tracks[g]}}let f=this.findTrackId(a);f===-1&&a&&(f=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(Te.AUDIO_TRACKS_UPDATED,h);const p=this.trackId;if(f!==-1&&p===-1)this.setAudioTrack(f);else if(l.length&&p===-1){var s;const m=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(m.message),this.hls.trigger(Te.ERROR,{type:or.MEDIA_ERROR,details:Ht.AUDIO_TRACK_LOAD_ERROR,fatal:!0,error:m})}}}onError(t,n){n.fatal||!n.context||n.context.type===vi.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&&cg(t,o,Mm))return o;const a=af(t,this.tracksInGroup,Mm);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=gwt(t,n.levels,r,s,Mm);if(l===-1)return null;n.nextLoadLevel=l}if(t.channels||t.audioCodec){const s=af(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(Te.AUDIO_TRACK_SWITCHING,ro({},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 Hae=/(avc[1234]|hvc1|hev1|dvh[1e]|vp09|av01)(?:\.[^.,]+)+/,N1e="HlsJsTrackRemovedError";class axt extends Error{constructor(t){super(t),this.name=N1e}}class lxt extends Gc{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(Te.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=Lkt(_v(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(Te.MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(Te.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(Te.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Te.MANIFEST_PARSED,this.onManifestParsed,this),t.on(Te.BUFFER_RESET,this.onBufferReset,this),t.on(Te.BUFFER_APPENDING,this.onBufferAppending,this),t.on(Te.BUFFER_CODECS,this.onBufferCodecs,this),t.on(Te.BUFFER_EOS,this.onBufferEos,this),t.on(Te.BUFFER_FLUSHING,this.onBufferFlushing,this),t.on(Te.LEVEL_UPDATED,this.onLevelUpdated,this),t.on(Te.FRAG_PARSED,this.onFragParsed,this),t.on(Te.FRAG_CHANGED,this.onFragChanged,this),t.on(Te.ERROR,this.onError,this)}unregisterListeners(){const{hls:t}=this;t.off(Te.MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(Te.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(Te.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Te.MANIFEST_PARSED,this.onManifestParsed,this),t.off(Te.BUFFER_RESET,this.onBufferReset,this),t.off(Te.BUFFER_APPENDING,this.onBufferAppending,this),t.off(Te.BUFFER_CODECS,this.onBufferCodecs,this),t.off(Te.BUFFER_EOS,this.onBufferEos,this),t.off(Te.BUFFER_FLUSHING,this.onBufferFlushing,this),t.off(Te.LEVEL_UPDATED,this.onLevelUpdated,this),t.off(Te.FRAG_PARSED,this.onFragParsed,this),t.off(Te.FRAG_CHANGED,this.onFragChanged,this),t.off(Te.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?uo(r,o.tracks):this.sourceBuffers.forEach(a=>{const[s]=a;s&&(r[s]=uo({},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=_v(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,Wae(r),uxt(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: ${bo(r,(c,f)=>c==="initSegment"?void 0:f)}; transfer tracks: ${bo(o,(c,f)=>c==="initSegment"?void 0:f)}}`),!Mye(o,r)){n.mediaSource=null,n.tracks=void 0;const c=t.currentTime,f=this.details,h=Math.max(c,f?.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(Te.MEDIA_DETACHING,{}),this.onMediaAttaching(Te.MEDIA_ATTACHING,n),t.currentTime=h;return}this.transferData=void 0,a.forEach(c=>{const f=c,h=o[f];if(h){const p=h.buffer;if(p){const m=this.fragmentTracker,g=h.id;if(m.hasFragments(g)||m.hasParts(g)){const k=Or.getBuffered(p);m.detectEvictedFragments(f,k,g,null,!0)}const b=q9(f),S=[f,p];this.sourceBuffers[b]=S,p.updating&&this.operationQueue&&this.operationQueue.prependBlocker(f),this.trackSourceBuffer(f,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 f=c.length;f--;)l&&c[f].abort(),a.removeSourceBuffer(c[f]);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&&Wae(o),o.load()):this.warn("media|source.src was changed by a third party - skip cleanup")),this.media=null),this.hls.trigger(Te.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[q9(t)]=[null,null];const n=this.tracks[t];n&&(n.buffer=void 0)}resetQueue(){this.operationQueue&&this.operationQueue.destroy(),this.operationQueue=new sxt(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 f,h;const p=n[c],{id:m,codec:g,levelCodec:b,container:S,metadata:k,supplemental:C}=p;let x=o[c];const E=(f=this.transferData)==null||(f=f.tracks)==null?void 0:f[c],_=E!=null&&E.buffer?E:x,A=_?.pendingCodec||_?.codec,R=_?.levelCodec;x||(x=o[c]={buffer:void 0,listeners:[],codec:g,supplemental:C,container:S,levelCodec:b,metadata:k,id:m});const M=eA(A,R),D=M?.replace(Hae,"$1");let N=eA(g,b);const L=(h=N)==null?void 0:h.replace(Hae,"$1");N&&M&&D!==L&&(c.slice(0,5)==="audio"&&(N=RI(N,this.appendSource)),this.log(`switching codec ${A} to ${N}`),N!==(x.pendingCodec||x.codec)&&(x.pendingCodec=N),x.container=S,this.appendChangeType(c,S,N))}),(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,Yn.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&&Or.isBuffered(c.buffer,o)||((l=this.fragmentTracker.getAppendedFrag(o,Yn.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:f,offset:h}=n,p=f.buffering[a],{sn:m,cc:g}=l,b=self.performance.now();p.start=b;const S=l.stats.buffering,k=c?c.stats.buffering:null;S.start===0&&(S.start=b),k&&k.start===0&&(k.start=b);const C=r.audio;let x=!1;a==="audio"&&C?.container==="audio/mpeg"&&(x=!this.lastMpegAudioChunk||f.id===1||this.lastMpegAudioChunk.sn!==f.sn,this.lastMpegAudioChunk=f);const E=r.video,_=E?.buffer;if(_&&m!=="initSegment"){const M=c||l,D=this.blockedAudioAppend;if(a==="audio"&&s!=="main"&&!this.blockedAudioAppend&&!(E.ending||E.ended)){const L=M.start+M.duration*.05,B=_.buffered,U=this.currentOp("video");!B.length&&!U?this.blockAudio(M):!U&&!Or.isBuffered(_,L)&&this.lastVideoAppendEndL||N{var M;p.executeStart=self.performance.now();const D=(M=this.tracks[a])==null?void 0:M.buffer;D&&(x?this.updateTimestampOffset(D,A,.1,a,m,g):h!==void 0&&Dn(h)&&this.updateTimestampOffset(D,h,1e-6,a,m,g)),this.appendExecutor(o,a)},onStart:()=>{},onComplete:()=>{const M=self.performance.now();p.executeEnd=p.end=M,S.first===0&&(S.first=M),k&&k.first===0&&(k.first=M);const D={};this.sourceBuffers.forEach(([N,L])=>{N&&(D[N]=Or.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(Te.BUFFER_APPENDED,{type:a,frag:l,part:c,chunkMeta:f,parent:l.type,timeRanges:D})},onError:M=>{var D;const N={type:or.MEDIA_ERROR,parent:l.type,details:Ht.BUFFER_APPEND_ERROR,sourceBufferName:a,frag:l,part:c,chunkMeta:f,error:M,err:M,fatal:!1},L=(D=this.media)==null?void 0:D.error;if(M.code===DOMException.QUOTA_EXCEEDED_ERR||M.name=="QuotaExceededError"||"quota"in M)N.details=Ht.BUFFER_FULL_ERROR;else if(M.code===DOMException.INVALID_STATE_ERR&&this.mediaSourceOpenOrEnded&&!L)N.errorAction=r1(!0);else if(M.name===N1e&&this.sourceBufferCount===0)N.errorAction=r1(!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)&&(N.fatal=!0)}this.hls.trigger(Te.ERROR,N)}};this.log(`queuing "${a}" append sn: ${m}${c?" p: "+c.index:""} of ${l.type===Yn.MAIN?"level":"track"} ${l.level} cc: ${g}`),this.append(R,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(Te.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[yo.AUDIOVIDEO]?a.push("audiovideo"):(s[yo.AUDIO]&&a.push("audio"),s[yo.VIDEO]&&a.push("video"));const l=()=>{const c=self.performance.now();r.stats.buffering.end=c,o&&(o.stats.buffering.end=c);const f=o?o.stats:r.stats;this.hls.trigger(Te.FRAG_BUFFERED,{frag:r,part:o,stats:f,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(Te.BUFFERED_TO_END,void 0)})):(this.tracksEnded(),this.hls.trigger(Te.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;Dn(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(Dn(l)&&l>=0){const f=Math.max(l,s),h=Math.floor(a/s)*s-f;this.flushBackBuffer(a,s,h)}const c=o.frontBufferFlushThreshold;if(Dn(c)&&c>0){const f=Math.max(o.maxBufferLength,c),h=Math.max(f,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=Or.getBuffered(a);if(l.length>0&&r>l.start(0)){var s;this.hls.trigger(Te.BACK_BUFFER_REACHED,{bufferEnd:r});const c=this.tracks[o];if((s=this.details)!=null&&s.live)this.hls.trigger(Te.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(Te.BUFFER_FLUSHING,{startOffset:0,endOffset:r,type:o})}}})}flushFrontBuffer(t,n,r){this.sourceBuffers.forEach(([o,a])=>{if(a){const s=Or.getBuffered(a),l=s.length;if(l<2)return;const c=s.start(l-1),f=s.end(l-1);if(r>c||t>=c&&t<=f)return;this.hls.trigger(Te.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 f=Math.max(0,n.fragmentStart),h=Math.max(f,o);return{duration:1/0,start:f,end:h}}return{duration:1/0}}const a=(t=this.overrides)==null?void 0:t.duration;if(a)return Dn(a)?{duration:a}:null;const s=this.media.duration,l=Dn(r.duration)?r.duration:0;return o>l&&o>s||!Dn(s)?{duration:o}:null}updateMediaSource({duration:t,start:n,end:r}){const o=this.mediaSource;!this.media||!o||o.readyState!=="open"||(o.duration!==t&&(Dn(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}) ${bo(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(Te.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(Te.ERROR,{type:or.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),f=`${l.container};codecs=${c}`;l.codec=c,this.log(`creating sourceBuffer(${f})${this.currentOp(s)?" Queued":""} ${bo(l)}`);try{const h=r.addSourceBuffer(f),p=q9(s),m=[s,h];n[p]=m,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(Te.ERROR,{type:or.MEDIA_ERROR,details:Ht.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:h,sourceBufferName:s,mimeType:f,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")&&lk(r,"video")&&(o=Qkt(o,r));const a=eA(o,t.levelCodec);return a?n.slice(0,5)==="audio"?RI(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(Te.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(Te.ERROR,{type:or.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=Dn(o.duration)?o.duration:1/0,f=Dn(a.duration)?a.duration:1/0,h=Math.max(0,n),p=Math.min(r,c,f);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 axt(`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 Wae(e){const t=e.querySelectorAll("source");[].slice.call(t).forEach(n=>{e.removeChild(n)})}function uxt(e,t){const n=self.document.createElement("source");n.type="video/mp4",n.src=t,e.appendChild(n)}function q9(e){return e==="audio"?1:0}class NW{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(Te.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),t.on(Te.MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(Te.MANIFEST_PARSED,this.onManifestParsed,this),t.on(Te.LEVELS_UPDATED,this.onLevelsUpdated,this),t.on(Te.BUFFER_CODECS,this.onBufferCodecs,this),t.on(Te.MEDIA_DETACHING,this.onMediaDetaching,this)}unregisterListener(){const{hls:t}=this;t.off(Te.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),t.off(Te.MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(Te.MANIFEST_PARSED,this.onManifestParsed,this),t.off(Te.LEVELS_UPDATED,this.onLevelsUpdated,this),t.off(Te.BUFFER_CODECS,this.onBufferCodecs,this),t.off(Te.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&&Dn(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,NW.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 cxt={MANIFEST:"m",AUDIO:"a",VIDEO:"v",MUXED:"av",INIT:"i",CAPTION:"c",TIMED_TEXT:"tt",KEY:"k",OTHER:"o"},su=cxt,dxt={HLS:"h"},fxt=dxt;class bf{constructor(t,n){Array.isArray(t)&&(t=t.map(r=>r instanceof bf?r:new bf(r))),this.value=t,this.params=n}}const hxt="Dict";function pxt(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 vxt(e,t,n,r){return new Error(`failed to ${e} "${pxt(t)}" as ${n}`,{cause:r})}function _f(e,t,n){return vxt("serialize",e,t,n)}class B1e{constructor(t){this.description=t}}const Gae="Bare Item",mxt="Boolean";function gxt(e){if(typeof e!="boolean")throw _f(e,mxt);return e?"?1":"?0"}function yxt(e){return btoa(String.fromCharCode(...e))}const bxt="Byte Sequence";function _xt(e){if(ArrayBuffer.isView(e)===!1)throw _f(e,bxt);return`:${yxt(e)}:`}const Sxt="Integer";function kxt(e){return e<-999999999999999||99999999999999912)throw _f(e,Cxt);const n=t.toString();return n.includes(".")?n:`${n}.0`}const Ext="String",Txt=/[\x00-\x1f\x7f]+/;function Axt(e){if(Txt.test(e))throw _f(e,Ext);return`"${e.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`}function Ixt(e){return e.description||e.toString().slice(7,-1)}const Lxt="Token";function Kae(e){const t=Ixt(e);if(/^([a-zA-Z*])([!#$%&'*+\-.^_`|~\w:/]*)$/.test(t)===!1)throw _f(t,Lxt);return t}function QU(e){switch(typeof e){case"number":if(!Dn(e))throw _f(e,Gae);return Number.isInteger(e)?F1e(e):xxt(e);case"string":return Axt(e);case"symbol":return Kae(e);case"boolean":return gxt(e);case"object":if(e instanceof Date)return wxt(e);if(e instanceof Uint8Array)return _xt(e);if(e instanceof B1e)return Kae(e);default:throw _f(e,Gae)}}const Pxt="Key";function JU(e){if(/^[a-z*][a-z0-9\-_.*]*$/.test(e)===!1)throw _f(e,Pxt);return e}function BW(e){return e==null?"":Object.entries(e).map(([t,n])=>n===!0?`;${JU(t)}`:`;${JU(t)}=${QU(n)}`).join("")}function U1e(e){return e instanceof bf?`${QU(e.value)}${BW(e.params)}`:QU(e)}function Rxt(e){return`(${e.value.map(U1e).join(" ")})${BW(e.params)}`}function Mxt(e,t={whitespace:!0}){if(typeof e!="object"||e==null)throw _f(e,hxt);const n=e instanceof Map?e.entries():Object.entries(e),r=t?.whitespace?" ":"";return Array.from(n).map(([o,a])=>{a instanceof bf||(a=new bf(a));let s=JU(o);return a.value===!0?s+=BW(a.params):(s+="=",Array.isArray(a.value)?s+=Rxt(a):s+=U1e(a)),s}).join(`,${r}`)}function V1e(e,t){return Mxt(e,t)}const Gd="CMCD-Object",as="CMCD-Request",Tm="CMCD-Session",Lp="CMCD-Status",Dxt={br:Gd,ab:Gd,d:Gd,ot:Gd,tb:Gd,tpb:Gd,lb:Gd,tab:Gd,lab:Gd,url:Gd,pb:as,bl:as,tbl:as,dl:as,ltc:as,mtp:as,nor:as,nrr:as,rc:as,sn:as,sta:as,su:as,ttfb:as,ttfbb:as,ttlb:as,cmsdd:as,cmsds:as,smrt:as,df:as,cs:as,ts:as,cid:Tm,pr:Tm,sf:Tm,sid:Tm,st:Tm,v:Tm,msd:Tm,bs:Lp,bsd:Lp,cdn:Lp,rtp:Lp,bg:Lp,pt:Lp,ec:Lp,e:Lp},Oxt={REQUEST:as};function $xt(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 Nxt(e,t){const n={};if(!e)return n;const r=Object.keys(e),o=t?$xt(t):{};return r.reduce((a,s)=>{var l;const c=Dxt[s]||o[s]||Oxt.REQUEST,f=(l=a[c])!==null&&l!==void 0?l:a[c]={};return f[s]=e[s],a},n)}function Bxt(e){return["ot","sf","st","e","sta"].includes(e)}function Fxt(e){return typeof e=="number"?Dn(e):e!=null&&e!==""&&e!==!1}const z1e="event";function jxt(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 oA=e=>Math.round(e),eV=(e,t)=>Array.isArray(e)?e.map(n=>eV(n,t)):e instanceof bf&&typeof e.value=="string"?new bf(eV(e.value,t),e.params):(t.baseUrl&&(e=jxt(e,t.baseUrl)),t.version===1?encodeURIComponent(e):e),aT=e=>oA(e/100)*100,Uxt=(e,t)=>{let n=e;return t.version>=2&&(e instanceof bf&&typeof e.value=="string"?n=new bf([e]):typeof e=="string"&&(n=[e])),eV(n,t)},Vxt={br:oA,d:oA,bl:aT,dl:aT,mtp:aT,nor:Uxt,rtp:aT,tb:oA},H1e="request",W1e="response",FW=["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"],zxt=["e"],Hxt=/^[a-zA-Z0-9-.]+-[a-zA-Z0-9-.]+$/;function nP(e){return Hxt.test(e)}function Wxt(e){return FW.includes(e)||zxt.includes(e)||nP(e)}const G1e=["d","dl","nor","ot","rtp","su"];function Gxt(e){return FW.includes(e)||G1e.includes(e)||nP(e)}const Kxt=["cmsdd","cmsds","rc","smrt","ttfb","ttfbb","ttlb","url"];function qxt(e){return FW.includes(e)||G1e.includes(e)||Kxt.includes(e)||nP(e)}const Yxt=["bl","br","bs","cid","d","dl","mtp","nor","nrr","ot","pr","rtp","sf","sid","st","su","tb","v"];function Xxt(e){return Yxt.includes(e)||nP(e)}const Zxt={[W1e]:qxt,[z1e]:Wxt,[H1e]:Gxt};function K1e(e,t={}){const n={};if(e==null||typeof e!="object")return n;const r=t.version||e.v||1,o=t.reportingMode||H1e,a=r===1?Xxt:Zxt[o];let s=Object.keys(e).filter(a);const l=t.filter;typeof l=="function"&&(s=s.filter(l));const c=o===W1e||o===z1e;c&&!s.includes("ts")&&s.push("ts"),r>1&&!s.includes("v")&&s.push("v");const f=uo({},Vxt,t.formatters),h={version:r,reportingMode:o,baseUrl:t.baseUrl};return s.sort().forEach(p=>{let m=e[p];const g=f[p];if(typeof g=="function"&&(m=g(m,h)),p==="v"){if(r===1)return;m=r}p=="pr"&&m===1||(c&&p==="ts"&&!Dn(m)&&(m=Date.now()),Fxt(m)&&(Bxt(p)&&typeof m=="string"&&(m=new B1e(m)),n[p]=m))}),n}function Qxt(e,t={}){const n={};if(!e)return n;const r=K1e(e,t),o=Nxt(r,t?.customHeaderMap);return Object.entries(o).reduce((a,[s,l])=>{const c=V1e(l,{whitespace:!1});return c&&(a[s]=c),a},n)}function Jxt(e,t,n){return uo(e,Qxt(t,n))}const eEt="CMCD";function tEt(e,t={}){return e?V1e(K1e(e,t),{whitespace:!1}):""}function nEt(e,t={}){if(!e)return"";const n=tEt(e,t);return encodeURIComponent(n)}function rEt(e,t={}){if(!e)return"";const n=nEt(e,t);return`${eEt}=${n}`}const qae=/CMCD=[^&#]+/;function iEt(e,t,n){const r=rEt(t,n);if(!r)return e;if(qae.test(e))return e.replace(qae,r);const o=e.includes("?")?"&":"?";return`${e}${o}${r}`}class oEt{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:su.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),f={d:(s||a).duration*1e3,ot:c};(c===su.VIDEO||c===su.AUDIO||c==su.MUXED)&&(f.br=l.bitrate/1e3,f.tb=this.getTopBandwidth(c)/1e3,f.bl=this.getBufferLength(c));const h=s?this.getNextPart(s):this.getNextFrag(a);h!=null&&h.url&&h.url!==a.url&&(f.nor=h.url),this.apply(o,f)}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(Te.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(Te.MEDIA_DETACHED,this.onMediaDetached,this),t.on(Te.BUFFER_CREATED,this.onBufferCreated,this)}unregisterListeners(){const t=this.hls;t.off(Te.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(Te.MEDIA_DETACHED,this.onMediaDetached,this),t.off(Te.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:fxt.HLS,sid:this.sid,cid:this.cid,pr:(t=this.media)==null?void 0:t.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}}apply(t,n={}){uo(n,this.createData());const r=n.ot===su.INIT||n.ot===su.VIDEO||n.ot===su.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={}),Jxt(t.headers,n,a)):t.url=iEt(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 su.TIMED_TEXT;if(t.sn==="initSegment")return su.INIT;if(n==="audio")return su.AUDIO;if(n==="main")return this.hls.audioTracks.length?su.VIDEO:su.MUXED}getTopBandwidth(t){let n=0,r;const o=this.hls;if(t===su.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===su.AUDIO?this.audioBuffer:this.videoBuffer;return!r||!n?NaN:Or.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 sEt=3e5;class aEt extends Gc{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(Te.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Te.MANIFEST_LOADED,this.onManifestLoaded,this),t.on(Te.MANIFEST_PARSED,this.onManifestParsed,this),t.on(Te.ERROR,this.onError,this)}unregisterListeners(){const t=this.hls;t&&(t.off(Te.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Te.MANIFEST_LOADED,this.onManifestLoaded,this),t.off(Te.MANIFEST_PARSED,this.onManifestParsed,this),t.off(Te.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===Pa.SendAlternateToPenaltyBox&&r.flags===Ku.MoveAllAlternatesMatchingHost){const o=this.levels;let a=this._pathwayPriority,s=this.pathwayId;if(n.context){const{groupId:l,pathwayId:c,type:f}=n.context;l&&o?s=this.getPathwayForGroupId(l,f,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: ${bo(a)} penalized: ${bo(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]>sEt&&delete r[a]});for(let a=0;a0){this.log(`Setting Pathway to "${s}"`),this.pathwayId=s,h1e(n),this.hls.trigger(Te.LEVELS_UPDATED,{levels:n});const f=this.hls.levels[l];c&&f&&this.levels&&(f.attrs["STABLE-VARIANT-ID"]!==c.attrs["STABLE-VARIANT-ID"]&&f.bitrate!==c.bitrate&&this.log(`Unstable Pathways change from bitrate ${c.bitrate} to ${f.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 f=this.getLevelsForPathway(l).map(h=>{const p=new Qo(h.attrs);p["PATHWAY-ID"]=s;const m=p.AUDIO&&`${p.AUDIO}_clone_${s}`,g=p.SUBTITLES&&`${p.SUBTITLES}_clone_${s}`;m&&(r[p.AUDIO]=m,p.AUDIO=m),g&&(o[p.SUBTITLES]=g,p.SUBTITLES=g);const b=q1e(h.uri,p["STABLE-VARIANT-ID"],"PER-VARIANT-URIS",c),S=new ck({attrs:p,audioCodec:h.audioCodec,bitrate:h.bitrate,height:h.height,name:h.name,url:b,videoCodec:h.videoCodec,width:h.width});if(h.audioGroups)for(let k=1;k{this.log(`Loaded steering manifest: "${o}"`);const b=h.data;if(b?.VERSION!==1){this.log(`Steering VERSION ${b.VERSION} not supported!`);return}this.updated=performance.now(),this.timeToLoad=b.TTL;const{"RELOAD-URI":S,"PATHWAY-CLONES":k,"PATHWAY-PRIORITY":C}=b;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||m.url),k&&this.clonePathways(k);const x={steeringManifest:b,url:o.toString()};this.hls.trigger(Te.STEERING_MANIFEST_LOADED,x),C&&this.updatePathwayPriority(C)},onError:(h,p,m,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 b=this.timeToLoad*1e3;if(h.code===429){const S=this.loader;if(typeof S?.getResponseHeader=="function"){const k=S.getResponseHeader("Retry-After");k&&(b=parseFloat(k)*1e3)}this.log(`Steering manifest ${p.url} rate limited`);return}this.scheduleRefresh(this.uri||p.url,b)},onTimeout:(h,p,m)=>{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,f)}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 Yae(e,t,n,r){e&&Object.keys(t).forEach(o=>{const a=e.filter(s=>s.groupId===o).map(s=>{const l=uo({},s);return l.details=void 0,l.attrs=new Qo(l.attrs),l.url=l.attrs.URI=q1e(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 q1e(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(f=>{f&&c.searchParams.set(f,a[f])}),c.href}class o1 extends Gc{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=o1.CDMCleanupPromise?[o1.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=wS(this.config));const l=s.map(j9).filter(c=>!!c);this.keyFormatPromise=this.getKeyFormatPromise(l)}this.keyFormatPromise.then(s=>{const l=nA(s);if(r!=="sinf"||l!==ts.FAIRPLAY){this.log(`Ignoring "${n.type}" event with init data type: "${r}" for selected key-system ${l}`);return}let c;try{const g=ra(new Uint8Array(o)),b=TW(JSON.parse(g).sinf),S=Vye(b);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 f=$l(c),{keyIdToKeySessionPromise:h,mediaKeySessions:p}=this;let m=h[f];for(let g=0;gthis.generateRequestWithPreferredKeySession(b,r,o,"encrypted-event-key-match")),m.catch(C=>this.handleError(C));break}}m||this.handleError(new Error(`Key ID ${f} 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(Te.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(Te.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.on(Te.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(Te.MANIFEST_LOADED,this.onManifestLoaded,this),this.hls.on(Te.DESTROYING,this.onDestroying,this)}unregisterListeners(){this.hls.off(Te.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(Te.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.off(Te.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.off(Te.MANIFEST_LOADED,this.onManifestLoaded,this),this.hls.off(Te.DESTROYING,this.onDestroying,this)}getLicenseServerUrl(t){const{drmSystems:n,widevineLicenseUrl:r}=this.config,o=n?.[t];if(o)return o.licenseUrl;if(t===ts.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=f=>{const h=f.shift();this.getMediaKeysPromise(h,o,a).then(p=>s({keySystem:h,mediaKeys:p})).catch(p=>{f.length?c(f):p instanceof Hu?l(p):l(new Hu({type:or.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 o1e===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=Uwt(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: ${bo(a)}`),l=this.requestMediaKeySystemAccess(t,a);const c=s=this.keySystemAccessPromises[t]={keySystemAccess:l};return l.catch(f=>{this.log(`Failed to obtain access to key-system "${t}": ${f}`)}),l.then(f=>{this.log(`Access for key-system "${f.keySystem}" obtained`);const h=this.fetchServerCertificate(t);this.log(`Create media-keys for "${t}"`);const p=c.mediaKeys=f.createMediaKeys().then(m=>(this.log(`Media-keys created for "${t}"`),c.hasMediaKeys=!0,h.then(g=>g?this.setMediaKeysServerCertificate(m,t,g):m)));return p.catch(m=>{this.error(`Failed to create media-keys for "${t}"}: ${m}`)}),p})}return l.then(()=>s.mediaKeys)}createMediaKeySessionContext({decryptdata:t,keySystem:n,mediaKeys:r}){this.log(`Creating key-system session "${n}" keyId: ${$l(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=lT(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 ${$l(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})=>j9(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=j9(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=wS(this.config),r=t.map(nA).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,f).then(()=>(this.throwIfDestroyed(),this.createMediaKeySessionContext({keySystem:c,mediaKeys:f,decryptdata:n}))))).then(c=>{const f="cenc",h=n.pssh?n.pssh.buffer:null;return this.generateRequestWithPreferredKeySession(c,f,h,"playlist-key")});return l.catch(c=>this.handleError(c,t.frag)),this.keyIdToKeySessionPromise[r]=l,l}return s.catch(l=>{if(l instanceof Hu){const c=ro({},l.data);this.getKeyStatus(n)==="internal-error"&&(c.decryptdata=n);const f=new Hu(c,l.message);this.handleError(f,t.frag)}}),s}throwIfDestroyed(t="Invalid state"){if(!this.hls)throw new Error("invalid state")}handleError(t,n){if(this.hls)if(t instanceof Hu){n&&(t.data.frag=n);const r=t.data.decryptdata;this.error(`${t.message}${r?` (${$l(r.keyId||[])})`:""}`),this.hls.trigger(Te.ERROR,t.data)}else this.error(t.message),this.hls.trigger(Te.ERROR,{type:or.KEY_SYSTEM_ERROR,details:Ht.KEY_SYSTEM_NO_KEYS,error:t,fatal:!0})}getKeySystemForKeyPromise(t){const n=lT(t),r=this.keyIdToKeySessionPromise[n];if(!r){const o=nA(t.keyFormat),a=o?[o]:wS(this.config);return this.attemptKeySystemAccess(a)}return r}getKeySystemSelectionPromise(t){if(t.length||(t=wS(this.config)),t.length===0)throw new Hu({type:or.KEY_SYSTEM_ERROR,details:Ht.KEY_SYSTEM_NO_CONFIGURED_LICENSE,fatal:!0},`Missing key-system license configuration options ${bo({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 b=s.call(this.hls,n,r,t);if(!b)throw new Error("Invalid response from configured generateRequest filter");n=b.initDataType,r=b.initData?b.initData:null,t.decryptdata.pssh=r?new Uint8Array(r):null}catch(b){if(this.warn(b.message),this.hls&&this.hls.config.debug)throw b}if(r===null)return this.log(`Skipping key-session request for "${o}" (no initData)`),Promise.resolve(t);const l=lT(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 f=new IW,h=t._onmessage=b=>{const S=t.mediaKeysSession;if(!S){f.emit("error",new Error("invalid state"));return}const{messageType:k,message:C}=b;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=>{f.eventNames().length?f.emit("error",x):this.handleError(x)}):k==="license-release"?t.keySystem===ts.FAIRPLAY&&this.updateKeySession(t,GU("acknowledged")).then(()=>this.removeSession(t)).catch(x=>this.handleError(x)):this.warn(`unhandled media key message type "${k}"`)},p=(b,S)=>{S.keyStatus=b;let k;b.startsWith("usable")?f.emit("resolved"):b==="internal-error"||b==="output-restricted"||b==="output-downscaled"?k=Xae(b,S.decryptdata):b==="expired"?k=new Error(`key expired (keyId: ${l})`):b==="released"?k=new Error("key released"):b==="status-pending"||this.warn(`unhandled key status change "${b}" (keyId: ${l})`),k&&(f.eventNames().length?f.emit("error",k):this.handleError(k))},m=t._onkeystatuseschange=b=>{if(!t.mediaKeysSession){f.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 ${bo(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 A=this.getKeyStatus(t.decryptdata);if(A&&A!=="status-pending")return this.log(`No status for keyId ${l} in key-session "${t.mediaKeysSession.sessionId}". Using session key-status ${A} from other session.`),p(A,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} (${bo(k)}).`)}};Ul(t.mediaKeysSession,"message",h),Ul(t.mediaKeysSession,"keystatuseschange",m);const g=new Promise((b,S)=>{f.on("error",S),f.on("resolved",b)});return t.mediaKeysSession.generateRequest(n,r).then(()=>{this.log(`Request generated for key-session "${t.mediaKeysSession.sessionId}" keyId: ${l} URI: ${c}`)}).catch(b=>{throw new Hu({type:or.KEY_SYSTEM_ERROR,details:Ht.KEY_SYSTEM_NO_SESSION,error:b,decryptdata:t.decryptdata,fatal:!1},`Error generating key-session request: ${b}`)}).then(()=>g).catch(b=>(f.removeAllListeners(),this.removeSession(t).then(()=>{throw b}))).then(()=>(f.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===ts.PLAYREADY&&a.length===16&&r1e(a);const s=$l(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},f=n.certLoadPolicy.default,h={loadPolicy:f,timeout:f.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},p={onSuccess:(m,g,b,S)=>{s(m.data)},onError:(m,g,b,S)=>{l(new Hu({type:or.KEY_SYSTEM_ERROR,details:Ht.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:b,response:ro({url:c.url,data:void 0},m)},`"${t}" certificate request failed (${a}). Status: ${m.code} (${m.text})`))},onTimeout:(m,g,b)=>{l(new Hu({type:or.KEY_SYSTEM_ERROR,details:Ht.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:b,response:{url:c.url,data:void 0}},`"${t}" certificate request timed out (${a})`))},onAbort:(m,g,b)=>{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 Hu({type:or.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 Hu({type:or.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,m=a.length;p in key message");return GU(atob(f))}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 f=this.config.licenseResponseCallback;if(f)try{c=f.call(this.hls,l,s,t)}catch(h){this.error(h)}o(c)}else{const c=r.errorRetry,f=c?c.maxNumRetry:0;if(this._requestLicenseFailureCount++,this._requestLicenseFailureCount>f||l.status>=400&&l.status<500)a(new Hu({type:or.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=f-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:f})=>{t.keySystem==ts.PLAYREADY&&(f=this.unpackPlayReadyKeyMessage(c,f)),c.send(f)}).catch(a)})}onDestroying(){this.unregisterListeners(),this._clear()}onMediaAttached(t,n){if(!this.config.emeEnabled)return;const r=n.media;this.media=r,Ul(r,"encrypted",this.onMediaEncrypted),Ul(r,"waitingforkey",this.onWaitingForKey)}onMediaDetached(){const t=this.media;t&&(bu(t,"encrypted",this.onMediaEncrypted),bu(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,dg.clearKeyUriToKeyIdMap();const o=r.length;o1.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(Te.ERROR,{type:or.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(Te.ERROR,{type:or.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: ${$l(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(f=>self.clearTimeout(s[f]));const{drmSystemOptions:l}=this.config;return(zwt(l)?new Promise((f,h)=>{self.setTimeout(()=>h(new Error("MediaKeySession.remove() timeout")),8e3),n.remove().then(f).catch(h)}):Promise.resolve()).catch(f=>{this.log(`Could not remove session: ${f}`),this.hls&&this.hls.trigger(Te.ERROR,{type:or.OTHER_ERROR,details:Ht.KEY_SYSTEM_DESTROY_REMOVE_SESSION_ERROR,fatal:!1,error:new Error(`Could not remove session: ${f}`)})}).then(()=>n.close()).catch(f=>{this.log(`Could not close session: ${f}`),this.hls&&this.hls.trigger(Te.ERROR,{type:or.OTHER_ERROR,details:Ht.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR,fatal:!1,error:new Error(`Could not close session: ${f}`)})})}return Promise.resolve()}}o1.CDMCleanupPromise=void 0;function lT(e){if(!e)throw new Error("Could not read keyId of undefined decryptdata");if(e.keyId===null)throw new Error("keyId is null");return $l(e.keyId)}function lEt(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 Hu 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 Xae(e,t){const n=e==="output-restricted",r=n?Ht.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:Ht.KEY_SYSTEM_STATUS_INTERNAL_ERROR;return new Hu({type:or.KEY_SYSTEM_ERROR,details:r,fatal:!1,decryptdata:t},n?"HDCP level output restricted":`key status changed to "${e}"`)}class uEt{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(Te.MEDIA_ATTACHING,this.onMediaAttaching,this),this.hls.on(Te.MEDIA_DETACHING,this.onMediaDetaching,this)}unregisterListeners(){this.hls.off(Te.MEDIA_ATTACHING,this.onMediaAttaching,this),this.hls.off(Te.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,f=this.hls;if(f.trigger(Te.FPS_DROP,{currentDropped:s,currentDecoded:l,totalDroppedFrames:r}),c>0&&s>f.config.fpsDroppedMonitoringThreshold*l){let h=f.currentLevel;f.logger.warn("drop FPS ratio greater than max allowed value for currentLevel: "+h),h>0&&(f.autoLevelCapping===-1||f.autoLevelCapping>=h)&&(h=h-1,f.trigger(Te.FPS_DROP_LEVEL_CAPPING,{level:h,droppedLevel:f.currentLevel}),f.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 Y1e(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 X1e(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){oo.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){oo.debug(`[texttrack-utils]: Legacy TextTrackCue fallback failed: ${o}`)}}n==="disabled"&&(e.mode=n)}function My(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 tV(e,t,n,r){const o=e.mode;if(o==="disabled"&&(e.mode="hidden"),e.cues&&e.cues.length>0){const a=dEt(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 sA(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=sA(this.media.textTracks);for(let a=0;a-1&&this.toggleTrackModes()}registerListeners(){const{hls:t}=this;t.on(Te.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(Te.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(Te.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Te.MANIFEST_PARSED,this.onManifestParsed,this),t.on(Te.LEVEL_LOADING,this.onLevelLoading,this),t.on(Te.LEVEL_SWITCHING,this.onLevelSwitching,this),t.on(Te.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),t.on(Te.ERROR,this.onError,this)}unregisterListeners(){const{hls:t}=this;t.off(Te.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(Te.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(Te.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Te.MANIFEST_PARSED,this.onManifestParsed,this),t.off(Te.LEVEL_LOADING,this.onLevelLoading,this),t.off(Te.LEVEL_SWITCHING,this.onLevelSwitching,this),t.off(Te.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),t.off(Te.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;sA(r.textTracks).forEach(s=>{My(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=af(l,s);if(h>-1)a=s[h];else{const p=af(l,this.tracks);a=this.tracks[p]}}let c=this.findTrackId(a);c===-1&&a&&(c=this.findTrackId(null));const f={subtitleTracks:s};this.log(`Updating subtitle tracks, ${s.length} track(s) found in "${r?.join(",")}" group-id`),this.hls.trigger(Te.SUBTITLE_TRACKS_UPDATED,f),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=af(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(Te.SUBTITLE_TRACK_LOADING,{url:a,id:r,groupId:o,deliveryDirectives:n||null,track:t})}toggleTrackModes(){const{media:t}=this;if(!t)return;const n=sA(t.textTracks),r=this.currentTrack;let o;if(r&&(o=n.filter(a=>ZU(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||!Dn(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(Te.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:f,url:h}=o;this.hls.trigger(Te.SUBTITLE_TRACK_SWITCH,{id:s,groupId:l,name:c,type:f,url:h});const p=this.switchParams(o.url,r?.details,o.details);this.loadPlaylist(p)}}function hEt(){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 g2(e){let t=5381,n=e.length;for(;n;)t=t*33^e.charCodeAt(--n);return(t>>>0).toString()}const s1=.025;let UI=(function(e){return e[e.Point=0]="Point",e[e.Range=1]="Range",e})({});function pEt(e,t,n){return`${e.identifier}-${n+1}-${g2(t)}`}class vEt{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 Y9(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=Y9(n,t);return n-r<.1}return!1}get resumptionOffset(){const t=this.resumeOffset,n=Dn(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 Y9(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)0||this.assetListResponse!==null}toString(){return mEt(this)}}function Y9(e,t){return e-t.start":e.cue.post?"":""}${e.timelineStart.toFixed(2)}-${e.resumeTime.toFixed(2)}]`}function Cy(e){const t=e.timelineStart,n=e.duration||0;return`["${e.identifier}" ${t.toFixed(2)}-${(t+n).toFixed(2)}]`}class gEt{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(Te.PLAYOUT_LIMIT_REACHED,{})};const a=this.hls=new t(n);this.interstitial=r,this.assetItem=o;const s=()=>{this.hasDetails=!0};a.once(Te.LEVEL_LOADED,s),a.once(Te.AUDIO_TRACK_LOADED,s),a.once(Te.SUBTITLE_TRACK_LOADED,s),a.on(Te.MEDIA_ATTACHING,(l,{media:c})=>{this.removeMediaListeners(),this.mediaAttached=c,this.interstitial.playoutLimit&&(c.addEventListener("timeupdate",this.checkPlayout),this.appendInPlace&&a.on(Te.BUFFER_APPENDED,()=>{const h=this.bufferedEnd;this.reachedPlayout(h)&&(this._bufferedEosTime=h,a.trigger(Te.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=Z1e(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=Or.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=Or.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: ${Cy(this.assetItem)} ${(t=this.hls)==null?void 0:t.sessionId} ${this.appendInPlace?"append-in-place":""}`}}const Zae=.033;class yEt extends Gc{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(f.identifier)):[];s.length&&s.sort((f,h)=>{const p=f.cue.pre,m=f.cue.post,g=h.cue.pre,b=h.cue.post;if(p&&!g)return-1;if(g&&!p||m&&!b)return 1;if(b&&!m)return-1;if(!p&&!g&&!m&&!b){const S=f.startTime,k=h.startTime;if(S!==k)return S-k}return f.dateRange.tagOrder-h.dateRange.tagOrder}),this.events=s,c.forEach(f=>{this.removeEvent(f)}),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,f)=>Math.abs(c.playout.start-a[f].playout.start)>.005||Math.abs(c.playout.end-a[f].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,f=0;if(t.forEach((h,p)=>{const m=h.cue.pre,g=h.cue.post,b=t[p-1]||null,S=h.appendInPlace,k=g?a:h.startOffset,C=h.duration,x=h.timelineOccupancy===UI.Range?C:0,E=h.resumptionOffset,_=b?.startTime===k,A=k+h.cumulativeDuration;let R=S?A+C:k+E;if(m||!g&&k<=0){const D=f;f+=x,h.timelineStart=A;const N=s;s+=C,r.push({event:h,start:A,end:R,playout:{start:N,end:s},integrated:{start:D,end:f}})}else if(k<=a){if(!_){const L=k-c;if(L>Zae){const B=c,U=f;f+=L;const W=s;s+=L;const V={previousEvent:t[p-1]||null,nextEvent:h,start:B,end:B+L,playout:{start:W,end:s},integrated:{start:U,end:f}};r.push(V)}else L>0&&b&&(b.cumulativeDuration+=L,r[r.length-1].end=k)}g&&(R=A),h.timelineStart=A;const D=f;f+=x;const N=s;s+=C,r.push({event:h,start:A,end:R,playout:{start:N,end:s},integrated:{start:D,end:f}})}else return;const M=h.resumeTime;g||M>a?c=a:c=M}),c{const f=l.cue.pre,h=l.cue.post,p=f?0:h?o:l.startTime;this.updateAssetDurations(l),s===p?l.cumulativeDuration=a:(a=0,s=p),!h&&l.snapOptions.in&&(l.resumeAnchor=Ag(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+1s1?(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 f=Ag(null,l.fragments,r);if(!f)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(f.start-r){const k=m.data,C=k?.ASSETS;if(!Array.isArray(C)){const x=this.assignAssetListError(t,Ht.ASSET_LIST_PARSING_ERROR,new Error("Invalid interstitial asset list"),b.url,g,S);this.hls.trigger(Te.ERROR,x);return}t.assetListResponse=k,this.hls.trigger(Te.ASSET_LIST_LOADED,{event:t,assetListResponse:k,networkDetails:S})},onError:(m,g,b,S)=>{const k=this.assignAssetListError(t,Ht.ASSET_LIST_LOAD_ERROR,new Error(`Error loading X-ASSET-LIST: HTTP status ${m.code} ${m.text} (${g.url})`),g.url,S,b);this.hls.trigger(Te.ERROR,k)},onTimeout:(m,g,b)=>{const S=this.assignAssetListError(t,Ht.ASSET_LIST_LOAD_TIMEOUT,new Error(`Timeout loading X-ASSET-LIST (${g.url})`),g.url,m,b);this.hls.trigger(Te.ERROR,S)}};return l.load(c,h,p),this.hls.trigger(Te.ASSET_LIST_LOADING,{event:t}),l}assignAssetListError(t,n,r,o,a,s){return t.error=r,{type:or.NETWORK_ERROR,details:n,fatal:!1,interstitial:t,url:o,error:r,networkDetails:s,stats:a}}}function Qae(e){e?.play().catch(()=>{})}function uT(e,t){return`[${e}] Advancing timeline position to ${t}`}class _Et extends Gc{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 b=this.schedule.findItemIndexAtTime(r);if(b===-1&&(b=g+(s?-1:1),this.log(`seeked ${s?"back ":""}to position not covered by schedule ${r} (resolving from ${g} to ${b})`)),!this.isInterstitial(l)&&(c=this.media)!=null&&c.paused&&(this.shouldPlay=!1),!s&&b>g){const S=this.schedule.findJumpRestrictedIndex(g+1,b);if(S>g){this.setSchedulePosition(S);return}}this.setSchedulePosition(b);return}const f=this.playingAsset;if(!f){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=f.timelineStart,p=f.duration||0;if(s&&r=h+p){var m;(m=l.event)!=null&&m.appendInPlace&&(this.clearInterstitial(l.event,l),this.flushFrontBuffer(r)),this.setScheduleToAssetAtTime(r,f)}},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||[],f=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=>nd(S))} pos: ${this.timelinePos}`),h.length&&this.log(`Removed events ${h}`);let m=null,g=null;s&&(m=this.updateItem(s,this.timelinePos),this.itemsMatch(s,m)?this.playingItem=m:this.waitingItem=this.endedItem=null),this.waitingItem=this.updateItem(this.waitingItem),this.endedItem=this.updateItem(this.endedItem);const b=this.bufferingItem;if(b&&(g=this.updateItem(b,this.bufferedPos),this.itemsMatch(b,g)?this.bufferingItem=g:b.event&&(this.bufferingItem=this.playingItem,this.clearInterstitial(b.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)>s1&&this.warn(`${x} ("${S.assetId}" ${S.timelineOffset}->${k})`)}}}),p||o){if(this.hls.trigger(Te.INTERSTITIALS_UPDATED,{events:l.slice(0),schedule:c.slice(0),durations:f,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(m,s),b&&g!==m&&this.trimInPlace(g,b),this.checkBuffer()}},this.hls=t,this.HlsPlayerClass=n,this.assetListLoader=new bEt(t),this.schedule=new yEt(this.onScheduleUpdate,t.logger),this.registerListeners()}registerListeners(){const t=this.hls;t&&(t.on(Te.MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(Te.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(Te.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(Te.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Te.LEVEL_UPDATED,this.onLevelUpdated,this),t.on(Te.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.on(Te.AUDIO_TRACK_UPDATED,this.onAudioTrackUpdated,this),t.on(Te.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),t.on(Te.SUBTITLE_TRACK_UPDATED,this.onSubtitleTrackUpdated,this),t.on(Te.EVENT_CUE_ENTER,this.onInterstitialCueEnter,this),t.on(Te.ASSET_LIST_LOADED,this.onAssetListLoaded,this),t.on(Te.BUFFER_APPENDED,this.onBufferAppended,this),t.on(Te.BUFFER_FLUSHED,this.onBufferFlushed,this),t.on(Te.BUFFERED_TO_END,this.onBufferedToEnd,this),t.on(Te.MEDIA_ENDED,this.onMediaEnded,this),t.on(Te.ERROR,this.onError,this),t.on(Te.DESTROYING,this.onDestroying,this))}unregisterListeners(){const t=this.hls;t&&(t.off(Te.MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(Te.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(Te.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(Te.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Te.LEVEL_UPDATED,this.onLevelUpdated,this),t.off(Te.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.off(Te.AUDIO_TRACK_UPDATED,this.onAudioTrackUpdated,this),t.off(Te.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),t.off(Te.SUBTITLE_TRACK_UPDATED,this.onSubtitleTrackUpdated,this),t.off(Te.EVENT_CUE_ENTER,this.onInterstitialCueEnter,this),t.off(Te.ASSET_LIST_LOADED,this.onAssetListLoaded,this),t.off(Te.BUFFER_CODECS,this.onBufferCodecs,this),t.off(Te.BUFFER_APPENDED,this.onBufferAppended,this),t.off(Te.BUFFER_FLUSHED,this.onBufferFlushed,this),t.off(Te.BUFFERED_TO_END,this.onBufferedToEnd,this),t.off(Te.MEDIA_ENDED,this.onMediaEnded,this),t.off(Te.ERROR,this.onError,this),t.off(Te.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){bu(t,"play",this.onPlay),bu(t,"pause",this.onPause),bu(t,"seeking",this.onSeeking),bu(t,"timeupdate",this.onTimeupdate)}onMediaAttaching(t,n){const r=this.media=n.media;Ul(r,"seeking",this.onSeeking),Ul(r,"timeupdate",this.onTimeupdate),Ul(r,"play",this.onPlay),Ul(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,m,g,b,S)=>{if(p){let k=p[m].start;const C=p.event;if(C){if(m==="playout"||C.timelineOccupancy!==UI.Point){const x=r(g);x?.interstitial===C&&(k+=x.assetItem.startOffset+x[S])}}else{const x=b==="bufferedPos"?s():t[b];k+=x-p.start}return k}return 0},a=(p,m)=>{var g;if(p!==0&&m!=="primary"&&(g=t.schedule)!=null&&g.length){var b;const S=t.schedule.findItemIndexAtTime(p),k=(b=t.schedule.items)==null?void 0:b[S];if(k){const C=k[m].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 m,g;return(m=t.primaryDetails)!=null&&m.live?t.primaryDetails.edge:((g=t.schedule)==null?void 0:g.durations[p])||0},c=(p,m)=>{var g,b;const S=t.effectivePlayingItem;if(S!=null&&(g=S.event)!=null&&g.restrictions.skip||!t.schedule)return;t.log(`seek to ${p} "${m}"`);const k=t.effectivePlayingItem,C=t.schedule.findItemIndexAtTime(p,m),x=(b=t.schedule.items)==null?void 0:b[C],E=t.getBufferingPlayer(),_=E?.interstitial,A=_?.appendInPlace,R=k&&t.itemsMatch(k,x);if(k&&(A||R)){const M=r(t.playingAsset),D=M?.media||t.primaryMedia;if(D){const N=m==="primary"?D.currentTime:o(k,m,t.playingAsset,"timelinePos","currentTime"),L=p-N,B=(A?N:D.currentTime)+L;if(B>=0&&(!M||A||B<=M.duration)){D.currentTime=B;return}}}if(x){let M=p;if(m!=="primary"){const N=x[m].start,L=p-N;M=x.start+L}const D=!t.isInterstitial(x);if((!t.isInterstitial(k)||k.event.appendInPlace)&&(D||x.event.appendInPlace)){const N=t.media||(A?E?.media:null);N&&(N.currentTime=M)}else if(k){const N=t.findItemIndex(k);if(C>N){const B=t.schedule.findJumpRestrictedIndex(N+1,C);if(B>N){t.setSchedulePosition(B);return}}let L=0;if(D)t.timelinePos=M,t.checkBuffer();else{const B=x.event.assetList,U=p-(x[m]||x).start;for(let W=B.length;W--;){const V=B[W];if(V.duration&&U>=V.startOffset&&U{const p=t.effectivePlayingItem;if(t.isInterstitial(p))return p;const m=n();return t.isInterstitial(m)?m:null},h={get bufferedEnd(){const p=n(),m=t.bufferingItem;if(m&&m===p){var g;return o(m,"playout",t.bufferingAsset,"bufferedPos","bufferedEnd")-m.playout.start||((g=t.bufferingAsset)==null?void 0:g.startOffset)||0}return 0},get currentTime(){const p=f(),m=t.effectivePlayingItem;return m&&m===p?o(m,"playout",t.effectivePlayingAsset,"timelinePos","currentTime")-m.playout.start:0},set currentTime(p){const m=f(),g=t.effectivePlayingItem;g&&g===m&&c(p+g.playout.start,"playout")},get duration(){const p=f();return p?p.playout.end-p.playout.start:0},get assetPlayers(){var p;const m=(p=f())==null?void 0:p.event.assetList;return m?m.map(g=>t.getAssetPlayer(g.identifier)):[]},get playingIndex(){var p;const m=(p=f())==null?void 0:p.event;return m&&t.effectivePlayingAsset?m.findAssetIndex(t.effectivePlayingAsset):-1},get scheduleItem(){return f()}};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 f()?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,m=p?.event;if(m&&!m.restrictions.skip){const g=t.findItemIndex(p);if(m.appendInPlace){const b=p.playout.start+p.event.duration;c(b+.001,"playout")}else t.advanceAfterAssetEnded(m,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||!Dn(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} ${bo(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,f=(r=this.detachedData)==null?void 0:r.mediaSource;let h;if(s.media)c&&(a=s.transferMedia(),this.detachedData=a),h="Primary";else if(f){const b=this.getBufferingPlayer();b?(a=b.transferMedia(),h=`${b}`):h="detached MediaSource"}else h="detached media";if(!a){if(f)a=this.detachedData,this.log(`using detachedData: MediaSource ${bo(a)}`);else if(!this.detachedData||s.media===n){const b=this.playerQueue;b.length>1&&b.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",m=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(m===a&&g){const b=l&&t.assetId===g.assetIdAtEnd;m.overrides={duration:g.duration,endOfStream:!l||b,cueRemoval:!l}}t.attachMedia(m)}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(uT("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=X9(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=X9(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&&nd(a)}) pos: ${this.timelinePos}`);const s=this.waitingItem||this.playingItem,l=this.playingLastItem;if(this.isInterstitial(s)){const h=s.event,p=this.playingAsset,m=p?.identifier,g=m?this.getAssetPlayer(m):null;if(g&&m&&(!this.eventItemsMatch(s,a)||n!==void 0&&m!==h.assetList[n].identifier)){var c;const b=h.findAssetIndex(p);if(this.log(`INTERSTITIAL_ASSET_ENDED ${b+1}/${h.assetList.length} ${Cy(p)}`),this.endedAsset=p,this.playingAsset=null,this.hls.trigger(Te.INTERSTITIAL_ASSET_ENDED,{asset:p,assetListIndex:b,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),b);return}this.retreiveMediaSource(m,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} ${nd(s)}`),h.hasPlayed=!0,this.hls.trigger(Te.INTERSTITIAL_ENDED,{event:h,schedule:o.slice(0),scheduleIndex:t}),h.cue.once)){var f;this.updateSchedule();const b=(f=this.schedule)==null?void 0:f.items;if(a&&b){const S=this.findItemIndex(a);this.advanceSchedule(S,b,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,f=this.playerQueue;if(f.length&&f.forEach(h=>{const p=h.interstitial,m=s.findEventIndex(p.identifier);(mt+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 b=X9(h,r-1);if(h.isAssetPastPlayoutLimit(b)||h.appendInPlace&&this.timelinePos===l.end){this.advanceAfterAssetEnded(h,t,r);return}r=b}const p=this.waitingItem;this.assetsBuffered(l,c)||this.setBufferingItem(l);let m=this.preloadAssets(h,r);if(this.eventItemsMatch(l,p||o)||(this.waitingItem=l,this.log(`INTERSTITIAL_STARTED ${nd(l)} ${h.appendInPlace?"append in place":""}`),this.hls.trigger(Te.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(m||(m=this.getAssetPlayer(g.identifier)),m===null||m.destroyed){const b=h.assetList.length;this.warn(`asset ${r+1}/${b} player destroyed ${h}`),m=this.createAssetPlayer(h,g,r),m.loadSource()}if(!this.eventItemsMatch(l,this.bufferingItem)&&h.appendInPlace&&this.isAssetBuffered(g))return;this.startAssetPlayer(m,r,n,t,c),this.shouldPlay&&Qae(m.media)}else l?(this.resumePrimary(l,t,o),this.shouldPlay&&Qae(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 ${nd(t)}`),!((o=this.detachedData)!=null&&o.mediaSource)){let l=this.timelinePos;(l=t.end)&&(l=this.getPrimaryResumption(t,n),this.log(uT("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 ${nd(t)}`),this.hls.trigger(Te.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:Or.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(uT("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(Te.BUFFER_CODECS,this.onBufferCodecs,this),this.hls.on(Te.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=ro(ro({},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=ro(ro({},this.altSelection),{},{audio:r});return}const a=ro(ro({},o),{},{audio:r});this.mediaSelection=a}onSubtitleTrackUpdated(t,n){const r=this.hls.subtitleTracks[n.id],o=this.mediaSelection;if(!o){this.altSelection=ro(ro({},this.altSelection),{},{subtitles:r});return}const a=ro(ro({},o),{},{subtitles:r});this.mediaSelection=a}onAudioTrackSwitching(t,n){const r=aae(n);this.playerQueue.forEach(({hls:o})=>o&&(o.setAudioOption(n)||o.setAudioOption(r)))}onSubtitleTrackSwitch(t,n){const r=aae(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=Or.bufferInfo(this.primaryMedia,r,0);(o.end>r||(o.nextStart||0)>r)&&(this.log(`trim buffered interstitial ${nd(t)} (was ${nd(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=Or.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||(f=m.event)!=null&&f.appendInPlace&&t+.01>=m.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(m);else{const g=this.primaryDetails;this.primaryLive&&g&&t>g.edge-g.targetduration&&m.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 ${nd(t)}`+(n?` (${c.toFixed(2)} remaining)`:"")),!this.playbackDisabled)if(s){const f=r.findAssetIndex(t.event,this.bufferedPos);t.event.assetList.forEach((h,p)=>{const m=this.getAssetPlayer(h.identifier);m&&(p===f&&m.loadSource(),m.resumeBuffering())})}else this.hls.resumeBuffering(),this.playerQueue.forEach(f=>f.pauseBuffering());this.hls.trigger(Te.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 m=this.playingItem;!this.isInterstitial(m)&&(m==null||(l=m.nextEvent)==null?void 0:l.identifier)===t.identifier&&this.flushFrontBuffer(c+.25)}let f,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 m=h-c;m>0&&(f=Math.round(m*1e3)/1e3)}if(this.log(`Load interstitial asset ${n+1}/${r?1:o} ${t}${f?` live-start: ${h} start-offset: ${f}`:""}`),r)return this.createAsset(t,0,0,c,t.duration,r);const p=this.assetListLoader.loadAssetList(t,f);p&&(t.assetListLoader=p)}else if(!s&&o){for(let f=n;f{this.hls.trigger(Te.BUFFER_FLUSHING,{startOffset:t,endOffset:1/0,type:o})})}getAssetPlayerQueueIndex(t){const n=this.playerQueue;for(let r=0;r1){const A=n.duration;A&&_{if(_.live){var A;const D=new Error(`Interstitials MUST be VOD assets ${t}`),N={fatal:!0,type:or.OTHER_ERROR,details:Ht.INTERSTITIAL_ASSET_ITEM_ERROR,error:D},L=((A=this.schedule)==null?void 0:A.findEventIndex(t.identifier))||-1;this.handleAssetItemError(N,t,L,r,D.message);return}const R=_.edge-_.fragmentStart,M=n.duration;(S||M===null||R>M)&&(S=!1,this.log(`Interstitial asset "${p}" duration change ${M} > ${R}`),n.duration=R,this.updateSchedule())};b.on(Te.LEVEL_UPDATED,(_,{details:A})=>k(A)),b.on(Te.LEVEL_PTS_UPDATED,(_,{details:A})=>k(A)),b.on(Te.EVENT_CUE_ENTER,()=>this.onInterstitialCueEnter());const C=(_,A)=>{const R=this.getAssetPlayer(p);if(R&&A.tracks){R.off(Te.BUFFER_CODECS,C),R.tracks=A.tracks;const M=this.primaryMedia;this.bufferingAsset===R.assetItem&&M&&!R.media&&this.bufferAssetPlayer(R,M)}};b.on(Te.BUFFER_CODECS,C);const x=()=>{var _;const A=this.getAssetPlayer(p);if(this.log(`buffered to end of asset ${A}`),!A||!this.schedule)return;const R=this.schedule.findEventIndex(t.identifier),M=(_=this.schedule.items)==null?void 0:_[R];this.isInterstitial(M)&&this.advanceAssetBuffering(M,n)};b.on(Te.BUFFERED_TO_END,x);const E=_=>()=>{if(!this.getAssetPlayer(p)||!this.schedule)return;this.shouldPlay=!0;const R=this.schedule.findEventIndex(t.identifier);this.advanceAfterAssetEnded(t,R,_)};return b.once(Te.MEDIA_ENDED,E(r)),b.once(Te.PLAYOUT_LIMIT_REACHED,E(1/0)),b.on(Te.ERROR,(_,A)=>{if(!this.schedule)return;const R=this.getAssetPlayer(p);if(A.details===Ht.BUFFER_STALLED_ERROR){if(R!=null&&R.appendInPlace){this.handleInPlaceStall(t);return}this.onTimeupdate(),this.checkBuffer(!0);return}this.handleAssetItemError(A,t,this.schedule.findEventIndex(t.identifier),r,`Asset player error ${A.error} ${t}`)}),b.on(Te.DESTROYING,()=>{if(!this.getAssetPlayer(p)||!this.schedule)return;const A=new Error(`Asset player destroyed unexpectedly ${p}`),R={fatal:!0,type:or.OTHER_ERROR,details:Ht.INTERSTITIAL_ASSET_ITEM_ERROR,error:A};this.handleAssetItemError(R,t,this.schedule.findEventIndex(t.identifier),r,A.message)}),this.log(`INTERSTITIAL_ASSET_PLAYER_CREATED ${Cy(n)}`),this.hls.trigger(Te.INTERSTITIAL_ASSET_PLAYER_CREATED,{asset:n,assetListIndex:r,event:t,player:b}),b}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&&nd(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,f=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}/${f} ${Cy(l)}`),this.hls.trigger(Te.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 f=this.getBufferingPlayer();if(f===t)return;const h=a.appendInPlace;if(h&&f?.interstitial.appendInPlace===!1)return;const p=f?.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&&!Mye(p,t.tracks)){const m=new Error(`Asset ${Cy(s)} SourceBuffer tracks ('${Object.keys(t.tracks)}') are not compatible with primary content tracks ('${Object.keys(p)}')`),g={fatal:!0,type:or.OTHER_ERROR,details:Ht.INTERSTITIAL_ASSET_ITEM_ERROR,error:m},b=a.findAssetIndex(s);this.handleAssetItemError(g,a,l,b,m.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,f=l.duration-c;if(this.warn(`Stalled at ${c} of ${c+f} in ${l} ${t} (media.currentTime: ${o})`),c&&(f/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=b;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: ${f}) ${a}`);const p=this.waitingItem,m=p?.event.identifier===s;this.updateSchedule();const g=(o=this.bufferingItem)==null?void 0:o.event;if(m){var b;const S=this.schedule.findEventIndex(s),k=(b=this.schedule.items)==null?void 0:b[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 Jae=500;class SEt extends AW{constructor(t,n,r){super(t,n,r,"subtitle-stream-controller",Yn.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(Te.LEVEL_LOADED,this.onLevelLoaded,this),t.on(Te.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.on(Te.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),t.on(Te.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),t.on(Te.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),t.on(Te.BUFFER_FLUSHING,this.onBufferFlushing,this)}unregisterListeners(){super.unregisterListeners();const{hls:t}=this;t.off(Te.LEVEL_LOADED,this.onLevelLoaded,this),t.off(Te.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.off(Te.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),t.off(Te.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),t.off(Te.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),t.off(Te.BUFFER_FLUSHING,this.onBufferFlushing,this)}startLoad(t,n){this.stopLoad(),this.state=tn.IDLE,this.setInterval(Jae),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)||(zs(r)&&(this.fragPrevious=r),this.state=tn.IDLE),!o)return;const a=this.tracksBuffered[this.currentTrackId];if(!a)return;let s;const l=r.start;for(let f=0;f=a[f].start&&l<=a[f].end){s=a[f];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 ck(r));return}this.tracksBuffered=[],this.levels=n.map(r=>{const o=new ck(r);return this.tracksBuffered[o.id]=[],o}),this.fragmentTracker.removeFragmentsInRange(0,Number.POSITIVE_INFINITY,Yn.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!==tn.STOPPED&&this.setInterval(Jae)}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 f=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 m=p.fragments[0];if(!c.details)s.hasProgramDateTime&&p.hasProgramDateTime?(FI(s,p),f=s.fragmentStart):m&&(f=m.start,qU(s,f));else{var h;f=this.alignPlaylists(s,c.details,(h=this.levelLastLoaded)==null?void 0:h.details),f===0&&m&&(f=m.start,qU(s,f))}p&&!this.startFragRequested&&this.setStartPosition(p,f)}c.details=s,this.levelLastLoaded=c,l===o&&(this.hls.trigger(Te.SUBTITLE_TRACK_UPDATED,{details:s,id:l,groupId:n.groupId}),this.tick(),s.live&&!this.fragCurrent&&this.media&&this.state===tn.IDLE&&(Ag(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&&i1(o.method)){const s=performance.now();this.decrypter.decrypt(new Uint8Array(r),o.key.buffer,o.iv.buffer,EW(o.method)).catch(l=>{throw a.trigger(Te.ERROR,{type:or.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(Te.FRAG_DECRYPTED,{frag:n,payload:l,stats:{tstart:s,tdecrypt:c}})}).catch(l=>{this.warn(`${l.name}: ${l.message}`),this.state=tn.IDLE})}}doTick(){if(!this.media){this.state=tn.IDLE;return}if(this.state===tn.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=Or.bufferedInfo(this.tracksBuffered[this.currentTrackId]||[],a,o.maxBufferHole),{end:l,len:c}=s,f=r.details,h=this.hls.maxBufferLength+f.levelTargetDuration;if(c>h)return;const p=f.fragments,m=p.length,g=f.edge;let b=null;const S=this.fragPrevious;if(lg-x?0:x;b=Ag(S,p,Math.max(p[0].start,l),E),!b&&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 wEt={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},Q1e=e=>String.fromCharCode(wEt[e]||e),ud=15,nh=100,CEt={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},xEt={17:2,18:4,21:6,22:8,23:10,19:13,20:15},EEt={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},TEt={25:2,26:4,29:6,30:8,31:10,27:13,28:15},AEt=["white","green","blue","cyan","red","yellow","magenta","black","transparent"];class IEt{constructor(){this.time=null,this.verboseLevel=0}log(t,n){if(this.verboseLevel>=t){const r=typeof n=="function"?n():n;oo.log(`${this.time} [${t}] ${r}`)}}}const Am=function(t){const n=[];for(let r=0;rnh&&(this.logger.log(3,"Too large cursor position "+this.pos),this.pos=nh)}moveCursor(t){const n=this.pos+t;if(t>1)for(let r=this.pos+1;r=144&&this.backSpace();const n=Q1e(t);if(this.pos>=nh){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 = "+bo(t));let n=t.row-1;if(this.nrRollUpRows&&n"bkgData = "+bo(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 ele{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 Z9(r),this.nonDisplayedMemory=new Z9(r),this.lastOutputScreen=new Z9(r),this.currRollUpRow=this.displayedMemory.rows[ud-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[ud-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: "+bo(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 tle{constructor(t,n,r){this.channels=void 0,this.currentChannel=0,this.cmdHistory=MEt(),this.logger=void 0;const o=this.logger=new IEt;this.channels=[null,new ele(t,n,o),new ele(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"["+Am([n[r],n[r+1]])+"] -> ("+Am([o,a])+")");const c=this.cmdHistory;if(o>=16&&o<=31){if(REt(o,a,c)){cT(null,null,c),this.logger.log(3,()=>"Repeated command ("+Am([o,a])+") is dropped");continue}cT(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 cT(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 "+Am([o,a])+" orig: "+Am([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 ("+Am([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?CEt[t]:EEt[t]:r=s===1?xEt[t]:TEt[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 '"+Q1e(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 = "+Am(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=AEt[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.");R=L,this.hasBeenReset=!0}})),Object.defineProperty(h,"positionAlign",a({},p,{get:function(){return M},set:function(L){const B=o(L);if(!B)throw new SyntaxError("An invalid or illegal string was specified.");M=B,this.hasBeenReset=!0}})),Object.defineProperty(h,"size",a({},p,{get:function(){return D},set:function(L){if(L<0||L>100)throw new Error("Size must be between 0 and 100.");D=L,this.hasBeenReset=!0}})),Object.defineProperty(h,"align",a({},p,{get:function(){return N},set:function(L){const B=o(L);if(!B)throw new SyntaxError("An invalid or illegal string was specified.");N=B,this.hasBeenReset=!0}})),h.displayState=void 0}return s.prototype.getCueAsHTML=function(){return self.WebVTT.convertCueToDOMTree(self,this.text)},s})();class DEt{decode(t,n){if(!t)return"";if(typeof t!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(t))}}function ebe(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 OEt=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 tbe(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 nV=new jW(0,0,""),dT=nV.align==="middle"?"middle":"center";function $Et(e,t,n){const r=e;function o(){const l=ebe(e);if(l===null)throw new Error("Malformed timestamp: "+r);return e=e.replace(/^[^\sa-zA-Z-]+/,""),l}function a(l,c){const f=new OEt;tbe(l,function(m,g){let b;switch(m){case"region":for(let S=n.length-1;S>=0;S--)if(n[S].id===g){f.set(m,n[S].region);break}break;case"vertical":f.alt(m,g,["rl","lr"]);break;case"line":b=g.split(","),f.integer(m,b[0]),f.percent(m,b[0])&&f.set("snapToLines",!1),f.alt(m,b[0],["auto"]),b.length===2&&f.alt("lineAlign",b[1],["start",dT,"end"]);break;case"position":b=g.split(","),f.percent(m,b[0]),b.length===2&&f.alt("positionAlign",b[1],["start",dT,"end","line-left","line-right","auto"]);break;case"size":f.percent(m,g);break;case"align":f.alt(m,g,["start",dT,"end","left","right"]);break}},/:/,/\s/),c.region=f.get("region",null),c.vertical=f.get("vertical","");let h=f.get("line","auto");h==="auto"&&nV.line===-1&&(h=-1),c.line=h,c.lineAlign=f.get("lineAlign","start"),c.snapToLines=f.get("snapToLines",!0),c.size=f.get("size",100),c.align=f.get("align",dT);let p=f.get("position","auto");p==="auto"&&nV.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 nbe(e){return e.replace(//gi,` `)}class NEt{constructor(){this.state="INITIAL",this.buffer="",this.decoder=new DEt,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=nbe(a);s")===-1){n.cue.id=a;continue}case"CUE":if(!n.cue){n.state="BADCUE";continue}try{$Et(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 BEt=/\r\n|\n\r|\n|\r/g,Q9=function(t,n,r=0){return t.slice(r,r+n.length)===n},FEt=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(!Dn(n)||!Dn(r)||!Dn(o)||!Dn(a))throw Error(`Malformed X-TIMESTAMP-MAP: Local:${t}`);return n+=1e3*r,n+=60*1e3*o,n+=3600*1e3*a,n};function UW(e,t,n){return g2(e.toString())+g2(t.toString())+g2(n)}const jEt=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 UEt(e,t,n,r,o,a,s){const l=new NEt,c=nc(new Uint8Array(e)).trim().replace(BEt,` `).split(` `),f=[],h=t?KCt(t.baseTime,t.timescale):0;let p="00:00.000",m=0,g=0,b,S=!0;l.oncue=function(k){const C=n[r];let x=n.ccOffset;const E=(m-h)/9e4;if(C!=null&&C.new&&(g!==void 0?x=n.ccOffset=C.start:jEt(n,r,E)),E){if(!t){b=new Error("Missing initPTS for VTT MPEGTS");return}x=E-n.presentationOffset}const _=k.endTime-k.startTime,A=qu((k.startTime+x-g)*9e4,o*9e4)/9e4;k.startTime=Math.max(A,0),k.endTime=Math.max(A+_,0);const R=k.text.trim();k.text=decodeURIComponent(encodeURIComponent(R)),k.id||(k.id=UW(k.startTime,k.endTime,R)),k.endTime>0&&f.push(k)},l.onparsingerror=function(k){b=k},l.onflush=function(){if(b){s(b);return}a(f)},c.forEach(k=>{if(S)if(Q9(k,"X-TIMESTAMP-MAP=")){S=!1,k.slice(16).split(",").forEach(C=>{Q9(C,"LOCAL:")?p=C.slice(6):Q9(C,"MPEGTS:")&&(m=parseInt(C.slice(7)))});try{g=FEt(p)/1e3}catch(C){b=C}return}else k===""&&(S=!1);l.parse(k+` `)}),l.flush()}const J9="stpp.ttml.im1t",rbe=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,ibe=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,VEt={left:"start",center:"center",right:"end",start:"start",end:"end"};function nle(e,t,n,r){const o=li(new Uint8Array(e),["mdat"]);if(o.length===0){r(new Error("Could not parse IMSC1 mdat"));return}const a=o.map(l=>nc(l)),s=GCt(t.baseTime,1,t.timescale);try{a.forEach(l=>n(zEt(l,s)))}catch(l){r(l)}}function zEt(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,m)=>(p[m]=o.getAttribute(`ttp:${m}`)||a[m],p),{}),l=o.getAttribute("xml:space")!=="preserve",c=rle(eF(o,"styling","style")),f=rle(eF(o,"layout","region")),h=eF(o,"body","[begin]");return[].map.call(h,p=>{const m=obe(p,l);if(!m||!p.hasAttribute("begin"))return null;const g=nF(p.getAttribute("begin"),s),b=nF(p.getAttribute("dur"),s);let S=nF(p.getAttribute("end"),s);if(g===null)throw ile(p);if(S===null){if(b===null)throw ile(p);S=g+b}const k=new jW(g-t,S-t,m);k.id=UW(k.startTime,k.endTime,k.text);const C=f[p.getAttribute("region")],x=c[p.getAttribute("style")],E=HEt(C,x,c),{textAlign:_}=E;if(_){const A=VEt[_];A&&(k.lineAlign=A),k.align=_}return uo(k,E),k}).filter(p=>p!==null)}function eF(e,t,n){const r=e.getElementsByTagName(t)[0];return r?[].slice.call(r.querySelectorAll(n)):[]}function rle(e){return e.reduce((t,n)=>{const r=n.getAttribute("xml:id");return r&&(t[r]=n),t},{})}function obe(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?obe(r,t):t?n+r.textContent.trim().replace(/\s+/g," "):n+r.textContent},"")}function HEt(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 f=tF(t,r,c)||tF(e,r,c)||tF(o,r,c);return f&&(l[c]=f),l},{})}function tF(e,t,n){return e&&e.hasAttributeNS(t,n)?e.getAttributeNS(t,n):null}function ile(e){return new Error(`Could not parse ttml timestamp ${e}`)}function nF(e,t){if(!e)return null;let n=ebe(e);return n===null&&(rbe.test(e)?n=WEt(e,t):ibe.test(e)&&(n=GEt(e,t))),n}function WEt(e,t){const n=rbe.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 GEt(e,t){const n=ibe.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 fT{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 KEt{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=sle(),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(Te.MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(Te.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(Te.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Te.MANIFEST_LOADED,this.onManifestLoaded,this),t.on(Te.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.on(Te.FRAG_LOADING,this.onFragLoading,this),t.on(Te.FRAG_LOADED,this.onFragLoaded,this),t.on(Te.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),t.on(Te.FRAG_DECRYPTED,this.onFragDecrypted,this),t.on(Te.INIT_PTS_FOUND,this.onInitPtsFound,this),t.on(Te.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),t.on(Te.BUFFER_FLUSHING,this.onBufferFlushing,this)}destroy(){const{hls:t}=this;t.off(Te.MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(Te.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(Te.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Te.MANIFEST_LOADED,this.onManifestLoaded,this),t.off(Te.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.off(Te.FRAG_LOADING,this.onFragLoading,this),t.off(Te.FRAG_LOADED,this.onFragLoaded,this),t.off(Te.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),t.off(Te.FRAG_DECRYPTED,this.onFragDecrypted,this),t.off(Te.INIT_PTS_FOUND,this.onInitPtsFound,this),t.off(Te.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),t.off(Te.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=this.media=null,this.cea608Parser1=this.cea608Parser2=void 0}initCea608Parsers(){const t=new fT(this,"textTrack1"),n=new fT(this,"textTrack2"),r=new fT(this,"textTrack3"),o=new fT(this,"textTrack4");this.cea608Parser1=new tle(1,t,n),this.cea608Parser2=new tle(3,r,o)}addCues(t,n,r,o,a){let s=!1;for(let l=a.length;l--;){const c=a[l],f=qEt(c[0],c[1],n,r);if(f>=0&&(c[0]=Math.min(c[0],n),c[1]=Math.max(c[1],r),s=!0,f/(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(Te.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===Yn.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(Te.FRAG_LOADED,c):this.hls.trigger(Te.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{My(o[a]),delete o[a]}),this.nonNativeCaptionsTracks={}}onManifestLoading(){this.lastCc=-1,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=sle(),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===J9);if(this.config.enableWebVTT||o&&this.config.enableIMSC1){if($1e(this.tracks,r)){this.tracks=r;return}if(this.textTracks=[],this.tracks=r,this.config.renderTextTracksNatively){const s=this.media,l=s?sA(s.textTracks):null;if(this.tracks.forEach((c,f)=>{let h;if(l){let p=null;for(let m=0;mf!==null).map(f=>f.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(Te.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===Yn.MAIN){var r,o;const{cea608Parser1:a,cea608Parser2:s,lastSn:l}=this,{cc:c,sn:f}=n.frag,h=(r=(o=n.part)==null?void 0:o.index)!=null?r:-1;a&&s&&(f!==l+1||f===l&&h!==this.lastPartIndex+1||c!==this.lastCc)&&(a.reset(),s.reset()),this.lastCc=c,this.lastSn=f,this.lastPartIndex=h}}onFragLoaded(t,n){const{frag:r,payload:o}=n;if(r.type===Yn.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===J9?this._parseIMSC1(r,o):this._parseVTTs(n)}}else this.hls.trigger(Te.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:r,error:new Error("Empty subtitle payload")})}_parseIMSC1(t,n){const r=this.hls;nle(n,this.initPTS[t.cc],o=>{this._appendCues(o,t.level),r.trigger(Te.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:t})},o=>{r.logger.log(`Failed to parse IMSC1: ${o}`),r.trigger(Te.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,f=(n=r.initSegment)!=null&&n.data?zc(r.initSegment.data,new Uint8Array(o)).buffer:o;UEt(f,this.initPTS[r.cc],this.vttCCs,r.cc,r.start,h=>{this._appendCues(h,r.level),c.trigger(Te.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(Te.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:r,error:h})})}_fallbackToIMSC1(t,n){const r=this.tracks[t.level];r.textCodec||nle(n,this.initPTS[t.cc],()=>{r.textCodec=J9,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=>X1e(o,a))}else{const o=this.tracks[n];if(!o)return;const a=o.default?"default":"subtitles"+n;r.trigger(Te.CUES_PARSED,{type:"subtitles",cues:t,track:a})}}onFragDecrypted(t,n){const{frag:r}=n;r.type===Yn.SUBTITLE&&this.onFragLoaded(Te.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===Yn.MAIN&&this.closedCaptionsForLevel(r)==="NONE"))for(let a=0;atV(l[c],n,r))}if(this.config.renderTextTracksNatively&&n===0&&o!==void 0){const{textTracks:l}=this;Object.keys(l).forEach(c=>tV(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=nbe(f.trim()),b=UW(t,n,g);e!=null&&(p=e.cues)!=null&&p.getCueById(b)||(s=new h(t,n,g),s.id=b,s.line=m+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((m,g)=>m.line==="auto"||g.line==="auto"?0:m.line>8&&g.line>8?g.line-m.line:m.line-g.line),o.forEach(m=>X1e(e,m))),o}};function ZEt(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch{}return!1}const QEt=/(\d+)-(\d+)\/(\d+)/;class ale{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||nTt,this.controller=new self.AbortController,this.stats=new bW}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=JEt(t,this.controller.signal),s=t.responseType==="arraybuffer",l=s?"byteLength":"length",{maxTimeToFirstByteMs:c,maxLoadTimeMs:f}=n.loadPolicy;this.context=t,this.config=n,this.callbacks=r,this.request=this.fetchSetup(t,a),self.clearTimeout(this.requestTimeout),n.timeout=c&&Dn(c)?c:f,this.requestTimeout=self.setTimeout(()=>{this.callbacks&&(this.abortInternal(),this.callbacks.onTimeout(o,t,this.response))},n.timeout),(hk(this.request)?this.request.then(self.fetch):self.fetch(this.request)).then(p=>{var m;this.response=this.loader=p;const g=Math.max(self.performance.now(),o.loading.start);if(self.clearTimeout(this.requestTimeout),n.timeout=f,this.requestTimeout=self.setTimeout(()=>{this.callbacks&&(this.abortInternal(),this.callbacks.onTimeout(o,t,this.response))},f-(g-o.loading.start)),!p.ok){const{status:S,statusText:k}=p;throw new rTt(k||"fetch, bad network response",S,p)}o.loading.first=g,o.total=tTt(p.headers)||o.total;const b=(m=this.callbacks)==null?void 0:m.onProgress;return b&&Dn(n.highWaterMark)?this.loadProgressively(p,o,t,n.highWaterMark,b):s?p.arrayBuffer():t.responseType==="json"?p.json():p.text()}).then(p=>{var m,g;const b=this.response;if(!b)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:b.url,data:p,code:b.status},C=(m=this.callbacks)==null?void 0:m.onProgress;C&&!Dn(n.highWaterMark)&&C(o,t,p,b),(g=this.callbacks)==null||g.onSuccess(k,o,t,b)}).catch(p=>{var m;if(self.clearTimeout(this.requestTimeout),o.aborted)return;const g=p&&p.code||0,b=p?p.message:null;(m=this.callbacks)==null||m.onError({code:g,text:b},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 m1e,l=t.body.getReader(),c=()=>l.read().then(f=>{if(f.done)return s.dataLength&&a(n,r,s.flush().buffer,t),Promise.resolve(new ArrayBuffer(0));const h=f.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 JEt(e,t){const n={method:"GET",mode:"cors",credentials:"same-origin",signal:t,headers:new self.Headers(uo({},e.headers))};return e.rangeEnd&&n.headers.set("Range","bytes="+e.rangeStart+"-"+String(e.rangeEnd-1)),n}function eTt(e){const t=QEt.exec(e);if(t)return parseInt(t[2])-parseInt(t[1])+1}function tTt(e){const t=e.get("Content-Range");if(t){const r=eTt(t);if(Dn(r))return r}const n=e.get("Content-Length");if(n)return parseInt(n)}function nTt(e,t){return new self.Request(e.url,t)}class rTt extends Error{constructor(t,n,r){super(t),this.code=void 0,this.details=void 0,this.code=n,this.details=r}}const iTt=/^age:\s*[\d.]+\s*$/im;class abe{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 bW,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&&Dn(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 f=n.status,h=n.responseType==="text"?n.responseText:null;if(f>=200&&f<300){const b=h??n.response;if(b!=null){var s,l;r.loading.end=Math.max(self.performance.now(),r.loading.first);const S=n.responseType==="arraybuffer"?b.byteLength:b.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,b,n);const C={url:n.responseURL,data:b,code:f};(l=this.callbacks)==null||l.onSuccess(C,r,t,n);return}}const p=a.loadPolicy.errorRetry,m=r.retry,g={url:t.url,data:void 0,code:f};if($I(p,m,!1,g))this.retry(p);else{var c;oo.error(`${f} while loading ${t.url}`),(c=this.callbacks)==null||c.onError({code:f,text:n.statusText},t,n,r)}}}loadtimeout(){if(!this.config)return;const t=this.config.loadPolicy.timeoutRetry,n=this.stats.retry;if($I(t,n,!0))this.retry(t);else{var r;oo.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=wW(t,r.retry),r.retry++,oo.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&&iTt.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 oTt={maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:null,errorRetry:null},sTt=ro(ro({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:abe,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:ywt,bufferController:lxt,capLevelController:NW,errorController:wwt,fpsController:uEt,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:o1e,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:oTt},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},aTt()),{},{subtitleStreamController:SEt,subtitleTrackController:fEt,timelineController:KEt,audioStreamController:ixt,audioTrackController:oxt,emeController:o1,cmcdController:oEt,contentSteeringController:aEt,interstitialsController:_Et});function aTt(){return{cueHandler:XEt,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 lTt(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=rV(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,f=[];a.forEach(h=>{const p=`${s}Loading${h}`,m=t[p];if(m!==void 0&&c){f.push(p);const g=r[l].default;switch(t[l]={default:g},h){case"TimeOut":g.maxLoadTimeMs=m,g.maxTimeToFirstByteMs=m;break;case"MaxRetry":g.errorRetry.maxNumRetry=m,g.timeoutRetry.maxNumRetry=m;break;case"RetryDelay":g.errorRetry.retryDelayMs=m,g.timeoutRetry.retryDelayMs=m;break;case"MaxRetryTimeout":g.errorRetry.maxRetryDelayMs=m,g.timeoutRetry.maxRetryDelayMs=m;break}}}),f.length&&n.warn(`hls.js config: "${f.join('", "')}" setting(s) are deprecated, use "${l}": ${bo(t[l])}`)}),ro(ro({},r),t)}function rV(e){return e&&typeof e=="object"?Array.isArray(e)?e.map(rV):Object.keys(e).reduce((t,n)=>(t[n]=rV(e[n]),t),{}):e}function uTt(e,t){const n=e.loader;n!==ale&&n!==abe?(t.log("[config]: Custom loader detected, cannot enable progressive streaming"),e.progressive=!1):ZEt()&&(e.loader=ale,e.progressive=!0,e.enableSoftwareAES=!0,t.log("[config]: Progressive streaming enabled, using FetchLoader"))}const aA=2,cTt=.1,dTt=.05,fTt=100;class hTt extends e1e{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(Te.MEDIA_ENDED,{stalled:!1})}},this.hls=t,this.fragmentTracker=n,this.registerListeners()}registerListeners(){const{hls:t}=this;t&&(t.on(Te.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(Te.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(Te.BUFFER_APPENDED,this.onBufferAppended,this))}unregisterListeners(){const{hls:t}=this;t&&(t.off(Te.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(Te.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(Te.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(fTt),this.mediaSource=n.mediaSource;const r=this.media=n.media;Ul(r,"playing",this.onMediaPlaying),Ul(r,"waiting",this.onMediaWaiting),Ul(r,"ended",this.onMediaEnded)}onMediaDetaching(t,n){this.clearInterval();const{media:r}=this;r&&(bu(r,"playing",this.onMediaPlaying),bu(r,"waiting",this.onMediaWaiting),bu(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,f=!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(f||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(Te.MEDIA_ENDED,{stalled:!1}));return}if(!Or.getBuffered(s).length){this.nudgeRetry=0;return}const p=Or.bufferInfo(s,t,0),m=p.nextStart||0,g=this.fragmentTracker;if(l&&g&&this.hls){const R=lle(this.hls.inFlightFragments,t),M=p.len>aA,D=!m||R||m-t>aA&&!g.getPartialFragment(t);if(M||D)return;this.moved=!1}const b=(o=this.hls)==null?void 0:o.latestLevelDetails;if(!this.moved&&this.stalled!==null&&g){if(!(p.len>0)&&!m)return;const M=Math.max(m,p.start||0)-t,N=!!(b!=null&&b.live)?b.targetduration*2:aA,L=hT(t,g);if(M>0&&(M<=N||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"&&!(b!=null&&b.live)&&Math.abs(t-(b?.edge||0))<1){if(this.ended)return;this.ended=t||1,this.hls.trigger(Te.MEDIA_ENDED,{stalled:!0});return}if(this._reportStall(p),!this.media||!this.hls)return}const A=Or.bufferInfo(s,t,a.maxBufferHole);this._tryFixBufferStall(A,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(Te.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=Or.bufferedInfo(Or.timeRangesToArray(this.buffered.audio),t,0);if(a.len>1&&n>=a.start){const s=Or.timeRangesToArray(o),l=Or.bufferedInfo(s,n,0).bufferedIndex;if(l>-1&&ll)&&h-f<1&&t-f<2){const p=new Error(`nudging playhead to flush pipeline after video hole. currentTime: ${t} hole: ${f} -> ${h} buffered index: ${c}`);this.warn(p.message),this.media.currentTime+=1e-6;let m=hT(t,this.fragmentTracker);m&&"fragment"in m?m=m.fragment:m||(m=void 0);const g=Or.bufferInfo(this.media,t,0);this.hls.trigger(Te.ERROR,{type:or.MEDIA_ERROR,details:Ht.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:p,reason:p.message,frag:m,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 f=(a=this.hls)==null?void 0:a.latestLevelDetails,h=hT(r,s);if((h||f!=null&&f.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,Yn.MAIN),s=r.getFragAtPos(o,Yn.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 (${bo(t)})`);this.warn(s.message),n.trigger(Te.ERROR,{type:or.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=Or.bufferInfo(o,s,0),c=s0&&l.len<1&&o.readyState<3,m=c-s;if(m>0&&(h||p)){if(m>a.maxBufferHole){let b=!1;if(s===0){const S=r.getAppendedFrag(0,Yn.MAIN);S&&c"u"))return self.VTTCue||self.TextTrackCue}function rF(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,bo(o?ro({type:o},r):r))}return a}const pT=(()=>{const e=iV();try{e&&new e(0,Number.POSITIVE_INFINITY,"")}catch{return Number.MAX_VALUE}return Number.POSITIVE_INFINITY})();class vTt{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(Te.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(Te.MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(Te.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(Te.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(Te.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Te.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),t.on(Te.BUFFER_FLUSHING,this.onBufferFlushing,this),t.on(Te.LEVEL_UPDATED,this.onLevelUpdated,this),t.on(Te.LEVEL_PTS_UPDATED,this.onLevelPtsUpdated,this))}_unregisterListeners(){const{hls:t}=this;t&&(t.off(Te.MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(Te.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(Te.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(Te.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Te.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),t.off(Te.BUFFER_FLUSHING,this.onBufferFlushing,this),t.off(Te.LEVEL_UPDATED,this.onLevelUpdated,this),t.off(Te.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&&My(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;npT&&(p=pT),p-h<=0&&(p=h+pTt);for(let g=0;gh.type===Xu.audioId3&&c:o==="video"?f=h=>h.type===Xu.emsg&&l:f=h=>h.type===Xu.audioId3&&c||h.type===Xu.emsg&&l,tV(a,n,r,f)}}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=iV();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=rF(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:f}=t,h=Object.keys(f);let p=this.dateRangeCuesAppended;if(c&&n){var m;if((m=c.cues)!=null&&m.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 b=t.fragments[t.fragments.length-1];if(!(h.length===0||!Dn(b?.programDateTime))){this.id3Track||(this.id3Track=this.createTrack(this.media));for(let S=0;S{if(U!==C.id){const W=f[U];if(W.class===C.class&&W.startDate>C.startDate&&(!B||C.startDate.01&&(U.startTime=x,U.endTime=R);else if(l){let W=C.attr[B];Nwt(B)&&(W=Dye(W));const z=rF(l,x,R,{key:B,data:W},Xu.dateRange);z&&(z.id=k,this.id3Track.addCue(z),_[B]=z,s&&(B==="X-ASSET-LIST"||B==="X-ASSET-URL")&&z.addEventListener("enter",this.onEventCueEnter))}}p[k]={cues:_,dateRange:C,durationKnown:A}}}}}class mTt{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,f=Math.min(this.maxLatency,l+r.targetduration);if(c.05&&this.forwardBufferLength>1){const p=Math.min(2,Math.max(1,s)),m=Math.round(2/(1+Math.exp(-.75*c-this.edgeStalled))*20)/20,g=Math.min(p,Math.max(1,m));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 f=l&&r||n;(this._targetLatencyUpdated||c.liveSyncDuration||c.liveSyncDurationCount||f===0)&&(f=a!==void 0?a:s*o);const h=o;return f+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(Te.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(Te.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(Te.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Te.LEVEL_UPDATED,this.onLevelUpdated,this),t.on(Te.ERROR,this.onError,this))}unregisterListeners(){const{hls:t}=this;t&&(t.off(Te.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(Te.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(Te.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Te.LEVEL_UPDATED,this.onLevelUpdated,this),t.off(Te.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 gTt extends $W{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(Te.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Te.MANIFEST_LOADED,this.onManifestLoaded,this),t.on(Te.LEVEL_LOADED,this.onLevelLoaded,this),t.on(Te.LEVELS_UPDATED,this.onLevelsUpdated,this),t.on(Te.FRAG_BUFFERED,this.onFragBuffered,this),t.on(Te.ERROR,this.onError,this)}_unregisterListeners(){const{hls:t}=this;t.off(Te.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Te.MANIFEST_LOADED,this.onManifestLoaded,this),t.off(Te.LEVEL_LOADED,this.onLevelLoaded,this),t.off(Te.LEVELS_UPDATED,this.onLevelsUpdated,this),t.off(Te.FRAG_BUFFERED,this.onFragBuffered,this),t.off(Te.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,f=!1;n.levels.forEach(h=>{const p=h.attrs;let{audioCodec:m,videoCodec:g}=h;m&&(h.audioCodec=m=RI(m,r)||void 0),g&&(g=h.videoCodec=Jkt(g));const{width:b,height:S,unknownCodecs:k}=h,C=k?.length||0;if(l||(l=!!(b&&S)),c||(c=!!g),f||(f=!!m),C||m&&!this.isAudioSupported(m)||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":A,RESOLUTION:R,"VIDEO-RANGE":M}=p,N=`${`${A||"."}-`}${h.bitrate}-${R}-${E}-${x}-${M}-${_}`;if(a[N])if(a[N].uri!==h.url&&!h.attrs["PATHWAY-ID"]){const L=s[N]+=1;h.attrs["PATHWAY-ID"]=new Array(L+1).join(".");const B=this.createLevel(h);a[N]=B,o.push(B)}else a[N].addGroupId("audio",p.AUDIO),a[N].addGroupId("text",p.SUBTITLES);else{const L=this.createLevel(h);a[N]=L,s[N]=1,o.push(L)}}),this.filterAndSortMediaOptions(o,n,l,c,f)}createLevel(t){const n=new ck(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=Gye(o,[])}return n}isAudioSupported(t){return lk(t,"audio",this.hls.config.preferManagedMediaSource)}isVideoSupported(t){return lk(t,"video",this.hls.config.preferManagedMediaSource)}filterAndSortMediaOptions(t,n,r,o,a){var s;let l=[],c=[],f=t;const h=((s=n.stats)==null?void 0:s.parsing)||{};if((r||o)&&a&&(f=f.filter(({videoCodec:x,videoRange:E,width:_,height:A})=>(!!x||!!(_&&A))&&uwt(E))),f.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: ${bo(n.levels.map(A=>A.attrs.CODECS).filter((A,R,M)=>M.indexOf(A)===R))}`,this.warn(E),x+=` (${E})`);const _=new Error(x);this.hls.trigger(Te.ERROR,{type:or.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)),cle(l)),n.subtitles&&(c=n.subtitles,cle(c));const p=f.slice(0);f.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 MI.indexOf(x.videoRange)-MI.indexOf(E.videoRange);if(x.videoCodec!==E.videoCodec){const _=tae(x.videoCodec),A=tae(E.videoCodec);if(_!==A)return A-_}if(x.uri===E.uri&&x.codecSet!==E.codecSet){const _=PI(x.codecSet),A=PI(E.codecSet);if(_!==A)return A-_}return x.averageBitrate!==E.averageBitrate?x.averageBitrate-E.averageBitrate:0});let m=p[0];if(this.steering&&(f=this.steering.filterParsedLevels(f),f.length!==p.length)){for(let x=0;x_&&_===this.hls.abrEwmaDefaultEstimate&&(this.hls.bandwidthEstimate=A)}break}const b=a&&!o,S=this.hls.config,k=!!(S.audioStreamController&&S.audioTrackController),C={levels:f,audioTracks:l,subtitleTracks:c,sessionData:n.sessionData,sessionKeys:n.sessionKeys,firstLevel:this._firstLevel,stats:n.stats,audio:a,video:o,altAudio:k&&!b&&l.some(x=>!!x.url)};h.end=performance.now(),this.hls.trigger(Te.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(Te.ERROR,{type:or.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(Te.LEVEL_SWITCHING,c);const f=s.details;if(!f||f.live){const h=this.switchParams(s.uri,o?.details,f);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===vi.LEVEL&&n.context.level===this.level&&this.checkRetry(n)}onFragBuffered(t,{frag:n}){if(n!==void 0&&n.type===Yn.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(Te.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));h1e(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(Te.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(Te.MAX_AUTO_LEVEL_UPDATED,{autoLevelCapping:t,levels:this.levels,maxAutoLevel:n,minAutoLevel:this.hls.minAutoLevel,maxHdcpLevel:r}))}}function cle(e){const t={};e.forEach(n=>{const r=n.groupId||"";n.id=t[r]=t[r]||0,t[r]++})}function lbe(){return self.SourceBuffer||self.WebKitSourceBuffer}function ube(){if(!_v())return!1;const t=lbe();return!t||t.prototype&&typeof t.prototype.appendBuffer=="function"&&typeof t.prototype.remove=="function"}function yTt(){if(!ube())return!1;const e=_v();return typeof e?.isTypeSupported=="function"&&(["avc1.42E01E,mp4a.40.2","av01.0.01M.08","vp09.00.50.08"].some(t=>e.isTypeSupported(uk(t,"video")))||["mp4a.40.2","fLaC"].some(t=>e.isTypeSupported(uk(t,"audio"))))}function bTt(){var e;const t=lbe();return typeof(t==null||(e=t.prototype)==null?void 0:e.changeType)=="function"}const _Tt=100;class STt extends AW{constructor(t,n,r){super(t,n,r,"stream-controller",Yn.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||!Dn(a)||(this.log(`Media seeked to ${a.toFixed(3)}`),!this.getBufferedFrag(a)))return;const s=this.getFwdBufferInfoAtPos(o,a,Yn.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(Te.MANIFEST_PARSED,this.onManifestParsed,this),t.on(Te.LEVEL_LOADING,this.onLevelLoading,this),t.on(Te.LEVEL_LOADED,this.onLevelLoaded,this),t.on(Te.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),t.on(Te.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.on(Te.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),t.on(Te.BUFFER_CREATED,this.onBufferCreated,this),t.on(Te.BUFFER_FLUSHED,this.onBufferFlushed,this),t.on(Te.LEVELS_UPDATED,this.onLevelsUpdated,this),t.on(Te.FRAG_BUFFERED,this.onFragBuffered,this)}unregisterListeners(){super.unregisterListeners();const{hls:t}=this;t.off(Te.MANIFEST_PARSED,this.onManifestParsed,this),t.off(Te.LEVEL_LOADED,this.onLevelLoaded,this),t.off(Te.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),t.off(Te.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.off(Te.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),t.off(Te.BUFFER_CREATED,this.onBufferCreated,this),t.off(Te.BUFFER_FLUSHED,this.onBufferFlushed,this),t.off(Te.LEVELS_UPDATED,this.onLevelsUpdated,this),t.off(Te.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(_Tt),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=tn.IDLE,this.nextLoadPosition=this.lastCurrentTime=t+this.timelineOffset,this.startPosition=n?-1:t,this.tick()}else this._forceStartLoad=!0,this.state=tn.STOPPED}stopLoad(){this._forceStartLoad=!1,super.stopLoad()}doTick(){switch(this.state){case tn.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=tn.IDLE;break}else if(this.hls.nextLoadLevel!==this.level){this.state=tn.IDLE;break}break}case tn.FRAG_LOADING_WAITING_RETRY:this.checkRetryDate();break}this.state===tn.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(Te.BUFFER_EOS,S),this.state=tn.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 f=s.details;if(!f||this.state===tn.WAITING_LEVEL||this.waitForLive(s)){this.level=a,this.state=tn.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 m=this.backtrackFragment?this.backtrackFragment.start:l.end;let g=this.getNextFragment(m,f);if(this.couldBacktrack&&!this.fragPrevious&&g&&zs(g)&&this.fragmentTracker.getState(g)!==oa.OK){var b;const k=((b=this.backtrackFragment)!=null?b:g).sn-f.startSN,C=f.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,m)){if(!g.gap){const k=this.audioOnly&&!this.altAudio?yo.AUDIO:yo.VIDEO,C=(k===yo.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;C&&this.afterBufferFlushed(C,k,Yn.MAIN)}g=this.getNextFragmentLoopLoading(g,f,l,Yn.MAIN,p)}g&&(g.initSegment&&!g.initSegment.data&&!this.bitrateTest&&(g=g.initSegment),this.loadFragment(g,s,m))}loadFragment(t,n,r){const o=this.fragmentTracker.getState(t);o===oa.NOT_LOADED||o===oa.PARTIAL?zs(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,Yn.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(Te.AUDIO_TRACK_SWITCHED,n)}),r.trigger(Te.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:null});return}r.trigger(Te.AUDIO_TRACK_SWITCHED,n)}}onAudioTrackSwitched(t,n){const r=DI(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 f=r[l];f&&(this.videoBuffer=f.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===Yn.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===tn.PARSED&&(this.state=tn.IDLE);return}const l=o?o.stats:r.stats;this.fragLastKbps=Math.round(8*l.total/(l.buffering.end-l.loading.first)),zs(r)&&(this.fragPrevious=r),this.fragBufferedComplete(r,o)}const s=this.media;s&&(!this._hasEnoughToStart&&Or.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=tn.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(Yn.MAIN,n);break;case Ht.LEVEL_LOAD_ERROR:case Ht.LEVEL_LOAD_TIMEOUT:case Ht.LEVEL_PARSING_ERROR:!n.levelRetry&&this.state===tn.WAITING_LEVEL&&((r=n.context)==null?void 0:r.type)===vi.LEVEL&&(this.state=tn.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=tn.IDLE,this._hasEnoughToStart||(this.startFragRequested=!1,this.nextLoadPosition=this.lastCurrentTime),this.tickImmediate()}onBufferFlushed(t,{type:n}){if(n!==yo.AUDIO||!this.altAudio){const r=(n===yo.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;r&&(this.afterBufferFlushed(r,n,Yn.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=tn.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(Te.FRAG_LOADED,r),a.bitrateTest=!1}).catch(r=>{this.state===tn.STOPPED||this.state===tn.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:f}=s,{video:h,text:p,id3:m,initSegment:g}=o,{details:b}=f,S=this.altAudio?void 0:o.audio;if(this.fragContextChanged(l)){this.fragmentTracker.removeFragment(l);return}if(this.state=tn.PARSING,g){const k=g.tracks;if(k){const _=l.initSegment||l;if(this.unhandledEncryptionError(g,l))return;this._bufferInitSegment(f,k,_,a),r.trigger(Te.FRAG_PARSING_INIT_SEGMENT,{frag:_,id:n,tracks:k})}const C=g.initPTS,x=g.timescale,E=this.initPTS[l.cc];if(Dn(C)&&(!E||E.baseTime!==C||E.timescale!==x)){const _=g.trackId;this.initPTS[l.cc]={baseTime:C,timescale:x,trackId:_},r.trigger(Te.INIT_PTS_FOUND,{frag:l,id:n,initPTS:C,timescale:x,trackId:_})}}if(h&&b){S&&h.type==="audiovideo"&&this.logMuxedErr(l);const k=b.fragments[l.sn-1-b.startSN],C=l.sn===b.startSN,x=!k||l.cc>k.cc;if(o.independent!==!1){const{startPTS:E,endPTS:_,startDTS:A,endDTS:R}=h;if(c)c.elementaryStreams[h.type]={startPTS:E,endPTS:_,startDTS:A,endDTS:R};else if(h.firstKeyFrame&&h.independent&&a.id===1&&!x&&(this.couldBacktrack=!0),h.dropped&&h.independent){const M=this.getMainFwdBufferInfo(),D=(M?M.end:this.getLoadPosition())+this.config.maxBufferHole,N=h.firstKeyFramePTS?h.firstKeyFramePTS:E;if(!C&&DaA&&(l.gap=!0);l.setElementaryStreamInfo(h.type,E,_,A,R),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[yo.AUDIO]={startPTS:k,endPTS:C,startDTS:x,endDTS:E}),l.setElementaryStreamInfo(yo.AUDIO,k,C,x,E),this.bufferFragmentData(S,l,c,a)}if(b&&m!=null&&m.samples.length){const k={id:n,frag:l,details:b,samples:m.samples};r.trigger(Te.FRAG_PARSING_METADATA,k)}if(b&&p){const k={id:n,frag:l,details:b,samples:p.samples};r.trigger(Te.FRAG_PARSING_USERDATA,k)}}logMuxedErr(t){this.warn(`${zs(t)?"Media":"Init"} segment with muxed audiovideo where only video expected: ${t.url}`)}_bufferInitSegment(t,n,r,o){if(this.state!==tn.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 f=t.audioCodec;let h=eA(a.codec,f);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 m=a.metadata;m&&"channelCount"in m&&(m.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}`)),f&&f!==h&&this.log(`Swapping manifest audio codec "${f}" for "${h}"`),a.levelCodec=h,a.id=Yn.MAIN,this.log(`Init audio buffer, container:${a.container}, codecs[selected/level/parsed]=[${h||""}/${f||""}/${a.codec}]`),delete n.audiovideo}if(s){s.levelCodec=t.videoCodec,s.id=Yn.MAIN;const f=s.codec;if(f?.length===4)switch(f){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||""}/${f}]${s.codec!==f?" 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(Te.BUFFER_CODECS,n),!this.hls)return;c.forEach(f=>{const p=n[f].initSegment;p!=null&&p.byteLength&&this.hls.trigger(Te.BUFFER_APPENDING,{type:f,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,Yn.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=tn.IDLE}checkFragmentChanged(){const t=this.media;let n=null;if(t&&t.readyState>1&&t.seeking===!1){const r=t.currentTime;if(Or.isBuffered(t,r)?n=this.getAppendedFrag(r):Or.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(Te.FRAG_CHANGED,{frag:n}),(!o||o.level!==a)&&this.hls.trigger(Te.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 Dn(n)?this.getAppendedFrag(n):null}get currentProgramDateTime(){var t;const n=((t=this.media)==null?void 0:t.currentTime)||this.lastCurrentTime;if(Dn(n)){const r=this.getLevelDetails(),o=this.currentFrag||(r?Ag(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 kTt extends Gc{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 lh({type:or.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=nA(l);if(c)return this.emeController.getKeySystemAccess([c])})}if(this.config.requireKeySystemAccessOnStart){const o=wS(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 f=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,f))}const s=a.uri;if(!s)return Promise.reject(this.createKeyLoadError(t,Ht.KEY_LOAD_ERROR,new Error(`Invalid key URI: "${s}"`)));const l=iF(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: "+$l(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=Ukt(n.initSegment.data);if(s.length){const l=s[0];l.some(c=>c!==0)&&(this.log(`Using keyId found in init segment ${$l(l)}`),t.decryptdata.keyId=l,dg.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},f=r.keyLoadPolicy.default,h={loadPolicy:f,timeout:f.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},p={onSuccess:(m,g,b,S)=>{const{frag:k,keyInfo:C}=b,x=iF(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(m.data),k.keyLoader=null,C.loader=null,s({frag:k,keyInfo:C})},onError:(m,g,b,S)=>{this.resetLoader(g),l(this.createKeyLoadError(n,Ht.KEY_LOAD_ERROR,new Error(`HTTP Error ${m.code} loading key ${m.text}`),b,ro({url:c.url,data:void 0},m)))},onTimeout:(m,g,b)=>{this.resetLoader(g),l(this.createKeyLoadError(n,Ht.KEY_LOAD_TIMEOUT,new Error("key loading timed out"),b))},onAbort:(m,g,b)=>{this.resetLoader(g),l(this.createKeyLoadError(n,Ht.INTERNAL_ABORTED,new Error("key loading aborted"),b))}};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=iF(r.decryptdata)||o;delete this.keyIdToKeyInfo[s],a&&a.destroy()}}function iF(e){if(e.keyFormat!==$a.FAIRPLAY){const t=e.keyId;if(t)return $l(t)}return e.uri}function dle(e){const{type:t}=e;switch(t){case vi.AUDIO_TRACK:return Yn.AUDIO;case vi.SUBTITLE_TRACK:return Yn.SUBTITLE;default:return Yn.MAIN}}function oF(e,t){let n=e.url;return(n===void 0||n.indexOf("data:")===0)&&(n=t.url),n}class wTt{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(Te.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Te.LEVEL_LOADING,this.onLevelLoading,this),t.on(Te.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),t.on(Te.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this),t.on(Te.LEVELS_UPDATED,this.onLevelsUpdated,this)}unregisterListeners(){const{hls:t}=this;t.off(Te.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Te.LEVEL_LOADING,this.onLevelLoading,this),t.off(Te.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),t.off(Te.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this),t.off(Te.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:vi.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:vi.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:vi.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:vi.SUBTITLE_TRACK,url:a,deliveryDirectives:s,levelOrTrack:l})}onLevelsUpdated(t,n){const r=this.loaders[vi.LEVEL];if(r){const o=r.context;o&&!n.levels.some(a=>a===o.levelOrTrack)&&(r.abort(),delete this.loaders[vi.LEVEL])}}load(t){var n;const r=this.hls.config;let o=this.getInternalLoader(t);if(o){const f=this.hls.logger,h=o.context;if(h&&h.levelOrTrack===t.levelOrTrack&&(h.url===t.url||h.deliveryDirectives&&!t.deliveryDirectives)){h.url===t.url?f.log(`[playlist-loader]: ignore ${t.url} ongoing request`):f.log(`[playlist-loader]: ignore ${t.url} in favor of ${h.url}`);return}f.log(`[playlist-loader]: aborting previous loader for type: ${t.type}`),o.abort()}let a;if(t.type===vi.MANIFEST?a=r.manifestLoadPolicy.default:a=uo({},r.playlistLoadPolicy.default,{timeoutRetry:null,errorRetry:null}),o=this.createInternalLoader(t),Dn((n=t.deliveryDirectives)==null?void 0:n.part)){let f;if(t.type===vi.LEVEL&&t.level!==null?f=this.hls.levels[t.level].details:t.type===vi.AUDIO_TRACK&&t.id!==null?f=this.hls.audioTracks[t.id].details:t.type===vi.SUBTITLE_TRACK&&t.id!==null&&(f=this.hls.subtitleTracks[t.id].details),f){const h=f.partTarget,p=f.targetduration;if(h&&p){const m=Math.max(h*3,p*.8)*1e3;a=uo({},a,{maxTimeToFirstByteMs:Math.min(m,a.maxTimeToFirstByteMs),maxLoadTimeMs:Math.min(m,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:(f,h,p,m)=>{const g=this.getInternalLoader(p);this.resetInternalLoader(p.type);const b=f.data;h.parsing.start=performance.now(),lf.isMediaPlaylist(b)||p.type!==vi.MANIFEST?this.handleTrackOrLevelPlaylist(f,h,p,m||null,g):this.handleMasterPlaylist(f,h,p,m)},onError:(f,h,p,m)=>{this.handleNetworkError(h,p,!1,f,m)},onTimeout:(f,h,p)=>{this.handleNetworkError(h,p,!0,void 0,f)}};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=oF(t,r),c=lf.parseMasterPlaylist(s,l);if(c.playlistParsingError){n.parsing.end=performance.now(),this.handleManifestParsingError(t,r,c.playlistParsingError,o,n);return}const{contentSteering:f,levels:h,sessionData:p,sessionKeys:m,startTimeOffset:g,variableList:b}=c;this.variableList=b,h.forEach(x=>{const{unknownCodecs:E}=x;if(E){const{preferManagedMediaSource:_}=this.hls.config;let{audioCodec:A,videoCodec:R}=x;for(let M=E.length;M--;){const D=E[M];lk(D,"audio",_)?(x.audioCodec=A=A?`${A},${D}`:D,A1.audio[A.substring(0,4)]=2,E.splice(M,1)):lk(D,"video",_)&&(x.videoCodec=R=R?`${R},${D}`:D,A1.video[R.substring(0,4)]=2,E.splice(M,1))}}});const{AUDIO:S=[],SUBTITLES:k,"CLOSED-CAPTIONS":C}=lf.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 Qo({}),bitrate:0,url:""})),a.trigger(Te.MANIFEST_LOADED,{levels:h,audioTracks:S,subtitles:k,captions:C,contentSteering:f,url:l,stats:n,networkDetails:o,sessionData:p,sessionKeys:m,startTimeOffset:g,variableList:b})}handleTrackOrLevelPlaylist(t,n,r,o,a){const s=this.hls,{id:l,level:c,type:f}=r,h=oF(t,r),p=Dn(c)?c:Dn(l)?l:0,m=dle(r),g=lf.parseLevelPlaylist(t.data,h,p,m,0,this.variableList);if(f===vi.MANIFEST){const b={attrs:new Qo({}),bitrate:0,details:g,name:"",url:h};g.requestScheduled=n.loading.start+c1e(g,0),s.trigger(Te.MANIFEST_LOADED,{levels:[b],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(Te.ERROR,{type:or.NETWORK_ERROR,details:Ht.MANIFEST_PARSING_ERROR,fatal:n.type===vi.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===vi.LEVEL?s+=`: ${t.level} id: ${t.id}`:(t.type===vi.AUDIO_TRACK||t.type===vi.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,f=!1;const h=this.getInternalLoader(t);switch(t.type){case vi.MANIFEST:c=r?Ht.MANIFEST_LOAD_TIMEOUT:Ht.MANIFEST_LOAD_ERROR,f=!0;break;case vi.LEVEL:c=r?Ht.LEVEL_LOAD_TIMEOUT:Ht.LEVEL_LOAD_ERROR,f=!1;break;case vi.AUDIO_TRACK:c=r?Ht.AUDIO_TRACK_LOAD_TIMEOUT:Ht.AUDIO_TRACK_LOAD_ERROR,f=!1;break;case vi.SUBTITLE_TRACK:c=r?Ht.SUBTITLE_TRACK_LOAD_TIMEOUT:Ht.SUBTITLE_LOAD_ERROR,f=!1;break}h&&this.resetInternalLoader(t.type);const p={type:or.NETWORK_ERROR,details:c,fatal:f,url:t.url,loader:h,context:t,error:l,networkDetails:n,stats:a};if(o){const m=n?.url||t.url;p.response=ro({url:m,data:void 0},o)}this.hls.trigger(Te.ERROR,p)}handlePlaylistLoaded(t,n,r,o,a,s){const l=this.hls,{type:c,level:f,levelOrTrack:h,id:p,groupId:m,deliveryDirectives:g}=o,b=oF(n,o),S=dle(o);let k=typeof o.level=="number"&&S===Yn.MAIN?f:void 0;const C=t.playlistParsingError;if(C){if(this.hls.logger.warn(`${C} ${t.url}`),!l.config.ignorePlaylistParsingErrors){l.trigger(Te.ERROR,{type:or.NETWORK_ERROR,details:Ht.LEVEL_PARSING_ERROR,fatal:!1,url:b,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(Te.ERROR,{type:or.NETWORK_ERROR,details:Ht.LEVEL_EMPTY_ERROR,fatal:!1,url:b,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 vi.MANIFEST:case vi.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(Te.LEVEL_LOADED,{details:t,levelInfo:h||l.levels[0],level:k||0,id:p||0,stats:r,networkDetails:a,deliveryDirectives:g,withoutMultiVariant:c===vi.MANIFEST});break;case vi.AUDIO_TRACK:l.trigger(Te.AUDIO_TRACK_LOADED,{details:t,track:h,id:p||0,groupId:m||"",stats:r,networkDetails:a,deliveryDirectives:g});break;case vi.SUBTITLE_TRACK:l.trigger(Te.SUBTITLE_TRACK_LOADED,{details:t,track:h,id:p||0,groupId:m||"",stats:r,networkDetails:a,deliveryDirectives:g});break}}}class mu{static get version(){return dk}static isMSESupported(){return ube()}static isSupported(){return yTt()}static getMediaSource(){return _v()}static get Events(){return Te}static get MetadataSchema(){return Xu}static get ErrorTypes(){return or}static get ErrorDetails(){return Ht}static get DefaultConfig(){return mu.defaultConfig?mu.defaultConfig:sTt}static set DefaultConfig(t){mu.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 IW,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=Ikt(t.debug||!1,"Hls instance",t.assetPlayerId),r=this.config=lTt(mu.DefaultConfig,t,n);this.userConfig=t,r.progressive&&uTt(r,n);const{abrController:o,bufferController:a,capLevelController:s,errorController:l,fpsController:c}=r,f=new l(this),h=this.abrController=new o(this),p=new Cwt(this),m=r.interstitialsController,g=m?this.interstitialsController=new m(this,mu):null,b=this.bufferController=new a(this,p),S=this.capLevelController=new s(this),k=new c(this),C=new wTt(this),x=r.contentSteeringController,E=x?new x(this):null,_=this.levelController=new gTt(this,E),A=new vTt(this),R=new kTt(this.config,this.logger),M=this.streamController=new STt(this,p,R),D=this.gapController=new hTt(this,p);S.setStreamController(M),k.setStreamController(M);const N=[C,_,M];g&&N.splice(1,0,g),E&&N.splice(1,0,E),this.networkControllers=N;const L=[h,b,D,S,k,A,p];this.audioTrackController=this.createController(r.audioTrackController,N);const B=r.audioStreamController;B&&N.push(this.audioStreamController=new B(this,p,R)),this.subtitleTrackController=this.createController(r.subtitleTrackController,N);const U=r.subtitleStreamController;U&&N.push(this.subtititleStreamController=new U(this,p,R)),this.createController(r.timelineController,L),R.emeController=this.emeController=this.createController(r.emeController,L),this.cmcdController=this.createController(r.cmcdController,L),this.latencyController=this.createController(mTt,L),this.coreComponents=L,N.push(f);const W=f.onErrorOut;typeof W=="function"&&this.on(Te.ERROR,W,f),this.on(Te.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===Te.ERROR;this.trigger(Te.ERROR,{type:or.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(Te.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(Te.ERROR,{type:or.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(Te.MEDIA_ATTACHING,o)}detachMedia(){this.logger.log("detachMedia"),this.trigger(Te.MEDIA_DETACHING,{}),this._media=null}transferMedia(){this._media=null;const t=this.bufferController.transferMedia();return this.trigger(Te.MEDIA_DETACHING,{transferMedia:t}),t}loadSource(t){this.stopLoad();const n=this.media,r=this._url,o=this._url=yW.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(Te.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={[Yn.MAIN]:this.streamController.inFlightFrag};return this.audioStreamController&&(t[Yn.AUDIO]=this.audioStreamController.inFlightFrag),this.subtititleStreamController&&(t[Yn.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=hEt()),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){lwt(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=Yye(n);return Kye(t,r,navigator.mediaCapabilities)}}mu.defaultConfig=void 0;const CTt={class:"player-header"},xTt={class:"player-controls"},ETt={class:"compact-button-group"},TTt={class:"compact-btn selector-btn"},ATt={key:3,class:"compact-btn selector-btn"},ITt={class:"compact-btn selector-btn"},LTt={__name:"PlayerHeader",props:{episodeName:{type:String,default:"未知选集"},playerType:{type:String,default:"default"},episodes:{type:Array,default:()=>[]},autoNextEnabled:{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:"默认"}},emits:["toggle-auto-next","toggle-countdown","player-change","open-skip-settings","toggle-debug","close","proxy-change","quality-change"],setup(e,{emit:t}){const n=t,r=fe("disabled"),o=fe([]),a=p=>{if(!p)return"未知";const m=p.indexOf("#");return m!==-1&&m{try{const p=JSON.parse(localStorage.getItem("addressSettings")||"{}"),m=p.proxyPlayEnabled||!1,g=p.proxyPlay||"";if(o.value=[],l(),m&&g){const b=o.value.findIndex(S=>S.url===g);if(b!==-1){const S=o.value.splice(b,1)[0];o.value.unshift(S)}else{const S=a(g);o.value.unshift({value:g,label:`${S} (当前)`,url:g})}r.value=g}else r.value="disabled";console.log("代理播放配置加载完成:",{enabled:m,current:g,optionsCount:o.value.length,selected:r.value})}catch(p){console.error("加载代理播放配置失败:",p),r.value="disabled"}},l=()=>{try{JSON.parse(localStorage.getItem("address-history-proxy-play")||"[]").forEach(g=>{const b=g.url||g.value||"";if(!b)return;if(!o.value.some(k=>k.url===b)){const k=a(b);o.value.push({value:b,label:k,url:b})}}),console.log("已加载代理播放历史记录:",o.value.length,"个选项")}catch(p){console.error("加载代理播放历史记录失败:",p)}},c=p=>{if(!(!p||p==="disabled"))try{const m=a(p),g=Date.now(),b="address-history-proxy-play",S=JSON.parse(localStorage.getItem(b)||"[]"),k=S.findIndex(C=>C.url===p);k!==-1&&S.splice(k,1),S.unshift({url:p,timestamp:g}),S.length>10&&S.splice(10),localStorage.setItem(b,JSON.stringify(S)),console.log("已保存代理播放地址到历史记录:",p)}catch(m){console.error("保存代理播放历史记录失败:",m)}},f=p=>{r.value=p,p!=="disabled"&&c(p),n("proxy-change",p)},h=p=>{p.key==="addressSettings"&&s()};return gn(()=>{s(),window.addEventListener("storage",h),window.addEventListener("addressSettingsChanged",s)}),yi(()=>{window.removeEventListener("storage",h),window.removeEventListener("addressSettingsChanged",s)}),(p,m)=>{const g=Pe("a-option"),b=Pe("a-select");return H(),J("div",CTt,[I("h3",null,"正在播放: "+Be(e.episodeName),1),I("div",xTt,[I("div",ETt,[e.showDebugButton?(H(),J("div",{key:0,class:"compact-btn debug-btn",onClick:m[0]||(m[0]=S=>p.$emit("toggle-debug")),title:"调试信息"},[...m[7]||(m[7]=[rv('调试',2)])])):Re("",!0),e.showAutoNext&&e.episodes.length>1?(H(),J("div",{key:1,class:ae(["compact-btn",{active:e.autoNextEnabled}]),onClick:m[1]||(m[1]=S=>p.$emit("toggle-auto-next"))},[...m[8]||(m[8]=[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)):Re("",!0),e.showCountdown&&e.episodes.length>1?(H(),J("div",{key:2,class:ae(["compact-btn",{active:e.countdownEnabled}]),onClick:m[2]||(m[2]=S=>p.$emit("toggle-countdown"))},[...m[9]||(m[9]=[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)):Re("",!0),I("div",TTt,[m[11]||(m[11]=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(b,{"model-value":r.value,onChange:f,class:"compact-select",size:"small"},{default:de(()=>[O(g,{value:"disabled",title:"关闭代理播放功能"},{default:de(()=>[...m[10]||(m[10]=[ze("代理播放:关闭",-1)])]),_:1}),(H(!0),J(Ut,null,mn(o.value,S=>(H(),Ye(g,{key:S.value,value:S.value,title:`${S.label} 完整链接: ${S.url||S.value}`},{default:de(()=>[ze(" 代理播放:"+Be(S.label),1)]),_:2},1032,["value","title"]))),128))]),_:1},8,["model-value"])]),e.qualities&&e.qualities.length>1?(H(),J("div",ATt,[m[12]||(m[12]=rv('HD',1)),O(b,{"model-value":e.currentQuality,onChange:m[3]||(m[3]=S=>p.$emit("quality-change",S)),class:"compact-select",size:"small"},{default:de(()=>[(H(!0),J(Ut,null,mn(e.qualities,S=>(H(),Ye(g,{key:S.name,value:S.name,title:`切换到${S.name}画质`},{default:de(()=>[ze(" 画质:"+Be(S.name),1)]),_:2},1032,["value","title"]))),128))]),_:1},8,["model-value"])])):Re("",!0),I("div",ITt,[m[15]||(m[15]=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(b,{"model-value":e.playerType,onChange:m[4]||(m[4]=S=>p.$emit("player-change",S)),class:"compact-select",size:"small"},{default:de(()=>[O(g,{value:"default",title:"使用浏览器默认的HTML5视频播放器"},{default:de(()=>[...m[13]||(m[13]=[ze("默认播放器",-1)])]),_:1}),O(g,{value:"artplayer",title:"使用ArtPlayer播放器,支持更多功能和自定义选项"},{default:de(()=>[...m[14]||(m[14]=[ze("ArtPlayer",-1)])]),_:1})]),_:1},8,["model-value"])]),I("div",{class:ae(["compact-btn",{active:e.skipEnabled}]),onClick:m[5]||(m[5]=S=>p.$emit("open-skip-settings"))},[...m[16]||(m[16]=[rv('片头片尾',2)])],2),I("div",{class:"compact-btn close-btn",onClick:m[6]||(m[6]=S=>p.$emit("close"))},[...m[17]||(m[17]=[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)])])])])])}}},cbe=_r(LTt,[["__scopeId","data-v-9ede0bb0"]]),PTt={class:"dialog-header"},RTt={class:"dialog-content"},MTt={class:"setting-row"},DTt={class:"setting-control"},OTt={key:1,class:"unit"},$Tt={class:"setting-row"},NTt={class:"setting-control"},BTt={key:1,class:"unit"},FTt={class:"dialog-footer"},jTt={__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);Dt(()=>n.skipIntroEnabled,h=>{o.value=h}),Dt(()=>n.skipOutroEnabled,h=>{a.value=h}),Dt(()=>n.skipIntroSeconds,h=>{s.value=h}),Dt(()=>n.skipOutroSeconds,h=>{l.value=h});const c=()=>{r("close")},f=()=>{r("save",{skipIntroEnabled:o.value,skipOutroEnabled:a.value,skipIntroSeconds:s.value,skipOutroSeconds:l.value})};return(h,p)=>{const m=Pe("a-switch"),g=Pe("a-input-number"),b=Pe("a-button");return e.visible?(H(),J("div",{key:0,class:"skip-settings-overlay",onClick:c},[I("div",{class:"skip-settings-dialog",onClick:p[6]||(p[6]=rs(()=>{},["stop"]))},[I("div",PTt,[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",MTt,[p[9]||(p[9]=I("div",{class:"setting-label"},[I("span",null,"跳过片头"),I("div",{class:"setting-hint"},"自动跳过视频开头的片头部分")],-1)),I("div",DTt,[O(m,{modelValue:o.value,"onUpdate:modelValue":p[1]||(p[1]=S=>o.value=S),size:"small"},null,8,["modelValue"]),o.value?(H(),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"])):Re("",!0),o.value?(H(),J("span",OTt,"秒")):Re("",!0)])]),I("div",$Tt,[p[10]||(p[10]=I("div",{class:"setting-label"},[I("span",null,"跳过片尾"),I("div",{class:"setting-hint"},"在视频结束前自动跳转到下一集")],-1)),I("div",NTt,[O(m,{modelValue:a.value,"onUpdate:modelValue":p[3]||(p[3]=S=>a.value=S),size:"small"},null,8,["modelValue"]),a.value?(H(),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"])):Re("",!0),a.value?(H(),J("span",BTt,"秒")):Re("",!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"})]),ze(" 设置将自动保存并应用到所有播放器 ")],-1))]),I("div",FTt,[O(b,{onClick:p[5]||(p[5]=S=>h.$emit("close")),size:"small"},{default:de(()=>[...p[12]||(p[12]=[ze(" 取消 ",-1)])]),_:1}),O(b,{type:"primary",onClick:f,size:"small"},{default:de(()=>[...p[13]||(p[13]=[ze(" 保存 ",-1)])]),_:1})])])])):Re("",!0)}}},dbe=_r(jTt,[["__scopeId","data-v-c8c7504a"]]),UTt={class:"dialog-header"},VTt={class:"dialog-content"},zTt={class:"info-section"},HTt={class:"section-header"},WTt=["disabled"],GTt={class:"info-content"},KTt={class:"url-display"},qTt={key:0,class:"info-section"},YTt={class:"section-header"},XTt={class:"section-actions"},ZTt=["disabled"],QTt=["disabled"],JTt=["disabled"],e4t={class:"info-content"},t4t={class:"url-display proxy-url"},n4t={class:"info-section"},r4t={class:"section-header"},i4t=["disabled"],o4t={class:"info-content"},s4t={class:"headers-display"},a4t={key:0,class:"no-data"},l4t={key:1,class:"headers-text"},u4t={class:"info-section"},c4t={class:"info-content"},d4t={class:"format-info"},f4t={class:"format-value"},h4t={class:"info-section"},p4t={class:"info-content"},v4t={class:"player-info"},m4t={class:"player-value"},g4t={__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=F(()=>!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){Pt.warning(`${p}为空,无法复制`);return}try{await navigator.clipboard.writeText(h),Pt.success(`${p}已复制到剪贴板`)}catch(m){console.error("复制失败:",m),Pt.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){Pt.warning("视频链接为空,无法调起VLC播放器");return}try{const p=`vlc://${h}`,m=document.createElement("iframe");m.style.display="none",m.src=p,document.body.appendChild(m),setTimeout(()=>{document.body.removeChild(m)},1e3),Pt.success("正在尝试调起VLC播放器..."),console.log("调起VLC播放器:",p)}catch(p){console.error("调起VLC播放器失败:",p),Pt.error("调起VLC播放器失败,请确保已安装VLC播放器")}},f=h=>{if(!h){Pt.warning("视频链接为空,无法调起MPV播放器");return}try{const p=`mpv://${h}`,m=document.createElement("iframe");m.style.display="none",m.src=p,document.body.appendChild(m),setTimeout(()=>{document.body.removeChild(m)},1e3),Pt.success("正在尝试调起MPV播放器..."),console.log("调起MPV播放器:",p)}catch(p){console.error("调起MPV播放器失败:",p),Pt.error("调起MPV播放器失败,请确保已安装MPV播放器")}};return(h,p)=>e.visible?(H(),J("div",{key:0,class:"debug-info-overlay",onClick:a},[I("div",{class:"debug-info-dialog",onClick:p[6]||(p[6]=rs(()=>{},["stop"]))},[I("div",UTt,[p[8]||(p[8]=I("h3",null,"🔧 视频调试信息",-1)),I("button",{class:"close-btn",onClick:p[0]||(p[0]=m=>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",VTt,[I("div",zTt,[I("div",HTt,[p[10]||(p[10]=I("h4",null,"📹 视频直链",-1)),I("button",{class:"copy-btn",onClick:p[1]||(p[1]=m=>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),ze(" 复制 ",-1)])],8,WTt)]),I("div",GTt,[I("div",KTt,Be(e.videoUrl||"暂无视频链接"),1)])]),e.proxyUrl&&e.proxyUrl!==e.videoUrl?(H(),J("div",qTt,[I("div",YTt,[p[14]||(p[14]=I("h4",null,"🔄 代理后链接",-1)),I("div",XTt,[I("button",{class:"copy-btn",onClick:p[2]||(p[2]=m=>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),ze(" 复制 ",-1)])],8,ZTt),I("button",{class:"external-player-btn vlc-btn",onClick:p[3]||(p[3]=m=>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),ze(" VLC ",-1)])],8,QTt),I("button",{class:"external-player-btn mpv-btn",onClick:p[4]||(p[4]=m=>f(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),ze(" MPV ",-1)])],8,JTt)])]),I("div",e4t,[I("div",t4t,Be(e.proxyUrl),1)])])):Re("",!0),I("div",n4t,[I("div",r4t,[p[16]||(p[16]=I("h4",null,"📋 请求头信息",-1)),I("button",{class:"copy-btn",onClick:p[5]||(p[5]=m=>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),ze(" 复制 ",-1)])],8,i4t)]),I("div",o4t,[I("div",s4t,[o.value?(H(),J("pre",l4t,Be(o.value),1)):(H(),J("div",a4t,"暂无请求头信息"))])])]),I("div",u4t,[p[18]||(p[18]=I("div",{class:"section-header"},[I("h4",null,"🎬 视频格式")],-1)),I("div",c4t,[I("div",d4t,[p[17]||(p[17]=I("span",{class:"format-label"},"检测格式:",-1)),I("span",f4t,Be(e.detectedFormat||"未知"),1)])])]),I("div",h4t,[p[20]||(p[20]=I("div",{class:"section-header"},[I("h4",null,"⚙️ 播放器信息")],-1)),I("div",p4t,[I("div",v4t,[p[19]||(p[19]=I("span",{class:"player-label"},"当前播放器:",-1)),I("span",m4t,Be(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),ze(" 复制所有调试信息 ",-1)])])])])])])):Re("",!0)}},fbe=_r(g4t,[["__scopeId","data-v-d9075ed4"]]);function hbe(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),f=fe(90),h=fe(!1),p=fe(!1),m=fe(null),g=fe(0),b=fe(!1),S=fe(0),k=fe(!1),C=fe(0),x=F(()=>s.value||l.value),E="drplayer_skip_settings",_=()=>{try{const re=localStorage.getItem(E);if(console.log("从 localStorage 加载设置:",re),re){const ee=JSON.parse(re);s.value=ee.skipIntroEnabled||!1,l.value=ee.skipOutroEnabled||!1,c.value=ee.skipIntroSeconds||90,f.value=ee.skipOutroSeconds||90,console.log("加载的设置:",{skipIntroEnabled:s.value,skipOutroEnabled:l.value,skipIntroSeconds:c.value,skipOutroSeconds:f.value})}else console.log("没有找到保存的设置,使用默认值")}catch(re){console.warn("加载片头片尾设置失败:",re)}},A=re=>{try{s.value=re.skipIntroEnabled,l.value=re.skipOutroEnabled,c.value=re.skipIntroSeconds,f.value=re.skipOutroSeconds;const ee={skipIntroEnabled:re.skipIntroEnabled,skipOutroEnabled:re.skipOutroEnabled,skipIntroSeconds:re.skipIntroSeconds,skipOutroSeconds:re.skipOutroSeconds};localStorage.setItem(E,JSON.stringify(ee)),N()}catch(ee){console.warn("保存片头片尾设置失败:",ee)}},R=()=>{if(!s.value||h.value)return!1;const re=n(),ee=Date.now();return b.value||S.value>0&&ee-S.value<3e3||k.value||C.value>0&&ee-C.value<2e3?!1:re<=1&&re<=c.value?(console.log(`立即跳过片头:从 ${re.toFixed(1)}s 跳转到 ${c.value}s`),r(c.value),h.value=!0,g.value=ee,!0):!1},M=()=>{if(!s.value||h.value)return;const re=n(),ee=Date.now();b.value||S.value>0&&ee-S.value<3e3||k.value||C.value>0&&ee-C.value<2e3||g.value>0&&ee-g.value<1e3||re<=c.value&&(console.log(`已跳过片头:从 ${re.toFixed(1)}s 跳转到 ${c.value}s`),r(c.value),h.value=!0,g.value=ee)},D=()=>{if(!l.value||p.value)return;const re=o();if(re<=0)return;const ee=n(),le=re-f.value,Q=Date.now();Q-g.value<2e3||ee>=le&&ee{R()||M(),D()};let L=null;const B=()=>{L&&clearTimeout(L),L=setTimeout(()=>{s.value&&!h.value&&M(),l.value&&!p.value&&D()},200)},U=()=>{h.value=!1,p.value=!1,g.value=0,b.value=!1,S.value=0,k.value=!1,C.value=0,m.value&&(clearTimeout(m.value),m.value=null)},W=()=>{b.value=!0,console.log("用户开始拖动进度条")},V=()=>{b.value=!1,S.value=Date.now(),console.log("用户结束拖动进度条")},z=()=>{k.value=!0,console.log("全屏状态开始变化")},Y=()=>{k.value=!1,C.value=Date.now(),console.log("全屏状态变化结束")},oe=()=>{U(),_()},ne=()=>{a.value=!0},X=()=>{a.value=!1},K=()=>{m.value&&(clearTimeout(m.value),m.value=null)};return yi(()=>{K()}),{showSkipSettingsDialog:a,skipIntroEnabled:s,skipOutroEnabled:l,skipIntroSeconds:c,skipOutroSeconds:f,skipIntroApplied:h,skipOutroTimer:m,skipEnabled:x,loadSkipSettings:_,saveSkipSettings:A,applySkipSettings:N,applyIntroSkipImmediate:R,handleTimeUpdate:B,resetSkipState:U,initSkipSettings:oe,openSkipSettingsDialog:ne,closeSkipSettingsDialog:X,cleanup:K,onUserSeekStart:W,onUserSeekEnd:V,onFullscreenChangeStart:z,onFullscreenChangeEnd:Y}}const Nm={NO_REFERRER:"no-referrer",ORIGIN:"origin",SAME_ORIGIN:"same-origin",STRICT_ORIGIN_WHEN_CROSS_ORIGIN:"strict-origin-when-cross-origin",UNSAFE_URL:"unsafe-url"},pbe=[{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 VW(){const e=document.querySelector('meta[name="referrer"]');return e?e.getAttribute("content"):"default"}function y2(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 VI(e,t){e&&e.tagName==="VIDEO"&&(e.setAttribute("referrerpolicy",t),console.log(`已为视频元素设置referrer策略: ${t}`))}function y4t(e,t=null){const n=Eh();let r;return n.autoBypass?(r=n.referrerPolicy,console.log(`根据CSP配置设置referrer策略: ${r} (URL: ${e})`)):(r=VW()||Nm.STRICT_ORIGIN_WHEN_CROSS_ORIGIN,console.log(`CSP绕过未启用,保持当前策略: ${r} (URL: ${e})`)),y2(r),t&&VI(t,r),r}const fle={referrerPolicy:Nm.NO_REFERRER,autoBypass:!0,autoRetry:!0,retryPolicies:[Nm.NO_REFERRER,Nm.ORIGIN,Nm.SAME_ORIGIN,Nm.UNSAFE_URL]};function Eh(){const e=localStorage.getItem("csp_bypass_config");return e?{...fle,...JSON.parse(e)}:fle}function sF(e){localStorage.setItem("csp_bypass_config",JSON.stringify(e))}function zW(e,t){return Eh().autoBypass?y4t(e,t):VW()}var aF={exports:{}},hle;function b4t(){return hle||(hle=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(f,h){s.exports=h()})(this,(function(){function f(Ue){var st=typeof Ue;return Ue!==null&&(st==="object"||st==="function")}function h(Ue){return typeof Ue=="function"}var p=void 0;Array.isArray?p=Array.isArray:p=function(Ue){return Object.prototype.toString.call(Ue)==="[object Array]"};var m=p,g=0,b=void 0,S=void 0,k=function(st,kt){W[g]=st,W[g+1]=kt,g+=2,g===2&&(S?S(V):Y())};function C(Ue){S=Ue}function x(Ue){k=Ue}var E=typeof window<"u"?window:void 0,_=E||{},A=_.MutationObserver||_.WebKitMutationObserver,R=typeof self>"u"&&typeof process<"u"&&{}.toString.call(process)==="[object process]",M=typeof Uint8ClampedArray<"u"&&typeof importScripts<"u"&&typeof MessageChannel<"u";function D(){return function(){return process.nextTick(V)}}function N(){return typeof b<"u"?function(){b(V)}:U()}function L(){var Ue=0,st=new A(V),kt=document.createTextNode("");return st.observe(kt,{characterData:!0}),function(){kt.data=Ue=++Ue%2}}function B(){var Ue=new MessageChannel;return Ue.port1.onmessage=V,function(){return Ue.port2.postMessage(0)}}function U(){var Ue=setTimeout;return function(){return Ue(V,1)}}var W=new Array(1e3);function V(){for(var Ue=0;Ue0&&(oe=W[0]),oe instanceof Error)throw oe;var ne=new Error("Unhandled error."+(oe?" ("+oe.message+")":""));throw ne.context=oe,ne}var X=Y[U];if(X===void 0)return!1;if(typeof X=="function")c(X,this,W);else for(var K=X.length,re=A(X,K),V=0;V0&&oe.length>z&&!oe.warned){oe.warned=!0;var ne=new Error("Possible EventEmitter memory leak detected. "+oe.length+" "+String(U)+" listeners added. Use emitter.setMaxListeners() to increase limit");ne.name="MaxListenersExceededWarning",ne.emitter=B,ne.type=U,ne.count=oe.length,h(ne)}return B}m.prototype.addListener=function(U,W){return k(this,U,W,!1)},m.prototype.on=m.prototype.addListener,m.prototype.prependListener=function(U,W){return k(this,U,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,U,W){var V={fired:!1,wrapFn:void 0,target:B,type:U,listener:W},z=C.bind(V);return z.listener=W,V.wrapFn=z,z}m.prototype.once=function(U,W){return b(W),this.on(U,x(this,U,W)),this},m.prototype.prependOnceListener=function(U,W){return b(W),this.prependListener(U,x(this,U,W)),this},m.prototype.removeListener=function(U,W){var V,z,Y,oe,ne;if(b(W),z=this._events,z===void 0)return this;if(V=z[U],V===void 0)return this;if(V===W||V.listener===W)--this._eventsCount===0?this._events=Object.create(null):(delete z[U],z.removeListener&&this.emit("removeListener",U,V.listener||W));else if(typeof V!="function"){for(Y=-1,oe=V.length-1;oe>=0;oe--)if(V[oe]===W||V[oe].listener===W){ne=V[oe].listener,Y=oe;break}if(Y<0)return this;Y===0?V.shift():R(V,Y),V.length===1&&(z[U]=V[0]),z.removeListener!==void 0&&this.emit("removeListener",U,ne||W)}return this},m.prototype.off=m.prototype.removeListener,m.prototype.removeAllListeners=function(U){var W,V,z;if(V=this._events,V===void 0)return this;if(V.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):V[U]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete V[U]),this;if(arguments.length===0){var Y=Object.keys(V),oe;for(z=0;z=0;z--)this.removeListener(U,W[z]);return this};function E(B,U,W){var V=B._events;if(V===void 0)return[];var z=V[U];return z===void 0?[]:typeof z=="function"?W?[z.listener||z]:[z]:W?M(z):A(z,z.length)}m.prototype.listeners=function(U){return E(this,U,!0)},m.prototype.rawListeners=function(U){return E(this,U,!1)},m.listenerCount=function(B,U){return typeof B.listenerCount=="function"?B.listenerCount(U):_.call(B,U)},m.prototype.listenerCount=_;function _(B){var U=this._events;if(U!==void 0){var W=U[B];if(typeof W=="function")return 1;if(W!==void 0)return W.length}return 0}m.prototype.eventNames=function(){return this._eventsCount>0?f(this._events):[]};function A(B,U){for(var W=new Array(U),V=0;V0},!1)}function k(C,x){for(var E={main:[x]},_={main:[]},A={main:{}};S(E);)for(var R=Object.keys(E),M=0;M=p[S]&&m0&&b[0].originalDts=S[x].dts&&bS[C].lastSample.originalDts&&b=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(b){var S=this._searchNearestSegmentBefore(b);return S>=0?this._list[S]:null},g.prototype.getLastSampleBefore=function(b){var S=this.getLastSegmentBefore(b);return S!=null?S.lastSample:null},g.prototype.getLastSyncPointBefore=function(b){for(var S=this._searchNearestSegmentBefore(b),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 f=c("./node_modules/events/events.js"),h=c.n(f),p=c("./src/utils/logger.js"),m=c("./src/utils/browser.js"),g=c("./src/core/mse-events.js"),b=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 b.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 A=this._sourceBuffers[E];if(A){if(x.readyState!=="closed"){try{x.removeSourceBuffer(A)}catch(R){p.default.e(this.TAG,R.message)}A.removeEventListener("error",this.e.onSourceBufferError),A.removeEventListener("updateend",this.e.onSourceBufferUpdateEnd)}this._mimeTypes[E]=null,this._sourceBuffers[E]=null}}if(x.readyState==="open")try{x.endOfStream()}catch(R){p.default.e(this.TAG,R.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,A=""+_.container;_.codec&&_.codec.length>0&&(A+=";codecs="+_.codec);var R=!1;if(p.default.v(this.TAG,"Received Initialization Segment, mimeType: "+A),this._lastInitSegments[_.type]=_,A!==this._mimeTypes[_.type]){if(this._mimeTypes[_.type])p.default.v(this.TAG,"Notice: "+_.type+" mimeType changed, origin: "+this._mimeTypes[_.type]+", target: "+A);else{R=!0;try{var M=this._sourceBuffers[_.type]=this._mediaSource.addSourceBuffer(A);M.addEventListener("error",this.e.onSourceBufferError),M.addEventListener("updateend",this.e.onSourceBufferUpdateEnd)}catch(D){p.default.e(this.TAG,D.message),this._emitter.emit(g.default.ERROR,{code:D.code,msg:D.message});return}}this._mimeTypes[_.type]=A}E||this._pendingSegments[_.type].push(_),R||this._sourceBuffers[_.type]&&!this._sourceBuffers[_.type].updating&&this._doAppendSegments(),m.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 A=this._pendingSegments[E];if(A.splice(0,A.length),this._mediaSource.readyState!=="closed"){for(var R=0;R<_.buffered.length;R++){var M=_.buffered.start(R),D=_.buffered.end(R);this._pendingRemoveRanges[E].push({start:M,end:D})}if(_.updating||this._doRemoveRanges(),m.default.safari){var N=this._lastInitSegments[E];N&&(this._pendingSegments[E].push(N),_.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 A=_.buffered;if(A.length>=1&&x-A.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 A=_.buffered,R=!1,M=0;M=this._config.autoCleanupMaxBackwardDuration){R=!0;var L=x-this._config.autoCleanupMinBackwardDuration;this._pendingRemoveRanges[E].push({start:D,end:L})}}else N0&&(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 A=_.shift();E.remove(A.start,A.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 A=this._sourceBuffers[E].timestampOffset,R=_.timestampOffset/1e3,M=Math.abs(A-R);M>.1&&(p.default.v(this.TAG,"Update MPEG audio timestampOffset from "+A+" to "+R),this._sourceBuffers[E].timestampOffset=R),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(D){this._pendingSegments[E].unshift(_),D.code===22?(this._isBufferFull||this._emitter.emit(g.default.BUFFER_FULL),this._isBufferFull=!0):(p.default.e(this.TAG,D.message),this._emitter.emit(g.default.ERROR,{code:D.code,msg:D.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 f={ERROR:"error",SOURCE_OPEN:"source_open",UPDATE_END:"update_end",BUFFER_FULL:"buffer_full"};l.default=f}),"./src/core/transmuxer.js":(function(s,l,c){c.r(l);var f=c("./node_modules/events/events.js"),h=c.n(f),p=c("./node_modules/webworkify-webpack/index.js"),m=c.n(p),g=c("./src/utils/logger.js"),b=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(_,A){if(this.TAG="Transmuxer",this._emitter=new(h()),A.enableWorker&&typeof Worker<"u")try{this._worker=m()("./src/core/transmuxing-worker.js"),this._workerDestroying=!1,this._worker.addEventListener("message",this._onWorkerMessage.bind(this)),this._worker.postMessage({cmd:"init",param:[_,A]}),this.e={onLoggingConfigChanged:this._onLoggingConfigChanged.bind(this)},b.default.registerListener(this.e.onLoggingConfigChanged),this._worker.postMessage({cmd:"logging_config",param:b.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(_,A)}else this._controller=new S.default(_,A);if(this._controller){var R=this._controller;R.on(k.default.IO_ERROR,this._onIOError.bind(this)),R.on(k.default.DEMUX_ERROR,this._onDemuxError.bind(this)),R.on(k.default.INIT_SEGMENT,this._onInitSegment.bind(this)),R.on(k.default.MEDIA_SEGMENT,this._onMediaSegment.bind(this)),R.on(k.default.LOADING_COMPLETE,this._onLoadingComplete.bind(this)),R.on(k.default.RECOVERED_EARLY_EOF,this._onRecoveredEarlyEof.bind(this)),R.on(k.default.MEDIA_INFO,this._onMediaInfo.bind(this)),R.on(k.default.METADATA_ARRIVED,this._onMetaDataArrived.bind(this)),R.on(k.default.SCRIPTDATA_ARRIVED,this._onScriptDataArrived.bind(this)),R.on(k.default.STATISTICS_INFO,this._onStatisticsInfo.bind(this)),R.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"}),b.default.removeListener(this.e.onLoggingConfigChanged),this.e=null):(this._controller.destroy(),this._controller=null),this._emitter.removeAllListeners(),this._emitter=null},E.prototype.on=function(_,A){this._emitter.addListener(_,A)},E.prototype.off=function(_,A){this._emitter.removeListener(_,A)},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(_,A){var R=this;Promise.resolve().then(function(){R._emitter.emit(k.default.INIT_SEGMENT,_,A)})},E.prototype._onMediaSegment=function(_,A){var R=this;Promise.resolve().then(function(){R._emitter.emit(k.default.MEDIA_SEGMENT,_,A)})},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 A=this;Promise.resolve().then(function(){A._emitter.emit(k.default.MEDIA_INFO,_)})},E.prototype._onMetaDataArrived=function(_){var A=this;Promise.resolve().then(function(){A._emitter.emit(k.default.METADATA_ARRIVED,_)})},E.prototype._onScriptDataArrived=function(_){var A=this;Promise.resolve().then(function(){A._emitter.emit(k.default.SCRIPTDATA_ARRIVED,_)})},E.prototype._onStatisticsInfo=function(_){var A=this;Promise.resolve().then(function(){A._emitter.emit(k.default.STATISTICS_INFO,_)})},E.prototype._onIOError=function(_,A){var R=this;Promise.resolve().then(function(){R._emitter.emit(k.default.IO_ERROR,_,A)})},E.prototype._onDemuxError=function(_,A){var R=this;Promise.resolve().then(function(){R._emitter.emit(k.default.DEMUX_ERROR,_,A)})},E.prototype._onRecommendSeekpoint=function(_){var A=this;Promise.resolve().then(function(){A._emitter.emit(k.default.RECOMMEND_SEEKPOINT,_)})},E.prototype._onLoggingConfigChanged=function(_){this._worker&&this._worker.postMessage({cmd:"logging_config",param:_})},E.prototype._onWorkerMessage=function(_){var A=_.data,R=A.data;if(A.msg==="destroyed"||this._workerDestroying){this._workerDestroying=!1,this._worker.terminate(),this._worker=null;return}switch(A.msg){case k.default.INIT_SEGMENT:case k.default.MEDIA_SEGMENT:this._emitter.emit(A.msg,R.type,R.data);break;case k.default.LOADING_COMPLETE:case k.default.RECOVERED_EARLY_EOF:this._emitter.emit(A.msg);break;case k.default.MEDIA_INFO:Object.setPrototypeOf(R,C.default.prototype),this._emitter.emit(A.msg,R);break;case k.default.METADATA_ARRIVED:case k.default.SCRIPTDATA_ARRIVED:case k.default.STATISTICS_INFO:this._emitter.emit(A.msg,R);break;case k.default.IO_ERROR:case k.default.DEMUX_ERROR:this._emitter.emit(A.msg,R.type,R.info);break;case k.default.RECOMMEND_SEEKPOINT:this._emitter.emit(A.msg,R);break;case"logcat_callback":g.default.emitter.emit("log",R.type,R.logcat);break}},E})();l.default=x}),"./src/core/transmuxing-controller.js":(function(s,l,c){c.r(l);var f=c("./node_modules/events/events.js"),h=c.n(f),p=c("./src/utils/logger.js"),m=c("./src/utils/browser.js"),g=c("./src/core/media-info.js"),b=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 _(A,R){this.TAG="TransmuxingController",this._emitter=new(h()),this._config=R,A.segments||(A.segments=[{duration:A.duration,filesize:A.filesize,url:A.url}]),typeof A.cors!="boolean"&&(A.cors=!0),typeof A.withCredentials!="boolean"&&(A.withCredentials=!1),this._mediaDataSource=A,this._currentSegmentIndex=0;var M=0;this._mediaDataSource.segments.forEach(function(D){D.timestampBase=M,M+=D.duration,D.cors=A.cors,D.withCredentials=A.withCredentials,R.referrerPolicy&&(D.referrerPolicy=R.referrerPolicy)}),!isNaN(M)&&this._mediaDataSource.duration!==M&&(this._mediaDataSource.duration=M),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(A,R){this._emitter.addListener(A,R)},_.prototype.off=function(A,R){this._emitter.removeListener(A,R)},_.prototype.start=function(){this._loadSegment(0),this._enableStatisticsReporter()},_.prototype._loadSegment=function(A,R){this._currentSegmentIndex=A;var M=this._mediaDataSource.segments[A],D=this._ioctl=new C.default(M,this._config,A);D.onError=this._onIOException.bind(this),D.onSeeked=this._onIOSeeked.bind(this),D.onComplete=this._onIOComplete.bind(this),D.onRedirect=this._onIORedirect.bind(this),D.onRecoveredEarlyEof=this._onIORecoveredEarlyEof.bind(this),R?this._demuxer.bindDataSource(this._ioctl):D.onDataArrival=this._onInitChunkArrival.bind(this),D.open(R)},_.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(A){if(!(this._mediaInfo==null||!this._mediaInfo.isSeekable())){var R=this._searchSegmentIndexContains(A);if(R===this._currentSegmentIndex){var M=this._mediaInfo.segments[R];if(M==null)this._pendingSeekTime=A;else{var D=M.getNearestKeyframe(A);this._remuxer.seek(D.milliseconds),this._ioctl.seek(D.fileposition),this._pendingResolveSeekPoint=D.milliseconds}}else{var N=this._mediaInfo.segments[R];if(N==null)this._pendingSeekTime=A,this._internalAbort(),this._remuxer.seek(),this._remuxer.insertDiscontinuity(),this._loadSegment(R);else{var D=N.getNearestKeyframe(A);this._internalAbort(),this._remuxer.seek(A),this._remuxer.insertDiscontinuity(),this._demuxer.resetMediaInfo(),this._demuxer.timestampBase=this._mediaDataSource.segments[R].timestampBase,this._loadSegment(R,D.fileposition),this._pendingResolveSeekPoint=D.milliseconds,this._reportSegmentMediaInfo(R)}}this._enableStatisticsReporter()}},_.prototype._searchSegmentIndexContains=function(A){for(var R=this._mediaDataSource.segments,M=R.length-1,D=0;D0)this._demuxer.bindDataSource(this._ioctl),this._demuxer.timestampBase=this._mediaDataSource.segments[this._currentSegmentIndex].timestampBase,N=this._demuxer.parseChunks(A,R);else if((D=b.default.probe(A)).match){this._demuxer=new b.default(D,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),N=this._demuxer.parseChunks(A,R)}else D=null,p.default.e(this.TAG,"Non-FLV, Unsupported media type!"),Promise.resolve().then(function(){M._internalAbort()}),this._emitter.emit(x.default.DEMUX_ERROR,k.default.FORMAT_UNSUPPORTED,"Non-FLV, Unsupported media type"),N=0;return N},_.prototype._onMediaInfo=function(A){var R=this;this._mediaInfo==null&&(this._mediaInfo=Object.assign({},A),this._mediaInfo.keyframesIndex=null,this._mediaInfo.segments=[],this._mediaInfo.segmentCount=this._mediaDataSource.segments.length,Object.setPrototypeOf(this._mediaInfo,g.default.prototype));var M=Object.assign({},A);Object.setPrototypeOf(M,g.default.prototype),this._mediaInfo.segments[this._currentSegmentIndex]=M,this._reportSegmentMediaInfo(this._currentSegmentIndex),this._pendingSeekTime!=null&&Promise.resolve().then(function(){var D=R._pendingSeekTime;R._pendingSeekTime=null,R.seek(D)})},_.prototype._onMetaDataArrived=function(A){this._emitter.emit(x.default.METADATA_ARRIVED,A)},_.prototype._onScriptDataArrived=function(A){this._emitter.emit(x.default.SCRIPTDATA_ARRIVED,A)},_.prototype._onIOSeeked=function(){this._remuxer.insertDiscontinuity()},_.prototype._onIOComplete=function(A){var R=A,M=R+1;M0&&M[0].originalDts===D&&(D=M[0].pts),this._emitter.emit(x.default.RECOMMEND_SEEKPOINT,D)}},_.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(A){var R=this._mediaInfo.segments[A],M=Object.assign({},R);M.duration=this._mediaInfo.duration,M.segmentCount=this._mediaInfo.segmentCount,delete M.segments,delete M.keyframesIndex,this._emitter.emit(x.default.MEDIA_INFO,M)},_.prototype._reportStatisticsInfo=function(){var A={};A.url=this._ioctl.currentURL,A.hasRedirect=this._ioctl.hasRedirect,A.hasRedirect&&(A.redirectedURL=this._ioctl.currentRedirectedURL),A.speed=this._ioctl.currentSpeed,A.loaderType=this._ioctl.loaderType,A.currentSegmentIndex=this._currentSegmentIndex,A.totalSegmentCount=this._mediaDataSource.segments.length,this._emitter.emit(x.default.STATISTICS_INFO,A)},_})();l.default=E}),"./src/core/transmuxing-events.js":(function(s,l,c){c.r(l);var f={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=f}),"./src/core/transmuxing-worker.js":(function(s,l,c){c.r(l);var f=c("./src/utils/logging-control.js"),h=c("./src/utils/polyfill.js"),p=c("./src/core/transmuxing-controller.js"),m=c("./src/core/transmuxing-events.js"),g=function(b){var S=null,k=U.bind(this);h.default.install(),b.addEventListener("message",function(W){switch(W.data.cmd){case"init":S=new p.default(W.data.param[0],W.data.param[1]),S.on(m.default.IO_ERROR,N.bind(this)),S.on(m.default.DEMUX_ERROR,L.bind(this)),S.on(m.default.INIT_SEGMENT,C.bind(this)),S.on(m.default.MEDIA_SEGMENT,x.bind(this)),S.on(m.default.LOADING_COMPLETE,E.bind(this)),S.on(m.default.RECOVERED_EARLY_EOF,_.bind(this)),S.on(m.default.MEDIA_INFO,A.bind(this)),S.on(m.default.METADATA_ARRIVED,R.bind(this)),S.on(m.default.SCRIPTDATA_ARRIVED,M.bind(this)),S.on(m.default.STATISTICS_INFO,D.bind(this)),S.on(m.default.RECOMMEND_SEEKPOINT,B.bind(this));break;case"destroy":S&&(S.destroy(),S=null),b.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 V=W.data.param;f.default.applyConfig(V),V.enableCallback===!0?f.default.addLogListener(k):f.default.removeLogListener(k);break}}});function C(W,V){var z={msg:m.default.INIT_SEGMENT,data:{type:W,data:V}};b.postMessage(z,[V.data])}function x(W,V){var z={msg:m.default.MEDIA_SEGMENT,data:{type:W,data:V}};b.postMessage(z,[V.data])}function E(){var W={msg:m.default.LOADING_COMPLETE};b.postMessage(W)}function _(){var W={msg:m.default.RECOVERED_EARLY_EOF};b.postMessage(W)}function A(W){var V={msg:m.default.MEDIA_INFO,data:W};b.postMessage(V)}function R(W){var V={msg:m.default.METADATA_ARRIVED,data:W};b.postMessage(V)}function M(W){var V={msg:m.default.SCRIPTDATA_ARRIVED,data:W};b.postMessage(V)}function D(W){var V={msg:m.default.STATISTICS_INFO,data:W};b.postMessage(V)}function N(W,V){b.postMessage({msg:m.default.IO_ERROR,data:{type:W,info:V}})}function L(W,V){b.postMessage({msg:m.default.DEMUX_ERROR,data:{type:W,info:V}})}function B(W){b.postMessage({msg:m.default.RECOMMEND_SEEKPOINT,data:W})}function U(W,V){b.postMessage({msg:"logcat_callback",data:{type:W,logcat:V}})}};l.default=g}),"./src/demux/amf-parser.js":(function(s,l,c){c.r(l);var f=c("./src/utils/logger.js"),h=c("./src/utils/utf8-conv.js"),p=c("./src/utils/exception.js"),m=(function(){var b=new ArrayBuffer(2);return new DataView(b).setInt16(0,256,!0),new Int16Array(b)[0]===256})(),g=(function(){function b(){}return b.parseScriptData=function(S,k,C){var x={};try{var E=b.parseValue(S,k,C),_=b.parseValue(S,k+E.size,C-E.size);x[E.data]=_.data}catch(A){f.default.e("AMF",A.toString())}return x},b.parseObject=function(S,k,C){if(C<3)throw new p.IllegalStateException("Data not enough when parse ScriptDataObject");var x=b.parseString(S,k,C),E=b.parseValue(S,k+x.size,C-x.size),_=E.objectEnd;return{data:{name:x.data,value:E.data},size:x.size+E.size,objectEnd:_}},b.parseVariable=function(S,k,C){return b.parseObject(S,k,C)},b.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,!m),_;return E>0?_=(0,h.default)(new Uint8Array(S,k+2,E)):_="",{data:_,size:2+E}},b.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,!m),_;return E>0?_=(0,h.default)(new Uint8Array(S,k+4,E)):_="",{data:_,size:4+E}},b.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,!m),_=x.getInt16(8,!m);return E+=_*60*1e3,{data:new Date(E),size:10}},b.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),A,R=!1;try{switch(_){case 0:A=x.getFloat64(1,!m),E+=8;break;case 1:{var M=x.getUint8(1);A=!!M,E+=1;break}case 2:{var D=b.parseString(S,k+1,C-1);A=D.data,E+=D.size;break}case 3:{A={};var N=0;for((x.getUint32(C-4,!m)&16777215)===9&&(N=3);E32)throw new f.InvalidArgumentException("ExpGolomb: readBits() bits exceeded max 32bits!");if(m<=this._current_word_bits_left){var g=this._current_word>>>32-m;return this._current_word<<=m,this._current_word_bits_left-=m,g}var b=this._current_word_bits_left?this._current_word:0;b=b>>>32-this._current_word_bits_left;var S=m-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,b=b<>>m)!==0)return this._current_word<<=m,this._current_word_bits_left-=m,m;return this._fillCurrentWord(),m+this._skipLeadingZero()},p.prototype.readUEG=function(){var m=this._skipLeadingZero();return this.readBits(m+1)-1},p.prototype.readSEG=function(){var m=this.readUEG();return m&1?m+1>>>1:-1*(m>>>1)},p})();l.default=h}),"./src/demux/flv-demuxer.js":(function(s,l,c){c.r(l);var f=c("./src/utils/logger.js"),h=c("./src/demux/amf-parser.js"),p=c("./src/demux/sps-parser.js"),m=c("./src/demux/demux-errors.js"),g=c("./src/core/media-info.js"),b=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 A=(E[4]&4)>>>2!==0,R=(E[4]&1)!==0,M=S(E,5);return M<9?_:{match:!0,consumed:M,dataOffset:M,hasAudioTrack:A,hasVideoTrack:R}},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 b.IllegalStateException("Flv: onError & onMediaInfo & onTrackMetadata & onDataAvailable callback must be specified");var _=0,A=this._littleEndian;if(E===0)if(x.byteLength>13){var R=C.probe(x);_=R.dataOffset}else return 0;if(this._firstParse){this._firstParse=!1,E+_!==this._dataOffset&&f.default.w(this.TAG,"First time parsing but chunk byteStart invalid!");var M=new DataView(x,_),D=M.getUint32(0,!A);D!==0&&f.default.w(this.TAG,"PrevTagSize0 !== 0 !!!"),_+=4}for(;_x.byteLength)break;var N=M.getUint8(0),L=M.getUint32(0,!A)&16777215;if(_+11+L+4>x.byteLength)break;if(N!==8&&N!==9&&N!==18){f.default.w(this.TAG,"Unsupported tag type "+N+", skipped"),_+=11+L+4;continue}var B=M.getUint8(4),U=M.getUint8(5),W=M.getUint8(6),V=M.getUint8(7),z=W|U<<8|B<<16|V<<24,Y=M.getUint32(7,!A)&16777215;Y!==0&&f.default.w(this.TAG,"Meet tag which has StreamID != 0!");var oe=_+11;switch(N){case 8:this._parseAudioData(x,oe,L,z);break;case 9:this._parseVideoData(x,oe,L,z,E+_);break;case 18:this._parseScriptData(x,oe,L);break}var ne=M.getUint32(11+L,!A);ne!==11+L&&f.default.w(this.TAG,"Invalid PrevTagSize "+ne),_+=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 A=h.default.parseScriptData(x,E,_);if(A.hasOwnProperty("onMetaData")){if(A.onMetaData==null||typeof A.onMetaData!="object"){f.default.w(this.TAG,"Invalid onMetaData structure!");return}this._metadata&&f.default.w(this.TAG,"Found another onMetaData tag!"),this._metadata=A;var R=this._metadata.onMetaData;if(this._onMetaDataArrived&&this._onMetaDataArrived(Object.assign({},R)),typeof R.hasAudio=="boolean"&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=R.hasAudio,this._mediaInfo.hasAudio=this._hasAudio),typeof R.hasVideo=="boolean"&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=R.hasVideo,this._mediaInfo.hasVideo=this._hasVideo),typeof R.audiodatarate=="number"&&(this._mediaInfo.audioDataRate=R.audiodatarate),typeof R.videodatarate=="number"&&(this._mediaInfo.videoDataRate=R.videodatarate),typeof R.width=="number"&&(this._mediaInfo.width=R.width),typeof R.height=="number"&&(this._mediaInfo.height=R.height),typeof R.duration=="number"){if(!this._durationOverrided){var M=Math.floor(R.duration*this._timescale);this._duration=M,this._mediaInfo.duration=M}}else this._mediaInfo.duration=0;if(typeof R.framerate=="number"){var D=Math.floor(R.framerate*1e3);if(D>0){var N=D/1e3;this._referenceFrameRate.fixed=!0,this._referenceFrameRate.fps=N,this._referenceFrameRate.fps_num=D,this._referenceFrameRate.fps_den=1e3,this._mediaInfo.fps=N}}if(typeof R.keyframes=="object"){this._mediaInfo.hasKeyframesIndex=!0;var L=R.keyframes;this._mediaInfo.keyframesIndex=this._parseKeyframesIndex(L),R.keyframes=null}else this._mediaInfo.hasKeyframesIndex=!1;this._dispatch=!1,this._mediaInfo.metadata=R,f.default.v(this.TAG,"Parsed onMetaData"),this._mediaInfo.isComplete()&&this._onMediaInfo(this._mediaInfo)}Object.keys(A).length>0&&this._onScriptDataArrived&&this._onScriptDataArrived(Object.assign({},A))},C.prototype._parseKeyframesIndex=function(x){for(var E=[],_=[],A=1;A>>4;if(D!==2&&D!==10){this._onError(m.default.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec idx: "+D);return}var N=0,L=(M&12)>>>2;if(L>=0&&L<=4)N=this._flvSoundRateTable[L];else{this._onError(m.default.FORMAT_ERROR,"Flv: Invalid audio sample rate idx: "+L);return}var B=M&1,U=this._audioMetadata,W=this._audioTrack;if(U||(this._hasAudio===!1&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=!0,this._mediaInfo.hasAudio=!0),U=this._audioMetadata={},U.type="audio",U.id=W.id,U.timescale=this._timescale,U.duration=this._duration,U.audioSampleRate=N,U.channelCount=B===0?1:2),D===10){var V=this._parseAACAudioData(x,E+1,_-1);if(V==null)return;if(V.packetType===0){U.config&&f.default.w(this.TAG,"Found another AudioSpecificConfig!");var z=V.data;U.audioSampleRate=z.samplingRate,U.channelCount=z.channelCount,U.codec=z.codec,U.originalCodec=z.originalCodec,U.config=z.config,U.refSampleDuration=1024/U.audioSampleRate*U.timescale,f.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",U);var Y=this._mediaInfo;Y.audioCodec=U.originalCodec,Y.audioSampleRate=U.audioSampleRate,Y.audioChannelCount=U.channelCount,Y.hasVideo?Y.videoCodec!=null&&(Y.mimeType='video/x-flv; codecs="'+Y.videoCodec+","+Y.audioCodec+'"'):Y.mimeType='video/x-flv; codecs="'+Y.audioCodec+'"',Y.isComplete()&&this._onMediaInfo(Y)}else if(V.packetType===1){var oe=this._timestampBase+A,ne={unit:V.data,length:V.data.byteLength,dts:oe,pts:oe};W.samples.push(ne),W.length+=V.data.length}else f.default.e(this.TAG,"Flv: Unsupported AAC data type "+V.packetType)}else if(D===2){if(!U.codec){var z=this._parseMP3AudioData(x,E+1,_-1,!0);if(z==null)return;U.audioSampleRate=z.samplingRate,U.channelCount=z.channelCount,U.codec=z.codec,U.originalCodec=z.originalCodec,U.refSampleDuration=1152/U.audioSampleRate*U.timescale,f.default.v(this.TAG,"Parsed MPEG Audio Frame Header"),this._audioInitialMetadataDispatched=!0,this._onTrackMetadata("audio",U);var Y=this._mediaInfo;Y.audioCodec=U.codec,Y.audioSampleRate=U.audioSampleRate,Y.audioChannelCount=U.channelCount,Y.audioDataRate=z.bitRate,Y.hasVideo?Y.videoCodec!=null&&(Y.mimeType='video/x-flv; codecs="'+Y.videoCodec+","+Y.audioCodec+'"'):Y.mimeType='video/x-flv; codecs="'+Y.audioCodec+'"',Y.isComplete()&&this._onMediaInfo(Y)}var X=this._parseMP3AudioData(x,E+1,_-1,!1);if(X==null)return;var oe=this._timestampBase+A,K={unit:X,length:X.byteLength,dts:oe,pts:oe};W.samples.push(K),W.length+=X.length}}},C.prototype._parseAACAudioData=function(x,E,_){if(_<=1){f.default.w(this.TAG,"Flv: Invalid AAC packet, missing AACPacketType or/and Data!");return}var A={},R=new Uint8Array(x,E,_);return A.packetType=R[0],R[0]===0?A.data=this._parseAACAudioSpecificConfig(x,E+1,_-1):A.data=R.subarray(1),A},C.prototype._parseAACAudioSpecificConfig=function(x,E,_){var A=new Uint8Array(x,E,_),R=null,M=0,D=0,N=0,L=null;if(M=D=A[0]>>>3,N=(A[0]&7)<<1|A[1]>>>7,N<0||N>=this._mpegSamplingRates.length){this._onError(m.default.FORMAT_ERROR,"Flv: AAC invalid sampling frequency index!");return}var B=this._mpegSamplingRates[N],U=(A[1]&120)>>>3;if(U<0||U>=8){this._onError(m.default.FORMAT_ERROR,"Flv: AAC invalid channel configuration");return}M===5&&(L=(A[1]&7)<<1|A[2]>>>7,(A[2]&124)>>>2);var W=self.navigator.userAgent.toLowerCase();return W.indexOf("firefox")!==-1?N>=6?(M=5,R=new Array(4),L=N-3):(M=2,R=new Array(2),L=N):W.indexOf("android")!==-1?(M=2,R=new Array(2),L=N):(M=5,L=N,R=new Array(4),N>=6?L=N-3:U===1&&(M=2,R=new Array(2),L=N)),R[0]=M<<3,R[0]|=(N&15)>>>1,R[1]=(N&15)<<7,R[1]|=(U&15)<<3,M===5&&(R[1]|=(L&15)>>>1,R[2]=(L&1)<<7,R[2]|=8,R[3]=0),{config:R,samplingRate:B,channelCount:U,codec:"mp4a.40."+M,originalCodec:"mp4a.40."+D}},C.prototype._parseMP3AudioData=function(x,E,_,A){if(_<4){f.default.w(this.TAG,"Flv: Invalid MP3 packet, header missing!");return}this._littleEndian;var R=new Uint8Array(x,E,_),M=null;if(A){if(R[0]!==255)return;var D=R[1]>>>3&3,N=(R[1]&6)>>1,L=(R[2]&240)>>>4,B=(R[2]&12)>>>2,U=R[3]>>>6&3,W=U!==3?2:1,V=0,z=0,Y="mp3";switch(D){case 0:V=this._mpegAudioV25SampleRateTable[B];break;case 2:V=this._mpegAudioV20SampleRateTable[B];break;case 3:V=this._mpegAudioV10SampleRateTable[B];break}switch(N){case 1:L>>4,N=M&15;if(N!==7){this._onError(m.default.CODEC_UNSUPPORTED,"Flv: Unsupported codec in video frame: "+N);return}this._parseAVCVideoPacket(x,E+1,_-1,A,R,D)}},C.prototype._parseAVCVideoPacket=function(x,E,_,A,R,M){if(_<4){f.default.w(this.TAG,"Flv: Invalid AVC packet, missing AVCPacketType or/and CompositionTime");return}var D=this._littleEndian,N=new DataView(x,E,_),L=N.getUint8(0),B=N.getUint32(0,!D)&16777215,U=B<<8>>8;if(L===0)this._parseAVCDecoderConfigurationRecord(x,E+4,_-4);else if(L===1)this._parseAVCVideoData(x,E+4,_-4,A,R,M,U);else if(L!==2){this._onError(m.default.FORMAT_ERROR,"Flv: Invalid video packet type "+L);return}},C.prototype._parseAVCDecoderConfigurationRecord=function(x,E,_){if(_<7){f.default.w(this.TAG,"Flv: Invalid AVCDecoderConfigurationRecord, lack of data!");return}var A=this._videoMetadata,R=this._videoTrack,M=this._littleEndian,D=new DataView(x,E,_);A?typeof A.avcc<"u"&&f.default.w(this.TAG,"Found another AVCDecoderConfigurationRecord!"):(this._hasVideo===!1&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=!0,this._mediaInfo.hasVideo=!0),A=this._videoMetadata={},A.type="video",A.id=R.id,A.timescale=this._timescale,A.duration=this._duration);var N=D.getUint8(0),L=D.getUint8(1);if(D.getUint8(2),D.getUint8(3),N!==1||L===0){this._onError(m.default.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord");return}if(this._naluLengthSize=(D.getUint8(4)&3)+1,this._naluLengthSize!==3&&this._naluLengthSize!==4){this._onError(m.default.FORMAT_ERROR,"Flv: Strange NaluLengthSizeMinusOne: "+(this._naluLengthSize-1));return}var B=D.getUint8(5)&31;if(B===0){this._onError(m.default.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No SPS");return}else B>1&&f.default.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: SPS Count = "+B);for(var U=6,W=0;W1&&f.default.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: PPS Count = "+Q);U++;for(var W=0;W=_){f.default.w(this.TAG,"Malformed Nalu near timestamp "+z+", offset = "+W+", dataSize = "+_);break}var oe=L.getUint32(W,!N);if(V===3&&(oe>>>=8),oe>_-V){f.default.w(this.TAG,"Malformed Nalus near timestamp "+z+", NaluSize > DataSize!");return}var ne=L.getUint8(W+V)&31;ne===5&&(Y=!0);var X=new Uint8Array(x,E+W,V+oe),K={type:ne,data:X};B.push(K),U+=X.byteLength,W+=V+oe}if(B.length){var re=this._videoTrack,ee={units:B,length:U,isKeyframe:Y,dts:z,cts:D,pts:z+D};Y&&(ee.fileposition=R),re.samples.push(ee),re.length+=U}},C})();l.default=k}),"./src/demux/sps-parser.js":(function(s,l,c){c.r(l);var f=c("./src/demux/exp-golomb.js"),h=(function(){function p(){}return p._ebsp2rbsp=function(m){for(var g=m,b=g.byteLength,S=new Uint8Array(b),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(m){var g=p._ebsp2rbsp(m),b=new f.default(g);b.readByte();var S=b.readByte();b.readByte();var k=b.readByte();b.readUEG();var C=p.getProfileString(S),x=p.getLevelString(k),E=1,_=420,A=[0,420,422,444],R=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=b.readUEG(),E===3&&b.readBits(1),E<=3&&(_=A[E]),R=b.readUEG()+8,b.readUEG(),b.readBits(1),b.readBool()))for(var M=E!==3?8:12,D=0;D0&&ve<16?(K=Ce[ve-1],re=De[ve-1]):ve===255&&(K=b.readByte()<<8|b.readByte(),re=b.readByte()<<8|b.readByte())}if(b.readBool()&&b.readBool(),b.readBool()&&(b.readBits(4),b.readBool()&&b.readBits(24)),b.readBool()&&(b.readUEG(),b.readUEG()),b.readBool()){var We=b.readBits(32),Xe=b.readBits(32);le=b.readBool(),Q=Xe,ye=We*2,ee=Q/ye}}var He=1;(K!==1||re!==1)&&(He=K/re);var ke=0,Se=0;if(E===0)ke=1,Se=2-V;else{var Ne=E===3?1:2,qe=E===1?2:1;ke=Ne,Se=qe*(2-V)}var Je=(U+1)*16,ot=(2-V)*((W+1)*16);Je-=(z+Y)*ke,ot-=(oe+ne)*Se;var yt=Math.ceil(Je*He);return b.destroy(),b=null,{profile_string:C,level_string:x,bit_depth:R,ref_frames:B,chroma_format:_,chroma_format_string:p.getChromaFormatString(_),frame_rate:{fixed:le,fps:ee,fps_den:ye,fps_num:Q},sar_ratio:{width:K,height:re},codec_size:{width:Je,height:ot},present_size:{width:yt,height:ot}}},p._skipScalingList=function(m,g){for(var b=8,S=8,k=0,C=0;C=15048,C=f.default.msedge?k:!0;return self.fetch&&self.ReadableStream&&C}catch{return!1}},S.prototype.destroy=function(){this.isWorking()&&this.abort(),b.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),A=new self.Headers;if(typeof _.headers=="object"){var R=_.headers;for(var M in R)R.hasOwnProperty(M)&&A.append(M,R[M])}var D={method:"GET",headers:A,mode:"cors",cache:"default",referrerPolicy:"no-referrer-when-downgrade"};if(typeof this._config.headers=="object")for(var M in this._config.headers)A.append(M,this._config.headers[M]);k.cors===!1&&(D.mode="same-origin"),k.withCredentials&&(D.credentials="include"),k.referrerPolicy&&(D.referrerPolicy=k.referrerPolicy),self.AbortController&&(this._abortController=new self.AbortController,D.signal=this._abortController.signal),this._status=h.LoaderStatus.kConnecting,self.fetch(_.url,D).then(function(N){if(x._requestAbort){x._status=h.LoaderStatus.kIdle,N.body.cancel();return}if(N.ok&&N.status>=200&&N.status<=299){if(N.url!==_.url&&x._onURLRedirect){var L=x._seekHandler.removeURLParameters(N.url);x._onURLRedirect(L)}var B=N.headers.get("Content-Length");return B!=null&&(x._contentLength=parseInt(B),x._contentLength!==0&&x._onContentLengthKnown&&x._onContentLengthKnown(x._contentLength)),x._pump.call(x,N.body.getReader())}else if(x._status=h.LoaderStatus.kError,x._onError)x._onError(h.LoaderErrors.HTTP_STATUS_CODE_INVALID,{code:N.status,msg:N.statusText});else throw new p.RuntimeException("FetchStreamLoader: Http code invalid, "+N.status+" "+N.statusText)}).catch(function(N){if(!(x._abortController&&x._abortController.signal.aborted))if(x._status=h.LoaderStatus.kError,x._onError)x._onError(h.LoaderErrors.EXCEPTION,{code:-1,msg:N.message});else throw N})},S.prototype.abort=function(){if(this._requestAbort=!0,(this._status!==h.LoaderStatus.kBuffering||!f.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=R.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,R.enableStashBuffer===!1&&(this._enableStash=!1),this._loader=null,this._loaderClass=null,this._seekHandler=null,this._dataSource=A,this._isWebSocketURL=/wss?:\/\/(.+?)/.test(A.url),this._refTotalLength=A.filesize?A.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(A){this._extraData=A},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onDataArrival",{get:function(){return this._onDataArrival},set:function(A){this._onDataArrival=A},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onSeeked",{get:function(){return this._onSeeked},set:function(A){this._onSeeked=A},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onError",{get:function(){return this._onError},set:function(A){this._onError=A},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onComplete",{get:function(){return this._onComplete},set:function(A){this._onComplete=A},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onRedirect",{get:function(){return this._onRedirect},set:function(A){this._onRedirect=A},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onRecoveredEarlyEof",{get:function(){return this._onRecoveredEarlyEof},set:function(A){this._onRecoveredEarlyEof=A},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===b.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 A=this._config;if(A.seekType==="range")this._seekHandler=new k.default(this._config.rangeLoadZeroStart);else if(A.seekType==="param"){var R=A.seekParamStart||"bstart",M=A.seekParamEnd||"bend";this._seekHandler=new C.default(R,M)}else if(A.seekType==="custom"){if(typeof A.customSeekHandler!="function")throw new x.InvalidArgumentException("Custom seekType specified in config but invalid customSeekHandler!");this._seekHandler=new A.customSeekHandler}else throw new x.InvalidArgumentException("Invalid seekType in config: "+A.seekType)},_.prototype._selectLoader=function(){if(this._config.customLoader!=null)this._loaderClass=this._config.customLoader;else if(this._isWebSocketURL)this._loaderClass=S.default;else if(m.default.isSupported())this._loaderClass=m.default;else if(g.default.isSupported())this._loaderClass=g.default;else if(b.default.isSupported())this._loaderClass=b.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(A){this._currentRange={from:0,to:-1},A&&(this._currentRange.from=A),this._speedSampler.reset(),A||(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 A=this._resumeFrom;this._resumeFrom=0,this._internalSeek(A,!0)}},_.prototype.seek=function(A){this._paused=!1,this._stashUsed=0,this._stashByteStart=0,this._internalSeek(A,!0)},_.prototype._internalSeek=function(A,R){this._loader.isWorking()&&this._loader.abort(),this._flushStashBuffer(R),this._loader.destroy(),this._loader=null;var M={from:A,to:-1};this._currentRange={from:M.from,to:-1},this._speedSampler.reset(),this._stashSize=this._stashInitialSize,this._createLoader(),this._loader.open(this._dataSource,M),this._onSeeked&&this._onSeeked()},_.prototype.updateUrl=function(A){if(!A||typeof A!="string"||A.length===0)throw new x.InvalidArgumentException("Url must be a non-empty string!");this._dataSource.url=A},_.prototype._expandBuffer=function(A){for(var R=this._stashSize;R+1024*1024*10){var D=new Uint8Array(this._stashBuffer,0,this._stashUsed),N=new Uint8Array(M,0,R);N.set(D,0)}this._stashBuffer=M,this._bufferSize=R}},_.prototype._normalizeSpeed=function(A){var R=this._speedNormalizeList,M=R.length-1,D=0,N=0,L=M;if(A=R[D]&&A=512&&A<=1024?R=Math.floor(A*1.5):R=A*2,R>8192&&(R=8192);var M=R*1024+1024*1024*1;this._bufferSize0){var V=this._stashBuffer.slice(0,this._stashUsed),L=this._dispatchChunks(V,this._stashByteStart);if(L0){var W=new Uint8Array(V,L);U.set(W,0),this._stashUsed=W.byteLength,this._stashByteStart+=L}}else this._stashUsed=0,this._stashByteStart+=L;this._stashUsed+A.byteLength>this._bufferSize&&(this._expandBuffer(this._stashUsed+A.byteLength),U=new Uint8Array(this._stashBuffer,0,this._bufferSize)),U.set(new Uint8Array(A),this._stashUsed),this._stashUsed+=A.byteLength}else{var L=this._dispatchChunks(A,R);if(Lthis._bufferSize&&(this._expandBuffer(B),U=new Uint8Array(this._stashBuffer,0,this._bufferSize)),U.set(new Uint8Array(A,L),0),this._stashUsed+=B,this._stashByteStart=R+L}}}else if(this._stashUsed===0){var L=this._dispatchChunks(A,R);if(Lthis._bufferSize&&this._expandBuffer(B);var U=new Uint8Array(this._stashBuffer,0,this._bufferSize);U.set(new Uint8Array(A,L),0),this._stashUsed+=B,this._stashByteStart=R+L}}else{this._stashUsed+A.byteLength>this._bufferSize&&this._expandBuffer(this._stashUsed+A.byteLength);var U=new Uint8Array(this._stashBuffer,0,this._bufferSize);U.set(new Uint8Array(A),this._stashUsed),this._stashUsed+=A.byteLength;var L=this._dispatchChunks(this._stashBuffer.slice(0,this._stashUsed),this._stashByteStart);if(L0){var W=new Uint8Array(this._stashBuffer,L);U.set(W,0)}this._stashUsed-=L,this._stashByteStart+=L}}},_.prototype._flushStashBuffer=function(A){if(this._stashUsed>0){var R=this._stashBuffer.slice(0,this._stashUsed),M=this._dispatchChunks(R,this._stashByteStart),D=R.byteLength-M;if(M0){var N=new Uint8Array(this._stashBuffer,0,this._bufferSize),L=new Uint8Array(R,M);N.set(L,0),this._stashUsed=L.byteLength,this._stashByteStart+=M}return 0}return this._stashUsed=0,this._stashByteStart=0,D}return 0},_.prototype._onLoaderComplete=function(A,R){this._flushStashBuffer(!0),this._onComplete&&this._onComplete(this._extraData)},_.prototype._onLoaderError=function(A,R){switch(f.default.e(this.TAG,"Loader error, code = "+R.code+", msg = "+R.msg),this._flushStashBuffer(!1),this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,A=p.LoaderErrors.UNRECOVERABLE_EARLY_EOF),A){case p.LoaderErrors.EARLY_EOF:{if(!this._config.isLive&&this._totalLength){var M=this._currentRange.to+1;M0)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?m:m+"?"+S},h})();l.default=f}),"./src/io/range-seek-handler.js":(function(s,l,c){c.r(l);var f=(function(){function h(p){this._zeroStart=p||!1}return h.prototype.getConfig=function(p,m){var g={};if(m.from!==0||m.to!==-1){var b=void 0;m.to!==-1?b="bytes="+m.from.toString()+"-"+m.to.toString():b="bytes="+m.from.toString()+"-",g.Range=b}else this._zeroStart&&(g.Range="bytes=0-");return{url:p,headers:g}},h.prototype.removeURLParameters=function(p){return p},h})();l.default=f}),"./src/io/speed-sampler.js":(function(s,l,c){c.r(l);var f=(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=f}),"./src/io/websocket-loader.js":(function(s,l,c){c.r(l);var f=c("./src/io/loader.js"),h=c("./src/utils/exception.js"),p=(function(){var g=function(b,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(b,S)};return function(b,S){if(typeof S!="function"&&S!==null)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");g(b,S);function k(){this.constructor=b}b.prototype=S===null?Object.create(S):(k.prototype=S.prototype,new k)}})(),m=(function(g){p(b,g);function b(){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 b.isSupported=function(){try{return typeof self.WebSocket<"u"}catch{return!1}},b.prototype.destroy=function(){this._ws&&this.abort(),g.prototype.destroy.call(this)},b.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=f.LoaderStatus.kConnecting}catch(x){this._status=f.LoaderStatus.kError;var C={code:x.code,msg:x.message};if(this._onError)this._onError(f.LoaderErrors.EXCEPTION,C);else throw new h.RuntimeException(C.msg)}},b.prototype.abort=function(){var S=this._ws;S&&(S.readyState===0||S.readyState===1)&&(this._requestAbort=!0,S.close()),this._ws=null,this._status=f.LoaderStatus.kComplete},b.prototype._onWebSocketOpen=function(S){this._status=f.LoaderStatus.kBuffering},b.prototype._onWebSocketClose=function(S){if(this._requestAbort===!0){this._requestAbort=!1;return}this._status=f.LoaderStatus.kComplete,this._onComplete&&this._onComplete(0,this._receivedLength-1)},b.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=f.LoaderStatus.kError;var x={code:-1,msg:"Unsupported WebSocket message type: "+S.data.constructor.name};if(this._onError)this._onError(f.LoaderErrors.EXCEPTION,x);else throw new h.RuntimeException(x.msg)}},b.prototype._dispatchArrayBuffer=function(S){var k=S,C=this._receivedLength;this._receivedLength+=k.byteLength,this._onDataArrival&&this._onDataArrival(k,C,this._receivedLength)},b.prototype._onWebSocketError=function(S){this._status=f.LoaderStatus.kError;var k={code:S.code,msg:S.message};if(this._onError)this._onError(f.LoaderErrors.EXCEPTION,k);else throw new h.RuntimeException(k.msg)},b})(f.BaseLoader);l.default=m}),"./src/io/xhr-moz-chunked-loader.js":(function(s,l,c){c.r(l);var f=c("./src/utils/logger.js"),h=c("./src/io/loader.js"),p=c("./src/utils/exception.js"),m=(function(){var b=function(S,k){return b=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])},b(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");b(S,k);function C(){this.constructor=S}S.prototype=k===null?Object.create(k):(C.prototype=k.prototype,new C)}})(),g=(function(b){m(S,b);function S(k,C){var x=b.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 f.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),b.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 A=E.headers;for(var R in A)A.hasOwnProperty(R)&&_.setRequestHeader(R,A[R])}if(typeof this._config.headers=="object"){var A=this._config.headers;for(var R in A)A.hasOwnProperty(R)&&_.setRequestHeader(R,A[R])}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 A=this._xhr=new XMLHttpRequest;if(A.open("GET",_.url,!0),A.responseType="arraybuffer",A.onreadystatechange=this._onReadyStateChange.bind(this),A.onprogress=this._onProgress.bind(this),A.onload=this._onLoad.bind(this),A.onerror=this._onXhrError.bind(this),C.withCredentials&&(A.withCredentials=!0),typeof _.headers=="object"){var R=_.headers;for(var M in R)R.hasOwnProperty(M)&&A.setRequestHeader(M,R[M])}if(typeof this._config.headers=="object"){var R=this._config.headers;for(var M in R)R.hasOwnProperty(M)&&A.setRequestHeader(M,R[M])}A.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 m.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,A=0,R=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,A=this._range.from+this._receivedLength;this._receivedLength+=_.byteLength;var R=!1;this._contentLength!=null&&this._receivedLength0&&this._receivedLength0&&(this._requestSetTime=!0,this._mediaElement.currentTime=0),this._transmuxer=new b.default(this._mediaDataSource,this._config),this._transmuxer.on(S.default.INIT_SEGMENT,function(D,N){M._msectl.appendInitSegment(N)}),this._transmuxer.on(S.default.MEDIA_SEGMENT,function(D,N){if(M._msectl.appendMediaSegment(N),M._config.lazyLoad&&!M._config.isLive){var L=M._mediaElement.currentTime;N.info.endDts>=(L+M._config.lazyLoadMaxDuration)*1e3&&M._progressChecker==null&&(p.default.v(M.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),M._suspendTransmuxer())}}),this._transmuxer.on(S.default.LOADING_COMPLETE,function(){M._msectl.endOfStream(),M._emitter.emit(g.default.LOADING_COMPLETE)}),this._transmuxer.on(S.default.RECOVERED_EARLY_EOF,function(){M._emitter.emit(g.default.RECOVERED_EARLY_EOF)}),this._transmuxer.on(S.default.IO_ERROR,function(D,N){M._emitter.emit(g.default.ERROR,x.ErrorTypes.NETWORK_ERROR,D,N)}),this._transmuxer.on(S.default.DEMUX_ERROR,function(D,N){M._emitter.emit(g.default.ERROR,x.ErrorTypes.MEDIA_ERROR,D,{code:-1,msg:N})}),this._transmuxer.on(S.default.MEDIA_INFO,function(D){M._mediaInfo=D,M._emitter.emit(g.default.MEDIA_INFO,Object.assign({},D))}),this._transmuxer.on(S.default.METADATA_ARRIVED,function(D){M._emitter.emit(g.default.METADATA_ARRIVED,D)}),this._transmuxer.on(S.default.SCRIPTDATA_ARRIVED,function(D){M._emitter.emit(g.default.SCRIPTDATA_ARRIVED,D)}),this._transmuxer.on(S.default.STATISTICS_INFO,function(D){M._statisticsInfo=M._fillStatisticsInfo(D),M._emitter.emit(g.default.STATISTICS_INFO,Object.assign({},M._statisticsInfo))}),this._transmuxer.on(S.default.RECOMMEND_SEEKPOINT,function(D){M._mediaElement&&!M._config.accurateSeek&&(M._requestSetTime=!0,M._mediaElement.currentTime=D/1e3)}),this._transmuxer.open()}},R.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)},R.prototype.play=function(){return this._mediaElement.play()},R.prototype.pause=function(){this._mediaElement.pause()},Object.defineProperty(R.prototype,"type",{get:function(){return this._type},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"buffered",{get:function(){return this._mediaElement.buffered},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"duration",{get:function(){return this._mediaElement.duration},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"volume",{get:function(){return this._mediaElement.volume},set:function(M){this._mediaElement.volume=M},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"muted",{get:function(){return this._mediaElement.muted},set:function(M){this._mediaElement.muted=M},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"currentTime",{get:function(){return this._mediaElement?this._mediaElement.currentTime:0},set:function(M){this._mediaElement?this._internalSeek(M):this._pendingSeekTime=M},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"mediaInfo",{get:function(){return Object.assign({},this._mediaInfo)},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"statisticsInfo",{get:function(){return this._statisticsInfo==null&&(this._statisticsInfo={}),this._statisticsInfo=this._fillStatisticsInfo(this._statisticsInfo),Object.assign({},this._statisticsInfo)},enumerable:!1,configurable:!0}),R.prototype._fillStatisticsInfo=function(M){if(M.playerType=this._type,!(this._mediaElement instanceof HTMLVideoElement))return M;var D=!0,N=0,L=0;if(this._mediaElement.getVideoPlaybackQuality){var B=this._mediaElement.getVideoPlaybackQuality();N=B.totalVideoFrames,L=B.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(N=this._mediaElement.webkitDecodedFrameCount,L=this._mediaElement.webkitDroppedFrameCount):D=!1;return D&&(M.decodedFrames=N,M.droppedFrames=L),M},R.prototype._onmseUpdateEnd=function(){if(!(!this._config.lazyLoad||this._config.isLive)){for(var M=this._mediaElement.buffered,D=this._mediaElement.currentTime,N=0,L=0;L=D+this._config.lazyLoadMaxDuration&&this._progressChecker==null&&(p.default.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}},R.prototype._onmseBufferFull=function(){p.default.v(this.TAG,"MSE SourceBuffer is full, suspend transmuxing task"),this._progressChecker==null&&this._suspendTransmuxer()},R.prototype._suspendTransmuxer=function(){this._transmuxer&&(this._transmuxer.pause(),this._progressChecker==null&&(this._progressChecker=window.setInterval(this._checkProgressAndResume.bind(this),1e3)))},R.prototype._checkProgressAndResume=function(){for(var M=this._mediaElement.currentTime,D=this._mediaElement.buffered,N=!1,L=0;L=B&&M=U-this._config.lazyLoadRecoverDuration&&(N=!0);break}}N&&(window.clearInterval(this._progressChecker),this._progressChecker=null,N&&(p.default.v(this.TAG,"Continue loading from paused position"),this._transmuxer.resume()))},R.prototype._isTimepointBuffered=function(M){for(var D=this._mediaElement.buffered,N=0;N=L&&M0){var B=this._mediaElement.buffered.start(0);(B<1&&M0&&D.currentTime0){var L=N.start(0);if(L<1&&D0&&(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=b}),"./src/player/player-errors.js":(function(s,l,c){c.r(l),c.d(l,{ErrorTypes:function(){return p},ErrorDetails:function(){return m}});var f=c("./src/io/loader.js"),h=c("./src/demux/demux-errors.js"),p={NETWORK_ERROR:"NetworkError",MEDIA_ERROR:"MediaError",OTHER_ERROR:"OtherError"},m={NETWORK_EXCEPTION:f.LoaderErrors.EXCEPTION,NETWORK_STATUS_CODE_INVALID:f.LoaderErrors.HTTP_STATUS_CODE_INVALID,NETWORK_TIMEOUT:f.LoaderErrors.CONNECTING_TIMEOUT,NETWORK_UNRECOVERABLE_EARLY_EOF:f.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 f={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=f}),"./src/remux/aac-silent.js":(function(s,l,c){c.r(l);var f=(function(){function h(){}return h.getSilentFrame=function(p,m){if(p==="mp4a.40.2"){if(m===1)return new Uint8Array([0,200,0,128,35,128]);if(m===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(m===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(m===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(m===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(m===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(m===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(m===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(m===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=f}),"./src/remux/mp4-generator.js":(function(s,l,c){c.r(l);var f=(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 m=h.constants={};m.FTYP=new Uint8Array([105,115,111,109,0,0,0,1,105,115,111,109,97,118,99,49]),m.STSD_PREFIX=new Uint8Array([0,0,0,0,0,0,0,1]),m.STTS=new Uint8Array([0,0,0,0,0,0,0,0]),m.STSC=m.STCO=m.STTS,m.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),m.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]),m.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]),m.DREF=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),m.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),m.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])},h.box=function(p){for(var m=8,g=null,b=Array.prototype.slice.call(arguments,1),S=b.length,k=0;k>>24&255,g[1]=m>>>16&255,g[2]=m>>>8&255,g[3]=m&255,g.set(p,4);for(var C=8,k=0;k>>24&255,p>>>16&255,p>>>8&255,p&255,m>>>24&255,m>>>16&255,m>>>8&255,m&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 m=p.id,g=p.duration,b=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,m>>>24&255,m>>>16&255,m>>>8&255,m&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,b>>>8&255,b&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 m=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,m>>>24&255,m>>>16&255,m>>>8&255,m&255,g>>>24&255,g>>>16&255,g>>>8&255,g&255,85,196,0,0]))},h.hdlr=function(p){var m=null;return p.type==="audio"?m=h.constants.HDLR_AUDIO:m=h.constants.HDLR_VIDEO,h.box(h.types.hdlr,m)},h.minf=function(p){var m=null;return p.type==="audio"?m=h.box(h.types.smhd,h.constants.SMHD):m=h.box(h.types.vmhd,h.constants.VMHD),h.box(h.types.minf,m,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 m=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 m},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 m=p.channelCount,g=p.audioSampleRate,b=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,m,0,16,0,0,0,0,g>>>8&255,g&255,0,0]);return h.box(h.types[".mp3"],b)},h.mp4a=function(p){var m=p.channelCount,g=p.audioSampleRate,b=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,m,0,16,0,0,0,0,g>>>8&255,g&255,0,0]);return h.box(h.types.mp4a,b,h.esds(p))},h.esds=function(p){var m=p.config||[],g=m.length,b=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(m).concat([6,1,2]));return h.box(h.types.esds,b)},h.avc1=function(p){var m=p.avcc,g=p.codecWidth,b=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,b>>>8&255,b&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,m))},h.mvex=function(p){return h.box(h.types.mvex,h.trex(p))},h.trex=function(p){var m=p.id,g=new Uint8Array([0,0,0,0,m>>>24&255,m>>>16&255,m>>>8&255,m&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,m){return h.box(h.types.moof,h.mfhd(p.sequenceNumber),h.traf(p,m))},h.mfhd=function(p){var m=new Uint8Array([0,0,0,0,p>>>24&255,p>>>16&255,p>>>8&255,p&255]);return h.box(h.types.mfhd,m)},h.traf=function(p,m){var g=p.id,b=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,m>>>24&255,m>>>16&255,m>>>8&255,m&255])),k=h.sdtp(p),C=h.trun(p,k.byteLength+16+16+8+16+8+8);return h.box(h.types.traf,b,S,C,k)},h.sdtp=function(p){for(var m=p.samples||[],g=m.length,b=new Uint8Array(4+g),S=0;S>>24&255,b>>>16&255,b>>>8&255,b&255,m>>>24&255,m>>>16&255,m>>>8&255,m&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,A>>>24&255,A>>>16&255,A>>>8&255,A&255],12+16*C)}return h.box(h.types.trun,k)},h.mdat=function(p){return h.box(h.types.mdat,p)},h})();f.init(),l.default=f}),"./src/remux/mp4-remuxer.js":(function(s,l,c){c.r(l);var f=c("./src/utils/logger.js"),h=c("./src/remux/mp4-generator.js"),p=c("./src/remux/aac-silent.js"),m=c("./src/utils/browser.js"),g=c("./src/core/media-segment-info.js"),b=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=!!(m.default.chrome&&(m.default.version.major<50||m.default.version.major===50&&m.default.version.build<2661)),this._fillSilentAfterSeek=m.default.msedge||m.default.msie,this._mp3UseMpegAudio=!m.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 b.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",A=x.codec;if(C==="audio")this._audioMeta=x,x.codec==="mp3"&&this._mp3UseMpegAudio?(_="mpeg",A="",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 b.IllegalStateException("MP4Remuxer: onInitSegment callback must be specified!");this._onInitSegment(C,{type:C,data:E.buffer,codec:A,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,A=void 0,R=-1,M=-1,D=this._audioMeta.refSampleDuration,N=this._audioMeta.codec==="mp3"&&this._mp3UseMpegAudio,L=this._dtsBaseInited&&this._audioNextDts===void 0,B=!1;if(!(!_||_.length===0)&&!(_.length===1&&!x)){var U=0,W=null,V=0;N?(U=0,V=E.length):(U=8,V=8+E.length);var z=null;if(_.length>1&&(z=_.pop(),V-=z.length),this._audioStashedLastSample!=null){var Y=this._audioStashedLastSample;this._audioStashedLastSample=null,_.unshift(Y),V+=Y.length}z!=null&&(this._audioStashedLastSample=z);var oe=_[0].dts-this._dtsBase;if(this._audioNextDts)A=oe-this._audioNextDts;else if(this._audioSegmentInfoList.isEmpty())A=0,this._fillSilentAfterSeek&&!this._videoSegmentInfoList.isEmpty()&&this._audioMeta.originalCodec!=="mp3"&&(B=!0);else{var ne=this._audioSegmentInfoList.getLastSampleBefore(oe);if(ne!=null){var X=oe-(ne.originalDts+ne.duration);X<=3&&(X=0);var K=ne.dts+ne.duration+X;A=oe-K}else A=0}if(B){var re=oe-A,ee=this._videoSegmentInfoList.getLastSegmentBefore(oe);if(ee!=null&&ee.beginDts=Se*D&&this._fillAudioTimestampGap&&!m.default.safari){We=!0;var Ne=Math.floor(A/D);f.default.w(this.TAG,`Large audio timestamp gap detected, may cause AV sync to drift. Silent frames will be generated to avoid unsync. `+("originalDts: "+De+" ms, curRefDts: "+ke+" ms, ")+("dtsCorrection: "+Math.round(A)+" ms, generate: "+Ne+" frames")),Q=Math.floor(ke),He=Math.floor(ke+D)-Q;var le=p.default.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);le==null&&(f.default.w(this.TAG,"Unable to generate silent frame for "+(this._audioMeta.originalCodec+" with "+this._audioMeta.channelCount+" channels, repeat last frame")),le=Ce),Xe=[];for(var qe=0;qe=1?He=be[be.length-1].duration:He=Math.floor(D);this._audioNextDts=Q+He}R===-1&&(R=Q),be.push({dts:Q,pts:Q,cts:0,unit:Y.unit,size:Y.unit.byteLength,duration:He,originalDts:De,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}}),We&&be.push.apply(be,Xe)}}if(be.length===0){E.samples=[],E.length=0;return}N?W=new Uint8Array(V):(W=new Uint8Array(V),W[0]=V>>>24&255,W[1]=V>>>16&255,W[2]=V>>>8&255,W[3]=V&255,W.set(h.default.types.mdat,4));for(var ve=0;ve1&&(W=_.pop(),U-=W.length),this._videoStashedLastSample!=null){var V=this._videoStashedLastSample;this._videoStashedLastSample=null,_.unshift(V),U+=V.length}W!=null&&(this._videoStashedLastSample=W);var z=_[0].dts-this._dtsBase;if(this._videoNextDts)A=z-this._videoNextDts;else if(this._videoSegmentInfoList.isEmpty())A=0;else{var Y=this._videoSegmentInfoList.getLastSampleBefore(z);if(Y!=null){var oe=z-(Y.originalDts+Y.duration);oe<=3&&(oe=0);var ne=Y.dts+Y.duration+oe;A=z-ne}else A=0}for(var X=new g.MediaSegmentInfo,K=[],re=0;re<_.length;re++){var V=_[re],ee=V.dts-this._dtsBase,le=V.isKeyframe,Q=ee-A,ye=V.cts,be=Q+ye;R===-1&&(R=Q,D=be);var ve=0;if(re!==_.length-1){var Ce=_[re+1].dts-this._dtsBase-A;ve=Ce-Q}else if(W!=null){var Ce=W.dts-this._dtsBase-A;ve=Ce-Q}else K.length>=1?ve=K[K.length-1].duration:ve=Math.floor(this._videoMeta.refSampleDuration);if(le){var De=new g.SampleInfo(Q,be,ve,V.dts,!0);De.fileposition=V.fileposition,X.appendSyncPoint(De)}K.push({dts:Q,pts:be,cts:ye,units:V.units,size:V.length,isKeyframe:le,duration:ve,originalDts:ee,flags:{isLeading:0,dependsOn:le?2:1,isDependedOn:le?1:0,hasRedundancy:0,isNonSync:le?0:1}})}B=new Uint8Array(U),B[0]=U>>>24&255,B[1]=U>>>16&255,B[2]=U>>>8&255,B[3]=U&255,B.set(h.default.types.mdat,4);for(var re=0;re=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)||[],b={browser:m[5]||m[3]||m[1]||"",version:m[2]||m[4]||"0",majorVersion:m[4]||m[2]||"0",platform:g[0]||""},S={};if(b.browser){S[b.browser]=!0;var k=b.majorVersion.split(".");S.version={major:parseInt(b.majorVersion,10),string:b.version},k.length>1&&(S.version.minor=parseInt(k[1],10)),k.length>2&&(S.version.build=parseInt(k[2],10))}if(b.platform&&(S[b.platform]=!0),(S.chrome||S.opr||S.safari)&&(S.webkit=!0),S.rv||S.iemobile){S.rv&&delete S.rv;var C="msie";b.browser=C,S[C]=!0}if(S.edge){delete S.edge;var x="msedge";b.browser=x,S[x]=!0}if(S.opr){var E="opera";b.browser=E,S[E]=!0}if(S.safari&&S.android){var _="android";b.browser=_,S[_]=!0}S.name=b.browser,S.platform=b.platform;for(var A in f)f.hasOwnProperty(A)&&delete f[A];Object.assign(f,S)}h(),l.default=f}),"./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 m},NotImplementedException:function(){return g}});var f=(function(){var b=function(S,k){return b=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])},b(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");b(S,k);function C(){this.constructor=S}S.prototype=k===null?Object.create(k):(C.prototype=k.prototype,new C)}})(),h=(function(){function b(S){this._message=S}return Object.defineProperty(b.prototype,"name",{get:function(){return"RuntimeException"},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"message",{get:function(){return this._message},enumerable:!1,configurable:!0}),b.prototype.toString=function(){return this.name+": "+this.message},b})(),p=(function(b){f(S,b);function S(k){return b.call(this,k)||this}return Object.defineProperty(S.prototype,"name",{get:function(){return"IllegalStateException"},enumerable:!1,configurable:!0}),S})(h),m=(function(b){f(S,b);function S(k){return b.call(this,k)||this}return Object.defineProperty(S.prototype,"name",{get:function(){return"InvalidArgumentException"},enumerable:!1,configurable:!0}),S})(h),g=(function(b){f(S,b);function S(k){return b.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 f=c("./node_modules/events/events.js"),h=c.n(f),p=(function(){function m(){}return m.e=function(g,b){(!g||m.FORCE_GLOBAL_TAG)&&(g=m.GLOBAL_TAG);var S="["+g+"] > "+b;m.ENABLE_CALLBACK&&m.emitter.emit("log","error",S),m.ENABLE_ERROR&&(console.error?console.error(S):console.warn?console.warn(S):console.log(S))},m.i=function(g,b){(!g||m.FORCE_GLOBAL_TAG)&&(g=m.GLOBAL_TAG);var S="["+g+"] > "+b;m.ENABLE_CALLBACK&&m.emitter.emit("log","info",S),m.ENABLE_INFO&&(console.info?console.info(S):console.log(S))},m.w=function(g,b){(!g||m.FORCE_GLOBAL_TAG)&&(g=m.GLOBAL_TAG);var S="["+g+"] > "+b;m.ENABLE_CALLBACK&&m.emitter.emit("log","warn",S),m.ENABLE_WARN&&(console.warn?console.warn(S):console.log(S))},m.d=function(g,b){(!g||m.FORCE_GLOBAL_TAG)&&(g=m.GLOBAL_TAG);var S="["+g+"] > "+b;m.ENABLE_CALLBACK&&m.emitter.emit("log","debug",S),m.ENABLE_DEBUG&&(console.debug?console.debug(S):console.log(S))},m.v=function(g,b){(!g||m.FORCE_GLOBAL_TAG)&&(g=m.GLOBAL_TAG);var S="["+g+"] > "+b;m.ENABLE_CALLBACK&&m.emitter.emit("log","verbose",S),m.ENABLE_VERBOSE&&console.log(S)},m})();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 f=c("./node_modules/events/events.js"),h=c.n(f),p=c("./src/utils/logger.js"),m=(function(){function g(){}return Object.defineProperty(g,"forceGlobalTag",{get:function(){return p.default.FORCE_GLOBAL_TAG},set:function(b){p.default.FORCE_GLOBAL_TAG=b,g._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(g,"globalTag",{get:function(){return p.default.GLOBAL_TAG},set:function(b){p.default.GLOBAL_TAG=b,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(b){p.default.ENABLE_VERBOSE=b,p.default.ENABLE_DEBUG=b,p.default.ENABLE_INFO=b,p.default.ENABLE_WARN=b,p.default.ENABLE_ERROR=b,g._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(g,"enableDebug",{get:function(){return p.default.ENABLE_DEBUG},set:function(b){p.default.ENABLE_DEBUG=b,g._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(g,"enableVerbose",{get:function(){return p.default.ENABLE_VERBOSE},set:function(b){p.default.ENABLE_VERBOSE=b,g._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(g,"enableInfo",{get:function(){return p.default.ENABLE_INFO},set:function(b){p.default.ENABLE_INFO=b,g._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(g,"enableWarn",{get:function(){return p.default.ENABLE_WARN},set:function(b){p.default.ENABLE_WARN=b,g._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(g,"enableError",{get:function(){return p.default.ENABLE_ERROR},set:function(b){p.default.ENABLE_ERROR=b,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(b){p.default.GLOBAL_TAG=b.globalTag,p.default.FORCE_GLOBAL_TAG=b.forceGlobalTag,p.default.ENABLE_VERBOSE=b.enableVerbose,p.default.ENABLE_DEBUG=b.enableDebug,p.default.ENABLE_INFO=b.enableInfo,p.default.ENABLE_WARN=b.enableWarn,p.default.ENABLE_ERROR=b.enableError,p.default.ENABLE_CALLBACK=b.enableCallback},g._notifyChange=function(){var b=g.emitter;if(b.listenerCount("change")>0){var S=g.getConfig();b.emit("change",S)}},g.registerListener=function(b){g.emitter.addListener("change",b)},g.removeListener=function(b){g.emitter.removeListener("change",b)},g.addLogListener=function(b){p.default.emitter.addListener("log",b),p.default.emitter.listenerCount("log")>0&&(p.default.ENABLE_CALLBACK=!0,g._notifyChange())},g.removeLogListener=function(b){p.default.emitter.removeListener("log",b),p.default.emitter.listenerCount("log")===0&&(p.default.ENABLE_CALLBACK=!1,g._notifyChange())},g})();m.emitter=new(h()),l.default=m}),"./src/utils/polyfill.js":(function(s,l,c){c.r(l);var f=(function(){function h(){}return h.install=function(){Object.setPrototypeOf=Object.setPrototypeOf||function(p,m){return p.__proto__=m,p},Object.assign=Object.assign||function(p){if(p==null)throw new TypeError("Cannot convert undefined or null to object");for(var m=Object(p),g=1;g=128){m.push(String.fromCharCode(k&65535)),b+=2;continue}}}else if(g[b]<240){if(f(g,b,2)){var k=(g[b]&15)<<12|(g[b+1]&63)<<6|g[b+2]&63;if(k>=2048&&(k&63488)!==55296){m.push(String.fromCharCode(k&65535)),b+=3;continue}}}else if(g[b]<248&&f(g,b,3)){var k=(g[b]&7)<<18|(g[b+1]&63)<<12|(g[b+2]&63)<<6|g[b+3]&63;if(k>65536&&k<1114112){k-=65536,m.push(String.fromCharCode(k>>>10|55296)),m.push(String.fromCharCode(k&1023|56320)),b+=4;continue}}}m.push("�"),++b}return m.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})()})})(aF)),aF.exports}var _4t=b4t();const oV=Td(_4t);var lF={};/* @license Shaka Player Copyright 2016 Google LLC SPDX-License-Identifier: Apache-2.0 */var ple;function S4t(){return ple||(ple=1,(function(e){(function(){var t=typeof window<"u"?window:y8e,n={};(function(o,a,s){var l,c=typeof Object.create=="function"?Object.create:function(i){function u(){}return u.prototype=i,new u},f=typeof Object.defineProperties=="function"?Object.defineProperty:function(i,u,d){return i==Array.prototype||i==Object.prototype||(i[u]=d.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)+"_",y=0;return u}),m("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(" "),d=0;d"u"?!0:(typeof T=="function"?T=new T("unhandledrejection",{cancelable:!0}):typeof P=="function"?T=new P("unhandledrejection",{cancelable:!0}):(T=p.document.createEvent("CustomEvent"),T.initCustomEvent("unhandledrejection",!1,!0,T)),T.promise=this,T.reason=this.i,$(T))},u.prototype.B=function(){if(this.g!=null){for(var T=0;T1114111||y!==Math.floor(y))throw new RangeError("invalid_code_point "+y);y<=65535?d+=String.fromCharCode(y):(y-=65536,d+=String.fromCharCode(y>>>10&1023|55296),d+=String.fromCharCode(y&1023|56320))}return d}}),m("WeakSet",function(i){function u(d){if(this.g=new WeakMap,d){d=_(d);for(var v;!(v=d.next()).done;)this.add(v.value)}}return(function(){if(!i||!Object.seal)return!1;try{var d=Object.seal({}),v=Object.seal({}),y=new i([d]);return!y.has(d)||y.has(v)?!1:(y.delete(d),y.add(v),!y.has(d)&&y.has(v))}catch{return!1}})()?i:(u.prototype.add=function(d){return this.g.set(d,!0),this},u.prototype.has=function(d){return this.g.has(d)},u.prototype.delete=function(d){return this.g.delete(d)},u)}),m("Array.prototype.find",function(i){return i||function(u,d){return ve(this,u,d).v}}),m("String.prototype.startsWith",function(i){return i||function(u,d){var v=De(this,u,"startsWith"),y=v.length,w=u.length;d=Math.max(0,Math.min(d|0,v.length));for(var T=0;T=w}}),m("Object.entries",function(i){return i||function(u){var d=[],v;for(v in u)be(u,v)&&d.push([v,u[v]]);return d}});var We=typeof Object.assign=="function"?Object.assign:function(i,u){for(var d=1;d1342177279)throw new RangeError("Invalid count value");u|=0;for(var v="";u;)u&1&&(v+=d),(u>>>=1)&&(d+=d);return v}}),m("Number.EPSILON",function(){return 2220446049250313e-31}),m("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991}),m("Number.isFinite",function(i){return i||function(u){return typeof u!="number"?!1:!isNaN(u)&&u!==1/0&&u!==-1/0}}),m("Object.values",function(i){return i||function(u){var d=[],v;for(v in u)be(u,v)&&d.push(u[v]);return d}}),m("Math.log2",function(i){return i||function(u){return Math.log(u)/Math.LN2}}),m("String.prototype.endsWith",function(i){return i||function(u,d){var v=De(this,u,"endsWith");d===void 0&&(d=v.length),d=Math.max(0,Math.min(d|0,v.length));for(var y=u.length;y>0&&d>0;)if(v[--d]!=u[--y])return!1;return y<=0}}),m("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 d=Math.floor(Math.abs(u));return u<0?-d:d}});var Xe=this||self;function He(i,u){i=i.split(".");var d=Xe;i[0]in d||typeof d.execScript>"u"||d.execScript("var "+i[0]);for(var v;i.length&&(v=i.shift());)i.length||u===void 0?d[v]&&d[v]!==Object.prototype[v]?d=d[v]:d=d[v]={}:d[v]=u}function ke(i){this.g=Math.exp(Math.log(.5)/i),this.i=this.h=0}ke.prototype.sample=function(i,u){var d=Math.pow(this.g,i);u=u*(1-d)+d*this.h,isNaN(u)||(this.h=u,this.i+=i)};function Se(i){return i.h/(1-Math.pow(i.g,i.i))}function Ne(){this.h=new ke(2),this.j=new ke(5),this.g=0,this.i=128e3,this.l=16e3}Ne.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)},Ne.prototype.sample=function(i,u){if(!(u-1&&i.splice(u,1)}function an(i,u,d){if(d||(d=Ft),i.length!=u.length)return!1;u=u.slice(),i=_(i);for(var v=i.next(),y={};!v.done;y={mi:void 0},v=i.next()){if(y.mi=v.value,v=u.findIndex((function(w){return function(T){return d(w.mi,T)}})(y)),v==-1)return!1;u[v]=u[u.length-1],u.pop()}return u.length==0}function mt(i,u,d){if(i===u)return!0;if(!i||!u)return i==u;if(d||(d=Ft),i.length!=u.length)return!1;for(var v=0;v0?v.i:v.h)(v.g,d,i,u)}function nn(i,u,d,v){ot([d,"has been deprecated and will be removed in",u,". We are currently at version",i,". Additional information:",v].join(" "))}function Ct(i,u,d,v){Je([d,"has been deprecated and has been removed in",u,". We are now at version",i,". Additional information:",v].join(" "))}var en=null;/* @license Copyright 2008 The Closure Library Authors SPDX-License-Identifier: Apache-2.0 */var Jn=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");/* @license Copyright 2006 The Closure Library Authors SPDX-License-Identifier: Apache-2.0 */function dn(i){var u;i instanceof dn?(Un(this,i.bc),this.hd=i.hd,Zr(this,i.Db),cn(this,i.Cd),this.Sb=i.Sb,hr(this,i.g.clone()),this.Rc=i.Rc):i&&(u=String(i).match(Jn))?(Un(this,u[1]||"",!0),this.hd=di(u[2]||""),Zr(this,u[3]||"",!0),cn(this,u[4]),this.Sb=di(u[5]||"",!0),hr(this,u[6]||"",!0),this.Rc=di(u[7]||"")):this.g=new se(null)}l=dn.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(gs(u,Ps,!0),":"),u=this.Db){i.push("//");var d=this.hd;d&&i.push(gs(d,Ps,!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(gs(u,u.charAt(0)=="/"?Xi:Kc,!0))),(u=this.g.toString())&&i.push("?",u),(u=this.Rc)&&i.push("#",gs(u,ce)),i.join("")},l.resolve=function(i){var u=this.clone();u.bc==="data"&&(u=new dn);var d=!!i.bc;d?Un(u,i.bc):d=!!i.hd,d?u.hd=i.hd:d=!!i.Db,d?Zr(u,i.Db):d=i.Cd!=null;var v=i.Sb;if(d)cn(u,i.Cd);else if(d=!!i.Sb){if(v.charAt(0)!="/")if(this.Db&&!this.Sb)v="/"+v;else{var y=u.Sb.lastIndexOf("/");y!=-1&&(v=u.Sb.substr(0,y+1)+v)}if(v==".."||v==".")v="";else if(v.indexOf("./")!=-1||v.indexOf("/.")!=-1){y=v.lastIndexOf("/",0)==0,v=v.split("/");for(var w=[],T=0;T1||w.length==1&&w[0]!="")&&w.pop(),y&&T==v.length&&w.push("")):(w.push(P),y=!0)}v=w.join("/")}}return d?u.Sb=v:d=i.g.toString()!=="",d?hr(u,i.g.clone()):d=!!i.Rc,d&&(u.Rc=i.Rc),u},l.clone=function(){return new dn(this)};function Un(i,u,d){i.bc=d?di(u,!0):u,i.bc&&(i.bc=i.bc.replace(/:$/,""))}function Zr(i,u,d){i.Db=d?di(u,!0):u}function cn(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 hr(i,u,d){u instanceof se?i.g=u:(d||(u=gs(u,ql)),i.g=new se(u))}function di(i,u){return i?u?decodeURI(i):decodeURIComponent(i):""}function gs(i,u,d){return i!=null?(i=encodeURI(i).replace(u,Po),d&&(i=i.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),i):null}function Po(i){return i=i.charCodeAt(0),"%"+(i>>4&15).toString(16)+(i&15).toString(16)}var Ps=/[#\/\?@]/g,Kc=/[#\?:]/g,Xi=/[#\?]/g,ql=/[#\?@]/g,ce=/#/g;function se(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("&"),d=0;d=0){var w=u[d].substring(0,v);y=u[d].substring(v+1)}else w=u[d];w=decodeURIComponent(w),y=y||"",i.add(w,decodeURIComponent(y))}}l=se.prototype,l.eb=null,l.Sd=null;function Z(i){return te(i),i.Sd}l.add=function(i,u){te(this),this.g=null;var d=this.eb.has(i)?this.eb.get(i):null;return d||this.eb.set(i,d=[]),d.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()),d=u.next();!d.done;d=u.next()){var v=d.value;d=encodeURIComponent(v),v=this.eb.get(v);for(var y=0;y=d+2&&(i[d]&224)==192&&(i[d+1]&192)==128?(v=(i[d]&31)<<6|i[d+1]&63,d+=1):i.length>=d+3&&(i[d]&240)==224&&(i[d+1]&192)==128&&(i[d+2]&192)==128?(v=(i[d]&15)<<12|(i[d+1]&63)<<6|i[d+2]&63,d+=2):i.length>=d+4&&(i[d]&241)==240&&(i[d+1]&192)==128&&(i[d+2]&192)==128&&(i[d+3]&192)==128&&(v=(i[d]&7)<<18|(i[d+1]&63)<<12|(i[d+2]&63)<<6|i[d+3]&63,d+=3),v<=65535)u+=String.fromCharCode(v);else{v-=65536;var y=v&1023;u+=String.fromCharCode(55296+(v>>10)),u+=String.fromCharCode(56320+y)}}return u}function Mt(i,u,d){if(!i)return"";if(!d&&i.byteLength%2!=0)throw new Ee(2,2,2004);d=Math.floor(i.byteLength/2);var v=new Uint16Array(d);i=et(i);for(var y=0;y=9&&d[v]<=126}if(!i)return"";var d=Le(i);if(d[0]==239&&d[1]==187&&d[2]==191)return rt(d);if(d[0]==254&&d[1]==255)return Mt(d.subarray(2),!1);if(d[0]==255&&d[1]==254)return Mt(d.subarray(2),!0);if(d[0]==0&&d[2]==0)return Mt(i,!1);if(d[1]==0&&d[3]==0)return Mt(i,!0);if(u(0)&&u(1)&&u(2)&&u(3))return rt(i);throw new Ee(2,2,2003)}function Gt(i){if(o.TextEncoder&&!$e().rh()){var u=new TextEncoder;return we(u.encode(i))}i=encodeURIComponent(i),i=unescape(i),u=new Uint8Array(i.length);for(var d=0;d",""":'"',"'":"'"," ":" ","‎":"‎","‏":"‏"},d=/&(?:amp|lt|gt|quot|apos|nbsp|lrm|rlm|#[xX]?[0-9a-fA-F]+);/g,v=RegExp(d.source);return i&&v.test(i)?i.replace(d,function(y){return y[1]=="#"?(y=y[2]=="x"||y[2]=="X"?parseInt(y.substring(3),16):parseInt(y.substring(2),10),y>=0&&y<=1114111?String.fromCodePoint(y):""):u[y]||"'"}):i||""}He("shaka.util.StringUtils",Qe),Qe.resetFromCharCode=function(){sr.g=void 0},Qe.toUTF16=un,Qe.toUTF8=Gt,Qe.fromBytesAutoDetect=Xt,Qe.fromUTF16=Mt,Qe.fromUTF8=rt;var sr=new _t(function(){function i(d){try{var v=new Uint8Array(d);return String.fromCharCode.apply(null,v).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(d){return function(v){for(var y="",w=0;w"u"&&ot("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,jt("LcevcDil","lcevc_dil.js is deprecated, please use lcevc_dec.js instead");else{ot("Could not find LCEVC Library on this page"),i=!1;break e}typeof this.h.SupportObject>"u"?(ot("Could not find LCEVC Library on this page"),i=!1):(this.h.SupportObject.SupportStatus||ot(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 ni(i,u,d,v){v.type!=="video"||i.o&&!v.baseOriginalId||i.g&&i.g.appendBuffer(u,"video",v.id,-d,!i.o)}function Yl(i){i.g&&i.i.classList.add("shaka-hidden")}jo.prototype.release=function(){this.g&&(this.g.close(),this.g=null)};function wl(i){return i&&typeof LCEVCdec<"u"?i.codecs=="lvc1":!1}He("shaka.lcevc.Dec",jo),jo.prototype.release=jo.prototype.release;function Mo(i){if(Tf.has(i))return Tf.get(i);var u=o.ManagedMediaSource||o.MediaSource;return u?(u=u.isTypeSupported(i),Tf.set(i,u),u):!1}function oc(){var i=o.ManagedSourceBuffer||o.SourceBuffer;return!!i&&!!i.prototype&&!!i.prototype.changeType}function Wg(){var i=o.ManagedMediaSource||o.MediaSource;return i&&i.prototype?!!i.prototype.setLiveSeekableRange&&!!i.prototype.clearLiveSeekableRange:!1}var Tf=new Map;function Xl(){}Xl.prototype.extract=function(){},Xl.prototype.decode=function(){return[]},Xl.prototype.clear=function(){},Xl.prototype.getStreams=function(){return[]};function sc(){}sc.prototype.init=function(){},sc.prototype.parse=function(){return[]};function qh(){}l=qh.prototype,l.init=function(){},l.xf=function(){},l.Nd=function(){},l.remove=function(){},l.Vf=function(){},He("shaka.media.IClosedCaptionParser",qh);function Rs(i){this.h=new Map,this.i=0,this.j=new sc,(i=qc(i.toLowerCase()))&&(this.j=i()),this.g=new Xl,(i=Au)&&(this.g=i(),this.h.set(this.i,this.g))}l=Rs.prototype,l.init=function(i,u,d){if(u=u===void 0?!1:u,d=d===void 0?-1:d,d!=-1&&this.i!=d){u=d;var v=this.h.get(u);this.h.set(this.i,this.g),v?this.g=v:((v=Au)&&(this.g=v()),this.h.set(u,this.g))}else u||this.Nd();this.j.init(i),d!=-1&&(this.i=d)},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 d=Le(u.packet);d.length>0&&this.g.extract(d,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()),d=u.next();!d.done;d=u.next())if(d=d.value,!i.has(d)){var v=this.h.get(d);v&&v.clear(),this.h.delete(d)}},l.Vf=function(){return this.g.getStreams()};function Af(i,u){Rd.set(i,u)}function qc(i){return Rd.get(i)}He("shaka.media.ClosedCaptionParser",Rs),Rs.findDecoder=function(){return Au},Rs.unregisterDecoder=function(){Au=null},Rs.registerDecoder=function(i){Au=i},Rs.findParser=qc,Rs.unregisterParser=function(i){Rd.delete(i)},Rs.registerParser=Af;var Rd=new Map,Au=null;function Ka(){this.id="",this.regionAnchorY=this.regionAnchorX=this.viewportAnchorY=this.viewportAnchorX=0,this.height=this.width=100,this.viewportAnchorUnits=this.widthUnits=this.heightUnits=bs,this.scroll=Yh}He("shaka.text.CueRegion",Ka);var bs=1;Ka.units={PX:0,PERCENTAGE:bs,LINES:2};var Yh="";Ka.scrollMode={NONE:Yh,UP:"up"};function ac(i){this.h=i||"",this.g=0}function lc(i){Iu(i,/[ \t]+/gm)}function Iu(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 uc(i){return i.g==i.h.length?null:(i=Iu(i,/[^ \t\n]*/gm))?i[0]:null}function If(i){if(i=Iu(i,Yt),i==null)return null;var u=Number(i[2]),d=Number(i[3]);return u>59||d>59?null:(Number(i[6])||0)/1e3+d+u*60+(Number(i[1])||0)*3600}function Tt(i){return i?If(new ac(i)):null}var Yt=/(?:(\d{1,}):)?(\d{2}):(\d{2})((\.(\d{1,3})))?/g;function rn(){}function ln(i){function u(v){switch(typeof v){case"undefined":case"boolean":case"number":case"string":case"symbol":case"function":return v;default:if(!v||ArrayBuffer.isView(v))return v;if(d.has(v))return null;var y=Array.isArray(v);if(v.constructor!=Object&&!y)return null;d.add(v);var w=y?[]:{},T;for(T in v)w[T]=u(v[T]);return y&&(w.length=v.length),w}}var d=new WeakSet;return u(i)}function xn(i){var u={},d;for(d in i)u[d]=i[d];return u}function Kn(i){if(Array.isArray(i)){for(var u=[],d=0;d",y),T=i.substring(T,y);var $=T.indexOf(w);if($==-1){var j=w.indexOf(".");j>0&&($=T.indexOf(w.substring(0,j)))}if($==-1)throw w=i.substring(0,y).split(` `),Error(`Unexpected close tag Line: `+(w.length-1)+` Column: `+(w[w.length-1].length+1)+` Char: `+i[y]);y+1&&(y+=1);break}else if(i.charCodeAt(y+1)===33){if(i.charCodeAt(y+2)==45){for(;y!==-1&&(i.charCodeAt(y)!==62||i.charCodeAt(y-1)!=45||i.charCodeAt(y-2)!=45||y==-1);)y=i.indexOf(">",y+1);y===-1&&(y=i.length)}else if(i.charCodeAt(y+2)===91&&i.charCodeAt(y+8)===91&&i.substr(y+3,5).toLowerCase()==="cdata"){$=i.indexOf("]]>",y),$==-1?(P.push(i.substr(y+9)),y=i.length):(P.push(i.substring(y+9,$)),y=$+3);continue}y++;continue}e:{j=T,y++;var G=v(),q={};for($=[];i.charCodeAt(y)!==62&&i[y];){var ie=i.charCodeAt(y);if(ie>64&&ie<91||ie>96&&ie<123){ie=v();for(var ue=i.charCodeAt(y);ue&&ue!==39&&ue!==34&&!(ue>64&&ue<91||ue>96&&ue<123)&&ue!==62;)y++,ue=i.charCodeAt(y);var he=y+1;if(y=i.indexOf(i[y],he),he=i.slice(he,y),ue===39||ue===34){if(y===-1){if(j={tagName:G,attributes:q,children:$,parent:null},u)for(G=0;G<$.length;G++)typeof $[G]!="string"&&($[G].parent=j);$=j;break e}}else he=null,y--;if(ie.startsWith("xmlns:")){ue=he;var me=ie.split(":")[1];TP.set(ue,me),AP.set(me,ue)}G==="tt"&&ie==="xml:space"&&he==="preserve"&&(j=!0),q[ie]=he}y++}for(i.charCodeAt(y-1)!==47?(y++,$=d(G,j)):y++,j={tagName:G,attributes:q,children:$,parent:null},G=$.length,q=0;q0&&P.push($):(P.length&&$.length==1&&$[0]==` `||$.trim().length>0)&&P.push($),y++;return P}function v(){for(var w=y;`\r >/= `.indexOf(i[y])===-1&&i[y];)y++;return i.slice(w,y)}var y=0;return d("")}function Lu(i){return typeof i=="string"}function cc(i){var u=[];if(!i.children)return[];i=_(i.children);for(var d=i.next();!d.done;d=i.next())d=d.value,typeof d!="string"&&u.push(d);return u}function Mr(i,u){var d=[];if(!i.children)return[];i=_(i.children);for(var v=i.next();!v.done;v=i.next())v=v.value,v.tagName===u&&d.push(v);return d}function mr(i){return typeof i=="string"?sn(i):(i=i.children.reduce(function(u,d){return typeof d=="string"?u+d:u},""),i===""?null:sn(i))}function ao(i){return Array.from(i.children).every(function(u){return typeof u=="string"})?((i=mr(i))&&(i=i.trim()),i):null}function ka(i,u,d){if(d=d===void 0?[]:d,i.tagName===u&&d.push(i),i.children){i=_(i.children);for(var v=i.next();!v.done;v=i.next())ka(v.value,u,d)}return d}function ei(i,u){return i=Mr(i,u),i.length!=1?null:i[0]}function wa(i,u,d){return i=dw(i,u,d),i.length!=1?null:i[0]}function Pn(i,u,d,v){v=v===void 0?null:v;var y=null;return i=i.attributes[u],i!=null&&(y=d(i)),y??v}function Pu(i,u,d){return u=Hi(u),i.attributes[u+":"+d]||null}function dw(i,u,d){var v=Hi(u);if(u=[],i.children)for(d=v?v+":"+d:d,i=_(i.children),v=i.next();!v.done;v=i.next())(v=v.value)&&v.tagName===d&&u.push(v);return u}function Ms(i,u,d){u=_(u);for(var v=u.next();!v.done;v=u.next())if(v=Pu(i,v.value,d))return v;return null}function Lf(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 Md(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 fw(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 Ds(i){return i=Number(i),i%1===0?i:null}function Dd(i){return i=Number(i),i%1===0&&i>0?i:null}function Os(i){return i=Number(i),i%1===0&&i>=0?i:null}function hw(i){return i=Number(i),isNaN(i)?null:i}function pw(i){return i?i.toLowerCase()==="true":!1}function nSe(i){var u,d=(u=i.match(/^(\d+)\/(\d+)$/))?Number(u[1])/Number(u[2]):Number(i);return isNaN(d)?null:d}function vw(i){var u=[];i=sn(i).split(/\/+(?=(?:[^'"]*['"][^'"]*['"])*[^'"]*$)/),i=_(i);for(var d=i.next();!d.done;d=i.next()){d=d.value;var v=d.match(/^([\w]+)/);if(v){var y=d.match(/(@id='(.*?)')/),w=d.match(/(@t='(\d+)')/),T=d.match(/(@n='(\d+)')/),P=d.match(/\[(\d+)\]/);u.push({name:v[0],id:y?y[0].match(/'(.*?)'/)[0].replace(/'/gm,""):null,t:w?Number(w[0].match(/'(.*?)'/)[0].replace(/'/gm,"")):null,n:T?Number(T[0].match(/'(.*?)'/)[0].replace(/'/gm,"")):null,position:P?Number(P[1])-1:null,Cc:d.split("/@")[1]||null})}else d.startsWith("@")&&u.length&&(u[u.length-1].Cc=d.slice(1))}return u}function RG(i,u){var d=vw(u.attributes.sel||"");if(d.length){var v=d[d.length-1],y=u.attributes.pos||null;d=v.position,d==null&&(v.t!==null&&(d=MG(i,"t",v.t)),v.n!==null&&(d=MG(i,"n",v.n))),d===null?d=y==="prepend"?0:i.length:y==="prepend"?--d:y==="after"&&++d,y=u.tagName,(v=v.Cc)&&i[d]?DG(i[d],y,v,ao(u)||""):(y!=="remove"&&y!=="replace"||i.splice(d,1),y!=="add"&&y!=="replace"||i.splice.apply(i,[d,0].concat(A(u.children))))}}function MG(i,u,d){var v=0;i=_(i);for(var y=i.next();!y.done;y=i.next()){if(Number(y.value.attributes[u])===d)return v;v++}return null}function DG(i,u,d,v){u==="remove"?delete i.attributes[d]:(u==="add"||u==="replace")&&(i.attributes[d]=v)}function OG(i){var u="",d=i.tagName.split(":");d.length>0&&(u=d[0],u=AP.has(u)?AP.get(u):""),u=document.createElementNS(u,i.tagName);for(var v in i.attributes)u.setAttribute(v,i.attributes[v]);for(i=_(i.children),v=i.next();!v.done;v=i.next())v=v.value,d=void 0,typeof v=="string"?d=new Text(v):d=OG(v),u.appendChild(d);return u}function EP(i){if(!i)return null;var u={tagName:i.tagName,attributes:xn(i.attributes),children:[],parent:null};i=_(i.children);for(var d=i.next();!d.done;d=i.next())d=d.value,typeof d=="string"||(d=EP(d),d.parent=u),u.children.push(d);return u}var TP=new Map,AP=new Map;function Ii(i,u,d){this.startTime=i,this.endTime=u,this.payload=d,this.region=new Ka,this.position=null,this.positionAlign=yw,this.size=0,this.textAlign=Od,this.direction=ub,this.writingMode=Mv,this.lineInterpretation=cb,this.line=null,this.lineHeight="",this.lineAlign=Dv,this.displayAlign=lb,this.fontSize=this.border=this.backgroundImage=this.backgroundColor=this.color="",this.fontWeight=VG,this.fontStyle=PP,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 $G(i,u){return i=new Ii(i,u,""),i.lineBreak=!0,i}Ii.prototype.clone=function(){var i=new Ii(0,0,""),u;for(u in this)i[u]=this[u],Array.isArray(i[u])&&(i[u]=i[u].slice());return i};function mw(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 d in i)if(d!="startTime"&&d!="endTime"&&d!="payload"){if(d=="nestedCues"){if(!mt(i.nestedCues,u.nestedCues,mw))return!1}else if(d=="region"||d=="cellResolution"){for(var v in i[d])if(i[d][v]!=u[d][v])return!1}else if(Array.isArray(i[d])){if(!mt(i[d],u[d]))return!1}else if(i[d]!=u[d])return!1}return!0}function gw(i,u){u=u===void 0?new Map:u;var d=i.payload;if(d.includes("<")){u.size===0&&NG(u);var v=d;d=[];for(var y=-1,w=0;w"&&y>0&&(y=v.substr(y,w-y),y.match(iSe)&&d.push(y),y=-1);for(d=_(d),w=d.next();!w.done;w=d.next())w=w.value,v=v.replace("<"+w+">",'
'),v+="
";e:{w=v,y=[];var T=-1;d="",v=!1;for(var P=0;P",P);if($===-1){d=w;break e}if(($=w.substring(P+1,$))&&$=="v"){v=!0;var j=null;if(y.length&&(j=y[y.length-1]),j){if(j===$)d+="/"+$+">";else{if(!j.startsWith("v")){d+=w[P];continue}d+="/"+j+">"}P+=$.length+1}else d+=w[P]}else d+=w[P]}else w[P]==="<"?(T=P+1,w[T]!="v"&&(T=-1)):w[P]===">"&&T>0&&(y.push(w.substr(T,P-T)),T=-1),d+=w[P];for(w=_(y),y=w.next();!y.done;y=w.next())y=y.value,T=y.replace(" ",".voice-"),d=d.replace("<"+y+">","<"+T+">"),d=d.replace("",""),v||(d+="")}d=rSe(d),i.payload="",v=""+d.replace(/\n/g,"
")+"
";try{var G=ri(v,"span")}catch{}if(G)if(G=G.children,G.length!=1||G[0].tagName)for(G=_(G),d=G.next();!d.done;d=G.next())BG(d.value,i,u);else i.payload=sn(d);else i.payload=sn(d)}else i.payload=sn(d)}function NG(i){for(var u=_(Object.entries(jG)),d=u.next();!d.done;d=u.next()){var v=_(d.value);d=v.next().value,v=v.next().value;var y=new Ii(0,0,"");y.color=v,i.set("."+d,y)}for(u=_(Object.entries(UG)),d=u.next();!d.done;d=u.next())v=_(d.value),d=v.next().value,v=v.next().value,y=new Ii(0,0,""),y.backgroundColor=v,i.set("."+d,y)}function rSe(i){var u={"< ":""," >":" >"},d=/(< +>|<\s|\s>)/g,v=RegExp(d.source);return i&&v.test(i)?i.replace(d,function(y){return u[y]||""}):i||""}function BG(i,u,d){var v=u.clone();if(v.nestedCues=[],v.payload="",v.rubyTag="",v.line=null,v.region=new Ka,v.position=null,v.size=0,v.textAlign=Od,i.tagName)for(var y=_(i.tagName.split(/(?=[ .])+/g)),w=y.next();!w.done;w=y.next()){var T=w=w.value;if(T.startsWith(".voice-")){var P=T.split("-").pop();T='v[voice="'+P+'"]',d.has(T)||(T="v[voice="+P+"]")}switch(d.has(T)&&(P=v,T=d.get(T))&&(P.backgroundColor=ab(T.backgroundColor,P.backgroundColor),P.color=ab(T.color,P.color),P.fontFamily=ab(T.fontFamily,P.fontFamily),P.fontSize=ab(T.fontSize,P.fontSize),P.textShadow=ab(T.textShadow,P.textShadow),P.fontWeight=T.fontWeight,P.fontStyle=T.fontStyle,P.opacity=T.opacity,P.rubyTag=T.rubyTag,P.textCombineUpright=T.textCombineUpright,P.wrapLine=T.wrapLine),w){case"br":v=$G(v.startTime,v.endTime),u.nestedCues.push(v);return;case"b":v.fontWeight=Gg;break;case"i":v.fontStyle=Kg;break;case"u":v.textDecoration.push(Pf);break;case"font":(w=i.attributes.color)&&(v.color=w);break;case"div":if(w=i.attributes.time,!w)break;(w=Tt(w))&&(v.startTime=w);break;case"ruby":case"rp":case"rt":v.rubyTag=w}}if(y=i.children,Lu(i)||y.length==1&&Lu(y[0]))for(d=mr(i).split(` `),i=!0,d=_(d),y=d.next();!y.done;y=d.next())y=y.value,i||(i=$G(v.startTime,v.endTime),u.nestedCues.push(i)),y.length>0&&(i=v.clone(),i.payload=sn(y),u.nestedCues.push(i)),i=!1;else for(u.nestedCues.push(v),u=_(y),i=u.next();!i.done;i=u.next())BG(i.value,v,d)}function ab(i,u){return i&&i.length>0?i:u}He("shaka.text.Cue",Ii),Ii.parseCuePayload=gw,Ii.equal=mw,Ii.prototype.clone=Ii.prototype.clone;var yw="auto";Ii.positionAlign={LEFT:"line-left",RIGHT:"line-right",CENTER:"center",AUTO:yw};var Od="center",IP={LEFT:"left",RIGHT:"right",CENTER:Od,START:"start",END:"end"};Ii.textAlign=IP;var lb="after",FG={BEFORE:"before",CENTER:"center",AFTER:lb};Ii.displayAlign=FG;var ub="ltr";Ii.direction={HORIZONTAL_LEFT_TO_RIGHT:ub,HORIZONTAL_RIGHT_TO_LEFT:"rtl"};var Mv="horizontal-tb";Ii.writingMode={HORIZONTAL_TOP_TO_BOTTOM:Mv,VERTICAL_LEFT_TO_RIGHT:"vertical-lr",VERTICAL_RIGHT_TO_LEFT:"vertical-rl"};var cb=0;Ii.lineInterpretation={LINE_NUMBER:cb,PERCENTAGE:1};var Dv="start",LP={CENTER:"center",START:Dv,END:"end"};Ii.lineAlign=LP;var jG={white:"white",lime:"lime",cyan:"cyan",red:"red",yellow:"yellow",magenta:"magenta",blue:"blue",black:"black"};Ii.defaultTextColor=jG;var UG={bg_white:"white",bg_lime:"lime",bg_cyan:"cyan",bg_red:"red",bg_yellow:"yellow",bg_magenta:"magenta",bg_blue:"blue",bg_black:"black"};Ii.defaultTextBackgroundColor=UG;var VG=400,Gg=700;Ii.fontWeight={NORMAL:VG,BOLD:Gg};var PP="normal",Kg="italic",zG={NORMAL:PP,ITALIC:Kg,OBLIQUE:"oblique"};Ii.fontStyle=zG;var Pf="underline";Ii.textDecoration={UNDERLINE:Pf,LINE_THROUGH:"lineThrough",OVERLINE:"overline"};var iSe=/(?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{2,3})/g;function Xh(){}Xh.prototype.destroy=function(){};function Rf(i,u,d){RP.set(i.toLowerCase().split(";")[0]+"-"+d,{priority:d,yf:u})}function qg(i,u){for(var d=i.toLowerCase().split(";")[0],v=_([HG,DP,MP,Zh]),y=v.next();!y.done;y=v.next())if(y=RP.get(d+"-"+y.value)){var w=y.yf(),T=w.isSupported(i,u);if(w.destroy(),T)return y.yf}return null}He("shaka.transmuxer.TransmuxerEngine",Xh),Xh.findTransmuxer=qg,Xh.unregisterTransmuxer=function(i,u){RP.delete(i.toLowerCase().split(";")[0]+"-"+u)},Xh.registerTransmuxer=Rf,Xh.prototype.destroy=Xh.prototype.destroy;var RP=new Map,Zh=1,MP=2,DP=3,HG=4;Xh.PluginPriority={FALLBACK:Zh,PREFERRED_SECONDARY:MP,PREFERRED:DP,APPLICATION:HG};function OP(){}function ho(i,u){var d=i;return u&&!Mf.includes(i)&&(d+='; codecs="'+u+'"'),d}function bw(i,u){return u&&(i+='; codecs="'+u+'"'),i}function $P(i,u,d){var v=ho(i,u);return u=bw(i,u),qg(u)?(i=qg(u))?(i=i(),d=i.convertCodecs(d,u),i.destroy()):d=u:d=i!="video/mp2t"&&d=="audio"?v.replace("video","audio"):v,d}function db(i){return i.split(";")[0].split("/")[1]}function qs(i){var u=WG(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 Qh(i){var u=[];i=_(i.split(","));for(var d=i.next();!d.done;d=i.next())d=WG(d.value),u.push(d[0]);return u.sort().join(",")}function Cl(i){return i.split(";")[0]}function qa(i){return i=i.split(/ *; */),i.shift(),(i=i.find(function(u){return u.startsWith("codecs=")}))?i.split("=")[1].replace(/^"|"$/g,""):""}function fb(i){return i==="application/x-mpegurl"||i==="application/vnd.apple.mpegurl"}function WG(i){i=i.split(".");var u=i[0];return i.shift(),[u,i.join(".")]}He("shaka.util.MimeUtils",OP),OP.getFullTypeWithAllCodecs=bw,OP.getFullType=ho,new Map().set("codecs","codecs").set("frameRate","framerate").set("bandwidth","bitrate").set("width","width").set("height","height").set("channelsCount","channels");var Mf=["audio/aac","audio/ac3","audio/ec3","audio/mpeg"];function Df(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 $s(i,u){vb.set(i,u)}function hb(i){return vb.get(i)}function pb(i){return vb.has(i)?!0:i=="application/cea-608"||i=="application/cea-708"?!!Au:!1}Df.prototype.destroy=function(){return this.l=this.i=null,this.j.clear(),Promise.resolve()};function oSe(i,u,d,v,y){var w,T,P,$,j,G,q;return Q(function(ie){if(ie.g==1)return L(ie,Promise.resolve(),2);if(!i.i||!i.l)return ie.return();if(d==null||v==null)return i.i.parseInit(Le(u)),ie.return();for(w=i.C?d:i.u,T={periodStart:i.u,segmentStart:d,segmentEnd:v,vttOffset:w},P=i.i.parseMedia(Le(u),T,y,[]),$=_(P),j=$.next();!j.done;j=$.next())G=j.value,i.B(G,y||null,T);q=P.filter(function(ue){return ue.startTime>=i.m&&ue.startTime=u)return y.return();d&&lSe(v,i,u),v.l&&v.l.remove(i,u)&&v.g!=null&&(u<=v.g||i>=v.h||(i<=v.g&&u>=v.h?v.g=v.h=null:i<=v.g&&uv.g&&u>=v.h&&(v.h=i)),qG(v)),B(y)})};function sSe(i,u,d){i.m=u,i.o=d}function GG(i,u,d){i.F=u,(u=i.j.get(u))&&(u=u.filter(function(v){return v.endTime<=d}),u.length&&i.l.append(u))}function KG(i,u,d){u.startTime+=d,u.endTime+=d,u=_(u.nestedCues);for(var v=u.next();!v.done;v=u.next())KG(i,v.value,d)}function aSe(i,u,d){var v=new Map;u=_(u);for(var y=u.next();!y.done;y=u.next()){var w=y.value;y=w.stream,w=w.cue,v.has(y)||v.set(y,[]),KG(i,w,d),w.startTime>=i.m&&w.startTime=d}),i.j.set(y,w)}}function qG(i){for(var u=1/0,d=-1/0,v=_(i.j.values()),y=v.next();!y.done;y=v.next()){y=_(y.value);for(var w=y.next();!w.done;w=y.next())w=w.value,u=Math.min(u,w.startTime),d=Math.max(d,w.endTime)}u!==1/0&&d!==-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(d,i.o)))}He("shaka.text.TextEngine",Df),Df.prototype.destroy=Df.prototype.destroy,Df.findParser=hb,Df.unregisterParser=function(i){vb.delete(i)},Df.registerParser=$s;var vb=new Map;function mb(i){this.h=i,this.g=null}mb.prototype.ia=function(i){var u=this;this.stop();var d=!0,v=null;return this.g=function(){o.clearTimeout(v),d=!1},v=o.setTimeout(function(){d&&u.h()},i*1e3),this},mb.prototype.stop=function(){this.g&&(this.g(),this.g=null)};function dr(i){this.h=i,this.g=null}dr.prototype.Jb=function(){return this.stop(),this.h(),this},dr.prototype.ia=function(i){var u=this;return this.stop(),this.g=new mb(function(){u.h()}).ia(i),this},dr.prototype.Ea=function(i){var u=this;return this.stop(),this.g=new mb(function(){u.g.ia(i),u.h()}).ia(i),this},dr.prototype.stop=function(){this.g&&(this.g.stop(),this.g=null)},He("shaka.util.Timer",dr),dr.prototype.stop=dr.prototype.stop,dr.prototype.tickEvery=dr.prototype.Ea,dr.prototype.tickAfter=dr.prototype.ia,dr.prototype.tickNow=dr.prototype.Jb;function uSe(i,u){return i.concat(u)}function cSe(){}function Jh(i){return i!=null}function _w(i,u){return Promise.race([u,new Promise(function(d,v){new dr(v).ia(i)})])}function dc(){}function Yg(i,u){return i=zr(i),u=zr(u),i.split("-")[0]==u.split("-")[0]}function gb(i,u){return i=zr(i),u=zr(u),i=i.split("-"),u=u.split("-"),i[0]==u[0]&&i.length==1&&u.length==2}function NP(i,u){return i=zr(i),u=zr(u),i=i.split("-"),u=u.split("-"),i.length==2&&u.length==2&&i[0]==u[0]}function zr(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 d=_(u.split("-"));return u=d.next().value,u=u===void 0?"":u,d=d.next().value,d=d===void 0?"":d,i=i?"x-"+i:"",u=u.toLowerCase(),u=YG.get(u)||u,d=d.toUpperCase(),(d?u+"-"+d:u)+(i?"-"+i:"")}function Ov(i,u){return i=zr(i),u=zr(u),u==i?4:gb(u,i)?3:NP(u,i)?2:gb(i,u)?1:0}function Sw(i){var u=i.indexOf("-");return i=u>=0?i.substring(0,u):i,i=i.toLowerCase(),i=YG.get(i)||i}function BP(i){return i.language?zr(i.language):i.audio&&i.audio.language?zr(i.audio.language):i.video&&i.video.language?zr(i.video.language):"und"}function kw(i,u){i=zr(i);var d=new Set;u=_(u);for(var v=u.next();!v.done;v=u.next())d.add(zr(v.value));for(u=_(d),v=u.next();!v.done;v=u.next())if(v=v.value,v==i)return v;for(u=_(d),v=u.next();!v.done;v=u.next())if(v=v.value,gb(v,i))return v;for(u=_(d),v=u.next();!v.done;v=u.next())if(v=v.value,NP(v,i))return v;for(d=_(d),u=d.next();!u.done;u=d.next())if(u=u.value,gb(i,u))return u;return null}He("shaka.util.LanguageUtils",dc),dc.findClosestLocale=kw,dc.getLocaleForVariant=BP,dc.getLocaleForText=function(i){return zr(i.language||"und")},dc.getBase=Sw,dc.relatedness=Ov,dc.areSiblings=function(i,u){var d=Sw(i),v=Sw(u);return i!=d&&u!=v&&d==v},dc.normalize=zr,dc.isSiblingOf=NP,dc.isParentOf=gb,dc.areLanguageCompatible=Yg,dc.areLocaleCompatible=function(i,u){return i=zr(i),u=zr(u),i==u};var YG=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 XG(){}function ZG(i,u,d,v,y){function w(Me){var Ie=String(Me.width||"")+String(Me.height||"")+String(Math.round(Me.frameRate||0))+(Me.hdr||"")+Me.fastSwitching;return Me.dependencyStream&&(Ie+=Me.dependencyStream.baseOriginalId||""),Me.roles&&(Ie+=Me.roles.sort().join("_")),Ie}function T(Me){var Ie=Me.language+(Me.channelsCount||0)+(Me.audioSamplingRate||0)+Me.roles.join(",")+Me.label+Me.groupId+Me.fastSwitching;return Me.dependencyStream&&(Ie+=Me.dependencyStream.baseOriginalId||""),Ie}if(y.length){var P=i.textStreams;y=_(y);for(var $=y.next(),j={};!$.done;j={Bh:void 0},$=y.next())if(j.Bh=$.value,$=P.filter((function(Me){return function(Ie){return!!(Ie.codecs.startsWith(Me.Bh)||Ie.mimeType.startsWith(Me.Bh))}})(j)),$.length){P=$;break}i.textStreams=P}if(P=i.variants,(u.length||d.length)&&(P=dSe(P,u,d)),v.length){for(u=new wt,d=_(P),P=d.next();!P.done;P=d.next())P=P.value,u.push(String(P.video.width||0),P);var G=[];u.forEach(function(Me,Ie){Me=0;var Ve=[];Ie=_(Ie);for(var tt=Ie.next(),gt={};!tt.done;gt={Tf:void 0},tt=Ie.next())gt.Tf=tt.value,tt=v.filter((function(Ze){return function(Fe){return Ze.Tf.decodingInfos[0][Fe]}})(gt)).length,tt>Me?(Me=tt,Ve=[gt.Tf]):tt==Me&&Ve.push(gt.Tf);G.push.apply(G,A(Ve))}),P=G}for(d=new Set,u=new Set,P=_(P),y=P.next();!y.done;y=P.next())y=y.value,y.audio&&d.add(y.audio),y.video&&u.add(y.video);P=Array.from(d).sort(function(Me,Ie){return Me.bandwidth-Ie.bandwidth});var q=[];for(d=new Map,P=_(P),y=P.next();!y.done;y=P.next()){if(y=y.value,$=T(y),j=d.get($)||[],j.length){var ie=j[j.length-1],ue=qs(ie.codecs),he=qs(y.codecs);ue!=he||y.bandwidth&&ie.bandwidth&&!(y.bandwidth>ie.bandwidth)||(j.push(y),q.push(y.id))}else j.push(y),q.push(y.id);d.set($,j)}var me={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};P=Array.from(u).sort(function(Me,Ie){if(!Me.bandwidth||!Ie.bandwidth||Me.bandwidth==Ie.bandwidth){if(Me.codecs&&Ie.codecs&&Me.codecs!=Ie.codecs&&Me.width==Ie.width){var Ve=qs(Me.codecs),tt=qs(Ie.codecs);if(Ve!=tt)return(me[Ve]||1)-(me[tt]||1)}return Me.width-Ie.width}return Me.bandwidth-Ie.bandwidth}),u=oc();var ge=[];for(d=new Map,P=_(P),y=P.next();!y.done;y=P.next()){if(y=y.value,$=w(y),j=d.get($)||[],j.length){if(ie=j[j.length-1],!u&&(ue=qs(ie.codecs),he=qs(y.codecs),ue!==he))continue;ue=qs(ie.codecs),he=qs(y.codecs),ue!=he||y.bandwidth&&ie.bandwidth&&!(y.bandwidth>ie.bandwidth)||(j.push(y),ge.push(y.id))}else j.push(y),ge.push(y.id);d.set($,j)}i.variants=i.variants.filter(function(Me){var Ie=Me.audio;return Me=Me.video,!(Ie&&!q.includes(Ie.id)||Me&&!ge.includes(Me.id))})}function dSe(i,u,d){u=_(u);for(var v=u.next(),y={};!v.done;y={videoCodec:void 0},v=u.next())if(y.videoCodec=v.value,v=i.filter((function(w){return function(T){return T.video&&T.video.codecs.startsWith(w.videoCodec)}})(y)),v.length){i=v;break}for(d=_(d),u=d.next(),v={};!u.done;v={audioCodec:void 0},u=d.next())if(v.audioCodec=u.value,u=i.filter((function(w){return function(T){return T.audio&&T.audio.codecs.startsWith(w.audioCodec)}})(v)),u.length){i=u;break}return i}function fSe(i,u,d){i.variants=i.variants.filter(function(v){return ww(v,u,d)})}function ww(i,u,d){function v(P,$,j){return P>=$&&P<=j}var y=i.video;if(y&&y.width&&y.height){var w=y.width,T=y.height;if(T>w&&(T=_([T,w]),w=T.next().value,T=T.next().value),!v(w,u.minWidth,Math.min(u.maxWidth,d.width))||!v(T,u.minHeight,Math.min(u.maxHeight,d.height))||!v(y.width*y.height,u.minPixels,u.maxPixels))return!1}return!(i&&i.video&&i.video.frameRate&&!v(i.video.frameRate,u.minFrameRate,u.maxFrameRate)||i&&i.audio&&i.audio.channelsCount&&!v(i.audio.channelsCount,u.minChannelsCount,u.maxChannelsCount)||!v(i.bandwidth,u.minBandwidth,u.maxBandwidth))}function hSe(i,u,d,v){return d=d===void 0?[]:d,v=v===void 0?{}:v,Q(function(y){return y.g==1?L(y,QG(i,u,u.offlineSessionIds.length>0,d,v),2):(gSe(u),L(y,ySe(u),0))})}function QG(i,u,d,v,y){var w,T;return Q(function(P){if(P.g==1)return $e().Ui()&&pSe(u.variants),L(P,FP(u.variants,d,!1,v),2);w=null,i&&(T=i.g)&&(w=T.keySystem),u.variants=u.variants.filter(function($){var j=vSe($,w,y);if(!j){var G=[];$.audio&&G.push(oK($.audio)),$.video&&G.push(oK($.video))}return j}),B(P)})}function pSe(i){var u=new Map().set("dvav","avc3").set("dva1","avc1").set("dvhe","hev1").set("dvh1","hvc1").set("dvc1","vvc1").set("dvi1","vvi1"),d=new Set;i=_(i);for(var v=i.next();!v.done;v=i.next())v=v.value,v.video&&d.add(v.video);for(d=_(d),i=d.next();!i.done;i=d.next()){i=i.value,v=_(u);for(var y=v.next();!y.done;y=v.next()){var w=_(y.value);if(y=w.next().value,w=w.next().value,i.codecs.includes(y)){i.codecs=i.codecs.replace(y,w);break}}}}function vSe(i,u,d){if(!i.decodingInfos.some(function($){return!(!$.supported||u&&($=$.keySystemAccess)&&(d[$.keySystem]||$.keySystem)!=u)}))return!1;var v=$e(),y=v.Nb()==="Xbox";v=v.Ua()==="MOBILE"&&v.Ha()==="GECKO";var w=i.video,T=w&&w.width||0,P=w&&w.height||0;return y&&w&&(T>1920||P>1080)&&(w.codecs.includes("avc1.")||w.codecs.includes("avc3."))||(y=w&&w.dependencyStream)&&!wl(y)?!1:(i=i.audio,!(v&&i&&i.encrypted&&i.codecs.toLowerCase().includes("opus")||i&&i.dependencyStream))}function JG(i,u){var d,v,y,w,T,P,$;return Q(function(j){if(j.g==1){for(d=function(G,q){if(G){var ie=xn(G);return ie.supported=G.supported&&q.supported,ie.powerEfficient=G.powerEfficient&&q.powerEfficient,ie.smooth=G.smooth&&q.smooth,q.keySystemAccess&&!ie.keySystemAccess&&(ie.keySystemAccess=q.keySystemAccess),ie}return q},v=null,y=[],w=_(u),T=w.next(),P={};!T.done;P={cache:void 0,Pe:void 0},T=w.next())$=T.value,P.Pe=Kn($),P.cache=Tw,P.cache.has(P.Pe)?v=d(v,P.cache.get(P.Pe)):y.push(mSe($).then((function(G){return function(q){var ie=null;q=_(q||[]);for(var ue=q.next();!ue.done;ue=q.next())ie=d(ie,ue.value);ie&&(G.cache.set(G.Pe,ie),v=d(v,ie))}})(P)));return L(j,Promise.all(y),2)}v&&i.decodingInfos.push(v),B(j)})}function mSe(i){var u=[""];i.video&&(u=qa(i.video.contentType).split(","));var d=[""];i.audio&&(d=qa(i.audio.contentType).split(","));var v=[];u=_(u);for(var y=u.next();!y.done;y=u.next()){y=y.value;for(var w=_(d),T=w.next(),P={};!T.done;P={Qc:void 0},T=w.next())T=T.value,P.Qc=ln(i),i.video&&(P.Qc.video.contentType=ho(Cl(P.Qc.video.contentType),y)),i.audio&&(P.Qc.audio.contentType=ho(Cl(P.Qc.audio.contentType),T)),v.push(new Promise((function($){return function(j,G){($e().Ua()=="MOBILE"?_w(5,navigator.mediaCapabilities.decodingInfo($.Qc)):navigator.mediaCapabilities.decodingInfo($.Qc)).then(function(q){j(q)}).catch(G)}})(P)))}return Promise.all(v).catch(function(){return JSON.stringify(i),null})}function FP(i,u,d,v){var y,w,T,P,$,j,G,q,ie,ue,he,me,ge,Me,Ie,Ve,tt,gt;return Q(function(Ze){switch(Ze.g){case 1:if(i.some(function(Fe){return Fe.decodingInfos.length}))return Ze.return();y=_(v),w=y.next(),T={};case 2:if(w.done){Ze.A(4);break}T.Ci=w.value,P=!1,$=_(i),j=$.next();case 5:if(j.done){Ze.A(7);break}G=j.value,q=eK(G,u,d).filter((function(Fe){return function(lt){return lt=lt[0],(lt.keySystemConfiguration&<.keySystemConfiguration.keySystem)===Fe.Ci}})(T)),ie=_(q),ue=ie.next();case 8:if(ue.done){Ze.A(10);break}return he=ue.value,L(Ze,JG(G,he),9);case 9:ue=ie.next(),Ze.A(8);break;case 10:G.decodingInfos.some(function(Fe){return Fe.supported})&&(P=!0),j=$.next(),Ze.A(5);break;case 7:if(P)return Ze.return();T={Ci:void 0},w=y.next(),Ze.A(2);break;case 4:me=_(i),ge=me.next();case 12:if(ge.done){Ze.A(0);break}Me=ge.value,Ie=eK(Me,u,d).filter(function(Fe){return Fe=Fe[0],Fe=Fe.keySystemConfiguration&&Fe.keySystemConfiguration.keySystem,!Fe||!v.includes(Fe)}),Ve=_(Ie),tt=Ve.next();case 15:if(tt.done){ge=me.next(),Ze.A(12);break}return gt=tt.value,L(Ze,JG(Me,gt),16);case 16:tt=Ve.next(),Ze.A(15)}})}function eK(i,u,d){var v=i.audio,y=i.video,w=[],T=[];if(y)for(var P=_(y.fullMimeTypes),$=P.next();!$.done;$=P.next()){$=$.value;var j=qa($);if(j.includes(",")&&!v){var G=j.split(","),q=Cl($);j=fi("video",G),G=fi("audio",G),G=yb(G,q),q=$P(q,G,"audio"),T.push({contentType:q,channels:2,bitrate:i.bandwidth||1,samplerate:1,spatialRendering:!1})}if(j=tK(j),$={contentType:$P(Cl($),j,"video"),width:y.width||64,height:y.height||64,bitrate:y.bandwidth||i.bandwidth||1,framerate:y.frameRate||30},y.hdr)switch(y.hdr){case"PQ":$.transferFunction="pq";break;case"HLG":$.transferFunction="hlg"}y.colorGamut&&($.colorGamut=y.colorGamut),w.push($)}if(v)for(P=_(v.fullMimeTypes),$=P.next();!$.done;$=P.next())j=$.value,$=Cl(j),j=yb(qa(j),$),$=$P($,j,"audio"),T.push({contentType:$,channels:v.channelsCount||2,bitrate:v.bandwidth||i.bandwidth||1,samplerate:v.audioSamplingRate||1,spatialRendering:v.spatialAudio});for(P=[],w.length==0&&w.push(null),T.length==0&&T.push(null),w=_(w),$=w.next();!$.done;$=w.next())for($=$.value,j=_(T),q=j.next();!q.done;q=j.next())q=q.value,G={type:d?"file":"media-source"},$&&(G.video=$),q&&(G.audio=q),P.push(G);if(T=(i.video?i.video.drmInfos:[]).concat(i.audio?i.audio.drmInfos:[]),!T.length)return[P];for(i=[],d=new Map,T=_(T),w=T.next();!w.done;w=T.next())w=w.value,d.get(w.keySystem)||d.set(w.keySystem,[]),d.get(w.keySystem).push(w);for(T=u?"required":"optional",u=u?["persistent-license"]:["temporary"],w=_(d.keys()),$=w.next();!$.done;$=w.next()){for($=$.value,q=d.get($),j=new Map,q=_(q),G=q.next();!G.done;G=q.next()){G=G.value;var ie=G.videoRobustness+","+G.audioRobustness;j.get(ie)||j.set(ie,[]),j.get(ie).push(G)}for(j=_(j.values()),q=j.next();!q.done;q=j.next()){q=q.value,G=[],ie=_(P);for(var ue=ie.next();!ue.done;ue=ie.next()){ue=Object.assign({},ue.value);for(var he={keySystem:$,initDataType:"cenc",persistentState:T,distinctiveIdentifier:"optional",sessionTypes:u},me=_(q),ge=me.next();!ge.done;ge=me.next()){if(ge=ge.value,ge.initData&&ge.initData.length){for(var Me=new Set,Ie=_(ge.initData),Ve=Ie.next();!Ve.done;Ve=Ie.next())Me.add(Ve.value.initDataType);he.initDataType=ge.initData[0].initDataType}ge.distinctiveIdentifierRequired&&(he.distinctiveIdentifier="required"),ge.persistentStateRequired&&(he.persistentState="required"),ge.sessionType&&(he.sessionTypes=[ge.sessionType]),v&&(he.audio?(ge.encryptionScheme&&(he.audio.encryptionScheme=he.audio.encryptionScheme||ge.encryptionScheme),he.audio.robustness=he.audio.robustness||ge.audioRobustness):(he.audio={robustness:ge.audioRobustness},ge.encryptionScheme&&(he.audio.encryptionScheme=ge.encryptionScheme)),he.audio.robustness==""&&delete he.audio.robustness),y&&(he.video?(ge.encryptionScheme&&(he.video.encryptionScheme=he.video.encryptionScheme||ge.encryptionScheme),he.video.robustness=he.video.robustness||ge.videoRobustness):(he.video={robustness:ge.videoRobustness},ge.encryptionScheme&&(he.video.encryptionScheme=ge.encryptionScheme)),he.video.robustness==""&&delete he.video.robustness)}ue.keySystemConfiguration=he,G.push(ue)}i.push(G)}}return i}function yb(i,u){var d=$e();return i.toLowerCase()=="flac"?d.Ha()!="WEBKIT"?"flac":"fLaC":i.toLowerCase()==="opus"?d.Ha()!="WEBKIT"?"opus":db(u)=="mp4"?"Opus":"opus":i.toLowerCase()=="ac-3"&&d.oe()?"ec-3":i}function tK(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 gSe(i){i.textStreams=i.textStreams.filter(function(u){return u=ho(u.mimeType,u.codecs),pb(u)})}function ySe(i){var u,d,v,y,w,T,P;return Q(function($){switch($.g){case 1:u=[],d=_(i.imageStreams),v=d.next();case 2:if(v.done){$.A(4);break}if(y=v.value,w=y.mimeType,w=="application/mp4"&&y.codecs=="mjpg"&&(w="image/jpg"),Aw.has(w)){$.A(5);break}if(T=kSe.get(w),!T){Aw.set(w,!1),$.A(5);break}return L($,bSe(T),7);case 7:P=$.h,Aw.set(w,P);case 5:Aw.get(w)&&u.push(y),v=d.next(),$.A(2);break;case 4:i.imageStreams=u,B($)}})}function bSe(i){return new Promise(function(u){var d=new Image;d.src=i,"decode"in d?d.decode().then(function(){u(!0)}).catch(function(){u(!1)}):d.onload=d.onerror=function(){u(d.height===2)}})}function $v(i){var u=i.audio,d=i.video,v=u?u.mimeType:null,y=d?d.mimeType:null,w=u?u.codecs:null,T=d?d.codecs:null,P=u?u.groupId:null,$=[];d&&$.push(d.mimeType),u&&$.push(u.mimeType),$=$[0]||null;var j=[];u&&j.push(u.kind),d&&j.push(d.kind),j=j[0]||null;var G=new Set;if(u)for(var q=_(u.roles),ie=q.next();!ie.done;ie=q.next())G.add(ie.value);if(d)for(q=_(d.roles),ie=q.next();!ie.done;ie=q.next())G.add(ie.value);if(i={id:i.id,active:!1,type:"variant",bandwidth:i.bandwidth,language:i.language,label:null,videoLabel:null,kind:j,width:null,height:null,frameRate:null,pixelAspectRatio:null,hdr:null,colorGamut:null,videoLayout:null,mimeType:$,audioMimeType:v,videoMimeType:y,codecs:"",audioCodec:w,videoCodec:T,primary:i.primary,roles:Array.from(G),audioRoles:null,videoRoles:null,forced:!1,videoId:null,audioId:null,audioGroupId:P,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,originalTextId:null,originalImageId:null,accessibilityPurpose:null,originalLanguage:null},d&&(i.videoId=d.id,i.originalVideoId=d.originalId,i.width=d.width||null,i.height=d.height||null,i.frameRate=d.frameRate||null,i.pixelAspectRatio=d.pixelAspectRatio||null,i.videoBandwidth=d.bandwidth||null,i.hdr=d.hdr||null,i.colorGamut=d.colorGamut||null,i.videoLayout=d.videoLayout||null,i.videoRoles=d.roles,i.videoLabel=d.label,(v=d.dependencyStream)&&(i.width=v.width||i.width,i.height=v.height||i.height,i.videoCodec=v.codecs||i.videoCodec,i.videoBandwidth&&v.bandwidth&&(i.videoBandwidth+=v.bandwidth)),T.includes(","))){i.channelsCount=d.channelsCount,i.audioSamplingRate=d.audioSamplingRate,i.spatialAudio=d.spatialAudio,i.originalLanguage=d.originalLanguage,i.audioMimeType=y,y=T.split(",");try{i.videoCodec=fi("video",y),i.audioCodec=fi("audio",y)}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,y=u.dependencyStream)&&(i.audioCodec=y.codecs||i.audioCodec,i.audioBandwidth&&y.bandwidth&&(i.audioBandwidth+=y.bandwidth)),d&&!i.videoBandwidth&&(u?i.audioBandwidth&&(i.videoBandwidth=i.bandwidth-i.audioBandwidth):i.videoBandwidth=i.bandwidth),u&&!i.audioBandwidth&&(d?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 Nv(i){return{id:i.id,active:!1,type:Cn,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 jP(i){var u=i.width||null,d=i.height||null,v=null;i.segmentIndex&&(v=Yc(i.segmentIndex));var y=i.tilesLayout;return v&&(y=v.tilesLayout||y),y&&u!=null&&(u/=Number(y.split("x")[0])),y&&d!=null&&(d/=Number(y.split("x")[1])),{id:i.id,type:"image",bandwidth:i.bandwidth||0,width:u,height:d,mimeType:i.mimeType,codecs:i.codecs||null,tilesLayout:y||null,originalImageId:i.originalId}}function Cw(i){return i.__shaka_id||(i.__shaka_id=SSe++),i.__shaka_id}function nK(i){var u={id:Cw(i),active:i.mode!="disabled",type:Cn,bandwidth:0,language:zr(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 xw(i,u){var d=i?i.language:null;if(d={id:Cw(i||u),active:i?i.enabled:u.selected,type:"variant",bandwidth:0,language:zr(d||"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:d},i&&i.kind&&(d.roles=[i.kind],d.audioRoles=[i.kind]),i&&i.configuration&&(i.configuration.codec&&(d.audioCodec=i.configuration.codec,d.codecs=d.audioCodec),i.configuration.bitrate&&(d.audioBandwidth=i.configuration.bitrate,d.bandwidth+=d.audioBandwidth),i.configuration.sampleRate&&(d.audioSamplingRate=i.configuration.sampleRate),i.configuration.numberOfChannels&&(d.channelsCount=i.configuration.numberOfChannels)),u&&u.configuration&&(u.configuration.codec&&(d.videoCodec=u.configuration.codec,d.codecs=d.codecs?d.codecs+(","+d.videoCodec):d.videoCodec),u.configuration.bitrate&&(d.videoBandwidth=u.configuration.bitrate,d.bandwidth+=d.videoBandwidth),u.configuration.framerate&&(d.frameRate=u.configuration.framerate),u.configuration.width&&(d.width=u.configuration.width),u.configuration.height&&(d.height=u.configuration.height),u.configuration.colorSpace&&u.configuration.colorSpace.transfer))switch(u.configuration.colorSpace.transfer){case"pq":d.hdr="PQ";break;case"hlg":d.hdr="HLG";break;case"bt709":d.hdr="SDR"}return d}function bb(i){return i.allowedByApplication&&i.allowedByKeySystem&&i.disabledUntilTime==0}function Ew(i){return i.filter(function(u){return bb(u)})}function Xg(i,u,d,v){var y=i,w=i.filter(function($){return $.primary});w.length&&(y=w);var T=y.length?y[0].language:"";if(y=y.filter(function($){return $.language==T}),u){var P=kw(zr(u),i.map(function($){return $.language}));P&&(y=i.filter(function($){return zr($.language)==P}))}if(y=y.filter(function($){return $.forced==v}),d){if(i=rK(y,d),i.length)return i}else if(i=y.filter(function($){return $.roles.length==0}),i.length)return i;return i=y.map(function($){return $.roles}).reduce(uSe,[]),i.length?rK(y,i[0]):y}function rK(i,u){return i.filter(function(d){return d.roles.includes(u)})}function _Se(i){var u=[];return i.audio&&u.push(i.audio),i.video&&u.push(i.video),u}function iK(i,u){u.length&&(u=u.filter(function(d){return qs(i.codecs)==qs(d.codecs)}).sort(function(d,v){return d.bandwidth&&v.bandwidth&&d.bandwidth!=v.bandwidth?d.bandwidth-v.bandwidth:(d.width||0)-(v.width||0)}),i.trickModeVideo=u[0],u.length>1&&(u=u.find(function(d){return i.width==d.width&&i.height==d.height})))&&(i.trickModeVideo=u)}function oK(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 sK(i,u,d){if(d.autoShowText==0)return!1;if(d.autoShowText==1)return!0;var v=zr(d.preferredTextLanguage);return u=zr(u.language),d.autoShowText==2?Yg(u,v):d.autoShowText==3?i?(i=zr(i.language),Yg(u,v)&&!Yg(i,u)):!1:(ot("Invalid autoShowText setting!"),!1)}function aK(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 d=i.next();!d.done;d=i.next()){d=d.value;var v={id:0,originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:null,mimeType:d?Cl(d):"",codecs:d?qa(d):"",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};v.fullMimeTypes.add(ho(v.mimeType,v.codecs)),d.startsWith("audio/")?(v.type="audio",u.audio=v):u.video=v}return u}He("shaka.util.StreamUtils",XG),XG.meetsRestrictions=ww;var Tw=new Map,SSe=0,Aw=new Map().set("image/svg+xml",!0).set("image/png",!0).set("image/jpeg",!0).set("image/jpg",!0),kSe=new Map().set("image/webp","data:image/webp;base64,UklGRjoAAABXRUJQVlA4IC4AAACyAgCdASoCAAIALmk0mk0iIiIiIgBoSygABc6WWgAA/veff/0PP8bA//LwYAAA").set("image/avif","data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAAB0AAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAIAAAACAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQ0MAAAAABNjb2xybmNseAACAAIAAYAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAACVtZGF0EgAKCBgANogQEAwgMg8f8D///8WfhwB8+ErK42A=");function Wi(){var i=this;this.H=null,this.B=!1,this.u=new Ne,this.j=new Ge,navigator.connection&&navigator.connection.addEventListener&&this.j.D(navigator.connection,"change",function(){if(i.B&&i.g.useNetworkInformation){i.u=new Ne,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 dr(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=Wi.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,d=1/0;if(this.g.restrictToScreenSize&&(d=this.g.ignoreDevicePixelRatio?1:this.F.devicePixelRatio,u=this.F.screen.height*d,d*=this.F.screen.width),this.h&&this.g.restrictToElementSize){var v=this.g.ignoreDevicePixelRatio?1:this.F.devicePixelRatio,y=this.m.clientHeight,w=this.m.clientWidth;this.i&&document.pictureInPictureElement&&document.pictureInPictureElement==this.m&&(y=this.i.height,w=this.i.width),u=Math.min(u,y*v),d=Math.min(d,w*v)}if(y=this.o.filter(function(j){return j&&!(j.audio&&j.audio.fastSwitching||j.video&&j.video.fastSwitching)}),y.length||(y=this.o),v=y,i&&y.length!=this.o.length&&(v=this.o.filter(function(j){return j&&!!(j.audio&&j.audio.fastSwitching||j.video&&j.video.fastSwitching)})),i=UP(this,this.g.restrictions,v,1/0,1/0),u!=1/0||d!=1/0){for(i=wSe(i),i=_(i),y=i.next();!y.done;y=i.next())if(y=y.value,y.height>=u&&y.width>=d){u=y.height,d=y.width;break}i=UP(this,this.g.restrictions,v,u,d)}for(u=this.getBandwidthEstimate(),v.length&&!i.length&&(i=UP(this,null,v,1/0,1/0),i=[i[0]]),d=i[0]||null,v=0;v=w&&u<=T&&(d.bandwidth!=y.bandwidth||d.bandwidth==y.bandwidth&&d.video&&y.video&&(d.video.width=this.g.cacheLoadThreshold&&this.u.sample(y,u),d&&this.C!=null&&this.B&&lK(this)},l.trySuggestStreams=function(){this.B&&(this.C=Date.now(),lK(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 an(i,this.o)?!1:(this.o=i,!0)},l.playbackRateChanged=function(i){this.I=i},l.setMediaElement=function(i){function u(){d.l.ia(CSe)}var d=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(v){v.pictureInPictureWindow&&(d.i=v.pictureInPictureWindow,d.j.D(d.i,"resize",u))}),this.j.D(i,"leavepictureinpicture",function(){d.i&&d.j.Ma(d.i,"resize",u),d.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 lK(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 Ee(2,7,1010);return u=i.g,i.g++,u==0?v.return():(d=i.h*(1+(Math.random()*2-1)*i.o),L(v,new Promise(function(y){new dr(y).ia(d/1e3)}),2))}i.h*=i.m,B(v)})}function fc(){return{maxAttempts:2,baseDelay:1e3,backoffFactor:2,fuzzFactor:.5,timeout:3e4,stallTimeout:5e3,connectionTimeout:1e4}}function ii(){var i,u,d=new Promise(function(v,y){i=v,u=y});return d.resolve=i,d.reject=u,d}ii.prototype.resolve=function(){},ii.prototype.reject=function(){};function po(i,u){this.promise=i,this.i=u,this.g=null}function ep(i){return new po(Promise.reject(i),function(){return Promise.resolve()})}function zP(){var i=Promise.reject(new Ee(2,7,7001));return i.catch(function(){}),new po(i,function(){return Promise.resolve()})}function Qg(i){return new po(Promise.resolve(i),function(){return Promise.resolve()})}function hK(i){return new po(i,function(){return i.catch(function(){})})}po.prototype.abort=function(){return this.g||(this.g=this.i()),this.g};function pK(i){return new po(Promise.all(i.map(function(u){return u.promise})),function(){return Promise.all(i.map(function(u){return u.abort()}))})}po.prototype.finally=function(i){return this.promise.then(function(){return i(!0)},function(){return i(!1)}),this},po.prototype.Xa=function(i,u){function d(P){return function($){if(y.g&&P)w.reject(T);else{var j=P?i:u;j?v=xSe(j,$,w):(P?w.resolve:w.reject)($)}}}function v(){return w.reject(T),y.abort()}var y=this,w=new ii;w.catch(function(){});var T=new Ee(2,7,7001);return this.promise.then(d(!0),d(!1)),new po(w,function(){return v()})};function xSe(i,u,d){try{var v=i(u);return v&&v.promise&&v.abort?(d.resolve(v.promise),function(){return v.abort()}):(d.resolve(v),function(){return Promise.resolve(v).then(function(){},function(){})})}catch(y){return d.reject(y),function(){return Promise.resolve()}}}p.Object.defineProperties(po.prototype,{aborted:{configurable:!0,enumerable:!0,get:function(){return this.g!==null}}}),He("shaka.util.AbortableOperation",po),po.prototype.chain=po.prototype.Xa,po.prototype.finally=po.prototype.finally,po.all=pK,po.prototype.abort=po.prototype.abort,po.notAbortable=hK,po.completed=Qg,po.aborted=zP,po.failed=ep;function Sn(i,u){if(u)if(u instanceof Map)for(var d=_(u.keys()),v=d.next();!v.done;v=d.next())v=v.value,Object.defineProperty(this,v,{value:u.get(v),writable:!0,enumerable:!0});else for(d in u)Object.defineProperty(this,d,{value:u[d],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 vK(i){var u=new Sn(i.type),d;for(d in i)Object.defineProperty(u,d,{value:i[d],writable:!0,enumerable:!0});return u}Sn.prototype.preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0)},Sn.prototype.stopImmediatePropagation=function(){this.g=!0},Sn.prototype.stopPropagation=function(){},He("shaka.util.FakeEvent",Sn);var Rw={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 Hr(){this.ab=new wt,this.Fe=this}Hr.prototype.addEventListener=function(i,u){this.ab&&this.ab.push(i,u)},Hr.prototype.removeEventListener=function(i,u){this.ab&&this.ab.remove(i,u)},Hr.prototype.dispatchEvent=function(i){if(!this.ab)return!0;var u=this.ab.get(i.type)||[],d=this.ab.get("All");for(d&&(u=u.concat(d)),u=_(u),d=u.next();!d.done;d=u.next()){d=d.value,i.target=this.Fe,i.currentTarget=this.Fe;try{d.handleEvent?d.handleEvent(i):d.call(this,i)}catch{}if(i.g)break}return i.defaultPrevented},Hr.prototype.release=function(){this.ab=null};function Jg(){this.g=[]}function Bv(i,u){i.g.push(u.finally(function(){Jt(i.g,u)}))}Jg.prototype.destroy=function(){for(var i=[],u=_(this.g),d=u.next();!d.done;d=u.next())d=d.value,d.promise.catch(function(){}),i.push(d.abort());return this.g=[],Promise.all(i)};function Ri(i,u,d,v,y,w,T){Hr.call(this),this.i=null,this.j=!1,this.u=new Jg,this.g=new Set,this.h=new Set,this.o=i||null,this.m=u||null,this.B=d||null,this.C=v||null,this.F=y||null,this.H=w||null,this.G=T||null,this.l=new Map}x(Ri,Hr),l=Ri.prototype,l.configure=function(i){this.i=i};function Of(i,u,d,v){v=v===void 0?!1:v,d=d||_K;var y=Dw.get(i);(!y||d>=y.priority)&&Dw.set(i,{priority:d,yf:u,Fk:v})}function mK(i,u){for(var d=_(i.g),v=d.next();!v.done;v=d.next())u.g.add(v.value);for(i=_(i.h),d=i.next();!d.done;d=i.next())u.h.add(d.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 Do(i,u,d){return{uris:i,method:"GET",body:null,headers:{},allowCrossSiteCredentials:!1,retryParameters:u,licenseRequestType:null,sessionId:null,drmInfo:null,initData:null,initDataType:null,streamDataCallback:d===void 0?null:d}}l.destroy=function(){return this.j=!0,this.g.clear(),this.h.clear(),this.l.clear(),Hr.prototype.release.call(this),this.u.destroy()},l.request=function(i,u,d){var v=this,y=new bK;if(this.j){var w=Promise.reject(new Ee(2,7,7001));return w.catch(function(){}),new Mw(w,function(){return Promise.resolve()},y)}u.method=u.method||"GET",u.headers=u.headers||{},u.retryParameters=u.retryParameters?ln(u.retryParameters):fc(),u.uris=ln(u.uris),w=ESe(this,i,u,d);var T=w.Xa(function(){return gK(v,i,u,d,new dK(u.retryParameters,!1),0,null,y)}),P=T.Xa(function(ie){return TSe(v,i,ie,d)}),$=Date.now(),j=0;w.promise.then(function(){j=Date.now()-$},function(){});var G=0;T.promise.then(function(){G=Date.now()},function(){});var q=P.Xa(function(ie){var ue=Date.now()-G,he=ie.response;return he.timeMs+=j,he.timeMs+=ue,ie.fk||!v.o||he.fromCache||u.method=="HEAD"||i!=Ru||v.o(he.timeMs,he.data.byteLength,yK(d),u,d),v.G&&v.G(i,he,d),he},function(ie){throw ie&&(ie.severity=2),ie});return w=new Mw(q.promise,function(){return q.abort()},y),Bv(this.u,w),w};function ESe(i,u,d,v){function y(P){w=w.Xa(function(){return d.body&&(d.body=we(d.body)),P(u,d,v)})}var w=Qg(void 0);i.F&&y(i.F),i=_(i.g);for(var T=i.next();!T.done;T=i.next())y(T.value);return w.Xa(void 0,function(P){throw P instanceof Ee&&P.code==7001?P:new Ee(2,1,1006,P)})}function gK(i,u,d,v,y,w,T,P){i.i.forceHTTP&&(d.uris[w]=d.uris[w].replace("https://","http://")),i.i.forceHTTPS&&(d.uris[w]=d.uris[w].replace("http://","https://")),w>0&&i.H&&i.H(u,v,d.uris[w],d.uris[w-1]);var $=new dn(d.uris[w]),j=$.bc,G=!1;j||(j=location.protocol,j=j.slice(0,-1),Un($,j),d.uris[w]=$.toString()),j=j.toLowerCase();var q=(j=Dw.get(j))?j.yf:null;if(!q)return ep(new Ee(2,1,1e3,$));var ie=j.Fk;($=i.l.get($.Db))&&(d.headers["common-access-token"]=$);var ue=null,he=null,me=!1,ge=!1,Me;return hK(fK(y)).Xa(function(){if(i.j)return zP();Me=Date.now();var Ie=0;d.requestStartTime=Date.now();var Ve=q(d.uris[w],d,u,function(Ze,Fe,lt){ue&&ue.stop(),he&&he.ia(gt/1e3),i.o&&u==Ru&&(Ie++,d.packetNumber=Ie,i.o(Ze,Fe,yK(v),d,v),G=!0,P.g=lt)},function(Ze){ge=!0,d.timeToFirstByte=Date.now()-d.requestStartTime,i.m&&i.m(Ze,d,u)},{minBytesForProgressEvents:i.i.minBytesForProgressEvents});if(!ie)return Ve;var tt=d.retryParameters.connectionTimeout;tt&&(ue=new dr(function(){me=!0,Ve.abort()}),ue.ia(tt/1e3));var gt=d.retryParameters.stallTimeout;return gt&&(he=new dr(function(){me=!0,Ve.abort()})),Ve}).Xa(function(Ie){ue&&ue.stop(),he&&he.stop(),Ie.timeMs==null&&(Ie.timeMs=Date.now()-Me);var Ve=Ie.headers["common-access-token"];if(Ve){var tt=new dn(Ie.uri);i.l.set(tt.Db,Ve)}return Ve={response:Ie,fk:G},!ge&&i.m&&i.m(Ie.headers,d,u),i.B&&i.B(d,Ie),Ve},function(Ie){if(ue&&ue.stop(),he&&he.stop(),i.C){var Ve=null,tt=0;Ie instanceof Ee&&(Ve=Ie,Ie.code==1001&&(tt=Ie.data[1])),i.C(d,Ve,tt,me)}if(i.j)return zP();if(me&&(Ie=new Ee(1,1,1003,d.uris[w],u)),Ie instanceof Ee){if(Ie.code==7001)throw Ie;if(Ie.code==1010)throw T;if(Ie.severity==1){if(Ve=new Map().set("error",Ie),Ve=new Sn("retry",Ve),Ve.cancelable=!0,i.dispatchEvent(Ve),Ve.defaultPrevented)throw Ie;return w=(w+1)%d.uris.length,gK(i,u,d,v,y,w,Ie,P)}}throw Ie})}function TSe(i,u,d,v){var y=Qg(void 0);i=_(i.h);for(var w=i.next(),T={};!w.done;T={Ji:void 0},w=i.next())T.Ji=w.value,y=y.Xa((function(P){return function(){var $=d.response;return $.data&&($.data=we($.data)),(0,P.Ji)(u,$,v)}})(T));return y.Xa(function(){return d},function(P){var $=2;if(P instanceof Ee){if(P.code==7001)throw P;$=P.severity}throw new Ee($,1,1007,P)})}function yK(i){if(i){var u=i.segment;if(i=i.stream,u&&i&&i.fastSwitching&&u.Xc)return!1}return!0}He("shaka.net.NetworkingEngine",Ri),Ri.prototype.request=Ri.prototype.request,Ri.prototype.destroy=Ri.prototype.destroy,Ri.makeRequest=Do,Ri.defaultRetryParameters=function(){return fc()},Ri.prototype.clearCommonAccessTokenMap=Ri.prototype.Qh,Ri.prototype.clearAllResponseFilters=Ri.prototype.pj,Ri.prototype.unregisterResponseFilter=Ri.prototype.il,Ri.prototype.registerResponseFilter=Ri.prototype.Jk,Ri.prototype.clearAllRequestFilters=Ri.prototype.oj,Ri.prototype.unregisterRequestFilter=Ri.prototype.hl,Ri.prototype.registerRequestFilter=Ri.prototype.Ik,Ri.unregisterScheme=function(i){Dw.delete(i)},Ri.registerScheme=Of,Ri.prototype.configure=Ri.prototype.configure;function bK(){this.g=0}Ri.NumBytesRemainingClass=bK;function Mw(i,u,d){po.call(this,i,u),this.h=d}x(Mw,po),Ri.PendingRequest=Mw;var Ru=1;Ri.RequestType={MANIFEST:0,SEGMENT:Ru,LICENSE:2,APP:3,TIMING:4,SERVER_CERTIFICATE:5,KEY:6,ADS:7,CONTENT_STEERING:8,CMCD:9},Ri.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 _K=3;Ri.PluginPriority={FALLBACK:1,PREFERRED:2,APPLICATION:_K};var Dw=new Map;function e0(i){this.g=!1,this.h=new ii,this.i=i}e0.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 ki(i,u){if(i.g)throw u instanceof Ee&&u.code==7003?u:new Ee(2,7,7003,u)}function HP(i,u){var d=[];i=_(i);for(var v=i.next();!v.done;v=i.next())d.push(u(v.value));return d}function ASe(i,u){i=_(i);for(var d=i.next();!d.done;d=i.next())if(!u(d.value))return!1;return!0}function t0(i){for(var u=new Map,d=_(Object.keys(i)),v=d.next();!v.done;v=d.next())v=v.value,u.set(v,i[v]);return u}function WP(i){var u={};return i.forEach(function(d,v){u[v]=d}),u}function Li(i,u){this.h=et(i),this.i=u==SK,this.g=0}l=Li.prototype,l.Ia=function(){return this.g2097151)throw new Ee(2,3,3001);return this.g+=8,u*4294967296+i},l.Tb=function(i,u){if(this.g+i>this.h.byteLength)throw $f();var d=Le(this.h,this.g,i);return this.g+=i,u?new Uint8Array(d):d},l.skip=function(i){if(this.g+i>this.h.byteLength)throw $f();this.g+=i},l.Ki=function(i){if(this.gthis.h.byteLength)throw $f();this.g=i},l.Yc=function(){for(var i=this.g;this.Ia()&&this.h.getUint8(this.g)!=0;)this.g+=1;return i=Le(this.h,i,this.g-i),this.g+=1,rt(i)};function $f(){return new Ee(2,3,3e3)}He("shaka.util.DataViewReader",Li),Li.prototype.readTerminatedString=Li.prototype.Yc,Li.prototype.seek=Li.prototype.seek,Li.prototype.rewind=Li.prototype.Ki,Li.prototype.skip=Li.prototype.skip,Li.prototype.readBytes=Li.prototype.Tb,Li.prototype.readUint64=Li.prototype.Dd,Li.prototype.readInt32=Li.prototype.Zg,Li.prototype.readUint32=Li.prototype.U,Li.prototype.readUint16=Li.prototype.Ca,Li.prototype.readUint8=Li.prototype.Y,Li.prototype.getLength=Li.prototype.getLength,Li.prototype.getPosition=Li.prototype.Oa,Li.prototype.hasMoreData=Li.prototype.Ia;var SK=1;Li.Endianness={BIG_ENDIAN:0,LITTLE_ENDIAN:SK};function oi(){this.i=new Map,this.h=new Map,this.g=!1}l=oi.prototype,l.box=function(i,u){return i=kK(i),this.i.set(i,ISe),this.h.set(i,u),this},l.S=function(i,u){return i=kK(i),this.i.set(i,wK),this.h.set(i,u),this},l.stop=function(){this.g=!0},l.parse=function(i,u,d){for(i=new Li(i,0),this.g=!1;i.Ia()&&!this.g;)this.zd(0,i,u,d)},l.zd=function(i,u,d,v){var y=u.Oa();if(v&&y+8>u.getLength())this.g=!0;else{var w=u.U(),T=u.U(),P=$w(T),$=!1;switch(w){case 0:w=u.getLength()-y;break;case 1:if(v&&u.Oa()+8>u.getLength()){this.g=!0;return}w=u.Dd(),$=!0}var j=this.h.get(T);if(j){var G=null,q=null;if(this.i.get(T)==wK){if(v&&u.Oa()+4>u.getLength()){this.g=!0;return}q=u.U(),G=q>>>24,q&=16777215}T=y+w,d&&T>u.getLength()&&(T=u.getLength()),v&&T>u.getLength()?this.g=!0:(T-=u.Oa(),u=T>0?u.Tb(T,!1):new Uint8Array(0),u=new Li(u,0),j({name:P,parser:this,partialOkay:d||!1,stopOnPartial:v||!1,version:G,flags:q,reader:u,size:w,start:y+i,has64BitSize:$}))}else u.skip(Math.min(y+w-u.Oa(),u.getLength()-u.Oa()))}};function rr(i){for(var u=tp(i);i.reader.Ia()&&!i.parser.g;)i.parser.zd(i.start+u,i.reader,i.partialOkay,i.stopOnPartial)}function Nf(i){for(var u=tp(i),d=i.reader.U(),v=0;v>24&255,i>>16&255,i>>8&255,i&255)}function tp(i){return 8+(i.has64BitSize?8:0)+(i.flags!=null?4:0)}He("shaka.util.Mp4Parser",oi),oi.headerSize=tp,oi.typeToString=$w,oi.allData=n0,oi.audioSampleEntry=Ow,oi.visualSampleEntry=xl,oi.sampleDescription=Nf,oi.children=rr,oi.prototype.parseNext=oi.prototype.zd,oi.prototype.parse=oi.prototype.parse,oi.prototype.stop=oi.prototype.stop,oi.prototype.fullBox=oi.prototype.S,oi.prototype.box=oi.prototype.box;var ISe=0,wK=1;function GP(i){var u=this;this.g=[],this.h=[],this.data=[],new oi().box("moov",rr).box("moof",rr).S("pssh",function(d){if(!(d.version>1)){var v=Le(d.reader.h,-12,d.size);if(u.data.push(v),v=d.reader.Tb(16,!1),u.g.push(An(v)),d.version>0){v=d.reader.U();for(var y=0;y0&&(w+=4+16*d.size);var T=new Uint8Array(w),P=et(T),$=0;if(P.setUint32($,w),$+=4,P.setUint32($,1886614376),$+=4,v<1?P.setUint32($,0):P.setUint32($,16777216),$+=4,T.set(u,$),$+=u.length,v>0)for(P.setUint32($,d.size),$+=4,u=_(d),d=u.next();!d.done;d=u.next())d=er(d.value),T.set(d,$),$+=d.length;return P.setUint32($,y),T.set(i,$+4),T}function Bw(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 Ge,this.i=new Map,this.X=[],this.C=new Map,this.K=!1,this.m=new ii,this.h=null,this.u=function(d){d.severity==2&&u.m.reject(d),i.onError(d)},this.aa=new Map,this.ma=new Map,this.M=new dr(function(){return jSe(u)}),this.R=!1,this.N=[],this.$=!1,this.G=new dr(function(){VSe(u)}),this.m.catch(function(){}),this.l=new e0(function(){return LSe(u)}),this.O=!1,this.H=this.I=null,this.V=function(){return!1}}l=Bw.prototype,l.destroy=function(){return this.l.destroy()};function LSe(i){return Q(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,Sb(i),2);case 2:if(!i.j){u.A(3);break}return U(u,4),L(u,i.j.setMediaKeys(null),6);case 6:V(u,5);break;case 4:z(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 PSe(i,u,d){return i.qa=!0,i.C=new Map,i.R=d,xK(i,u,!1)}function CK(i,u,d,v){v=v===void 0?!0:v,i.C=new Map,d=_(d);for(var y=d.next();!y.done;y=d.next())i.C.set(y.value,{initData:null,initDataType:null});for(d=_(i.h.persistentSessionsMetadata),y=d.next();!y.done;y=d.next())y=y.value,i.C.set(y.sessionId,{initData:y.initData,initDataType:y.initDataType});return i.R=i.C.size>0,xK(i,u,v)}function RSe(i,u,d,v,y,w){var T,P,$,j,G;return Q(function(q){return q.g==1?(T=[],w.length&&T.push(w[0].contentType),y.length&&T.push(y[0].contentType),P=function(ie){return ie=lr(u,ie,null),ie.licenseServerUri=d,ie.serverCertificate=v,ie.persistentStateRequired=!0,ie.sessionType="persistent-license",ie},$=aK(T),$.video&&(j=P(w[0].encryptionScheme||""),$.video.drmInfos.push(j)),$.audio&&(G=P(y[0].encryptionScheme||""),$.audio.drmInfos.push(G)),L(q,FP([$],!0,i.O,[]),2)):(ki(i.l),q.return(IK(i,[$])))})}function xK(i,u,d){var v,y,w,T,P,$,j,G,q,ie,ue,he,me,ge,Me,Ie,Ve,tt;return Q(function(gt){if(gt.g==1){for(OK(i.h.clearKeys,u),v=u.some(function(Ze){return!!(Ze.video&&Ze.video.drmInfos.length||Ze.audio&&Ze.audio.drmInfos.length)}),y=t0(i.h.servers),w=t0(i.h.advanced||{}),!v&&d&&HSe(u,y),T=new WeakSet,P=_(u),$=P.next();!$.done;$=P.next())for(j=$.value,G=DK(j),q=_(G),ie=q.next();!ie.done;ie=q.next())ue=ie.value,T.has(ue)||(T.add(ue),GSe(ue,y,w,i.h.keySystemsMapping));for(he=function(Ze,Fe){var lt=[];Ze=_(Ze);for(var pt=Ze.next();!pt.done;pt=Ze.next()){pt=pt.value;var ft=pt[Fe]||w.has(pt.keySystem)&&w.get(pt.keySystem)[Fe]||"",bt;if((bt=ft=="")&&(bt=(bt=pt.keySystem)?!!bt.match(/^com\.widevine\.alpha/):!1),bt&&(Fe=="audioRobustness"?ft=[i.h.defaultAudioRobustnessForWidevine]:Fe=="videoRobustness"&&(ft=[i.h.defaultVideoRobustnessForWidevine])),typeof ft=="string")lt.push(pt);else if(Array.isArray(ft))for(ft.length===0&&(ft=[""]),ft=_(ft),bt=ft.next();!bt.done;bt=ft.next()){var St={};lt.push(Object.assign({},pt,(St[Fe]=bt.value,St)))}}return lt},me=new WeakSet,ge=_(u),Me=ge.next();!Me.done;Me=ge.next())Ie=Me.value,Ie.video&&!me.has(Ie.video)&&(Ie.video.drmInfos=he(Ie.video.drmInfos,"videoRobustness"),Ie.video.drmInfos=he(Ie.video.drmInfos,"audioRobustness"),me.add(Ie.video)),Ie.audio&&!me.has(Ie.audio)&&(Ie.audio.drmInfos=he(Ie.audio.drmInfos,"videoRobustness"),Ie.audio.drmInfos=he(Ie.audio.drmInfos,"audioRobustness"),me.add(Ie.audio));return L(gt,FP(u,i.R,i.O,i.h.preferredKeySystems),2)}return ki(i.l),Ve=v||y.size>0,Ve?(tt=IK(i,u),gt.return(v?tt:tt.catch(function(){}))):(i.T=!0,gt.return(Promise.resolve()))})}function EK(i){var u;return Q(function(d){switch(d.g){case 1:if(i.j.mediaKeys)return d.return();if(!i.I){d.A(2);break}return L(d,i.I,3);case 3:return ki(i.l),d.return();case 2:return U(d,4),i.I=i.j.setMediaKeys(i.B),L(d,i.I,6);case 6:V(d,5);break;case 4:u=z(d),i.u(new Ee(2,6,6003,u.message));case 5:ki(i.l),B(d)}})}function MSe(i,u){return Q(function(d){if(d.g==1)return L(d,EK(i),2);_b(i,u.initDataType,Le(u.initData)),B(d)})}l.fc=function(i){var u=this,d,v;return Q(function(y){if(y.g==1)return u.j===i?y.return():u.B?(u.j=i,u.h.delayLicenseRequestUntilPlayed&&u.o.Ba(u.j,"play",function(){for(var w=_(u.N),T=w.next();!T.done;T=w.next())qP(u,T.value);u.$=!0,u.N=[]}),u.j.remote?(u.o.D(u.j.remote,"connect",function(){return Sb(u)}),u.o.D(u.j.remote,"connecting",function(){return Sb(u)}),u.o.D(u.j.remote,"disconnect",function(){return Sb(u)})):"webkitCurrentPlaybackTargetIsWireless"in u.j&&u.o.D(u.j,"webkitcurrentplaybacktargetiswirelesschanged",function(){return Sb(u)}),u.H=u.g&&u.g.initData.find(function(w){return w.initData.length>0})||null,d=u.g.keySystem,(v=$e().Rg(d))||!u.H&&u.g.keySystem==="com.apple.fps"&&!u.C.size?y.A(2):L(y,EK(u),2)):(u.o.Ba(i,"encrypted",function(){u.u(new Ee(2,6,6010))}),y.return());TK(u).catch(function(){}),!v&&(u.H||u.C.size||u.h.parseInbandPsshEnabled)||u.o.D(u.j,"encrypted",function(w){return MSe(u,w)}),B(y)})};function DSe(i){var u,d,v,y,w;return Q(function(T){switch(T.g){case 1:if(!i.B||!i.g)return T.return();if(!i.g.serverCertificateUri||i.g.serverCertificate&&i.g.serverCertificate.length){T.A(2);break}return u=Do([i.g.serverCertificateUri],i.h.retryParameters),U(T,3),d=i.F.tc.request(5,u,{isPreload:i.V()}),L(T,d.promise,5);case 5:v=T.h,i.g.serverCertificate=Le(v.data),V(T,4);break;case 3:throw y=z(T),new Ee(2,6,6017,y);case 4:if(i.l.g)return T.return();case 2:return!i.g.serverCertificate||!i.g.serverCertificate.length?T.return():(U(T,6),L(T,i.B.setServerCertificate(i.g.serverCertificate),8));case 8:V(T,0);break;case 6:throw w=z(T),new Ee(2,6,6004,w.message)}})}function OSe(i,u){var d,v,y;return Q(function(w){if(w.g==1)return L(w,PK(i,u,{initData:null,initDataType:null}),2);if(w.g!=3)return d=w.h,d?(v=[],(y=i.i.get(d))&&(y.Kb=new ii,v.push(y.Kb)),v.push(d.remove()),L(w,Promise.all(v),3)):w.return();i.i.delete(d),B(w)})}function TK(i){var u,d,v,y,w;return Q(function(T){if(T.g==1)return i.C.size?(i.C.forEach(function(P,$){PK(i,$,P)}),L(T,i.m,3)):T.A(2);if(T.g!=2){if(u=i.g&&i.g.keyIds||new Set([]),u.size>0&&zSe(i))return T.return(i.m);i.K=!1,i.m=new ii,i.m.catch(function(){})}for(d=(i.g?i.g.initData:[])||[],v=_(d),y=v.next();!y.done;y=v.next())w=y.value,_b(i,w.initDataType,w.initData);return kb(i)&&i.m.resolve(),T.return(i.m)})}function _b(i,u,d){if(d.length){if(i.h.ignoreDuplicateInitData){var v=i.i.values();v=_(v);for(var y=v.next();!y.done;y=v.next())if(xe(d,y.value.initData))return;var w=!1;if(i.C.forEach(function(T){!w&&xe(d,T.initData)&&(w=!0)}),w)return}i.K=!0,i.i.size>0&&kb(i)&&(i.m.resolve(),i.K=!1,i.m=new ii,i.m.catch(function(){})),BSe(i,u,d,i.g.sessionType)}}function AK(i){return i=i.i.keys(),i=HP(i,function(u){return u.sessionId}),Array.from(i)}l.Gg=function(){var i=this,u=this.i.keys();return u=HP(u,function(d){var v=i.i.get(d);return{sessionId:d.sessionId,sessionType:v.type,initData:v.initData,initDataType:v.initDataType}}),Array.from(u)},l.Wd=function(){var i=1/0,u=this.i.keys();u=_(u);for(var d=u.next();!d.done;d=u.next())d=d.value,isNaN(d.expiration)||(i=Math.min(i,d.expiration));return i};function $Se(i){return i.J?i.J:NaN}l.Xe=function(){return WP(this.ma)};function IK(i,u){var d,v,y,w,T,P,$;return Q(function(j){switch(j.g){case 1:if(d=new Map,v=NSe(i,u,d),!v)throw navigator.requestMediaKeySystemAccess?new Ee(2,6,6001):new Ee(2,6,6020);ki(i.l),U(j,2),v.getConfiguration();var G=y=i.h.keySystemsMapping[v.keySystem]||v.keySystem,q=d.get(y),ie=[],ue=[],he=[],me=[],ge=[],Me=new Set,Ie=new Set;WSe(q,ie,ue,me,he,ge,Me,Ie);var Ve=i.R?"persistent-license":"temporary";for(G={keySystem:G,encryptionScheme:ie[0],licenseServerUri:ue[0],distinctiveIdentifierRequired:q[0].distinctiveIdentifierRequired,persistentStateRequired:q[0].persistentStateRequired,sessionType:q[0].sessionType||Ve,audioRobustness:q[0].audioRobustness||"",videoRobustness:q[0].videoRobustness||"",serverCertificate:me[0],serverCertificateUri:he[0],initData:ge,keyIds:Me},Ie.size>0&&(G.keySystemUris=Ie),q=_(q),Ie=q.next();!Ie.done;Ie=q.next())Ie=Ie.value,Ie.distinctiveIdentifierRequired&&(G.distinctiveIdentifierRequired=Ie.distinctiveIdentifierRequired),Ie.persistentStateRequired&&(G.persistentStateRequired=Ie.persistentStateRequired);if(i.g=G,!i.g.licenseServerUri)throw new Ee(2,6,6012,i.g.keySystem);return L(j,v.createMediaKeys(),4);case 4:if(w=j.h,ki(i.l),i.B=w,!(i.h.minHdcpVersion!=""&&"getStatusForPolicy"in i.B)){j.A(5);break}return U(j,6),L(j,i.B.getStatusForPolicy({minHdcpVersion:i.h.minHdcpVersion}),8);case 8:if(T=j.h,T!="usable")throw new Ee(2,6,6018);ki(i.l),V(j,5,2);break;case 6:throw P=z(j,2),P instanceof Ee?P:new Ee(2,6,6019,P.message);case 5:return i.T=!0,i.G.Ea(i.h.updateExpirationTime),L(j,DSe(i),9);case 9:ki(i.l),V(j,0);break;case 2:throw $=z(j),ki(i.l,$),i.g=null,$ instanceof Ee?$:new Ee(2,6,6002,$.message)}})}function NSe(i,u,d){for(var v=_(u),y=v.next();!y.done;y=v.next()){y=_(DK(y.value));for(var w=y.next();!w.done;w=y.next())w=w.value,d.has(w.keySystem)||d.set(w.keySystem,[]),d.get(w.keySystem).push(w)}if(d.size==1&&d.has(""))throw new Ee(2,6,6e3);v=i.h.preferredKeySystems,v.length||(y=t0(i.h.servers),y.size==1&&(v=Array.from(y.keys()))),y=_(v);var T=y.next();for(w={};!T.done;w={Di:void 0},T=y.next()){w.Di=T.value,T=_(u);for(var P=T.next();!P.done;P=T.next())if(P=P.value.decodingInfos.find((function(q){return function(ie){return ie.supported&&ie.keySystemAccess!=null&&ie.keySystemAccess.keySystem==q.Di}})(w)))return P.keySystemAccess}for(y=_([!0,!1]),w=y.next();!w.done;w=y.next())for(w=w.value,T=_(u),P=T.next();!P.done;P=T.next()){P=_(P.value.decodingInfos);for(var $=P.next();!$.done;$=P.next())if($=$.value,$.supported&&$.keySystemAccess){var j=$.keySystemAccess.keySystem;if(!v.includes(j)){var G=d.get(j);for(!G&&i.h.keySystemsMapping[j]&&(G=d.get(i.h.keySystemsMapping[j])),j=_(G),G=j.next();!G.done;G=j.next())if(!!G.value.licenseServerUri==w)return $.keySystemAccess}}}return null}function KP(i){kb(i)&&i.m.resolve()}function LK(i,u){new dr(function(){u.loaded=!0,KP(i)}).ia(qSe)}function PK(i,u,d){var v,y,w,T,P,$,j;return Q(function(G){switch(G.g){case 1:try{v=i.B.createSession("persistent-license")}catch(q){return y=new Ee(2,6,6005,q.message),i.u(y),G.return(Promise.reject(y))}return i.o.D(v,"message",function(q){i.j&&i.h.delayLicenseRequestUntilPlayed&&i.j.paused&&!i.$?i.N.push(q):qP(i,q)}),i.o.D(v,"keystatuseschange",function(q){return RK(i,q)}),w={initData:d.initData,initDataType:d.initDataType,loaded:!1,Ug:1/0,Kb:null,type:"persistent-license"},i.i.set(v,w),U(G,2),L(G,v.load(u),4);case 4:return T=G.h,ki(i.l),T||(i.i.delete(v),P=i.h.persistentSessionOnlinePlayback?1:2,i.u(new Ee(P,6,6013)),w.loaded=!0),LK(i,w),KP(i),G.return(v);case 2:$=z(G),ki(i.l,$),i.i.delete(v),j=i.h.persistentSessionOnlinePlayback?1:2,i.u(new Ee(j,6,6005,$.message)),w.loaded=!0,KP(i);case 3:return G.return(Promise.resolve())}})}function BSe(i,u,d,v){try{var y=i.B.createSession(v)}catch(w){i.u(new Ee(2,6,6005,w.message));return}i.o.D(y,"message",function(w){i.j&&i.h.delayLicenseRequestUntilPlayed&&i.j.paused&&!i.$?i.N.push(w):qP(i,w)}),i.o.D(y,"keystatuseschange",function(w){return RK(i,w)}),i.i.set(y,{initData:d,initDataType:u,loaded:!1,Ug:1/0,Kb:null,type:v});try{d=i.h.initDataTransform(d,u,i.g)}catch(w){u=w,w instanceof Ee||(u=new Ee(2,6,6016,w)),i.u(u);return}i.h.logLicenseExchange&&Gn(d),y.generateRequest(u,d).catch(function(w){if(!i.l.g){i.i.delete(y);var T=w.errorCode;if(T&&T.systemCode){var P=T.systemCode;P<0&&(P+=4294967296),P="0x"+P.toString(16)}i.u(new Ee(2,6,6006,w.message,w,P))}})}function FSe(i){return Q(function(u){return u.g==1?i.K?L(u,i.m,3):u.A(0):L(u,Promise.all(i.X.map(function(d){return d.promise})),0)})}function qP(i,u){var d,v,y,w,T,P,$,j,G,q,ie,ue,he,me,ge,Me;Q(function(Ie){switch(Ie.g){case 1:if(d=u.target,i.h.logLicenseExchange&&Gn(u.message),v=i.i.get(d),y=i.g.licenseServerUri,w=i.h.advanced[i.g.keySystem],u.messageType=="individualization-request"&&w&&w.individualizationServer&&(y=w.individualizationServer),T=Do([y],i.h.retryParameters),T.body=u.message,T.method="POST",T.licenseRequestType=u.messageType,T.sessionId=d.sessionId,T.drmInfo=i.g,v&&(T.initData=v.initData,T.initDataType=v.initDataType),w&&w.headers)for(P in w.headers)T.headers[P]=w.headers[P];if(i.g.keySystem==="org.w3.clearkey"){var Ve=T,tt=i.g;try{var gt=Xt(Ve.body);if(gt){var Ze=JSON.parse(gt);Ze.type||(Ze.type=tt.sessionType,Ve.body=Gt(JSON.stringify(Ze)))}}catch{}}if(VP(i.g.keySystem))if(Ve=Mt(T.body,!0,!0),Ve.includes("PlayReadyKeyMessage")){for(Ve=ri(Ve,"PlayReadyKeyMessage"),tt=ka(Ve,"HttpHeader"),tt=_(tt),gt=tt.next();!gt.done;gt=tt.next())Ze=gt.value,gt=ka(Ze,"name")[0],Ze=ka(Ze,"value")[0],T.headers[mr(gt)]=mr(Ze);Ve=ka(Ve,"Challenge")[0],T.body=ar(mr(Ve))}else T.headers["Content-Type"]="text/xml; charset=utf-8";return $=Date.now(),U(Ie,2),G=i.F.tc.request(2,T,{isPreload:i.V()}),i.X.push(G),L(Ie,G.promise,4);case 4:j=Ie.h,Jt(i.X,G),V(Ie,3);break;case 2:return q=z(Ie),i.l.g||(ie={sessionId:d.sessionId,sessionType:v.type,initData:v.initData,initDataType:v.initDataType},ue=new Ee(2,6,6007,q,ie),i.i.size==1?(i.u(ue),v&&v.Kb&&v.Kb.reject(ue)):(v&&v.Kb&&v.Kb.reject(ue),i.i.delete(d),kb(i)&&(i.m.resolve(),i.M.ia(.1)))),Ie.return();case 3:return i.l.g?Ie.return():(i.J+=(Date.now()-$)/1e3,i.h.logLicenseExchange&&Gn(j.data),U(Ie,5),L(Ie,d.update(j.data),7));case 7:V(Ie,6);break;case 5:return me=(he=z(Ie))&&he.message||String(he),ge=new Ee(2,6,6008,me),i.u(ge),v&&v.Kb&&v.Kb.reject(ge),Ie.return();case 6:if(i.l.g)return Ie.return();Me=new Sn("drmsessionupdate"),i.F.onEvent(Me),v&&(v.Kb&&v.Kb.resolve(),LK(i,v)),B(Ie)}})}function RK(i,u){u=u.target;var d=i.i.get(u),v=!1;u.keyStatuses.forEach(function(w,T){if(typeof T=="string"){var P=T;T=w,w=P}if(P=$e(),VP(i.g.keySystem)&&T.byteLength==16&&P.gh()){P=et(T);var $=P.getUint32(0,!0),j=P.getUint16(4,!0),G=P.getUint16(6,!0);P.setUint32(0,$,!1),P.setUint16(4,j,!1),P.setUint16(6,G,!1)}w!="status-pending"&&(d.loaded=!0),w=="expired"&&(v=!0),T=An(T).slice(0,32),i.aa.set(T,w)});var y=u.expiration-Date.now();(y<0||v&&y<1e3)&&d&&!d.Kb&&(i.i.delete(u),MK(u)),kb(i)&&(i.m.resolve(),i.M.ia(YSe))}function jSe(i){var u=i.aa,d=i.ma;d.clear(),u.forEach(function(v,y){return d.set(y,v)}),u=Array.from(d.values()),u.length&&u.every(function(v){return v=="expired"})&&i.u(new Ee(2,6,6014)),i.F.vf(WP(d))}function USe(){var i,u,d,v,y,w,T,P,$,j,G,q,ie,ue,he,me,ge,Me,Ie,Ve,tt,gt,Ze,Fe,lt,pt,ft,bt,St,$t,Nt,Et;return Q(function(Rt){if(Rt.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={},d=_(i),v=d.next();!v.done;v=d.next())y=v.value,u[y]=null;return Rt.return(u)}for(w="1.0 1.1 1.2 1.3 1.4 2.0 2.1 2.2 2.3".split(" "),T=["SW_SECURE_CRYPTO","SW_SECURE_DECODE","HW_SECURE_CRYPTO","HW_SECURE_DECODE","HW_SECURE_ALL"],P=["150","2000","3000"],$={"com.widevine.alpha":T,"com.widevine.alpha.experiment":T,"com.microsoft.playready.recommendation":P},j=[{contentType:'video/mp4; codecs="avc1.42E01E"'},{contentType:'video/webm; codecs="vp8"'}],G=[{contentType:'audio/mp4; codecs="mp4a.40.2"'},{contentType:'audio/webm; codecs="opus"'}],q={videoCapabilities:j,audioCapabilities:G,initDataTypes:["cenc","sinf","skd","keyids"]},ie=[null,"cenc","cbcs"],ue=new Map,he=$e(),me=function(Kt,on,qn){var wn,xr,pr,Gr,gr,Mn,bi,Ar,Er,ur,$i,Di,Zi;return Q(function(Jr){switch(Jr.g){case 1:return U(Jr,2),L(Jr,on.createMediaKeys(),5);case 5:wn=Jr.h;case 4:V(Jr,3);break;case 2:return z(Jr),Jr.return();case 3:if(pr=(xr=on.getConfiguration().sessionTypes)?xr.includes("persistent-license"):!1,he.ti()&&(pr=!1),Gr=on.getConfiguration().videoCapabilities,gr=on.getConfiguration().audioCapabilities,Mn={persistentState:pr,encryptionSchemes:[],videoRobustnessLevels:[],audioRobustnessLevels:[],minHdcpVersions:[]},ue.get(Kt)?Mn=ue.get(Kt):ue.set(Kt,Mn),(bi=Gr[0].encryptionScheme)&&!Mn.encryptionSchemes.includes(bi)&&Mn.encryptionSchemes.push(bi),(Ar=Gr[0].robustness)&&!Mn.videoRobustnessLevels.includes(Ar)&&Mn.videoRobustnessLevels.push(Ar),(Er=gr[0].robustness)&&!Mn.audioRobustnessLevels.includes(Er)&&Mn.audioRobustnessLevels.push(Er),!(qn&&"getStatusForPolicy"in wn)){Jr.A(0);break}ur=_(w),$i=ur.next();case 7:if($i.done){Jr.A(0);break}if(Di=$i.value,Mn.minHdcpVersions.includes(Di)){Jr.A(8);break}return L(Jr,wn.getStatusForPolicy({minHdcpVersion:Di}),10);case 10:if(Zi=Jr.h,Zi=="usable")Mn.minHdcpVersions.includes(Di)||Mn.minHdcpVersions.push(Di);else{Jr.A(0);break}case 8:$i=ur.next(),Jr.A(7)}})},ge=function(Kt,on,qn,wn,xr){xr=xr===void 0?!1:xr;var pr,Gr,gr,Mn,bi,Ar,Er,ur,$i,Di,Zi;return Q(function(Jr){switch(Jr.g){case 1:for(U(Jr,2),pr=ln(q),Gr=_(pr.videoCapabilities),gr=Gr.next();!gr.done;gr=Gr.next())Mn=gr.value,Mn.encryptionScheme=on,Mn.robustness=qn;for(bi=_(pr.audioCapabilities),Ar=bi.next();!Ar.done;Ar=bi.next())Er=Ar.value,Er.encryptionScheme=on,Er.robustness=wn;return ur=ln(pr),ur.persistentState="required",ur.sessionTypes=["persistent-license"],$i=[ur,pr],Zi=$e(),Zi.Ua()=="MOBILE"?L(Jr,_w(5,navigator.requestMediaKeySystemAccess(Kt,$i)),7):L(Jr,navigator.requestMediaKeySystemAccess(Kt,$i),6);case 6:Di=Jr.h,Jr.A(5);break;case 7:Di=Jr.h;case 5:return L(Jr,me(Kt,Di,xr),8);case 8:V(Jr,0);break;case 2:z(Jr),B(Jr)}})},Me=_(i),Ie=Me.next();!Ie.done;Ie=Me.next())Ve=Ie.value,ue.set(Ve,null);for(tt=function(Kt){return!($e().Ha()==="WEBKIT"&&Kt==="org.w3.clearkey")},gt=[],Ze=_(i),Fe=Ze.next();!Fe.done;Fe=Ze.next())if(lt=Fe.value,tt(lt)){for(pt=!0,ft=_(ie),bt=ft.next();!bt.done;bt=ft.next())St=bt.value,gt.push(ge(lt,St,"","",pt)),pt=!1;for($t=_($[lt]||[]),Nt=$t.next();!Nt.done;Nt=$t.next())Et=Nt.value,gt.push(ge(lt,null,Et,"")),gt.push(ge(lt,null,"",Et))}return L(Rt,Promise.all(gt),2)}return Rt.return(WP(ue))})}function MK(i){return Q(function(u){if(u.g==1)return U(u,2),L(u,_w(KSe,Promise.all([i.close().catch(function(){}),i.closed])),4);if(u.g!=2)return V(u,0);z(u),B(u)})}function Sb(i){var u;return Q(function(d){return u=Array.from(i.i.entries()),i.i.clear(),L(d,Promise.all(u.map(function(v){v=_(v);var y=v.next().value,w=v.next().value;return Q(function(T){if(T.g==1)return U(T,2),i.qa||i.C.has(y.sessionId)||w.type!=="persistent-license"||i.h.persistentSessionOnlinePlayback?L(T,MK(y),5):L(T,y.remove(),5);if(T.g!=2)return V(T,0);z(T),B(T)})})),0)})}function DK(i){return(i.video?i.video.drmInfos:[]).concat(i.audio?i.audio.drmInfos:[])}function VSe(i){i.i.forEach(function(u,d){var v=u.Ug,y=d.expiration;isNaN(y)&&(y=1/0),y!=v&&(i.F.onExpirationUpdated(d.sessionId,y),u.Ug=y)})}function kb(i){return i=i.i.values(),ASe(i,function(u){return u.loaded})}function zSe(i){for(var u=_(i.g&&i.g.keyIds||new Set([])),d=u.next();!d.done;d=u.next())if(i.aa.get(d.value)!=="usable")return!1;return!0}function HSe(i,u){var d=[];for(u.forEach(function(v,y){d.push({keySystem:y,licenseServerUri:v,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=d),u.audio&&(u.audio.drmInfos=d)}function WSe(i,u,d,v,y,w,T,P){var $=[];i=_(i);for(var j=i.next(),G={};!j.done;G={Ka:void 0},j=i.next()){if(G.Ka=j.value,u.includes(G.Ka.encryptionScheme)||u.push(G.Ka.encryptionScheme),G.Ka.keySystem=="org.w3.clearkey"&&G.Ka.licenseServerUri.startsWith("data:application/json;base64,")?$.includes(G.Ka.licenseServerUri)||$.push(G.Ka.licenseServerUri):d.includes(G.Ka.licenseServerUri)||d.push(G.Ka.licenseServerUri),y.includes(G.Ka.serverCertificateUri)||y.push(G.Ka.serverCertificateUri),G.Ka.serverCertificate&&(v.some((function(ue){return function(he){return xe(he,ue.Ka.serverCertificate)}})(G))||v.push(G.Ka.serverCertificate)),G.Ka.initData){j=_(G.Ka.initData);for(var q=j.next(),ie={};!q.done;ie={Lg:void 0},q=j.next())ie.Lg=q.value,w.some((function(ue){return function(he){var me=ue.Lg;return he.keyId&&he.keyId==me.keyId?!0:he.initDataType==me.initDataType&&xe(he.initData,me.initData)}})(ie))||w.push(ie.Lg)}if(G.Ka.keyIds)for(j=_(G.Ka.keyIds),q=j.next();!q.done;q=j.next())T.add(q.value);if(G.Ka.keySystemUris&&P)for(G=_(G.Ka.keySystemUris),j=G.next();!j.done;j=G.next())P.add(j.value)}if($.length==1)d.push($[0]);else if($.length>0){for(u=[],$=_($),v=$.next();!v.done;v=$.next())v=o.atob(v.value.split("data:application/json;base64,").pop()),v=JSON.parse(v),u.push.apply(u,A(v.keys));$=JSON.stringify({keys:u}),d.push("data:application/json;base64,"+o.btoa($))}}function GSe(i,u,d,v){var y=i.keySystem;y&&(y!="org.w3.clearkey"||!i.licenseServerUri)&&(u.size&&u.get(y)&&(u=u.get(y),i.licenseServerUri=u),i.keyIds||(i.keyIds=new Set),(d=d.get(y))&&(i.distinctiveIdentifierRequired||(i.distinctiveIdentifierRequired=d.distinctiveIdentifierRequired),i.persistentStateRequired||(i.persistentStateRequired=d.persistentStateRequired),i.serverCertificate||(i.serverCertificate=d.serverCertificate),d.sessionType&&(i.sessionType=d.sessionType),i.serverCertificateUri||(i.serverCertificateUri=d.serverCertificateUri)),v[y]&&(i.keySystem=v[y]),o.cast&&o.cast.__platform__&&y=="com.microsoft.playready"&&(i.keySystem="com.chromecast.playready"))}function OK(i,u){if(i=t0(i),i.size!=0){i=Ur(i),u=_(u);for(var d=u.next();!d.done;d=u.next())d=d.value,d.video&&(d.video.drmInfos=[i]),d.audio&&(d.audio.drmInfos=[i])}}var KSe=1,qSe=5,YSe=.5;function XSe(){this.g=r0,this.i=new Map().set(r0,2).set(Fv,1),this.h=0}function YP(i,u){var d=i.g!==u;return i.g=u,d&&u===r0&&(i.h=Date.now()),d}var Fv=0,r0=1;/* @license Shaka Player Copyright 2023 Google LLC SPDX-License-Identifier: Apache-2.0 */function XP(i,u,d){this.g=i,this.i=u,this.h=d}function $K(i,u){return Q(function(d){if(d.g==1)return L(d,hSe(i.h,u,i.g.drm.preferredKeySystems,i.g.drm.keySystemsMapping),2);if(i.g.streaming.dontChooseCodecs||ZG(u,i.g.preferredVideoCodecs,i.g.preferredAudioCodecs,i.g.preferredDecodingAttributes,i.g.preferredTextFormats),!u.variants.some(bb))throw new Ee(2,4,4032);return d.return(BK(i,u))})}function NK(i,u){var d=i.g.restrictions;i=i.i;var v=!1;u=_(u.variants);for(var y=u.next();!y.done;y=u.next()){y=y.value;var w=y.allowedByApplication;y.allowedByApplication=ww(y,d,i),w!=y.allowedByApplication&&(v=!0)}return v}function BK(i,u){var d=NK(i,u);if(u){var v=i.h?i.h.g:null;if(v&&i.h.B){for(var y=new Set,w=_(u.variants),T=w.next();!T.done;T=w.next())T=T.value,T.audio&&y.add(T.audio),T.video&&y.add(T.video);for(y=_(y),w=y.next();!w.done;w=y.next())FK(i,v.keySystem,w.value)}jK(i,u)}return d}function FK(i,u,d){d=_(d.drmInfos);for(var v=d.next();!v.done;v=d.next())if(v=v.value,v.keySystem==u){v=_(v.initData||[]);for(var y=v.next();!y.done;y=v.next())y=y.value,_b(i.h,y.initDataType,y.initData)}}function jK(i,u){i=i.h?i.h.Xe():{};var d=Object.keys(i);d=d.length&&d[0]=="00";var v=!1,y=!1,w=new Set,T=new Set,P=new Set;u=_(u.variants);for(var $=u.next();!$.done;$=u.next())$=$.value,$.audio&&P.add($.audio),$.video&&P.add($.video),$.allowedByApplication?$.allowedByKeySystem&&(v=!0):y=!0;for(P=_(P),u=P.next();!u.done;u=P.next())if(u=u.value,u.keyIds.size)for(u=_(u.keyIds),$=u.next();!$.done;$=u.next()){$=$.value;var j=i[d?"00":$];j?UK.includes(j)&&T.add(j):w.add($)}if(!v)throw i={hasAppRestrictions:y,missingKeys:Array.from(w),restrictedKeyStatuses:Array.from(T)},new Ee(2,4,4012,i)}var UK=["output-restricted","internal-error"];function wb(){}function jv(i,u){i0.set(i,u)}function ZSe(){var i={};if($e(),Nd())for(var u=_(i0.keys()),d=u.next();!d.done;d=u.next())i[d.value]=!0;for(u=_(["application/dash+xml","application/x-mpegurl","application/vnd.apple.mpegurl","application/vnd.ms-sstr+xml"]),d=u.next();!d.done;d=u.next())d=d.value,i[d]=Nd()?i0.has(d):Vv().canPlayType(d)!="";return i}function VK(i,u){if(u){var d=i0.get(u.toLowerCase());if(d)return d}throw new Ee(2,4,4e3,i,u)}He("shaka.media.ManifestParser",wb),wb.unregisterParserByMime=function(i){i0.delete(i)},wb.registerParserByMime=jv,wb.registerParserByExtension=function(){jt("ManifestParser.registerParserByExtension","Please use an ManifestParser with registerParserByMime function.")},wb.AccessibilityPurpose={zm:"visually impaired",Kl:"hard of hearing",gm:"spoken subtitles"};var i0=new Map;He("shaka.config.CodecSwitchingStrategy",{RELOAD:"reload",SMOOTH:"smooth"});function Fw(i,u){var d=null,v=null,y=null,w=null,T=i.U();return u&1&&(y=i.Dd()),u&2&&(w=i.U()),u&8&&(d=i.U()),u&16&&(v=i.U()),{trackId:T,Td:d,Ud:v,kj:y,Li:w}}function jw(i,u){return u==1?(u=i.U(),i=i.U(),{baseMediaDecodeTime:u*4294967296+i}):{baseMediaDecodeTime:i.U()}}function Uw(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 Vw(i,u,d){var v=i.U(),y=[],w=null;d&1&&(w=i.Zg()),d&4&&i.skip(4);for(var T=0;T0)var y=kr("avcC",i.Ra);else{y=kr;for(var w=7,T=[],P=[],$=0,j=0,G=0,q=0;q0&&($=T[0][1],G=T[0][2],j=T[0][3]),w=new Uint8Array(w),q=0,w[q++]=1,w[q++]=$,w[q++]=G,w[q++]=j,w[q++]=255,w[q++]=224|T.length,$=0;$>8,w[q++]=T[$].length&255,w.set(T[$],q),q+=T[$].length;for(w[q++]=P.length,T=0;T>8,w[q++]=P[T].length&255,w.set(P[T],q),q+=P[T].length;y=y("avcC",w)}d=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(A(Fi(d,2)),A(Fi(v,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])),v="avc1",P=WK(i),T=new Uint8Array([]),i.encrypted&&(T=Uv(i.stream,i.codecs),v="encv"),v=kr(v,d,y,P,T)}else i.codecs.includes("hvc1")&&(v=i.stream.width||0,y=i.stream.height||0,d=new Uint8Array([]),i.Ra.byteLength>0&&(d=kr("hvcC",i.Ra)),v=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(A(Fi(v,2)),A(Fi(y,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])),y="hvc1",P=WK(i),T=new Uint8Array([]),i.encrypted&&(T=Uv(i.stream,i.codecs),y="encv"),v=kr(y,v,d,P,T));break;case"audio":d=="mp3"?i=kr(".mp3",xb(i)):d=="ac-3"?(d=kr("dac3",i.Ga),v="ac-3",y=new Uint8Array([]),i.encrypted&&(y=Uv(i.stream,i.codecs),v="enca"),i=kr(v,xb(i),d,y)):d=="ec-3"?(d=kr("dec3",i.Ga),v="ec-3",y=new Uint8Array([]),i.encrypted&&(y=Uv(i.stream,i.codecs),v="enca"),i=kr(v,xb(i),d,y)):d=="opus"?(d=kr("dOps",i.Ga),v="Opus",y=new Uint8Array([]),i.encrypted&&(y=Uv(i.stream,i.codecs),v="enca"),i=kr(v,xb(i),d,y)):(i.Ga.byteLength>0?d=kr("esds",i.Ga):(d=kr,v=i.id+1,y=i.stream.channelsCount||2,T=i.stream.audioSamplingRate||44100,$=fi("audio",i.codecs.split(",")),j={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},P=j[T],($==="mp4a.40.5"||$==="mp4a.40.29")&&(P=j[T*2]),T=parseInt($.split(".").pop(),10),v=new Uint8Array([0,0,0,0,3,25].concat(A(Fi(v,2)),[0,4,17,64,21,0,0,0,0,0,0,0,0,0,0,0,5,2,T<<3|P>>>1,P<<7|y<<3,6,1,2])),d=d("esds",v)),v="mp4a",y=new Uint8Array([]),i.encrypted&&(y=Uv(i.stream,i.codecs),v="enca"),i=kr(v,xb(i),d,y)),v=i}return i=kr("stsd",l2e.value(),v),u("stbl",i,kr("stts",n2e.value()),kr("stsc",r2e.value()),kr("stsz",o2e.value()),kr("stco",i2e.value()))}function WK(i){if(!i.Za&&!i.$a)return new Uint8Array([]);var u=i.$a;return i=new Uint8Array([].concat(A(Fi(i.Za,4)),A(Fi(u,4)))),kr("pasp",i)}function xb(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(A(Fi(i.stream.audioSamplingRate||44100,2)),[0,0]))}function Uv(i,u){var d=kr;u=new Uint8Array([].concat(A(Fi(KK(u.split(".")[0]),4)))),u=kr("frma",u);var v="cenc",y=i.drmInfos[0];y&&y.encryptionScheme&&(v=y.encryptionScheme),v=new Uint8Array([0,0,0,0].concat(A(Fi(KK(v),4)),[0,1,0,0])),v=kr("schm",v),y=kr;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 T=i.next();!T.done;T=i.next())if((T=T.value)&&T.keyIds&&T.keyIds.size){T=_(T.keyIds);for(var P=T.next();!P.done;P=T.next())w=GK(P.value)}return i=new Uint8Array([0,0,0,0,0,0,1,8]),w=kr("tenc",i,w),d("sinf",u,v,y("schi",w))}function Eb(i){var u=[];i=_(i.g);for(var d=i.next();!d.done;d=i.next()){d=d.value;var v=u.push,y=v.apply,w=kr,T=new Uint8Array([0,0,0,0].concat(A(Fi(d.data?d.data.sequenceNumber:0,4))));T=kr("mfhd",T);var P,$=d.data?d.data.zb:[],j=new Uint8Array(4+$.length);for(P=0;P<$.length;P++){var G=$[P].flags;j[P+4]=G.hb<<4|G.mb<<2|G.jb}$=kr("sdtp",j);var q=$.length+32+20+8+16+8+8;j=kr,P=new Uint8Array([0,0,0,58].concat(A(Fi(d.id+1,4)),[0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0])),P=kr("tfhd",P),G=d.data?d.data.baseMediaDecodeTime:0;var ie=Math.floor(G%(np+1));G=new Uint8Array([1,0,0,0].concat(A(Fi(Math.floor(G/(np+1)),4)),A(Fi(ie,4)))),G=kr("tfdt",G);var ue=q;q=d.data?d.data.zb:[],ie=q.length;var he=12+16*ie,me=new Uint8Array(he);for(ue+=8+he,me.set([d.type==="video"?1:0,0,15,1].concat(A(Fi(ie,4)),A(Fi(ue,4))),0),ue=0;ue=0;u--)d.push(i>>8*u&255);return d}function GK(i){for(var u=new Uint8Array(i.length/2),d=0;d=0;y--)v+=u[y].byteLength;for(y=new Uint8Array(v),y[0]=v>>24&255,y[1]=v>>16&255,y[2]=v>>8&255,y[3]=v&255,y.set(d,4),d=0,v=8;d=0;G--)j.push(2>>8*G&255);for(i.set(new Uint8Array(j),P),i.set($,P+4),P=_(T),$=P.next();!$.done;$=P.next())$=$.value,zw(i,$.start,$.size+4)}}return i}function p2e(i,u,d,v,y,w){var T=Uv(i,v.name),P=u.subarray(v.start,v.start+v.size);for(i=new Uint8Array(v.size+T.byteLength),i.set(P,0),et(i).setUint32(4,w),i.set(T,v.size),zw(i,0,i.byteLength),w=new Uint8Array(u.byteLength+i.byteLength),v=$e().df()?v.start:v.start+v.size,T=u.subarray(v),w.set(u.subarray(0,v)),w.set(i,v),w.set(T,v+i.byteLength),u=_(y),y=u.next();!y.done;y=u.next())y=y.value,zw(w,y.start,y.size+i.byteLength);return i=et(w,d.start),d=tp(d),u=i.getUint32(d),i.setUint32(d,u+1),w}function zw(i,u,d){i=et(i,u),u=i.getUint32(0),u!=0&&(u==1?(i.setUint32(8,d>>32),i.setUint32(12,d&4294967295)):i.setUint32(0,d))}function v2e(i){function u(y){v.push({start:y.start,size:y.size}),rr(y)}var d=Le(i),v=[];return new oi().box("moov",u).box("trak",u).box("mdia",u).box("minf",u).box("stbl",u).box("stsd",function(y){v.push({start:y.start,size:y.size});for(var w=et(d,y.start),T=0;T0)return u}if(i.g.length>0&&i.m)for(i=_(i.g),i=i.next();!i.done;i=i.next()){QP(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=ZK},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),d=u.next();!d.done;d=u.next())d=d.value,d.startTime+=i,d.endTime+=i,d.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 XK(i,u){i.ba=u,i=_(i.g);for(var d=i.next();!d.done;d=i.next())XK(d.value,u)}He("shaka.media.SegmentReference",$n),$n.prototype.getSegmentData=$n.prototype.Yb,$n.prototype.setSegmentData=$n.prototype.pe,$n.prototype.syncAgainst=$n.prototype.yh,$n.prototype.offset=$n.prototype.offset,$n.prototype.getThumbnailSprite=$n.prototype.Xj,$n.prototype.setThumbnailSprite=$n.prototype.If,$n.prototype.hasByterangeOptimization=$n.prototype.gk,$n.prototype.markAsByterangeOptimization=$n.prototype.oi,$n.prototype.isLastPartial=$n.prototype.lk,$n.prototype.markAsLastPartial=$n.prototype.pi,$n.prototype.isPartial=$n.prototype.nk,$n.prototype.markAsPartial=$n.prototype.ri,$n.prototype.isIndependent=$n.prototype.kk,$n.prototype.markAsNonIndependent=$n.prototype.wd,$n.prototype.isPreload=$n.prototype.isPreload,$n.prototype.markAsPreload=$n.prototype.Qg,$n.prototype.markAsUnavailable=$n.prototype.xk,$n.prototype.getStatus=$n.prototype.Jc,$n.prototype.getTileDuration=$n.prototype.Zj,$n.prototype.getTilesLayout=$n.prototype.$j,$n.prototype.getEndByte=$n.prototype.Gc,$n.prototype.getStartByte=$n.prototype.Ic,$n.prototype.getEndTime=$n.prototype.Ej,$n.prototype.getStartTime=$n.prototype.getStartTime,$n.prototype.getUris=$n.prototype.P;var Bf=0,ZK=1;$n.Status={ql:Bf,xm:ZK,Tl:2};function Ab(i){return i.length==1&&i.end(0)-i.start(0)<1e-4}function QK(i){return!i||Ab(i)?null:i.length==1&&i.start(0)<0?0:i.length?i.start(0):null}function Hw(i){return!i||Ab(i)?null:i.length?i.end(i.length-1):null}function JP(i,u){return!i||!i.length||Ab(i)||u>i.end(i.length-1)?!1:u>=i.start(0)}function JK(i,u){if(!i||!i.length||Ab(i))return 0;var d=0;i=_(Ff(i));for(var v=i.next();!v.done;v=i.next()){var y=v.value;v=y.start,y=y.end,y>u&&(d+=y-Math.max(v,u))}return d}function m2e(i,u,d){return!i||!i.length||Ab(i)?null:(i=Ff(i).findIndex(function(v,y,w){return v.start>u&&(y==0||w[y-1].end-u<=d)}),i>=0?i:null)}function Ff(i){if(!i)return[];for(var u=[],d=0;d=0;--v)i.removeChild(d[v]),u=!0;return i.src&&(i.removeAttribute("src"),u=!0),u}function Ib(i){for(;i.firstChild;)i.removeChild(i.firstChild)}function Vv(){return a0||(t5||(t5=new dr(function(){a0=null})),(a0=document.getElementsByTagName("video")[0]||document.getElementsByTagName("audio")[0])||(a0=document.createElement("video")),t5.ia(1),a0)}function g2e(i,u){var d,v,y,w,T;return Q(function(P){if(P.g==1)return"fonts"in document&&"FontFace"in o?L(P,document.fonts.ready,2):P.return();if(!("entries"in document.fonts))return P.return();for(d=function($){$=$.entries();for(var j=[],G=$.next();G.done===!1;)j.push(G.value),G=$.next();return j},v=_(d(document.fonts)),y=v.next();!y.done;y=v.next())if(w=y.value,w.family===i&&w.display==="swap")return P.return();T=new FontFace(i,"url("+u+")",{display:"swap"}),document.fonts.add(T),B(P)})}He("shaka.util.Dom",e5),e5.removeAllChildren=Ib,e5.clearSourceFromVideo=Ww;var t5=null,a0=null;/* @license Shaka Player Copyright 2022 Google LLC SPDX-License-Identifier: Apache-2.0 */function n5(){}function tq(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 nq(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 r5(i,u){var d=(i[u]&127)<<21;return d|=(i[u+1]&127)<<14,d|=(i[u+2]&127)<<7,d|=i[u+3]&127}function y2e(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 d=i.data.subarray(1).indexOf(0);if(d===-1)return null;var v=rt(Le(i.data,1,d)),y=i.data[2+d],w=i.data.subarray(3+d).indexOf(0);if(w===-1)return null;var T=rt(Le(i.data,3+d,w)),P;return v==="-->"?P=rt(Le(i.data,4+d+w)):P=we(i.data.subarray(4+d+w)),u.mimeType=v,u.pictureType=y,u.description=T,u.data=P,u}return i.type==="TXXX"?i.size<2||i.data[0]!==3||(v=i.data.subarray(1).indexOf(0),v===-1)?null:(d=rt(Le(i.data,1,v)),i=rt(Le(i.data,2+v)).replace(/\0*$/,""),u.description=d,u.data=i,u):i.type==="WXXX"?i.size<2||i.data[0]!==3||(v=i.data.subarray(1).indexOf(0),v===-1)?null:(d=rt(Le(i.data,1,v)),i=rt(Le(i.data,2+v)).replace(/\0*$/,""),u.description=d,u.data=i,u):i.type==="PRIV"?i.size<2||(d=i.data.indexOf(0),d===-1)?null:(d=rt(Le(i.data,0,d)),u.description=d,d=="com.apple.streaming.transportStreamTimestamp"?(d=i.data.subarray(d.length+1),i=d[3]&1,d=(d[4]<<23)+(d[5]<<15)+(d[6]<<7)+d[7],d/=45,i&&(d+=4772185884e-2),u.data=d):(i=we(i.data.subarray(d.length+1)),u.data=i),u):i.type[0]==="T"?i.size<2||i.data[0]!==3?null:(i=rt(i.data.subarray(1)).replace(/\0*$/,""),u.data=i,u):i.type[0]==="W"?(i=rt(i.data).replace(/\0*$/,""),u.data=i,u):i.data?(u.data=we(i.data),u):null}function zv(i){for(var u=0,d=[];tq(i,u);){var v=r5(i,u+6);for(i[u+5]>>6&1&&(u+=10),u+=10,v=u+v;u+10>6&1&&(v+=10),v+=10,v+=r5(i,u+6),nq(i,u+10)&&(v+=10),u+=v;return v>0?i.subarray(d,d+v):new Uint8Array([])}He("shaka.util.Id3Utils",n5),n5.getID3Data=l0,n5.getID3Frames=zv;function rq(i){return new Date(Date.UTC(1900,0,1,0,0,0,0)+i).getTime()}function jf(i,u){if(this.j=i,u!==void 0&&u){u=new Uint8Array(i.byteLength);for(var d=0,v=0;v=2&&i[v]==3&&i[v-1]==0&&i[v-2]==0||(u[d]=i[v],d++);this.j=Le(u,0,d)}this.i=this.j.byteLength,this.g=this.h=0}function i5(i){var u=i.j.byteLength-i.i,d=new Uint8Array(4),v=Math.min(4,i.i);v!==0&&(d.set(i.j.subarray(u,u+v)),i.h=new Li(d,0).U(),i.g=v*8,i.i-=v)}function Tl(i,u){if(i.g<=u){u-=i.g;var d=Math.floor(u/8);u-=d*8,i.g-=d,i5(i)}i.h<<=u,i.g-=u}function yr(i,u){var d=Math.min(i.g,u),v=i.h>>>32-d;return i.g-=d,i.g>0?i.h<<=d:i.i>0&&i5(i),d=u-d,d>0?v<>>u)!==0)return i.h<<=u,i.g-=u,u;return i5(i),u+o5(i)}function Ns(i){Tl(i,1+o5(i))}function pn(i){var u=o5(i);return yr(i,u+1)-1}function u0(i){return i=pn(i),1&i?1+i>>>1:-1*(i>>>1)}function Ln(i){return yr(i,1)===1}function Wr(i){return yr(i,8)}function Gw(i,u){for(var d=8,v=8,y=0;y>4>1){var P=y+5+i[y+4];if(P==y+188)continue}else P=y+4;switch(T){case 0:w&&(P+=i[P]+1),this.I=(i[P+10]&31)<<8|i[P+11];break;case 17:case 8191:break;case this.I:w&&(P+=i[P]+1),w=i,T={audio:-1,video:-1,bf:-1,audioCodec:"",videoCodec:""};var $=P+3+((w[P+1]&15)<<8|w[P+2])-4;for(P+=12+((w[P+10]&15)<<8|w[P+11]);P<$;){var j=(w[P+1]&31)<<8|w[P+2],G=(w[P+3]&15)<<8|w[P+4];switch(w[P]){case 6:if(G>0)for(var q=P+5,ie=G;ie>2;){var ue=w[q+1]+2;switch(w[q]){case 5:var he=hn(w.subarray(q+2,q+ue));T.audio==-1&&he==="Opus"?(T.audio=j,T.audioCodec="opus"):T.video==-1&&he==="AV01"&&(T.video=j,T.videoCodec="av1");break;case 106:T.audio==-1&&(T.audio=j,T.audioCodec="ac3");break;case 122:T.audio==-1&&(T.audio=j,T.audioCodec="ec3");break;case 124:T.audio==-1&&(T.audio=j,T.audioCodec="aac");break;case 127:T.audioCodec=="opus"&&(he=null,w[q+2]===128&&(he=w[q+3]),he!=null&&(this.H={channelCount:(he&15)===0?2:he&15,nj:he,sampleRate:48e3}))}q+=ue,ie-=ue}break;case 15:T.audio==-1&&(T.audio=j,T.audioCodec="aac");break;case 17:T.audio==-1&&(T.audio=j,T.audioCodec="aac-loas");break;case 21:T.bf==-1&&(T.bf=j);break;case 27:T.video==-1&&(T.video=j,T.videoCodec="avc");break;case 3:case 4:T.audio==-1&&(T.audio=j,T.audioCodec="mp3");break;case 36:T.video==-1&&(T.video=j,T.videoCodec="hvc");break;case 129:T.audio==-1&&(T.audio=j,T.audioCodec="ac3");break;case 132:case 135:T.audio==-1&&(T.audio=j,T.audioCodec="ec3")}P+=G+5}w=T,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),v&&!this.J&&(v=!1,y=u-188),this.J=!0;break;case this.K:P=i.subarray(P,y+188),w?this.j.push([P]):this.j.length&&this.j[this.j.length-1]&&this.j[this.j.length-1].push(P);break;case this.F:P=i.subarray(P,y+188),w?this.i.push([P]):this.i.length&&this.i[this.i.length-1]&&this.i[this.i.length-1].push(P);break;case this.G:P=i.subarray(P,y+188),w?this.l.push([P]):this.l.length&&this.l[this.l.length-1]&&this.l[this.l.length-1].push(P);break;default:v=!0}}return this};function s5(i,u){if((u[0]<<16|u[1]<<8|u[2])!==1)return null;var d={data:new Uint8Array(0),packetLength:u[4]<<8|u[5],pts:null,dts:null,nalus:[]};if(d.packetLength&&d.packetLength>u.byteLength-6)return null;var v=u[7];if(v&192){var y=(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=y),d.pts=oq(y,i.u),i.u=d.pts,d.dts=d.pts,v&64&&(v=(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=v),d.dts=d.pts!=y?oq(v,i.o):v),i.o=d.dts}return i=u[8]+9,u.byteLength<=i?null:(d.data=u.subarray(i),d)}l.Ek=function(i){return jt("TsParser.parseAvcNalus","Please use parseNalus function instead."),this.Wg(i,{ge:null,state:null})},l.Wg=function(i,u){var d=i.pts?i.pts/9e4:null;i=i.data;var v=i.byteLength,y=1;this.m=="hvc"&&(y=2);var w=u.state||0,T=w,P=0,$=[],j=-1,G=0;for(w==-1&&(j=0,G=this.m=="hvc"?i[0]>>1&63:i[0]&31,w=0,P=1);P=0?$.push({data:i.subarray(j+y,q),fullData:i.subarray(j,q),type:G,time:d,state:null}):(w=$.length?$[$.length-1]:u.ge)&&(T&&P<=4-T&&w.state&&(w.data=w.data.subarray(0,w.data.byteLength-T),w.fullData=w.fullData.subarray(0,w.fullData.byteLength-T)),q>0&&(q=i.subarray(0,q),w.data=nr(w.data,q),w.fullData=nr(w.fullData,q),w.state=0)),P>1&63:i[P]&31,j=P,w=0):w=-1):w=0:w=3:w=q?0:1}return j>=0&&w>=0&&$.push({data:i.subarray(j+y,v),fullData:i.subarray(j,v),type:G,time:d,state:w}),!$.length&&u.ge&&(d=$.length?$[$.length-1]:u.ge)&&(d.data=nr(d.data,i),d.fullData=nr(d.fullData,i)),u.state=w,$},l.getMetadata=function(){for(var i=[],u=_(this.l),d=u.next();!d.done;d=u.next())d=nr.apply(Zn,A(d.value)),(d=s5(this,d))&&i.push({cueTime:d.pts?d.pts/9e4:null,data:d.data,frames:zv(d.data),dts:d.dts,pts:d.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 d=nr.apply(Zn,A(u.value)),v=s5(this,d);u=this.h.length?this.h[this.h.length-1]:null,v&&v.pts!=null&&v.dts!=null&&(!u||u.pts!=v.pts&&u.dts!=v.dts)?this.h.push(v):this.h.length&&(d=v?v.data:d)&&(u=this.h.pop(),u.data=nr(u.data,d),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),d=u.next();!d.done;d=u.next()){var v=nr.apply(Zn,A(d.value)),y=s5(this,v);d=this.g.length?this.g[this.g.length-1]:null,y&&y.pts!=null&&y.dts!=null&&(!d||d.pts!=y.pts&&d.dts!=y.dts)?this.g.push(y):this.g.length&&(v=y?y.data:v)&&(d=this.g.pop(),d.data=nr(d.data,v),this.g.push(d))}if(i){for(u={ge:null,state:null},d=[],v=_(this.g),y=v.next();!y.done;y=v.next())y=y.value,y.nalus=this.Wg(y,u),y.nalus.length&&(d.push(y),u.ge=y.nalus[y.nalus.length-1]);this.g=d}}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()),d=u.next();!d.done;d=u.next())i.push.apply(i,A(d.value.nalus));return i},l.dk=function(){jt("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"?S2e(this):_2e(this)};function iq(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 _2e(i){var u={height:null,width:null,codec:null,frameRate:null},d=i.$e();if(!d.length||(d=d.find(function(ue){return ue.type==7}),!d))return u;d=new jf(d.data);var v=Wr(d),y=Wr(d),w=Wr(d);if(Ns(d),k2e.includes(v)){var T=pn(d);if(T===3&&Tl(d,1),Ns(d),Ns(d),Tl(d,1),Ln(d)){T=T!==3?8:12;for(var P=0;P0)for(Me=y;Me<8;Me++)yr(v,2);for(Me=0;Me>Fe&1)<<31-Fe;return Ze>>>0})($),T=T==1?"H":"L",w="hvc1"+("."+["","A","B","C"][w]+P),w+="."+v.toString(16).toUpperCase(),w+="."+T+he,ue&&(w+="."+ue.toString(16).toUpperCase()),ie&&(w+="."+ie.toString(16).toUpperCase()),q&&(w+="."+q.toString(16).toUpperCase()),G&&(w+="."+G.toString(16).toUpperCase()),j&&(w+="."+j.toString(16).toUpperCase()),d&&(w+="."+d.toString(16).toUpperCase()),u.codec=w,u.frameRate=iq(i),u}function oq(i,u){var d=1;for(i>u&&(d=-1);Math.abs(u-i)>4294967296;)i+=d*8589934592;return i}function c0(i){return!(a5(i)<0)}function a5(i){for(var u=Math.min(1e3,i.length-564),d=0;d0||i.B.dispatchAllEmsgBoxes;G&&j.S("emsg",function(he){var me=y.emsgSchemeIdUris;if(he.version===0)var ge=he.reader.Yc(),Me=he.reader.Yc(),Ie=he.reader.U(),Ve=he.reader.U(),tt=he.reader.U(),gt=he.reader.U(),Ze=v.startTime+Ve/Ie;else Ie=he.reader.U(),Ze=he.reader.Dd()/Ie+v.timestampOffset,Ve=Ze-v.startTime,tt=he.reader.U(),gt=he.reader.U(),ge=he.reader.Yc(),Me=he.reader.Yc();he=he.reader.Tb(he.reader.getLength()-he.reader.Oa(),!0),(me&&me.includes(ge)||i.B.dispatchAllEmsgBoxes)&&(ge=="urn:mpeg:dash:event:2012"?i.O.Dk():(me=Ze+tt/Ie,i.O.Bk({startTime:Ze,endTime:me,schemeIdUri:ge,value:Me,timescale:Ie,presentationTimeDelta:Ve,eventDuration:tt,id:gt,messageData:he}),(ge=="https://aomedia.org/emsg/ID3"||ge=="https://developer.apple.com/streaming/emsg-id3")&&(Ie=zv(he),Ie.length&&i.O.onMetadata([{cueTime:Ze,data:he,frames:Ie,dts:Ze,pts:Ze}],0,me))))});var q=v.ba.timescale;u=q&&!isNaN(q);var ie=0,ue=!1;u&&j.S("prft",function(he){var me=he.reader,ge=he.version;me.U(),he=me.U();var Me=me.U();he=he*1e3+Me/4294967296*1e3,ge===0?me=me.U():(ge=me.U(),me=me.U(),me=ge*4294967296+me),he=rq(he),me=new Map().set("detail",{wallClockTime:he,programStartDate:new Date(he-me/q*1e3)}),me=new Sn("prft",me),i.O.onEvent(me)}).box("moof",rr).box("traf",rr).S("tfdt",function(he){ue||(ie=jw(he.reader,he.version).baseMediaDecodeTime/q,ue=!0,G||he.parser.stop())}),(G||u)&&j.parse(d,!1,T),ue&&v.timestampOffset==0&&(P=ie)}else w.includes("/mp4")||w.includes("/webm")||!c0(j)||(i.$.has(u)||i.$.set(u,new wi),$=i.$.get(u),$.clearData(),$.Gf(v.i),$.parse(j),j=$.getStartTime(u),j!=null&&(P=j),$=$.getMetadata());return{timestamp:P,metadata:$}}function Yw(i,u,d,v,y,w,T,P,$,j,G){T=T===void 0?!1:T,P=P===void 0?!1:P,$=$===void 0?!1:$,j=j===void 0?!1:j;var q,ie,ue,he,me,ge,Me,Ie,Ve,tt,gt,Ze,Fe,lt,pt,ft,bt,St,$t,Nt;return Q(function(Et){switch(Et.g){case 1:if(q=Vr,u!=q.Na){Et.A(2);break}if(i.X!="HLS"){Et.A(3);break}return L(Et,i.Ta,4);case 4:ie=Et.h,i.h.u=ie;case 3:return L(Et,oSe(i.h,d,v?v.startTime:null,v?v.endTime:null,v?v.P()[0]:null),5);case 5:return Et.return();case 2:if(j||!i.m){Et.A(6);break}return L(Et,Yw(i,q.ka,d,v,y,w,T,P,$,!0),7);case 7:return L(Et,Yw(i,q.Aa,d,v,y,w,T,P,$,!0),8);case 8:return Et.return();case 6:if(!i.l.has(u))return Et.return();if(ue=i.l.get(u).timestampOffset,he=i.F.get(u),i.j.has(u)&&(he=i.j.get(u).getOriginalMimeType()),v&&(me=T2e(i,u,d,v,y,he,$),ge=me.timestamp,Me=me.metadata,ge!=null&&(i.V==null&&u==q.Aa&&(i.V=ge,i.wa=v.startTime,i.T!=null&&(Ie=0,i.wa==i.qa&&(Ie=i.V-i.T),i.ma.resolve(Ie))),i.T==null&&u==q.ka&&(i.T=ge,i.qa=v.startTime,i.V!=null&&(Ve=0,i.wa==i.qa&&(Ve=i.V-i.T),i.ma.resolve(Ve))),tt=ge,gt=Mf,!i.I&>.includes(i.F.get(u))&&(tt=0),Ze=v.startTime-tt,Fe=Math.abs(ue-Ze),(Fe>=.001||T||P)&&(!$||Ze>0||!ue)&&(ue=Ze,i.ib&&(qo(i,u,function(){return f0(i,u)},null),qo(i,u,function(){return h0(i,u,ue)},null))),(u==q.Aa||!i.l.has(q.Aa))&&i.Ta.resolve(ue)),Me.length)&&i.O.onMetadata(Me,ue,v?v.endTime:null),w&&u==q.Aa&&(i.h||qw(i,"application/cea-608",i.I,!1),i.J||(lt=he.split(";",1)[0],i.J=new Rs(lt)),v?(pt=i.J.xf(d),pt.length&&aSe(i.h,pt,ue)):i.J.init(d,P,G)),!i.j.has(u)){Et.A(9);break}return L(Et,i.j.get(u).transmux(d,y,v,i.i.duration,u),10);case 10:ft=Et.h,ArrayBuffer.isView(ft)?d=ft:(bt=ft,bt.init!=null&&(St=bt.init,qo(i,u,function(){i.H&&ni(i.H,St,ue,y),i.l.get(u).appendBuffer(St)},v?v.P()[0]:null)),d=bt.data);case 9:if(d=M2e(i,y,d,v,u),!v||!i.I||u==q.Na){Et.A(11);break}if(!T&&!P){Et.A(11);break}if($t=v.startTime,i.X!="HLS"||i.m||u!=q.ka||!i.l.has(q.Aa)){Et.A(13);break}return L(Et,i.ma,14);case 14:Nt=Et.h,Math.abs(Nt)>.15&&($t-=Nt);case 13:qo(i,u,function(){return f0(i,u)},null),qo(i,u,function(){return h0(i,u,$t)},null);case 11:return L(Et,qo(i,u,function(){var Rt=d;i.H&&ni(i.H,Rt,ue,y),i.l.get(u).appendBuffer(Rt)},v?v.P()[0]:null),15);case 15:B(Et)}})}function A2e(i,u){var d=Gv(i,"video")||0;GG(i.h,u,d)}function I2e(i){i.h&&GG(i.h,"",0)}l.remove=function(i,u,d,v){var y=this,w,T;return Q(function(P){return P.g==1?(w=Vr,i==w.Aa&&y.J&&(y.J.remove(v),T=y.h.g||0,y.h.remove(T,d,!0)),i==w.Na?L(P,y.h.remove(u,d),0):d>u?L(P,qo(y,i,function(){return Xw(y,i,u,d)},null),5):P.A(0)):y.m?L(P,qo(y,w.ka,function(){return Xw(y,w.ka,u,d)},null),0):P.A(0)})};function lq(i,u){var d;return Q(function(v){return v.g==1?(d=Vr,u==d.Na?i.h?L(v,i.h.remove(0,1/0),0):v.return():u===d.Aa&&i.J&&i.h?L(v,i.h.remove(0,1/0,!0),4):v.A(4)):v.g!=6?L(v,qo(i,u,function(){return Xw(i,u,0,i.i.duration)},null),6):i.m?L(v,qo(i,d.ka,function(){return Xw(i,d.ka,0,i.i.duration)},null),0):v.A(0)})}l.flush=function(i){var u=this,d;return Q(function(v){return v.g==1?(d=Vr,i==d.Na?v.return():L(v,qo(u,i,function(){u.g.currentTime-=.001,rp(u,i)},null),2)):u.m?L(v,qo(u,d.ka,function(){var y=d.ka;u.g.currentTime-=.001,rp(u,y)},null),0):v.A(0)})};function uq(i,u,d,v,y,w,T,P,$){var j,G,q;return Q(function(ie){return ie.g==1?(j=Vr,u==j.Na?(w||(i.h.u=d),sSe(i.h,v,y),ie.return()):(G=[],L(ie,$2e(i,u,T,P,$),2))):(q=ie.h,q||(G.push(qo(i,u,function(){return f0(i,u)},null)),i.m&&G.push(qo(i,j.ka,function(){return f0(i,j.ka)},null))),w||(G.push(qo(i,u,function(){return h0(i,u,d)},null)),i.m&&G.push(qo(i,j.ka,function(){return h0(i,j.ka,d)},null))),(v!=0||y!=1/0)&&(G.push(qo(i,u,function(){return cq(i,u,v,y)},null)),i.m&&G.push(qo(i,j.ka,function(){return cq(i,j.ka,v,y)},null))),G.length?L(ie,Promise.all(G),0):ie.A(0))})}function L2e(i,u,d){var v,y;return Q(function(w){return w.g==1?(v=Vr,u==v.Na||(u==v.Aa&&(i.Ta=new ii),!i.I||(y=Gv(i,u))&&Math.abs(y-d)<.15)?w.return():(qo(i,u,function(){return f0(i,u)},null),i.m&&qo(i,v.ka,function(){return f0(i,v.ka)},null),L(w,qo(i,u,function(){return h0(i,u,d)},null),2))):i.m?L(w,qo(i,v.ka,function(){return h0(i,v.ka,d)},null),0):w.A(0)})}l.endOfStream=function(i){var u=this;return Q(function(d){return L(d,Lb(u,function(){Hv(u)||Wv(u)||(i?u.i.endOfStream(i):u.i.endOfStream())}),0)})},l.Ab=function(i){var u=this;return Q(function(d){return L(d,Lb(u,function(){if(u.B.durationReductionEmitsUpdateEnd&&i=u.o&&v&&!u.i)&&(u.j&&u.j(u.g,y),u.i=!0,u.g=d.g.currentTime),u=!v}u&&(u=i.g.currentTime,d=i.g.buffered,v=m2e(d,u,i.h.gapDetectionThreshold),v==null||v==0&&!i.B||(y=d.start(v),(w=i.h.gapPadding)&&(y=Math.ceil((y+w)*100)/100),y>=i.F.Gb()||y-u<.001||(v!=0&&d.end(v-1),F2e(i,y),u==i.l&&(i.l=y),i.G++,i.u(new Sn("gapjumped")))))}}}function F2e(i,u){i.C=!0,i.j.Ba(i.g,"seeked",function(){i.C=!1}),i.g.currentTime=u}function j2e(i){if(!i.h.stallEnabled)return null;var u=i.h.stallThreshold,d=i.h.stallSkip;return new mq(new gq(i.g),u,function(){var v;return Q(function(y){if(y.g==1)return v=Ff(i.g.buffered),v.length?d?(i.g.currentTime+=d,y.A(2)):L(y,i.g.play(),3):y.return();if(y.g!=2){if(!i.g)return y.return();i.g.pause(),i.g.play()}i.H++,i.u(new Sn("stalldetected")),B(y)})})}function mq(i,u,d){this.h=i,this.m=yq(i),this.g=i.g.currentTime,this.l=Date.now()/1e3,this.i=!1,this.o=u,this.j=d}mq.prototype.release=function(){this.h&&this.h.release(),this.j=this.h=null};function gq(i){var u=this;this.g=i,this.h=new Ge,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 yq(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=_(Ff(i.g.buffered));for(var d=i.next();!d.done;d=i.next())if(d=d.value,!(ud.end-.5)){u=!0;break e}u=!1}return u}gq.prototype.release=function(){this.h&&this.h.release(),this.h=null};function p0(i,u,d,v){u==HTMLMediaElement.HAVE_NOTHING||i.readyState>=u?v():(u=U2e.value().get(u),d.Ba(i,u,v))}var U2e=new _t(function(){return new Map([[HTMLMediaElement.HAVE_METADATA,"loadedmetadata"],[HTMLMediaElement.HAVE_CURRENT_DATA,"loadeddata"],[HTMLMediaElement.HAVE_FUTURE_DATA,"canplay"],[HTMLMediaElement.HAVE_ENOUGH_DATA,"canplaythrough"]])});function bq(i,u,d,v){var y=this;this.g=i,this.m=u,this.u=d,this.l=null,this.j=function(){return y.l==null&&(y.l=v()),y.l},this.o=!1,this.h=new Ge,this.i=new wq(i),p0(this.g,HTMLMediaElement.HAVE_METADATA,this.h,function(){Sq(y,y.j())})}bq.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 m5(i){return i.o?i.g.currentTime:i.j()}function _q(i,u){i.g.readyState>0?Cq(i.i,u):p0(i.g,HTMLMediaElement.HAVE_METADATA,i.h,function(){Sq(i,i.j())})}function Sq(i,u){Math.abs(i.g.currentTime-u)<.001?kq(i):(i.h.Ba(i.g,"seeking",function(){kq(i)}),Cq(i.i,i.g.currentTime&&i.g.currentTime!=0?i.g.currentTime:u))}function kq(i){i.o=!0,i.h.D(i.g,"seeking",function(){return i.m()}),i.u(i.g.currentTime)}function wq(i){var u=this;this.g=i,this.m=10,this.j=this.l=this.i=0,this.h=new dr(function(){u.i<=0||u.g.currentTime!=u.l||u.g.currentTime===u.j?u.h.stop():(u.g.currentTime=u.j,u.i--)})}wq.prototype.release=function(){this.h&&(this.h.stop(),this.h=null),this.g=null};function Cq(i,u){i.l=i.g.currentTime,i.j=u,i.i=i.m,i.g.currentTime=u,i.h.Ea(.1)}function xq(i){this.g=i,this.i=!1,this.h=null,this.j=new Ge}l=xq.prototype,l.ready=function(){function i(){if(u.h==null||u.h==0&&u.g.duration!=1/0)u.i=!0;else{var d=u.g.currentTime,v=null;if(typeof u.h=="number")v=u.h;else if(u.h instanceof Date){var y=Eq(u);y!==null&&(v=u.h.getTime()/1e3-y,v=Tq(u,v))}v==null?u.i=!0:(v<0&&(v=Math.max(0,d+v)),d!=v?(u.j.Ba(u.g,"seeking",function(){u.i=!0}),u.g.currentTime=v):u.i=!0)}}var u=this;p0(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-(Eq(this)||0),i=Tq(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=Hw(this.g.buffered);return i!=null&&i>=this.g.duration-1};function Eq(i){return i.g.getStartDate&&(i=i.g.getStartDate().getTime(),!isNaN(i))?i/1e3:null}function Tq(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 Aq(i,u,d,v,y,w){var T=this;this.h=i,this.g=u.presentationTimeline,this.l=d,this.u=y,this.o=null,this.i=new v5(i,u.presentationTimeline,d,w),this.j=new bq(i,function(){e:{var P=T.i;P.m=!0,P.B=!1,P.i&&P.i.Ea(P.h.gapJumpTimerTime),Pb(P);var $=m5(T.j);if(P=Pq(T,$),!Wg()&&Math.abs(P-$)>.001){$=!1;var j=$e().Mi();if(j){var G=Date.now()/1e3;(!T.o||T.o0&&!this.h.paused?Rq(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 Iq(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),Lq(i,Rq(i,u))}l.xi=function(){this.i.wf()},l.ki=function(){if(this.g.W()){var i=this.g.Hc(),u=Hw(this.h.buffered);if(u!=null&&u>=i)return!0}return!1};function Lq(i,u){var d=i.g.getDuration();return u>=d?d-i.l.durationBackoff:u}function Pq(i,u){var d=i.l.rebufferingGoal,v=i.l.safeSeekOffset,y=i.g.Xb(),w=i.g.Gb(),T=i.g.getDuration();w-y<3&&(y=w-3);var P=i.g.Xd(d),$=i.g.Xd(v);return d=i.g.Xd(d+v),u>=T?Lq(i,u):u>w?w-i.l.safeSeekEndOffset:u=P||JP(i.h.buffered,u)?u:d}function Rq(i,u){var d=i.g.Xb();return ui?i:u)}function Lr(i){this.g=i,this.m=null,this.i=0,this.o=!1}l=Lr.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),d=u.next();!d.done;d=u.next())i(d.value)};function Yc(i){return i.g[0]||null}l.find=function(i){for(var u=this.g.length-1,d=u;d>=0;--d){var v=this.g[d],y=d=v.startTime&&i=this.g.length?null:this.g[i])},l.offset=function(i){if(!this.o)for(var u=_(this.g),d=u.next();!d.done;d=u.next())d.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(d){return Math.round(d.startTime*1e3)/1e3u&&(d.g.length==0||v.endTime>d.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(d){return d.endTime>i}),this.i+=u-this.g.length}},l.pd=function(i,u,d){if(d=d===void 0?!1:d,!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(),d||this.i++;this.g.length!=0&&(i=this.g[this.g.length-1],u=new $n(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 d=this;this.o||(this.m&&this.m.stop(),this.m=new dr(function(){var v=u();v?d.g.push.apply(d.g,A(v)):(d.m.stop(),d.m=null)}),this.m.Ea(i))},Lr.prototype[Symbol.iterator]=function(){return this.Vb(0)},Lr.prototype.Vb=function(i,u,d){u=u===void 0?!1:u,d=d===void 0?!1:d;var v=this.find(i);if(v==null)return null;var y=this.get(v);d?v++:v--;var w=-1;if(y&&y.g.length>0)for(var T=y.g.length-1;T>=0;--T){var P=y.g[T];if(i>=P.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]},He("shaka.media.SegmentIterator",Mu),Mu.prototype.resetToLastIndependent=Mu.prototype.eh,Mu.prototype.next=Mu.prototype.next,Mu.prototype.current=Mu.prototype.current,Mu.prototype.currentPosition=Mu.prototype.tj,Mu.prototype.setReverse=Mu.prototype.Id;function Gi(){Lr.call(this,[]),this.h=[]}x(Gi,Lr),l=Gi.prototype,l.clone=function(){var i=new Gi;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),d=u.next();!d.done;d=u.next())d.value.Fb(i)};function V2e(i,u){i=_(i.h);for(var d=i.next();!d.done;d=i.next())u(d.value)}l.find=function(i){for(var u=this.i,d=_(this.h),v=d.next();!v.done;v=d.next()){v=v.value;var y=v.find(i);if(y!=null)return y+u;u+=v.getNumEvicted()+v.getNumReferences()}return null};function z2e(i,u){i=_(i.h);for(var d=i.next();!d.done;d=i.next())if(d=d.value,d.find(u)!=null)return d.Te();return-1}l.get=function(i){for(var u=this.i,d=_(this.h),v=d.next();!v.done;v=d.next()){v=v.value;var y=v.get(i-u);if(y)return y;y=v.getNumReferences(),u+=v.getNumEvicted()+y}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(){},He("shaka.media.MetaSegmentIndex",Gi),Gi.prototype.updateEvery=Gi.prototype.Nf,Gi.prototype.fit=Gi.prototype.pd,Gi.prototype.mergeAndEvict=Gi.prototype.fe,Gi.prototype.evict=Gi.prototype.Ya,Gi.prototype.merge=Gi.prototype.nf,Gi.prototype.offset=Gi.prototype.offset,Gi.prototype.get=Gi.prototype.get,Gi.prototype.find=Gi.prototype.find,Gi.prototype.forEachTopLevelReference=Gi.prototype.Fb,Gi.prototype.release=Gi.prototype.release;function Rb(i){var u=this;this.g=i,this.j=!1,this.i=this.g.Ye(),this.h=new dr(function(){u.g.ui(u.i*.25)})}Rb.prototype.release=function(){this.set(this.Tc()),this.h&&(this.h.stop(),this.h=null),this.g=null},Rb.prototype.set=function(i){this.i=i,g5(this)},Rb.prototype.Tc=function(){return this.g.Tc()};function g5(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 y5(i){var u=this;this.j=i,this.h=new Ge,this.g=new Set,this.i=new dr(function(){Mq(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()})}y5.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 Mq(i,u){var d=i.j.currentTime;i=_(i.g);for(var v=i.next();!v.done;v=i.next())v.value.j(d,u)}function Qw(i){Hr.call(this),this.g=new Map,this.h=i}x(Qw,Hr),Qw.prototype.release=function(){this.g.clear(),Hr.prototype.release.call(this)};function H2e(i,u){var d=i.g.get(u);return d||(d={me:[],lg:null,contentType:u},i.g.set(u,d)),d}function W2e(i,u,d){var v=H2e(i,u.contentType);G2e(i,v),i={xd:u,position:d},v=v.me,u=v.findIndex(function(y){return y.position>=d}),u>=0?v.splice(u,v[u].position==d?1:0,i):v.push(i)}Qw.prototype.j=function(i){for(var u=_(this.g.values()),d=u.next();!d.done;d=u.next()){d=d.value;var v=d.lg;e:{for(var y=d.me,w=y.length-1;w>=0;w--){var T=y[w];if(T.position<=i){y=T.xd;break e}}y=null}w=y&&!(v===y||v&&y&&v.bandwidth==y.bandwidth&&v.audioSamplingRate==y.audioSamplingRate&&v.codecs==y.codecs&&v.contentType==y.contentType&&v.frameRate==y.frameRate&&v.height==y.height&&v.mimeType==y.mimeType&&v.channelsCount==y.channelsCount&&v.pixelAspectRatio==y.pixelAspectRatio&&v.width==y.width),T=y&&v&&y.label&&v.label&&v.label!==y.label;var P=y&&v&&y.language&&v.language&&v.language!==y.language;v=y&&v&&y.roles&&v.roles&&!mt(v.roles,y.roles),(T||P||v)&&Dq(this,i,y.contentType)&&(d.lg=y,v=new Sn("audiotrackchange",new Map([["quality",y],["position",i]])),this.dispatchEvent(v)),w&&Dq(this,i,y.contentType)&&(d.lg=y,JSON.stringify(y),d=new Sn("qualitychange",new Map([["quality",y],["position",i]])),this.dispatchEvent(d))}};function Dq(i,u,d){return!!((i=i.h()[d])&&i.length>0&&(d=i[i.length-1].end,u>=i[0].start&&u0){var d=i[0].start,v=i[i.length-1].end,y=u.me;u.me=y.filter(function(w,T){return!(w.position<=d&&T+1=v)})}else u.me=[]}function Jw(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 Mb(i){Hr.call(this),this.h=new Map,this.i=i,this.g=null}x(Mb,Hr),Mb.prototype.release=function(){this.h.clear(),this.g&&(this.g.stop(),this.g=null),Hr.prototype.release.call(this)};function b5(i,u){var d=u.schemeIdUri+"_"+u.id+"_"+(u.startTime.toFixed(1)+"_"+u.endTime.toFixed(1));i.h.has(d)||(i.h.set(d,u),u=new Sn("regionadd",new Map([["region",u]])),i.dispatchEvent(u),K2e(i))}function K2e(i){i.g||(i.g=new dr(function(){for(var u=i.i(),d=_(i.h),v=d.next();!v.done;v=d.next()){var y=_(v.value);v=y.next().value,y=y.next().value,y.endTimev.endTime&&Ob(this,v);u&&_5(this)},eC.prototype.Id=function(i){this.o=i,this.h&&this.h.Id(i)};function _5(i){if(i.g.size)for(var u=Array.from(i.g.keys()),d=_(i.j.keys()),v=d.next(),y={};!v.done;y={Mg:void 0},v=d.next())y.Mg=v.value,u.some((function(w){return function(T){return Tb(T.ba,w.Mg)}})(y))||Ob(i,y.Mg)}function Nq(i,u){i.m=u;for(var d=Array.from(i.g.keys());d.length>u;){var v=d.pop();v&&Ob(i,v)}_5(i)}function Y2e(i,u){u&&u!==i.i&&(Xc(i),i.i=u)}function Ob(i,u){var d=i.g;u instanceof Ya&&(d=i.j),i=d.get(u),d.delete(u),i&&i.abort()}function S5(i){this.g=i,this.je=this.wh=null}function Bq(i,u,d){var v=new Uint8Array(0);return i.je=i.g(u,d,function(y){return Q(function(w){if(w.g==1)return v.byteLength>0?v=nr(v,y):v=y,i.wh?L(w,i.wh(v),3):w.A(0);v=new Uint8Array(0),B(w)})}),i.je.promise.catch(function(y){return y instanceof Ee&&y.code==7001?Promise.resolve():Promise.reject(y)})}S5.prototype.abort=function(){this.je&&this.je.abort()},He("shaka.config.CrossBoundaryStrategy",{KEEP:"keep",RESET:"reset",RESET_TO_ENCRYPTED:"reset_to_encrypted",RESET_ON_ENCRYPTION_CHANGE:"RESET_ON_ENCRYPTION_CHANGE"});function k5(i){var u=Cl(i),d=u.split("/")[0];return i=qa(i),{type:d,mimeType:u,codecs:i,language:null,height:null,width:null,channelCount:null,sampleRate:null,closedCaptions:new Map,ve:null,colorGamut:null,frameRate:null}}function X2e(i,u,d){function v(Fe){Me=Fe.name;var lt=Fe.reader;lt.skip(24);var pt=lt.Ca(),ft=lt.Ca();lt.skip(50),ie=String(pt),q=String(ft),Fe.reader.Ia()&&rr(Fe)}function y(Fe){var lt=zK(Fe.reader);ue=lt.channelCount,he=lt.sampleRate,w(Fe.name)}function w(Fe){switch(Fe=Fe.toLowerCase(),Fe){case"avc1":case"avc3":P.push(Fe+".42E01E"),j=!0;break;case"hev1":case"hvc1":P.push(Fe+".1.6.L93.90"),j=!0;break;case"dvh1":case"dvhe":P.push(Fe+".05.04"),j=!0;break;case"vp09":P.push(Fe+".00.10.08"),j=!0;break;case"av01":P.push(Fe+".0.01M.08"),j=!0;break;case"mp4a":T.push("mp4a.40.2"),$=!0;break;case"ac-3":case"ec-3":case"ac-4":case"opus":case"flac":T.push(Fe),$=!0;break;case"apac":T.push("apac.31.00"),$=!0}}var T=[],P=[],$=!1,j=!1,G=null,q=null,ie=null,ue=null,he=null,me=null,ge=null,Me;if(new oi().box("moov",rr).box("trak",rr).box("mdia",rr).S("mdhd",function(Fe){G=Uw(Fe.reader,Fe.version).language}).box("minf",rr).box("stbl",rr).S("stsd",Nf).box("mp4a",function(Fe){var lt=zK(Fe.reader);ue=lt.channelCount,he=lt.sampleRate,Fe.reader.Ia()?rr(Fe):w(Fe.name)}).box("esds",function(Fe){Fe=Fe.reader;for(var lt="mp4a",pt,ft;Fe.Ia();){pt=Fe.Y();for(var bt=Fe.Y();bt&128;)bt=Fe.Y();if(pt==3)Fe.Ca(),bt=Fe.Y(),bt&128&&Fe.Ca(),bt&64&&Fe.skip(Fe.Y()),bt&32&&Fe.Ca();else if(pt==4)ft=Fe.Y(),Fe.skip(12);else if(pt==5)break}ft&&(lt+="."+Cb(ft),pt==5&&Fe.Ia()&&(pt=Fe.Y(),ft=(pt&248)>>3,ft===31&&Fe.Ia()&&(ft=32+((pt&7)<<3)+((Fe.Y()&224)>>5)),lt+="."+ft)),T.push(lt),$=!0}).box("ac-3",y).box("ec-3",y).box("ac-4",y).box("Opus",y).box("fLaC",y).box("apac",y).box("avc1",v).box("avc3",v).box("hev1",v).box("hvc1",v).box("dva1",v).box("dvav",v).box("dvh1",v).box("dvhe",v).box("vp09",v).box("av01",v).box("avcC",function(Fe){var lt=Me||"";switch(Me){case"dvav":lt="avc3";break;case"dva1":lt="avc1"}Fe=Fe.reader,Fe.skip(1),Fe=lt+"."+Cb(Fe.Y())+Cb(Fe.Y())+Cb(Fe.Y()),P.push(Fe),j=!0}).box("hvcC",function(Fe){var lt=Me||"";switch(Me){case"dvh1":lt="hvc1";break;case"dvhe":lt="hev1"}var pt=Fe.reader;pt.skip(1),Fe=pt.Y();var ft=["","A","B","C"][Fe>>6],bt=Fe&31,St=pt.U(),$t=(Fe&32)>>5?"H":"L";Fe=[pt.Y(),pt.Y(),pt.Y(),pt.Y(),pt.Y(),pt.Y()],pt=pt.Y();for(var Nt=0,Et=0;Et<32&&(Nt|=St&1,Et!=31);Et++)Nt<<=1,St>>=1;for(lt=lt+("."+ft+bt)+("."+Cb(Nt,!0)),lt+="."+$t+pt,ft="",bt=Fe.length;bt--;)(($t=Fe[bt])||ft)&&(ft="."+$t.toString(16).toUpperCase()+ft);lt+=ft,P.push(lt),j=!0}).box("dvcC",function(Fe){var lt=Me||"";switch(Me){case"hvc1":lt="dvh1";break;case"hev1":lt="dvhe";break;case"avc1":lt="dva1";break;case"avc3":lt="dvav";break;case"av01":lt="dav1"}var pt=Fe.reader;pt.skip(2),Fe=pt.Y(),pt=pt.Y(),P.push(lt+"."+El(Fe>>1&127)+"."+El(Fe<<5&32|pt>>3&31)),j=!0}).box("dvvC",function(Fe){var lt=Me||"";switch(Me){case"hvc1":lt="dvh1";break;case"hev1":lt="dvhe";break;case"avc1":lt="dva1";break;case"avc3":lt="dvav";break;case"av01":lt="dav1"}var pt=Fe.reader;pt.skip(2),Fe=pt.Y(),pt=pt.Y(),P.push(lt+"."+El(Fe>>1&127)+"."+El(Fe<<5&32|pt>>3&31)),j=!0}).S("vpcC",function(Fe){var lt=Me||"",pt=Fe.reader;Fe=pt.Y();var ft=pt.Y();pt=pt.Y()>>4&15,P.push(lt+"."+El(Fe)+"."+El(ft)+"."+El(pt)),j=!0}).box("av1C",function(Fe){var lt=Me||"";switch(Me){case"dav1":lt="av01"}var pt=Fe.reader;pt.skip(1),Fe=pt.Y(),pt=pt.Y();var ft=Fe>>>5,bt=(pt&64)>>6;P.push(lt+"."+ft+"."+El(Fe&31)+(pt>>>7?"H":"M")+"."+El(ft===2&&bt?(pt&32)>>5?12:10:bt?10:8)+"."+((pt&16)>>4)+"."+((pt&8)>>3)+((pt&4)>>2)+(pt&3)+"."+El(1)+"."+El(1)+"."+El(1)+".0"),j=!0}).box("enca",Ow).box("encv",xl).box("sinf",rr).box("frma",function(Fe){Fe=ZP(Fe.reader).codec,w(Fe)}).box("colr",function(Fe){P=P.map(function(ft){if(ft.startsWith("av01.")){var bt=Fe.reader,St=bt.Oa(),$t=bt.Tb(4,!1),Nt=String.fromCharCode($t[0]);if(Nt+=String.fromCharCode($t[1]),Nt+=String.fromCharCode($t[2]),Nt+=String.fromCharCode($t[3]),Nt==="nclx"){$t=bt.Ca(),Nt=bt.Ca();var Et=bt.Ca(),Rt=bt.Y()>>7,Kt=ft.split(".");Kt.length==10&&(Kt[6]=El($t),Kt[7]=El(Nt),Kt[8]=El(Et),Kt[9]=String(Rt),ft=Kt.join("."))}bt.seek(St)}return ft});var lt=QSe(Fe.reader),pt=lt.colorGamut;me=lt.ve,ge=pt}).parse(i||u,!0,!0),!T.length&&!P.length)return null;var Ie=$&&!j,Ve=new Map;if(j&&!d){d=new Rs("video/mp4"),i&&d.init(i);try{d.xf(u);for(var tt=_(d.Vf()),gt=tt.next();!gt.done;gt=tt.next()){var Ze=gt.value;Ve.set(Ze,Ze)}}catch{}d.Nd()}return{type:Ie?"audio":"video",mimeType:Ie?"audio/mp4":"video/mp4",codecs:w5(T.concat(P)).join(", "),language:G,height:q,width:ie,channelCount:ue,sampleRate:he,closedCaptions:Ve,ve:me,colorGamut:ge,frameRate:null}}function w5(i){var u=new Set,d=[];i=_(i);for(var v=i.next();!v.done;v=i.next()){v=v.value;var y=Qh(v);u.has(y)||(d.push(v),u.add(y))}return u=Sa("audio",d),v=Sa("video",d),i=Sa(Cn,d),v=Z2e(v),u=u.concat(v).concat(i),d.length&&!u.length?d:u}function Z2e(i){if(i.length<=1)return i;var u=i.find(function(d){return d.startsWith("dvav.")||d.startsWith("dva1.")||d.startsWith("dvh1.")||d.startsWith("dvhe.")||d.startsWith("dav1.")||d.startsWith("dvc1.")||d.startsWith("dvi1.")});return u?Mo('video/mp4; codecs="'+u+'"')?[u]:i.filter(function(d){return d!=u}):i}function Q2e(i){var u=null;return new oi().box("moov",rr).box("trak",rr).box("mdia",rr).box("minf",rr).box("stbl",rr).S("stsd",Nf).box("encv",xl).box("enca",Ow).box("sinf",rr).box("schi",rr).S("tenc",function(d){d=d.reader,d.Y(),d.Y(),d.Y(),d.Y(),d=d.Tb(16,!1),u=An(d)}).parse(i,!0),u}function C5(i,u,d){var v,y,w,T,P;return Q(function($){if($.g==1)return v=u,v.cryptoKey?$.A(2):L($,v.fetchKey(),3);if(y=v.iv,!y)for(y=Le(new ArrayBuffer(16)),w=v.firstMediaSequenceNumber+d,T=y.byteLength-1;T>=0;T--)y[T]=w&255,w>>=8;return u.blockCipherMode=="CBC"?P={name:"AES-CBC",iv:y}:P={name:"AES-CTR",counter:y,length:64},$.return(o.crypto.subtle.decrypt(P,v.cryptoKey,i))})}function $b(i,u,d,v,y){return i=Do(i,v,y),(u!=0||d!=null)&&(i.headers.Range=d?"bytes="+u+"-"+d:"bytes="+u+"-"),i}function Fq(i,u){var d=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 e0(function(){return J2e(d)}),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 dr(function(){if(d.j&&d.g)if(d.j.presentationTimeline.W()){var v=d.j.presentationTimeline.Xb(),y=d.j.presentationTimeline.Gb();y-v>1?P2e(d.g.Z,v,y):c5(d.g.Z)}else c5(d.g.Z),d.u&&d.u.stop();else d.u&&d.u.stop()}),this.I=null,this.J=!1,this.K=new dr(function(){var v=d.g.video;!v.ended&&d.I&&(d.J=!0,v.currentTime=d.I,d.I=null)}),this.G=new Ge}l=Fq.prototype,l.destroy=function(){return this.l.destroy()};function J2e(i){var u,d,v,y,w,T,P;return Q(function($){if($.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=[],d=_(i.h.values()),v=d.next();!v.done;v=d.next())y=v.value,Uf(y),u.push(oC(y)),y.ha&&(Xc(y.ha),y.ha=null);for(w=_(i.m.values()),T=w.next();!T.done;T=w.next())P=T.value,Xc(P);return L($,Promise.all(u),2)}i.h.clear(),i.m.clear(),i.g=null,i.j=null,i.i=null,i.I=null,B($)})}l.configure=function(i){if(this.i=i,this.X=new dK({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&&(Xc(u.ha),u.ha=null),u=_(this.m.keys());for(var d=u.next();!d.done;d=u.next())d=d.value,Xc(this.m.get(d)),this.m.delete(d)}for(i.disableTextPrefetch&&(u=this.h.get(Cn))&&u.ha&&(Xc(u.ha),u.ha=null),i.disableVideoPrefetch&&(u=this.h.get("video"))&&u.ha&&(Xc(u.ha),u.ha=null),u=_(this.h.keys()),d=u.next();!d.done;d=u.next())d=this.h.get(d.value),d.ha?(Nq(d.ha,i.segmentPrefetchLimit),i.segmentPrefetchLimit>0||(Xc(d.ha),d.ha=null)):i.segmentPrefetchLimit>0&&(d.ha=E5(this,d.stream));i.disableAudioPrefetch||ske(this)};function eke(i,u,d){i.j.presentationTimeline.W()||(i.aa=u,i.$=d)}l.start=function(i){var u=this;return Q(function(d){if(d.g==1)return L(d,oke(u,i||new Map),2);ki(u.l),u.N=!0,B(d)})};function tke(i,u){var d,v,y,w,T,P;Q(function($){switch($.g){case 1:return d=Vr,i.V++,v=i.V,U($,2),L($,lq(i.g.Z,d.Na),4);case 4:V($,3);break;case 2:y=z($),i.g&&i.g.onError(y);case 3:w=ho(u.mimeType,u.codecs),qw(i.g.Z,w,i.j.sequenceMode,u.external),T=i.g.Z.aa,(T.isTextVisible()||i.i.alwaysStreamText)&&i.V==v&&(P=nC(i,u),i.h.set(d.Na,P),ca(i,P,0)),B($)}})}function nke(i){var u=i.h.get(Cn);u&&(Uf(u),oC(u).catch(function(){}),i.H=i.h.get(Cn),i.h.delete(Cn),u.stream&&u.stream.closeSegmentIndex&&u.stream.closeSegmentIndex()),i.B=null}function jq(i,u){for(var d=i.g.Ob()<0,v=_(i.h.values()),y=v.next();!y.done;y=v.next())y=y.value,y.ua&&y.ua.Id(d),y.ha&&y.ha.Id(d);for(v=_(i.m.values()),y=v.next();!y.done;y=v.next())y.value.Id(d);(d=i.h.get("video"))&&(v=d.stream)&&(u?(u=v.trickModeVideo)&&!d.Mc&&(v0(i,u,!1,0,!1),d.Mc=v):(u=d.Mc)&&(d.Mc=null,v0(i,u,!0,0,!1)))}function Uq(i,u,d,v,y,w){d=d===void 0?!1:d,v=v===void 0?0:v,y=y===void 0?!1:y,w=w===void 0?!1:w,i.o=u,i.N&&(u.video&&v0(i,u.video,d,v,y,w),u.audio&&v0(i,u.audio,d,v,y,w))}function tC(i,u){Q(function(d){if(d.g==1)return i.H=null,i.B=u,i.N?u.segmentIndex?d.A(2):L(d,u.createSegmentIndex(),2):d.return();v0(i,u,!0,0,!1),B(d)})}function rke(i){var u=i.h.get(Cn);u&&v0(i,u.stream,!0,0,!0)}function ike(i,u){for(var d=_(i.M.entries()),v=d.next();!v.done;v=d.next()){var y=_(v.value);v=y.next().value,y=y.next().value,v.includes(u.type)&&(y(),i.M.delete(v))}}function v0(i,u,d,v,y,w){var T=i.h.get(u.type);T||u.type!=Cn?T&&(T.Mc&&(u.trickModeVideo?(T.Mc=u,u=u.trickModeVideo):T.Mc=null),T.stream!=u||y)&&(i.m.has(u)?T.ha=i.m.get(u):T.ha&&Y2e(T.ha,u),u.type==Cn&&T.stream!=u&&(y=ho(u.mimeType,u.codecs),qw(i.g.Z,y,i.j.sequenceMode,u.external)),!i.m.has(T.stream)&&T.stream.closeSegmentIndex&&(T.Ja?(y="("+T.type+":"+T.stream.id+")",i.M.has(y)||i.M.set(y,T.stream.closeSegmentIndex)):T.stream.closeSegmentIndex()),y=T.stream.isAudioMuxedInVideo!=u.isAudioMuxedInVideo,T.stream=u,T.ua=null,T.cg=!!w,u.dependencyStream?T.Ec=nC(i,u.dependencyStream):T.Ec=null,Gq(i),y&&(T.pb=null,T.qc=null,T.nc=null,u.isAudioMuxedInVideo&&(u=null,T.type==="video"?u=i.h.get("audio"):T.type==="audio"&&(u=i.h.get("video")),u&&(oC(u).catch(function(){}),u.pb=null,u.qc=null,u.nc=null,x5(i,u),Vq(i,u).catch(function(P){i.g&&i.g.onError(P)})))),d?T.Ub?T.Kd=!0:T.Ja?(T.ec=!0,T.ld=v,T.Kd=!0):(Uf(T),I5(i,T,!0,v).catch(function(P){i.g&&i.g.onError(P)})):T.Ja||T.qb||ca(i,T,0),Vq(i,T).catch(function(P){i.g&&i.g.onError(P)})):tke(i,u)}function Vq(i,u){var d,v,y;return Q(function(w){if(w.g==1)return u.Va?(d=u.stream,v=u.Va,d.segmentIndex?w.A(2):L(w,d.createSegmentIndex(),2)):w.return();if(w.g!=4)return y=d.dependencyStream,!y||y.segmentIndex?w.A(4):L(w,y.createSegmentIndex(),4);if(u.Va!=v||u.stream!=d)return w.return();var T=i.g.lc(),P=Gv(i.g.Z,u.type),$=u.stream.segmentIndex.find(u.La?u.La.endTime:T),j=$==null?null:u.stream.segmentIndex.get($);$=j?QP(j):null,j&&!$&&($=(j.endTime-j.getStartTime())*(u.stream.bandwidth||i.o.bandwidth)/8),$?((j=j.ba)&&($+=(j.endByte?j.endByte+1-j.startByte:null)||0),j=i.g.getBandwidthEstimate(),T=$*8/j<(P||0)-T-i.i.rebufferingGoal||u.Va.h.g>$):T=!0,T&&u.Va.abort(),B(w)})}l.bd=function(){if(this.g){for(var i=this.g.lc(),u=_(this.h.keys()),d=u.next();!d.done;d=u.next()){var v=d.value;d=this.h.get(v);var y;if((y=!this.J)&&(y=this.g.Z,v==Cn?(y=y.h,y=y.g==null||y.h==null?!1:i>=y.g&&i0?new eC(i.i.segmentPrefetchLimit,u,function(v,y,w){return iC(v,y,w||null,i.i.retryParameters,i.g.tc)},i.g.Ob()<0,i.g.al):null}function ske(i){for(var u=i.i.segmentPrefetchLimit,d=i.i.prefetchAudioLanguages,v=_(i.j.variants),y=v.next(),w={};!y.done;w={Mb:void 0},y=v.next())if(w.Mb=y.value,w.Mb.audio)if(i.m.has(w.Mb.audio)){if(y=i.m.get(w.Mb.audio),Nq(y,u),!(u>0&&d.some((function(P){return function($){return Yg(P.Mb.audio.language,$)}})(w)))){var T=i.h.get(w.Mb.audio.type);y!==(T&&T.ha)&&Xc(y),i.m.delete(w.Mb.audio)}}else u<=0||!d.some((function(P){return function($){return Yg(P.Mb.audio.language,$)}})(w))||!(y=E5(i,w.Mb.audio))||(w.Mb.audio.segmentIndex||w.Mb.audio.createSegmentIndex(),i.m.set(w.Mb.audio,y))}l.updateDuration=function(){var i=Wg(),u=this.j.presentationTimeline.getDuration();u<1/0?(i&&(this.u&&this.u.stop(),c5(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 ake(i,u){var d,v,y,w,T,P,$,j,G;return Q(function(q){switch(q.g){case 1:if(ki(i.l),d=Vr,u.Ja||u.qb==null||u.Ub)return q.return();if(u.qb=null,!u.ec){q.A(2);break}return L(q,I5(i,u,u.Kd,u.ld),3);case 3:return q.return();case 2:if(ike(i,u),u.stream.segmentIndex){q.A(4);break}return v=u.stream,U(q,5),L(q,u.stream.createSegmentIndex(),7);case 7:V(q,6);break;case 5:return y=z(q),L(q,L5(i,u,y),8);case 8:return q.return();case 6:if(v!=u.stream)return v.closeSegmentIndex&&v.closeSegmentIndex(),u.Ja||u.qb||ca(i,u,0),q.return();case 4:if(!u.Ec){q.A(9);break}if(u.Ec.stream.segmentIndex){q.A(9);break}return U(q,11),L(q,u.Ec.stream.createSegmentIndex(),13);case 13:V(q,9);break;case 11:z(q);case 9:U(q,14),w=lke(i,u),w!=null&&(ca(i,u,w),u.Zd=!1),V(q,15);break;case 14:return T=z(q),L(q,L5(i,u,T),16);case 16:return q.return();case 15:if(u.type===d.Na)return q.return();if(P=[u],$=u.type===d.ka?d.Aa:d.ka,(j=i.h.get($))&&P.push(j),!i.N||!P.every(function(ie){return ie.endOfStream})){q.A(0);break}return L(q,i.g.Z.endOfStream(),18);case 18:ki(i.l),G=i.g.Z.getDuration(),G!=0&&G=w)return d/2;if(P=!u.ua,$=zq(i,u,v,$),!$)return d;T=u.pb;var j=$.ba;T&&j&&Tb(j,T)&&(T.g=j.g),T=!1,P&&u.cg&&(T=!0,u.cg=!1),P=1/0,j=Array.from(i.h.values()),j=_(j);for(var G=j.next();!G.done;G=j.next())G=G.value,A5(G)||G.ua&&!G.ua.current()||(P=Math.min(P,G.La?G.La.endTime:v));return y>=P+i.j.presentationTimeline.h?d:(u.ha&&u.ua&&!i.m.has(u.stream)&&(u.ha.Ya($.startTime+.001),Db(u.ha,$.startTime).catch(function(){})),Bb(i)&&hke(i,u,$)||(uke(i,u,v,$,T).catch(function(){}),u.Ec&&Hq(i,u.Ec,v,w)),null)}function zq(i,u,d,v){if(u.ua)return(d=u.ua.current())&&u.La&&Math.abs(u.La.startTime-d.startTime)<.001&&(d=u.ua.next().value),d;if(u.La||v)return d=u.La?u.La.endTime:v,i=i.g.Ob()<0,u.stream.segmentIndex&&(u.ua=u.stream.segmentIndex.Vb(d,!1,i)),u.ua&&u.ua.next().value;v=i.j.sequenceMode||Bb(i)?0:i.i.inaccurateManifestTolerance;var y=Math.max(d-v,0);i=i.g.Ob()<0;var w=null;return v&&(u.stream.segmentIndex&&(u.ua=u.stream.segmentIndex.Vb(y,!1,i)),w=u.ua&&u.ua.next().value),w||(u.stream.segmentIndex&&(u.ua=u.stream.segmentIndex.Vb(d,!1,i)),w=u.ua&&u.ua.next().value),w}function uke(i,u,d,v,y){var w,T,P,$,j,G,q,ie,ue,he,me,ge,Me,Ie,Ve,tt,gt;return Q(function(Ze){switch(Ze.g){case 1:if(w=Vr,T=u.stream,P=u.ua,u.Ja=!0,U(Ze,2),v.Jc()==2)throw new Ee(1,1,1011);return L(Ze,dke(i,u,v,y),4);case 4:return ki(i.l),i.F?Ze.return():($=T.mimeType=="video/mp4"||T.mimeType=="audio/mp4",j=o.ReadableStream,i.i.lowLatencyMode&&i.j.isLowLatency&&j&&$&&(i.j.type!="HLS"||v.o)?(ie=new Uint8Array(0),he=ue=!1,ge=function(Fe){var lt,pt,ft;return Q(function(bt){switch(bt.g){case 1:if(ue||(he=!0,ki(i.l),i.F))return bt.return();if(U(bt,2),ie=nr(ie,Fe),lt=!1,pt=0,new oi().box("mdat",function(St){pt=St.size+St.start,lt=!0}).parse(ie,!1,!0),!lt){bt.A(4);break}return ft=ie.subarray(0,pt),ie=ie.subarray(pt),L(bt,T5(i,u,d,T,v,ft,!0,y),5);case 5:u.ha&&u.ua&&Db(u.ha,v.startTime,!0);case 4:V(bt,0);break;case 2:me=z(bt),B(bt)}})},L(Ze,Nb(i,u,v,ge),9)):(G=Nb(i,u,v),L(Ze,G,7)));case 7:return q=Ze.h,ki(i.l),i.F?Ze.return():(ki(i.l),u.ec?(u.Ja=!1,ca(i,u,0),Ze.return()):L(Ze,T5(i,u,d,T,v,q,!1,y),6));case 9:if(Me=Ze.h,me)throw me;if(he){Ze.A(10);break}return ue=!0,ki(i.l),i.F?Ze.return():u.ec?(u.Ja=!1,ca(i,u,0),Ze.return()):L(Ze,T5(i,u,d,T,v,Me,!1,y),10);case 10:u.ha&&u.ua&&Db(u.ha,v.startTime,!0);case 6:if(ki(i.l),i.F)return Ze.return();u.La=v,P.next(),u.Ja=!1,u.ah=!1,Ie=i.g.Z.Fc(),Ve=Ie[u.type],JSON.stringify(Ve),u.ec||(tt=null,u.type===w.Aa?tt=i.h.get(w.ka):u.type===w.ka&&(tt=i.h.get(w.Aa)),tt&&tt.type==w.ka?i.g.wf(v,u.stream,tt.stream.isAudioMuxedInVideo):i.g.wf(v,u.stream,u.stream.codecs.includes(","))),Uf(u),ca(i,u,0),V(Ze,0);break;case 2:if(gt=z(Ze),ki(i.l,gt),i.F)return Ze.return();if(u.Ja=!1,gt.code==7001)u.Ja=!1,Uf(u),ca(i,u,0),Ze.A(0);else if(u.type==w.Na&&i.i.ignoreTextStreamFailures)i.h.delete(w.Na),Ze.A(0);else return gt.code==3017?L(Ze,cke(i,u,gt),0):(u.Zd=!0,gt.category==1&&u.ha&&Ob(u.ha,v),gt.severity=2,L(Ze,L5(i,u,gt),0))}})}function Hq(i,u,d,v){var y,w,T,P,$,j,G,q,ie,ue,he;return Q(function(me){switch(me.g){case 1:for(y=u.stream,P=(T=(w=y.segmentIndex)&&w.Vb(d))&&T.next().value;P&&i.O.includes(P.startTime);)P=T&&T.next().value;if(!P){me.A(0);break}if($=P.ba,!$||Tb($,u.pb)){me.A(3);break}return u.pb=$,U(me,4),L(me,Nb(i,u,$),6);case 6:j=me.h;var ge=i.g.Z;ge.H&&ni(ge.H,j,0,y),i.O=[],V(me,3);break;case 4:throw G=z(me),u.pb=null,G;case 3:if(u.La&&u.La==P){me.A(0);break}return u.La=P,U(me,8),L(me,Nb(i,u,P),10);case 10:q=me.h,ge=i.g.Z,ge.H&&ni(ge.H,q,0,y),i.O.push(P.startTime),V(me,9);break;case 8:throw ie=z(me),u.La=null,ie;case 9:if(ue=Math.max.apply(Math,[0].concat(A(i.O))),he=i.g.lc(),he+v>ue)return L(me,Hq(i,u,P.startTime,v),0);me.A(0)}})}function cke(i,u,d){var v,y,w,T,P,$,j;return Q(function(G){switch(G.g){case 1:if(v=Array.from(i.h.values()),v.some(function(q){return q!=u&&q.ah})){G.A(2);break}if(i.i.avoidEvictionOnQuotaExceededError)return y=P5(i,d),i.g.disableStream(u.stream,y)||ca(i,u,4),G.return();if(w=Math.round(100*i.C),w>20){i.C-=.2,G.A(3);break}if(w>4){i.C-=.04,G.A(3);break}if(T=P5(i,d),P=i.g.disableStream(u.stream,T),!P){u.Zd=!0,i.F=!0,i.g.onError(d),G.A(5);break}return i.C=1,$=i.g.lc(),L(G,rC(i,u,$),5);case 5:return G.return();case 3:return u.ah=!0,j=i.g.lc(),L(G,rC(i,u,j),2);case 2:ca(i,u,4),B(G)}})}function dke(i,u,d,v){var y,w,T,P,$,j,G,q,ie,ue,he,me,ge,Me,Ie,Ve;return Q(function(tt){switch(tt.g){case 1:if(y=Vr,w=u.La==null,T=[],P=Math.max(0,Math.max(d.appendWindowStart,i.aa)-.1),$=Math.min(d.appendWindowEnd,i.$)+.1,j=d.codecs||u.stream.codecs,G=Qh(j),q=Cl(d.mimeType||u.stream.mimeType),ie=d.timestampOffset,ie==u.kf&&P==u.qc&&$==u.nc&&G==u.hf&&q==u.jf){tt.A(2);break}if(ue=u.hf&&u.jf&&N2e(i.g.Z,u.type,q,j,aC(i)),!ue){tt.A(3);break}if(he=null,u.type===y.Aa?he=i.h.get(y.ka):u.type===y.ka&&(he=i.h.get(y.Aa)),!he){tt.A(3);break}return L(tt,oC(he).catch(function(){}),5);case 5:he.pb=null,he.qc=null,he.nc=null,x5(i,he);case 3:return L(tt,Wq(i,u,ie,P,$,d,G,q),2);case 2:return Tb(d.ba,u.pb)||(u.pb=d.ba,d.l&&d.ba&&(me=Nb(i,u,d.ba),ge=function(){var gt,Ze,Fe,lt,pt,ft,bt,St,$t,Nt,Et;return Q(function(Rt){switch(Rt.g){case 1:return U(Rt,2),L(Rt,me,4);case 4:return gt=Rt.h,ki(i.l),Ze=null,Fe=new Map,lt={projection:null,hfov:null},u.stream&&(pt=u.stream.videoLayout)&&(ft=pt.split("/"),ft.includes("PROJ-RECT")?lt.projection="rect":ft.includes("PROJ-EQUI")?lt.projection="equi":ft.includes("PROJ-HEQU")?lt.projection="hequ":ft.includes("PROJ-PRIM")?lt.projection="prim":ft.includes("PROJ-AIV")&&(lt.projection="hequ")),bt=new oi,bt.box("moov",rr).box("trak",rr).box("mdia",rr).S("mdhd",function(Kt){Ze=Uw(Kt.reader,Kt.version).timescale}).box("hdlr",function(Kt){switch(Kt=Kt.reader,Kt.skip(8),Kt.Yc()){case"soun":Fe.set(y.ka,Ze);break;case"vide":Fe.set(y.Aa,Ze)}Ze=null}),u.type!==y.Aa||lt.projection||bt.box("minf",rr).box("stbl",rr).S("stsd",Nf).box("encv",xl).box("avc1",xl).box("avc3",xl).box("hev1",xl).box("hvc1",xl).box("dvav",xl).box("dva1",xl).box("dvh1",xl).box("dvhe",xl).box("dvc1",xl).box("dvi1",xl).box("vexu",rr).box("proj",rr).S("prji",function(Kt){Kt=Kt.reader.Yc(),lt.projection=Kt}).box("hfov",function(Kt){Kt=Kt.reader.U()/1e3,lt.hfov=Kt}),bt.parse(gt,!0,!0),u.type===y.Aa&&fke(i,lt),Fe.has(u.type)?d.ba.timescale=Fe.get(u.type):Ze!=null&&(d.ba.timescale=Ze),St=u.stream.segmentIndex,St instanceof Gi&&($t=z2e(St,d.startTime)),Nt=u.stream.closedCaptions&&u.stream.closedCaptions.size>0,L(Rt,i.g.Oh(u.type,gt),5);case 5:return L(Rt,Yw(i.g.Z,u.type,gt,null,u.stream,Nt,u.bd,v,!1,!1,$t),6);case 6:V(Rt,0);break;case 2:throw Et=z(Rt),u.pb=null,Et}})},Me=d.startTime,w&&(Ie=Gv(i.g.Z,u.type),Ie!=null&&(Me=Ie)),i.g.Ck(Me,d.ba),T.push(ge()))),Ve=u.La?u.La.i:-1,d.i!=Ve&&T.push(L2e(i.g.Z,u.type,d.startTime)),L(tt,Promise.all(T),0)}})}function Wq(i,u,d,v,y,w,T,P){var $,j,G,q,ie;return Q(function(ue){switch(ue.g){case 1:if($=Vr,j=aC(i),U(ue,2),u.qc=v,u.nc=y,T&&(u.hf=T),P&&(u.jf=P),u.kf=d,G=i.j.sequenceMode||i.j.type=="HLS",q=null,u.type===$.Aa?q=i.h.get($.ka):u.type===$.ka&&(q=i.h.get($.Aa)),!(q&&q.stream&&q.stream.isAudioMuxedInVideo)){ue.A(4);break}return L(ue,uq(i.g.Z,q.type,d,v,y,G,q.stream.mimeType,q.stream.codecs,j),4);case 4:return L(ue,uq(i.g.Z,u.type,d,v,y,G,w.mimeType||u.stream.mimeType,w.codecs||u.stream.codecs,j),6);case 6:V(ue,0);break;case 2:throw ie=z(ue),u.qc=null,u.nc=null,u.hf=null,u.jf=null,u.kf=null,ie}})}function T5(i,u,d,v,y,w,T,P){T=T===void 0?!1:T,P=P===void 0?!1:P;var $,j,G,q;return Q(function(ie){switch(ie.g){case 1:return $=v.closedCaptions&&v.closedCaptions.size>0,i.i.shouldFixTimestampOffset&&(j=v.mimeType=="video/mp4"||v.mimeType=="audio/mp4",G=null,y.ba&&(G=y.ba.timescale),j&&G&&v.type==="video"&&i.j.type=="DASH"&&new oi().box("moof",rr).box("traf",rr).S("tfdt",function(ue){var he,me,ge,Me,Ie,Ve;return Q(function(tt){return he=jw(ue.reader,ue.version),me=he.baseMediaDecodeTime,me?(ge=-me/G,Me=Number(u.kf)||0,Me$&&(q=Math.max(P-w,j-$-T)),q<=$?ie.return():L(ie,i.g.Z.remove(u.type,T,T+q,y),2));if(ie.g!=4)return ki(i.l),i.H?L(ie,rC(i,i.H,d),4):ie.A(0);ki(i.l),B(ie)})}function A5(i){return i&&i.type==Cn&&(i.stream.mimeType=="application/cea-608"||i.stream.mimeType=="application/cea-708")}function Nb(i,u,d,v){var y,w,T,P,$;return Q(function(j){switch(j.g){case 1:if(y=d.Yb())return j.return(y);if(w=null,u.ha){var G=u.ha,q=G.g;d instanceof Ya&&(q=G.j),q.has(d)?(G=q.get(d),v&&(G.wh=v),w=G.je):w=null}return w||(w=iC(d,u.stream,v||null,i.i.retryParameters,i.g.tc)),T=0,u.ua&&(T=u.ua.h),u.Va=w,L(j,w.promise,2);case 2:if(P=j.h,u.Va=null,$=P.data,!d.aesKey){j.A(3);break}return L(j,C5($,d.aesKey,T),4);case 4:$=j.h;case 3:return j.return($)}})}function iC(i,u,d,v,y,w){w=w===void 0?!1:w;var T=i instanceof $n?i:void 0,P=T?1:0;return i=$b(i.P(),i.startByte,i.endByte,v,d),i.contentType=u.type,y.request(Ru,i,{type:P,stream:u,segment:T,isPreload:w})}function I5(i,u,d,v){var y,w;return Q(function(T){if(T.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)&&Xc(u.ha),v?(y=i.g.lc(),w=i.g.Z.getDuration(),L(T,i.g.Z.remove(u.type,y+v,w),3)):L(T,lq(i.g.Z,u.type),4);if(T.g!=3)return ki(i.l),d?L(T,i.g.Z.flush(u.type),3):T.A(3);ki(i.l),u.Ub=!1,u.endOfStream=!1,u.Ja||u.qb||ca(i,u,0),B(T)})}function ca(i,u,d){var v=u.type;(v!=Cn||i.h.has(v))&&(u.qb=new mb(function(){var y;return Q(function(w){if(w.g==1)return U(w,2),L(w,ake(i,u),4);if(w.g!=2)return V(w,0);y=z(w),i.g&&i.g.onError(y),B(w)})}).ia(d))}function Uf(i){i.qb!=null&&(i.qb.stop(),i.qb=null)}function oC(i){return Q(function(u){return i.Va?L(u,i.Va.abort(),0):u.A(0)})}function L5(i,u,d){var v;return Q(function(y){if(y.g==1)return d.code==3024?(u.Ja=!1,Uf(u),ca(i,u,0),y.return()):L(y,fK(i.X),2);if(ki(i.l),d.category===1&&d.code!=1003){if(u.Mc)return jq(i,!1),y.return();v=P5(i,d),d.handled=i.g.disableStream(u.stream,v),d.handled&&(d.severity=1)}(!d.handled||d.code!=1011)&&i.g.onError(d),d.handled||i.i.failureCallback(d),B(y)})}function P5(i,u){return i.i.maxDisabledTime===0&&u.code==1011?1:i.i.maxDisabledTime}function sC(i,u){u=u===void 0?!1:u;var d,v,y,w,T,P;return Q(function($){if($.g==1){if(d=Date.now()/1e3,v=i.i.minTimeBetweenRecoveries,!u){if(!i.i.allowMediaSourceRecoveries||d-i.R1)return!0}else if(!u.Jf()){for(u=_(i.h.keys()),d=u.next();!d.done;d=u.next())if(d=i.h.get(d.value),d.type!==Vr.Na&&(d=d.stream)&&d.fullMimeTypes&&d.fullMimeTypes.size>1){for(i=new Set,u=_(d.fullMimeTypes),d=u.next();!d.done;d=u.next())i.add(db(d.value));return i.size>1}}return!1}function Gq(i){i.G.Pa(),Bb(i)&&(i.G.D(i.g.video,"waiting",function(){return R5(i)}),i.G.D(i.g.video,"timeupdate",function(){return R5(i)}))}function R5(i){if(Bb(i)){i.K.stop();var u=i.g.lc(),d=i.h.get("video")||i.h.get("audio");d&&(d=d.pb)&&d.g!==null&&(u=d.g-u,u<0||u>1||(i.I=d.g+.1,i.K.ia(u)))}}function hke(i,u,d){if(u.type===Cn)return!1;var v=u.pb;if(!v)return!1;var y=d.ba;if(d=v.g!==y.g,i.i.crossBoundaryStrategy==="reset_to_encrypted"&&(v.encrypted||y.encrypted||(d=!1),v.encrypted&&(i.i.crossBoundaryStrategy="keep")),i.i.crossBoundaryStrategy==="RESET_ON_ENCRYPTION_CHANGE"&&v.encrypted==y.encrypted&&(d=!1),i.i.crossBoundaryStrategy==="keep"&&v.mimeType&&y.mimeType){var w=qs(qa(v.mimeType)),T=qs(qa(v.mimeType));v.mimeType==y.mimeType&&w==T&&(d=!1)}return d&&(i.J||u.bd)&&(i.J=!1,sC(i,!0).then(function(){var P=new Map().set("oldEncrypted",v.encrypted).set("newEncrypted",y.encrypted);i.g.onEvent(new Sn("boundarycrossed",P))})),d}function aC(i,u){function d(w){if(w.fullMimeTypes&&w.fullMimeTypes.size>1&&i.h.has(w.type)){var T=i.h.get(w.type),P=Gv(i.g.Z,T.type),$=i.g.lc();(T=zq(i,T,$,P))&&T.codecs&&T.mimeType&&(w.codecs=T.codecs,w.mimeType=T.mimeType)}}u=u===void 0?!1:u;var v=new Map,y=i.o.audio;return y&&(d(y),v.set("audio",y)),(y=i.o.video)&&(d(y),v.set("video",y)),u&&i.B&&v.set(Cn,i.B),v}function lC(){}function M5(i,u,d,v,y){var w=y in v,T=w?d.constructor==Object&&Object.keys(v).length==0:d.constructor==Object&&Object.keys(d).length==0,P=w||T,$=!0,j;for(j in u){var G=y+"."+j,q=w?v[y]:d[j];P||j in d?u[j]===void 0?q===void 0||P?delete i[j]:i[j]=ln(q):T?i[j]=u[j]:q.constructor==Object&&u[j]&&u[j].constructor==Object?(i[j]||(i[j]=ln(q)),G=M5(i[j],u[j],q,v,G),$=$&&G):typeof u[j]!=typeof q||u[j]==null||typeof u[j]!="function"&&u[j].constructor!=q.constructor?(Je("Invalid config, wrong type for "+G),$=!1):typeof d[j]=="function"&&d[j].length!=u[j].length?(ot("Unexpected number of arguments for "+G),i[j]=u[j]):i[j]=Array.isArray(i[j])?u[j].slice():u[j]:(Je("Invalid config, unrecognized key "+G),$=!1)}return $}function uC(i,u){for(var d={},v=d,y=0,w=0;y=i.indexOf(".",y),!(y<0);)(y==0||i[y-1]!="\\")&&(w=i.substring(w,y).replace(/\\\./g,"."),v[w]={},v=v[w],w=y+1),y+=1;return v[i.substring(w).replace(/\\\./g,".")]=u,d}function m0(i,u){return i&&u}function Kq(i,u){function d(w){for(var T=_(Object.keys(w)),P=T.next();!P.done;P=T.next())if(P=P.value,!(w[P]instanceof HTMLElement))if(y(w[P])&&Object.keys(w[P]).length===0)delete w[P];else{var $=w[P];Array.isArray($)&&$.length===0||typeof w[P]=="function"?delete w[P]:y(w[P])&&(d(w[P]),Object.keys(w[P]).length===0&&delete w[P])}}function v(w,T){return Object.keys(w).reduce(function(P,$){var j=w[$];return T.hasOwnProperty($)?j instanceof HTMLElement&&T[$]instanceof HTMLElement?j.isEqualNode(T[$])||(P[$]=j):y(j)&&y(T[$])?(j=v(j,T[$]),(Object.keys(j).length>0||!y(j))&&(P[$]=j)):Array.isArray(j)&&Array.isArray(T[$])?an(j,T[$])||(P[$]=j):Number.isNaN(j)&&Number.isNaN(T[$])||j!==T[$]&&(P[$]=j):P[$]=j,P},{})}function y(w){return w&&typeof w=="object"&&!Array.isArray(w)}return i=v(i,u),d(i),i}He("shaka.util.ConfigUtils",lC),lC.getDifferenceFromConfigObjects=Kq,lC.convertToConfigObject=uC,lC.mergeConfigObjects=M5,He("shaka.config.RepeatMode",{OFF:0,ALL:1,SINGLE:2});function Xa(){}function qq(i){return i=Xt(i),new dn(i).Db}function Fb(i,u,d){function v(P){et(w).setUint32(T,P.byteLength,!0),T+=4,w.set(Le(P),T),T+=P.byteLength}if(!d||!d.byteLength)throw new Ee(2,6,6015);var y;typeof u=="string"?y=un(u,!0):y=u,i=Xt(i),i=un(i,!0);var w=new Uint8Array(12+i.byteLength+y.byteLength+d.byteLength),T=0;return v(i),v(y),v(d),w}function D5(i,u,d){return u!=="skd"?i:(u=d.serverCertificate,d=Xt(i).split("skd://").pop(),Fb(i,d,u))}function cC(i,u){i===2&&(i=u.drmInfo)&&Iw(i.keySystem)&&(u.headers["Content-Type"]="application/octet-stream")}He("shaka.drm.FairPlay",Xa),Xa.commonFairPlayResponse=function(i,u){if(i===2&&(i=u.originalRequest.drmInfo)&&Iw(i.keySystem)){try{var d=rt(u.data)}catch{return}if(i=!1,d=d.trim(),d.substr(0,5)===""&&d.substr(-6)===""&&(d=d.slice(5,-6),i=!0),!i)try{var v=JSON.parse(d);v.ckc&&(d=v.ckc,i=!0),v.CkcMessage&&(d=v.CkcMessage,i=!0),v.License&&(d=v.License,i=!0)}catch{}i&&(u.data=we(ar(d)))}},Xa.muxFairPlayRequest=function(i,u){cC(i,u)},Xa.expressplayFairPlayRequest=function(i,u){if(i===2){var d=u.drmInfo;d&&Iw(d.keySystem)&&cC(i,u)}},Xa.conaxFairPlayRequest=function(i,u){cC(i,u)},Xa.ezdrmFairPlayRequest=function(i,u){cC(i,u)},Xa.verimatrixFairPlayRequest=function(i,u){i===2&&(i=u.drmInfo)&&Iw(i.keySystem)&&(i=Le(u.body),i=Gn(i),u.headers["Content-Type"]="application/x-www-form-urlencoded",u.body=Gt("spc="+i))},Xa.muxInitDataTransform=function(i,u,d){return D5(i,u,d)},Xa.expressplayInitDataTransform=function(i,u,d){return D5(i,u,d)},Xa.conaxInitDataTransform=function(i,u,d){if(u!=="skd")return i;u=d.serverCertificate,d=Xt(i).split("skd://").pop().split("?").shift(),d=o.atob(d);var v=new ArrayBuffer(d.length*2);v=it(v);for(var y=0,w=d.length;y2||y.channelsCount>2)&&v.channelsCount!=y.channelsCount||v.spatialAudio!==y.spatialAudio||u&&!Yq(v,y))&&Xq(v.roles,y.roles)&&v.groupId===y.groupId)}return!v&&(v=d.video&&i.video)&&(d=d.video,v=i.video,v=!((!u||Yq(d,v))&&Xq(d.roles,v.roles))),v?!1:(this.g.add(i),!0)},dC.prototype.values=function(){return this.g.values()};function Yq(i,u){if(i.mimeType!=u.mimeType||(i=i.codecs.split(",").map(function(v){return Qh(v)}),u=u.codecs.split(",").map(function(v){return Qh(v)}),i.length!=u.length))return!1;i.sort(),u.sort();for(var d=0;du)}).sort(function(d,v){return d.audio||v.audio?d.audio?v.audio?(v.audio.channelsCount||0)-(d.audio.channelsCount||0):1:-1:0})}function _ke(i,u){if(u=="AUTO"){var d=i.some(function(v){return!!(v.video&&v.video.hdr&&v.video.hdr=="HLG")});u=$e().sd(d)}return i.filter(function(v){return!(v.video&&v.video.hdr&&v.video.hdr!=u)})}function Ske(i,u){return i.filter(function(d){return!(d.video&&d.video.videoLayout&&d.video.videoLayout!=u)})}function kke(i,u){return i.filter(function(d){return!(d.audio&&d.audio.spatialAudio!=u)})}function wke(i,u){return i.filter(function(d){return!(d.audio&&d.audio.codecs!=u)})}function fC(){}function g0(){var i=1/0,u=$e();navigator.connection&&navigator.connection.saveData&&(i=360);var d={retryParameters:fc(),servers:{},clearKeys:{},advanced:{},delayLicenseRequestUntilPlayed:!1,persistentSessionOnlinePlayback:!1,persistentSessionsMetadata:[],initDataTransform:function(P,$,j){return o.shakaMediaKeysPolyfill==="apple"&&$=="skd"&&($=j.serverCertificate,j=qq(P),P=Fb(P,j,$)),P},logLicenseExchange:!1,updateExpirationTime:1,preferredKeySystems:[],keySystemsMapping:{},parseInbandPsshEnabled:!1,minHdcpVersion:"",ignoreDuplicateInitData:!0,defaultAudioRobustnessForWidevine:"SW_SECURE_CRYPTO",defaultVideoRobustnessForWidevine:"SW_SECURE_DECODE"},v="reload";oc()&&u.Pc()&&(v="smooth");var y={retryParameters:fc(),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:hC,manifestPreprocessorTXml:pC,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:hC,manifestPreprocessorTXml:pC,sequenceMode:!1,keySystemsBySystemId:{"9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","79f0049a-4098-8642-ab92-e65be0885f95":"com.microsoft.playready"}}},w={trackSelectionCallback:function(P){return Q(function($){return $.return(P)})},downloadSizeCallback:function(P){var $;return Q(function(j){return j.g==1?navigator.storage&&navigator.storage.estimate?L(j,navigator.storage.estimate(),3):j.return(!0):($=j.h,j.return($.usage+P<$.quota*.95))})},progressCallback:function(P,$){return m0([P,$])},usePersistentLicense:!0,numberOfParallelDownloads:5},T={drm:d,manifest:y,streaming:{retryParameters:fc(),failureCallback:function(P){return m0([P])},rebufferingGoal:0,bufferingGoal:10,bufferBehind:30,evictionGoal:1,ignoreTextStreamFailures:!1,alwaysStreamText:!1,startAtSegmentBoundary:!1,gapDetectionThreshold:.5,gapPadding:0,gapJumpTimerTime:.25,durationBackoff:1,safeSeekOffset:5,safeSeekEndOffset:0,stallEnabled:!0,stallThreshold:1,stallSkip:.1,useNativeHlsForFairPlay:!0,inaccurateManifestTolerance:2,lowLatencyMode:!0,preferNativeDash:!1,preferNativeHls:!1,updateIntervalSeconds:1,observeQualityChanges:!1,maxDisabledTime:30,segmentPrefetchLimit:1,prefetchAudioLanguages:[],disableAudioPrefetch:!1,disableTextPrefetch:!1,disableVideoPrefetch:!1,liveSync:{enabled:!1,targetLatency:.5,targetLatencyTolerance:.5,maxPlaybackRate:1.1,minPlaybackRate:.95,panicMode:!1,panicThreshold:60,dynamicTargetLatency:{enabled:!1,stabilityThreshold:60,rebufferIncrement:.5,maxAttempts:10,maxLatency:4,minLatency:1}},allowMediaSourceRecoveries:!0,minTimeBetweenRecoveries:5,vodDynamicPlaybackRate:!1,vodDynamicPlaybackRateLowBufferRate:.95,vodDynamicPlaybackRateBufferRatio:.5,preloadNextUrlWindow:30,loadTimeout:30,clearDecodingCache:!1,dontChooseCodecs:!1,shouldFixTimestampOffset:!1,avoidEvictionOnQuotaExceededError:!1,crossBoundaryStrategy:"keep",returnToEndOfLiveWindowWhenOutside:!1},networking:{forceHTTP:!1,forceHTTPS:!1,minBytesForProgressEvents:16e3},mediaSource:{codecSwitchingStrategy:v,addExtraFeaturesToSourceBuffer:function(P){return m0([P],"")},forceTransmux:!1,insertFakeEncryptionInInit:!0,correctEc3Enca:!1,modifyCueCallback:function(P,$){return m0([P,$])},dispatchAllEmsgBoxes:!1,useSourceElements:!0,durationReductionEmitsUpdateEnd:!0},offline:w,abrFactory:function(){return new Wi},adaptationSetCriteriaFactory:function(){return new(Function.prototype.bind.apply(jb,[null].concat(A(ye.apply(0,arguments)))))},abr:{enabled:!0,useNetworkInformation:!0,defaultBandwidthEstimate:1e6,switchInterval:8,bandwidthUpgradeTarget:.85,bandwidthDowngradeTarget:.95,restrictions:{minWidth:0,maxWidth:1/0,minHeight:0,maxHeight:i,minPixels:0,maxPixels:1/0,minFrameRate:0,maxFrameRate:1/0,minBandwidth:0,maxBandwidth:1/0,minChannelsCount:0,maxChannelsCount:1/0},advanced:{minTotalBytes:128e3,minBytes:16e3,fastHalfLife:2,slowHalfLife:5},restrictToElementSize:!1,restrictToScreenSize:!1,ignoreDevicePixelRatio:!1,clearBufferSwitch:!1,safeMarginSwitch:0,cacheLoadThreshold:5,minTimeToSwitch:0,preferNetworkInformationBandwidth:!1,removeLatencyFromFirstPacketTime:!0},autoShowText:3,preferredAudioLanguage:"",preferredAudioLabel:"",preferredTextLanguage:"",preferredAudioRole:"",preferredVideoRole:"",preferredTextRole:"",preferredAudioChannelCount:2,preferredVideoHdrLevel:"AUTO",preferredVideoLayout:"",preferredVideoLabel:"",preferredVideoCodecs:[],preferredAudioCodecs:[],preferredTextFormats:[],preferForcedSubs:!1,preferSpatialAudio:!1,preferredDecodingAttributes:[],restrictions:{minWidth:0,maxWidth:1/0,minHeight:0,maxHeight:1/0,minPixels:0,maxPixels:1/0,minFrameRate:0,maxFrameRate:1/0,minBandwidth:0,maxBandwidth:1/0,minChannelsCount:0,maxChannelsCount:1/0},playRangeStart:0,playRangeEnd:1/0,textDisplayer:{captionsUpdatePeriod:.25,fontScaleFactor:1},textDisplayFactory:function(){return null},cmcd:{enabled:!1,sessionId:"",contentId:"",rtpSafetyFactor:5,useHeaders:!1,includeKeys:[],version:1,targets:[]},cmsd:{enabled:!0,applyMaximumSuggestedBitrate:!0,estimatedThroughputWeightRatio:.5},lcevc:{enabled:!1,dynamicPerformanceScaling:!0,logLevel:0,drawLogo:!1,poster:!0},ads:{customPlayheadTracker:!1,skipPlayDetection:!1,supportsMultipleMediaElements:!0,disableHLSInterstitial:!1,disableDASHInterstitial:!1,allowPreloadOnDomElements:!0,allowStartInMiddleOfInterstitial:!0},ignoreHardwareResolution:!1,queue:{preloadNextUrlWindow:1/0,preloadPrevItem:!0,repeatMode:0}};return w.trackSelectionCallback=function(P){return Q(function($){return $.return(Cke(P,T.preferredAudioLanguage,T.preferredVideoHdrLevel))})},u.Wa(T)}function Zq(){return{streaming:{inaccurateManifestTolerance:0,segmentPrefetchLimit:2,updateIntervalSeconds:.1,maxDisabledTime:1,retryParameters:{baseDelay:100}},manifest:{dash:{autoCorrectDrift:!1},retryParameters:{baseDelay:100}},drm:{retryParameters:{baseDelay:100}}}}function Vf(i,u,d){var v={".drm.keySystemsMapping":"",".drm.servers":"",".drm.clearKeys":"",".drm.advanced":{distinctiveIdentifierRequired:!1,persistentStateRequired:!1,videoRobustness:[],audioRobustness:[],sessionType:"",serverCertificate:new Uint8Array(0),serverCertificateUri:"",individualizationServer:"",headers:{}}};return M5(i,u,d||g0(),v,"")}function Cke(i,u,d){var v=d;v=="AUTO"&&(d=i.some(function(P){return!!(P.hdr&&P.hdr=="HLG")}),v=$e().sd(d));var y=i.filter(function(P){return!(P.type!="variant"||P.hdr&&P.hdr!=v)});d=[];var w=kw(u,y.map(function(P){return P.language}));w&&(d=y.filter(function(P){return zr(P.language)==w})),d.length==0&&(d=y.filter(function(P){return P.primary})),d.length==0&&(y.map(function(P){return P.language}),d=y);var T=d.filter(function(P){return P.height&&P.height<=480});for(T.length&&(T.sort(function(P,$){return $.height-P.height}),d=T.filter(function(P){return P.height==T[0].height})),u=[],d.length&&(y=Math.floor(d.length/2),d.sort(function(P,$){return P.bandwidth-$.bandwidth}),u.push(d[y])),i=_(i),d=i.next();!d.done;d=i.next())d=d.value,d.type!=Cn&&d.type!="image"||u.push(d);return u}function hC(i){return m0([i],i)}function pC(i){return m0([i],i)}He("shaka.util.PlayerConfiguration",fC),fC.mergeConfigObjects=Vf,fC.createDefaultForLL=Zq,fC.createDefault=g0;function xke(){this.g=null,this.h=[]}function O5(i,u){var d=0;i.g&&i.g.state==u&&(d+=i.g.duration),i=_(i.h);for(var v=i.next();!v.done;v=i.next())v=v.value,d+=v.state==u?v.duration:0;return d}function Eke(i){function u(w){return{timestamp:w.timestamp,state:w.state,duration:w.duration}}for(var d=[],v=_(i.h),y=v.next();!y.done;y=v.next())d.push(u(y.value));return i.g&&d.push(u(i.g)),d}function Tke(){this.i=this.h=null,this.g=[]}function $5(i,u,d){i.i!=u&&(i.i=u,i.g.push({timestamp:Date.now()/1e3,id:u.id,type:"text",fromAdaptation:d,bandwidth:null}))}function vC(){this.C=this.X=NaN,this.l="",this.j=this.ni=this.u=this.B=this.K=this.F=this.o=this.m=this.J=this.G=this.i=this.T=this.V=this.N=this.O=this.R=NaN,this.M=0,this.H=this.I=NaN,this.g=new xke,this.h=new Tke}function Ake(i,u,d){i.R=u,i.O=d}function Qq(i,u,d){i.X=u,i.C=d}function Ike(i,u){i.i=isNaN(i.i)?u:Math.max(i.i,u)}function Jq(i,u){i.j=isNaN(i.j)?u:i.j+u}function Lke(i){var u=i.X,d=i.C,v=i.l,y=i.B,w=i.O,T=i.R,P=i.N,$=i.V,j=i.T,G=i.u,q=i.i,ie=i.G,ue=i.J,he=i.m,me=O5(i.g,"playing"),ge=O5(i.g,"paused"),Me=O5(i.g,"buffering"),Ie=i.o,Ve=i.F,tt=i.K,gt=i.ni,Ze=i.j,Fe=i.M,lt=i.I,pt=i.H,ft=Eke(i.g),bt=[];i=_(i.h.g);for(var St=i.next();!St.done;St=i.next())St=St.value,bt.push({timestamp:St.timestamp,id:St.id,type:St.type,fromAdaptation:St.fromAdaptation,bandwidth:St.bandwidth});return{width:u,height:d,currentCodecs:v,streamBandwidth:y,decodedFrames:w,droppedFrames:T,corruptedFrames:P,stallsDetected:$,gapsJumped:j,estimatedBandwidth:G,completionPercent:q,loadLatency:ie,manifestTimeSeconds:ue,drmTimeSeconds:he,playTime:me,pauseTime:ge,bufferingTime:Me,licenseTime:Ie,liveLatency:Ve,maxSegmentDuration:tt,manifestSizeBytes:gt,bytesDownloaded:Ze,nonFatalErrorCount:Fe,manifestPeriodCount:lt,manifestGapCount:pt,stateHistory:ft,switchHistory:bt}}function Du(i,u,d,v){Hr.call(this),this.N=i,this.V=u,this.Da=v.networkingEngine,this.m=d,this.C=null,this.ya=0,this.Sa=v.md,this.G=v.vk,this.Ta=v.wk,this.g=v.config,this.l=this.H=this.h=null,this.qa=!1,this.I=v.Hk,this.wa=!1,this.i=null,this.aa=!1,this.u=null,this.M=new Map,this.xa=!1,this.Fa=v.Gk,this.X=new vC,this.ma=new ii,this.B=new ii,this.O=null,this.j=!1,this.$=v.ij,this.T=this.o=null,this.R=!1,this.K=[],this.J=[],this.F=!0}x(Du,Hr);function Ub(i,u,d){(i=u?i.J:i.K)?i.push(d):d()}function Pke(i){if(i.J)for(var u=_(i.J),d=u.next();!d.done;d=u.next())d=d.value,d();i.J=null}function eY(i,u){if(i.O=u,i.R=!0,i.K){u=_(i.K);for(var d=u.next();!d.done;d=u.next())d=d.value,d()}i.K=null}l=Du.prototype,l.getStartTime=function(){return this.m},l.rd=function(){return this.N},l.Hg=function(){return this.h};function Rke(i){return i.wa=!0,i.I}l.getStats=function(){return this.X};function Mke(i){return i.aa=!0,i.i}l.Rj=function(){return this.o?$v(this.o):null},l.Qj=function(){return this.T?Nv(this.T):null};function Dke(i){return i.xa=!0,i.M}l.start=function(){var i=this;(function(){var u;return Q(function(d){switch(d.g){case 1:return L(d,Promise.resolve(),2);case 2:return U(d,3),L(d,Oke(i),5);case 5:if(Kv(i),o.shakaMediaKeysPolyfill==="webkit"){d.A(6);break}return L(d,tY(i),7);case 7:Kv(i);case 6:if(!i.$){d.A(8);break}return L(d,Nke(i),9);case 9:Kv(i);case 8:if(!i.$||!i.i){d.A(10);break}return L(d,FSe(i.i),11);case 11:Kv(i);case 10:i.B.resolve(),V(d,0);break;case 3:u=z(d),u instanceof Ee&&(u.code==7001||u.code==7003)||i.B.reject(u),B(d)}})})()},l.dispatchEvent=function(i){return this.O?this.O.dispatchEvent(i):Hr.prototype.dispatchEvent.call(this,i)},l.onError=function(i){i.severity===2&&(this.B.reject(i),this.destroy());var u=new Map().set("detail",i);u=new Sn("error",u),this.dispatchEvent(u),u.defaultPrevented&&(i.handled=!0)};function Kv(i){if(i.j)throw new Ee(2,7,7003)}function N5(i,u){i.dispatchEvent(new Sn("onstatechange",new Map().set("state",u)))}function Oke(i){var u,d,v,y,w,T;return Q(function(P){switch(P.g){case 1:if(N5(i,"manifest-parser"),i.l||(i.H=VK(i.N,i.V),i.l=i.H(),i.l.configure(i.g.manifest,function(){return i.F})),u=Date.now()/1e3,N5(i,"manifest"),i.h){P.A(2);break}return L(P,i.l.start(i.N,i.Ta),3);case 3:return i.h=P.h,rY(i.h),L(P,$ke(i),2);case 2:return i.ma.resolve(),d=new Sn("manifestparsed",void 0),L(P,Promise.resolve(),5);case 5:if(i.dispatchEvent(d),i.h.variants.length==0)throw new Ee(2,4,4036);if(rY(i.h),v=NK(i.G,i.h),!v){P.A(6);break}return y=new Sn("trackschanged",void 0),L(P,Promise.resolve(),7);case 7:Kv(i),i.dispatchEvent(y);case 6:w=Date.now()/1e3,T=w-u,i.X.J=T,B(P)}})}function tY(i,u){var d,v,y,w;return Q(function(T){switch(T.g){case 1:return!i.h||i.i?T.return():(N5(i,"drm-engine"),i.ya=Date.now()/1e3,i.i=i.Sa(),i.G.h=i.i,i.i.configure(i.g.drm,function(){return i.F}),d=Ew(i.h.variants),v=!0,i.h&&i.h.presentationTimeline&&(v=i.h.presentationTimeline.W()),L(T,CK(i.i,d,i.h.offlineSessionIds,v),2));case 2:if(Kv(i),!u){T.A(3);break}return L(T,i.i.fc(u),4);case 4:Kv(i);case 3:return L(T,$K(i.G,i.h),5);case 5:if(y=T.h,!y){T.A(0);break}return w=new Sn("trackschanged",void 0),L(T,Promise.resolve(),7);case 7:i.dispatchEvent(w),B(T)}})}l.configure=function(i,u){i=uC(i,u),Vf(this.g,i)},l.getConfiguration=function(){return ln(this.g)};function $ke(i){var u,d,v,y,w;return Q(function(T){if(i.C||(i.C=i.g.adaptationSetCriteriaFactory(),i.C.configure({language:i.g.preferredAudioLanguage,role:i.g.preferredAudioRole,videoRole:i.g.preferredVideoRole,channelCount:i.g.preferredAudioChannelCount,hdrLevel:i.g.preferredVideoHdrLevel,spatialAudio:i.g.preferSpatialAudio,videoLayout:i.g.preferredVideoLayout,audioLabel:i.g.preferredAudioLabel,videoLabel:i.g.preferredVideoLabel,codecSwitchingStrategy:i.g.mediaSource.codecSwitchingStrategy,audioCodec:"",activeAudioCodec:"",activeAudioChannelCount:0,preferredAudioCodecs:i.g.preferredAudioCodecs,preferredAudioChannelCount:i.g.preferredAudioChannelCount})),i.h.variants.length!=1&&i.h.type!="HLS"||(u=nY(i),!u))return T.A(0);for(d=[],v=_([u.video,u.audio]),y=v.next();!y.done;y=v.next())(w=y.value)&&!w.segmentIndex&&d.push(w.createSegmentIndex());return d.length>0?L(T,Promise.all(d),0):T.A(0)})}function Nke(i){var u,d,v,y,w;return Q(function(T){return!i.o&&(u=nY(i))&&(i.o=u),i.o?(d=i.h.presentationTimeline.W(),v=[],y=i.o,y.video&&v.push(B5(i,y.video,d)),y.audio&&v.push(B5(i,y.audio,d)),(w=Xg(i.h.textStreams,i.g.preferredTextLanguage,i.g.preferredTextRole,i.g.preferForcedSubs)[0]||null)&&sK(y.audio,w,i.g)&&(v.push(B5(i,w,d)),i.T=w),L(T,Promise.all(v),0)):T.A(0)})}function nY(i){if(!i.u){var u=i.g.abrFactory;i.u=u(),i.u.configure(i.g.abr)}return u=Ew(i.h.variants),u=i.C.create(u),i.u.setVariants(Array.from(u.values())),i.u.chooseVariant(!0)}function B5(i,u,d){var v,y,w,T,P;return Q(function($){return $.g==1?(v=i.g.streaming.segmentPrefetchLimit||2,y=new eC(v,u,function(j,G,q){return iC(j,G,q||null,i.g.streaming.retryParameters,i.Da,i.F)},!1),i.M.set(u.id,y),u.segmentIndex?$.A(2):L($,u.createSegmentIndex(),2)):(w=typeof i.m=="number"?i.m:0,T=u.segmentIndex.Vb(w),P=null,T&&(P=T.current(),P||(P=T.next().value)),P||(P=Yc(u.segmentIndex)),P?d?P.ba?L($,Oq(y,P.ba),0):$.A(0):L($,Db(y,P.startTime),0):$.A(0))})}l.ll=function(){return this.B},l.destroy=function(){var i=this,u,d,v;return Q(function(y){if(y.g==1)return i.j=!0,!i.l||i.qa?y.A(2):L(y,i.l.stop(),2);if(y.g!=4)return i.u&&i.u.release(),i.I&&!i.wa&&i.I.release(),!i.i||i.aa?y.A(4):L(y,i.i.destroy(),4);if(i.M.size>0&&!i.xa)for(u=_(i.M.values()),d=u.next();!d.done;d=u.next())v=d.value,Xc(v);B(y)})};function rY(i){function u(d){return d.video&&d.audio||d.video&&d.video.codecs.includes(",")}i.variants.some(u)&&(i.variants=i.variants.filter(u))}He("shaka.media.PreloadManager",Du),Du.prototype.destroy=Du.prototype.destroy,Du.prototype.waitForFinish=Du.prototype.ll,Du.prototype.getPrefetchedTextTrack=Du.prototype.Qj,Du.prototype.getPrefetchedVariantTrack=Du.prototype.Rj;function qv(i,u){Hr.call(this);var d=this;this.i=i,this.l=u,this.g=new Map,this.m=[{kd:null,jd:y0,Uc:function(v,y){return zf(d,"enter",v,y)}},{kd:Vb,jd:y0,Uc:function(v,y){return zf(d,"enter",v,y)}},{kd:zb,jd:y0,Uc:function(v,y){return zf(d,"enter",v,y)}},{kd:y0,jd:Vb,Uc:function(v,y){return zf(d,"exit",v,y)}},{kd:y0,jd:zb,Uc:function(v,y){return zf(d,"exit",v,y)}},{kd:Vb,jd:zb,Uc:function(v,y){y?zf(d,"skip",v,y):(zf(d,"enter",v,y),zf(d,"exit",v,y))}},{kd:zb,jd:Vb,Uc:function(v,y){return zf(d,"skip",v,y)}}],this.h=new Ge,this.h.D(this.i,"regionremove",function(v){d.g.delete(v.region)})}x(qv,Hr),qv.prototype.release=function(){this.i=null,this.g.clear(),this.h.release(),this.h=null,Hr.prototype.release.call(this)},qv.prototype.j=function(i,u){if(!this.l||i!=0){this.l=!1;for(var d=_(this.i.h.values()),v=d.next();!v.done;v=d.next()){v=v.value;var y=this.g.get(v),w=iv.endTime?zb:y0;this.g.set(v,w);for(var T=_(this.m),P=T.next();!P.done;P=T.next())P=P.value,P.kd==y&&P.jd==w&&P.Uc(v,u)}}};function zf(i,u,d,v){u=new Sn(u,new Map([["region",d],["seeking",v]])),i.dispatchEvent(u)}var Vb=1,y0=2,zb=3;function Yv(i,u,d){var v,y,w,T,P,$,j;return Q(function(G){switch(G.g){case 1:return v=b0(i),(y=Bke.get(v))?G.return(y):(w=0,T=Do([i],d),U(G,2),T.method="HEAD",L(G,u.request(w,T).promise,4));case 4:P=G.h,y=P.headers["content-type"],V(G,3);break;case 2:if($=z(G),!$||$.code!=1002&&$.code!=1001){G.A(3);break}return T.method="GET",L(G,u.request(w,T).promise,6);case 6:j=G.h,y=j.headers["content-type"];case 3:return G.return(y?y.toLowerCase().split(";").shift():"")}})}function b0(i){return i=new dn(i).Sb.split("/").pop().split("."),i.length==1?"":i.pop().toLowerCase()}var Bke=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 ip={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"},iY=_(Object.keys(ip)),F5=iY.next();!F5.done;F5=iY.next()){var oY=F5.value;ip[oY.toLowerCase()]=ip[oY]}function sY(i,u){if(i.lineBreak)return` `;if(i.nestedCues.length)return i.nestedCues.map(function(T){return sY(T,i)}).join("");if(!i.payload)return i.payload;var d=[],v=i.fontWeight>=Gg,y=i.fontStyle==Kg,w=i.textDecoration.includes(Pf);return v&&d.push(["b"]),y&&d.push(["i"]),w&&d.push(["u"]),y=i.color,y==""&&u&&(y=u.color),v="",(y=aY(y))&&(v+="."+y),y=i.backgroundColor,y==""&&u&&(y=u.backgroundColor),(u=aY(y))&&(v+=".bg_"+u),v&&d.push(["c",v]),d.reduceRight(function(T,P){var $=_(P);return P=$.next().value,$=$.next().value,"<"+P+($===void 0?"":$)+">"+T+""},i.payload)}function aY(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 j5(i,u){var d=[];i=_(lY(i));for(var v=i.next();!v.done;v=i.next())if(v=v.value,v.isContainer)d.push.apply(d,A(j5(v.nestedCues,v)));else{var y=v.clone();y.nestedCues=[],y.payload=sY(v,u),d.push(y)}return d}function lY(i){var u=[];i=_(i);for(var d=i.next(),v={};!d.done;v={ig:void 0},d=i.next())v.ig=d.value,u.some((function(y){return function(w){return mw(y.ig,w)}})(v))||u.push(v.ig);return u}function Fke(i){function u(v){for(var y=5381,w=v.length;w;)y=y*33^v.charCodeAt(--w);return(y>>>0).toString()}if(i.startTime>=i.endTime)return null;var d=new VTTCue(i.startTime,i.endTime,i.payload);d.id=u(i.startTime.toString())+u(i.endTime.toString())+u(i.payload),d.lineAlign=i.lineAlign,d.positionAlign=i.positionAlign,i.size&&(d.size=i.size);try{d.align=i.textAlign}catch{}return i.textAlign=="center"&&d.align!="center"&&(d.align="middle"),i.writingMode=="vertical-lr"?d.vertical="lr":i.writingMode=="vertical-rl"&&(d.vertical="rl"),i.lineInterpretation==1&&(d.snapToLines=!1),i.line!=null&&(d.line=i.line),i.position!=null&&(d.position=i.position),d}function uY(i,u){var d=j5(u),v=[];u=i.cues?Array.from(i.cues):[],d=_(d);for(var y=d.next(),w={};!y.done;w={vd:void 0},y=d.next())w.vd=y.value,!u.some((function(T){return function(P){return P.startTime==T.vd.startTime&&P.endTime==T.vd.endTime&&P.text==T.vd.payload}})(w))&&w.vd.payload&&(y=Fke(w.vd))&&v.push(y);for(u=v.slice().sort(function(T,P){return T.startTime!=P.startTime?T.startTime-P.startTime:T.endTime!=P.endTime?T.endTime-P.startTime:"line"in VTTCue.prototype?v.indexOf(P)-v.indexOf(T):v.indexOf(T)-v.indexOf(P)}),u=_(u),d=u.next();!d.done;d=u.next())i.addCue(d.value)}function U5(i,u){var d=!1;i.mode==="disabled"&&(d=!0,i.mode="hidden");for(var v=0;v-1&&(d.has(u.g)?(v=d.get(u.g).track,v.mode==="disabled"&&(v.mode=u.u?"showing":"hidden")):u.g=-1),u.h=d},this.B=function(){if(!u.o){var d=u.j;u.o=new dr(function(){if(u.o=null,u.j===d){var v=-1,y=!1;if(u.h.has(u.g)){var w=u.h.get(u.g);w.track.mode==="showing"?(v=u.g,y=!0):w.track.mode==="hidden"&&(v=u.g)}if(!y)for(y=_(u.h),w=y.next();!w.done;w=y.next()){var T=_(w.value);if(w=T.next().value,T=T.next().value,T.track.mode==="showing"){v=w;break}else v<0&&T.track.mode==="hidden"&&(v=w)}for(y=_(u.h),w=y.next();!w.done;w=y.next())T=_(w.value),w=T.next().value,T=T.next().value,w!==v&&T.track.mode!=="disabled"&&(T.track.mode="disabled");u.g!==v&&(u.g=v,v>-1&&u.i.kh({id:v})),u.i.qh(v>-1&&u.h.get(v).track.mode==="showing")}}).ia(0)}},this.l.D(i,"loaded",function(){return u.enableTextDisplayer()}),this.enableTextDisplayer()}l=Yo.prototype,l.configure=function(){},l.remove=function(i,u){if(this.i)this.h.has(this.g)&&U5(this.h.get(this.g).track,function(d){return d.startTimei});else return!1;return!0},l.append=function(i){this.h.has(this.g)&&uY(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(v){return["captions","subtitles","forced"].includes(v.kind)}),i){i=null,u=_(u);for(var d=u.next();!d.done;d=u.next())if(d=d.value,d.mode==="showing"){i=null;break}else i||d.mode!=="hidden"||(i=d);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 jke(i){var u=$e();return i.forced&&u.Ha()==="WEBKIT"?"forced":i.kind==="caption"||i.roles&&i.roles.some(function(d){return d.includes("transcribes-spoken-dialog")})&&i.roles.some(function(d){return d.includes("describes-music-and-sound")})?"captions":"subtitles"}He("shaka.text.NativeTextDisplayer",Yo),Yo.prototype.enableTextDisplayer=Yo.prototype.enableTextDisplayer,Yo.prototype.setTextLanguage=Yo.prototype.setTextLanguage,Yo.prototype.setTextVisibility=Yo.prototype.setTextVisibility,Yo.prototype.isTextVisible=Yo.prototype.isTextVisible,Yo.prototype.destroy=Yo.prototype.destroy,Yo.prototype.append=Yo.prototype.append,Yo.prototype.remove=Yo.prototype.remove,Yo.prototype.configure=Yo.prototype.configure;function Ys(i,u){for(jt("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=Ys.prototype,l.configure=function(){},l.remove=function(i,u){return this.g?(U5(this.g,function(d){return d.startTimei}),!0):!1},l.append=function(i){this.g&&uY(this.g,i)},l.destroy=function(){return this.g&&(U5(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&&cY(this),this.g&&(this.g.mode=i?"showing":"hidden")},l.setTextLanguage=function(){},l.enableTextDisplayer=function(){cY(this)};function cY(i){i.h&&!i.g&&(i.g=i.h.addTextTrack("subtitles",i.i),i.g.mode="hidden")}He("shaka.text.SimpleTextDisplayer",Ys),Ys.prototype.enableTextDisplayer=Ys.prototype.enableTextDisplayer,Ys.prototype.setTextLanguage=Ys.prototype.setTextLanguage,Ys.prototype.setTextVisibility=Ys.prototype.setTextVisibility,Ys.prototype.isTextVisible=Ys.prototype.isTextVisible,Ys.prototype.destroy=Ys.prototype.destroy,Ys.prototype.append=Ys.prototype.append,Ys.prototype.remove=Ys.prototype.remove,Ys.prototype.configure=Ys.prototype.configure;function Xs(){}l=Xs.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(){},He("shaka.text.StubTextDisplayer",Xs),Xs.prototype.enableTextDisplayer=Xs.prototype.enableTextDisplayer,Xs.prototype.setTextLanguage=Xs.prototype.setTextLanguage,Xs.prototype.setTextVisibility=Xs.prototype.setTextVisibility,Xs.prototype.isTextVisible=Xs.prototype.isTextVisible,Xs.prototype.destroy=Xs.prototype.destroy,Xs.prototype.append=Xs.prototype.append,Xs.prototype.remove=Xs.prototype.remove,Xs.prototype.configure=Xs.prototype.configure;function Zs(i,u){var d=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 dr(function(){d.j.paused||op(d)}),Hb(this),this.l=new Map,this.i=new Ge,this.i.D(document,"fullscreenchange",function(){op(d,!0)}),this.i.D(this.j,"seeking",function(){op(d,!0)}),this.i.D(this.j,"ratechange",function(){Hb(d)}),this.i.D(this.j,"resize",function(){var v=d.j,y=v.videoWidth;v=v.videoHeight,y&&v?d.u=y/v:d.u=null}),this.F=null,"ResizeObserver"in o&&(this.F=new ResizeObserver(function(){op(d,!0)}),this.F.observe(this.g)),this.G=new Map}l=Zs.prototype,l.configure=function(i){this.C=i,Hb(this),op(this,!0)},l.append=function(i){var u=[].concat(A(this.h));i=_(lY(i));for(var d=i.next(),v={};!d.done;v={jg:void 0},d=i.next())v.jg=d.value,u.some((function(y){return function(w){return mw(w,y.jg)}})(v))||this.h.push(v.jg);this.h.length&&Hb(this),op(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 d=this.h.length;return this.h=this.h.filter(function(v){return v.startTime=u}),op(this,d>this.h.length),this.h.length||Hb(this),!0},l.isTextVisible=function(){return this.m},l.setTextVisibility=function(i){(this.m=i)?(this.g.parentElement||this.o.appendChild(this.g),op(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 Hb(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 Uke(i,u){for(;u!=null;){if(u==i.g)return!0;u=u.parentElement}return!1}function dY(i,u,d,v,y){var w=!1,T=[],P=[];u=_(u);for(var $=u.next();!$.done;$=u.next()){$=$.value,y.push($);var j=i.l.get($),G=$.startTime<=v&&$.endTime>v,q=j?j.gj:null;j&&(T.push(j.kg),j.$c&&T.push(j.$c),G||(w=!0,i.l.delete($),j=null)),G&&(P.push($),j?Uke(i,q)||(w=!0):(Vke(i,$,y),j=i.l.get($),q=j.gj,w=!0)),$.nestedCues.length>0&&q&&dY(i,$.nestedCues,q,v,y),y.pop()}if(w){for(v=_(T),y=v.next();!y.done;y=v.next())y=y.value,y.parentElement&&y.parentElement.removeChild(y);for(P.sort(function(ie,ue){return ie.startTime!=ue.startTime?ie.startTime-ue.startTime:ie.endTime-ue.endTime}),P=_(P),v=P.next();!v.done;v=P.next())v=i.l.get(v.value),v.$c?(v.$c.contains(d)&&v.$c.removeChild(d),d.appendChild(v.$c),v.$c.appendChild(v.kg)):d.appendChild(v.kg)}}function op(i,u){if(i.g){var d=i.j.currentTime;if(!i.m||u!==void 0&&u){u=_(i.G.values());for(var v=u.next();!v.done;v=u.next())Ib(v.value);Ib(i.g),i.l.clear(),i.G.clear()}i.m&&dY(i,i.h,i.g,d,[])}}function Vke(i,u,d){var v=d.length>1,y=v?"span":"div";u.lineBreak&&(y="br"),u.rubyTag&&(y=u.rubyTag),v=!v&&u.nestedCues.length>0;var w=document.createElement(y);if(y!="br"&&Hke(i,w,u,d,v),d=null,u.region&&u.region.id){var T=u.region,P=i.u===4/3?2.5:1.9;if(d=T.id+"_"+T.width+"x"+T.height+(T.heightUnits==bs?"%":"px")+"-"+T.viewportAnchorX+"x"+T.viewportAnchorY+(T.viewportAnchorUnits==bs?"%":"px"),i.G.has(d))d=i.G.get(d);else{y=document.createElement("span");var $=T.heightUnits==bs?"%":"px",j=T.widthUnits==bs?"%":"px",G=T.viewportAnchorUnits==bs?"%":"px";y.id="shaka-text-region---"+d,y.classList.add("shaka-text-region"),y.style.position="absolute";var q=T.height,ie=T.width;T.heightUnits===2&&(q=T.height*5.33,$="%"),T.widthUnits===2&&(ie=T.width*P,j="%"),y.style.height=q+$,y.style.width=ie+j,T.viewportAnchorUnits===2?(P=T.viewportAnchorY/75*100,$=T.viewportAnchorX/(i.u===4/3?160:210)*100,P-=T.regionAnchorY*q/100,$-=T.regionAnchorX*ie/100,y.style.top=P+"%",y.style.left=$+"%"):(y.style.top=T.viewportAnchorY-T.regionAnchorY*q/100+G,y.style.left=T.viewportAnchorX-T.regionAnchorX*ie/100+G),T.heightUnits!==0&&T.widthUnits!==0&&T.viewportAnchorUnits!==0&&(T=Math.max(0,Math.min(100-(parseInt(y.style.width.slice(0,-1),10)||0),parseInt(y.style.left.slice(0,-1),10)||0)),y.style.top=Math.max(0,Math.min(100-(parseInt(y.style.height.slice(0,-1),10)||0),parseInt(y.style.top.slice(0,-1),10)||0))+"%",y.style.left=T+"%"),y.style.display="flex",y.style.flexDirection="column",y.style.alignItems="center",y.style.justifyContent=u.displayAlign=="before"?"flex-start":u.displayAlign=="center"?"center":"flex-end",i.G.set(d,y),d=y}}y=w,v&&(y=document.createElement("span"),y.classList.add("shaka-text-wrapper"),y.style.backgroundColor=u.backgroundColor,y.style.lineHeight="normal",w.appendChild(y)),i.l.set(u,{kg:w,gj:y,$c:d})}function zke(i){var u=i.direction,d=i.positionAlign;return i=i.textAlign,d!==yw?d:i==="left"||i==="start"&&u===ub||i==="end"&&u==="rtl"?"line-left":i==="right"||i==="start"&&u==="rtl"||i==="end"&&u===ub?"line-right":"center"}function Hke(i,u,d,v,y){var w=u.style,T=d.nestedCues.length==0,P=v.length>1;w.whiteSpace="pre-wrap";var $=d.payload.replace(/\s+$/g,function(G){return" ".repeat(G.length)});if(w.webkitTextStrokeColor=d.textStrokeColor,w.webkitTextStrokeWidth=d.textStrokeWidth,w.color=d.color,w.direction=d.direction,w.opacity=d.opacity,w.paddingLeft=V5(d.linePadding,d,i.o),w.paddingRight=V5(d.linePadding,d,i.o),w.textCombineUpright=d.textCombineUpright,w.textShadow=d.textShadow,d.backgroundImage)w.backgroundImage="url('"+d.backgroundImage+"')",w.backgroundRepeat="no-repeat",w.backgroundSize="contain",w.backgroundPosition="center",d.backgroundColor&&(w.backgroundColor=d.backgroundColor),w.width="100%",w.height="100%";else{if(d.nestedCues.length)var j=u;else j=document.createElement("span"),u.appendChild(j);d.border&&(j.style.border=d.border),y||((u=Wke(v,function(G){return G.backgroundColor}))?j.style.backgroundColor=u:$&&(j.style.backgroundColor="rgba(0, 0, 0, 0.8)")),$&&(j.setAttribute("translate","no"),j.textContent=$)}P&&!v[v.length-1].isContainer?w.display="inline":(w.display="flex",w.flexDirection="column",w.alignItems="center",d.textAlign=="left"||d.textAlign=="start"?(w.width="100%",w.alignItems="start"):(d.textAlign=="right"||d.textAlign=="end")&&(w.width="100%",w.alignItems="end"),w.justifyContent=d.displayAlign=="before"?"flex-start":d.displayAlign=="center"?"center":"flex-end"),T||(w.margin="0"),w.fontFamily=d.fontFamily,w.fontWeight=d.fontWeight.toString(),w.fontStyle=d.fontStyle,w.letterSpacing=d.letterSpacing,v=i.C?i.C.fontScaleFactor:1,(v!==1||d.fontSize)&&(w.fontSize=V5(d.fontSize||"1em",d,i.o,v)),v=d.line,v!=null&&(T=d.lineInterpretation,T==cb&&(T=1,P=16,i.u&&i.u<1&&(P=32),v=v<0?100+v/P*100:v/P*100),T==1&&(w.position="absolute",d.writingMode==Mv?(w.width="100%",d.lineAlign==Dv?w.top=v+"%":d.lineAlign=="end"&&(w.bottom=100-v+"%")):d.writingMode=="vertical-lr"?(w.height="100%",d.lineAlign==Dv?w.left=v+"%":d.lineAlign=="end"&&(w.right=100-v+"%")):(w.height="100%",d.lineAlign==Dv?w.right=v+"%":d.lineAlign=="end"&&(w.left=100-v+"%")))),w.lineHeight=d.lineHeight,i=zke(d),i=="line-left"?(w.cssFloat="left",d.position!==null&&(w.position="absolute",d.writingMode==Mv?(w.left=d.position+"%",w.width="auto"):w.top=d.position+"%")):i=="line-right"?(w.cssFloat="right",d.position!==null&&(w.position="absolute",d.writingMode==Mv?(w.right=100-d.position+"%",w.width="auto"):w.bottom=d.position+"%")):d.position!==null&&d.position!=50&&(w.position="absolute",d.writingMode==Mv?(w.left=d.position+"%",w.width="auto"):w.top=d.position+"%",d.size&&(w.transform="translateX(-50%)")),w.textAlign=d.textAlign,w.textDecoration=d.textDecoration.join(" "),w.writingMode=d.writingMode,"writingMode"in document.documentElement.style&&w.writingMode==d.writingMode||(w.webkitWritingMode=d.writingMode),d.size&&(d.writingMode==Mv?w.width=d.size+"%":w.height=d.size+"%")}function V5(i,u,d,v){v=v===void 0?1:v;var y=(y=new RegExp(/(\d*\.?\d+)([a-z]+|%+)/).exec(i))?{value:Number(y[1]),unit:y[2]}:null;if(!y)return i;switch(i=y.unit,v*=y.value,i){case"%":return v/100*d.clientHeight/u.cellResolution.rows+"px";case"c":return d.clientHeight*v/u.cellResolution.rows+"px";default:return v+i}}function Wke(i,u){for(var d=i.length-1;d>=0;d--){var v=u(i[d]);if(v||v===0)return v}return null}He("shaka.text.UITextDisplayer",Zs),Zs.prototype.enableTextDisplayer=Zs.prototype.enableTextDisplayer,Zs.prototype.setTextLanguage=Zs.prototype.setTextLanguage,Zs.prototype.setTextVisibility=Zs.prototype.setTextVisibility,Zs.prototype.isTextVisible=Zs.prototype.isTextVisible,Zs.prototype.remove=Zs.prototype.remove,Zs.prototype.destroy=Zs.prototype.destroy,Zs.prototype.append=Zs.prototype.append,Zs.prototype.configure=Zs.prototype.configure;function Gke(i,u){function d(w){for(var T=w,P=_(u),$=P.next();!$.done;$=P.next())$=$.value,$.end&&$.start "+d(y.endTime)+(function(w){var T=[];switch(w.textAlign){case"left":T.push("align:left");break;case"right":T.push("align:right");break;case Od:T.push("align:middle");break;case"start":T.push("align:start");break;case"end":T.push("align:end")}switch(w.writingMode){case"vertical-lr":T.push("vertical:lr");break;case"vertical-rl":T.push("vertical:rl")}return T.length?" "+T.join(" "):""})(y)+` `,i+=y.payload+` `;return i}He("shaka.text.WebVttGenerator",function(){});function z5(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 Ge,this.G=[],this.h=null}z5.prototype.setMediaElement=function(i){this.h=i,Zke(this)},z5.prototype.configure=function(i){this.g=i,Qke(this)};function Kke(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},fY(i),i.m={},i.h=null,i.i.Pa()}function qke(i,u){i.o=u,i.o?i.l==SC?i.l=kC:i.l==wC&&(i.l=CC):i.l==kC?i.l=SC:i.l==CC&&(i.l=wC)}function Yke(i,u){if(i.g&&i.g.enabled&&(Qs(i,"ps",{dd:"d"}),i.h&&i.h.autoplay)){var d=i.h.play();d&&d.then(function(){i.H=u}).catch(function(){i.H=0})}}function Xke(i,u,d){try{if(!i.g.enabled)return u;var v=H5(i);e:{switch(d.toLowerCase()){case"audio/mp4":case"audio/webm":case"audio/ogg":case"audio/mpeg":case"audio/aac":case"audio/flac":case"audio/wav":var y=gC;break e;case"video/webm":case"video/mp4":case"video/mpeg":case"video/mp2t":y=bC;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":y=_Y;break e}y=void 0}v.ot=y,v.su=!0;var w=Wb(v);return mC(u,w)}catch(T){return yt("CMCD_SRC_ERROR","Could not generate src CMCD data.",T),u}}function Zke(i){i.i.D(i.h,"playing",function(){i.B||(i.B=Date.now()),Qs(i,"ps",{dd:"p"})}),i.i.D(i.h,"volumechange",function(){Qs(i,i.h.muted?"m":"um")}),i.i.D(i.h,"play",function(){i.u||(i.u=Date.now(),Qs(i,"ps",{dd:"s"}))}),i.i.D(i.h,"pause",function(){Qs(i,"ps",{dd:"a"})}),i.i.D(i.j,"buffering",function(){Qs(i,"ps",{dd:"w"})}),i.i.D(i.h,"seeking",function(){return Qs(i,"ps",{dd:"k"})}),i.i.D(document,"fullscreenchange",function(){Qs(i,document.fullscreenElement?"pe":"pc")});var u=i.h;(u.webkitPresentationMode||u.webkitSupportsFullscreen)&&i.i.D(u,"webkitpresentationmodechanged",function(){u.webkitPresentationMode?Qs(i,u.webkitPresentationMode!=="inline"?"pe":"pc"):u.webkitSupportsFullscreen&&Qs(i,u.webkitDisplayingFullscreen?"pe":"pc")}),i.i.D(i.h,"enterpictureinpicture",function(){Qs(i,"pe")}),i.i.D(i.h,"leavepictureinpicture",function(){Qs(i,"pc")}),"documentPictureInPicture"in o&&i.i.D(o.documentPictureInPicture,"enter",function(d){Qs(i,"pe"),i.i.Ba(d.window,"pagehide",function(){Qs(i,"pc")})}),i.i.D(document,"visibilitychange",function(){document.hidden?Qs(i,"b",{bg:!0}):Qs(i,"b")}),i.i.D(i.j,"complete",function(){Qs(i,"ps",{dd:"e"})})}function Qke(i){fY(i);var u=hY(i);u=_(u);for(var d=u.next();!d.done;d=u.next())if(d=d.value.timeInterval,d===void 0&&(d=dwe),d>=1){var v=new dr(function(){return Qs(i,fwe)});v.Ea(d),i.G.push(v)}}function fY(i){if(i.G)for(var u=_(i.G),d=u.next();!d.done;d=u.next())d.value.stop();i.G=[]}function hY(i){return(i=i.g.targets)?i.filter(function(u){return u.mode===xY&&u.enabled}):[]}function pY(i){return(i=i.g.targets)?i.filter(function(u){return u.mode===CY&&u.enabled===!0}):[]}function H5(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 Qs(i,u,d){if(d=d===void 0?{}:d,u=Object.assign({e:u,ts:Date.now()},d),u=K5(i,u,xY),d=i.g.targets,!(i.g.version0&&!T.includes(P))||vY(i,w,y)}}}function _0(i,u,d){if(i.g.enabled){d=K5(i,d,wY);var v=mY({mode:wY,useHeaders:i.g.useHeaders,includeKeys:i.g.includeKeys||[]});i.m[v]||(i.m[v]={request:1,response:1}),d.sn=i.m[v].request++,v=i.g.includeKeys||[];var y=i.g.version==Y5?Array.from(new Set([].concat(A(X5),A(swe)))):SY;v=W5(v,y),d=G5(d,v),Jke(d,u,i.g.useHeaders)}}function vY(i,u,d,v){var y=fc(),w=d.url;if(d.useHeaders){if(u=bY(u),!Object.keys(u).length)return;v&&Object.assign(v.headers,u),v=Do([w],y),Object.assign(v.headers,u)}else{if(u=Wb(u),!u)return;w=mC(w,u),v&&(v.uri=w),v=Do([w],y)}i.j.Wb().request(9,v)}function Jke(i,u,d){if(d)i=bY(i),Object.keys(i).length&&Object.assign(u.headers,i);else{var v=Wb(i);v&&(u.uris=u.uris.map(function(y){return mC(y,v)}))}}function W5(i,u){if(!i||i.length===0)return u;for(var d=_(i),v=d.next();!v.done;v=d.next())u.includes(v.value);return i=i.filter(function(y){return u.includes(y)})}function G5(i,u){return Object.keys(i).reduce(function(d,v){return u.includes(v)&&(d[v]=i[v]),d},{})}function ewe(i){if(i.type===0)return rwe;if(i=i.stream){var u=i.type;if(u=="video")return i.codecs&&i.codecs.includes(",")?bC:yC;if(u=="audio")return gC;if(u=="text")return i.mimeType==="application/mp4"?_C:q5}}function mY(i){var u=Object.keys(i).sort().reduce(function(d,v){return v!=="enabled"&&(d[v]=i[v]),d},{});return JSON.stringify(u)}function twe(i,u){if(u=i.j.Fc()[u],!u.length)return NaN;var d=i.h?i.h.currentTime:0;return(i=u.find(function(v){return v.start<=d&&v.end>=d}))?(i.end-d)*1e3:NaN}function gY(i,u){if(u=i.j.Fc()[u],!u.length)return 0;var d=i.h?i.h.currentTime:0;return(i=u.find(function(v){return v.start<=d&&v.end>=d}))?(i.end-d)*1e3:0}function nwe(i,u){var d=i.j.mc();if(!d.length)return NaN;i=d[0],d=_(d);for(var v=d.next();!v.done;v=d.next())v=v.value,v.type==="variant"&&v.bandwidth>i.bandwidth&&(i=v);switch(u){case yC:return i.videoBandwidth||NaN;case gC:return i.audioBandwidth||NaN;default:return i.bandwidth}}function yY(i,u,d){var v=u.segment,y=0;v&&(y=v.endTime-v.startTime),y={d:y*1e3,st:i.j.W()?owe:iwe},y.ot=ewe(u);var w=y.ot===yC||y.ot===gC||y.ot===bC||y.ot===_C;if(u=u.stream){var T=i.j.Ob();if(w&&(y.bl=twe(i,u.type),y.ot!==_C)){var P=gY(i,u.type);y.dl=T?P/Math.abs(T):P}if(u.bandwidth&&(y.br=u.bandwidth/1e3),u.segmentIndex&&v){if((T=u.segmentIndex.Vb(v.endTime,!0,T<0))&&(T=T.next().value)&&T!=v){if(d&&!mt(v.P(),T.P())){var $=T.P()[0];P=new URL($);var j=new URL(d);if(P.origin!==j.origin)d=$;else{d=P.pathname.split("/").slice(1),$=j.pathname.split("/").slice(1,-1),j=Math.min(d.length,$.length);for(var G=0;G0&&d<=1?i*(1-d)+u*d:i};function EY(i){return i?i.toLowerCase()==="false"?!1:/^[-0-9]/.test(i)?parseInt(i,10):i.replace(/["]+/g,""):!0}He("shaka.util.CmsdManager",Ou),Ou.prototype.getBandwidthEstimate=Ou.prototype.getBandwidthEstimate,Ou.prototype.getRoundTripTime=Ou.prototype.Uj,Ou.prototype.getResponseDelay=Ou.prototype.Tj,Ou.prototype.getEstimatedThroughput=Ou.prototype.$h,Ou.prototype.getMaxBitrate=Ou.prototype.bi;var TY="etp",AY="mb",IY="rd",LY="rtt";function PY(){this.g=null,this.h=[]}function Z5(i,u){return Q(function(d){if(d.g==1)return i.g?L(d,new Promise(function(v){return i.h.push(v)}),2):d.A(2);i.g=u,B(d)})}PY.prototype.release=function(){this.h.length>0?this.h.shift()():this.g=null};function Ot(i,u,d){u=u===void 0?null:u,Hr.call(this);var v=this;this.m=LC,this.h=null,this.xe=u,this.$=!1,this.Ie=new Ge,this.ye=new Ge,this.j=new Ge,this.ac=new Ge,this.yc=new Ge,this.G=this.H=this.F=this.J=null,this.Je=0,this.ma=new PY,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=Zc(this),this.Zf=Zq(),this.V=null,this.Ke=-1,this.Zb=null,this.xa={width:1/0,height:1/0},this.Ae=new XP(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=[],d&&d(this),this.M=new z5(this,this.g.cmcd),this.wa=new Ou(this.g.cmsd),this.J=BY(this),this.Jd=this.qa=this.Da=this.C=null,this.ag=!1,this.Yf=[],this.$f=new dr(function(){return Q(function(y){if(y.g==1)return v.qa?L(y,v.fc(v.Jd,!0),3):y.A(0);if(y.g!=4)return L(y,v.load(v.qa),4);v.ag?v.Jd.pause():v.Jd.play(),v.qa=null,v.ag=!1,B(y)})}),PC&&(this.C=PC(),this.C.configure(this.g.ads),this.yc.D(this.C,"ad-content-pause-requested",function(y){var w;return Q(function(T){if(T.g==1)return v.$f.stop(),v.qa?T.A(0):(v.Jd=v.h,v.ag=v.be(),w=y.saveLivePosition||!1,L(T,v.Uh(!0,w),3));v.qa=T.h,B(T)})}),this.yc.D(this.C,"ad-content-resume-requested",function(y){if(y=y.offset||0,v.qa){var w=v.qa;w.m&&y&&(typeof w.m=="number"?w.m+=y:w.m.setTime(w.m.getTime()+y*1e3))}v.$f.ia(.1)}),this.yc.D(this.C,"ad-content-attach-requested",function(){return Q(function(y){return v.h||!v.Jd?y.A(0):L(y,v.fc(v.Jd,!0),0)})})),RC&&(this.Da=RC(this),this.Da.configure(this.g.queue)),this.Ie.D(o,"online",function(){oR(v),v.fh()}),this.De=new dr(function(){for(var y=Date.now()/1e3,w=!1,T=!0,P=_(v.i.variants),$=P.next();!$.done;$=P.next())$=$.value,$.disabledUntilTime>0&&$.disabledUntilTime<=y&&($.disabledUntilTime=0,w=!0),$.disabledUntilTime>0&&(T=!1);T&&v.De.stop(),w&&sp(v,!1,void 0,!1,!1)}),this.Ta=null,i&&(jt("Player w/ mediaElement","Please migrate from initializing Player with a mediaElement; use the attach method instead."),this.fc(i,!0)),this.u=null}x(Ot,Hr);function xC(i){i.T!=null&&(Yl(i.T),i.T.release(),i.T=null)}function hwe(i,u,d){d||u.lcevc.enabled?(xC(i),i.T==null&&(i.T=new jo(i.h,i.Kh,u.lcevc,d),i.H&&(i.H.H=i.T))):xC(i)}function hi(i,u){return new Sn(i,u)}l=Ot.prototype,l.destroy=function(){var i=this,u;return Q(function(d){switch(d.g){case 1:return i.m==hc?d.return():(xC(i),u=i.detach(),i.m=hc,L(d,u,2));case 2:return L(d,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){d.A(4);break}return L(d,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),Hr.prototype.release.call(i),B(d)}})};function RY(i,u){aX.set(i,u)}function S0(i,u){i.dispatchEvent(hi("onstatechange",new Map().set("state",u)))}l.fc=function(i,u){u=u===void 0?!0:u;var d=this,v,y,w;return Q(function(T){switch(T.g){case 1:if(d.m==hc)throw new Ee(2,7,7e3);if(v=d.h&&d.h==i,!d.h||d.h==i){T.A(2);break}return L(T,d.detach(),2);case 2:return L(T,Q5(d,"attach"),4);case 4:if(T.h)return T.return();if(U(T,5,6),v||(S0(d,"attach"),y=function(){var P=sR(d,!1);P&&k0(d,P)},d.ye.D(i,"error",y),d.h=i,d.M&&d.M.setMediaElement(i)),$e(),!u||!Nd()||d.H){T.A(6);break}return L(T,J5(d),6);case 6:Y(T),d.ma.release(),oe(T,0);break;case 5:return w=z(T),L(T,d.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 Q(function(d){if(d.g==1){if(u.m==hc)throw new Ee(2,7,7e3);return L(d,u.Bc(!1,i),2)}if(d.g!=3)return L(d,Q5(u,"detach"),3);if(d.h)return d.return();try{u.h&&(u.ye.Pa(),u.h=null),S0(u,"detach"),u.C&&!i&&u.C.release()}finally{u.ma.release()}B(d)})};function Q5(i,u){var d;return Q(function(v){return v.g==1?(d=++i.Je,L(v,Z5(i.ma,u),2)):d!=i.Je?(i.ma.release(),v.return(!0)):v.return(!1)})}l.Bc=function(i,u){i=i===void 0?!0:i,u=u===void 0?!1:u;var d=this,v,y,w,T,P,$,j,G,q,ie,ue,he,me,ge,Me,Ie;return Q(function(Ve){switch(Ve.g){case 1:return d.m!=hc&&(d.m=LC),L(Ve,Q5(d,"unload"),2);case 2:return Ve.h?Ve.return():(W(Ve,3),d.Sa=!1,S0(d,"unload"),xC(d),v=d.ze.map(function(tt){return tt()}),d.ze=[],L(Ve,Promise.all(v),5));case 5:if(d.dispatchEvent(hi("unloading")),d.we&&(d.we.release(),d.we=null),d.ya&&(d.ya.release(),d.ya=null),d.ib&&(d.ib.release(),d.ib=null),d.h&&(d.j.Pa(),d.ac.Pa()),d.De.stop(),d.ob&&(d.ob.release(),d.ob=null),d.Fa&&(d.Fa.stop(),d.Fa=null),!d.I){Ve.A(6);break}return L(Ve,d.I.stop(),7);case 7:d.I=null,d.xc=null;case 6:if(d.o&&d.o.stop(),!d.l){Ve.A(8);break}return L(Ve,d.l.destroy(),9);case 9:d.l=null;case 8:if(d.N&&(d.N.release(),d.N=null),d.G&&(d.G.release(),d.G=null),o.shakaMediaKeysPolyfill!=="webkit"||!d.F){Ve.A(10);break}return L(Ve,d.F.destroy(),11);case 11:d.F=null;case 10:if(!d.H){Ve.A(12);break}return L(Ve,d.H.destroy(),13);case 13:d.H=null;case 12:if(d.C&&!u&&d.C.onAssetUnload(),d.qa&&!u&&(d.qa.destroy(),d.qa=null),u||d.$f.stop(),d.M&&Kke(d.M),d.wa&&(d.wa.g=null),!d.u){Ve.A(14);break}return L(Ve,d.u.destroy(),15);case 15:d.u=null;case 14:if(d.$=!1,d.h){for(y=_(d.Yf),w=y.next();!w.done;w=y.next())T=w.value,T.src.startsWith("blob:")&&URL.revokeObjectURL(T.src),T.remove();d.Yf=[],Ww(d.h)&&d.h.load()}if(!d.F){Ve.A(16);break}return L(Ve,d.F.destroy(),17);case 17:d.F=null;case 16:if(d.Ta&&d.X!=d.Ta.rd()&&(d.Ta.j||d.Ta.destroy(),d.Ta=null),d.X=null,d.aa=null,d.R=null,d.i){for(P=_(d.i.variants),$=P.next();!$.done;$=P.next())for(j=$.value,G=_([j.audio,j.video]),q=G.next();!q.done;q=G.next())(ie=q.value)&&ie.segmentIndex&&ie.segmentIndex.release();for(ue=_(d.i.textStreams),he=ue.next();!he.done;he=ue.next())me=he.value,me.segmentIndex&&me.segmentIndex.release()}for(d.g&&d.g.streaming.clearDecodingCache&&(Tw.clear(),Zg.clear()),d.i=null,d.B=new vC,d.Jh=null,d.Zb=null,d.V=null,d.Ke=-1,d.Ge=[],ge=_(d.uc.values()),Me=ge.next();!Me.done;Me=ge.next())Ie=Me.value,Ie.stop();d.uc.clear(),d.kb=[],d.Xf=-1,d.J&&d.J.Qh(),Gb(d);case 3:Y(Ve),d.ma.release(),oe(Ve,4);break;case 4:if($e(),i&&Nd()&&!d.H&&d.h)return L(Ve,J5(d),0);Ve.A(0)}})},l.kl=function(i){this.O=i},l.load=function(i,u,d){u=u===void 0?null:u;var v=this,y,w,T,P,$,j,G,q,ie,ue,he,me,ge,Me;return Q(function(Ie){switch(Ie.g){case 1:if(v.m==hc)throw new Ee(2,7,7e3);if(y=null,w="",i instanceof Du){if(i.j)throw new Ee(2,7,7006);y=i,w=y.rd()||""}else w=i||"";return L(Ie,Z5(v.ma,"load"),2);case 2:if(v.ma.release(),!v.h)throw new Ee(2,7,7002);if(!v.X){Ie.A(3);break}return v.X=w,L(Ie,v.Bc(!1),3);case 3:if(T=++v.Je,P=function(){return Q(function(Ve){if(Ve.g==1)return v.Je==T?Ve.A(0):y?L(Ve,y.destroy(),3):Ve.A(3);throw new Ee(2,7,7e3)})},$=function(Ve,tt){return Q(function(gt){switch(gt.g){case 1:return W(gt,2),L(gt,Z5(v.ma,tt),4);case 4:return L(gt,P(),5);case 5:return L(gt,Ve(),6);case 6:return L(gt,P(),7);case 7:y&&v.g&&(y.g=v.g);case 2:Y(gt),v.ma.release(),oe(gt,0)}})},U(Ie,5,6),u==null&&y&&(u=y.getStartTime()),v.O=u,v.Sa=!1,v.dispatchEvent(hi("loading")),y){d=y.V,Ie.A(8);break}if(d){Ie.A(8);break}return L(Ie,$(function(){return Q(function(Ve){if(Ve.g==1)return L(Ve,$Y(v,w),2);d=Ve.h,B(Ve)})},"guessMimeType_"),8);case 8:if(j=!!y,y){eY(y,v),v.B=y.getStats(),Ie.A(11);break}return L(Ie,DY(v,w,u,d,!0,v.g),12);case 12:(y=Ie.h)?(y.F=!1,eY(y,v),v.B=y.getStats(),y.start(),y.B.catch(function(){})):v.B=new vC;case 11:return G=!y,q=Date.now()/1e3,v.B=y?y.getStats():new vC,v.X=w,v.aa=d||null,Gb(v),ie=function(){var Ve=v.h?v.h.buffered:null;return{start:QK(Ve)||0,end:Hw(Ve)||0}},v.ya=new Mb(ie),v.ya.addEventListener("regionadd",function(Ve){eR(v,Ve.region,"metadataadded")}),G?L(Ie,$(function(){return Q(function(Ve){return L(Ve,gwe(v,d),0)})},"initializeSrcEqualsDrmInner_"),23):(v.ib=new Mb(ie),L(Ie,$(function(){return Q(function(Ve){if(Ve.g==1)return L(Ve,Promise.race([y.ma,y.B]),2);v.xc=y.H;var tt=y;tt.qa=!0,v.I=tt.l,v.i=y.Hg(),B(Ve)})},"waitForFinish"),15));case 15:if(v.H){Ie.A(16);break}return L(Ie,$(function(){return Q(function(Ve){return L(Ve,J5(v),0)})},"initializeMediaSourceEngineInner_"),16);case 16:return v.i&&v.i.textStreams.length&&(v.u.enableTextDisplayer?v.u.enableTextDisplayer():jt("Text displayer w/ enableTextDisplayer",'Text displayer should have a "enableTextDisplayer" method!')),L(Ie,$(function(){return Q(function(Ve){return L(Ve,y.B,0)})},"waitForFinish"),18);case 18:if(v.g=y.getConfiguration(),v.Ae=y.G,v.I&&v.I.setMediaElement&&v.h&&v.I.setMediaElement(v.h),v.we=Rke(y),v.ue=y.Fa,(ue=y.C)&&(v.K=ue),j&&v.h&&v.h.nodeName==="AUDIO"&&(pwe(v),v.configure("manifest.disableVideo",!0)),y.i){Ie.A(19);break}return L(Ie,$(function(){return Q(function(Ve){return L(Ve,tY(y,v.h),0)})},"drmEngine_.init"),19);case 19:return v.F=Mke(y),L(Ie,$(function(){return Q(function(Ve){return L(Ve,v.F.fc(v.h),0)})},"drmEngine_.attach"),21);case 21:return he=v.g.abrFactory,v.o&&v.Ce==he||(v.Ce=he,v.o&&v.o.release(),v.o=he(),typeof v.o.setMediaElement!="function"&&(jt("AbrManager w/o setMediaElement","Please use an AbrManager with setMediaElement function."),v.o.setMediaElement=function(){}),typeof v.o.setCmsdManager!="function"&&(jt("AbrManager w/o setCmsdManager","Please use an AbrManager with setCmsdManager function."),v.o.setCmsdManager=function(){}),typeof v.o.trySuggestStreams!="function"&&(jt("AbrManager w/o trySuggestStreams","Please use an AbrManager with trySuggestStreams function."),v.o.trySuggestStreams=function(){}),v.o.configure(v.g.abr)),me=Dke(y),ge=y.o,L(Ie,$(function(){return Q(function(Ve){return L(Ve,mwe(v,q,ge,me),0)})},"loadInner_"),22);case 22:Pke(y),v.aa&&$e().aj()&&fb(v.aa)&&w2e(v.H,v.X,v.aa),Ie.A(14);break;case 23:return L(Ie,$(function(){return Q(function(Ve){return L(Ve,ywe(v,q,d),0)})},"srcEqualsInner_"),14);case 14:v.dispatchEvent(hi("loaded"));case 6:if(Y(Ie),!y){Ie.A(25);break}return L(Ie,y.destroy(),25);case 25:v.Ta=null,oe(Ie,0);break;case 5:if(Me=z(Ie),!Me||Me.code==7e3){Ie.A(27);break}return L(Ie,v.Bc(!1),27);case 27:throw Me}})};function pwe(i){for(var u=_(i.i.variants),d=u.next();!d.done;d=u.next())d=d.value,d.video&&(d.video.closeSegmentIndex(),d.video=null),d.bandwidth=d.audio&&d.audio.bandwidth?d.audio.bandwidth:0;i.i.variants=i.i.variants.filter(function(v){return v.audio})}l.dj=function(i,u){i=i===void 0?!0:i,u=u===void 0?!1:u;var d=this,v;return Q(function(y){return y.g==1?L(y,MY(d),2):y.g!=3?(v=y.h,L(y,d.Bc(i,u),3)):y.return(v)})},l.Uh=function(i,u){i=i===void 0?!1:i,u=u===void 0?!1:u;var d=this,v;return Q(function(y){return y.g==1?L(y,MY(d,u),2):y.g!=3?(v=y.h,L(y,d.detach(i),3)):y.return(v)})};function MY(i,u){u=u===void 0?!1:u;var d,v,y;return Q(function(w){if(w.g==1)return d=null,i.i&&i.I&&i.xc&&i.X&&i.g?(v=i.h.currentTime,i.W()&&!u&&(v=null),L(w,OY(i,i.X,v,i.aa,i.g,!0,!1),3)):w.A(2);if(w.g!=2){d=w.h,i.Ee.push(d),i.I&&i.I.setMediaElement&&i.I.setMediaElement(null),(y=i.l?i.l.o:null)&&(d.o=y);var T=d,P=i.I,$=i.xc;T.h=i.i,T.l=P,T.H=$,d.C=i.K,d.start(),i.i=null,i.I=null,i.xc=null,i.o=null,i.Ce=null}return w.return(d)})}l.preload=function(i,u,d,v){u=u===void 0?null:u;var y=this,w,T;return Q(function(P){return P.g==1?(w=Zc(y),Vf(w,v||y.g,Zc(y)),L(P,DY(y,i,u,d,!1,w),2)):((T=P.h)?T.start():k0(y,new Ee(2,7,7005)),P.return(T))})},l.ng=function(){var i=this,u,d,v,y;return Q(function(w){for(u=[],d=_(i.Ee),v=d.next();!v.done;v=d.next())y=v.value,y.j||u.push(y.destroy());return i.Ee=[],L(w,Promise.all(u),0)})};function DY(i,u,d,v,y,w){y=y===void 0?!1:y;var T,P,$;return Q(function(j){return j.g==1?v?j.A(2):L(j,$Y(i,u),3):(j.g!=2&&(v=j.h),vwe(i,v)?j.return(null):(T=w||i.g,P=!1,y&&i.h&&i.h.nodeName==="AUDIO"&&(P=!0),$=OY(i,u,d,v||null,T,!y,P),$=y?$.then(function(G){return G.F=!1,G}):$.then(function(G){return i.Ee.push(G),G}),j.return($)))})}function OY(i,u,d,v,y,w,T){w=w===void 0?!0:w,T=T===void 0?!1:T;var P,$,j,G,q,ie,ue,he,me,ge,Me,Ie,Ve,tt,gt;return Q(function(Ze){return Ze.g==1?(P=null,$=ln(y),T&&($.manifest.disableVideo=!0),j=function(){return P.R&&P.j?null:P},G=function(){return j()?j().getConfiguration():i.g},i.xa.width!=1/0||i.xa.height!=1/0||i.g.ignoreHardwareResolution?Ze.A(2):(q=$e(),L(Ze,q.jc(),3))):(Ze.g!=2&&(ie=Ze.h,i.xa.width=ie.width,i.xa.height=ie.height),ue=new XP($,i.xa,null),he={networkingEngine:i.J,filter:function(Fe){var lt,pt;return Q(function(ft){if(ft.g==1)return L(ft,$K(ue,Fe),2);if(ft.g!=4)return lt=ft.h,lt?(pt=hi("trackschanged"),L(ft,Promise.resolve(),4)):ft.A(0);P.dispatchEvent(pt),B(ft)})},makeTextStreamsForClosedCaptions:function(Fe){return Pwe(i,Fe)},onTimelineRegionAdded:function(Fe){b5(P.I,Fe)},onEvent:function(Fe){return P.dispatchEvent(Fe)},onError:function(Fe){return P.onError(Fe)},isLowLatencyMode:function(){return G().streaming.lowLatencyMode},updateDuration:function(){i.l&&P.R&&i.l.updateDuration()},newDrmInfo:function(Fe){var lt=P.i,pt=lt?lt.g:null;pt&<.B&&FK(ue,pt.keySystem,Fe)},onManifestUpdated:function(){var Fe=new Map().set("isLive",i.W());P.dispatchEvent(hi("manifestupdated",Fe)),Ub(P,!1,function(){i.C&&i.C.onManifestUpdated(i.W())})},getBandwidthEstimate:function(){return i.o.getBandwidthEstimate()},onMetadata:function(Fe,lt,pt,ft){var bt=Fe;(Fe=="com.apple.hls.interstitial"||Fe=="com.apple.hls.overlay")&&(bt="com.apple.quicktime.HLS",Fe={startTime:lt,endTime:pt,values:ft},i.C&&i.C.onHLSInterstitialMetadata(i,i.h,Fe)),ft=_(ft),Fe=ft.next();for(var St={};!Fe.done;St={Yg:void 0},Fe=ft.next())St.Yg=Fe.value,St.Yg.name!="ID"&&Ub(P,!1,(function($t){return function(){tR(i,lt,pt,bt,$t.Yg)}})(St))},disableStream:function(Fe){return i.disableStream(Fe,i.g.streaming.maxDisabledTime)},addFont:function(Fe,lt){return i.addFont(Fe,lt)}},me=new Mb(function(){return i.Qa()}),me.addEventListener("regionadd",function(Fe){var lt=Fe.region;Yb(i,"timelineregionadded",lt,P),Ub(P,!1,function(){i.C&&(i.C.onDashTimedMetadata(lt),i.C.onDASHInterstitialMetadata(i,i.h,lt))})}),ge=null,$.streaming.observeQualityChanges&&(ge=new Qw(function(){return i.Fc()}),ge.addEventListener("qualitychange",function(Fe){rX(i,Fe.quality,Fe.position)}),ge.addEventListener("audiotrackchange",function(Fe){rX(i,Fe.quality,Fe.position,!0)})),Me=!0,Ie={tc:i.J,onError:function(Fe){return P.onError(Fe)},vf:function(Fe){Ub(P,!0,function(){i.F&&Mwe(i,Fe)})},onExpirationUpdated:function(Fe,lt){var pt=hi("expirationupdated");P.dispatchEvent(pt),(pt=P.l)&&pt.onExpirationUpdated&&pt.onExpirationUpdated(Fe,lt)},onEvent:function(Fe){P.dispatchEvent(Fe),Fe.type=="drmsessionupdate"&&Me&&(Me=!1,Fe=Date.now()/1e3-P.ya,(i.B||P.getStats()).m=Fe,i.T&&Yl(i.T))}},Ve=BY(i,j),mK(i.J,Ve),tt=function(){return i.md(Ie)},gt={config:$,wk:he,Hk:me,Gk:ge,md:tt,vk:ue,networkingEngine:Ve,ij:w},P=new Du(u,v,d,gt),Ze.return(P))})}function $Y(i,u){var d,v,y,w;return Q(function(T){return T.g==1?(d=i.g.manifest.retryParameters,L(T,Yv(u,i.J,d),2)):(v=T.h,v=="application/x-mpegurl"&&(y=$e(),y.Ha()==="WEBKIT"&&(v="application/vnd.apple.mpegurl")),v=="video/quicktime"&&(w=$e(),w.Ha()==="CHROMIUM"&&(v="video/mp4")),T.return(v))})}function vwe(i,u){if(!Nd($e()))return!0;if(u){if((i.h||Vv()).canPlayType(u)=="")return!1;if(!Nd($e())||!i0.has(u))return!0;if(fb(u))return $e().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 EC(i,u){var d=i.g.textDisplayFactory;i.Jh!==d||u!==void 0&&u?(u=i.u,i.u=d(),i.u.configure?i.u.configure(i.g.textDisplayer):jt("Text displayer w/ configure",'Text displayer should have a "configure" method!'),i.u.setTextLanguage||jt("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&&R2e(i.H,i.u),i.Jh=d,i.l&&rke(i.l)):i.u&&i.u.configure&&i.u.configure(i.g.textDisplayer)}function J5(i){var u,d,v;return Q(function(y){if(y.g==1)return $e(),S0(i,"media-source"),i.g.mediaSource.useSourceElements&&Ww(i.h),EC(i),u=Ewe(i.h,i.u,{Jj:function(){return i.keySystem()},onMetadata:function(w,T,P){w=_(w);for(var $=w.next();!$.done;$=w.next())if($=$.value,$.data&&typeof $.cueTime=="number"&&$.frames){var j=$.cueTime+T,G=P;G&&j>G&&(G=j);for(var q=_($.frames),ie=q.next();!ie.done;ie=q.next())tR(i,j,G,"org.id3",ie.value);i.C&&i.C.onHlsTimedMetadata($,j)}},Bk:function(w){i.ib&&b5(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),d=i.g.manifest,v=d.segmentRelativeVttTiming,u.Fa=v,L(y,u.M,2);i.H=u,B(y)})}function NY(i,u,d){function v(){return rR(i)}if(i.j.D(u,"playing",v),i.j.D(u,"pause",v),i.j.D(u,"ended",v),i.j.D(u,"ratechange",function(){var w=i.h.playbackRate;w!=0&&(i.N&&(i.N.set(w),i.m==Bs&&i.o.playbackRateChanged(w),qY(i,w)),w=hi("ratechange"),i.dispatchEvent(w))}),u.remote&&(i.j.D(u.remote,"connect",function(){i.l&&u.remote.state=="connected"&&Hf(i),Ca(i)}),i.j.D(u.remote,"connecting",function(){return Ca(i)}),i.j.D(u.remote,"disconnect",function(){return Q(function(w){if(w.g==1)return i.l&&u.remote.state=="disconnected"?L(w,sC(i.l),3):w.A(2);w.g!=2&&Hf(i),Ca(i),B(w)})})),u.audioTracks&&(i.j.D(u.audioTracks,"addtrack",function(){return Ca(i)}),i.j.D(u.audioTracks,"removetrack",function(){return Ca(i)}),i.j.D(u.audioTracks,"change",function(){return Ca(i)})),u.videoTracks&&(i.j.D(u.videoTracks,"addtrack",function(){return Ca(i)}),i.j.D(u.videoTracks,"removetrack",function(){return Ca(i)}),i.j.D(u.videoTracks,"change",function(){return Ca(i)})),(u.webkitPresentationMode||u.webkitSupportsFullscreen)&&i.j.D(u,"webkitpresentationmodechanged",function(){i.xe&&EC(i,!0)}),u.textTracks){var y=function(){i.m===Al&&i.u instanceof Yo&&Hf(i),Ca(i)};i.j.D(u.textTracks,"addtrack",function(w){if(w.track)switch(w=w.track,w.kind){case"metadata":Swe(i,w);break;case"chapters":kwe(i,w);break;default:y()}}),i.j.D(u.textTracks,"removetrack",y),i.j.D(u.textTracks,"change",y)}u.preload!="none"&&i.j.Ba(u,"loadedmetadata",function(){i.B.G=Date.now()/1e3-d})}function mwe(i,u,d,v){var y,w,T,P,$,j,G,q,ie,ue,he,me,ge,Me,Ie,Ve,tt,gt,Ze,Fe,lt,pt,ft,bt,St,$t,Nt,Et;return Q(function(Rt){switch(Rt.g){case 1:for(S0(i,"load"),y=i.h,i.N=new Rb({Ye:function(){return y.playbackRate},Tc:function(){return y.defaultPlaybackRate},ph:function(Kt){y.playbackRate=Kt},ui:function(Kt){y.currentTime+=Kt}}),NY(i,y,u),("onchange"in o.screen)&&i.j.D(o.screen,"change",function(){if(i.K.getConfiguration){var Kt=i.K.getConfiguration();Kt.hdrLevel=="AUTO"?Xv(i):i.g.preferredVideoHdrLevel=="AUTO"&&i.g.abr.enabled&&(Kt.hdrLevel="AUTO",i.K.configure(Kt),Xv(i))}}),w=!1,T=_(i.i.variants),P=T.next();!P.done;P=T.next())$=P.value,(j=$.video&&$.video.dependencyStream)&&(w=wl(j));hwe(i,i.g,w),i.Fd=i.g.preferredTextLanguage,i.Md=i.g.preferredTextRole,i.Ld=i.g.preferForcedSubs,aR(i.i.presentationTimeline,i.g.playRangeStart,i.g.playRangeEnd),i.o.init(function(Kt,on,qn){i.i&&i.l&&Kt!=i.l.o&&Kb(i,Kt,!0,on===void 0?!1:on,qn===void 0?0:qn)}),i.o.setMediaElement(y),i.o.setCmsdManager(i.wa),i.l=Twe(i),i.l.configure(i.g.streaming),i.m=Bs,i.dispatchEvent(hi("streaming")),G=d;case 2:for((ie=i.l.o)||G||(G=XY(i,!0)),ue=[],q=ie||G,he=_([q.video,q.audio]),me=he.next();!me.done;me=he.next())(ge=me.value)&&!ge.segmentIndex&&(ue.push(ge.createSegmentIndex()),ge.dependencyStream&&ue.push(ge.dependencyStream.createSegmentIndex()));if(!(ue.length>0)){Rt.A(4);break}return L(Rt,Promise.all(ue),4);case 4:if(!q||q.disabledUntilTime!=0){Rt.A(2);break}if(i.I&&i.I.onInitialVariantChosen&&i.I.onInitialVariantChosen(q),i.i.isLowLatency&&(i.g.streaming.lowLatencyMode?i.configure(i.Zf):ot("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&&(qke(i.M,i.i.isLowLatency&&i.g.streaming.lowLatencyMode),Yke(i.M,u*1e3)),aR(i.i.presentationTimeline,i.g.playRangeStart,i.g.playRangeEnd),eke(i.l,i.g.playRangeStart,i.g.playRangeEnd),i.Sa=!0,i.dispatchEvent(hi("canupdatestarttime")),Me=function(Kt){i.G=wwe(i,Kt),i.ob=Cwe(i,Kt),FY(i,y,!1)},i.g.streaming.startAtSegmentBoundary||(Ie=i.O,Ie==null&&i.i.startTime&&(Ie=i.i.startTime),Me(Ie)),ie){Rt.A(7);break}if(!i.g.streaming.startAtSegmentBoundary){Rt.A(8);break}return Ve=i.i.presentationTimeline,i.O instanceof Date&&(gt=Ve.m||Ve.i,Ze=i.O.getTime()/1e3-gt,Ze!=null&&(tt=Ze)),tt==null&&(tt=typeof i.O=="number"?i.O:i.h.currentTime),i.O==null&&i.i.startTime&&(tt=i.i.startTime),Fe=Ve.Xb(),lt=Ve.Gb(),ttlt&&(tt=lt),L(Rt,Rwe(G,tt),9);case 9:pt=Rt.h,Me(pt);case 8:Kb(i,G,!0,!1,0);case 7:return i.G.ready(),ft=i.Kc().find(function(Kt){return Kt.active}),ft||((bt=Xg(i.i.textStreams,i.Fd,i.Md,i.Ld)[0]||null)&&$5(i.B.h,bt,!0),G&&(bt?(sK(G.audio,bt,i.g)&&(i.$=!0),i.$&&i.u.setTextVisibility(!0)):(i.$=!1,i.u.setTextVisibility(!1)),tX(i)),bt&&(i.g.streaming.alwaysStreamText||i.Og())&&(tC(i.l,bt),qb(i))),L(Rt,i.l.start(v),10);case 10:i.g.abr.enabled&&(i.o.enable(),nX(i)),Ca(i),i.i.variants.some(function(Kt){return Kt.primary}),((St=i.W())&&(i.g.streaming.liveSync&&i.g.streaming.liveSync.enabled||i.i.serviceDescription||i.g.streaming.liveSync.panicMode)||i.g.streaming.vodDynamicPlaybackRate)&&($t=function(){return YY(i)},i.j.D(y,"timeupdate",$t)),St||(Nt=function(){return IC(i)},i.j.D(y,"timeupdate",Nt),IC(i),i.i.nextUrl&&(i.g.streaming.preloadNextUrlWindow>0&&(Et=function(){var Kt;return Q(function(on){if(on.g==1)return Kt=i.Qa().end-i.h.currentTime,isNaN(Kt)||!(Kt<=i.g.streaming.preloadNextUrlWindow)?on.A(0):(i.j.Ma(y,"timeupdate",Et),L(on,i.preload(i.i.nextUrl),4));i.Ta=on.h,B(on)})},i.j.D(y,"timeupdate",Et)),i.j.D(y,"ended",function(){i.load(i.Ta||i.i.nextUrl)}))),i.C&&i.C.onManifestUpdated(St),B(Rt)}})}function gwe(i,u){var d,v,y;return Q(function(w){return w.g==1?(d=Date.now()/1e3,v=!0,i.F=i.md({tc:i.J,onError:function(T){k0(i,T)},vf:function(){},onExpirationUpdated:function(){var T=hi("expirationupdated");i.dispatchEvent(T)},onEvent:function(T){i.dispatchEvent(T),T.type=="drmsessionupdate"&&v&&(v=!1,i.B.m=Date.now()/1e3-d)}}),i.F.configure(i.g.drm),y=aK([u]),i.F.O=!0,L(w,CK(i.F,[y],[]),2)):L(w,i.F.fc(i.h),0)})}function ywe(i,u,d){var v,y,w,T,P,$,j,G,q,ie,ue,he;return Q(function(me){switch(me.g){case 1:if(S0(i,"src-equals"),v=i.h,i.G=new xq(v),y=!1,i.ze.push(function(){y=!0}),i.dispatchEvent(hi("canupdatestarttime")),i.O!=null&&i.G.Wf(i.O),i.ob=xwe(i,i.O||0),i.N=new Rb({Ye:function(){return v.playbackRate},Tc:function(){return v.defaultPlaybackRate},ph:function(ge){v.playbackRate=ge},ui:function(ge){v.currentTime+=ge}}),FY(i,v,!0),v.textTracks&&(EC(i),w=function(ge){if(!(i.u instanceof Yo)){var Me=TC(i).find(function(Ie){return Ie.mode!=="disabled"});Me&&(Me.mode=ge?"showing":"hidden"),i.u instanceof Ys&&(Me=Awe(i))&&(Me.mode=!ge&&i.u.isTextVisible()?"showing":"hidden")}},i.j.D(v,"enterpictureinpicture",function(){return w(!0)}),i.j.D(v,"leavepictureinpicture",function(){return w(!1)}),v.remote?(i.j.D(v.remote,"connect",function(){return w(!1)}),i.j.D(v.remote,"connecting",function(){return w(!1)}),i.j.D(v.remote,"disconnect",function(){return w(!1)})):"webkitCurrentPlaybackTargetIsWireless"in v&&i.j.D(v,"webkitcurrentplaybacktargetiswirelesschanged",function(){return w(!1)}),T=v,(T.webkitPresentationMode||T.webkitSupportsFullscreen)&&i.j.D(T,"webkitpresentationmodechanged",function(){T.webkitPresentationMode?w(T.webkitPresentationMode!=="inline"):T.webkitSupportsFullscreen&&w(T.webkitDisplayingFullscreen)})),NY(i,v,u),P=Xke(i.M,i.X,d),!P.includes("#t=")&&(i.g.playRangeStart>0||isFinite(i.g.playRangeEnd))&&(P+="#t=",i.g.playRangeStart>0&&(P+=i.g.playRangeStart),isFinite(i.g.playRangeEnd)&&(P+=","+i.g.playRangeEnd)),!i.H){me.A(2);break}return L(me,i.H.destroy(),3);case 3:i.H=null;case 2:return Ww(v),v.src=P,$=$e(),$.Ua()=="TV"&&v.load(),v.preload!="none"&&!v.autoplay&&fb(d)&&$.Ha()==="WEBKIT"&&v.load(),i.m=Al,i.dispatchEvent(hi("streaming")),j=new ii,p0(v,HTMLMediaElement.HAVE_METADATA,i.j,function(){i.G.ready(),i.aa&&fb(i.aa)||j.resolve()}),G=function(){return new Promise(function(ge){var Me=new dr(ge);i.j.D(v.textTracks,"change",function(){return Me.ia(.5)}),Me.ia(.5)})},p0(v,HTMLMediaElement.HAVE_CURRENT_DATA,i.j,function(){var ge,Me,Ie,Ve,tt;return Q(function(gt){if(gt.g==1)return L(gt,G(),2);if(y)return gt.return();if(bwe(i),ge=TC(i),ge.some(function(Ze){return Ze.mode==="showing"})&&(i.$=!0,i.u.setTextVisibility(!0)),!(i.u instanceof Yo))for(ge.length&&(i.u.enableTextDisplayer?i.u.enableTextDisplayer():jt("Text displayer w/ enableTextDisplayer",'Text displayer should have a "enableTextDisplayer" method')),Me=!1,Ie=_(ge),Ve=Ie.next();!Ve.done;Ve=Ie.next())tt=Ve.value,tt.mode!=="disabled"&&(Me?(tt.mode="disabled",ot("Found more than one enabled text track, disabling it",tt)):(WY(i,tt),Me=!0));_we(i),i.aa&&fb(i.aa)&&j.resolve(),B(gt)})}),v.error?j.reject(sR(i)):v.preload=="none"&&(ot('With